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)

hello 06-18-2005 09:41 PM

Ahhh i put a backup on :(

Paul M 06-18-2005 11:11 PM

Sorry but I'm not following what your current problem is, nor do i see any link to your forum.

hello 06-18-2005 11:23 PM

Sorry, its www.neverending2.r8.org and its messed up GOOD and proper, in the foumr section the portal and all other pages work fine but not the main foeum page.


I dont knwo what happend my forum just will not work AT ALL now i cant access my main forum page so thats my problem i dont know what it is some code error.


Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/tropic/public_html/boards/homeindex.php(470) : eval()'d code on line 202

Thats the error that im geting.

Paul M 06-18-2005 11:34 PM

What is homeindex.php ?

You forum is closed so I can't see anything.

This is almost the simplest hack in the world, are you sure you edited the right file and template ?

What editor did you use ?

hello 06-18-2005 11:36 PM

I turend it on, and i did edit the file perfect but it was when i went to do the template it all went wrong, homeindex.php <- index.php renamed it for my portal thats all

$iterations++;
$gettime += 86400;
}
} <--line 202
}

thats what the error is reffering to

Paul M 06-19-2005 02:32 AM

That code is about 80 lines above where you should have inserted the code for this hack, so I cannot see anyway it could affect it, unless you did the edit wrong. Perhaps you could PM a copy of your homeindex.php

hello 06-19-2005 10:59 AM

I have actually removed my homeindex.php edits and it still has same error i uploaded a backed up one and same error. I think it was when i edited the template it said soemthing about and error in includes/adminfunctions_template but i reset that as well but no change.

I have a full site back up but can get it to reset my database i get same error no matter what i do.

And the part of the code it says i didnt touch it, i only edited the bit you said in the instructions and that went perfect, but editing the templates i got massive errors.

(i have a full backup of everything, and i havent had the need to use it before so can you help me put it on so its all reset to just before i did this hack, i made it just before, but i got no idea how to get it back on to reset it all)

Sorry for sounding stupid.:(


ILL STILL PM YOU A COPY OF HOMEINDEX.PHP

Paul M 06-19-2005 01:26 PM

Actually I should have read the original error properly instead of your next post - the error was not in homeindex.php, but in your FORUMHOME template. When you edited it you would have been told there was an error, but you chose to ignore it and continue.

You appear to have further broken your homeindex file on your site, but the copy you PM'd to me works fine. If you PM me your e-mail address I will send your copy back, with the hack code added. In the meantime, PM me your FORUMHOME template and I will see if I can see how you managed to break it.

BOWZONE 06-19-2005 06:39 PM

excellent hack......<clicks install>

hello 06-19-2005 09:27 PM

Quote:

Originally Posted by Paul M
Actually I should have read the original error properly instead of your next post - the error was not in homeindex.php, but in your FORUMHOME template. When you edited it you would have been told there was an error, but you chose to ignore it and continue.

You appear to have further broken your homeindex file on your site, but the copy you PM'd to me works fine. If you PM me your e-mail address I will send your copy back, with the hack code added. In the meantime, PM me your FORUMHOME template and I will see if I can see how you managed to break it.

Paul i love ya, and yeah ill pm you both email and forumhoem template. i didnt know about these errors that im getting sorry.

sublime 06-19-2005 10:14 PM

Will this work with 3.0.6?

Paul M 06-19-2005 10:20 PM

Okay, the error in your template is very simple.

Find this small section of the template ;

Code:

<!-- Todays active users -->

</if>
<!-- Start vBChat Users -->

and remove the hilighted "</if>".


The reason it's there is because you didn't quite follow the instructions (because in fact you couldn't). The instructions include replacing a block of code which finishes with an </if> with another block of code that also ends with an </if>. However, because you have already hacked your template for vbchat, that exact block of code wasn't there to remove - so it looks like you removed what you could find - but as a result you ended up adding an extra </if>. As a result, I have actually changed the instructions so that this tiny mistake should not be made by anyone else who has a previously hacked template.

I have e-mailed you a working homeindex.php :)

Paul M 06-19-2005 10:21 PM

Quote:

Originally Posted by sublime
Will this work with 3.0.6?

Yes, it was written on 3.0.3 :) (but should even work on 3.0.x versions prior to that).

sublime 06-19-2005 10:39 PM

I just installed it and it looks GREAT. This was my first modification. Thanks for making it so easy! :)

hello 06-19-2005 10:41 PM

YAY!!!! Paul i love it one small thing, but thanks mate i REALLY do appreciate this, thanks, o and clicks install, i owe you one. :D EVERYONE INSTALL THIS he earned it :D

Paul M 06-19-2005 10:46 PM

Quote:

Originally Posted by sublime
I just installed it and it looks GREAT. This was my first modification. Thanks for making it so easy! :)

Pleased you like it.

Quote:

Originally Posted by hello
YAY!!!! Paul i love it one small thing, but thanks mate i REALLY do appreciate this, thanks, o and clicks install, i owe you one. :D EVERYONE INSTALL THIS he earned it :D

LOL, glad you are now sorted. :)

hello 06-19-2005 10:48 PM

So am i and you helped me alot. Lemme see what else of yrs i can install lol they look cool.

Bacon Butty 06-20-2005 03:33 PM

I installed this 2 days ago not expecting to have any problems, at first there was no signs of members appearing under "Total users that have visited today:" I just put it down to time and thought they might appear after 24 hours or something but the time has passed.

http://img235.echo.cx/img235/2783/screen7if.jpg

Anyone know what the problem is? :ermm:

hello 06-20-2005 04:10 PM

You sure you entered all the text that was requiered? and followed all instructions?

Paul M 06-20-2005 04:26 PM

Quote:

Originally Posted by Bacon Butty
Anyone know what the problem is? :ermm:

Either you didn't edit index.php, or you did it wrong, or you failed to upload the edited version - that screen shows that the code is not being run.

Bacon Butty 06-20-2005 04:40 PM

Quote:

Originally Posted by Paul M
Either you didn't edit index.php, or you did it wrong, or you failed to upload the edited version - that screen shows that the code is not being run.


:o :o :o

Appears I forgot to upload the edited index.php file.

Working fine now!, thanks, awesome mod!. (first one i have ever installed infact)

Paul M 06-20-2005 05:52 PM

Don't worry, read the thread back, you're not the first. :)

Nephalim 06-21-2005 04:24 AM

installed it and it worked for twenty minutes, then stopped.

Paul M 06-21-2005 07:01 AM

Quote:

Originally Posted by Nephalim
installed it and it worked for twenty minutes, then stopped.

From your own site ;
Quote:

Total users that have visited today: 12
Blastartist, blowen_b, DavidPinochet, Dziadzio, GORILLA, Ilias_Daras, mathieu, Matless, Neglon, ppgbenjy, requiem, szb
What exactly is wrong with that ? You do realise it resets at midnight ?

paul41598 06-23-2005 02:24 AM

Here is an update to this hack that Paul authorized with me.

What it does?
Allows you to see the current list of users in a popup box rather than the standard collapsable menu.

Why Bother?
I personally had to many collapsable menus as it was, and my forumhome just looked tacky with all of them. So I created this instead.


No bugs so far, but I offer to chance to test it out!

Thanks! Screenshots attached!

dansgts 06-23-2005 04:55 AM

ok wierd problem.
i installed this morning, everything went fine. showed like 90 names. i get home toinght, its showing 0 visitors today, at the same time theres 17 people logged onto the site. i reinstalled the mod and its doin the same thing...any reason for this??

Paul M 06-23-2005 06:00 AM

To appear as "active" in this hack - you must have actually done something in the forum to update your lastactivity timestamp - after it's cutoff point (which should be midnight). You can appear in the active users list becasue you connected before the cutoff point, but not have been active after the cutoff point, so you won't be displayed by this hack.

dansgts 06-23-2005 03:13 PM

well it was showin 0 at about 10, meh, its workin now...i have so much to learn bout this stuff.

paul41598 06-24-2005 03:56 AM

hmmm, its 12:56am right now, and its still showing the users that were logged in yesterday (i.e 11:59pm)

paul41598 06-24-2005 09:15 AM

of course now its 6:15am, and it finally reset. Weird.

Paul M 06-24-2005 12:26 PM

Quote:

Originally Posted by paul41598
of course now its 6:15am, and it finally reset. Weird.

What timezone do you have set in your profile ?

Edit: Actually, try the version I have just uploaded - it uses a slightly different TZ calculation.

dansgts 06-24-2005 02:27 PM

ok yea, mine seams to go to 0 around 10 pm, any way to change this?

Paul M 06-24-2005 02:31 PM

Quote:

Originally Posted by dansgts
ok yea, mine seams to go to 0 around 10 pm, any way to change this?

See the post above yours, does the latest version do this ?

dansgts 06-24-2005 04:24 PM

ill let you know tonight when i find out ;)

Paul M 06-24-2005 10:26 PM

Quote:

Originally Posted by dansgts
ill let you know tonight when i find out ;)

Make sure it's v2.20 you test, the previous one earlier today (2.15) had a flaw.

LEAD_WEIGHT 06-26-2005 05:06 AM

Quote:

Originally Posted by Paul M
Make sure it's v2.20 you test, the previous one earlier today (2.15) had a flaw.

When user name with colour loggin or not displays like this @ forum
*edit* yep it looks like if I have glow colour usernames it makes it look like the below part here.
_____________________
member1
,
member2
,
member3
------------------------
instead of looking like this
_______________________
member1, member2, member3
________________________

Paul M 06-26-2005 11:59 AM

What's a glow colour username ?

Bacon Butty 06-26-2005 05:32 PM

Is there be a way to change this so users who have visited the site in the last 48 hours are displayed?

LEAD_WEIGHT 06-27-2005 05:23 AM

Quote:

Originally Posted by Paul M
What's a glow colour username ?

This code I know it makes a space & only works in IE.
Code:

<div style="filter:progid:DXImageTransform.Microsoft.Glow(Color=blue,Strength=3);width: 100%;">username</div>
Code:

<table style="filter:glow(color=red, strength=4)">username</table>
I went back to this but I do not like but does not matter.
Code:

<span color="Red">username</span>

Paul M 06-27-2005 11:48 AM

Quote:

Originally Posted by LEAD_WEIGHT
This code I know it makes a space & only works in IE.
Code:

<div style="filter:progid:DXImageTransform.Microsoft.Glow(Color=blue,Strength=3);width: 100%;">username</div>
Code:

<table style="filter:glow(color=red, strength=4)">username</table>

Whatever you are doing for glowing usernames is breaking the "title" in the link html. Nothing I can do about that.


Quote:

Originally Posted by Bacon Butty
Is there be a way to change this so users who have visited the site in the last 48 hours are displayed?

replace this ;
PHP Code:

//$cutoff = $now - 86400 ;  // ## Uncomment this line if you want a rolling 24 hours display ## // 

With this ;
PHP Code:

$cutoff $now 172800;  // ## Rolling 48 hours display ## // 



All times are GMT. The time now is 03:44 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
  • Page Generation 0.01765 seconds
  • Memory Usage 1,834KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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