PDA

View Full Version : Show Thread Enhancements - Follow Me Twitter Icon in Postbit


Olgi
01-12-2011, 10:00 PM
Hello,

This is my first "mod" here on VB.org, Its nothing big deal however since I implemented it on my seo forum (http://www.aseoforum.com) 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:

{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


<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 (http://www.aseoforum.com/announcements/2-welcome-aseoforum-com.html#post4)

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

OldSchoolDSL
01-13-2011, 03:55 PM
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
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
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
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
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 :)