 |
 |
 |
 |
#315065 - 08/02/07 11:43 PM
Re: dynamic images
[Re: TheDude]
|
Lurker
Registered: 06/03/04
Posts: 4
|
I think we need something like this, updated for the latest version http://www.ubbdev.com/forums/ubbthreads.php?ubb=showflat&Number=264598#Post264598Going by that, I figure it's this code that needs to be changed if( ($config['ALLOW_IMAGE_MARKUP'] && $type != "sig") || ( $config['IMAGE_MARKUP_IN_SIGS'] && $type == "sig" ) ) {
$regexes[] = array( "#\[img\]([^?\['\"]+?)\.(gif|png|jpg|jpeg)\[/img\]#i", '<img src="\1.\2" alt="" />' );
$regexes[] = array( "#\[image\]([^?\['\"]+?)\.(gif|png|jpg|jpeg)\[/image\]#i", '<img src="\1.\2" alt="" />' );
$regexes[] = array( "#\[img:(left|right|center)\]([^?\['\"]+?)\.(gif|png|jpg|jpeg)\[/img\]#i", '<img src="\2.\3" align="\1" alt="" />' );
$regexes[] = array( "#\[image:(left|right|center)\]([^?\['\"]+?)\.(gif|png|jpg|jpeg)\[/image\]#i", '<img src="\2.\3" align="\1" alt="" />' ); But I don't do regex so I have no idea. If I remove the ? from [img]image.php?text=sometext&ext=.gif[/img] then it will post as an image but won't show the correct text. What do we have to change in that regex to allow the "?" ??? Or is it altogether somwhere else in the forum?
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|