vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Members who have visited today (with last 24 hours option). (https://vborg.vbsupport.ru/showthread.php?t=71533)

Curtis H. 10-22-2005 08:20 PM

Simple (especially for novices like myself) and effective. Thanks! :)

TEAMBAJAMARINE 10-26-2005 12:15 AM

Great Hack, I would like to add it to the bottom of my page, I have tried placing it in numerous spots of the FORUM HOME template, and I get it there, just not the right format. Its either vertical or half the page. Any ideas?

Paul M 10-26-2005 01:17 AM

I don't quite follow, the instructions tell you where to place it in the template.

MickDoneDee 10-26-2005 05:34 AM

Look at TEAMBAJAMARINE's forum. What's Going On is at the top of the page. The original template has What's Going On near the bottom of the page. Does TEAMBAJAMARINE want the Members who have visited today (with last 24 hours option) hack to be seen in What's Going On or be seen separately at the bottom of the page?

Paul M 10-26-2005 05:52 AM

It's already in the what's going on section, to put it seperately at the bottom would require some extra code to create a table - as the supplied code is for a single row in an existing table.

TEAMBAJAMARINE 10-26-2005 10:49 AM

Quote:

Originally Posted by Paul M
It's already in the what's going on section, to put it seperately at the bottom would require some extra code to create a table - as the supplied code is for a single row in an existing table.

Yes sir, exactly the answer I was looking for. Does anyone have the code to put the TOTAL USERS TODAY at the bottom of the page. Thanks for the replys gang!

MickDoneDee 10-26-2005 11:22 AM

In the original FORUMHOME template the code at the end of the forum table looks like this:

</tbody>
</table>
<!-- /main -->

<br />
<br />

<!-- what's going on box -->

This code includes a couple of line breaks to put a space between the forum table and the What's Going On table. If you want a gap then make sure you put your code after the two <br />'s. If you want Paul's hack to be butted on the end of the forum table then his code must be inserted between </tbody> and </table>.

Try adding this code after the two line breaks:

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<!-- Todays active users -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_todayusers')"><img id="collapseimg_forumhome_todayusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayusers].gif" alt="" border="0" /></a>
                        Total users that have visited today: $totaltoday
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_todayusers" style="$vbcollapse[collapseobj_forumhome_todayusers]">
        <tr>
                <td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="Users online today" border="0" /></td>
                <td class="alt1" width="100%"><div class="smallfont">$whotoday</div></td>
        </tr>
</tbody>
<!-- Todays active users -->
</table>
<br />


TEAMBAJAMARINE 10-26-2005 11:49 AM

Mick,
Fantastic Work, Thank you! I made a few line break adjustments, but worked like a charm. See it in action here...

http://www.teambajamarine.com/forum/

MickDoneDee 10-26-2005 12:06 PM

You have put the code here:

</tbody>
Your code
</table>
<!-- /main -->

and added a <br /> before the code to add a gap between the forum and Paul's hack.

Since you added a <tbody> inside the forum table container I don't think you need:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

& </table>.

You only need those lines if you are creating a new table container for Paul's <tbody>. I hope that makes sense. If not, just leave the code as is as it seems to work.

T_Montana 10-28-2005 02:18 PM

have a question here.......this hack has been working great for a few months now and really makes the forum look nice but i have a problem the past few days.....

i just switched servers and since the switch every night at about 6 p.m. eastern it goes blank (has 0 members visited in last 24 hours) and doesn't start up again until a few hours later (probably like 1 a.m.).

Any idea how i could fix this or what the problem would be?

Paul M 10-28-2005 03:11 PM

The timezone on your server is probably wrong, it also sounds like you have an older version of the hack as this shouldn't affect the newer versions. Try installing the latest version of the code (2.31).

RGSMDNR 10-30-2005 11:24 AM

will this work with 3.5?

Paul M 10-30-2005 11:41 AM

Quote:

Originally Posted by RGSMDNR
will this work with 3.5?

No.

The 3.5 version is here ;

https://vborg.vbsupport.ru/showthread.php?t=82769

jmacieira 10-30-2005 10:19 PM

Good job, installed/

97cobracpe 11-17-2005 10:39 PM

Installed. Works great. Thanks!

chrisisonfire 11-27-2005 09:58 PM

Hi, I installed this hack about ten minutes ago, but when I refresh the index page and see that there have been other members online, the new box is blank... and still is! What might be wrong?

Paul M 11-27-2005 10:08 PM

Link ?

At a guess, you either haven't done the edit to index.php correctly, or you haven't uploaded the edited file.

MustangLisa 12-02-2005 04:10 PM

What do I need to change to show users from the entire month?

