![]() |
UKBL ~ Twitter profile link on Postbit ~ Clickable
UKBL ~ Twitter profile link on Postbit ~ Clickable !! Member on Twitter? Show other members that you have a Twitter presance by adding a Twitter Icon to your postbit ;) Not been on for a while but i've had numerous requests for this Twitter hack so here we go.... This is a cool hack which will let your members add a Twitter Icon to their Postbit template, They need to add their Twitter Profile user name in their userCP for this to show, If they don't enter one, then the badge don't show :D Runs along the same lines as the Facebook Hack, so if you've installed that, you'll love this :D How to install. Its really easy to do, as always, so if your sitting comfortably, lets begin ;) Now we need to create a User Custome field, so..... AdminCP and add a custom field > User Profile fields > Add New User Profile Field Title = Twitter User Name Description = Enter Your Twitter username from your Twitter User Profile Default Value = Leave empty Max length of allowed user input = 20 Display Size = 10 Display Order = 10 or 15 Field Required = No as default Field Editable by User = Yes in case member wants to delete, Later Private Field = No Field Searchable on Members List = No Show on Members List = Yes Regular Expression = leave empty Save the field ;) Once you've saved you can see what the field number is, So lets say its Field11 for example, Remember this as will need it for your Postbit Edits :up: Thats the first bit done, now Part Two :rolleyes: Go to the template you are using in Styles & Templates/Style Manager, and select Edit templates. Go to "postbit templates" and select the template you are using, either postbit or postbit_legacy. Find the following Code:
<if condition="$post['joindate']"><div class="postbit">$vbphrase[join_date]: $post[joindate]</div></if> Code:
<if condition="is_member_of($bbuserinfo, 6, 7, 9)"> Code:
http://i475.photobucket.com/albums/rr114/ukbusinesslive/twitter3.gif They are in .gif and .png, use the ones you feel happiest with ;) https://vborg.vbsupport.ru/external/2009/04/5.gif https://vborg.vbsupport.ru/external/2009/04/10.png https://vborg.vbsupport.ru/external/2009/04/3.gif https://vborg.vbsupport.ru/external/2009/04/4.gif https://vborg.vbsupport.ru/external/2009/04/11.png http://i475.photobucket.com/albums/r...e/twitter3.gif Now when members sign up their Twitter badge and enter their profile user ID into the "Enter your twitter username from your Twitter User Profile" section in their UserCP, The Badge will automatically appear in their Postbit :eek: Don't forget to change the usergroup condition with the number of the usergroups that you want to be able to view this Code:
<if condition="is_member_of($bbuserinfo, 6, 7, 9)"> Members who do not add a user id will not be shown anything. Next, Upload the Twitter icon to your forums/images/misc folder and add the full url to the part in the code which shows the image. if you are just seeing a red cross on your postbit, then its because your image url is not right ;) Oh Forgot to say, Badge is fully clickable so members can click directly to Twitter ;) Please Click Installed and I'll support you 100% Thanks |
:D Reserved :cool:
|
Very, Very Nice!!
Is there a Demo or Screenshot? |
Quote:
Hope that helps :D |
Works nicely and quite simple to install. thank you.
|
Well, I just installed this and I love it! But there's a problem, doing exactly as you stated, I put it above my registration date, which is fine, and the picture becomes clickable, but so does alot of other things including my Join Date, Location, Posts, Reputation, vBux, etc. Anyway to make it so that just the image is clickable? I used the exact code you provided, so it must just be some simple error with the hyper linking, but I can't figure out how to make it apply only to the image.
|
I followed the guide but but when I saved the template it gave me the following error:
Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3545 The following error occurred when attempting to evaluate this template: %1$s This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. I guess the guide was made for an earlier version of vBulletin I am using the latest 4.1.7 Please help |
Quote:
|
Quote:
|
All times are GMT. The time now is 05:43 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|