Back to vBulletin 3.0 Add-Ons

Coppermine VbCode and HTML output
Mod Version: 1.00, by DjTaz

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 3
Released: 12 Feb 2006 Last Update: Never Downloads: 0
Not Supported Code Changes  

For those of you who have integrated Coppermine Photo Gallery into your Vbulletin site , you will know it runs smoothly along side it and works great.

I had one issue though - people on my site wanted to be able to post some of the photos from their gallery on the forum boards, but they lacked a lot of the knowledge to be able to check the URL of the photo... this caused a problem.

Anyway , i added this little hack that simply displays the VBCode and HTML code for the any photo so it can be used on Vbulletin , or for that matter , any site.

In /gallery/lang/english.php

Find :
Code:
$lang_picinfo = array(
  'title' =>'File information', //cpg1.3.0
  'Filename' => 'Filename',
  'Album name' => 'Album name',

Add below :
Code:
  
  'BB Code' => 'VB Code',
  'HTML Code' => 'HTML Code',
_________________________________________________________________________

in /gallery/displayimage.php

Find :
Code:
   $info[$lang_picinfo['Filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);
   $info[$lang_picinfo['Album name']] = '<span class="alblink">' . $owner_link . $ipinfo . '<a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'] . ' Photos</a></span>';
add below
Code:
////////////////////////////////////////////////
//// OUTPUT CODES FOR VBCODE AND HTML CODE /////
//////////////// BY DjTaz  (www.djtaz.com)//////
////////////////////////////////////////////////
	$picture_url = get_pic_url($CURRENT_PIC_DATA, '');
	$website = $CONFIG["ecards_more_pic_target"];
	$info[$lang_picinfo['BB Code']] = "<font color=RED></FONT COLOR>";
	$info[$lang_picinfo['HTML Code']] = "<font color=green><XMP> <img src='".$website.$picture_url."'></XMP></font>";
////////////////////////////////////////////////
//// END OF VBCODE AND HTML OUTPUT CODE ////////
////////////////////////////////////////////////

Reupload both files , click and thats it , your done !

Download

No files for download.

Supporters / CoAuthors

  • DjTaz

Similar Mods

Administrative and Maintenance Tools Remove all (Template-)Comments from any HTML-Output vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024