![]() |
Coppermine VbCode and HTML output
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( Add below : Code:
in /gallery/displayimage.php Find : Code:
$info[$lang_picinfo['Filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']); Code:
//////////////////////////////////////////////// Reupload both files , click https://vborg.vbsupport.ru/ and thats it , your done ! |
Let me be your first installer here. ;)
Thanks! |
Was looking for this, thanks DjTaz.
I installed it on vB 3.5.3 with Coppermine 1.4.3 and if works fine. One question: Is it possible to add some code and also get a link to the resized picture instead of the full sized one? |
this is great, I will be installing tonight :)
thanks! |
You mean to the thumbnail instead of the actual photo ?... that should be easy enuf
try changing (in displayimage.php) Code:
$picture_url = get_pic_url($CURRENT_PIC_DATA, ''); Code:
$picture_url = get_pic_url($CURRENT_PIC_DATA, 'thumb_'); |
Thank you for your help, I actually mean the resized picture which I have set to be 400x400 and is saved in the users folder as "normal_" anyway I tried the code above and it still shows me the link to the original picture on my Coppermine 1.4.3 :(
Thanks for your help! |
Try this so :
Code:
//////////////////////////////////////////////// Code:
just 'photoname.jpg' in the link thats given out. If that still doesnt work - give me the exact directories where everything resides and ill see what else i can come up with. |
I said i better give you guys this info as well , since it was requested on the Coppermines gallery and adds in nicely to this edit ...
Here is an alternative way to change the displayimage.php so that it has a COPY TO CLIPBOARD for the VBCODE and the HTML Code - makes life easier overall. use this instead of the original addition above if you like it : Code:
//// THANKS TO ROSS FOR THE JAVASCRIPT// http://www.djtaz.com/gallery/display...10294&pos=-107 (for the Copy to clipboard one ) and http://www.djtaz.com/gallery/display...10294&pos=-107 (for the original one) |
I like this option and it works just as good as your first one.
About the normal_ sized pictures, that didn't work for me but never mind, I'm happy with the one above :) Thanks again DjTaz! |
Xzyte - i u want me to take a look at ur site send me the address - and let me know where the normal_ pics are stored etc etc.
Ill see what i can do to get you that code as well if i can :D |
All times are GMT. The time now is 08:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|