how do i convert it in to 1.0x..... ?
Hi,
I've been admiring your "latest posts/unread posts/latest threads" box that you have on your lower left front page http : // www . codecall.net/index.html
Could you tell me if this is a plugin/module and if so, what is it called and where can I find it please?
P.S. the forum stats thing works great, thanks for that
Dave
Hello, this is a custom made module that was created by me for CodeCall (and totalpenguin.com). There is no way to download this addon.
Vbulletin 3.8.x in external site work?
jordan will sell it to you for $1,000 USD, half now, half on download
Checkout my new forum! http://adminreference.com/
I knew this project is pretty old but I sort of chanced upon it and like it alot. I'm pretty new to coding, I lookup on how the script call out to each individual function and kinda reverse the method a little to show 'Guest Online'
I am not sure if I am right, but it seems to be working for me right now.
<!-- Code Start-- >
// Get Guests Online
#################################################
//$query = "SELECT * FROM " . $table_prefix . "session";
$query = "SELECT * FROM " . $table_prefix ."session "
." WHERE lastactivity >= UNIX_TIMESTAMP(NOW() - INTERVAL 15 MINUTE)"
." AND userid=0";
$results = mysql_query($query, $link);
$totalGuestsOnline = mysql_num_rows($results);
$totalGuestsOnline = number_format($totalGuestsOnline);
<!-- Code End -- >
As I saw from the codes how this module extract 'members online' " ." AND userid>0"; " I looked up on the sql tables and found out that 0 = guest and 1 or more = members. So by doing the above code, I somewhat made displaying Guests Online possible. Maybe for the professional coders this is pretty common sense, but I'm sure newbie coders like me would appreciate this finding.
EDIT: There is a small issue though with the xml file though. I've added the following line into the xml file so that "Guests Online:" can be change from the backend of joomla without any hacks into mod_vbstats.php.
<param name="guests_online" type="text" default="Guests Online:" label="Guests Online Text" description="Text for total guests online." />
print "$guests_online $totalMembersOnline <br /><br />";
When tried out, it does not output any text that I changed on the back-end. Any reason what went wrong ? Meanwhile I am using this manually "
print "Guests Online: $totalGuestsOnline <br /><br />"; works fine, but not everyone wants to edit things from the php itself, ppl rather work it out from the back-end of joomla.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks