vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Activity Modification (https://vborg.vbsupport.ru/showthread.php?t=177366)

BANDiT600 06-25-2008 11:38 AM

I'm running vB v3.7.2. I've got this error:
Quote:

[Wed Jun 25 16:07:59 2008] [error] PHP Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of WWU002promoteUser(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/XXXXX/forum.dancesport.ru/www/global.php(405) : eval()'d code on line 657

Declan127 06-25-2008 11:43 AM

Thanks for this :D, great mod

-=Leb=- 06-25-2008 12:24 PM

Very nice work.


Installed and nominated

WetWired 06-25-2008 01:00 PM

Quote:

Originally Posted by BANDiT600 (Post 1558498)
I'm running vB v3.7.2. I've got this error:

It doesn't keep anything from working, it just works less efficiently.
I'm pretty sure I've found and fixed it for the next version.

-=Leb=- 06-25-2008 01:26 PM

NVM i got it :)

BANDiT600 06-25-2008 01:49 PM

Quote:

Originally Posted by WetWired (Post 1558560)
It doesn't keep anything from working, it just works less efficiently.
I'm pretty sure I've found and fixed it for the next version.

Yeah, I know that, I just keep your eyes on it...;)

lostguy 06-27-2008 01:37 AM

My forum Dark base ! I wonder how to make the border effect where i can have BOX each the color bar ..! Right now i can only see those color bar but NO border i think .

https://vborg.vbsupport.ru/external/2008/06/11.jpg

lg

WetWired 06-27-2008 12:31 PM

You need to add the CSS as instructed in the installation document.
Quote:

at the bottom of one of the "Additional CSS Definitions" fields on the Main CSS page, add one of the following sections, depending on whether your style is dark or light:

mhmd1983 06-30-2008 11:29 PM

can i use posts per day variable in other templates ? , like showing some data if today posts = value

WetWired 07-01-2008 01:10 PM

As detailed in activity_mod_customization.html, the Activity Today for the logged in user can be accessed with $bbuserinfo[WWU002_todaylevel]. The only complication is that you have to enable "Find today's activity for logged-in user" in the display settings.

SaTaNaSsO 07-05-2008 08:51 AM

nice hack...installed.. :)
but i would like to know how to hide "LONGEVITY" and "POSTS" on the postbit template... if is possible...

BANDiT600 07-06-2008 04:35 PM

Here are russian *.gif images:

WetWired 07-07-2008 12:14 PM

You can remove them from the activity_statblock template.
Code:

  <if condition="isset($output['WWU002_activitylevel'])">
      <table class="WWU002postbit" cellspacing="2" cellpadding="0">
        <tr>
          <td><img src="$stylevar[imgdir_misc]/activity/textactivity.gif" alt="$vbphrase[WWU002_activity]" /></td>
        </tr>
        <tr>
          <td><img src="$stylevar[imgdir_misc]/activity/activity$output[WWU002_activitylevel].gif" class="i" title="$output[WWU002_activityinfo]" alt="$output[WWU002_activitylevel]/20" /></td>
        </tr>
        <tr>
          <td><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" alt="$vbphrase[WWU002_activity_today]" /></td>
        </tr>
        <tr>
          <td><if condition="$output['WWU002_maxtodaylevel']"><img src="$stylevar[imgdir_misc]/activity/today{$output[WWU002_todaylevel]}_$output[WWU002_maxtodaylevel].gif" class="i" title="$output[WWU002_todayinfo]" alt="$output[WWU002_todaylevel]/$output[WWU002_maxtodaylevel]" /><else /><img src="$vboptions[cleargifurl]" width="63" height="7" class="i" title="$output[WWU002_todayinfo]" alt="" /></if></td>
        </tr>
      </table>
  </if>


ss20 07-07-2008 07:45 PM

Unfortunately when I switch on this mod - my forum trying to run scripts which make my forum stuck.... Pls adv what to do? Only work propely when Automatic postbit alteration is none!
******************
Versions
vBulletin version: 3.7.1
Activity mod version: 3.00
Settings
Activity today: Yes Yes No
Postbit style: Alternate location
Profile style: Both
Ranktext: Yes
Top activity: Yes Yes
Template hooks
Style p1 p2 p3 pl1 pl2 pl3 u1 u2 n
MASTER STYLE Y Y Y Y Y Y Y Y Y
--Default Style Y Y Y Y Y Y Y Y Y

WetWired 07-08-2008 11:15 AM

Try setting Automatic postbit alteration to Default location, Remove postbit text postcount to No, Remove postbit text joindate to No, then see what happens.

Skyrider 07-08-2008 11:25 AM

Possible you can add support for this plugin?
https://vborg.vbsupport.ru/showthread.php?t=182938