Paul M 12-02-2005 04:16 PM

Quote:

Originally Posted by MustangLisa
What do I need to change to show users from the entire month?

You're joking right ?

SamirDarji 12-02-2005 06:05 PM

Not too bad of an idea for smaller sites.

glensmail 12-03-2005 06:54 PM

Would it at all be possible to display this info on a non vb page.

Could you provide the code?

G-Unot 12-06-2005 11:27 PM

Thank you dude, I installed ;)

Paul M 12-07-2005 12:59 AM

Quote:

Originally Posted by glensmail
Would it at all be possible to display this info on a non vb page.

Anything is possible.

Quote:

Originally Posted by glensmail
Could you provide the code?

Sorry but no, I don't have the time to write user specific versions.

glensmail 12-09-2005 11:45 PM

Quote:

Originally Posted by Paul M
Anything is possible.

Sorry but no, I don't have the time to write user specific versions.

OK, np's thanks for the reply.

Would any of the other coders be prepared to port this to a stand alone script to be used on a not VB page?

Ingmar 12-16-2005 10:50 AM

Super simple, super effective! Thanks for the great mod!

Cheers! :)

G-Unot 01-08-2006 05:40 AM

Nice I love it

I installed

www.gfxlive.com

:)

ThugTheLeet 01-16-2006 12:30 AM

nicely installed thanks paul

demojames 02-17-2006 07:43 AM

Thank you, Thank You, Thank You - Easy Install!

headrat 02-23-2006 01:14 PM

Ok, I have it commented off like this for now
Code:

$cutoff = TIMENOW - (substr($tnow,8,2)*3600 + substr($tnow,10,2)*60 + substr($tnow,12,2));
//$cutoff = $now - 86400 ;//

because if I take the comments off, it shows a list of ALL members. How can this be fixed because I have it set up as a module on my main page (www.RatPackInternational.com) and it works fine. Any help please?

headrat 02-23-2006 05:53 PM

Also, I've been through ALL 40 pages of this thread and was wondering if you could direct me to a question on the CMP Module? I want to know what to change in the CMP Module to change it to a rolling 24 hours instead of the today which resets at midnight.

Thanks.

Also, to go with the above, I didn't make the same mistake others are making, I removed the "//" and even removed the $cutoff line above it and it shows ALL my users. Much like a member before had mentioned, when I do the mouse over, the time is right of their last log in, but the dates are months ago, so should not show them all like that, help on both would be great.

Paul M 02-23-2006 06:37 PM

I suggest you upload the file you are actually using in your CMPS so I can see the code.

headrat 02-23-2006 07:00 PM

Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat smallfont" style="font-weight: bold;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_$mods[filename]')"><img id="collapseimg_forumhome_$mods[filename]" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" width="15" height="15" border="0" alt="Collapse/Expand" /></a>$vba_options[portal_blockbullet] Visitors Today: $totaltoday</td>
</tr>
</thead>
<tfoot style="display: none;"><tr><td></td></tr></tfoot>
<tbody id="collapseobj_forumhome_$mods[filename]">
<tr style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">
<!-- Todays active users -->
$whotoday
<!-- Todays active users -->
</td>
</tr>
</tbody>
</table>
<br />


Paul M 02-24-2006 04:08 PM

No, not the template, the (php) file.

headrat 02-25-2006 04:57 AM

Well, I'm on 3.0.6 because if I upgrade I'm not sure how to keep all my "hacks", but when I uncomment the line for the $cutoff in the php file it shows ALL of my users in the box. Can you help me on that one?

Paul M 02-25-2006 05:52 AM

Change the uncommented line to this ;

PHP Code:

$cutoff TIMENOW 86400 // Rolling 24 Hours Display // 


headrat 02-25-2006 09:44 AM

Uh, nope, that didn't do anything but send it back to showing all my users. I'm not sure what the comment line after the code was supposed to do, since it is just a comment line. ??? Any other guesses.

Paul M 02-25-2006 05:22 PM

It's not a guess.

Sorry, but without access to your files etc I can't really help you as I can't figure out how you have things set-up and what code you are running. BTW, the comment is exactly that, nothing more.

headrat 02-26-2006 07:37 AM

that's what I thought, it was just a comment. I got the module working, but would like to see it changed to a rolling 24hr deal instead of just showing today, but this is still a good hack. Thanks.

zephy 04-16-2006 12:16 PM

Cheers PeM :)

Ohiosweetheart 07-29-2006 02:08 AM

Paul will this work with 3.6? If not, are you going to update it?

please?


All times are GMT. The time now is 03:00 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.01893 seconds
  • Memory Usage 1,820KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete