|
|
Joined: Dec 2004
Posts: 36
Junior Member
|
Junior Member
Joined: Dec 2004
Posts: 36 |
some users complain that links structured like the example below will not show the image, but the full url only. 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. [image] http://chatmenude.com/plaza/gallery/wm.php?pid=5595&mode=fullsize[/im age] The image shows fine when called in a browser window, but not between the [image] tags.
Last edited by nosleep; 01/18/2005 2:16 PM.
nosleep
|
|
|
|
Joined: Aug 2004
Posts: 173
Member
|
Member
Joined: Aug 2004
Posts: 173 |
[image][/image]
Your closing tag is wrong. It needs to be as above
|
|
|
|
Joined: Dec 2004
Posts: 36
Junior Member
|
Junior Member
Joined: Dec 2004
Posts: 36 |
nosleep
|
|
|
|
Joined: Aug 2004
Posts: 173
Member
|
Member
Joined: Aug 2004
Posts: 173 |
[] http://www.parentforum.org/images/eric.gif[/] The above works 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
Last edited by dparvin; 01/19/2005 3:50 AM.
|
|
|
|
Joined: Jul 2001
Posts: 808
Coder
|
Coder
Joined: Jul 2001
Posts: 808 |
.php is not a image  you try to display a script generated image, not the image itself.
|
|
|
|
Joined: Dec 2004
Posts: 36
Junior Member
|
Junior Member
Joined: Dec 2004
Posts: 36 |
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
|
|
|
|
Joined: Aug 2004
Posts: 173
Member
|
Member
Joined: Aug 2004
Posts: 173 |
This is what I see when I look at the properties of that picture The image “http://chatmenude.com/plaza/gallery/wm.php?pid=5595&mode=fullsize” cannot be displayed, because it contains errors. Do you have another picture?
|
|
|
|
Joined: Dec 2004
Posts: 36
Junior Member
|
Junior Member
Joined: Dec 2004
Posts: 36 |
nosleep
|
|
|
|
Joined: Sep 2003
Posts: 488
Code Monkey
|
Code Monkey
Joined: Sep 2003
Posts: 488 |
Yeah you'll need to hack Threads for that. Here's what you do... In ubbt.inc.php: CHANGE THIS: // ---------------------<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","<img src=\"http\\2.\\3\">",$Body);<br /> }<br /> } TO THIS: // ---------------------<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","<img src=\"http\\2.\\3\">",$Body);<br /> }<br /> }
|
|
|
|
Joined: Dec 2004
Posts: 36
Junior Member
|
Junior Member
Joined: Dec 2004
Posts: 36 |
absolutely wonderful Twisty, I owe you one. Works great 
nosleep
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Ack - be dealthy careful with that.... allowing people to link to scripts is a big security risk.  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. 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|