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)

Mastergumble 09-28-2008 04:11 PM

Is it possible to make all the fields align in the center of postbit legacy instead the left side?

worldwide2 09-29-2008 10:52 PM

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

This was working until about half an hour ago when the white background to the stats disappeared and post count started appearing below the rest of the stats if the user was offline.
Any ideas? I presumably changed something by mistake, but I can't imagine what.
I just deleted and reinstalled the mod, as well. No change.

WetWired 09-30-2008 03:33 AM

It looks like the CSS isn't setup. Confirm that one of the sets of CSS data is in the extra CSS for the style. If you were changing the activity_statblock template, there is a class that an outer element needs to have in order for the CSS styling to apply to the rest.

GafferSports 10-06-2008 08:39 PM

Can I ask, is there a way to clean up the database table? I have been using this mod for a good while now and it is superb but the table is getting rather large.

WetWired 10-07-2008 11:40 AM

Admin CP|Activity Maintenance|Prune visit log

pokesph 10-13-2008 05:22 PM

about to install this nice mod on my board.. We use a bunch of styles, approx 25 styles (we let our users choose their favs) and, well, putting the images required for this mod into each style's misc folder seems rather redundant (as well as some themes, both light and dark, use the vB default images/locations)

Is there a way to set image paths up to point to something like images/misc/activity/dark and images/misc/activity/light so we could set per theme/template??

Otherwise I foresee a long, detailed install process..

thanks for the awesome mod :)

WetWired 10-13-2008 08:54 PM

The images are only used in one template, activity_statblock. You could take the content of that template, paste it in notepad, and replace all occurances of
Code:

$stylevar[imgdir_misc]
with
Code:

images/misc/activity/dark
or whereever you like.

If you have a parent style that most of your styles are derived from, you might opt to replace with something like {activity-images} and set a replacement variable for that in the child styles according to which directory is appropriate.

Please note that if you have styles with postbits that vary in certain ways from the defaults, you will have trouble with the JS postbit modifications. You can disable these by setting the postbit modification to default location and remove postcount and remove joindate to no. You can also disable them per-style by removing the content of the activity_postbit_epilogue template in the styles with trouble.

raja811 10-18-2008 04:28 PM

FAQ Members List New Posts Search Calendar Quick LinksLog Out


User CP


Stats

i instal new skin and then all FAQ Members List New Posts Search Calendar Quick LinksLog Out mixed stats somewhere why? how to added near usercp?

https://vborg.vbsupport.ru/

WetWired 10-19-2008 02:03 AM

It probably means that the style does the navbar a different way. Try editing/removing the contents of the template activity_navbar in that style.

LeatherNeck 10-19-2008 03:14 AM

works a treat with 3.8.0, thanks :)

zero5854 10-25-2008 03:51 AM

First thanks for this mod....
Second sorry if this has been posted b4 but there are too many posts to search adn my search didnt quite come up.

how to change from this
https://vborg.vbsupport.ru/external/2008/10/8.png

To this?
https://vborg.vbsupport.ru/external/2008/10/9.png

Im sure they are cutom graphics...but to sit and edit ALL of them?

Thanks for any help!

WetWired 10-27-2008 04:08 AM

You'd pretty much have to edit them individually for that exact effect. If you look in the customization documentation, however, you will find that variables are exposed that would allow you to make the bar graph in other ways. You could, for instance, use the activitypercent to control a cell width in a table.

Chris583 10-28-2008 01:57 PM

I like the mod. But I find the text in the POST COUNT images hard to read. Maybe its just me and my widescreen 1680 resolution but shouldnt it be as readable as the default text for post count?

Also, if anyone made custom images for it I WOULD LOVE to be able to see and or download them for use lol

Thanks

zero5854 10-28-2008 03:56 PM

well I mean is there a PS plugin I can use or something?

WetWired 10-28-2008 08:25 PM

I have no trouble reading the post count out to a meter from my 20" 1600x1200 display. Even so, you could always change the images or leave the default count enabled. I have custom round images I use on zelaron, but they aren't easily reused; also, recent versions of FF have trouble with the HTML I used to layer them.

zero, the images were hand drawn in PSP. I created the filled image then unfilled it with the paint bucket, saving each step. I did this for both the light and dark versions. I also manually created each version of the ones I use on my forum.

WetWired 10-28-2008 08:45 PM

You could create bar graphs in your templates by replacing your activity_statblock with this:
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>
          <td><img src="$stylevar[imgdir_misc]/activity/textlongevity.gif" alt="$vbphrase[WWU002_longevity]" /></td>
        </tr>
        <tr>
          <td nowrap="nowrap" title="$output[WWU002_activityinfo]"><if condition="$width=$output['WWU002_activitypercent']/2+1">                <img src="$stylevar[imgdir_poll]/bar1-l.gif" alt="" width="3" height="10" /><img src="$stylevar[imgdir_poll]/bar1.gif" alt="" width="$width" height="10"
/><img src="$stylevar[imgdir_poll]/bar1-r.gif" alt="" width="3" height="10" /></if></td>
          <td nowrap="nowrap" title="$output[WWU002_longevityinfo]" ><if condition="$width=$output['WWU002_longevitypercent']/2+1">                <img src="$stylevar[imgdir_poll]/bar2-l.gif" alt="" width="3" height="10" /><img src="$stylevar[imgdir_poll]/bar2.gif" alt="" width="$width" height="10"
/><img src="$stylevar[imgdir_poll]/bar2-r.gif" alt="" width="3" height="10" /></if></td>
        </tr>
        <tr>
          <td><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" alt="$vbphrase[WWU002_activity_today]" /></td>
          <td><img src="$stylevar[imgdir_misc]/activity/textposts.gif" alt="$vbphrase[posts]" /></td>
        </tr>
        <tr>
          <td nowrap="nowrap" title="$output[WWU002_todayinfo]"><if condition="$output['WWU002_maxtodaylevel']">
<if condition="$width=50*$output['WWU002_todaylevel']/$output['WWU002_maxtodaylevel']+1">
                <img src="$stylevar[imgdir_poll]/bar3-l.gif" alt="" width="3" height="10" /><img src="$stylevar[imgdir_poll]/bar3.gif" alt="" width="$width" height="10"
/><img src="$stylevar[imgdir_poll]/bar3-r.gif" alt="" width="3" height="10" /></if></td>
<else /><img src="$vboptions[cleargifurl]" width="63" height="10"  /></if></td>
          <td dir="ltr"><img src="$stylevar[imgdir_misc]/activity/posts$output[WWU002_postsd1].gif" alt="$output[WWU002_postsd1]" /><img src="$stylevar[imgdir_misc]/activity/posts$output[WWU002_postsd2].gif" alt="$output[WWU002_postsd2]" /><img src="$stylevar[imgdir_misc]/activity/posts$output[WWU002_postsd3].gif"  alt="$output[WWU002_postsd3]" /><img src="$stylevar[imgdir_misc]/activity/posts$output[WWU002_postsd4].gif" alt="$output[WWU002_postsd4]" /><img src="$stylevar[imgdir_misc]/activity/posts$output[WWU002_postsd5].gif" alt="$output[WWU002_postsd5]" /><img src="$stylevar[imgdir_misc]/activity/posts$output[WWU002_postsd6].gif"  alt="$output[WWU002_postsd6]" /><img src="$stylevar[imgdir_misc]/activity/posts$output[WWU002_postsd7].gif" alt="$output[WWU002_postsd7]" /><img src="$stylevar[imgdir_misc]/activity/posts$output[WWU002_postsd8].gif" alt="$output[WWU002_postsd8]" /><img src="$stylevar[imgdir_misc]/activity/posts$output[WWU002_postsd9].gif" alt="$output[WWU002_postsd9]" /></td>
        </tr>
      </table>
  </if>


Nadeemjp 10-30-2008 06:38 AM

hi there. it is a nic mod and i am using it. a little problem that ihave is that the font color is too light and is hard to read. my background is some what in between dark and light. is there any way that i can turn the font of the words like "longevity" or "activity" a bit more darker?

thanx

for references, i am giving the url:http://www.familybunker.com/forums/s...5449#post25449

WetWired 10-30-2008 02:11 PM

You could edit the graphics to be a different color. The text is a solid color, so you can just use the fill tool in your graphics editor. All the word graphics have the word "text" in their filename. You could also use the word graphics from the light set and everything else from the dark set.

Cocko 10-31-2008 04:24 PM

The activity addon runs fine until I have installed GARS yesterday.

Now I see under the comment button at the end of first post (only)
Code:

novPostTD novStats
When I disable the Activity Modification addon no issue appears.

What is the difference that GARS and Activity Modification don't work together?

WetWired 11-01-2008 05:37 AM

Those things indicate that the JavaScript was unable to find the markers it needs to modify the postbit. If you turn off the options that require JS (alternate location and removing stuff), they should go away.

I don't know what GARS is but if you're only having trouble with the first post, you might be able to put a conditional in the activity_postbit_epilogue template so it doesn't run for the first post. You might try wrapping the current contents with
Code:

<if condition="$post['postcount']>1">
</if>

though I'm not sure if that will work.

Cocko 11-01-2008 08:44 AM

Thanx for answering.

GARS = Geek Article and Review System (GARS) LITE changes the template of first
posts in forums where it's active so the activity modification won't be shown even
it's set to active.

Your approach sounds good. In if clause I need to add s.th. like
&& or WHERE forumID == 4,21,xx". What is it exactly?

Cocko 11-01-2008 10:22 AM

This replacement of activity_postbit_epilogue works fine ;)
forumid 108 can be changed to whatever fits to GARS forums.

Code:

<if condition="$post[postcount]>1" && $forumid!=108>
<script type="text/javascript">
<!--
WWU002Post('$post[postid]');
//-->
</script>
</if>

Thanx again.

Onone 11-01-2008 03:33 PM

Thanks, installed :)

edit:
After i installed the hack i get a error. the error is:

Database error in vBulletin 3.7.3:

Invalid SQL:
ALTER TABLE `user` ADD `wwu002activity` INT UNSIGNED NOT NULL ,
ADD `wwu002activitydate` INT UNSIGNED NOT NULL ,
ADD `wwu002memberlevel` TINYINT UNSIGNED DEFAULT "1" NOT NULL ,
ADD `wwu002fullmemberdate` INT UNSIGNED NOT NULL ,
ADD `wwu002lastvisit` INT UNSIGNED NOT NULL;

MySQL Error : Duplicate column name 'wwu002activity'
Error Number : 1060
Request Date : Saturday, November 1st 2008 @ 06:29:41 PM
Error Date : Saturday, November 1st 2008 @ 06:29:41 PM
Script : *******
Referrer : **********
IP Address : *******
Username : *********
Classname : vb_database
MySQL Version : 4.1.22-standard

what to do?

WetWired 11-02-2008 06:44 AM

That means that it was already partially installed. Have you ever installed this mod before or did you have a different error during a prior install?

If you have phpmyadmin, check your user table and see what columns it has that start with wwu002. Also check to see if you have a wwu002visitlog table.

Onone 11-02-2008 12:42 PM

Yes, i have install this mod before. how do i fix it?

WetWired 11-03-2008 03:32 AM

Do you have phpmyadmin to check the fields? Or do you know what version you installed?

BigJohnny 11-05-2008 10:31 PM

I dont have it installed yet as im working on a couple of other small changes to my board first, but I'm wondering, you say there are no template edits now, but are there still variables to use?

Im making my 3.7 memberinfo page duplicate some aspects of my 3.6 memberinfo, and one of the things I had was the activity mod visible in a users profile..... basically the profile was very similar to the postbit.

Is there still a way to put the activity stats/titles etc in the memberinfo template?

WetWired 11-06-2008 11:17 AM

Yes, the variables are still there (though the names are slightly different in some cases) and automatic modifications are easily disabled.

Onone 11-06-2008 02:16 PM

