| Author |
Message |
rickleigh Worker


Joined: Jan 06, 2009 Posts: 183
|
Posted:
Sat Oct 31, 2009 10:50 pm |
|
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? |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1437 Location: North Carolina
|
Posted:
Sun Nov 01, 2009 8:14 am |
|
Try this Rick...
open modules/AutoTheme/includes/atExtended and find
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 |
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1437 Location: North Carolina
|
Posted:
Sun Nov 01, 2009 8:19 am |
|
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. |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1437 Location: North Carolina
|
Posted:
Sun Nov 01, 2009 10:11 am |
|
I had an error in the above code, I have replaced it with the correct code |
|
|
|
 |
rickleigh Worker


Joined: Jan 06, 2009 Posts: 183
|
Posted:
Sun Nov 01, 2009 10:12 am |
|
| nuken wrote: | Try this Rick...
open modules/AutoTheme/includes/atExtended and find
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:
Message: 'jQuery' is undefined
Line: 3
Char: 1
Code: 0
URI:
Message: Object expected
Line: 45
Char: 4
Code: 0
URI:
Message: 'jQuery' is undefined
Line: 9
Char: 1
Code: 0
URI:
Message: 'jQuery' is undefined
Line: 13
Char: 2
Code: 0
URI:
Message: 'jQuery' is undefined
Line: 17
Char: 2
Code: 0
URI:
Message: Object expected
Line: 1
Char: 1
Code: 0
URI:
|
As always, Thanks for lending a hand  |
|
|
|
 |
rickleigh Worker


Joined: Jan 06, 2009 Posts: 183
|
Posted:
Sun Nov 01, 2009 10:18 am |
|
| 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. |
|
|
|
 |
rickleigh Worker


Joined: Jan 06, 2009 Posts: 183
|
Posted:
Sun Nov 01, 2009 10:24 am |
|
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 |
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1437 Location: North Carolina
|
Posted:
Sun Nov 01, 2009 10:33 am |
|
Hmmm. That does sound like js conflicts. Remove the added code and I will do some fine tuning after football... |
|
|
|
 |
rickleigh Worker


Joined: Jan 06, 2009 Posts: 183
|
Posted:
Tue Nov 10, 2009 4:06 pm |
|
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  |
|
|
|
 |
tauhid Hangin' Around

Joined: Apr 11, 2009 Posts: 48
|
Posted:
Mon Dec 28, 2009 11:00 am |
|
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> |
|
|
|
|
 |
|
|
|
|