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
Twitter Postbit by YoBroMoFo Details »»
Twitter Postbit by YoBroMoFo
Version: 1.00, by TimberFloorAu TimberFloorAu is offline
Developer Last Online: Jan 2013 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.8.2 Rating:
Released: 04-05-2009 Last Update: Never Installs: 31
Template Edits
Re-useable Code Translations  
No support by the author.

UPDATE:
This mod, is a Twitter hack for your members Postbit. It allows them to enter their Twitter ID, in edit your details section, and then the Link to their twitter account is displayed in their Postbit.

It is also usergroup permissable. See the first if condition.

If you USE this mod, please click INSTALLEd and RATE it please. This way I know people are interested in my stuff


YoBroMoFo British Expats Twitter Link in Postbit.
www.yobromofo.com
Brought to you by TimberFloorAu
April 2009
************************************************** ****

Goto ADMIN CP
User Profile Fields

Add new User Profile Field > Single Line Text Box

Title: My Twitter for under my Avatar
Description: Enter your twitter id here Example: BobSmith
Field Length 30
Profile Field Type: Single Line Text Box
Field required NO
Field editable by User : YES
Private field: no
Field searchable on Members list Yes
Show on members list YES

Regular expression: ^[0-9a-zA-Z_]{1,15}$|^$

Which page to display this option? Edit Your Details

______________________________________________

Click SAVE
On next page take a note of the field number for this new profile field. Example field18

In the code below, change fieldi to your field number, example field18. There are 2 edits, make sure you do them both.

Also ensure you have entered the correct path for your image, normally

http://yourwebsite.com/forum/styles/...me/twitter.jpg

Replace yourwebsite.com with your website
Replace forum with forums if your forum is in folder forums ( i think you understand)
Replace styles/stylename with whatever folder you are using for your forum, ie: mine is styles/australia

DO NOT REMOVE Copyright <!-- yobromofo british expats twitter addin code-->

_______________________________________________

Now goto postbit_legacy


CODE:
Code:
<!-- yobromofo british expats twitter addin code-->
<if condition="is_member_of($bbuserinfo, 2, 6, 7, 5)">
<if condition="$post[fieldi]">
<a href="http://twitter.com/$post[fieldi]" target="_blank"><img class="inlineimg" 

src="http://www.yourwebsite.com/forum/styles/stylename/statusicon/twitter.png" alt="View $post[username]'s Twitter Profile" 

width="16px" height="16px" border="0" /></a></if></if>
<!--end british expats twitter addin code-->

Ensure you paste the amended code, as you have edited it, with correct file path to the image. Plus correct field names !

There is only one actual field, but it does need to be edited in 2 places in the above code.

In Postbit_legacy find:

$post[skypeicon]
</center>

After this add the code above.

Now upload the image to your respective folder.

Thats it.

Have fun. Brought to you by British Expats Australia

Ok

enclosed in zip: full instructions, and image

Download Now

File Type: zip install_twitter_postbit_YBMF.zip (2.1 KB, 131 views)

Show Your Support

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

Comments
  #12  
Old 04-07-2009, 12:40 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Typically ( my postbit is heavily customized ) lol.

But here is how I have Twitter within my postbit ( we also have twit this in each post )

Ste

Code:
$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
</center>

<!-- yobromofo british expats twitter addin code-->
<if condition="is_member_of($bbuserinfo, 2, 6, 7, 5)">
<if condition="$post[field29]">
<a href="http://twitter.com/$post[field29]" target="_blank"><img class="inlineimg" src="http://www.yobromofo.com/forum/styles/webpoint/statusicon/twitter.png" alt="View $post[username]'s Twitter Profile" width="16px" height="16px" border="0" /></a></if></if>
<!--end british expats twitter addin code-->
Reply With Quote
  #13  
Old 05-16-2009, 07:16 PM
mikey1991's Avatar
mikey1991 mikey1991 is offline
 
Join Date: Oct 2008
Location: United Kingdom
Posts: 654
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

work with postbit?
Reply With Quote
  #14  
Old 05-17-2009, 03:19 AM
raiderlax's Avatar
raiderlax raiderlax is offline
 
Join Date: Sep 2006
Location: Ontario, Canada
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TimberFloorAu View Post
*** Reserved ***
Please CLICK INSTALLED if you use this.

Image added:
Hey the mod looks great!

I have a question though. It is about that screenshot. I see that you have "Rep Power: 2465" for the user from that screenshot. I'm trying to figure out how to do that, please see my thread here: https://vborg.vbsupport.ru/showthread.php?t=213855


How do I do that rep power number thing?

Thanks in advance.
Reply With Quote
  #15  
Old 06-22-2009, 10:25 AM
DNG DNG is offline
 
Join Date: Jun 2009
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice
Reply With Quote
  #16  
Old 08-02-2009, 03:28 AM
maXmood maXmood is offline
 
Join Date: Sep 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod, but it ain't working for me..

actually i'm running a 3.8.0 if that makes a difference. i don't see any </center>.

it's $post[skypeicon]</div>

i modified the code and inserted it after </div>, but it didn't work. then again i inserted it before </div>, still didn't work..

any ideas?

thnx
Reply With Quote
  #17  
Old 08-14-2009, 06:18 AM
YouBabble YouBabble is offline
 
Join Date: Aug 2009
Location: United Kingdom
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the same problem as above.
Edit: Found the solution, our templates are using postbit not postbit_legacy. Search for the same code in postbit and place it under the skype div's ender tag.
Reply With Quote
  #18  
Old 08-15-2009, 11:02 AM
maXmood maXmood is offline
 
Join Date: Sep 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

YouBabble, thank you very much!

i'd give u rep points, but there is no such system here.
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:26 PM.


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.04510 seconds
  • Memory Usage 2,303KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (1)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
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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