Quote:

Originally Posted by WetWired (Post 1658296)
Do you have phpmyadmin to check the fields? Or do you know what version you installed?

yes, i have phpmyadmin how do i check the fields?

i think the version was 3.00 beta 2.

BigJohnny 11-06-2008 08:25 PM

go to phpmyadmin, select the database that vbulletin is using, then "browse" the user table, and look for the columns mentioned above.

Nadeemjp 11-07-2008 05:29 AM

hello guys i have one small problem that i dont know how to handle

please see the image below:

https://vborg.vbsupport.ru/external/2008/11/33.png

i have installed so many mods and when they appear in the users' posts, the user profile actually becomes so wider and bigger.

i was wondering that the activity showcase should be shifted towards the left side. i mean not under the user name or stuff, but between user name and user details on the right hand side. in short i want this to be displayed in the middle of the user profile bar ......

i dont know which things to edit for displaying like that. could someone tell me where to add what code? cause i am totally not a coder and have no idea how to write codes:)

BigJohnny 11-07-2008 10:28 AM

if you edit the Time Spent Online mod to be shorther, then your postbit wont be so big.
It looks like thats whats causing the problem.

Nadeemjp 11-07-2008 10:41 AM

thanx bigjohnny, but i have new style which is horizontal and not post bit lagacy. so it is not the width i am worried about, it is the height that is why i thought maybe i should move the activity to the left side

WetWired 11-07-2008 12:52 PM

If you use the alternate position from the display settings, it should show up in its own column. I'm not sure exactly what you're asking for, however.

WetWired 11-07-2008 01:07 PM

Quote:

Originally Posted by Onone (Post 1660495)
yes, i have phpmyadmin how do i check the fields?

i think the version was 3.00 beta 2.

After selecting your database from the dropdown on the left side (it may be pre-selected), click user on the left side. On the right side it will show a list of fields in the user table. I'm interested in the fields whose names start with wwu002. Also, check to see if a table named wwu002visitlog shows on the left side.

The quickest solution is to delete the fields starting with wwu002 and the wwu002visitlog table in phpmyadmin (you should backup your db first, incase you make a mistake). Once you do this, you will be able to install the mod normally. Alternately, if you tell me what is there, I can make a version of the mod install which does not create those fields.

Sawa Dee SohL 11-11-2008 06:37 PM

I have this Downloaded - but the 'Today' Activity isn't showing.

It shows for the user, who is logged in - but for me viewing other users, it shows them at 0

I have it so it takes 2 posts, and 1 log in to be considered 'active' for the day...

And my other Admin has posted 43 times, and logged in several times - still reading nothing on the 'Today' portion when I look at his account.

But for HIM, it shows he's got full activity.

Is it soley for the user to see his own? Or did i do something wrong when installing?

rob01 11-12-2008 05:11 AM

how many queries this add?

in my forum is 9 :S

WetWired 11-12-2008 04:53 PM

Quote:

Originally Posted by Sawa Dee SohL (Post 1663700)
I have this Downloaded - but the 'Today' Activity isn't showing.

This is an activity display option. Showing activity today for everyone requires more queries, so by default it is off.

WetWired 11-12-2008 05:03 PM

Quote:

Originally Posted by rob01 (Post 1664041)
how many queries this add?

in my forum is 9 :S

From the opening post:
Quote:

Technical
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".
The number of queries added will vary depending on a number of factors, especially enabling options which add queries and viewing posts by users who haven't been processed for the day, yet. With the default options, midday (after all users have had a post view and thus have had their activity calculated and put in the database), it should add 0 to 1 queries to each page load depending on if the logged in user posted in that page.

I provide information about the load impact of each setting in the description of the setting in the CP (if no info is provided, then there is no load impact) so you should be able to easily tune this to your board.

adamskiii 11-16-2008 07:00 PM

the graphics are not showing up. I copied all the images to my misc folder and this is what I get:

https://vborg.vbsupport.ru/

any help?

thanks


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.01340 seconds
  • Memory Usage 1,845KB
  • 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
  • (5)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