PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Fri Aug 12, 2005 8:33 am Reply with quote Back to top

I am also curious as to how I can create a simple scrolling message on the status bar. Currently, it's blank. I also could not find anywhere where it would need to be edited to add the functionality. I have tried adding the above code and once I save to the header file, either in the theme, or in the root directory, my page doesn't load. Any ideas?
View user's profile Send private message Send e-mail
persona_non_grata



Joined:
Posts: 0

PostPosted: Fri Aug 12, 2005 8:48 am Reply with quote Back to top

This usualy goes in the header .
Try custom header firts..
But i think you have to disable the $slogan also..

But try this..

Code:

<SCR-PT LANGUAGE='JavaScr-pt'>

var default1 = "www.yoursite.com, just some text"; // loaded 1 time only
var text1 = "bla bla text 1";
var text2 = "bla bla text 2";
var text3 = "bla bla text 3";
var changeRate = 4000; // 1000 = 1 seconde

var messageNumber = 0;

function changeStatus() {
  if (messageNumber == 0) {
     window.status=default1;
     document.title=default1;
    }
  else if (messageNumber == 1) {
     window.status=text1;
     document.title=text1;
    }
  else if (messageNumber == 2) {
     window.status=text2;
     document.title=text2;
     }
  else if (messageNumber == 3) {
     window.status=text3;
     document.title=text3;
     messageNumber = 0;
     }

  messageNumber++;
  setTimeout("changeStatus();",changeRate);

}

changeStatus(); //www.yoursite.com

// -->
</SCR-PT>


Edit : i tried it and works,you can leave the $slogan
View user's profile Send private message
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Fri Aug 12, 2005 10:58 am Reply with quote Back to top

Thanks! I'll give it a shot

EDIT:

Another noob question. Where in the header would I put it? Does it matter? Or should I emplace it at the top, after this:
Code:
if (stristr($_SERVER['PHP_SELF'], "header.php")) {
    Header("Location: index.php");
    die();
}

require_once("mainfile.php");
View user's profile Send private message Send e-mail
persona_non_grata



Joined:
Posts: 0

PostPosted: Fri Aug 12, 2005 11:24 am Reply with quote Back to top

well my fault...lol
i mean header if were were talking about html pages.
but in your case,put at aftere the ?> in your custom header,thats in your includes folder..
View user's profile Send private message
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Fri Aug 12, 2005 12:01 pm Reply with quote Back to top

Thanks so much! Works great.

btw,
Only registered users can see links on this board!
Get registered or login to the forums!
is the site.
View user's profile Send private message Send e-mail
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Fri Aug 12, 2005 12:05 pm Reply with quote Back to top

One more thing. Is it feasible to have each of the messages scroll from either right to left, or left to right? I have seen some sites that have this option.

Thanks again for your help!
View user's profile Send private message Send e-mail
persona_non_grata



Joined:
Posts: 0

PostPosted: Fri Aug 12, 2005 12:54 pm Reply with quote Back to top

well i think there are a few but realise that the more things they can the chances are you have to work with unload function..(like body onload)
But not recommended,dont turn your status or title bar in a Xmas tree.
Like you have it now is good...
View user's profile Send private message
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Fri Aug 12, 2005 9:54 pm Reply with quote Back to top

Thanks again!
View user's profile Send private message Send e-mail
Psycho
Worker
Worker


Joined: May 27, 2006
Posts: 157

PostPosted: Sat Sep 02, 2006 8:41 am Reply with quote Back to top

Quote:
put at aftere the ?> in your custom header,thats in your includes folder


custom header? all i have is get_header.php or page_header.php i tried putting it in the page_header.php under the <?php tag and my forums went blank.
View user's profile Send private message Send e-mail
montego
Moderator


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Sat Sep 02, 2006 10:42 am Reply with quote Back to top

Psycho, look in your includes directory, you should have another sub-directory in there called custom_files. In there, you can place a custom_head.php file where you can place any code which produces HTML that is supposed to go between the HEAD tags of the page. This is where I place ALL my added links to CSS files and javascript.
View user's profile Send private message Visit poster's website
Psycho
Worker
Worker


Joined: May 27, 2006
Posts: 157

PostPosted: Sat Sep 02, 2006 4:25 pm Reply with quote Back to top

ok i made a custom_head.php and pup it in the custom files folder in includes directory. I then went to the site to see if it works, but the site appears blank, there is somthing really wrong with the setup to my site lol! I dont really get how it reads that new file..
View user's profile Send private message Send e-mail
montego
Moderator


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Sat Sep 02, 2006 7:14 pm Reply with quote Back to top

The only way that your site would have gone blank is if you didn't code the file correctly. It must be standard PHP and with no parse errors. Crying or Very sad
View user's profile Send private message Visit poster's website
Psycho
Worker
Worker


Joined: May 27, 2006
Posts: 157

PostPosted: Mon Sep 04, 2006 11:53 am Reply with quote Back to top

how can i show you the code i used, this site wont allow me to paste it.
View user's profile Send private message Send e-mail
montego
Moderator


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Tue Sep 05, 2006 5:50 am Reply with quote Back to top

Email it to me at montego _{ AT )__ montegoscripts __D O T-- com. Laughing
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum