Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
UKBL ~ Twitter profile link on Postbit ~ Clickable Details »»
UKBL ~ Twitter profile link on Postbit ~ Clickable
Version: 1.00, by UKBusinessLive UKBusinessLive is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Category: End-User Options - Version: 3.8.2 Rating:
Released: 04-25-2009 Last Update: Never Installs: 53
Template Edits
Re-useable Code Translations  
No support by the author.

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

Runs along the same lines as the Facebook Hack, so if you've installed that, you'll love this



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

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>
Directly above it add

Code:
<if condition="is_member_of($bbuserinfo, 6, 7, 9)">
<if condition="$post['field11']">
<a href="https://twitter.com/$post[field11]">
<img alt="My Twitter" border="0" src="http://i475.photobucket.com/albums/rr114/ukbusinesslive/twitter3.gif" border="0"/>
</if></if>
replace the RED Field attribute for your own and dont forget to replace the twitter image show in the above code for your own, see below

Code:
http://i475.photobucket.com/albums/rr114/ukbusinesslive/twitter3.gif
I've added several twitter images below but feel free to use your own

They are in .gif and .png, use the ones you feel happiest with








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

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)">
That means that guests and banned users will not be able to view members Twitter profile urls

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

Download Now

File Type: zip twitter to postbit.zip (36.1 KB, 112 views)

Screenshots

File Type: gif twit1.gif (10.9 KB, 0 views)
File Type: gif twit2.gif (7.2 KB, 0 views)
File Type: png twit3.png (5.0 KB, 0 views)
File Type: png twit4.png (6.1 KB, 0 views)
File Type: png twit5.png (7.4 KB, 0 views)
File Type: gif twit6.gif (1.7 KB, 0 views)
File Type: gif twit7.gif (2.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 08-14-2009, 04:17 AM
Verionia Verionia is offline
 
Join Date: Jul 2009
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works great in 3.84 but how can I get the icons to show in users profile as well?
Reply With Quote
  #43  
Old 08-14-2009, 12:07 PM
Verionia Verionia is offline
 
Join Date: Jul 2009
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by maXmood View Post
Uninstalled, and Terrible rating.
What postbit file where u using, the legacy or regular one? Use legacy if ur postbit is to the left and regular postbit for the postbit on top.. I could help you get it to work, you might have installed it on wrong file...
Reply With Quote
  #44  
Old 11-23-2009, 03:09 PM
sharemee sharemee is offline
 
Join Date: Jan 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im haveing some problems here and support would be very gratefull

i have the tweet image showing but when i clic it it takes me to a page that says :

https://twitter.com/Show%20Tweet

Sorry, that page doesn’t exist!

i am desperate to get this working ASAP

thanks in advance

Andy

If you need to see this for your self, then just go here and click the ttwitter button in my postbit :
http://www.sharemee.com/clones/4467-....html#post6840

(you may have to join to view, but if you have a facebook account you can log in with that )
Reply With Quote
  #45  
Old 12-09-2009, 02:21 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sharemee View Post
Im haveing some problems here and support would be very gratefull

i have the tweet image showing but when i clic it it takes me to a page that says :

https://twitter.com/Show%20Tweet

Sorry, that page doesn?t exist!

i am desperate to get this working ASAP

thanks in advance

Andy

If you need to see this for your self, then just go here and click the ttwitter button in my postbit :
http://www.sharemee.com/clones/4467-....html#post6840

(you may have to join to view, but if you have a facebook account you can log in with that )
Meh! So tired of registering on other sites but here to help... it seems like you simply did the code wrong or gave the wrong twitter info, if you can provide a temp account and pm me the details I'll be glad to check it out, please reference this post when you PM and thanks!

Mike
Reply With Quote
  #46  
Old 05-07-2010, 06:01 PM
digitaldome digitaldome is offline
 
Join Date: Jan 2009
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any update for vb 4.0.3 ?
Reply With Quote
  #47  
Old 05-26-2010, 08:37 PM
NP Carling26 NP Carling26 is offline
 
Join Date: Jul 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is an error that causes all items in the profile portion of the postbit to become hotlinked to your twiter account. If some new HTML code that fixes this could be released, that'd be great!
Reply With Quote
  #48  
Old 05-26-2010, 09:33 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NP Carling26 View Post
There is an error that causes all items in the profile portion of the postbit to become hotlinked to your twiter account. If some new HTML code that fixes this could be released, that'd be great!
The code UKBL originally listed is missing the closing tag for a href i.e. here is his code:

Code:
<if condition="is_member_of($bbuserinfo, 6, 7, 9)">
<if condition="$post['field11']">
<a href="https://twitter.com/$post[field11]">
<img alt="My Twitter" border="0" src="http://i475.photobucket.com/albums/rr114/ukbusinesslive/twitter3.gif" border="0"/>
</if></if>
Which should be this:

Code:
<if condition="is_member_of($bbuserinfo, 6, 7, 9)">
<if condition="$post['field11']">
<a href="https://twitter.com/$post[field11]">
<img alt="My Twitter" border="0" src="http://i475.photobucket.com/albums/rr114/ukbusinesslive/twitter3.gif" border="0"/></a>
</if></if>
As you can see I simply added the </a> at the very end which will now render the rest of your links properly as that tag is closed otherwise it does assume the worst and applies that URL to all others etc.
Reply With Quote
  #49  
Old 06-30-2010, 02:28 PM
sunnycher sunnycher is offline
 
Join Date: Mar 2005
Location: FL
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've followed this to a T, not working for me either, image doesn't show up at all.
Reply With Quote
  #50  
Old 06-30-2010, 05:43 PM
yamahapaul's Avatar
yamahapaul yamahapaul is offline
 
Join Date: Aug 2008
Location: UK
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sunnycher View Post
I've followed this to a T, not working for me either, image doesn't show up at all.
I like this but for the purposes of networking etc its just as easy to just add it to your signature as a clickable link-

http://www.midlandsheritage.co.uk/mi...oundaries.html
Reply With Quote
  #51  
Old 06-30-2010, 11:24 PM
w-elbalad.com's Avatar
w-elbalad.com w-elbalad.com is offline
 
Join Date: Aug 2009
Location: EgYpT
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice work
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05056 seconds
  • Memory Usage 2,363KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete