vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How can I call the "fbuserid" variable in from the table "user"? (https://vborg.vbsupport.ru/showthread.php?t=252909)

Duncan 10-30-2010 09:47 PM

How can I call the "fbuserid" variable in from the table "user"?
 
I want to use the fbuserid in a template. How can I call upon this?

Lynne 10-30-2010 11:07 PM

Use who's fbuserid and in what template?

Duncan 10-30-2010 11:19 PM

The template is called vsa_chatbox_bit and it's from this modification:

https://vborg.vbsupport.ru/showthrea...hlight=Chatbox

The vsa_chatbox_bit contains this:

Code:

<a href="member.php?{vb:raw session.sessionurl}u={vb:raw vsacb_msg_box.userid}">{vb:raw vsacb_msg_box.musername}</a>
I want to change to display this:

Code:

<a href="http://facebook.com/{vb:raw fbuserid}">{vb:raw vsacb_msg_box.musername}</a>
It would need to display the user fbuserid of the name of the person who posted the message, the name being contained in {vb:raw vsacb_msg_box.musername}.

Basically, right now it is setup to display the profile of the person who posted a shout. But I want it to display the facebook page of the person who posted she shout.

Lynne 10-31-2010 02:53 AM

I have no idea if that variable is available there. You'd have to ask the developer in the modification thread or look through the code yourself and see if it's available, and if not, add it to the query. But, since this is regarding a modification, the place to ask about this is in the modification thread.


All times are GMT. The time now is 05:01 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.01128 seconds
  • Memory Usage 1,713KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete