It is currently July 6th, 2020, 9:16 pm



Post new topic Reply to topic  [ 852 posts ]  Go to page Previous  1 ... 53, 54, 55, 56, 57
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: June 7th, 2020, 9:10 am 

Joined: December 30th, 2013, 3:54 pm
Posts: 246
Hey
I don't know if this is possible to create taqs from post content with regex.
Let's say I want to add generate tags based on this line without loosing the text

before
Code:
[b]Genre:[/b] Animation, Crime, Drama, Mystery, Sci-Fi, Thriller


After
Code:
[b]Genre:[/b] <tags>Animation, Crime, Drama, Mystery, Sci-Fi, Thriller</tags>Animation, Crime, Drama, Mystery, Sci-Fi, Thriller


Ofc the genre words will change
Code:
[b]Genre:[/b]
will always be there

That way tags will be posted and text will remain.
Thank You


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 7th, 2020, 11:53 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 10501
Location: Earth
If you're using themaCreator to generate the posts just update your "Main" template in themaCreator and add this line anywhere:

Code:
<tags>{#imdbGenres#}</tags>

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 7th, 2020, 2:59 pm 

Joined: December 30th, 2013, 3:54 pm
Posts: 246
That may work also. Thank You

I've one more Freddy:

before
Code:
</center>
efery text
after center should be gone

after
Code:
</center>


Basically everything after center tag.

Cheers!


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 7th, 2020, 4:00 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 10501
Location: Earth
Hm... you wrote the "/center" tag as HTML, are you sure that's correct?

Also how it should handle in case of multiple "/center" tags? Should it remove everything after the first "/center" tag or the last "/center" tag?

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 7th, 2020, 4:05 pm 

Joined: December 30th, 2013, 3:54 pm
Posts: 246
Yes, html is right.
I only use one center tag, so that's not a problem. It should remove everything after the closing center.
Thank You.


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 7th, 2020, 4:13 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 10501
Location: Earth
Search for:
Code:
(?s)(</center>).+


Replace with:
Code:
($1)


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 7th, 2020, 8:10 pm 

Joined: December 30th, 2013, 3:54 pm
Posts: 246
Thank You. Works fine.


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 9th, 2020, 11:14 am 

Joined: January 13th, 2014, 7:59 pm
Posts: 90
Hi Freddy
I need this change in one forum

before

Code:
The 13th Warrior 1999 1080p BRRip x265-RARBG [1.6 GB]
Locked Alone 2018 WEBRip x264-ION10 [803 MB]
Vida S03E05 Episode 21 720p AMZN WEB-DL DDP5 1 H 264-KiNGS [1.41 GB]
Snowpiercer S01E03 Access Is Power 720p NF WEBRip DD+5 1 x264- [2.16 GB]


after

Code:
The 13th Warrior 1999 1080p BRRip x265-RARBG
Locked Alone 2018 WEBRip x264-ION10
Vida S03E05 Episode 21 720p AMZN WEB-DL DDP5 1 H 264-KiNGS
Snowpiercer S01E03 Access Is Power 720p NF WEBRip DD+5 1 x264-


Thank You


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 9th, 2020, 1:05 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 10501
Location: Earth
For subject this would work:

Search for:
Code:
\[.+\]$


Replace with:
Code:
(leave empty)


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 29th, 2020, 9:59 pm 

Joined: August 17th, 2016, 8:29 pm
Posts: 193
Hello bro

before
Code:
Effective Cycling



After

Code:
Effective Cycling-{#bookAuthor#}

mean add author name at the end of book title
Thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 30th, 2020, 4:57 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 10501
Location: Earth
If this for themaCreator then in your "Main" template just add the <subject> tag with what you want.

Code:
<subject>{#folderName#} - {#bookAuthor#}</subject>


And please use themaCreator forum for themaCreator related things.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 30th, 2020, 6:53 pm 

Joined: August 17th, 2016, 8:29 pm
Posts: 193
sorry bro for this mistake
thanks a lot


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 852 posts ]  Go to page Previous  1 ... 53, 54, 55, 56, 57

Who is online

Users browsing this forum: No registered users and 3 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