Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
URL, BB code & Embed code information under album images Details »»
URL, BB code & Embed code information under album images
Version: 1.1, by C.Birch C.Birch is offline
Developer Last Online: Jan 2016 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.0 Beta 4 Rating:
Released: 12-23-2007 Last Update: Never Installs: 51
Template Edits
Re-useable Code Translations  
No support by the author.

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>
and add below:

HTML Code:
<script type="text/javascript">
function SelectAll(id)
{
document.getElementById(id).focus();
document.getElementById(id).select();
}
</script>
Find:
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>
and add below:

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]&amp;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]&amp;pictureid=$pictureinfo[pictureid]' style='border:1px solid #000000;' >" size="50" READONLY>
                    </span></div></td>
                  </tr>
                </table>
           
                </td>
            </tr>
Added vmacedonia's select all the text on mouse click code and updated to beta 4 code edits.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-24-2007, 08:18 PM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, but you should add class="bginput" to the input boxes, otherwise they won't conform to the style if custom CSS is applied.
Reply With Quote
  #13  
Old 12-24-2007, 08:44 PM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 12-24-2007, 10:01 PM
UncoderMom UncoderMom is offline
 
Join Date: May 2006
Location: My office chair!
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WOW WOW WOW WOW

Did I say WOW?

Thank you soooo much!!!!!
Reply With Quote
  #15  
Old 12-27-2007, 12:58 AM
.Tim's Avatar
.Tim .Tim is offline
 
Join Date: Jan 2005
Location: Oklahoma City
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]&amp;pictureid=$pictureinfo[pictureid]" size="50" READONLY>
                    </span></div></td>
If you want it to link back to the image page and not just the image.
Reply With Quote
  #16  
Old 12-27-2007, 07:19 AM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by .Tim View Post
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]&amp;pictureid=$pictureinfo[pictureid]" size="50" READONLY>
                    </span></div></td>
If you want it to link back to the image page and not just the image.
Thank i was trying to find $vboptions[bburl] i knew there was a code for it but its been removed from most templates in vb now.

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
Reply With Quote
  #17  
Old 12-29-2007, 03:17 AM
Ohiosweetheart Ohiosweetheart is offline
 
Join Date: Dec 2005
Location: N.E. Ohio
Posts: 2,291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very kewl add-on, thank you.
Reply With Quote
  #18  
Old 12-29-2007, 06:55 PM
vmacedonia's Avatar
vmacedonia vmacedonia is offline
 
Join Date: Apr 2007
Location: Macedonia
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]&amp;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]&amp;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=".
Reply With Quote
  #19  
Old 12-29-2007, 07:10 PM
Forum Lover Forum Lover is offline
 
Join Date: Jun 2007
Location: Sydney
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bombastic hack!! i only imagine if we can put watermark too in the image. how can we?
Reply With Quote
  #20  
Old 12-30-2007, 09:26 PM
glorify's Avatar
glorify glorify is offline
 
Join Date: Aug 2004
Posts: 376
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vmacedonia View Post
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]&amp;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]&amp;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=".
Installed
Reply With Quote
  #21  
Old 12-31-2007, 09:05 PM
slmoney slmoney is offline
 
Join Date: Jul 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:24 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13032 seconds
  • Memory Usage 2,369KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (10)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete