vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   In Postbit legacy need toshow extra field (https://vborg.vbsupport.ru/showthread.php?t=203299)

Saintless 01-27-2009 08:41 PM

In Postbit legacy need toshow extra field
 
Hi,
I need to add extra field in post bit.Let me describe, i have a customized field name 'user_status' in vb_socialgroupmember. i need to show that field value in post bit . so i need userid whose post is showing, as a sql parameter and may be this code need to write in loop from where other userinfo is retrieving for post bit.

i didn't find code, where i have to write sql for retrieving that field data.Please help.

Thanks in advance

Dismounted 01-28-2009 04:26 AM

Look in showthread.php - you can hook into the query that fetches user info, and add a join.

vbplusme 01-28-2009 12:03 PM

Thanks, walking through your problem helped me find the solution to mine. I was using,

HTML Code:

<if condition="$post[userid] == 'Administrator'">
didn't work. BUT

HTML Code:

<if condition="$post[userid] == 1">
DID!

Thanks again

Saintless 01-28-2009 02:56 PM

Quote:

Originally Posted by Dismounted (Post 1726849)
Look in showthread.php - you can hook into the query that fetches user info, and add a join.

Thanks for reply.But could you plz specify which portion of code is retrieving user info for postbit legacy in 'showthread.php'.Is there any other modification for sending variable to template for available there?

Lynne 01-28-2009 03:13 PM

Did you look at the showthread.php page? There is a nice big query around line 1000 (or so, my file is edited) where the posts and all the information about the posts (including the user info) is gathered. There is a hook right above there.

Saintless 01-28-2009 05:37 PM

Thankx . hope it will work


All times are GMT. The time now is 11:15 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.00926 seconds
  • Memory Usage 1,720KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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