vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   Adding Icons to postbit next to ICQ AIM etc (https://vborg.vbsupport.ru/showthread.php?t=264289)

leejohn02 05-26-2011 10:00 PM

Adding Icons to postbit next to ICQ AIM etc
 
Just worked this out today with a bit of hardwork


I added a psn icon and xbox icon to the postbit but u can add what ever icon u choose.

These can be hyperlinked or just displayable when you hover over

1. Create a image.png, make sure its set to 24x24 pixels and upload it to your root/images

2. Create a new user profile field set it to single line and make sure private field, Field Searchable on Members List and Show on Members List are all set to NO.

Remember the Field ID

now open up ACP> Styles & Templates> Search in templates

Search for postbit in titles

Now depending on which one your using you will have to either edit postbit or postbit_legacy

now search for {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}

after that install one of these two

1st for hypelink

<vb:if condition="$post['fieldX']">
<a target ="blank" href="{vb:raw post.fieldX}"><img src="images/image.png"

<alt="Your Text here {vb:raw post.fieldX}" your text here/></a>
</vb:if>

Change the X to what field you used, then change the image.png to your image file

Replace "Your Text here" to what u want to say b4/ and or after if you want it to say anything if not just delete it.


To do it without a hypelink just remove <a target ="blank" href="{vb:raw post.fieldX}">


Hope you guys enjoy and hope it helps the community

Juggernaut 05-28-2011 12:21 AM

Very nice explanation, I will put it to use in my forum. :)

hamedbia2 05-28-2011 07:09 AM

:x thank u

RobbieZ 05-28-2011 10:00 AM

Quote:

Originally Posted by leejohn02 (Post 2200564)
alt="alt="Your Text here {vb:raw post.fieldX}" your text here/></a>
</vb:if>

Mistype please change..

Code:

alt="Your Text here"></a>
</vb:if>


Chadi 02-02-2013 10:10 PM

How do we move the profile fields closer to the other social IM profile fields?


All times are GMT. The time now is 01:17 AM.

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.00979 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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