WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Top Links - From main page
To a static page

Version: 4.1.25
Example URL: http://www.hostectory.com
printPrint


Top Links - From main page
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 37
Total Posts: 92
Posted 01/13/08 - 01:46 AM:
quote post
#1
Hi,

The Top 5/10/15 links section in the sidebar on the main page... I want to move it to a static page. I did move the code, but the form action is taking back to the main page.

I did change the form action from 'index.php' to 'index.php?custom=yes&TID=custom-top plans'... but even after this change... the form action is taking back to index page.

What changes need to be done to move the whole thing to the static page including the form action.

Here is the static page... http://www.hostectory.com/index.php?custom=yes&TI...

Thanks in advance

HostBubble : Web hosting and domain names marketplace
Hostology : Articles, Guides, News and more for web hosting industry
HumanNodes | Windows9x |
DeepCrawl | AdBubble
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6163
Posted 01/13/08 - 09:57 AM:
quote post
#2
You don't want a static page, static pages are useless. If you want to change the URL, go to Admin -> Settings -> SEO -- or alternatively if you're on Windows IIS you can use this hack.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 37
Total Posts: 92
Posted 01/14/08 - 11:37 PM:
quote post
#3
Hi,

Under the SEO section.. what values do i put in the two boxes...

Example... I want to convert the existing static page http://www.hostectory.com/index.php?custom=yes&TI... to http://www.hostectory.com/top-plans.php

Similarly, i do have more pages like that to convert.

How can i do that?

Thanks

HostBubble : Web hosting and domain names marketplace
Hostology : Articles, Guides, News and more for web hosting industry
HumanNodes | Windows9x |
DeepCrawl | AdBubble
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6163
Posted 01/15/08 - 09:42 PM:
quote post
#4
index.php?custom=yes&TID=custom-top%20plans in the left box, top-plans.php in the right box. For more, one per line as it says there.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 37
Total Posts: 92
Posted 01/16/08 - 05:09 AM:
quote post
#5
Thanks Paul.
I got it working now.

Is it possible to get the {NAVIGATION} work on these pages? How can set that up within admin panel?

Cheers

HostBubble : Web hosting and domain names marketplace
Hostology : Articles, Guides, News and more for web hosting industry
HumanNodes | Windows9x |
DeepCrawl | AdBubble
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6163
Posted 01/17/08 - 09:13 AM:
quote post
#6
There's no way to know where you intend a custom page to lie in the navigation, so you need to write the navigation manually.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 37
Total Posts: 92
Posted 01/26/08 - 06:53 AM:
quote post
#7
Paul...

Back to the original problem.
I used your suggestion of SEO and rewriting the url to toplinks.php and chnaged in the tpl from index.php to toplinks.php in teh form action for Top Links.

However, it is still not working fine for all the drop down options like top rated and other option.

Is there anything else i need to change??

Here is the link to my top links page; http://www.hostectory.com/top-plans.php

Thanks for any help.

Cheers

HostBubble : Web hosting and domain names marketplace
Hostology : Articles, Guides, News and more for web hosting industry
HumanNodes | Windows9x |
DeepCrawl | AdBubble
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6163
Posted 01/28/08 - 04:42 AM:
quote post
#8
You can't submit a form post to a file that isn't really there. You can submit it to index.php?custom=yes&TID=templatename. Of if the filename is inexplicably important to you, http://scripts.webmastersite.net/wsnlinks/wsnmanu...

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 37
Total Posts: 92
Posted 01/28/08 - 05:17 AM:
quote post
#9
I created topplans.php with this code...

<?php
/* Supply the path to WSN and the name of your template on the lines as requested */

$pathtowsn = '/path/to/templates/default/custom/'; // as listed on your settings->general configuation page but without the 'attachments/' part

$yourtemplatename = 'topplans.tpl'; // the template, located in the 'custom' subdirectory of your templates directory, that you want to display

$usewrapper = 'yes'; // set to 'no' if you don't want to show the WSN wrapper

$curr_path = getcwd();
chdir($pathtowsn);
require 'start.php';
if (!$template) $template = new template('custom/'. $yourtemplatename);
require 'end.php';
chdir($curr_path);
?>


I also have topplans.tpl in which i have the top plans form action.

But i am getting 404 error.

Thanks for any help

Edited by PurpleCow on 01/28/08 - 05:24 AM

HostBubble : Web hosting and domain names marketplace
Hostology : Articles, Guides, News and more for web hosting industry
HumanNodes | Windows9x |
DeepCrawl | AdBubble
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003
Total Topics: 37
Total Posts: 92
Posted 01/28/08 - 05:21 AM:
quote post
#10
Okay... I moved topplans.php to root folder and it seems to be working.
Could some point your browser to http://www.hostectory.com/topplans.php and observe the same for me please?

Thanks

HostBubble : Web hosting and domain names marketplace
Hostology : Articles, Guides, News and more for web hosting industry
HumanNodes | Windows9x |
DeepCrawl | AdBubble
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.