vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Follow Me Twitter Icon in Postbit (https://vborg.vbsupport.ru/showthread.php?t=257029)

Olgi 01-12-2011 10:00 PM

Follow Me Twitter Icon in Postbit
 
1 Attachment(s)
Hello,

This is my first "mod" here on VB.org, Its nothing big deal however since I implemented it on my seo forum I thought you might use it too

What does this modification do?

This modification let's you add a twitter follow me button in your postbit

Screenshot

http://im.gg/uploaded/12012011-534991.png

Instructions

Step 1 - Go at User Profile Fields and create a new filed (single line). At the title put something as "Twitter Username" and description put something like "Insert your twitter username". Field length make it 40 and then save it. Make sure you took the field id name

Step 2 - Now that you have set up your profile field its time to go and edit your template. According to what style you are using, edit postbit or postbit legacy and find the following code:

Code:

{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                                </div>
                        </vb:if>

Add after

Code:

<vb:if condition="$post['field5']"><a href="https://twitter.com/{vb:raw post.field5}"> <img alt="My Twitter Account" border="0" src="http://www.yourimagesource/images/twittericon.png" border="0"/></a></vb:if>
Note: On the example above I have used field5 because that was my id so you have to change that number according to yours

Thats it basically, you go at your Edit Profile link and at the very bottom you add your username

WORKING DEMO

Attached you will find some icons you can use for this mini modification

OldSchoolDSL 01-13-2011 03:55 PM

1 Attachment(s)
Installed and working

4.1 PL2

Added an updated Twitter icon (optimized ..ie... Smaller size and a little lighter color)

nacaruncr 01-13-2011 04:21 PM

Tagged.... thanks :D

tafreeh 01-13-2011 11:45 PM

yey....Thanks allot :)

LVGgebruiker 01-19-2011 08:39 AM

Thank you for this nice little mod! Have used on 4.1.1 and working fine.

BadgerDog 01-19-2011 11:12 AM

1 Attachment(s)
We have no graphics tools or knowledge on how to do it, so is there anyone able to help us with a "Follow me on Twitter" icon that blends more with our own color scheme?

Thanks in advance for any assistance ... :up:

Regards,
Doug

TCB 01-26-2011 02:17 PM

Thanks :D

Would be great if you could make it into a plugin. Current installation feels a bit like...ehh.... the ancient versions of vbulletin

tdkmatt 02-13-2011 12:13 PM

how do you center the image in the postbit?

diabolicds 02-13-2011 05:12 PM

Quote:

Originally Posted by TCB (Post 2154882)
Thanks :D

Would be great if you could make it into a plugin. Current installation feels a bit like...ehh.... the ancient versions of vbulletin

+1 working fine as plugin would be great :p

AURFSCAN 02-13-2011 08:50 PM

1 Attachment(s)
Quote:

Originally Posted by BadgerDog (Post 2151395)
We have no graphics tools or knowledge on how to do it, so is there anyone able to help us with a "Follow me on Twitter" icon that blends more with our own color scheme?

Thanks in advance for any assistance ... :up:

Regards,
Doug

Doug, I had a few mins spare. what about this?

:)

BadgerDog 02-13-2011 09:04 PM

Quote:

Originally Posted by AURFSCAN (Post 2162288)
Doug, I had a few mins spare. what about this?

:)


Thank you Sir .. :)

That was very gracious of you .... :up:

Regards,
Doug

fevredsuk 02-17-2011 09:43 PM

going to uninstall, would be better if the image only showed for members who filled out that profile field..if thats possible.

At moment it looks like every member has a twitter page and you can't tell who has and who hasn't

unless i have done something wrong

Brew 08-04-2012 02:51 AM

I agree that this should be a plugin and have an option in the usercp for inputting the users twitter accnt.

Then an easy conditional in the postbit for whether the user has inputted their twitter accnt info.

Once that is done this would be a very nice mod :)


All times are GMT. The time now is 06:27 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.01100 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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