DjTaz
02-11-2006, 10:00 PM
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 :
$lang_picinfo = array(
'title' =>'File information', //cpg1.3.0
'Filename' => 'Filename',
'Album name' => 'Album name',
Add below :
'BB Code' => 'VB Code',
'HTML Code' => 'HTML Code',
__________________________________________________ _______________________
in /gallery/displayimage.php
Find :
$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
////////////////////////////////////////////////
//// 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>https://vborg.vbsupport.ru/</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 https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=107789) and thats it , your done !
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 :
$lang_picinfo = array(
'title' =>'File information', //cpg1.3.0
'Filename' => 'Filename',
'Album name' => 'Album name',
Add below :
'BB Code' => 'VB Code',
'HTML Code' => 'HTML Code',
__________________________________________________ _______________________
in /gallery/displayimage.php
Find :
$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
////////////////////////////////////////////////
//// 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>https://vborg.vbsupport.ru/</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 https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=107789) and thats it , your done !