Webmastersite.net
Register Log In

Top Links - From main page
To a static page

Comments on Top Links - From main page

PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 43
Total Comments: 103
Posted Jan 13, 2008 - 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... www.hostectory.com/index.ph...yes&TID=custom-top%20plans

Thanks in advance
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 13, 2008 - 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: 43
Total Comments: 103
Posted Jan 14, 2008 - 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 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
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 15, 2008 - 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: 43
Total Comments: 103
Posted Jan 16, 2008 - 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
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 17, 2008 - 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: 43
Total Comments: 103
Posted Jan 26, 2008 - 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
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 28, 2008 - 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, scripts.webmastersite.net/w...template-anywhere-242.html
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 43
Total Comments: 103
Posted Jan 28, 2008 - 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
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 43
Total Comments: 103
#10 - Quote - Permalink
Posted Jan 28, 2008 - 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
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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