vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Profile Enhancements - Twitter Postbit by YoBroMoFo (https://vborg.vbsupport.ru/showthread.php?t=210405)

TimberFloorAu 04-05-2009 10:00 PM

Twitter Postbit by YoBroMoFo
 
1 Attachment(s)
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

TimberFloorAu 04-05-2009 10:12 PM

1 Attachment(s)
*** Reserved ***
Please CLICK INSTALLED if you use this.

Image added:

Milad 04-05-2009 11:02 PM

What does this do?

TimberFloorAu 04-06-2009 12:31 AM

Twitter Link in Postbit

Jasem 04-06-2009 01:37 AM

Good work, thank you......

Installed

Brandon Sheley 04-06-2009 01:57 AM

so it's just a link to your twitter profile in the post?

I think you have a typo

YoBroMoFo British Expats Twitter Link in Postbit.

shouldn't it be

YoBroMoFo British Experts Twitter Link in Postbit.
?

cheers
-Brandon

armthehomeless1 04-06-2009 04:24 AM

Expat = expatriate:

ex·pa·tri·ate - One who has taken up residence in a foreign country.

Thanks for this mod...I'm going to install it now!

armthehomeless1 04-06-2009 04:32 AM

actually...can you put the field in with all the other instant messaging fields?

TimberFloorAu 04-06-2009 07:25 AM

Yep, thats how I have it :)

DobieGillis? 04-06-2009 09:41 PM

installed and working well.


All times are GMT. The time now is 02: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
  • Page Generation 0.00975 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete