![]() |
Query Database in global.php and print it in Postbit
Hello,
I have this query in global.php and want to print it in postbit. Basically showing a small notice wether the member has agreed to the Terms of Service or not. $tos is for showing a global notice to everyone who has not yet agreed. $tospost should be the small notice in the postbit. However, if I add $tospost in my postbit nothing will be shown... Why is that? Code:
if(isset($vbulletin->userinfo['userid']) AND $vbulletin->userinfo[username] != "Unregistered") |
I hope someone can help me. At vBulletin they told me to ask here.
|
Thanks for any help
|
Quote:
Put it in the postbit_display_complete hook. Additionally, there's no need to query the database for the user's information. Use this code: PHP Code:
|
I have pretty much been looking for the same exact thingm thank you for posting this.
So can I make my own SQL query now from another database in this plugin? Thanks for the help |
Works like a charm! Thanks a lot for your help!~
|
All times are GMT. The time now is 05:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|