Author |
Message |
killing-hours
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/18f54b284d120ece8c103.gif)
Joined: Oct 01, 2010
Posts: 438
Location: Houston, Tx
|
Posted:
Fri Dec 31, 2010 3:50 pm |
|
Not sure if this is the correct explanation... but I think what you're looking for is
Code:addJSToHead('modules/YOURMODULES/YOUR-JS-FILE.js' , 'file');
&
addCSSToHead('modules/YOURMODULE/YOUR-CSS-FILE.css' , 'file');
|
That will add the files to the document head.
You can also add the JS / CSS inline using a variable.
i.e.
Code:$variable = '<script>
YOUR CODE HERE
</script>';
addJSToHead($variable , 'inline');
|
Hope that helps ya out.
----
side note... isn't tabscontent already a file in the includes? (i'm out of town and not at my pc to check) |
_________________ Money is the measurement of time - Me
"You can all go to hell…I’m going to Texas" -Davy Crockett |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/3234de284ee21bd39eecd.jpg)
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Fri Dec 31, 2010 4:19 pm |
|
I have a Tabbed Content module for download on my site that uses that same javascript. It may either do what you need or show what needs to be done to use it inside the content module.
http://trickedoutnews.com/download-file-84.html |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Sat Jan 01, 2011 5:58 am |
|
Are you using RavenNuke (tm) or plain old PHP-Nuke?
If you are not using RN you cannot use the addToHead functions |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/48fb116845dfecf66294c.gif)
Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Sun Jan 02, 2011 8:31 am |
|
You probably have a syntax error in your config.php and it may be above that line. Usually a missing or extra single quote, or a missing semi colon at the end of a line. Use a decent text editor such as notepad++ http://notepad-plus-plus.org/ (never use standard notepad)
Did you possibly use a single quote in your $sitekey? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 03, 2011 6:43 pm |
|
Is this install on an active server or a local install like xampp or wamp? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 04, 2011 4:02 am |
|
Please try to ask only one question per topic otherwise it gets difficult for people to find an answer to something when they find the forum search.
What exactly do you mean by "how to activate it"?
The fckeditor is turned on by default (search for $advanced_editor in your nukeroot/rnconfig.php file).
However, even though it is turned on, it will only work in modules who's form TEXTAREA is adapted to use it.
I'm sure there is some documentation on how to do this (it is quite simple) but I cannot find the link at the moment. Maybe you can take a look in the wysiwyg forum? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
PHrEEkie
Subject Matter Expert
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Feb 23, 2004
Posts: 358
|
Posted:
Tue Jan 04, 2011 5:01 am |
|
Actually, there's quite a few posts around here if you do a search... might help you get started on figuring out the real questions you'll eventually be asking. hehe |
_________________ PHP - Breaking your legacy scripts one build at a time. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|