![]() |
you can run it through either phpmyadmin (if you know what that is) or you could simply find the runaquery hack by Firefly just search his profile... or i can just make you a auto installer that'll automatically run the queries for you... your call ;) regards...
g-force2k2 |
wolfe i'll look into an addon if ppl are interested... i have alot to do at the moment... but i'll see what i can do in the future... regards...
g-force2k2 |
How can we add the time online that is in the postbit to the private messages postbit (privmsg)?
|
d00d have you got phpmyadmin
|
Boofo :
open private.php find: PHP Code:
PHP Code:
place where you want: PHP Code:
g-force2k2 |
thanx d00d
|
Thanks, g-force2k2. ;)
|
Nice hack g-force2k2, love your forum design BTW. This hack could get pretty server intensive for heavy traffic forums however since it updates the user table at each page load.
You could move the user table update query into the updateuserforum function and get online time tracking done without any extra queries what so ever. It will lose a bit of it's 'real time' feel but not a bad compromise for a busy site. If not that, moving up the code a few lines in sessions.php will at least exclude the non registered or non logged in users from generating the extra query on each page load. |
great hack. i will install this one for sure. :)
now a question. i want it to display the top20 onliners. should i look into this mod? or can you write this up? thanks g-force. hmm i noticed this on your first post: "Please respect my hack and don't make any alterations unless permission is granted by me... thanks for respecting my hacks..." what do you mean by this? well if i install your hack, rest assured i will modify it the way it suit best for my board. |
Nakkid(TECK) i don't mean template changes and looks... feel free to make it look they way you'd like... as for the top20 there's an option to configure for the amount per page you want to view... regards...
Edit:: there besides i just granted you permission to edit what you'd like :p enjoy... And just so you know it does come with a page navigation feature ;) hope all that helps somewhat... g-force2k2 |
Help plz ?
|
Quote:
you got me scared with the permission thing... |
Cool hacks~~thanks a lot
g-force2k2 is that possible hide admin online time to another group? keep admin info. secret~~ :p |
Kmaster for the postbit try this ::
open admin/functions.php find: PHP Code:
PHP Code:
find: PHP Code:
PHP Code:
open timeonline.php find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
g-force2k2 |
Yet another good hack. I will install this one soon.
|
g-force2k2, do these 2 pieces of code look right to you? They work the way they are but I'm not sure if they will interfere with anything else. This also includes the code you gave me to NOT display users with zero time in the list. I would also like to be able to NOT display the Total Online Time in the posts for users who have zero time or Admins. Any way to do that?
Code:
if($bbuserinfo[usergroupid] != 6) { Code:
if($bbuserinfo[usergroupid] != 6) { |
looks right to me Boofo...
open admin/functions.php find: PHP Code:
PHP Code:
find: PHP Code:
PHP Code:
That should do the trick Boofo... but a quick thing about user time online being zero... this actually should not take effect anymore... because all new registers will have a timeonline from the point that you installled... only reason some users hack a timeonline that is zero is because the fact that you installed it after your forum has been up for quite some time ;) this really has nothing to do with this addition just explaining why users shouldn't havea timeonline of zero anymore... regards... g-force2k2 |
Thanks for the help, g-force2k2. The only reason I want it to not show zero time online users is because I have a few members that haven't been on for a while and probably won't be again and it just looks a little cleaner this way. One last thing. I need to make it so the Total Time Online link doesn't show up in the posts where there is no time after it (for like Admins and zero time-users). Can you help me with that final thing, sir? :)
Also, does this code look right to you? This is from the member.php. It doesn't need that last else statement does it? Code:
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ |
Change this:
PHP Code:
PHP Code:
postbit_timeonline in it place the coding that was inserted into the postbit template open showthread.php and add the postbit_timeonline to the $templatesused then in admin/functions.php find: PHP Code:
PHP Code:
g-force2k2 |
Thank you. I should be able to use $postbit_timeonline for the private messages too, right? If so, I am all set now. Thanks again. :)
|
Shouldn't this:
Code:
$post[onlinetime] = dotimeonline($userinfo[timeonline]); Code:
$post[onlinetime] = dotimeonline($post[timeonline]); |
yeah my bad Boofo :p $post not $userinfo ;) regards...
g-force2k2 |
Absolutely love it.
|
btw Boofo so everything worked out fine?
thanks Springbok :) glad to hear ;) regards... g-force2k2 |
hi.... i cant find --- > find: (2) (the second appeareance)
?> in admin/functions.php |
It's the one at the very bottom of the file.
Quote:
|
Yes, sir, it did. Thanks for all the help. :)
Quote:
|
Quote:
|
Quote:
|
Louchipher not exactly sure what you mean... if you're talking about making up for lost time i posted a fix on post#71 you can just call the time() function in any php file and echo it to see what time to use as your install time... then just replace the time...
But if you mean like a day by day stats...like top 30 usersonline today would be a tougher hack... yet not saying its not possible but would probably require more queries and such... regards... g-force2k2 |
Quote:
Great work! Dave H |
i get that with VBB 2.2.4 i think its a HTML Timeout thats not supposed to be there :(
|
I?m running 2.2.7. It?s weird. I checked the page source, and squat! No partial headers, no nothing. It?s almost like it?s not even retrieving the page from the db. It only happens every so often, and yes? It?s most likely to happen when you try to link from anything in the display list. It?s no emergency, but it would be nice to correct the error just the same :)
Dave H |
okay D. Hollingworth i'll look further into the situation ;) just have college and then i will do my part and do alittle research :) regards... glad that you like it...
g-force2k2 |
Thanks-o-many.
Incase it helps at all, I just tried to 'update counters' in the Admin Panel, and I got a blank page when I clicked update. I guess it might not be limited to just the main forums. Dave H |
ok here is my design
In functions.php Repalce PHP Code:
with PHP Code:
to get it to look like this with out having a day on it :D |
and to put it in your postbit template
under avatar. Find PHP Code:
and replace it with PHP Code:
|
Hmm... I don't have
Quote:
Infact, the only user that 'was' displaying 1-second has now reverted back to 0.0.0. ): Oh well, at least my non-moderated members are displaying correctly :) Dave H |
no d00d the Avatr but is in your postbit template :D sorry
|
*Snicker* :p
Gotta stop these all nighters. Thanks man. |
All times are GMT. The time now is 07:11 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:
|