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)

Paul M 09-24-2009 06:57 PM

Quote:

Originally Posted by princeedward (Post 1890117)
check everything and set what has to be set Paul....but i myself as guest can't really view it....same as to the default vb skin style...maybe there is something conflict from the other mod? on that place?

Ive never known anything to conflict with this.

There is nothing more i can tell you without access to your forum, I could be guessing forever.

XVISION 09-24-2009 07:07 PM

thanks ...perfect

Gav-n-Tn 09-27-2009 06:55 PM

I just can't make it work. It's ther but there is no option in the adminCP that shows it or any way to control it.

Paul M 09-27-2009 09:25 PM

According to the system here, you haven't downloaded it. Where did you get it ?

Code:

Not Downloaded

tarot 10-08-2009 11:49 AM

Has anyone else run into a problem with this hack and a disappearing style chooser?

enginethatcan't 10-10-2009 03:57 PM

Downloaded, uploaded, enabled, check usergroup permissions and it's not showing, suggestions?

enginethatcan't 10-10-2009 06:50 PM

fixed

placed the hook wrong in forum home

SamirDarji 10-13-2009 06:32 PM

Anyone have any problems when upgrading to Patch Level 1 on 3.8.4?

phonexpo 10-13-2009 08:32 PM

Nope, mine is working fine.

-Patrick

Paul M 10-13-2009 11:08 PM

PL1 has no effect on this at all.

SamirDarji 10-14-2009 03:14 AM

Quote:

Originally Posted by Paul M (Post 1899381)
PL1 has no effect on this at all.

I didn't think it would, but thank you for the confirmation. :) Makes it a little less stressful to make the changes.

PikeyXB 10-14-2009 09:01 PM

I am running 3.8.4 Patch Level one, but I installed the Mod last night and was already updated to P1.

Only problem I have is the mouseover function doesn't work, supposed to show the time visited when hovering over the username, but mine displays the membergroup (Administrator, Mod, member etc)

Not sure what is going on there???

Paul M 10-14-2009 09:48 PM

Thats because you have set that in your usergroup markup html - it overrides the mod.

oxygenthief 10-18-2009 10:39 PM

Hi,
I'm new to forums, and I need more instructions on how to install. Where is ACP Product Manager?
I cant seem to find it. Im runnig version 3.8.3

Thanks in advance

Paul M 10-18-2009 10:50 PM

ACP = Admin Control Panel.

oldlock 10-18-2009 10:58 PM

Wrong place - disregard

oxygenthief 10-19-2009 12:10 AM

I can't see a Product Manager in my ACP. Could it be called something else?

Paul M 10-19-2009 08:46 AM

I think its called something like "Plugins & Products" :)

oxygenthief 10-19-2009 09:34 AM

Thank Paul.

I have hit another problem:

I don't have a hook template called, forumhome_wgo_pos2

I have a few starting with forumhome but non that match the above.

Can anyone tell me what to do next?

Cheers

oxygenthief 10-19-2009 10:23 AM

ok had a look through the code and had a try at entering it. I have the settings as:
Product - vBulletin
Hook Location - forumhome_start
Title - Who has visited
Execution Order - 5

It saves but does not work on the forum. No errors or anything just does not appear.
Anyone know what I have done wrong?

Thanks

Paul M 10-19-2009 11:31 AM

There is no requirement to start editing the code, and doing so will most likely break it. Undo your changes.

If you dont have the template hook then you must manually add it. Either do a compare with the default vb template to see where it goes, or look back in this thread for the posts about it (try round about post #189).

oxygenthief 10-19-2009 07:17 PM

I have not edited the code. Just copied and pasted from the download. I have done the above, but still cannot get it to work.
I still dont have the forumhome_wgo_pos2 option.

The modified FORUMHOME template now looks like this:
PHP Code:

$stylevar[htmldoctype]
<
html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    <!-- 
no cache headers -->
    <
meta http-equiv="Pragma" content="no-cache" />
    <
meta http-equiv="Expires" content="-1" />
    <
meta http-equiv="Cache-Control" content="no-cache" />
    <!-- 
end no cache headers -->
    
$headinclude
    
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</
head>
<
body>
$header
$navbar

<if condition="$show['guest']">
<!-- 
guest welcome message -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
    <
td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</
tr>
<
tr>
    <
td class="alt1">
        <
phrase 1="faq.php$session[sessionurl_q]2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
    </
td>
</
tr>
</
table>
<!-- / 
guest welcome message -->
<
br />
</if>

<!-- 
main -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
thead>
    <
tr align="center">
      <
td class="thead">&nbsp;</td>
      <
td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <
td class="thead">$vbphrase[last_post]</td>
      <
td class="thead">$vbphrase[threads]</td>
      <
td class="thead">$vbphrase[posts]</td>
      <if 
condition="$vboptions['showmoderatorcolumn']">
      <
td class="thead">$vbphrase[moderator]</td>
      </if>
    </
tr>
</
thead>
$forumbits
<tbody>
    <
tr>
        <
td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
            <
a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
            <if 
condition="$vboptions['forumleaders']">&nbsp; &nbsp;
            <
a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
        </
strong></div></td>
    </
tr>
</
tbody>
</
table>
$forumhome_markread_script
<!-- /main -->

<
br />
$ad_location[ad_forumhome_afterforums]
<
br />

<!-- 
what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr>
        <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
    </tr>
</thead>
$template_hook[forumhome_wgo_pos1]
<if condition="$show['
loggedinusers']">
<!-- logged-in users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
            <a href="online.php$session[sessionurl_q]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
    <tr>
        <td class="alt2"><a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
        <td class="alt1" width="100%">
            <div class="smallfont">
                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                <div>$activeusers</div>
            </div>
        </td>
    </tr>
</tbody>
<!-- end logged-in users -->
</if>
    </tr>
</tbody>
<!-- end logged-in users -->
</if>
$template_hook[forumhome_wgo_pos2]
<tbody>
    <tr>
$template_hook[forumhome_wgo_pos2]
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
            <div>
                $vbphrase[threads]: $totalthreads,
                $vbphrase[posts]: $totalposts,
                $vbphrase[members]: $numbermembers<if condition="$show['
activemembers']">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>
            </div>
            <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
            $template_hook[forumhome_wgo_stats]
        </div>
        </td>
    </tr>
</tbody>
$template_hook[forumhome_wgo_pos3]
<if condition="$show['
birthdays']">
<!-- today'
s birthdays -->
<
tbody>
    <
tr>
        <
td class="thead" colspan="2">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
            
$vbphrase[todays_birthdays]
        </
td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
    <
tr>
        <
td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]border="0" /></a></td>
        <
td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
    </
tr>
</
tbody>
<!-- 
end today's birthdays -->
</if>
$template_hook[forumhome_wgo_pos4]
<if condition="$show['
upcomingevents']">
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
            <if condition="$show['
todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
    <tr>
        <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
        <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
    </tr>
</tbody>
</if>
$template_hook[forumhome_wgo_pos5]
</table>
<br />
<!-- end what'
s going on box -->

<!-- 
icons and login code -->
<
table cellpadding="0" cellspacing="2" border="0" width="100%">
<
tr valign="bottom">
    <
td>
        <
table cellpadding="2" cellspacing="0" border="0">
        <
tr>
            <
td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]border="0" /></td>
            <
td class="smallfont">&nbsp$vbphrase[forum_contains_new_posts]</td>
        </
tr>
        <
tr>
            <
td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]border="0" /></td>
            <
td class="smallfont">&nbsp$vbphrase[forum_contains_no_new_posts]</td>
        </
tr>
        <if 
condition="$vboptions['showlocks']">
        <
tr>
            <
td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]border="0" /></td>
            <
td class="smallfont">&nbsp$vbphrase[forum_is_closed_for_posting]</td>
        </
tr>
        </if>
        </
table>
    </
td>
    <if 
condition="!$show['guest']">
        <!-- 
member logout -->
        <
td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
        <!-- 
end member logout -->
    </if>
</
tr>
</
table>
<!-- / 
icons and login code -->

$footer
</body>
</
html

I'm still unsure what I have done wrong, and apologise for being a pain.
Cheers

Paul M 10-19-2009 08:37 PM

TBH, I dont know what you have done, or what you are doing.

Quote:

Originally Posted by oxygenthief (Post 1902262)
I have not edited the code. Just copied and pasted from the download.

Copied and pasted what ? where ?

The information you posted was this ;

Quote:

ok had a look through the code and had a try at entering it. I have the settings as:
Product - vBulletin
Hook Location - forumhome_start
Title - Who has visited
Execution Order - 5
What does this mean exactly if you havent been editing code ?

Quote:

I still dont have the forumhome_wgo_pos2 option.
The template you posted has it in twice ! - a bit of a mess.

Code:

                                <div>$activeusers</div>
                        </div>
                </td>
        </tr>
</tbody>
<!-- end logged-in users -->
</if>

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

<tbody>
        <tr>

As best I can tell, the stuff in red should not be there.

oxygenthief 10-19-2009 08:54 PM

Quote:

Originally Posted by Paul M (Post 1902313)
TBH, I dont know what you have done, or what you are doing.


Copied and pasted what ? where ?

The information you posted was this ;



What does this mean exactly if you havent been editing code ?

This is the options I selected when I added the plugin, through the plugin manager.

I have deleted the text you have highlighted in red and still nothing.

I'm assuming that when the text is added into the template, that then activates the forumhome_wgo_pos2 option which I select as the hook location?

If so, I'm still not getting the forumhome_wgo_pos2 option in the hook locations.

Cheers

Paul M 10-19-2009 10:27 PM

You dont add anything in the plugin manager, unless you are creating your own.

The instructions are quite clear ;

Quote:

unzip the XML and import into vB using the ACP Product Manager
This is all you do.

oxygenthief 10-19-2009 10:44 PM

Ok
Thats what I tried first yesterday. I have just tried again:

This is what I'm doing:
User CP> Plugins and products> Manage products> Add/import products

I have unzipped the file and placed it into 'EITHER upload the XML file from your computer' section. When I click import I'm then given the 'No file uploaded and no local file found.' message.

Am I doing the correct procedure?

Cheers

oxygenthief 10-20-2009 09:45 PM

Can any one help?
Cheers,

Paul M 10-20-2009 10:04 PM

Quote:

Originally Posted by oxygenthief (Post 1902370)
I have unzipped the file and placed it into 'EITHER upload the XML file from your computer' section. When I click import I'm then given the 'No file uploaded and no local file found.' message.

Depends on what you mean by "placed it" into that section.

You must click on the "Browse" button next to that section, and navigate to the unzipped file, then click on Import.

If that gives the error you mention then you have a server issue uploading files, which I cannot help with.

Im now going away on holiday, so I wont see this thread again for over a week.

SamirDarji 10-21-2009 03:01 AM

To install any plugin that has an xml file.

Download the xml file.

Go to your admincp-->Plugins & Products-->Manage Products-->[Add/Import Product]

Then use the first option "EITHER upload the XML file from your computer" and use the "Browse" button to find the xml file you downloaded. Once the file is properly selected, click on Import. Then proceed to configure the plugin and then check its operation.

YISRAEL 10-22-2009 02:35 PM

Familiar but thank you

Saviour 10-25-2009 01:45 PM

Can this be coded with a conditional to prevent Banned members from appearing? If so, what is the correct procedure for coding this mod to allow for this?

Thanks, in advance...

Jobe1986 10-25-2009 10:59 PM

Odd question, but why doesn't this mod use:
PHP Code:

$user['musername'] = fetch_musername($today); 

in the forumhome_start plug-in so it doesn't have to go and find the user name markup itself?

Personally I think this would be a nice addition to the mod. At least that way other mods can use the fetch_musername hook and it actually have effect in this mods output.

Paul M 10-29-2009 12:52 PM

Because it doesnt need to use it :)

The information is read as part of an existing read, and also in an existing cache, therefore the extra overhead that fetch_musername() adds is unnecessary.

Skydiver10 10-29-2009 07:43 PM

Thanks for this mod Paul!! :)

Jobe1986 10-31-2009 02:00 AM

Quote:

Originally Posted by Paul M (Post 1907773)
Because it doesnt need to use it :)

The information is read as part of an existing read, and also in an existing cache, therefore the extra overhead that fetch_musername() adds is unnecessary.

But at the cost of not allowing OTHER mods to use the fetch_musername hook to change the musername

Also, for the record (from the afore mentioned fetch_musername, where $user is passed TO the function, using the SAME caches):
PHP Code:

$user['musername'] = $vbulletin->usergroupcache["$displaygroupid"]['opentag'] . $username $vbulletin->usergroupcache["$displaygroupid"]['closetag']; 


Paul M 10-31-2009 03:32 PM

I'm well aware how the function works ;)

As for the hook, no one has found that to be an issue in over 4 years.

I will not be changing this version (or any of the 3.x versions). However, I will consider it for the 4.0 version.

forumtester 11-02-2009 01:35 PM

Just a quickie.
It says in the info that you can change the mode from today to last 24 hrs in the acp.

I must be a bit of an idiot because I can't see any option for changing between the two. Could someone just point me in the right direction.

Paul M 11-02-2009 03:10 PM

Quote:

(Options are in vBulletin Options > Who has visited today)
:) .

forumtester 11-02-2009 06:56 PM

You Da Man!!

And a fellow brit....good lad

Adam H 11-02-2009 08:10 PM

Hey paul what code would i need to edit to change the time period , i.e instead of 24 hours changing it to a week or something


All times are GMT. The time now is 04:39 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.01706 seconds
  • Memory Usage 1,928KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (10)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