PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
rickleigh
Worker
Worker


Joined: Jan 06, 2009
Posts: 183

PostPosted: Sat Oct 31, 2009 10:50 pm Reply with quote Back to top

I have spent allot of time tweaking a theme I paid for to suite my sites content that is coded around autothemes. I posted on autotheme's forums for help with no reply. So I hope someone can help me here.

It seems that when using autothemes, the scripts in the header.php are not being called. Can someone guide me as to how I can embed this to work?
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

PostPosted: Sun Nov 01, 2009 8:14 am Reply with quote Back to top

Try this Rick...

open modules/AutoTheme/includes/atExtended and find

Code:
  } 
return $head;
}


just above return $head; add:
Code:
$head .= "<link rel=\"StyleSheet\" href=\"./themes/ravennuke.css\" type=\"text/css\" />\n";
$head .= "<link rel=\"StyleSheet\" href=\"includes/jquery/css/colorbox.css\" type=\"text/css\" />\n";
$head .= "<link rel=\"StyleSheet\" href=\"includes/nukeSEO/nukePIE.css\" type=\"text/css\" />\n";
$head .= "<link rel=\"StyleSheet\" href=\"includes/jquery/css/nukeNAV.css\" type=\"text/css\" />\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/rn.js\"></script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/jquery/jquery.js\"></script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/jquery/jquery.colorbox-min.js\"></script>\n";
$head .= "<script type=\"text/javascript\">\n";
$head .= "   $(document).ready(function(){\n";
$head .= "      $(\".colorbox\").colorbox({opacity:0.65, current:\"{current} of {total}\"});\n";
$head .= "      $(\".colorboxSEO\").colorbox({opacity:0.50, width:\"750\", height:\"300\", iframe:true});\n";
$head .= "   });\n";
$head .= "</script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/boxover/boxover.js\"></script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/jquery/jquery.hoverIntent.minified.js\"></script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/jquery/superfish.js\"></script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/jquery/supersubs.js\"></script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/jquery/nukeNAV.js\"></script>\n";
$head .= "\n";   


This is just a temporary fix until something else can be done. If you need extra javascript of css loaded, just add it like above.


Last edited by nuken on Sun Nov 01, 2009 10:10 am; edited 1 time in total
View user's profile Send private message Send e-mail Visit poster's website
nuken
RavenNuke(tm) Development Team


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

PostPosted: Sun Nov 01, 2009 8:19 am Reply with quote Back to top

That does not address all the issues with AutoThemes and RavenNuke(tm) 2.40 but it will get the css and js loaded that is needed.
View user's profile Send private message Send e-mail Visit poster's website
nuken
RavenNuke(tm) Development Team


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

PostPosted: Sun Nov 01, 2009 10:11 am Reply with quote Back to top

I had an error in the above code, I have replaced it with the correct code
View user's profile Send private message Send e-mail Visit poster's website
rickleigh
Worker
Worker


Joined: Jan 06, 2009
Posts: 183

PostPosted: Sun Nov 01, 2009 10:12 am Reply with quote Back to top

nuken wrote:
Try this Rick...

open modules/AutoTheme/includes/atExtended and find

Code:
  } 
return $head;
}


just above return $head; add:
Code:
$head .= "<link rel=\"StyleSheet\" href=\"./themes/ravennuke.css\" type=\"text/css\" />\n";
$head .= "<link rel=\"StyleSheet\" href=\"includes/jquery/css/colorbox.css\" type=\"text/css\" />\n";
$head .= "<link rel=\"StyleSheet\" href=\"includes/nukeSEO/nukePIE.css\" type=\"text/css\" />\n";
$head .= "<link rel=\"StyleSheet\" href=\"includes/jquery/css/nukeNAV.css\" type=\"text/css\" />\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/rn.js\"></script>\n";
$head .= "<script type=\"text/javascript\">\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/jquery/jquery.js\"></script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/jquery/jquery.colorbox-min.js\"></script>\n";
$head .= "<script type=\"text/javascript\">\n";
$head .= "   $(document).ready(function(){\n";
$head .= "      $(\".colorbox\").colorbox({opacity:0.65, current:\"{current} of {total}\"});\n";
$head .= "      $(\".colorboxSEO\").colorbox({opacity:0.50, width:\"750\", height:\"300\", iframe:true});\n";
$head .= "   });\n";
$head .= "</script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/boxover/boxover.js\"></script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/jquery/jquery.hoverIntent.minified.js\"></script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/jquery/superfish.js\"></script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/jquery/supersubs.js\"></script>\n";
$head .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"includes/jquery/nukeNAV.js\"></script>\n";
$head .= "\n";   


