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)

DieselMinded 04-14-2009 05:37 AM

Something very crazy !!!!!!

PHP Code:

<!-- Myspace start -->
<if 
condition="$post[field6]"><a href="http://www.myspace.com/$post[field6]target="_blank">
<
img src="images/misc/myspace.gif" border="0" alt="View Member's MySpace Page" /></a>
</if>
<!-- 
Myspace end -->
<!-- 
Facebook start -->
<if 
condition="$post[field11]"><a href ="http://www.facebook.com/profile.php?id=$post[field11]target="_blank"><img src ="images/misc/facebook.gif" border="0" alt="View Member's FaceBook Profile" /></a>
</if>
<!-- 
Facebook end --> 

in post bit

But IE is completely striping out the face book code , ITS NOT EVEN ON THE PAGE SOURCE !

dilbert 04-14-2009 04:11 PM

I believe the Facebook ID is always a number, so you might want to consider using a Regular Expression setting. I added something like this previously for Facebook and LinkedIn and also added them to the memberlist page.
I used this for the Facebook ID: ^[0-9]{5,25}$|^$

DieselMinded 04-18-2009 09:24 PM

i had the field hidden works great thanks

MaR? 05-18-2009 02:12 AM

How can I add link on profile???

ubcforums 05-18-2009 05:26 AM

installed :D....working like charm...thanks

MaR? 05-19-2009 02:40 AM

Sorry I dint clik INSTALL, now I did:

How can I add link on profile???

valdet 05-29-2009 04:09 PM

Gerry,

On Profile field in Admin panel, you need to use this regex, to have users enter exactly 10 numbers.

Code:

^([0-9]{10})$
Max length of allowed user input isn't the solution for this case, because users may enter less than 10 numbers in that profile field, while Facebook profiles have exactly 10 numbers each, so in some cases facebook profile links may be broken.

Val.

UKBusinessLive 05-29-2009 04:50 PM

Quote:

Originally Posted by valdet (Post 1819655)
Gerry,

On Profile field in Admin panel, you need to use this regex, to have users enter exactly 10 numbers.

Code:

^([0-9]{10})$
Max length of allowed user input isn't the solution for this case, because users may enter less than 10 numbers in that profile field, while Facebook profiles have exactly 10 numbers each, so in some cases facebook profile links may be broken.

Val.

Thanks Val :D

rrudeboy 06-13-2009 02:30 AM

hmz, installed this this morning and if i click on a user's FB icon it directs me to my own FB page...

Mellymonster 06-13-2009 06:13 AM

This is great, and also if you want to do it for Myspace you can use the Myspace image
https://vborg.vbsupport.ru/external/2009/06/25.gif

and the code for that would be a little different not much

Code:

<if condition="is_member_of($bbuserinfo, 6, 7, 9)">
<if condition="$post['field11']">
<a href="http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=$post[field11]">
<img alt="Myspace" border="0" src="http://www.yoursite.com/images/misc/icon_myspace.gif" border="0"/>
</if></if>



All times are GMT. The time now is 03:30 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.01094 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)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