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
  #22  
Old 01-02-2008, 07:58 AM
TomJames TomJames is offline
 
Join Date: Apr 2006
Location: UK
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Forum Lover View Post
bombastic hack!! i only imagine if we can put watermark too in the image. how can we?
That would be awesome... :up:
Reply With Quote
  #23  
Old 01-06-2008, 12:50 AM
MustangLisa's Avatar
MustangLisa MustangLisa is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I am going to install this now! I was surprised it wasn't part of the vB package, so thanks for making this!

Quote:
Originally Posted by Traxdata View Post
Good job Thanks.
just waiting for "how to allow to post images in user profile messages" mod
Yes, me too!!!
Reply With Quote
  #24  
Old 01-06-2008, 12:56 AM
MustangLisa's Avatar
MustangLisa MustangLisa is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked like a charm, thanks!!
Reply With Quote
  #25  
Old 01-06-2008, 06:27 AM
Jenkins Jenkins is offline
 
Join Date: Nov 2002
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great!!! I was SO Disapointed when I realized that this wasn't a standard feature!

Thanks!!!
Reply With Quote
  #26  
Old 01-06-2008, 09:04 AM
safakuygur's Avatar
safakuygur safakuygur is offline
 
Join Date: Sep 2007
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PERFECT!

Thanks.
Reply With Quote
  #27  
Old 01-08-2008, 01:13 AM
sinistergaming's Avatar
sinistergaming sinistergaming is offline
 
Join Date: Jan 2007
Location: WorldWide
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #28  
Old 01-08-2008, 04:02 PM
VeeDubZ VeeDubZ is offline
 
Join Date: Nov 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fantastic addition. thanks
Reply With Quote
  #29  
Old 01-16-2008, 05:20 AM
Jenkins Jenkins is offline
 
Join Date: Nov 2002
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just noticed these have to be accessed through the database, which doesn't allow you to hotlink on other forums sites. Guess I'm gonna have to find a hack or product to do that.
Reply With Quote
  #30  
Old 01-17-2008, 02:26 PM
dj_f16 dj_f16 is offline
 
Join Date: Sep 2006
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good work
beatifull, thanx u man.....
Reply With Quote
  #31  
Old 01-20-2008, 09:55 PM
BoredOutOfMyMin BoredOutOfMyMin is offline
 
Join Date: Feb 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent!

I changed BBCode to the bottom like Photobucket.

Very good work- yes I agree this would be a welcomed add to VBulletin Photos. Allows sharing them very easy.

Thank you!
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 01:56 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.05012 seconds
  • Memory Usage 2,318KB
  • 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
  • (4)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
  • (4)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