This is just a temporary fix until something else can be done. If you need extra javascript of css loaded, just add it like above.


Hi Nuken,

I tried the edits you provided and when I have them in, I get these errors from the browser:
Quote:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MSN OptimizedIE8;ENUS)
Timestamp: Sun, 1 Nov 2009 16:10:43 UTC


Message: Syntax error
Line: 42
Char: 1
Code: 0
URI:
Only registered users can see links on this board!
Get registered or login to the forums!



Message: 'jQuery' is undefined
Line: 3
Char: 1
Code: 0
URI:
Only registered users can see links on this board!
Get registered or login to the forums!



Message: Object expected
Line: 45
Char: 4
Code: 0
URI:
Only registered users can see links on this board!
Get registered or login to the forums!



Message: 'jQuery' is undefined
Line: 9
Char: 1
Code: 0
URI:
Only registered users can see links on this board!
Get registered or login to the forums!



Message: 'jQuery' is undefined
Line: 13
Char: 2
Code: 0
URI:
Only registered users can see links on this board!
Get registered or login to the forums!



Message: 'jQuery' is undefined
Line: 17
Char: 2
Code: 0
URI:
Only registered users can see links on this board!
Get registered or login to the forums!



Message: Object expected
Line: 1
Char: 1
Code: 0
URI:
Only registered users can see links on this board!
Get registered or login to the forums!




As always, Thanks for lending a hand Wink
View user's profile Send private message
rickleigh
Worker
Worker


Joined: Jan 06, 2009
Posts: 183

PostPosted: Sun Nov 01, 2009 10:18 am Reply with quote Back to top

nuken wrote:
I had an error in the above code, I have replaced it with the correct code


LOL, just seen your post and testing now.
View user's profile Send private message
rickleigh
Worker
Worker


Joined: Jan 06, 2009
Posts: 183

PostPosted: Sun Nov 01, 2009 10:24 am Reply with quote Back to top

Ok, Your correct edit seems to be working but with a conflict and issue with lightbox.

First, something now seems to be over riding my scripted for the slider on my homepage.

Second, The lightbox in the classifieds for images isn't providing a X to close the image out when you click on it.


Last edited by rickleigh on Sun Nov 01, 2009 10:40 am; edited 1 time in total
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

PostPosted: Sun Nov 01, 2009 10:33 am Reply with quote Back to top

Hmmm. That does sound like js conflicts. Remove the added code and I will do some fine tuning after football...
View user's profile Send private message Send e-mail Visit poster's website
rickleigh
Worker
Worker


Joined: Jan 06, 2009
Posts: 183

PostPosted: Tue Nov 10, 2009 4:06 pm Reply with quote Back to top

Am I the only one having issues with autotheme not loading all scripts from RN2.4.? I can't seem to get the developer to respond to my issues Sad
View user's profile Send private message
tauhid
Hangin' Around


Joined: Apr 11, 2009
Posts: 48

PostPosted: Mon Dec 28, 2009 11:00 am Reply with quote Back to top

modules/AutoTheme/templates/php-nuke/HTML401_Transitional.html

only add this
Code:

<link rel=\"StyleSheet\" href=\"./themes/ravennuke.css\" type=\"text/css\" />
<link rel=\"StyleSheet\" href=\"includes/jquery/css/colorbox.css\" type=\"text/css\" />
<link rel=\"StyleSheet\" href=\"includes/nukeSEO/nukePIE.css\" type=\"text/css\" />
<link rel=\"StyleSheet\" href=\"includes/jquery/css/nukeNAV.css\" type=\"text/css\" />
<script type="text/javascript" language="JavaScript" src="includes/rn.js"></script>
<script type="text/javascript" language="JavaScript" src="includes/jquery/jquery.js"></script>
<script type="text/javascript" language="JavaScript" src="includes/jquery/jquery.colorbox-min.js"></script>
<script type="text/javascript">
   $(document).ready(function(){
      $(".colorbox").colorbox({opacity:0.65, current:"{current} of {total}"});
      $(".colorboxSEO").colorbox({opacity:0.50, width:"750", height:"300", iframe:true});
   });
</script>
<script type="text/javascript" language="JavaScript" src="includes/boxover/boxover.js"></script>
<script type="text/javascript" language="JavaScript" src="includes/jquery/jquery.hoverIntent.minified.js"></script>
<script type="text/javascript" language="JavaScript" src="includes/jquery/superfish.js"></script>
<script type="text/javascript" language="JavaScript" src="includes/jquery/supersubs.js"></script>
<script type="text/javascript" language="JavaScript" src="includes/jquery/nukeNAV.js"></script>
View user's profile Send private message
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