Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
JeRicHoOL
Worker
Worker



Joined: Jul 20, 2008
Posts: 126
Location: Germany

PostPosted: Wed Sep 03, 2008 9:51 am Reply with quote

Does someone know if I can have different backgrounds for all my forums (sections)?
I know that I can change the background for the entire phpbb forum in the .css file but I want different backgrounds for the different forums.

_________________
Thank you RavenNuke! 
View user's profile Send private message MSN Messenger
wHiTeHaT
Life Cycles Becoming CPU Cycles



Joined: Jul 18, 2004
Posts: 579

PostPosted: Wed Sep 03, 2008 11:21 am Reply with quote

Yes you can but it must be hardcoded, as the body tag in raven starts inside the function
themeheader();
you should tweak the theme.php

There where the <body> start tag is called you must hardcode foreach forumId a new css rule.

However , as it is a long time ago i tweaked theme's containing forum template's, you might dont need to edit in the theme.php but inside your modules/forum folder
and the file : page_header.php

'T_BODY_BACKGROUND' => $theme['body_background'],

i checked in 1 version of nuke only and noticed a few lines containing also the one described above is qouted out.

So it could be that nuke also controls the whole body ... if someone can confirm ,then my first explenation should/could be followed.
 
View user's profile Send private message Send e-mail
JeRicHoOL







PostPosted: Wed Sep 03, 2008 11:58 am Reply with quote

I ment the phpBB forum. Not version 2 which is included in Nuke. I mean a single phpBB Forum not a Nuke included one.
 
wHiTeHaT







PostPosted: Wed Sep 03, 2008 12:51 pm Reply with quote

So you mean phpbb V3.X ?

Yes you can
 
JeRicHoOL







PostPosted: Wed Sep 03, 2008 1:12 pm Reply with quote

Do you knw if it's possible without copying the style with a different background to set this style as the default background for the forum (section)?

EDIT: No it's not. I need a modification for this or I copy the styles with different backgrounds which would be my 2nd choice.

EDIT 2: I found something (a code fo my needs) which I will try out. I'll post back later or the next days.

EDIT 3: Well the code some guys gave me is for having random header images after every link click. That's not what I need.
 
wHiTeHaT







PostPosted: Wed Sep 03, 2008 1:40 pm Reply with quote

Sorry that isnt posseble.
You really need to go into the code itself.

You could implement a tweak inside the forum listing function and add a field in the forum table , but that is an advanced area.
 
JeRicHoOL







PostPosted: Wed Sep 03, 2008 3:13 pm Reply with quote

Well, I asked this guy again and he says it's possible with the code he gave me. I'm gonna try it our in the next 1-3 hours and I will post back if it really works. Thanks for your help anyways.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

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 ©