Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
If you always have the same header at the top of your forums, is there any way to stop it from reloading everytime a new post is viewed (or a different page of the forums)?. I put my header html code in the Includes file (Edit generic header). If I put it in the Includes (Edit header-insert) it too reloads everytime a new page on the forum is viewed. Should the header html go somewhere else to avoid this? Thanks!

Jason

Sponsored Links
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
I'm not sure how you can avoid this, it won't matter where you put this as far as preventing it from reloading it's still cached so it shouldn't take too long to load. It just loads like an html page, if you want to keep it fixed you will need to make a frames page.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, you really don't want to do anything to encourage caching in the browser with dynamic pages like forum software. Sometimes people have that problem and they don't see the new post tracking correctly, or see posts that they just made etc....

It definately should not go in the header-insert. That area is inside the <head></head> tags of the HTML page - so it's only for META tags and javascript. Not anything that actually seen on the page.

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
Okay, thanks guys.

J

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
I was going to ask something similar. I want to put background sound but it reloads the ambiance everytime you go anywhere on the forums? is there a way to have background sound and it not reload and restart on every click?

Sponsored Links
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Not that I am aware of because everything reloads with the page, you can set a cookie on the sound so it only plays once but it will still stop once someone has clicked something. You would have to set it up in a frame and have it launch in a different window or something outside of the main page.

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
ok, so what if I made it a popup window? Lets say that I add a "music" link in the section on top where the others are and they can click the link and it eill play in a popup. what would I have to add (code wise) to make the link a popup.

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
You would need some sort of javascript popup code. There are a couple of ways to add it, it will most likely need an onload statement of some sort which you can add to your default header and then the link code which can be added to your ubbt_registered (and unregistered if you want) tmpl files depending on if you want the users to click to launch or whether you want it to popup on them.

Often times you will have to modify the javascript because of conflicts with all that is going on with threads, it will take some playing with your environment. Then you can add whatever sound code you want to your popup window. Is all this general enough for you

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
sounds easy enough. It depends on what kind of java im going to use. ill let you know.

thanks

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
You could setup a hidden frame that plays the music.

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
[]DrChaos said:
sounds easy enough. It depends on what kind of java im going to use. ill let you know.

thanks [/]

If you did back here in the archives for my Private Message Popup notification mod - that had a pop-up which played a sound. You could use that to get you started.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
In thinking about this more - if you had big graphics etc... in your header that you didn't want to keep reloading, they could be set as table background images in your stylesheet. I'm pretty sure it doesn't load the stylesheet on ever page load. our logo here is created in the stylesheet.

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
nice idea. but it has to be able to be turned on and off. for the 56k'ers.

If I can get it into a button so it wont do anything unless you click it, would be nice. its a gaming forum so we mgiht be able to use it to have weekly anouncements<sp

still tring to get it to work within the code.

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
[] If you dig back here in the archives for my Private Message Popup notification mod - that had a pop-up which played a sound. You could use that to get you started. [/]

Im-a-diggin fool
thanks josh. If I only had half of your brain I would be a danger to myself......


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)