It is currently March 29th, 2024, 1:27 am



Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10 ... 74  Next
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: April 6th, 2013, 10:40 am 

Joined: March 31st, 2012, 8:50 am
Posts: 338
freddy, i need help with regex. i want to change this links from hide code:

[hide]link.com/part1.html
link.com/part2.html
link.com/part3.html
link.com/part4.html
link.com/part5.html[/hide]

to

[hide]link.com/part1.html<br />
link.com/part2.html<br />
link.com/part3.html<br />
link.com/part4.html<br />
link.com/part5.html<br />[/hide]

links will be different...i just need to put that <br /> to the end of every link.


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 6th, 2013, 11:06 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
If you want to convert the HTML then just enable the setting in "FORUMS" -> "Other" to convert message to HTML.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 6th, 2013, 11:13 am 

Joined: March 31st, 2012, 8:50 am
Posts: 338
not working with HTML for that blog...looks messy the post. have some combined html with bbcode and i need some replacements.


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 6th, 2013, 11:16 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Just replace all \n to <br/> then. If they support the <br/> it should be fine. This don't need to be regex at all.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 6th, 2013, 11:47 am 

Joined: March 31st, 2012, 8:50 am
Posts: 338
i replaced \n with <br /> but not work...show this:

Image

and need to show like this:

Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 6th, 2013, 11:50 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
If you need two new lines then add two new lines in your message like this:

[hide]link.com/part1.html

link.com/part2.html

link.com/part3.html

link.com/part4.html

link.com/part5.html[/hide]

Also maybe they need <br/> and not <br />

Actually make sure to mark the "Regex" checkbox. It must be enabled for the replacement.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 6th, 2013, 11:54 am 

Joined: March 31st, 2012, 8:50 am
Posts: 338
not necessary but in the first screen you see like it show...link one after one... not with pause <br/>. this is the problem.

edit... so, need regex for \n. ok :D let's try. thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 6th, 2013, 11:58 am 

Joined: March 31st, 2012, 8:50 am
Posts: 338
oh yeah baby. :D thanks for your help.


Top
 Profile  
Reply with quote  
 Post subject: Wordpress & Regex
PostPosted: April 9th, 2013, 9:37 pm 

Joined: May 29th, 2011, 10:47 pm
Posts: 286
Hi Freddy, I need help. Rapidgator is the guilty:

I use regex for post links in my WP blog for target blank my links like this:

Search String: http://rapidgator\.net[^\s\[\]<'\"]+
Replace With: <a href="$0" target="_blank">$0</a>

Ok, all works fine. Regex it's an absolutely excellent tool but there is a problem with ALL rapidgator links. They are very large!!

Example to normal link:
Code:
http://rapidgator.net/file/211b86a777b252be65ee8fe19df23707/LaceyChanning.part1.rar.html


it's posible mith regex replace this link:

Code:
http://rapidgator.net/file/211b86a777b252be65ee8fe19df23707/LaceyChanning.part1.rar.html


To this:

Code:
LaceyChanning.part1


Uploaded uses short links, but sometimes appears large too. I use the same regex replace than rapidgator.

If this could be changed I'm thinking to buy a huge mansion full of bitches for you, Freddy. You deserve it! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Wordpress & Regex
PostPosted: April 9th, 2013, 10:58 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search String: http://rapidgator\.net[^\s\[\]<'\"]+/([^\s\[\]<'\"]+)
Replace With: <a href="$0" target="_blank">$1</a>

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Wordpress & Regex
PostPosted: April 10th, 2013, 9:25 am 

Joined: May 29th, 2011, 10:47 pm
Posts: 286
Freddy wrote:
Search String: http://rapidgator\.net[^\s\[\]<'\"]+/([^\s\[\]<'\"]+)
Replace With: <a href="$0" target="_blank">$1</a>


Awesome. Thanks Freddy, works fine.


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 15th, 2013, 6:26 pm 

Joined: January 20th, 2013, 5:46 am
Posts: 16
Hi Freddy, I need help.

Code:
Sorority Party Massacre (2013) DVDRip x264 AC3-OFFLiNE

[url=http://img.com/1133.html][img]http://ist2-1.img.com/123.jpg[/img][/url]

[links]http://uploaded.net/file/6tv5qkgs/Veronica.part1.rar[/links]



to this

Code:
[CENTER][SIZE="5"]

[b]Sorority Party Massacre (2013) DVDRip x264 AC3-OFFLiNE[/b]

[url=http://img.com/1133.html][img]http://ist2-1.img.com/123.jpg[/img][/url]

[links]http://uploaded.net/file/6tv5qkgs/Veronica.part1.rar[/links]

[/SIZE][/CENTER]


thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 15th, 2013, 6:59 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
I would suggest just write the message like this:

Code:
[CENTER][SIZE="5"]

[b]Sorority Party Massacre (2013) DVDRip x264 AC3-OFFLiNE[/b]

[url=http://img.com/1133.html][img]http://ist2-1.img.com/123.jpg[/img][/url]

[links]http://uploaded.net/file/6tv5qkgs/Veronica.part1.rar[/links]

[/SIZE][/CENTER]


And just remove with replacements [center] tag where it's not supported.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 15th, 2013, 7:15 pm 

Joined: January 20th, 2013, 5:46 am
Posts: 16
:shock:

i like convert first to second :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 15th, 2013, 7:42 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Your example is not really possible. Just write your message like that, and remove the [center] where needed.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10 ... 74  Next

Who is online

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