Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Extra Image in Postbit for Users Details »»
Extra Image in Postbit for Users
Version: 1.00, by Reeve of shinra Reeve of shinra is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Version: 3.6.5 Rating:
Released: 03-25-2007 Last Update: Never Installs: 14
 
No support by the author.

Add a 'sidebar' image to your postbit.


What it does:
Adds a second user selected image to the postbit which is just like an avatar but appears at the bottom of the postbit. Great fun for larger communities with expressive users.

Concerns:
This doesnt have the same restrictions as an avatar, so giant images could be placed inside the area given, which means you'll have to do some moderation to keep people inline and if needed - restrict access to sidebars for some members.


Instructions:
Step 1:
User Profile Fields > Add New User Profile Field - Single Line Text Box

Title: Sidebar
Description: Enter the URL of your sidebar image here

Keep the default values the same.

Now record the value given to this profile field! (Example: Field15) You'll need it for the template edit.


Step 2:
Edit Template: postbit_legacy & postbit

Find:
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
Below Add:
Code:
<!-- SIDEBAR -->
<if condition="$post[field14]"><div style="padding:$stylevar[cellpadding]px"><img class="inlineimg" src="$post[field14]" border="0" padding="2" /></div></if>
</-- SIDEBAR -->

<<<REMEMBER TO CHANGE $post[fieldX] TO THE PROPER PROFILE FIELD NUMBER!!>>>

REMEMBER TO CLICK INSTALL

Show Your Support

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

Comments
  #12  
Old 04-01-2007, 02:15 PM
chubzilla chubzilla is offline
 
Join Date: Nov 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how about the ability to upload the picture instead of linking to it

and possibly to make sure the user can only link to a 50x50 image?
Reply With Quote
  #13  
Old 04-03-2007, 03:50 AM
LisaD1's Avatar
LisaD1 LisaD1 is offline
 
Join Date: May 2005
Location: True North Strong & Free!
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Foxtrotelite View Post
great hack, thank you..

Can I ask what hack you are running to get the "activity" "longevity" bars, and also the reputation bars. them are very professional looking, and look great.

Thanks

That is call the activity mod. You can search it here on the site.


I installed it, but all I get is a red X. And I also think that making it so that there is a size limit on the image is a good idea.
Lisa
Reply With Quote
  #14  
Old 04-03-2007, 06:07 PM
chubzilla chubzilla is offline
 
Join Date: Nov 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i added the size limit myself to 50 x50 by dding in height= width=. i would jsut liekt he ability to have my users upload an image in the same process they upload an avatar
Reply With Quote
  #15  
Old 04-03-2007, 08:32 PM
LisaD1's Avatar
LisaD1 LisaD1 is offline
 
Join Date: May 2005
Location: True North Strong & Free!
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chubzilla View Post
i added the size limit myself to 50 x50 by dding in height= width=. i would jsut liekt he ability to have my users upload an image in the same process they upload an avatar
Did you get yours to work (Duh stupid question I guess) but mine won't. Also do you mind if I borrow the 50 x 50 code to add to mine?
Thanks!
Reply With Quote
  #16  
Old 04-05-2007, 10:01 AM
AzaDiyaR AzaDiyaR is offline
 
Join Date: Oct 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you so much installed
Reply With Quote
  #17  
Old 04-05-2007, 01:17 PM
The Bish's Avatar
The Bish The Bish is offline
 
Join Date: Aug 2006
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok I want to install this... however, I want my entire postbit to look like that. What all mods are used? Don't want to hijck the thread so if someone can PM or post here that would be greatness!!!

I will search for the activity mod but suspect that is not everything I will need.
Reply With Quote
  #18  
Old 04-05-2007, 01:31 PM
deezelpope deezelpope is offline
 
Join Date: Feb 2007
Posts: 1,272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, there's this hack, Mood Manager, Activity Mod, and I'm not real sure what the other ones are...
Reply With Quote
  #19  
Old 04-17-2007, 07:28 PM
WebmasterSimds WebmasterSimds is offline
 
Join Date: Sep 2006
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those who want to limit the size of the image, just do it as I have done below. this will restrict it to 100x100 and no larger then you will not have to moderate the images in the posts.

I have tried this with tons of different sizes, and it has always re sized this image down to the correct 100x100px. If you wanted to have a border around this, just add numbers to the border, but take away from the size , So say you wanted to have a 2px border around this, and keep the whole thing to 100x100 then subtract 2 from each of the sizes, so 100x100 would be 98x98. and the whole section will be no more than 100x100 in size.

Just thought I woud help that person about resizing.


Code:
<!-- SIDEBAR -->
<if condition="$post[field13]"><div style="padding:$stylevar[cellpadding]px"><img class="inlineimg" src="$post[field13]" border="0" width="100" height="100 padding="2" /></div></if>
</-- SIDEBAR -->
Reply With Quote
  #20  
Old 04-17-2007, 09:58 PM
LisaD1's Avatar
LisaD1 LisaD1 is offline
 
Join Date: May 2005
Location: True North Strong & Free!
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WebmasterSimds View Post
For those who want to limit the size of the image, just do it as I have done below. this will restrict it to 100x100 and no larger then you will not have to moderate the images in the posts.

I have tried this with tons of different sizes, and it has always re sized this image down to the correct 100x100px. If you wanted to have a border around this, just add numbers to the border, but take away from the size , So say you wanted to have a 2px border around this, and keep the whole thing to 100x100 then subtract 2 from each of the sizes, so 100x100 would be 98x98. and the whole section will be no more than 100x100 in size.

Just thought I woud help that person about resizing.


Code:
<!-- SIDEBAR -->
<if condition="$post[field13]"><div style="padding:$stylevar[cellpadding]px"><img class="inlineimg" src="$post[field13]" border="0" width="100" height="100 padding="2" /></div></if>
</-- SIDEBAR -->
That worked perfectly!! Thanks
Reply With Quote
Reply

Thread Tools

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 07:47 AM.


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.06989 seconds
  • Memory Usage 2,299KB
  • Queries Executed 26 (?)
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_code
  • (3)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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