php forum
php mysql forum
php mysql smarty
 
Topic Options
#283146 - 01/18/05 01:15 PM linked image won't show
nosleep Offline
Junior Member

Registered: 12/08/04
Posts: 36
Loc: DE
some users complain that links structured like the example below will not show the image, but the full url only. <br /> <br />Question: is there any way that I could make image links like this show the actual image on 6.5 ? I would be most grateful for a solution. <br /> <br />[image]http://chatmenude.com/plaza/gallery/wm.php?pid=5595&mode=fullsize[/im <br />age] <br /> <br />The image shows fine when called in a browser window, but not between the [image] tags.


Edited by nosleep (01/18/05 01:16 PM)
_________________________
nosleep

Top
#283147 - 01/18/05 03:46 PM Re: linked image won't show [Re: bobbychet]
dparvin Offline
Member

Registered: 08/08/04
Posts: 184
Loc: UK
[image][/image] <br /><br />Your closing tag is wrong. It needs to be as above
_________________________
parentforum.org

Top
#283148 - 01/18/05 11:48 PM Re: linked image won't show [Re: DMClark]
nosleep Offline
Junior Member

Registered: 12/08/04
Posts: 36
Loc: DE
[img]http://chatmenude.com/plaza/gallery/wm.php?pid=5595&mode=fullsize[/img]<br /><br />no, that is not the reason. See yourself.
_________________________
nosleep

Top
#283149 - 01/19/05 02:47 AM Re: linked image won't show [Re: bobbychet]
dparvin Offline
Member

Registered: 08/08/04
Posts: 184
Loc: UK
[]http://www.parentforum.org/images/eric.gif[/] <br /> <br />The above works <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" /> <br /> <br /> <br />I think you have link pictures disabled. I can't remember how to change that, I will try and find out if no one else answer before me


Edited by dparvin (01/19/05 02:50 AM)

Top
#283150 - 01/19/05 04:16 AM Re: linked image won't show [Re: DMClark]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
.php is not a image <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> you try to display a script generated image, not the image itself.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#283151 - 01/19/05 05:37 AM Re: linked image won't show [Re: landyphil]
nosleep Offline
Junior Member

Registered: 12/08/04
Posts: 36
Loc: DE
yes, the link is php, and not an image. But that link displays fine in a phpbb2 forum and shows the image. There must be a way to have that working in UBB too?
_________________________
nosleep

Top
#283152 - 01/19/05 06:53 AM Re: linked image won't show [Re: bobbychet]
dparvin Offline
Member

Registered: 08/08/04
Posts: 184
Loc: UK
This is what I see when I look at the properties of that picture<br /><br />
Code:
 The image “http://chatmenude.com/plaza/gallery/wm.php?pid=5595&amp;mode=fullsize” cannot be displayed, because it contains errors. 
<br /><br />Do you have another picture?
_________________________
parentforum.org

Top
#283153 - 01/19/05 12:27 PM Re: linked image won't show [Re: DMClark]
nosleep Offline
Junior Member

Registered: 12/08/04
Posts: 36
Loc: DE
yes, I have.<br /><br />This one (same problem):<br /><br /> [img]http://chatmenude.com/plaza/gallery/wm.php?pid=5595&mode=fullsize[/img]<br /><br />one more<br /> [img]http://chatmenude.com/plaza/gallery/wm.php?pid=5594&mode=fullsize[/img]
_________________________
nosleep

Top
#283154 - 01/19/05 01:48 PM Re: linked image won't show [Re: bobbychet]
Twisty Offline
Code Monkey

Registered: 09/26/03
Posts: 524
Yeah you'll need to hack Threads for that. Here's what you do...<br /><br />In ubbt.inc.php:<br /><br />CHANGE THIS:<br /><br />
Code:
    // ---------------------<br />    // Convert image markup <br />       if ($config['allowimages']) {<br />          if (!preg_match("/(\[IMG\]|\[{$ubbt_lang['TEXT_IMAGE']}\])(.*?)(\?|\"|')(.*?)(\[\/IMG\]|\[\/{$ubbt_lang['TEXT_IMAGE']}\])/",$Body)) {<br />             $Body = preg_replace("/(\[IMG\]|\[{$ubbt_lang['TEXT_IMAGE']}\])http([^\[]*)\.(gif|jpg|png)(\[\/IMG\]|\[\/{$ubbt_lang['TEXT_IMAGE']}\])/i","&lt;img src=\"http\\2.\\3\"&gt;",$Body);<br />          }<br />       }  
<br /><br />TO THIS:<br /><br />
Code:
    // ---------------------<br />    // Convert image markup <br />       if ($config['allowimages']) {<br />          if (!preg_match("/(\[IMG\]|\[{$ubbt_lang['TEXT_IMAGE']}\])(.*?)(\"|')(.*?)(\[\/IMG\]|\[\/{$ubbt_lang['TEXT_IMAGE']}\])/",$Body)) {<br />             $Body = preg_replace("/(\[IMG\]|\[{$ubbt_lang['TEXT_IMAGE']}\])http([^\[]*)\.(.*?)(\[\/IMG\]|\[\/{$ubbt_lang['TEXT_IMAGE']}\])/i","&lt;img src=\"http\\2.\\3\"&gt;",$Body);<br />          }<br />       }  
_________________________
Twisty []http://www.mameworld.info/misc/nana2.gif[/]
MAMEWorld

Top
#283155 - 01/20/05 08:33 AM Re: linked image won't show [Re: smoknz28]
nosleep Offline
Junior Member

Registered: 12/08/04
Posts: 36
Loc: DE
absolutely wonderful Twisty, I owe you one. Works great <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
nosleep

Top
#283156 - 01/23/05 04:13 PM Re: linked image won't show [Re: bobbychet]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Ack - be dealthy careful with that.... allowing people to link to scripts is a big security risk. <img src="http://www.ubbdev.com/forum/images/graemlins/shocked.gif" alt="" /> That's why threads restricts it to real .gif, .jpg and .png files. This site was hacked last week as a result of something similar. <img src="http://www.ubbdev.com/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top


Moderator:  Deb 
Who's Online
0 registered (), 31 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks