vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Postbit Enhancements: Icons - Gender / Site Supporter / Site Profiles (https://vborg.vbsupport.ru/showthread.php?t=207742)

davidw 03-07-2009 10:00 PM

Postbit Enhancements: Icons - Gender / Site Supporter / Site Profiles
 
1 Attachment(s)
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

AzzidReign 03-09-2009 12:36 AM

Nice, I like this idea.

Jasem 03-09-2009 12:47 AM

Very nice mod, Thank you

installed

davidw 03-09-2009 01:21 AM

Don't forget to click install :)

vithorius 03-09-2009 01:26 AM

Very, very nice idea!

zefyx 03-27-2009 04:45 AM

Thanks!

merk_aus 04-10-2009 02:36 AM

thanks for this it is going to be good on my website - all these kids nowadays with their fancy sites and want to share their names etc :D

t2k7 06-06-2009 07:12 AM

Excellent!! I installed it and works like a charm!

davidw 06-06-2009 03:34 PM

Don't forget to click Install :)

Bro_Joey_Gowdy 06-09-2009 01:34 AM

Downloaded and installed like a breeze!

A couple image requests:

CarDomain.com, HotorNot.com, IMDb.com, LiveJournal.com, Xanga.com, YouTube.com,

:D

karel1985 06-09-2009 05:40 PM

nice, can add these icon in the same line of the skype and msn icons?

davidw 06-09-2009 06:22 PM

Let me see on both requests. It may be this weekend.

markuswarren 06-10-2009 01:14 AM

Excellent modification! I've been slightly naughty and edited your xml file to include an item for Flickr, which seems to be working well, it might be worth adding this to the next revision.

I agree that moving the icons into the same div as the Skype, MSN, etc, icons would also be a good idea. I've edited my template manually to move the hook being used, so it's inside the div for the other icons, and then edited your template to remove the opening and closing div, seems to work well, though I've not got that many icons displaying at present, I think I'll run a few tests with as many icons as I can, just to see how things look when you go over one line.

davidw 06-10-2009 11:20 AM

If we can get a running list of what everyone wants, I'll be sure to create an update including as many as I can get. Also, icons help as well. The larger (and better quality) the better, as I resize them to make them uniform.

davidw 06-15-2009 02:59 PM

I will be working on this today through this week and should have this completed by this week's end if not sooner. My ETA is Tuesday/Wednesday depending on time.

Bro_Joey_Gowdy 06-15-2009 10:50 PM

Quote:

Originally Posted by davidw (Post 1826908)
If we can get a running list of what everyone wants, Also, icons help as well.

BodyBuilding Stats site:
http://bodyspace.bodybuilding.com/Bro_Joey_Gowdy

BodyBuilding Icon:
http://bodyspace.bodybuilding.com/favicon

Mavs00 06-17-2009 02:34 PM

Quote:

Originally Posted by davidw (Post 1830118)
I will be working on this today through this week and should have this completed by this week's end if not sooner. My ETA is Tuesday/Wednesday depending on time.

I'll be waiting patiently :up:

Great mod

davidw 06-20-2009 02:05 PM

Please click install if you use this as this ensures you get update emails and notifications on progress.

dacho 07-10-2009 10:39 AM

Hi david
If i want do use only the gender male/female ?

davidw 07-10-2009 01:08 PM

it will only show up if you have created an populated a profile field. See for examples above.

timberball 08-23-2009 07:45 AM

i cant see the images in my postbit... It only shows "// Site Supporter //Gender " in my postbit! what should i do? i edited the product and overwrote it a few times...plz help !
edit : my bad! it's working great!
thanks

davidw 08-23-2009 10:20 PM

No problem - Glad you got it sorted.

Don't forget to click install :)

Daisyboo 08-24-2009 01:15 PM

Has anyone got a demo I could see please?

davidw 08-24-2009 03:52 PM

<a href="https://vborg.vbsupport.ru/attachment.php?attachmentid=96139&stc=1&thumb=1&d= " target="_blank">https://vborg.vbsupport.ru/attac...c=1&thumb=1&d=</a>

mp4sverige 10-18-2009 09:45 AM

On Chinese gadget forums i have many times seen small icons of owned products displayed under the avatar picture.

will it be possible to achieve something like this with Postbits?

https://vborg.vbsupport.ru/external/2009/10/34.jpg

karel1985 01-02-2010 12:01 PM

Hi David,

Happy New Year ;-)

Do you foresee an update/port for vb4?
It would be nice to see this back in this version...

davidw 01-10-2010 08:59 PM

If you have any suggestions for this product please PM me. I will probably have a 4.0 version, but time will tell.

InsomniacP 01-10-2010 09:36 PM

Nice work David, Can't wait to see this on 4.0

Xtrigit 02-02-2010 10:37 PM

I love this mod because there are no templates to modify, whatever style youo have it will work with. I would love to have this on vb4 as well. thanks!!!!!!!!!!!!!!!!!!!!!!!!!

karel1985 03-16-2010 07:04 PM

Quote:

Originally Posted by davidw (Post 1952287)
If you have any suggestions for this product please PM me. I will probably have a 4.0 version, but time will tell.

Hi David;

Any ETA foreseen or plans? No idea if it works with this version on vb4? I can't check it, but it would be nice to see it working on vb4

Thanks;

Karel

ahmednadir 01-19-2011 09:50 PM

thanks alot, "installed"


All times are GMT. The time now is 10:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01126 seconds
  • Memory Usage 1,784KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete