The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
]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 |
#2
|
||||
|
||||
![]()
]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... ![]() |
#3
|
||||
|
||||
![]()
]Here's FULL script which WORKS in the vBB folder, but does NOT work when u try to include it from outside :
PHP Code:
|
#4
|
||||
|
||||
![]()
]Here's NICE nice output that I'm getting out of this script
And this output does NOT want to be included any places... ![]() |
#5
|
||||
|
||||
![]()
Try this one:
PHP Code:
![]() |
#6
|
||||
|
||||
![]()
]yay! :] it worked! thanx Logician!!!
![]() used this script: PHP Code:
|
#7
|
||||
|
||||
![]()
]everything from my script works except 3 thing:
PHP Code:
I use this script for it: PHP Code:
![]() |
#8
|
||||
|
||||
![]()
]looks like something wrong with
PHP Code:
|
#9
|
||||
|
||||
![]() 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); |
#10
|
||||
|
||||
![]()
]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:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|