Include network list on all pages

Help with html/xhtml, css, javascript and other related topics.

Moderator: Moderators

Include network list on all pages

Postby kvfb97 on Sat Jan 21, 2006 7:09 pm

Hi,

Just wondering the easiest way to do this would be. Heres an example:
http://www.phpbbhacks.com/

I was thinking of either PHP or SSI, but that would mean i'd have to add it to every page my site hosts (loads!), so would there be any other way i could do this? in a frame or something?

Thanks,
Robert.
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK

Postby mwx on Sat Jan 21, 2006 7:16 pm

probably use the cback info bar as a barebone start. mod it from there
User avatar
mwx
Registered User
Registered User
 
Posts: 1075
Joined: Wed Jul 13, 2005 3:19 pm
Location: long island, new york

Postby kvfb97 on Sat Jan 21, 2006 7:18 pm

Nah its not just for phpBB - alot of different sites and they're not all php.
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK

Postby Nicolas on Sun Feb 05, 2006 1:50 am

Maybe use iframes and put the code in the overall_footer.tpl
Nicolas
Registered User
Registered User
 
Posts: 95
Joined: Sun Jun 12, 2005 3:19 am

Postby baz-x on Sun Feb 05, 2006 2:50 am

use <script language="php" src="PATH_TO_YOUR_SCRIPT"></script> in your html files.
i have seen it in another mod and i think it should work. maybe that tag was a little bit different ... i can't remember now ... try to play around with it. i know <script> can do it.
Regards
baz-x [blog] [website]
current projects:
» [span style="color: darkgreen"]Mex[/span] [span style="color: darkred"][ 75% ][/span]
» Nickpage Mod 2.0.0 ME [span style="color: red"][ paused ][/span]
» Style Demo Mod 1.2.2 ME [span style="color: red"][ paused ][/span]
User avatar
baz-x
Moderator
Moderator
 
Posts: 706
Joined: Sun Aug 15, 2004 9:12 pm
Location: Cache Management of Mex

Postby kvfb97 on Sun Feb 05, 2006 1:38 pm

I ended up just using an .htaccess file to make the .htm files parse as .php files:
Code: Select all
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html

Thanks for the help!
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK


Return to (X)HTML Coding

Who is online

Users browsing this forum: No registered users and 2 guests