As this plugin takes over the complete posts and doesn't show the other plugin's post count anymore.

This one rocks though!

WetWired 07-08-2008 04:48 PM

I'm not sure I understand what the issue is. If you're saying that the Activity Modification is removing the postcount output, you can correct that by setting "Remove postbit text postcount" to no in the Activity Display settings.

raja811 07-26-2008 08:40 PM

Thx

SessizDunya 08-08-2008 07:08 AM

Great Mod. Installed, thanks a lot.

I have a quick question. I see 2 of user activity, long etc. image mod on every thread. First one is below the ranks, the other one is at the bottom. How can I modify this and delete the bottom one? I couldn't find the temp.. :confused:

shaqoneal 08-09-2008 12:17 PM

this looks like a really cool mod. i was wondering about the technical aspects.


you said:
Quote:

This hack adds 1 query to showthread for each user who posts in that page (or only 1 for the logged in user by configuration). In addition, the first time a member's post or profile is accessed during a day (GMT), 3 queries are performed to find that user's activity. By configuration, 1 query may be added to each page load to find the logged in user's "activity today". By configuration, 1 query may be added to each member profile view to find that member's "activity today".
but I was wondering, how much would that generally increase the mySQL databases size by for a forum that has 1,900 members (generally 500 active) and about 2000 new posts to the forum a day?

I'm under the restriction of server load so that's why I would like to know. Thank you.

Deej510 08-10-2008 03:02 PM

Getting this warning on the stats page:
Warning: unserialize() expects parameter 1 to be string, array given in [path]\index.php(69) : eval()'d code on line 17

WetWired 08-10-2008 11:00 PM

Quote:

Originally Posted by SessizDunya (Post 1593892)
Great Mod. Installed, thanks a lot.

I have a quick question. I see 2 of user activity, long etc. image mod on every thread. First one is below the ranks, the other one is at the bottom. How can I modify this and delete the bottom one? I couldn't find the temp.. :confused:

That is most odd. Did you manually edit the templates?

WetWired 08-10-2008 11:04 PM

Quote:

Originally Posted by shaqoneal (Post 1594733)
but I was wondering, how much would that generally increase the mySQL databases size by for a forum that has 1,900 members (generally 500 active) and about 2000 new posts to the forum a day?

The mod should not significantly increase database size.
In its default configuration, server load increase should be inperceptable except when users first start viewing threads each day. Even then, this load increase should generally be minor unless you have many active users at the time the day rolls over.

SessizDunya 08-15-2008 08:17 AM

Quote:

Originally Posted by WetWired (Post 1595834)
That is most odd. Did you manually edit the templates?

No, I didn't edit the templates. This is really weird. On the menu; Automatic postbit alteration, when I choose "Default Location" I see 2 activity windows. You can see the attached file;

SSJB_7 08-15-2008 09:58 AM

can you help me i installed it and the only thing get is this

https://vborg.vbsupport.ru/external/2008/08/36.jpg

with light activity and instead of white it makes black with dark activity you can see in my site also i don't uninstall it, till some suggetions.
I tried to upload it at forum/images/misc.... ....with dark/white folders
....with only activity folders
....with only the files .
Please if you can help me.
Thanks a lot

WetWired 08-17-2008 02:04 AM

Quote:

Originally Posted by SessizDunya (Post 1599071)
No, I didn't edit the templates. This is really weird. On the menu; Automatic postbit alteration, when I choose "Default Location" I see 2 activity windows. You can see the attached file;

Could you please copy the postbit template you are using (postbit or postbit_legacy) into a text file and attach it?

WetWired 08-17-2008 02:09 AM

Quote:

Originally Posted by SSJB_7 (Post 1599141)
can you help me i installed it and the only thing get is this

with light activity and instead of white it makes black with dark activity you can see in my site also i don't uninstall it, till some suggetions.
I tried to upload it at forum/images/misc.... ....with dark/white folders
....with only activity folders
....with only the files .
Please if you can help me.
Thanks a lot

I can't find a link to your site in your profile. Please be sure that forum/images/misc is the correct folder. The style you are using may use a different misc folder. The proper installation of the images should have the images accessable as for example .../misc/activity/longevity20.gif . If you right click the 20/20 and click properties, you should be able to see where it is looking for the image, which should help you figure out where to put it.

SessizDunya 08-20-2008 06:11 AM

Quote:

Originally Posted by WetWired (Post 1600449)
Could you please copy the postbit template you are using (postbit or postbit_legacy) into a text file and attach it?

Sure. I attached my postbit template. Thanks.

WetWired 08-20-2008 11:38 AM

The problem is that you have the postbit_userinfo_right template hook twice. The activity mod puts the stats in $template_hook[postbit_userinfo_right].
The first place is here:
Code:

<if condition="$show['reputation']"><div style="padding:2px 0px 2px 0px;"></div><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]

               
                        <if condition="$show['member']"><if condition="$show['avatar']">
                                <div class="smallfont">
                                        &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></if>
                                </div>
                        </if>

The second is here
Code:

                                <div>
                                        $vbphrase[my_mood]: <img src="images/mood/$post[mood].gif" border="0" />
                                </div>
                                </if>
                               
                        </div>               
$template_hook[postbit_userinfo_right]
                <div style="padding:5px 0px 5px 0px;"></div>
               
        </td>
        </if>

If you remove one, your problem will be fixed.

SessizDunya 08-20-2008 11:51 AM

Quote:

Originally Posted by WetWired (Post 1603006)
The problem is that you have the postbit_userinfo_right template hook twice. The activity mod puts the stats in $template_hook[postbit_userinfo_right].

Thank you very much man. Looks great!

hawspipe 08-20-2008 01:39 PM

Hi,
I really like this mod, however, I can't get the "Top Activity Page" to display or show the link anywhere. Do you have ideas on where I can start to figure out what is going on?

WetWired 08-20-2008 05:23 PM

It's disabled by default. Have you turned it on in the Top Activity settings?

hawspipe 08-20-2008 06:04 PM

Yes, I've double checked all of the setting, tried re-installing and still can't get it to show up.

WetWired 08-20-2008 11:22 PM

Is it just the link that's not showing, or does viewing index.php?do=activitystat not work either?

If you could go to AdminCP>Maintenance>Activity Maintenance and post the results of the configuration diagnostic, that would give me a better picture of what might be going on.

hawspipe 08-20-2008 11:45 PM

Yes, I tried accessing it via index.php?do=activitystat and all it does it take me back to the home page.

Versions
vBulletin version: 3.7.2
Activity mod version: 3.00

Settings
Activity today: Yes Yes Yes
Postbit style: Alternate location
Profile style: Both
Ranktext: Yes
Top activity: Yes Yes

Template hooks
Style p1 p2 p3 pl1 pl2 pl3 u1 u2 n
MASTER STYLE Y Y Y Y Y Y Y Y Y
--Default Style Y Y Y Y Y Y Y Y N

WetWired 08-21-2008 11:33 AM

Well, the link isn't showing because your navbar template doesn't have the template hook for it. The link is added to $template_hook[navbar_buttons_left]. Assuming your navbar changes are just new/rearanged links, you should revert your navbar and redo your changes, being carefull not to remove any template hooks, since this will affect other mods you might install, too.

As for the page itself, that situation is most odd. The only thing I can think of is that some other mod is changing $_REQUEST['do'] or also uses the forumhome_start plugin and is returning. I suggest turning off all other mods and see if the problem persists. If not, turn them on one by one untill the problem comes back; the one you just turned on when it stops working is probably the problem.
Depending on the cause, you may be able to work arround the problem by going to Plugins&Products>Plugin Manager, finding the Activity Modification forumhome_start plugin, editing it and setting the execution order to 1.

john102774 08-22-2008 05:46 AM

Great hack! Thank you.

I'm running, VB3.7.2 PL2

john102774 08-22-2008 06:53 AM

Quote:

Originally Posted by butch3r (Post 1502131)
Open template "activity_navbar" and replace it with

Code:

                <td class="vbmenu_control"><a href="forum.php?$session[sessionurl]do=activitystat">$vbphrase[WWU002_stats_short]</a></td>

Thank you!

meissenation 08-25-2008 11:06 AM

I saw in a previous post someone brought this up and it was somewhat disregarded -- but this should not be ignored. My PHP Error log is swollen from the amount of errors this modification is creating.

Code:

PHP Warning:  Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of WWU002promoteUser().  If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in global.php(405) : eval()'d code on line 542
My first error of this occurred when it was installed on August 20, 2008 at 9:04am. In my log file, it's line 7659. Scroll massive amounts down and my last entry in the PHP Error log currently is at 517423 -- 99.999% of the errors between 7659 and 517423 is this same Call-time pass-by-reference error message. In only 5 days, this error has created over 500,000 lines of errors -- or 100,000 per day. Please fix or advise what to do to fix the error because 100,000 error lines per day is just rediculous and unnecessary.

WetWired 08-25-2008 11:31 AM

How was it disregarded? I indicated that I found and corrected the error for the next version, I just didn't feel that it was important enough to release a version with only that change. Since there haven't been any other issues, I guess I'll make a release with just that...


All times are GMT. The time now is 09:36 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.01509 seconds
  • Memory Usage 1,841KB
  • 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
  • (5)bbcode_code_printable
  • (13)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