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 |
#2
|
|||
|
|||
PERFECT!
Thanks. |
#3
|
||||
|
||||
Dude that is sooo Kick #@#!!!! Thanks much.
|
#4
|
|||
|
|||
Add READONLY to the text boxs, its something i over looked. to made it read only just add READONLY after size="50" so it will read size="50" READONLY
I have updated the first post with the update. |
#5
|
||||
|
||||
Quote:
Anyway ... Awesome addition, thanks ! |
#6
|
||||
|
||||
Nice thx
|
#7
|
|||
|
|||
Good job Thanks.
just waiting for "how to allow to post images in user profile messages" mod |
#8
|
||||
|
||||
Doesn't seem to work.
And yeah, I edited the forum address. |
#9
|
|||
|
|||
MY full template 'album_pictureview'
HTML Code:
$stylevar[htmldoctype] <html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude $usercss <title>$vboptions[bbtitle] - <phrase 1="$userinfo[username]" 2="$albuminfo[title_html]">$vbphrase[xs_album_y]</phrase> - $vbphrase[picture]</title> </head> <body> $header $navbar <div id="usercss"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat"> <if condition="$show['picture_nav']"> <div class="smallfont" style="float: $stylevar[right]"> <a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pic_location[prev_pictureid]">$pic_location[prev_text_short]</a> | <a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pic_location[next_pictureid]">$pic_location[next_text_short]</a> </div> </if> <phrase 1="$pic_location[pic_position]" 2="$albuminfo[picturecount]" 3="$albuminfo[title]">$vbphrase[picture_x_of_y_from_album_z]</phrase> </td> </tr> <tr> <td class="alt1" align="center"> <table width="<if condition="$pictureinfo['width'] < 400">400<else />$pictureinfo[width]</if>" cellpadding="$stylevar[cellpadding]"> <tr> <td align="center"><img src="picture.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pictureinfo[pictureid]" alt="$vbphrase[picture]" /></td> </tr> <if condition="$pictureinfo['caption_html']"> <tr> <td align="$stylevar[left]"><em>$pictureinfo[caption_html]</em></td> </tr> </if><tr> <td align="$stylevar[left]"><table width="80%" border="0" class="tborder" align="center" cellpadding="3" cellspacing="0"> <tr> <td class="alt2"><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" type="text" value="http://www.yourdomain.com/picture.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pictureinfo[pictureid]" size="50" READONLY> </span></div></td> </tr> <tr> <td class="alt2"><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" type="text" value="[img]http://www.yourdomain.com/picture.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pictureinfo[pictureid][/img]" size="50" READONLY> </span></div></td> </tr> <tr> <td class="alt2"><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" type="text" value="<img src='http://www.yourdomain.com/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> <tr> <td align="$stylevar[left]" class="smallfont"> <if condition="$show['edit_picture_option'] OR $show['add_group_link'] OR $show['reportlink']"> <div class="smallfont normal" style="float: $stylevar[right]"> <if condition="$show['edit_picture_option']"> <div><a href="album.php?$session[sessionurl]do=editpictures&albumid=$albuminfo[albumid]&pictureid=$pictureinfo[pictureid]">$vbphrase[edit_picture]</a></div> </if> <if condition="$show['add_group_link']"> <div><a href="album.php?$session[sessionurl]do=addgroup&albumid=$albuminfo[albumid]&pictureid=$pictureinfo[pictureid]">$vbphrase[add_to_group]</a></div> </if> <if condition="$show['reportlink']"> <div><a href="album.php?$session[sessionurl]do=report&albumid=$albuminfo[albumid]&pictureid=$pictureinfo[pictureid]">$vbphrase[report_picture]</a></div> </if> </div> </if> <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> </table> <if condition="$show['picture_nav']"> <div class="smallfont" align="center" style="margin-top: $stylevar[cellpadding]px"> <a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pic_location[prev_pictureid]">$pic_location[prev_text]</a> | <a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pic_location[next_pictureid]">$pic_location[next_text]</a> </div> </if> </div> $footer </body> </html> |
#10
|
||||
|
||||
Thanks works now .. looks identical ( except for url info) to the one I did myself, Not sure what happened.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|