![]() |
Total views on non-vb page (Query included)
]hello...
I'll make it fast and easy : All I want is to display TOTAL VIEWS on a non-vb page. QUERY: "SELECT SUM(views) AS threadviews FROM thread" Where file will be : OUTSIDE of vbb folder How will I include this PHP file : <? include("totalviews.php"); ?> That is it... quick and simple... I may sound like an idiot, but right now I'm exploding because of madness... I have tried to get this script to work in the past 5 hours... I spent over 3 hours on the forum searching for include, non-vb page etc... I skimmed over 300 threads and I looked into all hacks... <-- desperate... :ermm: PS: I have tried to use Tobedogg's hack as a base ( https://vborg.vbsupport.ru/showthrea...t=online+nonvb ) but had no positive results |
]Here's code I tried to use...
PHP Code:
469,001 Line 15: PHP Code:
PS::: this is just one of the 300 ways I have tried to do it... :( |
]Here's FULL script which WORKS in the vBB folder, but does NOT work when u try to include it from outside :
PHP Code:
|
1 Attachment(s)
]Here's NICE nice output that I'm getting out of this script
And this output does NOT want to be included any places... :( I mean it does not work if you will try to include it as php file in a portal or phpnuke or whatever ( a webinterface outside of vBB folder ) |
Try this one:
PHP Code:
|
]yay! :] it worked! thanx Logician!!! :D
used this script: PHP Code:
|
]everything from my script works except 3 thing:
PHP Code:
I use this script for it: PHP Code:
|
]looks like something wrong with
PHP Code:
|
Quote:
As for "$loggedins": use that one in mysql_result because it is a query result. So you should use it like that: $numberguest=mysql_result($loggedins,0); |
]Hmmm... now I use this script:
PHP Code:
same result : Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/wooolf/WWW/forum/totalviews.php on line 43 :( :( :( :( :( line 43: PHP Code:
|
All times are GMT. The time now is 12:28 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:
|