Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Postbit Enhancements: Icons - Gender / Site Supporter / Site Profiles Details »»
Postbit Enhancements: Icons - Gender / Site Supporter / Site Profiles
Version: 1.1, by davidw davidw is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.8.x Rating:
Released: 03-07-2009 Last Update: 06-19-2009 Installs: 51
Uses Plugins
Additional Files  
No support by the author.

This mod will allow you to add a group of icons to your postbit. Before installing the product you will need to do a couple things.

Step 1
Create Profile Fields.
You will need a profile field for each one of these that you intend to use.

Your member's Gender
Blogger.com
Blogmarks.net
Delicious.com
Digg.com
eBay.com
Facebook.com
LinkedIN.com
Myspace.com
Stumbleupon.com
Twitter.com

Version 1.1 Added:

BodyBuilding
CarDomain
Flickr
HotorNot
IMDB
LiveJournal
Xanga
YouTube

If you install version 1.1 the new addins are alphabetical. You must continue to edit if you prefer to use .gifs or change your location(s). Also, please report any errors.

I have organized the folders a little different in this update - and will continue to do so with each update. Also, as I make changes/fulfill requests, I will add.

############

An example of how to create one (such as Gender):
Code:
AdminCP => User Profile Fields => Add New User Profile Field => Single-Selection Menu
Title:							Gender
Description:						Gender of member
Profile Field Category:					Your choice
Options:						Female
							Male
Set Default:						Yes, but No First Blank Option
Display Order:						Your choice
Field Required:						Yes, at registration and profile updating
Field Editable by User:					Only at registration
Private Field:						No
Field Searchable on Member's List:			Your choice
Show on Member's List:					Your choice
Allow user to input their own value for this option:	No
Which page displays this option?			Your choice
Also if you have a Site Supporter usergroup or intend to create one, remember the usergroupid for later.

Write down all your profile field IDs, and don't confuse this with the display order.

Step 2:
Upload icons.
I have created a set that you do not have to use but they are ones I have created and are 17x17 in size. You can use PNGs or GIFs. If you use your own stock images, either rename the image location in Step 3 or rename the image to icon_imagename.png
Upload the images to your images/misc/profile/ folder (if you do not use the supplied images, you must create a folder called profile in the misc directory.

Step 3:
Edit the product.
For every X option replace this with either the usergroupid or the profile field id.

For example:
If your profile field id for your gender is 5, change this:
Code:
<if condition="$post[fieldX]">
	<img src="images/misc/profile/icon_$post[fieldX].png" title="$post[fieldX]">
</if>
to this:
Code:
<if condition="$post[field5]">
	<img src="images/misc/profile/icon_$post[field5].png" title="$post[field5]">
</if>
Note in this instance, there are 3 changes

If you uploaded GIFs instead of PNGs, rename the file extension for each image to .gif
If you want a different order than what is shown in the template section copy each <if...> to </if> to which place you want it. I have each icon listed alphabetically. If you have an issue with moving lines of code up or down, let me know and I will reorder them for you.

When you are satisfied with your arrangement, save and import the product.

If you have any requests for more additions or if you see any issues with the product, let me know.

The male/female and star images are the FAM FAM FAM silk icons used here.

The user's LinkedIN profile (their input) should be something like this:
Code:
0/0/0b

Download Now

File Type: zip product-davidw_vbpostbiticons.zip (27.3 KB, 485 views)
File Type: zip iconenhancements_v_1_1.zip (50.8 KB, 307 views)

Screenshots

File Type: gif postbit.gif (7.2 KB, 0 views)

Show Your Support

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

Comments
  #32  
Old 01-19-2011, 09:50 PM
ahmednadir ahmednadir is offline
 
Join Date: Feb 2007
Location: Watford
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks alot, "installed"
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 11:59 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.11168 seconds
  • Memory Usage 2,235KB
  • Queries Executed 17 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (3)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete