EnglishDeutsch
If you use Software of WebConstruction.ch please consider donating a small amount, that I can do further development and updates. more...
 
Amount: 

 

Dear Forum Users. Please don't spam this forum. Your spam will be deleted and your account deactivated (I just click your username and you are gone). So don't mess around with your and my time.

Welcome, Guest
Please Login or Register.    Lost Password?
Get support for "Show / Hide Content"-Plugin
Go to bottomPage: 123
TOPIC: Show/Hide not working
#1178
Show/Hide not working 1 Year, 7 Months ago Karma: 0
Hi,

first of all congratulations for this great Plug-In.

I 've just installed it and I have some problems. When I load my page the content I want to be hide is open. When I am trying to close the content it does nothing. Is there any problem with mootools in my page? Can I do something to see if there is a conflict with other Plug-Ins or if I have the last version of mootools?

Thank you in advance.

More Details Plug-In parametres:

Open No
Open Once No
Hide Title No
Close on Click Yes
Open by hover No
Horizontal No
Span Title Yes

I have tried a lot of combinations but nothing.
Demon_Cleaner
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/27 12:23 By Demon_Cleaner.
The administrator has disabled public write access.
 
#1181
Re:Show/Hide not working 1 Year, 7 Months ago Karma: 4
Hi,

Be sure that Javascript is switched on in your Browser and that in the plugin params (Plugin Manager -> Show / Hide Content) the first at the top right labeled with "Plugin enabled" is set to yes.
webconstructor
Admin
Posts: 329
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1184
Re:Show/Hide not working 1 Year, 7 Months ago Karma: 0
Unfortunately all these are ok. But thank you for the quick reply. Is there something else to check out?
Demon_Cleaner
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1185
Re:Show/Hide not working 1 Year, 7 Months ago Karma: 0
I actually have exactly the same problem.

Not afraid of admitting my knowledge of javascript is limited at best - perhaps here lies the issue!

Please see the top article:

tinyurl.com/3ay3lha

Anyway, at an attempt to solve this issue I must ask:

Do I need to call the mootools library, or any other in my template index.php?

Is there any other reason why this plugin would fail to work?

Could TinyMCE 2.0 be disturbing the code by placing <p> tags over <div>'s? I've tried switching to HTML view and saving but it seems to persist in adding them.

I place the code like this in my article:

blah blah blah

{showhide1 }

blah blah

{/showhide1}

Thanks in advance for your help - I'll be very sad if I can't have your plugin integrated into my site.
tt0101
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1186
Re:Show/Hide not working 1 Year, 7 Months ago Karma: 4
tt0101 wrote:
I actually have exactly the same problem.

Not afraid of admitting my knowledge of javascript is limited at best - perhaps here lies the issue!

Use Firefox and open "Error Console" under extras. There you can check if there are Javascript errors. If yes, post a copy of the error.

tt0101 wrote:

Please see the top article:

tinyurl.com/3ay3lha


Wrong link?

tt0101 wrote:

Anyway, at an attempt to solve this issue I must ask:

Do I need to call the mootools library, or any other in my template index.php?

No, mootools should be loaded automatically when this plugin is used. But to be sure, add the following code to your template index.php (at the start of index.php). Please post if this solved the issue.

Code:

<?php jimport('joomla.html.html');
JHTML::_('behavior.mootools');?>



tt0101 wrote:

Is there any other reason why this plugin would fail to work?

Could TinyMCE 2.0 be disturbing the code by placing <p> tags over <div>'s? I've tried switching to HTML view and saving but it seems to persist in adding them.


Go to the backend to the Plugin Manager and open the "Editor - TinyMCE 3.2.4.1"

Set the Parameter "Code Cleanup on Startup" to off and "Code cleanup" on save
tt0101 wrote:

I place the code like this in my article:

blah blah blah

{showhide1 }

blah blah

{/showhide1}

Be sure you are using plg_showhidecontent_1.0.2.zip (Version 1.0.2)
webconstructor
Admin
Posts: 329
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1187
Re:Show/Hide not working 1 Year, 7 Months ago Karma: 0
Hey dude,

Thanks so much for your help so far.

my bad with the link, I tried XStandard editor and that managed to wipe the text in that article. I've made up another.

tinyurl.com/3ay3lha

I've switched of HTML cleanup for TinyMCE in the backend, and also added the call for mootools in the head section index.php and still no joy.

The only other thing I can think of is that it may have something to do with the fact that my site's running on a subdomain and not the root - joomla is installed on www.url.com/lab

I should add that all other functions seem fine.

Thanks again

EDIT: Also checked the error console which is coming up blank on load of the front page.
tt0101
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/29 13:45 By tt0101.Reason: update
The administrator has disabled public write access.
 
Go to topPage: 123