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)
-   -   Forum Home Enhancements - UKBL ~ FaceBook profile link on Postbit (https://vborg.vbsupport.ru/showthread.php?t=208147)

joyboy2001 08-24-2009 05:36 PM

now that facebook has released vanity usernames, can this be modified to include either the profile number or the profile name ...
If it's too complicated to make this happen automatically (if the user enters a number then the coding becomes different and if he enters a username the code automatically changes) then can there be an option to do this with the use of 2 text boxes ?

I'd love to install this as I've also integrated Facebook connect but can't till the time both type of facebook users (with profile ID and with usernames) are able to get correct URLs ...

hippyTRIBE 09-11-2009 08:50 PM

^^
I am facing a problem as to how to retrieve the Facebook IDs as they have changed their model to vanity URL.

Hope UKBL will come up with a solution to this.. !!

itsheinz 09-15-2009 04:16 PM

nice one simply rocks :)

principino1984 09-16-2009 04:40 PM

Code:

<if condition="is_member_of($bbuserinfo, 6, 7, 9)">
<if condition="$post['field12']">
<a href="http://www.facebook.com/$post[field12]?ref=profile">
<img alt="Il mio Facebook" border="0" src="images/misc/facebook.png" border="0"/>
</if></if>

I solved with a simply mod to it...

taffy056 09-18-2009 09:48 PM

very nice thanks :)

blaize 10-26-2009 09:56 PM

I worked around the new vanity url issue by creating two custom fields, one for numerical id and one for users with vanity urls.

This is the code I used for the postbit template edits. Change fields XX & YY to whatever your custom fields are.

Quote:

<if condition="is_member_of($bbuserinfo, 2, 5, 6, 7)">
<if condition="$post['fieldXX']">
<a href="http://www.facebook.com/home.php/#/profile.php?id=$post[fieldXX]&ref=profile">
<img alt="My Facebook" border="0" src="http://yourforums.com/forums/images/misc/facebook.png" border="0"/>
</if></if>

<if condition="is_member_of($bbuserinfo, 2, 5, 6, 7)">
<if condition="$post['fieldYY']">
<a href="http://www.facebook.com/$post[fieldYY]?ref=profile">
<img alt="My Facebook" border="0" src="http://yourforums.com/forums/images/misc/facebook.png" border="0"/>
</if></if>
Use at your own risk.

The first is for the numerical id & the second is used if the facebook profile uses a vanity url.

taffy056 11-15-2009 04:41 PM

Been playing around with this trying to get it to work in VB 4.0, obviously it needs to be recoded as it doesn't work, anyway its a cool little hack and would love to have it on my forum again.

Thanks

greenbuildpost 11-17-2009 01:30 PM

I noticed when I set it up to use the vanity names you must include "?ref=nf" after you fill your vanity name in the user details field.

Is there a way around this so you can just enter your vanity name?

greenbuildpost 11-17-2009 04:47 PM

Quote:

Originally Posted by greenbuildpost (Post 1915888)
I noticed when I set it up to use the vanity names you must include "?ref=nf" after you fill your vanity name in the user details field.

Is there a way around this so you can just enter your vanity name?

For now I just added "?ref=nf" into the address on the style manager template and it seems to be working with only adding the custom Facebook URL in the details field.

GTX2 11-22-2009 07:35 AM

Great mod !!

I just think my forum members won't find easy to find the facebook member number (most don't understand this kind of stuff).
Is there any way of associate their email with their member number, in order to fill out that field automatically?
Maybe i'm asking for something impossible ;)


All times are GMT. The time now is 06:36 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.01073 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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