Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
rickleigh
Worker
Worker


Joined: Jan 06, 2009
Posts: 183

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

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?

_________________
Thanks,
Rick Leigh 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

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

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.

_________________
Only registered users can see links on this board! Get registered or login!

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
PostPosted: Sun Nov 01, 2009 8:19 am Reply with quote

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
PostPosted: Sun Nov 01, 2009 10:11 am Reply with quote

I had an error in the above code, I have replaced it with the correct code
 
rickleigh
PostPosted: Sun Nov 01, 2009 10:12 am Reply with quote

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!


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


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


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


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


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


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



As always, Thanks for lending a hand Wink
 
rickleigh
PostPosted: Sun Nov 01, 2009 10:18 am Reply with quote

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
PostPosted: Sun Nov 01, 2009 10:24 am Reply with quote

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
PostPosted: Sun Nov 01, 2009 10:33 am Reply with quote

Hmmm. That does sound like js conflicts. Remove the added code and I will do some fine tuning after football...
 
rickleigh
PostPosted: Tue Nov 10, 2009 4:06 pm Reply with quote

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
 
tauhid
Hangin' Around


Joined: Apr 11, 2009
Posts: 48

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

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    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

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 ©