It is currently March 29th, 2024, 6:03 am



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Possible auto- spoiler for image?
PostPosted: March 9th, 2015, 1:47 pm 

Joined: January 7th, 2014, 8:52 am
Posts: 168
there are a few forum where required image spoiler.

Possible configure automatic for posting?


Top
 Profile  
Reply with quote  
 Post subject: Re: Possible auto- spoiler for image?
PostPosted: March 10th, 2015, 2:41 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Yes, with replacements.

I would need example of before and after.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Possible auto- spoiler for image?
PostPosted: March 10th, 2015, 3:17 pm 

Joined: January 7th, 2014, 8:52 am
Posts: 168
Code:
Before:

[url=http://xxy.html][img]http://xxy.com/yyx.jpg[/img][/url]
[url=http://xxy2.html][img]http://xxy.com/yyx2.jpg[/img][/url]

after:


[SPOILER]

[url=http://xxy.html][img]http://xxy.jpg[/img][/url]
[url=http://xxy2.html][img]http://xxy.com/yyx2.jpg[/img][/url]
[/SPOILER]


---------------

another type:

 before:

[img]http://xxy.jpg[/img]
[img]http://xx2y.jpg[/img]


after:


[SPOILER]

[img]http://xxy.jpg[/img]
[img]http://xx2y.jpg[/img]
[/SPOILER]





Top
 Profile  
Reply with quote  
 Post subject: Re: Possible auto- spoiler for image?
PostPosted: March 11th, 2015, 5:03 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
(?i)(.*\[img\].+?\[/img\].*\n?)+


Replace with:
Code:
[spoiler]\n$0[/spoiler]


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 6 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC