hey 4seven, i don't know if i should open up a new topic or not, but the question is this.
i have this mod, well i had the old .3 version and i updated everything works fine, but i added some more variables for example, since most resize img mods have way too many things to configure and they also touch the sig img which i don't like, i added my own variables to images with and without the IMG bbcode, and in the preview they work, but once i go to the post it doesn't work.
i added the same code to the auto_video_embed_view.php file and it doesn't work!
do you think you give me a hand?
example when using preview and [IMG] code it works
this is the code i used in the auto_video_embed_post.php:
Code:
if (($image) && (strpos($preview_message, '//') !== false)){
$preview_message = preg_replace('#<img src="(.*?).(gif|jpe?g|png|bmp)" alt="' . $user->lang['IMAGE'] . '" \/>#is', '<a href="$1.$2" title="can you see this?" class="highslide" onclick="return hs.expand(this)"><img src="$1.$2" alt="{L_IMAGE}" style="width:25%; height:25%;" /></a>', $preview_message);}
which works fine in preview, but when i add the same code to the other file like so:
Code:
if (($image) && (strpos($message, '//') !== false)){
$message = preg_replace('#<img src="(.*?).(gif|jpe?g|png|bmp)" alt="' . $user->lang['IMAGE'] . '" \/>#is', '<a href="$1.$2" title="can you see this?" class="highslide" onclick="return hs.expand(this)"><img src="$1.$2" alt="{L_IMAGE}" style="width:25%; height:25%;" /></a>', $message);}
even tried changing:
Code:
alt="' . $user->lang['IMAGE'] . '"
Code:
alt="{L_IMAGE}"
but still nothing!
any ideas?