Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 13 Feb 2015, 02:51
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Spoiler tag without javascript?

A few users have said the spoiler tag isn't working, and I suspect it is because their phone doesn't allow it. Is it possible to do it without javascript? Or what is the best way to handle this issue?

Right now this is what we're using:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks.
Reply With Quote
  #2  
Old 13 Feb 2015, 08:53
OUTL4W OUTL4W is offline
 
Join Date: May 2013
I'm sure you'll see many different variations for this but here's what I use

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Works just fine on mobile....

Edit: didn't look at the entire code but it looks exact same almost but I have no issues on either vb3 or vb4 forum on mobile.

Last edited by OUTL4W; 13 Feb 2015 at 09:05.
Reply With Quote
  #3  
Old 13 Feb 2015, 10:07
Dave Dave is online now
 
Join Date: Jun 2010
Real name: Dave
It's not possible to do this without JavaScript, it needs to catch the onclick event on the button so it can then open/close the div with the content.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #4  
Old 13 Feb 2015, 17:46
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Thanks for the replies. For anyone using a spoiler, have you ever had any complaints about people who click and nothing happens? I suspect it is due to their browser not allowing javascript. Is this the case?
Reply With Quote
  #5  
Old 13 Feb 2015, 18:14
Dave Dave is online now
 
Join Date: Jun 2010
Real name: Dave
It's highly unlikely that someone has JavaScript disabled. JavaScript is enabled on pretty much all desktop and mobile browsers nowadays, unless they manually disabled it in the settings.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #6  
Old 14 Feb 2015, 10:20
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Originally Posted by pjkcards View Post
Thanks for the replies. For anyone using a spoiler, have you ever had any complaints about people who click and nothing happens? I suspect it is due to their browser not allowing javascript. Is this the case?
Guess it all depends what they were trying to show. If it was flash related then it would show as blank image. Only certain mobile web browser's will show flash content.
Reply With Quote
  #7  
Old 10 Mar 2015, 19:07
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Looks like it is the mobile theme disabling it.

When using the desktop version the spoilers work fine. When using mobile the mobile theme, it doesn't. What's the quickest way to solve this issue? Thanks.

Last edited by pjkcards; 07 Sep 2015 at 04:20.
Reply With Quote
  #8  
Old 10 Mar 2015, 20:01
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I don't really understand what's going on there, but it seems like in the mobile style, the big area that say "Show" is not the thing that needs to be clicked to show it. There's another <input> tag that's not showing up at all.
Reply With Quote
  #9  
Old 10 Mar 2015, 21:10
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Originally Posted by kh99 View Post
I don't really understand what's going on there, but it seems like in the mobile style, the big area that say "Show" is not the thing that needs to be clicked to show it. There's another <input> tag that's not showing up at all.
The example posted is 3 different kinds of spoiler tags, including the one I posted above, and the one Outl4w posted. What is the best way to resolve this? No idea why when clicked the input doesn't show. Thanks.
Reply With Quote
  #10  
Old 19 Mar 2015, 06:10
pjkcards pjkcards is offline
 
Join Date: Jul 2007
bump, thanks.
Reply With Quote
  #11  
Old 22 Mar 2015, 19:03
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Try this: http://codepen.io/AngelKrak/pen/FojxE
Reply With Quote
  #12  
Old 27 Mar 2015, 14:24
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Originally Posted by Black Snow View Post
its a lil wonky but I did find this...

replacement:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


additional.css:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

change the items in red to your preference....
Reply With Quote
  #13  
Old 22 Apr 2015, 18:09
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Thanks for the replies, but still not working. This is the result of the original, the one Black Snow recommended, and the last one is OutL4w:
http://i.imgur.com/nVkQ2Yv.png

Perhaps the theme is somehow messing with the show/hide. What's the best way to troubleshoot this?

Thanks.
Reply With Quote
  #14  
Old 01 Jun 2015, 06:12
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Bump. Just got a new mobile theme going and the Show button still does nothing. Anyone have a spoiler working on mobile themes?

Thanks.
Reply With Quote
  #15  
Old 24 Aug 2015, 03:35
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Still haven't been able to get this to work, see screenshot here:
http://i.imgur.com/nVkQ2Yv.png

Just tried this one too with the same result:
https://www.vbulletin.org/forum/showthread.php?t=289968

Any ideas to get a spolier working on mobile would be appreciated, thanks.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Posting Features [YUI] VSQ - Spoiler mad@Max vBulletin 4.x Add-ons 90 30 Aug 2014 00:12



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:11.

Layout Options | Width: Wide Color: