PHP code error?
Page 1 of 1
sausje
Banned



Posts: 17716
Location: Limboland, Netherlands
PostPosted: Tue, 13th Nov 2012 23:04    Post subject: PHP code error?
i have just updated my imagehost script but now the thumbnails with bb code generated links are linking the images to the "viewer" instead of direct while the following is set:

Code:
/**
 * get_thumb_bbcode
 * Returns the thumb + img link as bbcode
 * arg -> true  : uses the full image URL
 * arg -> false : uses the viewer URL
 */
function get_thumb_bbcode($full=true) {
   $html_version = html_entity_decode(get_thumb_html($full));
   return str_replace('<a href="', '[url=', str_replace('"><img src="', '][img]', str_replace('" border="0" /></a>', '[/img][/url]', $html_version)));
}
function show_thumb_bbcode($full=true) {
   echo get_thumb_bbcode($full);
}


This is set correctly and it SHOULD link to direct images and not the viewer right?


Proud member of Frustrated Association of International Losers Failing Against the Gifted and Superior (F.A.I.L.F.A.G.S)
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Applications
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group