Renaming Spoiler
4 posters
Page 1 of 1
Renaming Spoiler
IS its at all possible to rename the text that is displayed on a post when a content is marked as spoiler. I would like to replace it with Open to read more.
Re: Renaming Spoiler
- Just a test:
- Testing, this post will be edited soon.
EDIT: Use this jQuery code for phpBB 3 (and possibly older versions, I haven't tested this on my forum yet).- Code:
jQuery(document).ready(function(){
jQuery('dl.spoiler dt').each(function(){
if(/Spoiler\:/.test(jQuery(this).html())) jQuery(this).html('Click to read more.');
});
});
Last edited by Ultron's Vision on June 7th 2013, 1:39 am; edited 1 time in total
Re: Renaming Spoiler
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Renaming Spoiler
Ultron's Vision wrote:
- Just a test:
Testing, this post will be edited soon.
EDIT: Use this jQuery code for phpBB 3 (and possibly older versions, I haven't tested this on my forum yet).
- Code:
jQuery(document).ready(function(){
jQuery('dl.spoiler dt').each(function(){
if(/Spoiler\:/.test(jQuery(this).html())) jQuery(this).html('Click to read more.');
});
});
Yep that worked Thank you
Re: Renaming Spoiler
Topic Solved & Locked |
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» Spoiler Problem
» Renaming related content displayed in messages and notifications
» Spoiler box.
» Spoiler Title
» Issue with spoiler
» Renaming related content displayed in messages and notifications
» Spoiler box.
» Spoiler Title
» Issue with spoiler
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum