vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Members who have visited today. (https://vborg.vbsupport.ru/showthread.php?t=196458)

HastleGames 07-03-2009 06:57 PM

The option of excluding usersgroups not working
I put the id # 3 and select the option Exclude List, but still shows me these users in the mod

https://vborg.vbsupport.ru/attachmen...1&d=1246651446

https://vborg.vbsupport.ru/attachmen...1&d=1246651446

Paul M 07-03-2009 09:16 PM

Thats because you are misunderstanding the option. It means members of usergroup 3 cannot see the modification, not that they are excluded from the display list.

HastleGames 07-03-2009 09:40 PM

Oh sorry a thanks for the reply, but is it possible? how?

Paul M 07-04-2009 09:20 AM

No, there is no such ability in the mod. I may think about it when I have to upgrade it for vb4.

HastleGames 07-04-2009 08:22 PM

well, I change the sentecias "SQL" to deal with it, adding

Code:

and `usergroupid` <> 3
as follows:
Code:

SELECT * FROM ".TABLE_PREFIX."user FORCE INDEX (lastactivity)
WHERE lastactivity > $cutoff and `usergroupid` <> 3 ORDER BY username


chuckhodson 07-12-2009 12:36 AM

Cool thanks installed. .. .

Bob_R 07-13-2009 02:05 AM

Can I change this

Code:

forumhome_wgo_pos2
to

Code:

forumhome_wgo_pos3

Paul M 07-13-2009 08:27 AM

Yes, if you really want to.

stevetank 07-17-2009 10:08 AM

Nice one thanks.

:)

0lly 08-05-2009 03:11 PM

Hi, I get a database error when I try to import the XML on the "Importing Product, Please Wait..." bit.

Code:

Database error in vBulletin 3.8.3:

Invalid SQL:
DELETE FROM product WHERE productid = 'paulm_wvt_38';

MySQL Error  : MySQL server has gone away
Error Number  : 2006
Request Date  : Wednesday, August 5th 2009 @ 12:07:46 PM
Error Date    : Wednesday, August 5th 2009 @ 12:07:53 PM
Script        : http://www.tvfantalk.com/admincp/plugin.php?do=productimport
Referrer      : http://www.tvfantalk.com/admincp/plugin.php?do=productadd

:(

Paul M 08-05-2009 06:18 PM

I would guess you have a very low timeout value, and its timing out on the index creation. Did you try it again ?

0lly 08-06-2009 02:14 AM

Yeah, I've tried it about 5-6 times now.

robdawg 08-21-2009 04:52 PM

Is there anyway to reset the most logged in value to 0?

corsacrazy 08-21-2009 09:49 PM

how can i change the outputted html i cant find a template with the info and phrases? i also want to change the image which is used and where it links... help

Paul M 08-22-2009 08:40 AM

Display_Visitors is the template.

Look in the xml file to find all the phrase names.

Medtech 09-02-2009 01:18 AM

Thanks, works great!! :D:D

villor 09-02-2009 01:13 PM

good job

kalemisj 09-02-2009 02:52 PM

thank you guys

Mark as installed

SuperGLS 09-07-2009 04:41 PM

Installed. Working good on 3.8.4. Thanks!

designBox 09-08-2009 10:11 AM

Unfortunately, I have a huge customized forum and this mod won't work for me (have to insert the hook in the footer template). Is there any alternative or plan to allow the hook being inserted elsewhere than on FORUMHOME?

Thanks anyway for the great mod.

robdawg 09-08-2009 06:57 PM

I know I posted this before, but I need to know the answer.

The most members online over 24 hours was XXXX

How do I reset the the XXXX value to 0?

Thanks.

Paul M 09-08-2009 08:57 PM

There is no method to do this.

You could try messing directly with the datastore, but thats not something id advise unless you really know what you are doing. Other than that, you would need to run some code to reset it.

robdawg 09-08-2009 10:28 PM

If you can tell me the table name and what column to search on, I can find and update that row to change it back to 0.

Thanks.

Paul M 09-09-2009 10:23 AM

Im afraid its not that simple, which is why I said you really need to know what you are doing.

The data is stored in the Datastore (table), as part of a serialised array, in the maxloggedin row.

robdawg 09-09-2009 03:55 PM

Change this line in the manage plugin area in the admin:
Code:

if ($totaltoday > intval($vbulletin->maxloggedin['maxvisitors']))
To the following:
Code:

if ($totaltoday < intval($vbulletin->maxloggedin['maxvisitors']))
Let the page run once and then changed it back. haha. Ghetto work around, I know but it reset a bad count to the current number which is what I wanted.

Smitty 09-09-2009 04:17 PM

Nice script change! Thanks for sharing!

I had to change mine once in the database when a hoard of spiders practically doubled the count. I didn't want members wondering about the number being a real number. I don't mind playing around in a database, but your script change would have been about as quick and easy.

I'll backup what Paul said: "You could try messing directly with the datastore, but thats not something id advise unless you really know what you are doing." If you're not comfortable diving into a database and understand its relational schema, you better watch out. You can easily hose the whole database.

Paul M 09-09-2009 05:25 PM

Quote:

Originally Posted by robdawg (Post 1882123)
Change this line in the manage plugin area in the admin:
Code:

if ($totaltoday > intval($vbulletin->maxloggedin['maxvisitors']))
To the following:
Code:

if ($totaltoday < intval($vbulletin->maxloggedin['maxvisitors']))
Let the page run once and then changed it back. haha. Ghetto work around, I know but it reset a bad count to the current number which is what I wanted.

Yep, that was option 2. :)
Quote:

Originally Posted by Paul M (Post 1881769)
You could try messing directly with the datastore, but thats not something id advise unless you really know what you are doing. Other than that, you would need to run some code to reset it.


cuphongle 09-17-2009 05:10 PM

Quote:

Originally Posted by ouch (Post 1798718)
Yes this works well, ok here's were you need to put the hook, go to your adminCP, on the left under styles&templates click style manager. Make sure you choose the correct skin to work with so if your running a custom skin click that! Next from the drop down box that shows all style items choose edit templates, navigate to forum home templates. Then click forum home ...........find the code as shown below and drop your hook intel exactly below 'end logged in users'.

Code:

        </tr>
</tbody>
<!-- end logged-in users -->
$template_hook[forumhome_wgo_pos2]
</if>
<tbody>
        <tr>

I hope this helps someone out there.:up:


it sure did
thanks

princeedward 09-21-2009 08:56 AM

great and thanks Paul...my vb3.8.4 is updated...;):up:

Simon Lloyd 09-21-2009 02:56 PM

Paul, im using the 3.7 version on a 3.8.4, it works perfect (or at least seems to) do i need to upgrade to this one?

Paul M 09-21-2009 06:41 PM

Nope, there is no need to upgrade.

Simon Lloyd 09-22-2009 07:30 AM

Thanks for that, one other question, i currently use username html (in usergroups) and for some members i have some text that shows on hover, unfortunately on hover i now cannot see the last time logged in as your mod does is there something i can add in the usergroup markup to display the last logged in time? as i thought it was a great feature - but i want both :)

Paul M 09-22-2009 10:42 AM

Nope, you cant have both, if you add a title in the html markup it will override the title added by the mod.

princeedward 09-22-2009 07:57 PM

hi paul....i notice that guest can't view this to my forum...did i missed somethig here?

MagicThemeParks 09-23-2009 11:10 AM

Another flawless install. Thanks Paul :up:

Paul M 09-23-2009 11:38 AM

Quote:

Originally Posted by princeedward (Post 1889089)
hi paul....i notice that guest can't view this to my forum...did i missed somethig here?

What usergroups can view is one of the options you need to set.

phonexpo 09-24-2009 04:12 PM

Quote:

Originally Posted by ouch (Post 1798718)
Yes this works well, ok here's were you need to put the hook, go to your adminCP, on the left under styles&templates click style manager. Make sure you choose the correct skin to work with so if your running a custom skin click that! Next from the drop down box that shows all style items choose edit templates, navigate to forum home templates. Then click forum home ...........find the code as shown below and drop your hook intel exactly below 'end logged in users'.

Code:

    </tr>
</tbody>
<!-- end logged-in users -->
</if>
$template_hook[forumhome_wgo_pos2]
<tbody>
    <tr>

I hope this helps someone out there.:up:


Thank you.

Installed

Paul M 09-24-2009 04:58 PM

Having seen this posted a couple of times, I feel I should point out its actually slightly incorrect, the actual hook position should be as below ;

Code:

        </tr>
</tbody>
<!-- end logged-in users -->
</if>
$template_hook[forumhome_wgo_pos2]
<tbody>
        <tr>

Note its after the </if>

princeedward 09-24-2009 06:49 PM

Quote:

Originally Posted by Paul M (Post 1889358)
What usergroups can view is one of the options you need to set.

check everything and set what has to be set Paul....but i myself as guest can't really view it....same as the Currently Active Users too....but to the default vb skin style is okay i mean this mod is showing but also the currently active users is missing

:confused:hmmmm

dengbej 09-24-2009 06:56 PM

thanks so much.


All times are GMT. The time now is 02:25 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.01308 seconds
  • Memory Usage 1,818KB
  • 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
  • (12)bbcode_code_printable
  • (6)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