Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...
Author Message
G_Gekko
New Member
New Member


Joined: Apr 15, 2005
Posts: 5

PostPosted: Mon Apr 18, 2005 2:28 pm Reply with quote

Hi
Im using a modified version of the dynamic titles script that can be found on Only registered users can see links on this board! Get registered or login!

but i am wondering if there exist a script that can do the exact same thing with the site slogan since that also would be very good for search engines.

Regards
and thanks in advance.
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Apr 19, 2005 4:42 pm Reply with quote

This is what i use on my site.

in your header.php take out the <title> </title>
and put this instead of it..
Code:
@include("includes/title.php");




save the below as title.php and put in includes folder.
Then you can play around with it...what or what not to show..
as for the text...just ad more lines...
Code:


<?php
if (stristr($_SERVER['SCRIPT_NAME'], "title.php")) {
    Header("Location: ../index.php");
    die();
}
mt_srand((double)microtime()*1000000);
$randTitle = mt_rand(1, 5);

    if ($randTitle == 1) {
   $RSTitle = "   - text1
    } elseif ($randTitle == 2) {
   $RSTitle = "   - text2";
    } elseif ($randTitle == 3) {
   $RSTitle = "   - text3";
    } elseif ($randTitle == 4) {
   $RSTitle = "   - text4";
    } elseif ($randTitle == 5) {
   $RSTitle = "   - text5";
    }
echo "<title>$sitename $pagetitle - $RSTitle $slogan</title>\n";

?>
 
View user's profile Send private message
G_Gekko
PostPosted: Tue Apr 19, 2005 4:45 pm Reply with quote

thanks
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©