Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
killing-hours
RavenNuke(tm) Development Team



Joined: Oct 01, 2010
Posts: 438
Location: Houston, Tx

PostPosted: Fri Dec 31, 2010 3:50 pm Reply with quote

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 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Fri Dec 31, 2010 4:19 pm Reply with quote

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



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sat Jan 01, 2011 5:58 am Reply with quote

Are you using RavenNuke (tm) or plain old PHP-Nuke?
If you are not using RN you cannot use the addToHead functions
 
View user's profile Send private message Send e-mail
spasticdonkey
RavenNuke(tm) Development Team



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

PostPosted: Sun Jan 02, 2011 8:31 am Reply with quote

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?
 
View user's profile Send private message Visit poster's website
nuken







PostPosted: Mon Jan 03, 2011 6:43 pm Reply with quote

Is this install on an active server or a local install like xampp or wamp?
 
Guardian2003







PostPosted: Tue Jan 04, 2011 4:02 am Reply with quote

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?
 
PHrEEkie
Subject Matter Expert



Joined: Feb 23, 2004
Posts: 358

PostPosted: Tue Jan 04, 2011 5:01 am Reply with quote

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. Wink hehe

_________________
PHP - Breaking your legacy scripts one build at a time. 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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 ©