There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Help?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
Whitetiger22's Avatar
Member with 42 posts.
 
Join Date: Mar 2005
Experience: Intermediate
09-Jun-2005, 08:31 PM #1
Help?
I am wondering how i can add a small (preferably invisible) non-changing banner to a phpBB2. By that i mean that it will not re-load every time i go to a new page. I have added music to my forum but the problem is that it's very annoying as the music always starts over when i go to a new page.
I'm thinking i need to make a new file, put it in the includes folder, and somehow have it load only the first time the board is opened...maybe by only calling it if a certain variable is 0? i'm new to php but i'm half decent with java so yea...


Thanks in advance
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
10-Jun-2005, 09:10 AM #2
Are you trying to add a banner, or music?
Whitetiger22's Avatar
Member with 42 posts.
 
Join Date: Mar 2005
Experience: Intermediate
10-Jun-2005, 02:01 PM #3
both sorta...

see if i add music (which i did) it restarts with every new page i go to as the file is being called again, so it starts over. That's why i'm trying to add a banner that ISNT called (except for the first time you go to the site) every time. That way, you can listen to the music without it starting over each time.
Any ideas on that?
I know a lot of sites have a banner and sidebar that dont get reloaded with each new click...so i guess what i'm asking is how could i make one for a phpBB2?
drdrew1469's Avatar
Senior Member with 436 posts.
 
Join Date: Nov 2000
Location: PA
Experience: God
10-Jun-2005, 02:27 PM #4
I haven't tried this (and hate to say it), but off the top of my head, I'm thinking frames. An <include> speeds sites up by using the cache, but reloads on each page calling it. My guess is a frame at the top (or wherever) that is static across the site that has your banner/music and target each page to the bottom frame (or wherever). Let us know, I'm kinda intrigued by this now.

hth,
drew
__________________
Please help me as I am attempting to (re)gain my (in)sanity.
Whitetiger22's Avatar
Member with 42 posts.
 
Join Date: Mar 2005
Experience: Intermediate
10-Jun-2005, 02:32 PM #5
i have no idea what you mean lol...

do you mean adding it to a file that is called on every page and having everything else called below? I guess i understand but i have no idea how to do that...

Tell me what you have in mind and maybe we'll be able to do this...

Thanks for the help btw...really appreciate this...
drdrew1469's Avatar
Senior Member with 436 posts.
 
Join Date: Nov 2000
Location: PA
Experience: God
10-Jun-2005, 02:50 PM #6
Example: It would essentially be three files. Your main page (index.htm) holds your frame information and what to fill the frames with (called banner.htm and phbb_content.htm). Your banner.htm would be just that, your banner and music. The phbb_content.htm would be the rest of your site with links, info, pics, etc. As long as you "target" everything to the "main" frame, I don't think the top frame "header" reloads. I haven't used frames in years, but this sounds feasible.

index.html
<html>
<head>
</head>
<frameset rows="64,*">
<frame name="header" scrolling="no" noresize target="main" src="banner.htm">
<frame name="main" src="phpbb_content.htm">
<noframes>
<body>
<p>Make a page for people who don't support frames here.</p>
</body>
</noframes>
</frameset>
</html>

banner.htm
<html>
<head>
<base target="main">
</head>
<body>
Banner/Music
</body>
</html>

phbb_content.htm
<html>

<head>
</head>
<body>
<p>phbb Content/Links</p>
</body>
</html>

Got a better idea, or are you now confused more that before you asked, lol.

hth,
drew
__________________
Please help me as I am attempting to (re)gain my (in)sanity.
Whitetiger22's Avatar
Member with 42 posts.
 
Join Date: Mar 2005
Experience: Intermediate
10-Jun-2005, 02:57 PM #7
hmm...so by making these 3 html files the forum would still work? I just need to go to index.htm instead of index.php right?
Whitetiger22's Avatar
Member with 42 posts.
 
Join Date: Mar 2005
Experience: Intermediate
10-Jun-2005, 03:00 PM #8
what exactly should go in the phpbb_content.htm file? phpBB2 has a lot of files in it...should i call the index.php file or what? and how would i do that?
Whitetiger22's Avatar
Member with 42 posts.
 
Join Date: Mar 2005
Experience: Intermediate
10-Jun-2005, 03:40 PM #9
i changed the phpbb_content.htm to index.php and it now works!

thanks!
drdrew1469's Avatar
Senior Member with 436 posts.
 
Join Date: Nov 2000
Location: PA
Experience: God
10-Jun-2005, 03:44 PM #10
[EDIT: cross post while typing reply to #8]

drew
drdrew1469's Avatar
Senior Member with 436 posts.
 
Join Date: Nov 2000
Location: PA
Experience: God
10-Jun-2005, 03:45 PM #11
Wow, quick post while I was typing . Good, so you all straight?

drew
Whitetiger22's Avatar
Member with 42 posts.
 
Join Date: Mar 2005
Experience: Intermediate
10-Jun-2005, 06:48 PM #12
http://s93423950.onlinehome.us/phpBB2/index.htm
see for yourself...

Thanks man!
drdrew1469's Avatar
Senior Member with 436 posts.
 
Join Date: Nov 2000
Location: PA
Experience: God
10-Jun-2005, 09:58 PM #13
That works well...very nice, glad I could help.

drew
Mithrilhall's Avatar
Senior Member with 781 posts.
 
Join Date: Mar 2001
Location: AU Microscopii
Experience: Studying for my CCNA
11-Jun-2005, 01:24 AM #14
Frames...or something like this..

http://www.seminoleoaks.com/

The above link uses layers instead of frames.
Whitetiger22's Avatar
Member with 42 posts.
 
Join Date: Mar 2005
Experience: Intermediate
11-Jun-2005, 10:20 AM #15
i got it man thanks anyway...
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:52 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.