The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
URL, BB code & Embed code information under album images Details »» | |||||||||||||||||||||||||||
URL, BB code & Embed code information under album images
Developer Last Online: Jan 2016
Please note as of vb3.7 beta 6 this mod is no longer needed as its now supported by vb right out the box.
The below template edit will add information boxs under images from the user photo albums for the images URL along with BB Codes and Embed Codes. This is something i feel VB should add out of the box as its very easy to do. How To: In the template 'album_pictureview' Find: HTML Code:
$vbphrase[picture]</title> </head> HTML Code:
<script type="text/javascript"> function SelectAll(id) { document.getElementById(id).focus(); document.getElementById(id).select(); } </script> HTML Code:
<span class="shade">$vbphrase[picture_added]</span> $pictureinfo[adddate] <if condition="!$show['detailedtime']"><span class="time">$pictureinfo[addtime]</span></if> </td> </tr> </table> </td> </tr> HTML Code:
<tr> <td align="$stylevar[left]"><table width="80%" border="0" class="tborder" align="center" cellpadding="3" cellspacing="0"> <tr> <td class="alt2" nowrap="nowrap"><div class="smallfont normal"> <div align="right"><strong>Image URL:</strong></div> </div></td> <td class="alt2"><div align="center"><span class="smallfont normal"> <input name="textfield2" class="bginput" type="text" id="textfield2" onClick="SelectAll('textfield2');" value="$vboptions[bburl]/picture.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pictureinfo[pictureid]" size="50" READONLY> </span></div></td> </tr> <tr> <td class="alt2" nowrap="nowrap"><div class="smallfont normal"> <div align="right"><strong>BB Code:</strong> </div> </div></td> <td class="alt2"><div align="center"><span class="smallfont normal"> <input name="textfield3" class="bginput" type="text" id="textfield3" onClick="SelectAll('textfield3');" value="[img]https://vborg.vbsupport.ru/[/img]" size="50" READONLY> </span></div></td> </tr> <tr> <td class="alt2" nowrap="nowrap"><div class="smallfont normal"> <div align="right"><strong>Embed Code:</strong> </div> </div></td> <td class="alt2"><div align="center"><span class="smallfont normal"> <input name="textfield" class="bginput" type="text" id="textfield" onClick="SelectAll('textfield');" value="<img src='$vboptions[bburl]/picture.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pictureinfo[pictureid]' style='border:1px solid #000000;' >" size="50" READONLY> </span></div></td> </tr> </table> </td> </tr> If you would like this to be part of the stock VB install, Jason (Jase2) as made a topic on the VB forums so please vote for it here: http://www.vbulletin.com/forum/showt...64#post1498764 Show Your Support
|
Comments |
#12
|
|||
|
|||
Nice, but you should add class="bginput" to the input boxes, otherwise they won't conform to the style if custom CSS is applied.
|
#13
|
|||
|
|||
Yeps your right, have updated the first post. It was only a fast done thing to be forward, if i get time over xmas and new year im going add copy to clipboard buttons.
|
#14
|
|||
|
|||
WOW WOW WOW WOW
Did I say WOW? Thank you soooo much!!!!! |
#15
|
||||
|
||||
If you use $vboptions[bburl] instead of the domain name people won't have to change it.
And the image url needs to be: Code:
<td class="alt2"><div align="center"><span class="smallfont normal"> <input name="textfield2" class="bginput" type="text" value="$vboptions[bburl]/album.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pictureinfo[pictureid]" size="50" READONLY> </span></div></td> |
#16
|
|||
|
|||
Quote:
Has for the link its right the way it is, as you don't want to be linking to the image page but the image itself. If people want to link to the image page then they just copy there address bar |
#17
|
|||
|
|||
Very kewl add-on, thank you.
|
#18
|
||||
|
||||
How to select all the text on mouse click for easy coping.
At the beginning of the template find: HTML Code:
$vbphrase[picture]</title> </head> after that code add this one: HTML Code:
<script type="text/javascript"> function SelectAll(id) { document.getElementById(id).focus(); document.getElementById(id).select(); } </script> And then replace the original code with this alternated: HTML Code:
<tr> <td align="$stylevar[left]"><table width="80%" border="0" class="tborder" align="center" cellpadding="3" cellspacing="0"> <tr> <td class="alt2" nowrap="nowrap"><div class="smallfont normal"> <div align="right"><strong>Image URL:</strong></div> </div></td> <td class="alt2"><div align="center"><span class="smallfont normal"> <input name="textfield2" class="bginput" type="text" id="textfield2" onClick="SelectAll('textfield2');" value="$vboptions[bburl]/picture.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pictureinfo[pictureid]" size="50" READONLY> </span></div></td> </tr> <tr> <td class="alt2" nowrap="nowrap"><div class="smallfont normal"> <div align="right"><strong>BB Code:</strong> </div> </div></td> <td class="alt2"><div align="center"><span class="smallfont normal"> <input name="textfield3" class="bginput" type="text" id="textfield3" onClick="SelectAll('textfield3');" value="[img]https://vborg.vbsupport.ru/[/img]" size="50" READONLY> </span></div></td> </tr> <tr> <td class="alt2" nowrap="nowrap"><div class="smallfont normal"> <div align="right"><strong>Embed Code:</strong> </div> </div></td> <td class="alt2"><div align="center"><span class="smallfont normal"> <input name="textfield" class="bginput" type="text" id="textfield" onClick="SelectAll('textfield');" value="<img src='$vboptions[bburl]/picture.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pictureinfo[pictureid]' style='border:1px solid #000000;' >" size="50" READONLY> </span></div></td> </tr> </table> </td> </tr> If you want all the text to be select on double mouse click just change the event "onClick=" to "ondblClick=". |
#19
|
|||
|
|||
bombastic hack!! i only imagine if we can put watermark too in the image. how can we?
|
#20
|
||||
|
||||
Quote:
|
#21
|
|||
|
|||
ok..this is odd... it seems that the [bburl] is adding a slash (/) automatically. I had to delete the / that is in the code for this to work.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|