Current time: 05-23-2012, 03:59 AM Hello There, Guest! (LoginRegister)


Post Reply 
Image extension mod/Dynamic images
02-10-2012, 10:08 PM
Post: #11
RE: Image extension mod/Dynamic images
(02-10-2012 08:45 PM)Jammerx2 Wrote:  You can use something such as this for the regular expression:

Code:
\[img\](http://|https://)((?!site1.com/|site2.com/).*?)\[/img\]

Change the sites to what you want. For the replacement use $1$2 if you want to show the url to the image.

Im not great with replacement expressions, the site which uses uploading there is 4 i want to use.

imageshack.us i.imgur.com puu.sh and my own site which is for example
http://www.imagehosting.com/image

I don't know how to get the part since it is /image to work correctly. Sorry I am sort of new, thanks alot!
Find all posts by this user
Quote this message in a reply
02-11-2012, 10:39 PM
Post: #12
RE: Image extension mod/Dynamic images
bump please.
Find all posts by this user
Quote this message in a reply
02-11-2012, 11:22 PM
Post: #13
RE: Image extension mod/Dynamic images
What exactly do you want? Do something like this:
Code:
\[img\](http://|https://)((?!imageshack.us/|i.imgur.com/|puu.sh/|yoursite.com/).*?)\[/img\]

+Rep Me If I Helped
View my plugin thread here.
Also, visit MyBBPlug.in/s/ for more plugins.

Visit this user's website Find all posts by this user
Quote this message in a reply
02-14-2012, 12:03 PM
Post: #14
RE: Image extension mod/Dynamic images
Basically my site uses a second directoy, for example mysite.com/images, so for the code I have \[img](http://|https://)((?!imageshack.us/|i.imgur.com/|puu.sh/|mysite/images/).*?)\[/img] but it is not working.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication