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

Register | Forgot Password

Customized page title on customized
on customized templates

Version: 4.1.0.7
printPrint


Customized page title on customized
mc19
Experienced

Usergroup: Customer
Joined: May 14, 2006
Total Topics: 22
Total Posts: 65
Posted 06/27/07 - 10:18 PM:
quote post
#1
I follow this article to create privacy.php and privacy.tpl

scripts.webmastersite.net/wsnlinks/wsnmanual/articles/creating-a-custom-template-5.html

and I set up the 'Custom Titles' at admin/pagetitles.php.

If I go to static page, privacy.php, the page title is same as the defaul one.

If I go to index.php?custom=yes&TID=privacy, the page title is changed.

My question is, how can I get the customized page title if I go directly to privacy.php ?

I tried to include something like $pagetitles = 'Privacy Policy'; into the privacy.php file, but it doesn't work.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6339
Posted 06/28/07 - 08:49 AM:
quote post
#2
Why would you make a privacy.php? I don't see the point, it isn't any quicker and you can get the same privacy.php URL with url rewriting.

"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
mc19
Experienced

Usergroup: Customer
Joined: May 14, 2006
Total Topics: 22
Total Posts: 65
Posted 06/28/07 - 04:39 PM:
quote post
#3
Every site should contains of privacy, tos etc.. legal document pages.

I put this in .htaccess, but it doesn't work.

RewriteRule ^([-_/\+A-Za-z0-9äüößèà]+)/$ index.php?custom=yes&TID=$1


if I change the above code to this, it will work, but how about if we have many customized templates.
RewriteRule ^privacy/?$ index.php?custom=yes&TID=privacy
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6339
Posted 06/29/07 - 09:36 AM:
quote post
#4
Don't modify the .htaccess, write privacy.php and index.php?custom=yes&TID=privacy in the boxes at Admin -> Settings -> SEO to let it do it.

Every site should contains of privacy, tos etc.. legal document pages.

And there already is one by default in 4.1, though I think it's only linked anywhere when COPPA is on.

Edited by Paul on 06/29/07 - 11:43 AM

"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
ingenious22
Beginner

Usergroup: Customer
Joined: Jul 08, 2007
Total Topics: 0
Total Posts: 3
Posted 07/10/07 - 06:21 AM:
quote post
#5
With regards to the original question, how would you customise the title page when a static page is created this way?

For both methods: creating php file or mod_rewriting...
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6339
Posted 07/11/07 - 02:47 AM:
quote post
#6
Either way you can type the non-rewritten URL on the custom page titles page: coppa.php?action=privacy if you use the default privacy page.

"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
ingenious22
Beginner

Usergroup: Customer
Joined: Jul 08, 2007
Total Topics: 0
Total Posts: 3
Posted 07/12/07 - 05:38 PM:
quote post
#7
Sorry, I'm not sure what you mean...
I am not referring to privacy pages, but any static pages, for eg, enter page, or about us, faq, etc.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6339
Posted 07/13/07 - 08:58 AM:
quote post
#8
All are the same. Any page you create has a url... say, index.php?custom=yes&TID=yourtemplatename , which you can type in the box.

If your pages are actually static html then they aren't part of the script and naturally can't be titled by the script.

"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
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.