vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Pre-Sales Questions (https://vborg.vbsupport.ru/forumdisplay.php?f=26)
-   -   2 vars in postbits, wont work. (https://vborg.vbsupport.ru/showthread.php?t=38749)

Iceman86 05-17-2002 06:21 PM

2 vars in postbits, wont work.
 
Ok, i have this script.

Code:

#BEGIN HACK#
$fids = "forumid=5 OR forumid=8";

// User id en Team id in de respectievelijke vars $usrid en $tmid zetten.
$sql1 = "SELECT * FROM user WHERE userid=$bbuserinfo[userid] ORDER BY userid DESC";
$result1 = mysql_query($sql1);
while($usr= mysql_fetch_array($result1)){
        $usrid = $usr[userid];
        $tmid = $usr[teamid];
}


$sql2 = "SELECT * FROM thread WHERE postuserid=$usrid AND ($fids) ORDER BY threadid DESC";
$result2 = mysql_query($sql2);
$usr[pubstro] = mysql_num_rows($result2);

// Als er geen team is word
if ($tmid != "0"){
        $sql3 = "SELECT * FROM groepen WHERE id='$tmid' ORDER BY id ASC";
        $result3 = mysql_query($sql3);
        while ($object3 = mysql_fetch_array($result3)){
                $teamtitel = $object3[titel];
        }
        $usr[team]= "<a href=\"groepen.php?s=$session[sessionhash]&oneteam=1&teamname=$teamtitel\">$teamtitel</a>";
}else{
        $usr[team]="none";
}
# END HACK#

I placed the code in showtread.php (just above: eval("dooutput(\"".gettemplate("showthread")."\"); ");

i placed Total: $usr[pubstro] <BR> Team: $usr[team] in postbits.
But. It doesnt work.

Can annyone explane to me how i should do it?.

Steve Machol 05-18-2002 12:31 AM

Iceman86, please go to this page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)
Thank you.


All times are GMT. The time now is 10:04 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.00930 seconds
  • Memory Usage 1,712KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (2)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