Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1775

PostPosted: Thu Aug 26, 2010 8:18 pm Reply with quote

Hey RavenNuke(tm) team!

Thanks for this great feature to run own css files. I hope that this element continues!

RavensScripts
 
View user's profile Send private message
jestrella
Moderator



Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic

PostPosted: Thu Aug 26, 2010 10:27 pm Reply with quote

You may wish to directly thank Kevin (kguske) for creating this great little RN addon! xD

_________________
"For those whom have not reach the sky... Every mountain seems high"

Best Regards
Jonathan Estrella
http://about.me/jestrella04 
View user's profile Send private message Visit poster's website
neralex







PostPosted: Thu Nov 18, 2010 6:17 pm Reply with quote

hey!

i have a question about this addon.
if i set this into the /modules/Forums/index.php, then it does not work.

Code:


addCSSToHead("themes/mytheme/style/forum.css","file");


any ideas?

Sad
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Thu Nov 18, 2010 11:41 pm Reply with quote

Are you putting that before header.php is called?

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
neralex







PostPosted: Fri Nov 19, 2010 6:48 am Reply with quote

yes of course!
 
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Fri Nov 19, 2010 9:19 am Reply with quote

try placing it in modules/Forums/nukebb.php right after mainfile.php is included. If you are using it to override existing styling you may want to create a separate php file and load your CSS/JS there.

Code:
// this is relative to the module: modules/Forums/yourfile.php

define('RN_MODULE_HEAD', 'yourfile.php');


Note: If I remember correctly if you use the dynamic head functions directly from within your module index they will be added to the array before the main style.css file, so that won't work for overriding existing styling.

Also, RN automatically checks for themes/YOUR_THEME/style/Forums.css so if your theme isn't using one (only some do) you could use that as well. Just be aware that the default forum styling should be declared somewhere Smile (only an issue if your theme does not have custom forum templates (a forum directory) or a Forums.css file)

My advice may differ depending on what you are trying to do, if you run single/multiple themes, if your additions are theme specific, if your theme(s) have custom forum templates and/or a Forums.css file, etc.

any questions, just ask Wink
 
View user's profile Send private message Visit poster's website
neralex







PostPosted: Fri Nov 19, 2010 5:39 pm Reply with quote

spasticdonkey wrote:
Also, RN automatically checks for themes/YOUR_THEME/style/Forums.css so if your theme isn't using one (only some do) you could use that as well.


spasticdonkey, many thanks for your answer - it works!

RavensScripts
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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 ©