Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1123

PostPosted: Tue Sep 23, 2014 3:46 am Reply with quote

Before posting this one I made a deep search reading all info about block-ForumsCollapsing.php but unfortunately I couldn't find any answer.

Actually this block is working properly but if I decide to load jquery.js inside the body of the website not in head then the SHOW/HIDE feature won't work.

Example to understand:

I open jquery.php

Search for this line

Code:
addJSToHead('includes/jquery/jquery.js', 'file');
//This will work

I change into

Code:
addJSToBody('includes/jquery/jquery.js', 'file');
// If javascript is loading at the end it will speed your website up like 10%

Note: I guess there is some css style involved with this block and that is why this feauture won't work properly if javascript is loading in the body but what if we put apart the css values. How can I do that? Is it possible? If not then I will remove that block for sure. it is not so important but I was curious on how to fix this issue.


Last edited by hicuxunicorniobestbuildpc on Wed Sep 24, 2014 8:28 am; edited 1 time in total 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1774

PostPosted: Tue Sep 23, 2014 12:53 pm Reply with quote

Every jquery addon works only if the jquery.js was loaded before the addon code is used because the jquery.js is a library. You should make sure that the jquery.js is loaded before the function JSToBody returns in the footer. So you should find another way and also another file to load the jquery.js instead to use JSToBody() and then you can use this function for the jquery code of the block.
[ Only registered users can see links on this board! Get registered or login! ]

_________________
Github: RavenNuke 
View user's profile Send private message
hicuxunicorniobestbuildpc







PostPosted: Wed Sep 24, 2014 6:08 am Reply with quote

How can I do that. I tried to load it from the same file but it didn't work. By the way, thanks for the link. it looks interesting.
 
neralex







PostPosted: Wed Sep 24, 2014 6:25 am Reply with quote

Which "same" file?
 
hicuxunicorniobestbuildpc







PostPosted: Wed Sep 24, 2014 7:10 am Reply with quote

Guys! The problem has been solved. Thanks for making my time difficult neralex.

ROTFL
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

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 ©