Jump to content
xisto Community
Sign in to follow this  
iGuest

Image in Signature problems

Recommended Posts

Ok I have read forum after forum on trying to fix this issue, here and at Nuke Cops.
Im using php-nuke 7.5
and when I try to use an image in my signature I get just the code nothing else. Im able to use the code in the forum message and image will appear but not in the signature.
I have changed the code in bbcode.php to this

// [img=image_url_here] code.. $text = preg_replace("#[img=((ht|f)tp://)([^ ?&="nrt<]*?(.(php[^[]*|jpg|jpeg|gif|png)))]#sie", "'[img:$uid]1' . str_replace(' ', '%20', '3') . '[/img:$uid]'", $text);
and still nothing.
I have allowed images in sig. and everything I could think of, any other ideas?

Share this post


Link to post
Share on other sites

what is the extension of the image you wanna place. Right now, that I see in this code that only images that end with the extension .jpg, .jpeg, .gif and .png will be showed. Other files like .bmp and .ico will not be showed.

Tip:
Change

// [img=image_url_here] code.. $text = preg_replace("#[img=((ht|f)tp://)([^ ?&="nrt<]*?(.(php[^[]*|jpg|jpeg|gif|png)))]#sie", "'[img:$uid]1' . str_replace(' ', '%20', '3') . '[/img:$uid]'", $text);

into
// [img=image_url_here] code.. $text = preg_replace("#[img=((ht|f)tp://)([^ ?&="nrt<]*?(.(php[^[]*|jpg|jpeg|gif|png|bmp|php|ico|pcx)))]#sie", "'[img:$uid]1' . str_replace(' ', '%20', '3') . '[/img:$uid]'", $text);

See what is changed?

jpg|jpeg|gif|png

Turned into

jpg|jpeg|gif|png|bmp|php|ico|pcx

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.