The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
||||
|
||||
Let me be your first installer here.
Thanks! |
#3
|
|||
|
|||
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? |
#4
|
||||
|
||||
this is great, I will be installing tonight
thanks! |
#5
|
|||
|
|||
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_'); |
#6
|
|||
|
|||
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! |
#7
|
|||
|
|||
Try this so :
Code:
//////////////////////////////////////////////// //// OUTPUT CODES FOR VBCODE AND HTML CODE ///// //////////////// BY DjTaz (www.djtaz.com)////// //////////////////////////////////////////////// $picture_url = get_pic_url($CURRENT_PIC_DATA, ''); $picture_normal = get_pic_url($CURRENT_PIC_DATA, 'normal_'); $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>"; $info[$lang_picinfo['Normal Photo']] = "<font color=blue><XMP> <img src='".$website.$picture_normal."'></XMP></font>"; //////////////////////////////////////////////// //// END OF VBCODE AND HTML OUTPUT CODE //////// //////////////////////////////////////////////// Code:
'BB Code' => 'VB Code', 'HTML Code' => 'HTML Code', 'Normal Photo' => 'Normal 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. |
#8
|
|||
|
|||
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// ?> <script> function copy_clip(meintext){ if (window.clipboardData){ window.clipboardData.setData("Text", meintext); }else if (window.netscape){ netscape.security.PrivilegeManager.enablePrivilege ('UniversalXPConnect'); var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard ); if (!clip) return; var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable); if (!trans) return; trans.addDataFlavor('text/unicode'); var str = new Object(); var len = new Object(); var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString); var copytext=meintext; str.data=copytext; trans.setTransferData("text/unicode",str,copytext.length*2); var clipid=Components.interfaces.nsIClipboard; if (!clip) return false; clip.setData(trans,null,clipid.kGlobalClipboard); } return false; } //--> </script> <? //////////////////////////////////////////////// //// 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']] = "<form name=\"testform1\"><textarea name=\"testsquare1\" cols=35>[IMG] ".$website.$picture_url." [/IMG]</textarea><input type=\"button\" onclick=\"return copy_clip(document.forms[0].testsquare1.value)\" value=\"Copy to Clipboard\"></form>"; $info[$lang_picinfo['HTML Code']] = "<form name=\"testform2\"><textarea name=\"testsquare2\" cols=35><img src='".$website.$picture_url."'></textarea><input type=\"button\" onclick=\"return copy_clip(document.forms[1].testsquare2.value)\" value=\"Copy to Clipboard\"></form>"; //////////////////////////////////////////////// //// END OF VBCODE AND HTML OUTPUT CODE //////// //////////////////////////////////////////////// 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) |
#9
|
|||
|
|||
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! |
#10
|
|||
|
|||
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 |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|