WebmasterSite.net

Top Links - From main page
To a static page

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

PrintPrint


Top Links - From main page
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 42
Total Posts: 103
quote post #1
Posted 01/13/08 - 1:46 AM:

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.ph...yes&TID=custom-top%20plans

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
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 01/13/08 - 9:57 AM:

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.
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 42
Total Posts: 103
quote post #3
Posted 01/14/08 - 11:37 PM:

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.ph...yes&TID=custom-top%20plans 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
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #4
Posted 01/15/08 - 9:42 PM:

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.
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 42
Total Posts: 103
quote post #5
Posted 01/16/08 - 5:09 AM:

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
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #6
Posted 01/17/08 - 9:13 AM:

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.
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 42
Total Posts: 103
quote post #7
Posted 01/26/08 - 6:53 AM:

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
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #8
Posted 01/28/08 - 4:42 AM:

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/w...template-anywhere-242.html
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 42
Total Posts: 103
quote post #9
Posted 01/28/08 - 5:17 AM:

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 - 5: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: 42
Total Posts: 103
quote post #10
Posted 01/28/08 - 5:21 AM:

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


Sorry, you don't have permission to post. Log in, or register if you haven't yet.