PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
neralex
Worker
Worker


Joined: Aug 22, 2007
Posts: 194
Location: Germany

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

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 Visit poster's website
jestrella
Moderator


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

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

You may wish to directly thank Kevin (kguske) for creating this great little RN addon! xD
View user's profile Send private message Visit poster's website
neralex
Worker
Worker


Joined: Aug 22, 2007
Posts: 194
Location: Germany

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

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
View user's profile Send private message Visit poster's website
Palbin
Site Admin


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

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

Are you putting that before header.php is called?
View user's profile Send private message
neralex
Worker
Worker


Joined: Aug 22, 2007
Posts: 194
Location: Germany

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

yes of course!
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


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

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

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
neralex
Worker
Worker


Joined: Aug 22, 2007
Posts: 194
Location: Germany

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

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
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum