PDA

View Full Version : Activity Modification


Pages : [1] 2 3

WetWired
08-07-2005, 10:00 PM
For vB3.7, see The vB3.7 version (https://vborg.vbsupport.ru/showthread.php?t=177366)

This is the plugin/vB3.5/vB3.6 version of this hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=73145)

This mod was developed on vB3.6.4, and tested for compatibility with vB3.5.4

Description
This hack adds an activity metric for users to your forum; this metric takes into account a variable number of weeks. Also provided is a Junior/Normal/Senior member system based on this metric, and a longevity metric (user registered time as a percent of the amount of time the first user has been registered).

Visiting each day and posting the configured amount of times per day for the configured number of weeks will yeild 100% activity. Posts are checked individually for each day, so days cannot be skipped then spammed up afterwards. The weight of visiting for the day relative to posting is configurable. Weeks are weighted so the most recent has a bigger impact on the activity percent than the most distant.

When a user logs in with activity above the configured threshold, they are promoted from Junior Member to Member. When they log in with the configured amount of time as Member, they are promoted to Senior Member. You can configure the mod to also add secondary usergroups when these promotions happen.

Complexity
This modification requires 1 XML import, modification to 3 templates, and the addition of some CSS, depending on what options you choose

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".

Upgradability
This modification will import your settings and data from the 3.0/hack version

Frequently Asked Questions I installed this mod using the Download/Upload Plugin page and there was an error/it doesn't seem to work
To install this mod, you need to use the Add/Import Product link on the Manage Products page I just installed and everyone's activity seems low Part of the activity calculation is what days users visited on. This information isn't collected before the mod is installed, so no user can have 100% activity untill you've been running the mod for the full period of time you have it set to monitor Please realize that there is no "roll over" for activity; if you have it set to look at 4 posts per day, your users must post 4 posts on each individual day to obtain 100%. I founded this forum, but I don't have 100% longevity
Somehow a user's join date has been set before yours. When you install, the mod looks for the earliest join date to use to find longevity, but you can change the baseline date. To change the "Start of board" time, go to Maintenance>Activity Maintenance>Set Start of Board, enter your user number in the text field, then click Set Start of Board I'm using the images template version, but the images don't show up
Be sure to upload one of the activity directories from activityimages.zip to the misc directory for each of your styles. To find a style's misc directory, goto the Style Manager, then from the dropdown next to the style, choose Stylevars. The setting Miscellaneous Images Folder contains the path to that style's misc directory, where you need to upload the activity directory Can I use activity for promotions?
The project to build a full-blown promotion hack for use with this mod has been cancelled, after losing all of my work, however a much simpler system that adds secondary groups based on two thresholds has been added to the main hack.
Can you make X number get split up into digits?
I understand where you're coming from with this one, but I just can't figure out a way to work this that would be simple to use.
The tooltips don't wrap and get cut off with FireFox
The same thing happens to other vB tooltips (the thumbnail ones, for example). If you know a way to add line breaks to FF tooltips without scripting, please let me know.
Change log

Note: To upgrade, with the old version still installed, go to the Add/Import Product link on the Manage Products page, select the XML file for the new version, choose Yes for overwrite, then click Import.

2.80 release update Added AdminCP option to disable display of activity ranks (ranktext)
Modified template changes to support the above change (for most people, your templates should work as is)
Modified template changes for image horizontal postbit to always locate activity information in the upper right of the postbit, so it doesn't move arround from post to post (if you're happy with how it is now, no need to update)
2.80 rc3 update You can now control the number of entries on the Top Activity board from the adminCP
Top Activity templates are properly cached
Changes for XHTML 1.0 validation (requires template reedits if you want XHTML validation)
2.80 rc1 update Added improved built-in Top Activity page
Added option for activity breakdown in activity bar tooltip
Added option to promote users when their activity is calculated instead of just when they visit to help admins that are having trouble with the promotion system
Fixed issue with maintenance section with other languages. It should display correctly now for all languages.
Added admin help in 3.6.x
Added 3.6.x version and link in product list
No template changes since 2.70 (there are new templates, however)
2.71 update Corrected a bug where users on forums with "Weeks reflected" set to 1 could not reach 100% activity
2.70 update Full info available to MEMBERINFO template
Full info available for the logged-in user (see template customization in install file)
Fixed % issue with different vB versions
"Midnight" for activity hack is configurable. Note that it may be desirable to set this to a time other than true midnight for your users.
Options to control calculation of activity today in MEMBERINFO and for logged-in user
Simple promotion system adds secondary usergroups when members are promoted in the ranktext system
Reworking of internals
Default templates should not try to display activity information when it is unavailable (a generic fix that covers vbA gallery)
2.51 update Updated phrases for vb3.5.1
Updated options activity refresh for vb3.5.1
Fixed problem with activity-based ranks
2.50 Release update Added fix for reversed posts field in images version templates when user is using a right-to-left language. (Manually update the postbit and postbit_legacy templates)
Beta 6 update Added extra checks for excessive activity
User activity is now automatically refreshed when settings changes make it neccessary
Fixed guest bug
Beta 5 update Removed the query added to PM views in beta 4
Removed the post digits setting; it causes trouble since the majority of users seem to be using the image version, and the load impact is slight anyway.
Beta 4 update Fixed the problem where activity panel displayed incorrect information in PMs
Moved start of board into settings, removed 1 query from showthread, view PM, view user note
Beta 3 update Fixed a critical issue with activity caching. Everyone should update
Fixed an issue with a query not working when using table prefixes
Added template modification instructions
Added image template mod version screenshot
Beta 2 update There was an issue with % signs in the phrases, this has been corrected.
Screen shots added.
Changes from the hack version Thresholds for promotions are configurable
Ranktext system is configured from the options page instead of by a file
You can now prune the visit log from the adminCP (Under Maintenance>Activity Maintenance)
Support

Please click the install link if you install this hack
I will support this hack in this thread on about a weekly basis.

Boofo
08-08-2005, 02:47 AM
Any pics? ;)

vBintense
08-08-2005, 02:56 AM
/me takes a picture of something, shows it to boofo....... (I am stalking you now)

Actually I would like to see a pic as well.

WetWired
08-08-2005, 05:34 AM
Screenshots added. Keep in mind that there are currently no instructions for template modification; the thread and memberinfo screenshots are just a simple example of what you can do with this mod. For a more complicated example, see zelaron.com, which runs the hack version of this modification (which presents the same variables to the postbit and memberinfo). I intend to release template mod instructions for something like Zelaron has with the release version.

Boofo
08-08-2005, 05:51 AM
Looks good. Looking forward to the release. ;)

JirQUEST
08-08-2005, 07:33 AM
looks good alright. i love the way u did it on zaleron.

hotrod1
08-08-2005, 01:15 PM
I uploaded the plugin but nothing took effect. What am I doing wrong?

WetWired
08-08-2005, 02:08 PM
Be sure to use the Plugins>Manage Products page to install the plugin.

hotrod1
08-08-2005, 02:14 PM
Hmm I tried that too but it still did not work.

WetWired
08-08-2005, 02:33 PM
When you say it did not work, what do you mean? Does it appear in the product list? Does the Activity Settings group appear on the vB options page?

hotrod1
08-08-2005, 02:36 PM
It does appear on the product list but it does not appear on the vb option list and it does show the activity on a user's profile or in the postbit.

WetWired
08-08-2005, 03:05 PM
Make sure that the product is not disabled (line through its name), then check that vBulletin Options>Plugin/Hook System>Enable Plugin/Hook System is set to yes, then go to Plugin System>Plugin Manager, and make sure that there are 4 Activity Modification and 1 Activity Modification Maintenance plugins and that all are checked under active. If you earlier tried to install this mod through the Plugin Manager page, make sure that there is not a remaining corrupted plugin.
If you've checked all of those and they appear to be correct, you could try uninstalling and reinstalling the product.

Logikos
08-08-2005, 05:42 PM
Just to let you know, if by chance your plugin/manager options are turned to 'off'. When you upload a product or xml file it will automatically turn that setting to 'on'. :)

WetWired
08-08-2005, 07:42 PM
Just to let you know, if by chance your plugin/manager options are turned to 'off'. When you upload a product or xml file it will automatically turn that setting to 'on'. :)

Unless there's a problem during installation, in which case the product will appear installed, plugins will still be off, and the product won't be all there...

The product installation system isn't as robust as I'd like but I'm not going to complain excessively because it's a lot better than the way I thought I was going to have to release my mods.

WetWired
08-09-2005, 04:40 AM
Template mods now included. Everyone should update to beta 3.

Logikos
08-09-2005, 09:16 AM
Hey WW, you should place everything in one zip. :)

WetWired
08-09-2005, 11:36 AM
Hey WW, you should place everything in one zip. :)

No, because the activity images are optional; no reason to DL them if you're not going to use them.

Logikos
08-09-2005, 03:10 PM
I was just giving you a heads up: https://vborg.vbsupport.ru/showthread.php?t=83252 :)

Marco van Herwaarden
08-09-2005, 03:21 PM
You could make 2 zip-files, one iwith the images and one with the hack.

womensden
08-09-2005, 04:07 PM
ok, I installed this just fine.. or so I thought.

I went into a pm and found that it doesn't seem to work right in there. The post count shows 0 when the user has WELL over 0. Also the 'Longevity' bar image is broken.

Any idea why?

Logikos
08-09-2005, 04:54 PM
I can confirm this, only in PMs though.

Keep in mind people this is his Beta version. :)

hdrmut
08-11-2005, 06:38 AM
hello

I installing successfully

but the post cont not work

see the example

hdrmut
08-11-2005, 06:43 AM
ok thanx i fixed
option>>Activity Settings >>Postcount Digits set yes


thank you man :)

Azhrialilu
08-15-2005, 07:42 AM
I've installed this on two boards.. on my test board it works perfectly, yet on my live board it doesn't....

I've uninstalled both the product and the template amendments a couple of times now, just to make sure I wasn't missing something... but I just can't get it to work LOL

Any ideas would be eternally appreciated :D

WetWired
08-15-2005, 11:44 AM
You need to copy the images into the misc folder of each of your styles Look under "Stylevars" for each style to find its misc directory. The default style uses images/misc, so it's harder to confuse.

Azhrialilu
08-15-2005, 11:45 AM
the misc directory.. THAT's what I didn't do!!.. Uploaded it to each image directory but not misc *shakes head* D'uh me!

Thanks *smooches*

weaver
08-15-2005, 02:30 PM
I'm receiving a foreach error on line 772 in includes/functions.php when I try to import the xml file.

WetWired
08-15-2005, 03:12 PM
I'm receiving a foreach error on line 772 in includes/functions.php when I try to import the xml file.

As far as I can tell, this can only be caused by an XML parsing problem, which implies a corrupted install XML file. I'd suggest redownloading the zip file and possibly using a different zip utillity to retrieve the XML file. Also be sure that you're running at least vB3.5 RC1.

weaver
08-15-2005, 03:45 PM
As far as I can tell, this can only be caused by an XML parsing problem, which implies a corrupted install XML file. I'd suggest redownloading the zip file and possibly using a different zip utillity to retrieve the XML file. Also be sure that you're running at least vB3.5 RC1.

I'm using 3.5 RC2. I redownloaded the zip and used a different program to extract it. I'm still getting the same error.

WetWired
08-15-2005, 05:27 PM
I'm using 3.5 RC2. I redownloaded the zip and used a different program to extract it. I'm still getting the same error.

You need to use the "Manage Products" page to import this plugin.
You're using the "Plugin Manager" page, aren't you?

weaver
08-15-2005, 05:45 PM
You need to use the "Manage Products" page to import this plugin.
You're using the "Plugin Manager" page, aren't you?

I was using the Download/Import page. I'll go try Manage Products. :)

ETA: It worked... Thanks :)

jesus likes pie
08-15-2005, 07:53 PM
Um. O.K There seem to be numerous issues.

First of all I registered before anyone else on the forums and my longetivity is 99% while userid 7 (im 1) has 100%.

Also it says my activity is a mere 33% when I have the hughest post count.

Logikos
08-15-2005, 08:16 PM
Um. O.K There seem to be numerous issues.

First of all I registered before anyone else on the forums and my longetivity is 99% while userid 7 (im 1) has 100%.

Also it says my activity is a mere 33% when I have the hughest post count.

The amount of your post count has nothing to do with activity.

Remember that 100% activity means that you've visited and posted 'X' times each day for the past 'Y' weeks. If you've recently missed a post or visit, you cannot achieve 100% activity untill 'Y' weeks after that date. Especially if you've only missed once, it may seem like your activity bar is stuck, but if you keep active it will eventually rise.

You can't spam it up.
The activity bar is updated once per day, at midnight GMT. Your activity for today is shown in your "today" bar. Also note that once your today bar is full, you cannot recieve anymore activity credit for that day. It takes almost 'X' weeks to get to 50%, and you cannot miss a point for 'X' weeks to get to 100%.

This all depends on your settings. As for the longivity, make sure that your member that has 100% longivity doesn't have a join date eairler then yours.


Longevity is based off of the join date of the user with the oldest join date, the current date, and the join date of the user in question. If you have members with falsified join dates (before the start of the boards), this could be an issue. If the oldest user joined a year ago, and a member joined 6 months ago, then that member would be displayed as having longevity of 50%.

WetWired
08-16-2005, 12:55 AM
Um. O.K There seem to be numerous issues.

First of all I registered before anyone else on the forums and my longetivity is 99% while userid 7 (im 1) has 100%.

Also it says my activity is a mere 33% when I have the hughest post count.

The base date for longevity is settable from AdminCP>Maintenance>Activity Maintenance>Start of Board (it defaults to the earliest join date from all the users). Just enter your userid in the field, and run the maintenance activity. The start of board date will be syncronized with your join date and any members that somehow have a join date before you will just have 100%.

As for activity, it is just as LiveWire said. The whole point of the activity metric is that it can't be spammed up; an activity of 100% should indicate your dedicated users who visit and post every day. People who visit and post 100 posts once a week will have a less-than-stellar activity rating. Also note that activity only looks back the set number of weeks; if you made 100,000 posts two months ago, but the activity only looks back 4 weeks, then those posts won't be reflected. If you experiment with the settings, don't forget to run "Refresh User Activity" from Activity Maintenance.

WetWired
08-16-2005, 01:37 AM
Released beta 5. (Someone complained when I didn't bump the thread last update)

weaver
08-16-2005, 01:48 AM
I've got 102% for my activity. There's a red x because it's looking for an "activity21.gif".

WetWired
08-16-2005, 02:45 AM
This may happen if you change settings and do not run the "Refresh User Activity" maintenance. However, I will still look into this and add a check for this condition.

womensden
08-16-2005, 03:10 AM
I upgraded to Beta 5 and it seems to be working properly.

However, I'm noticing one little issue. Before it was showing each users daily activity. Now, it isn't showing, but shows "Activity today is only shown for the logged in user". Is this new in beta 5 or does it just need time to update?

WetWired
08-16-2005, 03:11 AM
I've been writing up a configuration guide to include in the next release. I'd like oppinions on its usefullness, understandability, and so forth.

WetWired
08-16-2005, 03:13 AM
I upgraded to Beta 5 and it seems to be working properly.

However, I'm noticing one little issue. Before it was showing each users daily activity. Now, it isn't showing, but shows "Activity today is only shown for the logged in user". Is this new in beta 5 or does it just need time to update?

That means that the setting for this has been turned off. You should be able to just renable it from the settings page. Why upgrading would cause that, I can't say, but I'll look into it. What version did you upgrade from?

Azhrialilu
08-16-2005, 08:22 AM
To upgrade to beta 5 do I just install the xml file? or are there additional template edits to be done?

WetWired
08-16-2005, 11:41 AM
Just re-import the XML file, with overwrite set to yes.

womensden
08-16-2005, 03:39 PM
oh.. I found the issue to my problem. I just had to change a setting. Sorry about that. I didnt think it would reset it.

I am not sure which one I was running before. I think I caused the problem myself. I didnt realize the overwrite option and just deleted the old one and added it again. My end, not yours.

Thanks!

Logikos
08-16-2005, 06:29 PM
I've been writing up a configuration guide to include in the next release. I'd like oppinions on its usefullness, understandability, and so forth.

I just read that guide, and I think that will help everyone understand exactly what this modification is, and how it works. The guide is very well written.

john1744
08-16-2005, 08:13 PM
Do you think its safe to install this mod on a fully live forum?

WetWired
08-16-2005, 09:44 PM
Do you think its safe to install this mod on a fully live forum?

In my opinion, yes, it is.

Elmer
08-18-2005, 04:46 PM
I'm getting this error when posting as a guest

Fatal error: Call to undefined function: activityrankget() in /httpdocs/foros/includes/class_postbit.php(251) : eval()'d code on line 25

EDIT: actually, this happen with all post already made by guests...

WetWired
08-18-2005, 08:02 PM
I'm getting this error when posting as a guest

Fatal error: Call to undefined function: activityrankget() in /httpdocs/foros/includes/class_postbit.php(251) : eval()'d code on line 25

EDIT: actually, this happen with all post already made by guests...

Fixed in beta 6.

bold
08-23-2005, 10:25 PM
hey wetwired,
what font did you use to make the images?

john1744
08-23-2005, 10:32 PM
Just wanted to say, this mod is absolutely fabulous, the users love it.

Roxie
08-24-2005, 04:18 AM
Works like a charm.

WetWired
08-24-2005, 11:47 AM
hey wetwired,
what font did you use to make the images?

I didn't use a font; I drew the letters and numbers by hand, which is generally all you can do when you go that small and don't want to use the system "Small Fonts" font.

johnbruce71
08-24-2005, 01:30 PM
Great hack, love it...............Installed perfectly.

WetWired
08-25-2005, 03:41 PM
There have been no issues for a while, now, so I'm going to make beta 6 the release version. There is one change from beta 6 to release, which is a template change for boards using right-to-left languages. In postbit and postbit_legacy, find
<td><img src="$stylvar[imgdir_misc]/activity/posts$WWU002_postsd[1].gif"and replace it with<td dir="ltr"><img src="$stylvar[imgdir_misc]/activity/posts$WWU002_postsd[1].gif"

SuperFly
08-25-2005, 11:41 PM
for some reason i downloaded both and it says no files to extract

WetWired
08-26-2005, 02:11 AM
That's strange. Do you have any security software that may interfere with the DL?

Roxie
08-26-2005, 02:19 AM
I have an issue with the Today part of the hack. I am assuming that Today counts from 12am-11:59p, but my Today seems to start over around 9pm.

WetWired
08-26-2005, 02:56 AM
It's based on GMT. The whole mod is.

Roxie
08-26-2005, 03:16 AM
I'm sorry..what do you mean? Mine is set at GMT -5 (Eastern time zone)

Logikos
08-26-2005, 03:46 AM
I'm sorry..what do you mean? Mine is set at GMT -5 (Eastern time zone)

Doesn't matter what time zone your on. The script is coded to refresh at midnight GMT. My guess is because then users can't change there timzone to gain a few extra points for that day.

Roxie
08-26-2005, 03:51 AM
oh..okay. Thanks. :)

bold
08-28-2005, 09:50 PM
how can i use images instead of text for the rank levels? (like on your site :))

Roxie
08-28-2005, 10:12 PM
There are instructions for the text and image versions in the readme. :)

bold
08-28-2005, 10:16 PM
There are instructions for the text and image versions in the readme. :)

Not for rank level (Junior Member, Member, Senior Member) :ermm:

WetWired
08-29-2005, 01:49 AM
Not for rank level (Junior Member, Member, Senior Member) :ermm:

Change the templates to use <img src="images/rank/$WWU002_ranktext" /> instead of $WWU002_ranktext, make some images, put them in a new images/rank directory, then enter the names of the images instead of the titles on the options page.

bold
08-29-2005, 08:21 AM
Change the templates to use <img src="images/rank/$WWU002_ranktext" /> instead of $WWU002_ranktext, make some images, put them in a new images/rank directory, then enter the names of the images instead of the titles on the options page.

Awesome! Thanks WetWired! :D

Roxie
09-01-2005, 02:51 AM
Is there anyway to wrap this (in the postbit) in an if condition so that it doesn't appear in my vbadvance gallery postbit?

Logikos
09-01-2005, 04:29 AM
This should work:

<if condition="THIS_SCRIPT == showimage">
&nbsp;
<else />
[activity code here]
</if>

Roxie
09-01-2005, 04:41 AM
Worked wonderfully! Thanks! :D

Logikos
09-01-2005, 04:58 AM
Not a problem. :)

iceytdot
09-24-2005, 03:05 AM
daaamn this **** worked perfect & looks Craaaaazy *clicks install*

GrendelKhan{TSU
09-24-2005, 09:14 AM
awesome!!

installeD!! :D :D

however I noticed I had to delete something it looked like ucash was using. I hope they don't end up conflicting or messing eachother out. I'll have to see and let ya know. :D

great stuff though,...thanks!! :D :D

TruthElixirX
09-26-2005, 12:13 AM
Love it. Thanks. :D

jugo
09-26-2005, 02:42 AM
Thanks for this...my members love it.

dastar
10-05-2005, 11:02 AM
Any reason why the today meter only displays bars for that particular user when they are logged in and only for their postbit? For instance, when a user is logged in, they can see their today meter bars but no one else's (and you it's nothing but white for everyone who isn't logged in).

cdoyle
10-17-2005, 01:08 AM
I'm not sure if I just missed it or maybe it's needed. But where the hack adds 'owner' under administrator, or it adds 'junior' under 'junior'. Is there anyway to have it not do that? just leave that part the default? Other then that I think this is a great hack!

dina
10-18-2005, 02:33 PM
Is there any way I can move this below my reputation bar (under the instant message images)?

dina
10-18-2005, 02:44 PM
Also, what font did you use? I'd like to localize the text in the images.

klinsek
10-18-2005, 10:59 PM
I'm not sure if I just missed it or maybe it's needed. But where the hack adds 'owner' under administrator, or it adds 'junior' under 'junior'. Is there anyway to have it not do that? just leave that part the default? Other then that I think this is a great hack!

Testing this myself and also didn't want to use the built in ranking overrides. So if someone knows what to remove to get that bit out, would be much appreciated. :)

Unfortunately it overrides the primary, and we use secondary usergroups to display rank our images.

Thanks much. Great mod so far, I feel a install click coming if I can tweak it right.

GrendelKhan{TSU
10-24-2005, 09:48 AM
I have the same issue that this doesn't seem to work when it shows up in VBADVANCED GALLERY. :/

it comes up with this path:
http://www.MYSITE.com/forums/applied/misc/activity/posts.gif

which isn't correct---should be posts0.gif or similar.

Is there a fix for this? I don't know if its the code or vbadvanced. But its not showing up in the vbadvanced image update installer...so I suspect its more on this end.

could be wrong. :/



This should work:

<if condition="THIS_SCRIPT == showimage">
&nbsp;
<else />
[activity code here]
</if>



1. OK, so this will turn it OFF when in vbadvanced gallery...which is a workaround.
2. er.... I don't know how to use that code. :(


any help would be greatly appreciated. I love this mod. :D :D

WetWired
10-25-2005, 04:41 PM
I'm not sure if I just missed it or maybe it's needed. But where the hack adds 'owner' under administrator, or it adds 'junior' under 'junior'. Is there anyway to have it not do that? just leave that part the default? Other then that I think this is a great hack!

You can remove the activity hack rankings by removing $WWU002_ranktext from your postbit templates.

Is there any way I can move this below my reputation bar (under the instant message images)?
You can put it where you like. Just put the <table class="WWU002postbit" cellspacing="2" cellpadding="0">
<tr>
<td><img src="$stylevar[imgdir_misc]/activity/textactivity.gif" /></td>
<td><img src="$stylevar[imgdir_misc]/activity/textlongevity.gif" /></td>
</tr>
<tr>
<td title="$WWU002_activityinfo"><img src="$stylevar[imgdir_misc]/activity/activity$WWU002_activitylevel.gif" class="i" /></td>
<td title="$WWU002_longevityinfo"><img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /></td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" /></td>
<td><img src="$stylevar[imgdir_misc]/activity/textposts.gif" /></td>
</tr>
<tr>
<td title="$WWU002_todayinfo"><img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gi f" class="i" /></td>
<td dir="ltr"><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[1].gif" class="il" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[2].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[3].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[4].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[5].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[6].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[7].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[8].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[9].gif" class="ir" /></td>
</tr>
</table>
part whereever you want it in the template.
Also, what font did you use? I'd like to localize the text in the images.The text is hand-drawn.


Regarding vBAdvanced, I don't use it, so I'll need your help in determining the source of the problem. First of all, enable debug mode on your forum, go to the page with the problem, and in the new drop down at the bottom of the page, tell me if you see any 'WWU002: Postbit for user X' messages and if the X is non-zero.

Flow Fusion
10-28-2005, 11:20 AM
in template MEMBERINFO



find
-----
$vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
-----
below it, insert
-----
<div>$vbphrase[WWU002_activity]: <strong>$WWU002_activitypercent%</strong></div>

This isn't in my MEMBERINFO template. Other than that it's a great hack.

TJFweb
10-29-2005, 01:47 PM
Wetwired:

This is a really great plugin.

I was just thinking - it would be really cool if I could get all of my user statistics into the same graphical format as shown in the postbit_legacy layout for the Activity Mod.

If it's not too much trouble, would you be able to tell me how to get other numerical values to show up in the graphical format as the Activity Mod does for the post count?

Being able to grab a numerical value from the user table and change it to graphical format like this does for post count would actually make a cool standalone addon too.

Thanks!!

007
10-30-2005, 04:00 PM
What exactly does the Activity meter calculate? It looks like it goes up to 100%, but how does it work?

WetWired
10-31-2005, 01:51 PM
If it's not too much trouble, would you be able to tell me how to get other numerical values to show up in the graphical format as the Activity Mod does for the post count?
This is the code that the plugin uses to separate the post count into digits:
//Separate out postcount
$WWU002postcount=$WWU002user['posts'];
if($WWU002postcount<1){
$WWU002_postsd=array(1=>'s',2=>'s',3=>'s',4=>'s',5=>'s',6=>'s',7=>'s',8=>'s',9=>'0');
}else{//($WWU002postcount<1)
for($i=9;$i>0;$i--){
$WWU002digit=$WWU002postcount%10;
$WWU002postcount=floor($WWU002postcount/10);
if(($WWU002digit==0)&&($WWU002postcount==0)){
$WWU002_postsd[$i]='s';
}else{//(($WWU002digit==0)&&($WWU002postcount==0))
$WWU002_postsd[$i]=$WWU002digit;
}//endif(($WWU002digit==0)&&($WWU002postcount==0))
}//endfor($i=9;$i>0;$i++)
}//endif($WWU002postcount<1)

First, it stores the value to process in a working variable so the original value is not corrupted, then it has a special case to display 0 for any value under 1 (because postcount shouldn't go negative, and the code doesn't have provisions for displaying negative numbers). After that, it works from least significant digit to most significant, by dividing the value by 10 and using the remainder as the digit for that place. If we've passed all the siginificant digits (because our working value is zero), then zero digits are converted to space padding.

You should be able to use the same code to separate out the digits for any value, just change the second line to assign $WWU002postcount to the new value to break down, and replace occurrances of $WWU002_postsd with a different variable to hold the digits.

What exactly does the Activity meter calculate? It looks like it goes up to 100%, but how does it work?

From the opening post:
Visiting each day and posting the configured amount of times per day for the configured number of weeks will yeild 100% activity. Posts are checked individually for each day, so days cannot be skipped then spammed up afterwards. The weight of visiting for the day relative to posting is configurable. Weeks are weighted so the most recent has a bigger impact on the activity percent than the most distant.

For an in-depth explaination (this file is included with the mod):
https://vborg.vbsupport.ru/attachment.php?attachmentid=33478

TJFweb
11-01-2005, 04:55 AM
This is the code that the plugin uses to separate the post count into digits:
//Separate out postcount
$WWU002postcount=$WWU002user['posts'];
if($WWU002postcount<1){
$WWU002_postsd=array(1=>'s',2=>'s',3=>'s',4=>'s',5=>'s',6=>'s',7=>'s',8=>'s',9=>'0');
}else{//($WWU002postcount<1)
for($i=9;$i>0;$i--){
$WWU002digit=$WWU002postcount%10;
$WWU002postcount=floor($WWU002postcount/10);
if(($WWU002digit==0)&&($WWU002postcount==0)){
$WWU002_postsd[$i]='s';
}else{//(($WWU002digit==0)&&($WWU002postcount==0))
$WWU002_postsd[$i]=$WWU002digit;
}//endif(($WWU002digit==0)&&($WWU002postcount==0))
}//endfor($i=9;$i>0;$i++)
}//endif($WWU002postcount<1)

First, it stores the value to process in a working variable so the original value is not corrupted, then it has a special case to display 0 for any value under 1 (because postcount shouldn't go negative, and the code doesn't have provisions for displaying negative numbers). After that, it works from least significant digit to most significant, by dividing the value by 10 and using the remainder as the digit for that place. If we've passed all the siginificant digits (because our working value is zero), then zero digits are converted to space padding.

You should be able to use the same code to separate out the digits for any value, just change the second line to assign $WWU002postcount to the new value to break down, and replace occurrances of $WWU002_postsd with a different variable to hold the digits.



From the opening post:
Visiting each day and posting the configured amount of times per day for the configured number of weeks will yeild 100% activity. Posts are checked individually for each day, so days cannot be skipped then spammed up afterwards. The weight of visiting for the day relative to posting is configurable. Weeks are weighted so the most recent has a bigger impact on the activity percent than the most distant.

For an in-depth explaination (this file is included with the mod):
https://vborg.vbsupport.ru/attachment.php?attachmentid=33478

Awesome... Thanks a lot for the code ;-)

Now all I need to do is try to get it to work with another variable I have. Unfortunately I don't know why a hook can't use a specific variable when it can be called when placed in the postbit. This isn't to do with the Activity Mod (at most it's an adaptation of a feature of the Activity Mod) so I made a post here instead: https://vborg.vbsupport.ru/showthread.php?t=99795

Lor20
11-02-2005, 11:57 AM
First of all - great hack :)- looks really nice with the images and its pretty usefull. Secondly i have a problem - the titles dont seem to update. I installed the hack over 24 hours ago so theoretically ppl with the needed activity should have been updated today and moved in the higher category.

if($vbulletin->userinfo['userid']){
..... everything till here seems to work fine, the visitlog table looks fine and so do the fields in the user table other than the "rank"
$WWU002userid=$vbulletin->userinfo['userid'];
$WWU002activityPoints=eval($WWU002activityUpdate);
//memberlevel 1 to memberlevel 2
if(($vbulletin->userinfo['wwu002memberlevel']<2)&&($WWU002activityPoints>=($WWU002maxPoints*($vbulletin->options['WWU002level2THold']/100)))){
devdebug('WWU002: promoted user '.$vbulletin->userinfo['userid'].' to level 2');
$vbulletin->userinfo['wwu002memberlevel']=2;
$db->query_write('UPDATE '.TABLE_PREFIX.'user SET wwu002memberlevel="2",wwu002fullmemberdate="'.$WWU002startOfDay.'" WHERE userid="'.$vbulletin->userinfo['userid'].'"');
$vbulletin->userinfo['wwu002fullmemberdate']=$WWU002startOfDay;
}//endif(($vbulletin->userinfo['wwu002memberlevel']<2)&&($WWU002activityPoints>=($WWU002maxPoints*($vbulletin->options['WWU002level2THold']/100))))

Any Ideas on the matter would be apreciated :). I could just make a cronjob and run that every hour to update them but I figure thre is something wrong if it doesnt work for me.
If i see it correctly members who once got promoted keep their rank for the rest of the time? Is it possible to make that limited so you get dropped down a level again once ur activity drops below the point of where it had to be to get promoted?-again - I could do that with a cronjob but I'm just wondering if it's something other people would like to see.)

Thanks again,
Lor20

hawksisdead
11-02-2005, 04:23 PM
I was just wondering what I would need to edit to move the 4 bars around in the postbit. I want them lined up underneath Rep Power, but instead they are over to the left. What template edits do I need to make to get them lined up?

WetWired
11-02-2005, 09:20 PM
First of all - great hack :)- looks really nice with the images and its pretty usefull. Secondly i have a problem - the titles dont seem to update. I installed the hack over 24 hours ago so theoretically ppl with the needed activity should have been updated today and moved in the higher category.
Any Ideas on the matter would be apreciated :). I could just make a cronjob and run that every hour to update them but I figure thre is something wrong if it doesnt work for me.
If i see it correctly members who once got promoted keep their rank for the rest of the time? Is it possible to make that limited so you get dropped down a level again once ur activity drops below the point of where it had to be to get promoted?-again - I could do that with a cronjob but I'm just wondering if it's something other people would like to see.)

Thanks again,
Lor20

The titles are only updated when the user visits; this minimizes overhead.

I was just wondering what I would need to edit to move the 4 bars around in the postbit. I want them lined up underneath Rep Power, but instead they are over to the left. What template edits do I need to make to get them lined up?
https://vborg.vbsupport.ru/showpost.php?p=804589

Lor20
11-03-2005, 06:37 AM
I know it is supposed to update when the user visits, it is not doing that for me though. I have users who have an activity of over 60% and are still on level 1 (while the barriers are set at 25% and 65%). ALL my users are on level one even though about 100 or so of them were online in the last day and had enough activity to be "promoted".
Lor20

WetWired
11-04-2005, 03:21 AM
Do you have phpMyAdmin or another such tool? Check the values for wwu002lastvisit in the user table for some active users and a few entries from the wwu002visitlog table. Also, if you could screenshot the activity hack settings page, that may also be useful.

Lor20
11-05-2005, 01:54 PM
lastvisit is set to last midnight for ppl who visited today, the visitlog looks fine (eg:)
select * from wwu002visitlog where userid=2 limit 5;
+------+--------+------------+
| unid | userid | dateline |
+------+--------+------------+
| 17 | 2 | 1130803200 |
| 737 | 2 | 1130889600 |
| 1193 | 2 | 1130976000 |
| 1671 | 2 | 1131062400 |
| 2175 | 2 | 1131148800 |
+------+--------+------------+

my settings are:
2-3-2005
4 weeks reflected
3 counted posts
2.0 for Visit Weighting
no Find today's activity for all users
25 Level 2 Threshold
60 Level 3 Threshold
1=Spark
2=Flame
3=Wildfire
the rest is default.
I even tried to update the memberlevel manually in the table but it didnt get a different title on the forumdisplay either. For some reason the activityupdate wont run it seems.
Lor20

StarBuG
11-05-2005, 03:58 PM
thx for this.

Works like a charm only if you hover with your mouse over the images you have %% instead of only one (except posts ;)

* StarBuG clicks install

WetWired
11-05-2005, 08:00 PM
If you updated the memberlevel in the table, then you should definately be getting different text. I don't know what could be going wrong except that for some reason the ranks aren't being parsed correctly. Import this plugin, go to a forumdisplay page, view source, and copy the comment at the top.

StarBuG
11-06-2005, 07:09 AM
when i change the settings for weeks, posts or how much a visit is worth I get this error:

Fatal error: Using $this when not in object context in /some/path/html/forum/admincp/options.php(843) : eval()'d code on line 7

Ryan McBain
11-06-2005, 09:15 PM
nevemind. I got it working right.

TJFweb
11-06-2005, 10:43 PM
thx for this.

Works like a charm only if you hover with your mouse over the images you have %% instead of only one (except posts ;)

* StarBuG clicks install

I think that started happening as of the vB 3.5.1 upgrade. You just need to edit your phrases and delete one of the % signs.

GrendelKhan{TSU
11-06-2005, 11:59 PM
[QUOTE]
This should work:

HTML Code:
<if condition="THIS_SCRIPT == showimage">
&nbsp;
<else />
[activity code here]
</if>



1. OK, so this will turn it OFF when in vbadvanced gallery...which is a workaround.
2. er.... I don't know how to use that code. :(


any help would be greatly appreciated. I love this mod. :D :D[/QUOTE


can someone tell where to apply this code to turn off the activity hack in vbGallery? (causes conflict)

Ryan McBain
11-07-2005, 12:48 AM
fixed

TJFweb
11-07-2005, 01:00 AM
I've noticed that on IE my activness for today doesn't show. But on firefox it does. I don't know if it just doesn't show at all or it shows differently. What might be causing that?

Would you be able to provide a screenshot of this?

Ryan McBain
11-07-2005, 01:02 AM
Would you be able to provide a screenshot of this?

fixed it

Ryan McBain
11-07-2005, 04:20 AM
I think that started happening as of the vB 3.5.1 upgrade. You just need to edit your phrases and delete one of the % signs. Which phrase do we update, and where is it?

Ryan McBain
11-07-2005, 04:06 PM
Yeah I still have an extra % sign when I scroll over the activity and longevity bars. Can someone lead me step by step on how to fix this? I'm using 3.5.1

WetWired
11-07-2005, 09:21 PM
I hope to get the time this week to fix that and the $this problem, but basicly what you need to do is goto admincp>languages&phrases>phrase manager, click "Search in Phrases" enter "wwu002", and choose "phrase variable name only", then click "Find".
You will get a list of all the phrases used by this mod. At the bottom, under "Global Phrases", you will see the phrases containing %%. For each of them, you will need to hit "Edit" and remove the second %. I'd like to note that in previous versions, the second % was needed.

GrendelKhan{TSU
11-08-2005, 03:47 AM
activity hack is causing this error in the vbaGallery.

Warning: Cannot use a scalar value as an array in /gallery/showimage.php(771) : eval()'d code on line 53

Warning: Cannot use a scalar value as an array in /gallery/showimage.php(771) : eval()'d code on line 57

Warning: Cannot use a scalar value as an array in /gallery/showimage.php(771) : eval()'d code on line 60

Warning: Cannot use a scalar value as an array in /gallery/showimage.php(771) : eval()'d code on line 61

Warning: Cannot use a scalar value as an array in /gallery/showimage.php(771) : eval()'d code on line 63

any ideas what's causing the conflict?

also, it was suggested that you turn OFF the activity hack in vbaGallery cause it causes this error using this:

<if condition="THIS_SCRIPT == showimage">
&nbsp;
<else />
[activity code here]
</if>

can someone tell how to use that? or where? what is "THIS_SCRIPT"? or is that literally what I put?

<< n00b so I know nothing of php syntax etc.

unless that error conflict is fixed....turning off the activity hack seem to be teh only option. :(

GamerJunk.net
11-08-2005, 04:21 AM
Thanks installed.

WetWired
11-11-2005, 01:34 PM
Since vbAdvanced Gallery is not free, and I don't use it, I'm really going to need you guys to help me help you. For starters, I need to find out what's in the post array being passed to postbit_display_start. So I need one of you guys to install the attached plugin, go to a gallery page (whatever page has the postbits), view source, copy all the comments at the top of the source, and paste them here. You should then remove or disable this plugin. The plugin should already censor any sensitive information that appears in the post array.

version2
11-11-2005, 07:48 PM
Since vbAdvanced Gallery is not free, and I don't use it, I'm really going to need you guys to help me help you. For starters, I need to find out what's in the post array being passed to postbit_display_start. So I need one of you guys to install the attached plugin, go to a gallery page (whatever page has the postbits), view source, copy all the comments at the top of the source, and paste them here. You should then remove or disable this plugin. The plugin should already censor any sensitive information that appears in the post array.

Very nice hack. I was hoping to use it, but upon install I started getting a bunch of server messages:

mysql_connect(): Too many connections
/var/www/html/mw/includes/class_core.php on line 273

Is it just not in the cards to use this on big boards?

WetWired
11-11-2005, 11:59 PM
The modification would not increase the number of connections, since it only uses the normal vB one. Perhaps it is just coincidence? The original private version of this mod, which was quite a bit less efficient, ran on a board with 50-100 members online at the same time on average on a low end server.

GrendelKhan{TSU
11-12-2005, 12:51 AM
Since vbAdvanced Gallery is not free, and I don't use it, I'm really going to need you guys to help me help you. For starters, I need to find out what's in the post array being passed to postbit_display_start. So I need one of you guys to install the attached plugin, go to a gallery page (whatever page has the postbits), view source, copy all the comments at the top of the source, and paste them here. You should then remove or disable this plugin. The plugin should already censor any sensitive information that appears in the post array.

I already installed the workaround (if statement so activity hack doesn't appear at all anymore in the gallery).

do I need to undo that before I add this plugin and post the code? caue I did as you instructed and installed that debug plugin and there doesn't seem to be anything interesting in the viewsource (no comments at the top).

WetWired
11-12-2005, 01:10 AM
If you were getting errors from the activity mod, you may need to temporarily disable it so that it does not interfere with this plugin running.

GamerJunk.net
11-17-2005, 04:02 PM
what is up with this error? http://photobucket.com/albums/c117/kang_rave/?action=view&current=screeny.jpg

WetWired
11-17-2005, 11:09 PM
That's what you get if you use one % on vb 3.5.0, which is why everyone is having problems with the two % when they upgrade to vB 3.5.1.

cbr929rrerion
11-22-2005, 05:08 AM
I already installed the workaround (if statement so activity hack doesn't appear at all anymore in the gallery).

do I need to undo that before I add this plugin and post the code? caue I did as you instructed and installed that debug plugin and there doesn't seem to be anything interesting in the viewsource (no comments at the top).


so where does it go? No one ever said.. where does it go?

cbr929rrerion
11-22-2005, 06:01 AM
I got a bunch of x's on my gallery.. I need to know where to put this...

<if condition="THIS_SCRIPT == showimage">
&nbsp;
<else />
[activity code here]
</if>

cbr929rrerion
11-22-2005, 06:14 AM
figured it out....

DS MrSinister
11-24-2005, 02:43 AM
how did you get it to work?

AndyA
11-24-2005, 01:09 PM
I've just installed this today, nothing from the plugin shows on my forum though ?

www.throttlejockey.co.uk

AndyA
11-24-2005, 01:32 PM
Correction, I've now followed the instruction's. Now how do I remove the extra rank details please ?

cbr929rrerion
11-24-2005, 02:23 PM
how did you get it to work?

In Postbit and or postbit legacy, where you put this code..


<td class="WWU002postbit">
<table cellspacing="2" cellpadding="0">
<tr>
<td><img src="$stylevar[imgdir_misc]/activity/textactivity.gif" /></td>
<td><img src="$stylevar[imgdir_misc]/activity/textlongevity.gif" /></td>
</tr>
<tr>
<td title="$WWU002_activityinfo"><img src="$stylevar[imgdir_misc]/activity/activity$WWU002_activitylevel.gif" class="i" /></td>
<td title="$WWU002_longevityinfo"><img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /></td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" /></td>
<td><img src="$stylevar[imgdir_misc]/activity/textposts.gif" /></td>
</tr>
<tr>
<td title="$WWU002_todayinfo"><img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gi f" class="i" /></td>
<td dir="ltr"><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[1].gif" class="il" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[2].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[3].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[4].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[5].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[6].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[7].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[8].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[9].gif" class="ir" /></td>
</tr>
</table>
</td>
<td valign="top" nowrap="nowrap">

<div class="smallfont">

you want to replace with this

<if condition="THIS_SCRIPT == showimage">
&nbsp;
<else />

<td class="WWU002postbit">
<table cellspacing="2" cellpadding="0">
<tr>
<td><img src="$stylevar[imgdir_misc]/activity/textactivity.gif" /></td>
<td><img src="$stylevar[imgdir_misc]/activity/textlongevity.gif" /></td>
</tr>
<tr>
<td title="$WWU002_activityinfo"><img src="$stylevar[imgdir_misc]/activity/activity$WWU002_activitylevel.gif" class="i" /></td>
<td title="$WWU002_longevityinfo"><img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /></td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" /></td>
<td><img src="$stylevar[imgdir_misc]/activity/textposts.gif" /></td>
</tr>
<tr>
<td title="$WWU002_todayinfo"><img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gi f" class="i" /></td>
<td dir="ltr"><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[1].gif" class="il" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[2].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[3].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[4].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[5].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[6].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[7].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[8].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[9].gif" class="ir" /></td>
</tr>
</table>
</td>
<td valign="top" nowrap="nowrap">

<div class="smallfont">
</if>


if you replace the above with this it will fix it.. so postbit and postbit legacy

AndyA
11-24-2005, 02:47 PM
I'm unsure of how how to do this but my Activity graphs are shown in different positions due to the length of text in my members location details (see attached). How can I get the graphs to appear on the right below the location details ?

Is this meant to do what I wan't ?

===== in template postbit (for the default 2nd column appearance) to put the activity info above your IM icons and reputation in your horizontal postbit, use the postbit_legacy modifications on your postbit template instead of the ones below.

I'm not really sure what steps to take, can someone explain this to me ?

Many thanks.

WetWired
11-24-2005, 02:47 PM
Correction, I've now followed the instruction's. Now how do I remove the extra rank details please ?

Remove $WWU002_ranktext from the templates.

I'm unsure of how how to do this but my Activity graphs are shown in different positions due to the length of text in my members location details (see attached). How can I get the graphs to appear on the right below the location details ?

Is this meant to do what I wan't ?

===== in template postbit (for the default 2nd column appearance) to put the activity info above your IM icons and reputation in your horizontal postbit, use the postbit_legacy modifications on your postbit template instead of the ones below.

I'm not really sure what steps to take, can someone explain this to me ?

Many thanks.

Yes, like the install instructions say, if you want the activity stuff with the location, reputation, and such, then you should use the postbit_legacy modifications on the postbit template.

WetWired
11-24-2005, 02:56 PM
I would really like to fix this mod to play well with vBAdvanced Gallery, but I need someone with vBAdvanced Gallery to help me out. Disable the mod, follow the instructions in this post:
https://vborg.vbsupport.ru/showpost.php?p=818581
Then reenable the mod. Whether or not you've done the work arround won't effect this.

AndyA
11-24-2005, 03:01 PM
Just to confirm, I should use the following code on the Postbit template and undo the changes I've already made ?

****************** images version templates ===== in template postbit_legacy find ----- <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> ----- above it, insert ----- <div class="smallfont"><strong>$WWU002_ranktext</strong></div> ----- find ----- <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if> ----- replace it with ----- <table class="WWU002postbit" cellspacing="2" cellpadding="0"> <tr> <td><img src="$stylevar[imgdir_misc]/activity/textactivity.gif" /></td> <td><img src="$stylevar[imgdir_misc]/activity/textlongevity.gif" /></td> </tr> <tr> <td title="$WWU002_activityinfo"><img src="$stylevar[imgdir_misc]/activity/activity$WWU002_activitylevel.gif" class="i" /></td> <td title="$WWU002_longevityinfo"><img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /></td> </tr> <tr> <td><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" /></td> <td><img src="$stylevar[imgdir_misc]/activity/textposts.gif" /></td> </tr> <tr> <td title="$WWU002_todayinfo"><img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gi f" class="i" /></td> <td dir="ltr"><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[1].gif" class="il" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[2].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[3].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[4].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[5].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[6].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[7].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[8].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[9].gif" class="ir" /></td> </tr> </table> ----- find and remove ----- <div> $vbphrase[posts]: $post[posts] </div> -----

AndyA
11-24-2005, 03:27 PM
Got it sorted now thanks.

djjeffa
11-25-2005, 10:59 PM
I did a lil work with this hack but im a bad coder I was wondering if someone could tell me how to change the fonts to make them match and maybe extent the gray box all the way acroos here is how it looks right now.

cbr929rrerion
11-25-2005, 11:48 PM
I sent you an email with the text in it.. Let me know if you need anything else.. or if I did something wrong let me know...

referring to vbgallery that is.. I will be your tester...

WetWired
11-26-2005, 12:45 AM
I sent you an email with the text in it.. Let me know if you need anything else.. or if I did something wrong let me know...

referring to vbgallery that is.. I will be your tester...

And you turned the activity hack off before you viewed this page and copied the source?

WetWired
11-26-2005, 12:46 AM
I did a lil work with this hack but im a bad coder I was wondering if someone could tell me how to change the fonts to make them match and maybe extent the gray box all the way acroos here is how it looks right now.

Template source would be helpfull.

cbr929rrerion
11-26-2005, 12:51 AM
And you turned the activity hack off before you viewed this page and copied the source?

yes..

I disabled the activity hack, installed the other one.. then viewd source and then disabled the 2nd one and turned activity back on..

No I can say when I went to the gallery all functions as normal but when I forgot to disable the 2nd one you said to install I tried to view a thread and it said something about cookies etc.. but it did not do that in the gallery..

Gallery location is root/gallery/ if that matters...

cbr929rrerion
11-26-2005, 12:55 AM
when attempting to go to normal thread on forum with the debug I get this..

Unable to add cookies, header already sent.
File: /hsphere/local/home/crotchro/crotchrocketracing.com/includes/class_postbit.php(251) : eval()'d code
Line: 44

when I go to gallery it loads as normal and view source is the file I sent ya...

Swear...

djjeffa
11-26-2005, 01:09 AM
Template source would be helpfull.

this is how i have it right now

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

<div class="smallfont">
&nbsp;<br />
<table class="WWU002postbit" cellspacing="2" cellpadding="0"> <tr>
<td> <div class="pibu"><div class="pib"> <img src="$stylevar[imgdir_misc]/activity/textactivity.gif" /></td><td title="$WWU002_activityinfo"><img src="$stylevar[imgdir_misc]/activity/activity$WWU002_activitylevel.gif" class="i" /></div></td>
</tr>
<tr>
<td> <div class="pibu"><div class="pib"> <img src="$stylevar[imgdir_misc]/activity/textlongevity.gif" /></td><td title="$WWU002_longevityinfo"><img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /> </div> </td>
</tr>
<tr>



<td><div class="pibu"><div class="pib"><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" /></td><td title="$WWU002_todayinfo"><img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gi f" class="i" /></div></td>
</tr>
<tr>

</tr>
</table>
<if condition="$post['field2']"><div class="pibu"><div class="pib">$vbphrase[location_perm]: $post[field2] </div> </div></if>
<if condition="$post['age']"><div class="pibu"><div class="pib">$vbphrase[age]: $post[age]</div></div></if>
<div class="pibu"><div class="pib">
$vbphrase[posts]: $post[posts]
</div></div>
<if condition="$show['reputation']"><div class="pibu"><div class="pib"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></div></if>
<if condition="$post[icqicon] or $post[aimicon] or $post[msnicon] or $post[yahooicon]"><div class="pibu"><div class="pib">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div></div></if>
</div>

hope this is what you wanted.
I have galery as well im not good at coding but ill give you admin acces if you wantso you could mess with it.

WetWired
11-26-2005, 08:08 AM
<table class="WWU002postbit" cellspacing="2" cellpadding="0"> <tr>
<td> <div class="pibu"><div class="pib"> <img src="$stylevar[imgdir_misc]/activity/textactivity.gif" /></td><td ></div></td>
</tr>
<tr>
<td> <div class="pibu"><div class="pib"> <img src="$stylevar[imgdir_misc]/activity/textlongevity.gif" /></td><td title="$WWU002_longevityinfo"><img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /> </div> </td>
</tr>
<tr>



<td><div class="pibu"><div class="pib"><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" /></td><td title="$WWU002_todayinfo"><img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gi f" class="i" /></div></td>
</tr>
<tr>

</tr>
</table>becomes
<table class="WWU002postbit"><tr><td>
<div class="pibu"><div class="pib" title="$WWU002_activityinfo"><div style="float:left;width:100px;">Activity:</span> <img src="$stylevar[imgdir_misc]/activity/activity$WWU002_activitylevel.gif" class="i" /></div></div>
<div class="pibu"><div class="pib" title="$WWU002_longevityinfo"><div style="float:left;width:100px;">Longevity:</span> <img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /></div></div>
<div class="pibu"><div class="pib" title="$WWU002_todayinfo"><div style="float:left;width:100px;">Today:</span> <img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gi f" class="i" /></div></div>
</td></tr></table>

WetWired
11-26-2005, 08:10 AM
yes..

I disabled the activity hack, installed the other one.. then viewd source and then disabled the 2nd one and turned activity back on..

No I can say when I went to the gallery all functions as normal but when I forgot to disable the 2nd one you said to install I tried to view a thread and it said something about cookies etc.. but it did not do that in the gallery..

Gallery location is root/gallery/ if that matters...

Well, then, it appears that the problem is that the gallery does not use the postbit class to display the postbit template. I'd post a complaint in their support forum; it appears that the only way to make it work how it is now would be a code modification to the gallery.

cbr929rrerion
11-26-2005, 03:10 PM
I would complain but it would do no good, the Gallery uses a lot of thing differant from VB..

lairnoc
11-26-2005, 03:37 PM
installerd cewl thnx

djjeffa
11-26-2005, 04:42 PM
<table class="WWU002postbit" cellspacing="2" cellpadding="0"> <tr>
<td> <div class="pibu"><div class="pib"> <img src="$stylevar[imgdir_misc]/activity/textactivity.gif" /></td><td ></div></td>
</tr>
<tr>
<td> <div class="pibu"><div class="pib"> <img src="$stylevar[imgdir_misc]/activity/textlongevity.gif" /></td><td title="$WWU002_longevityinfo"><img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /> </div> </td>
</tr>
<tr>



<td><div class="pibu"><div class="pib"><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" /></td><td title="$WWU002_todayinfo"><img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gi f" class="i" /></div></td>
</tr>
<tr>

</tr>
</table>becomes
<table class="WWU002postbit"><tr><td>
<div class="pibu"><div class="pib" title="$WWU002_activityinfo"><div style="float:left;width:100px;">Activity:</span> <img src="$stylevar[imgdir_misc]/activity/activity$WWU002_activitylevel.gif" class="i" /></div></div>
<div class="pibu"><div class="pib" title="$WWU002_longevityinfo"><div style="float:left;width:100px;">Longevity:</span> <img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /></div></div>
<div class="pibu"><div class="pib" title="$WWU002_todayinfo"><div style="float:left;width:100px;">Today:</span> <img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gi f" class="i" /></div></div>
</td></tr></table>

thanks for the help but it didnt work it kinda made it worse lol
any way as far as vbgallery is there a way to just make 2 dupliacat styles if you only use one style on your site and set it so when your in the gallere it uses the style without the activity hack?

djjeffa
11-26-2005, 05:22 PM
ok I got the fonts to work but im tring to get the gray box to go all the way instead of ending at the text. anyone think they could help here is what I have now and how it looks.
<table class="WWU002postbit" cellspacing="2" cellpadding="0"> <tr>
<td> <div class="pibu"><div class="pib">Activity:</span> </td><td title="$WWU002_activityinfo"> <img src="$stylevar[imgdir_misc]/activity/activity$WWU002_activitylevel.gif" class="i" /> </div></td>
</tr>
<tr>
<td> <div class="pibu"><div class="pib"> Longevity:</span> </td> <td title="$WWU002_longevityinfo"><img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /> </div> </td>
</tr>
<tr>
<td><div class="pibu"><div class="pib"> Today:</span> </td><td title="$WWU002_todayinfo"><img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gi f" class="i" /></div></td>
</tr>
<tr>
</tr>
</table>

mholtum
11-26-2005, 09:45 PM
Installed quick and easy. Good Job. One issue.. See the image to see what I mean.

WetWired
11-27-2005, 02:08 AM
ok I got the fonts to work but im tring to get the gray box to go all the way instead of ending at the text. anyone think they could help here is what I have now and how it looks.


You wont be able to get the effect you want with the same table layout. Try the code I posted, replacing </span> with </div> (oops)


Mholtum, I'm not sure exactly what your issue is, but if it's the background, you just need to look at the div arround the other stuff and put it arround the activity mod table.

mholtum
11-27-2005, 05:20 AM
Mholtum, I'm not sure exactly what your issue is, but if it's the background, you just need to look at the div arround the other stuff and put it arround the activity mod table.

I am not sure what it is. I have tried everything I can think of. Care to help a brother out? Here is my template.



<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>



<br />
<!-- top category table setup -->
<table width="100%" class="tcat" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="50" height="28" align="left" valign="top" class="pbitcat"><img src="$stylevar[imgdir_misc]/cat_back.gif" width="50" height="28" alt="" /></td>
<td width="100%" valign="middle"><div class="smallfont" align="center">$post[icon] <strong>$post[title]</strong></div></td>
<td width="28" height="28" align="right" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_rs.gif" width="28" height="28" alt=" " border="0" /></td>
</tr>
</table>
<!-- End top category table setup -->

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal" colspan="2">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" style="font-weight:normal" $post[scrolltothis]>
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" style="font-weight:normal" align="$stylevar[right]">
&nbsp;
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="175">

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<div class="smallfont"><strong>$WWU002_ranktext</strong></div>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>

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

<div class="smallfont">
&nbsp;<br />
<div class="info">$post[musername] is $post[onlinestatus] </div>
<div class="smallfont">
<table class="WWU002postbit" cellspacing="2" cellpadding="0">
<tr>
<td><img src="$stylevar[imgdir_misc]/activity/textactivity.gif" /></td>
<td><img src="$stylevar[imgdir_misc]/activity/textlongevity.gif" /></td>
</tr>
<tr>
<td title="$WWU002_activityinfo"><img src="$stylevar[imgdir_misc]/activity/activity$WWU002_activitylevel.gif" class="i" /></td>
<td title="$WWU002_longevityinfo"><img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /></td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" /></td>
<td><img src="$stylevar[imgdir_misc]/activity/textposts.gif" /></td>
</tr>
<tr>
<td title="$WWU002_todayinfo"><img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gi f" class="i" /></td>
<td dir="ltr"><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[1].gif" class="il" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[2].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[3].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[4].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[5].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[6].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[7].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[8].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[9].gif" class="ir" /></td>
</tr>
</table>

<if condition="$post['field2']"><div class="info">$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div class="info">$vbphrase[age]: $post[age]</div></if>
<div class="info">$vbphrase[posts]: $post[posts]
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
<strong>Time spent on board:</strong><br /> $post[timeonboard]
</div>
<if condition="$show['reputation']"><div class="info">Rep: $post[reputationdisplay]</div></if>
<if condition="$show['reppower']"><div class="info">$vbphrase[reppower]: $post[reppower] </div></if>
<if condition="$post[icqicon] or $post[aimicon] or $post[msnicon] or $post[yahooicon]"><div class="info">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>

<!-- DONATIONS -->
<if condition="$post['donor'] == '1'"><if condition="$post['showdonor'] == '1'"><div><a href="$vboptions[bburl]/donate.php"><img src="$stylevar[imgdir_button]/donate_donor.gif" border="0"></a></div></if></if>
<!-- END DONATIONS --></if>
</div>

</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>

<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>

<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->

<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">

<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>

<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>

<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>

</div>
<!-- / attachments -->
</if>

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>

</td>
</tr>
<tr>
<td class="alt2">

<if condition="$show['reputationlink']"><a href="#" onclick="reputation($post[postid]); return false;"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
&nbsp;
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]">
<else />
<td class="alt1" align="$stylevar[right]">
</if>
<!-- controls -->
<!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->
<if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<!-- / controls -->
</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->


<!-- bottom table setup -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image:url($stylevar[imgdir_misc]/dist_btm_table.gif)">
<tr>
<td width="100%" height="14" align="left" valign="top" class="btmcat">&nbsp;</td>
</tr>
</table>
<!-- End bottom table setup -->

<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->

WetWired
11-27-2005, 07:25 AM
If you're not sure what your problem is, I can't help you. If you're not sure how to put the activity stuff in a box, change
<div class="smallfont">
<table class="WWU002postbit" cellspacing="2" cellpadding="0">to <div class="info">
<table class="WWU002postbit" cellspacing="2" cellpadding="0">

WetWired
12-13-2005, 09:01 PM
I've reposted the same version of the mod with an HTML template modification guide instead of the text version to resolve confusion some users were having.

BiReL41r
12-16-2005, 08:16 PM
Will it always be in the postbit or can you take it out?

GrendelKhan{TSU
12-17-2005, 12:55 AM
it'd be great to have a way to turn this off for long threads....its murderously slow on long threads especially for users who are far from the server (I have a lot of Korean users).

is there any another solution beside just uninstalling it? I really like this.

WetWired
12-17-2005, 06:35 AM
it'd be great to have a way to turn this off for long threads....its murderously slow on long threads especially for users who are far from the server (I have a lot of Korean users).

is there any another solution beside just uninstalling it? I really like this.

I'm not sure I understand. The length of a thread should be of no consequence to the activity hack, since it only operates on a page of posts at a time, and where the page is accessed from is even less significant.

Will it always be in the postbit or can you take it out?
You could keep it from operating in threads by not doing the postbit modifications and disabling the postbit_display_start plugin, though I'm not sure why you would want to do this.

Smiry Kin's
12-17-2005, 09:56 PM
Great Scripted installed and everything, 3.5.2

Also, is there any way to get the images, in the postbit title kinda thing??

where it says the posts date (as same in this forum )

thank you!

Smiry Kin's
12-17-2005, 09:57 PM
Installed quick and easy. Good Job. One issue.. See the image to see what I mean.

whats your script to add that please share!

WetWired
12-18-2005, 07:34 AM
Also, is there any way to get the images, in the postbit title kinda thing??

where it says the posts date (as same in this forum )

thank you!
I'm not sure I understand. Perhaps you could make a picture of what you're trying to do?

Snake
12-21-2005, 12:36 PM
Can this be added in profile page too?

djjeffa
12-21-2005, 10:43 PM
whell i finnally got it the way I want lol
I wish i could get the boxes to go all the way to the right like the others.

also wondering if there is some kind of codding where i could add the top 10 active members.

GrendelKhan{TSU
12-23-2005, 08:32 AM
I'm not sure I understand. The length of a thread should be of no consequence to the activity hack, since it only operates on a page of posts at a time, and where the page is accessed from is even less significant.


well all I know then, is that it brought loading of threads to screeeching painful molasses pace. some threads took a good ten seconds to load. :(
I had tons of loading time complaints. Skins without would load a lot faster by comparison (loaded normally).

I had to unistall it. :(

there was an immediate and obvoius speed improvement after I removed it. At LEAST, three or fours + times faster.

is there something else going on? I really did like this hack a lot. :)

Logikos
12-23-2005, 05:27 PM
I've been using this hack since the day WetWired released it to the public for the 3.0.x versions of vB and I have yet to experiance any loading problems with any threads.

He uses the same hack on his forums at Zelaron.com and threads there load quite fast with the amount of graphics that the postbit uses.

Kuimera
12-23-2005, 06:41 PM
I've been using this hack since the day WetWired released it to the public for the 3.0.x versions of vB and I have yet to experiance any loading problems with any threads.

He uses the same hack on his forums at Zelaron.com and threads there load quite fast with the amount of graphics that the postbit uses.

The only explanation for this must be your server configuration/speed that the site is hosted...

WetWired
12-23-2005, 10:12 PM
Can this be added in profile page too?
It should already be in the profile page if you completed all the template modifications.

Skins without would load a lot faster by comparison (loaded normally). If that's the case, then I suggest trying the simple (text based) template mods, or perhaps cutting out the digitized postcount part.

also wondering if there is some kind of codding where i could add the top 10 active members.I did do a top ten activity script for vB3 to go with vBStat; when I get some time, I will look into converting this and making it work stand allone. If there is a coder interesting in doing this (now as opposed to waiting for me to find the time), they should PM me and I'll give them the existing script to modify.

Kuimera
12-24-2005, 04:05 PM
I know that this is a odd request, but WetWired can you please send me the font that you use to make the "Logevity" and "Activity" ?

Logikos
12-24-2005, 04:43 PM
I know that this is a odd request, but WetWired can you please send me the font that you use to make the "Logevity" and "Activity" ?

Thats not a font, those are made by hand. Well, pixel by pixel. :)

nexus851
12-24-2005, 04:50 PM
why is the activity graph says a very high number like 8991 when you have your mouse over it?

lairnoc
12-24-2005, 04:58 PM
ok i imported it, but what do i do with the html file and what must i do more to get it working?
can't find any installation procedure

Kuimera
12-24-2005, 09:16 PM
Thats not a font, those are made by hand. Well, pixel by pixel. :)

Well so I guess is time to do some hand pixel :p

Tks m8.

Kuimera
12-24-2005, 09:21 PM
Btw, sense I install this hack, I dont know why but the regular User Titles for the members disapear, the strange is that the mods and admins group shows up but not the regular members... Any ideas?

Must be some code in the postbit or something...

Logikos
12-25-2005, 01:21 PM
Btw, sense I install this hack, I dont know why but the regular User Titles for the members disapear, the strange is that the mods and admins group shows up but not the regular members... Any ideas?

Must be some code in the postbit or something...

During install procedure he has you take it out since WW added his own usertitle based system. Just add the $post['usertitle'] where you want it :)

Hellraider
12-25-2005, 05:54 PM
One of our german users reports a "problem" with calculation of activity in his vB.

It seems to him (and of course also all his users), as if activity is set to 0 at 1 a.m. and not at 00:00.

Could you confirm, that this is no problem with the hack itself?

I think this is no problem with the hack, but a problem with the server/webspace/vB time.

Vierie
12-26-2005, 08:40 AM
Is there some way to not count posts in certain forums for the calculation of activity?

Kuimera
12-26-2005, 03:24 PM
During install procedure he has you take it out since WW added his own usertitle based system. Just add the $post['usertitle'] where you want it :)

I?m so sorry... I forgot to add that it?s the User title images... The text apears good.

Logikos
12-27-2005, 01:31 AM
Is there some way to not count posts in certain forums for the calculation of activity?

Calculation of activity only works in forums where post counts are counted for.

cdoyle
12-28-2005, 09:39 PM
Does version 2.51 of this hack work with VB 3.5?

Or should I use my copy of 2.50?

djjeffa
12-28-2005, 11:00 PM
I did do a top ten activity script for vB3 to go with vBStat; when I get some time, I will look into converting this and making it work stand allone. If there is a coder interesting in doing this (now as opposed to waiting for me to find the time), they should PM me and I'll give them the existing script to modify.

cool I think it would be a cool addition


ps its not slowing my site down any lol

Logikos
12-29-2005, 10:32 PM
I did do a top ten activity script for vB3 to go with vBStat; when I get some time, I will look into converting this and making it work stand allone. If there is a coder interesting in doing this (now as opposed to waiting for me to find the time), they should PM me and I'll give them the existing script to modify.

I wouldn't mind converting. I'll shoot you a PM. :)

cdoyle
12-30-2005, 03:45 AM
Just installed this on my 3.5 board, had a couple questions.

See the attached image

My first question is about the longevity, the screenshot is from my forum and my userid, I created the forum, so shouldn't my longevity be all the way maxed out? Instead I only have 1 green speck on the graph?

My next question is on the popup that appears when you move your mouse over that field.

See where it says User has been a member for '33f' board existance.

What does that 33f mean? How do I fix it? I'm guessing that is what's causing the graph to not appear right.

Logikos
12-30-2005, 04:39 AM
I founded this forum, but I don't have 100% longevity
Somehow a user's join date has been set before yours. When you install, the mod looks for the earliest join date to use to find longevity, but you can change the baseline date. To change the "Start of board" time, go to Maintenance>Activity Maintenance>Set Start of Board, enter your user number in the text field, then click Set Start of Board

cdoyle
12-30-2005, 02:07 PM
I founded this forum, but I don't have 100% longevity
Somehow a user's join date has been set before yours. When you install, the mod looks for the earliest join date to use to find longevity, but you can change the baseline date. To change the "Start of board" time, go to Maintenance>Activity Maintenance>Set Start of Board, enter your user number in the text field, then click Set Start of Board

Thanks, that fixed it. Didn't see that up top when I posted this.

I still have the question about the odd popups that appear when you move your mouse over the icons.

I also noticed it does it with the activity today too. Are they suppose to say things like 034f? Or did I do something wrong?

Logikos
12-30-2005, 02:11 PM
You must have edit the templates wrong, try reediting your templates once more. A good way to test if its you or not is install this hack on a fresh install (Test Board) and then see if it still does that. If it does, then its a bug, if not then its you. :p

Kuimera
12-30-2005, 05:03 PM
bump *

cdoyle
12-30-2005, 05:47 PM
I'm glad you mentioned the test board, I originally installed this on there along time ago. just went back and checked, and it's doing the same thing there. If you move the mouse over the icons, you get the strange 343f type thing.

cdoyle
12-30-2005, 06:52 PM
Any reason why the today meter only displays bars for that particular user when they are logged in and only for their postbit? For instance, when a user is logged in, they can see their today meter bars but no one else's (and you it's nothing but white for everyone who isn't logged in).

This is what mine is doing too, were you able to fix this on yours?

WetWired
01-01-2006, 07:14 AM
To the guys with garbage instead of data in the tooltips
This is an issue with the phrases and vb 3.5.1. Before this version, %% is required in order to show a percent mark, and after, a single % is required. If you are having this issue, you must either update to the latest vB version, or go through the activity plugin templates (they all start with wwu002) and change the single %s to %%s.

cdoyle
01-02-2006, 06:38 PM
To the guys with garbage instead of data in the tooltips
This is an issue with the phrases and vb 3.5.2. Before this version, %% is required in order to show a percent mark, and after, a single % is required. If you are having this issue, you must either update to the latest vB version, or go through the activity plugin templates (they all start with wwu002) and change the single %s to %%s.

I'm unable to upgrade my VB at this time, so I'm going to try and update these templates, but I'm not really sure how to do this?

Are you saying that I need to go in and update the templates for this hack? So I go to the plugin manager and edit all the activity entries? I'm looking at these, and don't see any %'s to change?

Could you give me an example of one, and where to change it?

Nikke
01-02-2006, 10:11 PM
I did do a top ten activity script for vB3 to go with vBStat; when I get some time, I will look into converting this and making it work stand allone. If there is a coder interesting in doing this (now as opposed to waiting for me to find the time), they should PM me and I'll give them the existing script to modify.

PLEASE do this!

WetWired
01-03-2006, 05:07 AM
I'm unable to upgrade my VB at this time, so I'm going to try and update these templates, but I'm not really sure how to do this?

Are you saying that I need to go in and update the templates for this hack? So I go to the plugin manager and edit all the activity entries? I'm looking at these, and don't see any %'s to change?

Could you give me an example of one, and where to change it?

No, the changes need to be made in the Phrase Manager. Follow the instructions in https://vborg.vbsupport.ru/showpost.php?p=815205 , except that you're replacing % with %% instead of the other way arround.

Logikos
01-03-2006, 06:10 PM
WetWired sent me the 'top ten activity script' he uses for vB3.0. I'm working on porting it for 3.5 now. :)

TheProphet
01-03-2006, 06:30 PM
That would be nice m8....

docvader
01-05-2006, 05:10 PM
How would I input the graphical activity data (that you see in the postbit), into the memberinfo template, so that all the bars show up? I tried adding the same postbit addition code into my memberinfo template, but, only the first row of images showed up, the rest failed. See here:
http://russbo.org/vb/member.php?find=lastposter&t=1595&styleid=53

I used this code:
<td class="WWU002postbit">
<table cellspacing="2" cellpadding="0">
<tr>
<td><img src="$stylevar[imgdir_misc]/activity/textactivity.gif" /></td>
<td><img src="$stylevar[imgdir_misc]/activity/textlongevity.gif" /></td>
</tr>
<tr>
<td title="$WWU002_activityinfo"><img src="$stylevar[imgdir_misc]/activity/activity$WWU002_activitylevel.gif" class="i" /></td>
<td title="$WWU002_longevityinfo"><img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /></td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" /></td>
<td><img src="$stylevar[imgdir_misc]/activity/textposts.gif" /></td>
</tr>
<tr>
<td title="$WWU002_todayinfo"><img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gi f" class="i" /></td>
<td dir="ltr"><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[1].gif" class="il" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[2].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[3].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[4].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[5].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[6].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[7].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[8].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[9].gif" class="ir" /></td>
</tr>
</table>
</td>

Thanks!
rich

docvader
01-06-2006, 04:17 PM
Well, when you put this into template "memberinfo" to show it in the user's profiles, the images that are called are not calculated correctly.

For example, TODAy would call for: http://russbo.org/vb/styles/iSkin_Black/misc/activity/today.gif

When in fact it should call for:
http://russbo.org/vb/styles/iSkin_Black/misc/activity/today0_0.gif

So, something is not getting calculated, somewhere, to change the images.

Does this have to be solely in the postbit for it to calculate correctly, or, could it be made to be put in other places, such as the welcome box or member profile? Just curious how one might do this.

Thanks!
rich

WetWired
01-09-2006, 10:44 PM
template customization
This is information for creating your own template customizations different from the one provided above.

the following variables will become available in the 'postbit', 'postbit_legacy','postbit_deleted','postbit_ignore ',and 'postbit_ignore_global' templates:
$WWU002_activitypercent Activity value as a percent
$WWU002_activity Raw activity
$WWU002_maxpoints Max value for $WWU002_activity
$WWU002_activitylevel 0-20 rating for use in an image name
$WWU002_activityinfo Information to put in a title attribute for the activity line
$WWU002_todaylevel Today's activity 0=no visit today or invisible 1=visted today
values over one indicate a visit and $todaylevel-1 posts up to maximum
$WWU002_maxtodaylevel Maximum possible value for $WWU002_todaylevel
$WWU002_todayinfo Information to put in a title attribute for the today line

$WWU002_longevitylevel 0-20 rating on the amount of time user has been a member compared to the time the
first undeleted user in the database registered (usually userid 1)
$WWU002_longevitypercent Same information as a percentage
$WWU002_longevityinfo As above, those cool details that on IE and NS should appear in a tooltip
$WWU002_postsd[] Used for images version of the templates. Nine digits of the postcount for
imagization. $postsd[1] is the most significant digit. Value for each will be
either 's' for a space or '0'-'9'. Must be enabled in admincp.
$WWU002_ranktext Output of advance rank system for this user
$WWU002_memberlevel Number 1-3. See rankinfo.php for more info

the following variables will become available in the 'memberinfo' template:
$WWU002_ranktext Output of advance rank system for this user
$WWU002_memberlevel Number 1-3. See rankinfo.php for more info
$WWU002_activitypercent Activity value as a percent
$WWU002_activity Raw activity (0-7700)
$WWU002_maxpoints Max value for $WWU002_activity
$WWU002_activitylevel 0-20 rating for use in an image nameAs seen here, only a very small subset of the information available for the postbit is calculated for the memberinfo page.

docvader
01-10-2006, 01:01 AM
OH.

I was actually supposed to read that?

LOL, thanks WW. Saw all THAT code in the hack, and just kind of "didn't look at it". I'm only a doctor man.

Great hack by the way.

rich

Logikos
01-10-2006, 03:41 AM
Just released for this hack TopX Activity Modification (https://vborg.vbsupport.ru/showthread.php?t=104932)

GamerJunk.net
01-12-2006, 10:46 PM
I upgraded this last night and I'm not sure if this is causing my uploaded avatars to not show....

Lance Carbuncle
01-13-2006, 12:29 AM
I have installed this on my site and can't believe the effect it has made... my posts have increased nearly 50% since I added this and a few other hacks...

I am not to skilled at this stuff, but would really like to figure out how to add the activity info to the "Welcome Block" on the vbadvanced CMPS .. would this be something that could easily be done... Can someone help me with this? I am sure there are quite a few with this CMPS that would like this... The more users see the stats in their face, the more they will increase their activity!



Here is my CMPS... the userblock is front and center.....

http://www.forums.repashy.com/cmps_index.php

I would also like to add location, total posts, and age to this block... but that is obviously unrelated to this.....

Any help would be appreciated!

Thanks in advance, Allen

Logikos
01-13-2006, 01:40 AM
Add a new hook to global_start with this code:


$user['activity'] = intval($vbulletin->userinfo['wwu002activity'] / $GLOBALS['WWU002maxPoints'] * 100) . '%';


Now that should make it so you can use $user[activity] in any template.

WetWired
01-13-2006, 02:21 PM
Add a new hook to global_start with this code:


$user['activity'] = intval($vbulletin->userinfo['wwu002activity'] / $GLOBALS['WWU002maxPoints'] * 100) . '%';


Now that should make it so you can use $user[activity] in any template.

Almost. Your code doesn't take into account the first visit of the day, where the data in userinfo may not be up to date yet. This code should handle that situation:
if(isset($WWU002activityPoints)){
$user['activity']=intval($WWU002activityPoints/$WWU002maxPoints*100).'%';
}else if($vbulletin->userinfo['userid']){
$user['activity']=intval($vbulletin->userinfo['wwu002activity']/$WWU002maxPoints*100).'%';
}else{//(isset($WWU002activityPoints))
$user['activity']='N/A';
}//endif(isset($WWU002activityPoints))

Lance Carbuncle
01-27-2006, 12:27 AM
Well, I got the activity to show up on my Welcome block thanks to everyone's help here....

Would it be possible to integrate this with usergroup promotions? I am trying to find a way to only allow active users the ability to post in the free classifieds (photopost classifieds) which is integrated with vbulletin usergroups...

For example.... only people who maintain a 20% activity level would be included in a custom usergroup, and if their activity falls below this, they drop out of the usergroup until their activity increases to the set level again....... I now require XX amounts of posts to be able to use the classifieds, but find people just post junk until they reach this level and then stop contributing... This feature would take care of that problem....

I know this might be asking a lot....but i am willing to hire someone to do this if it is possible within reason.... Anyone? I think this would be an awesome feature that coule be used in many ways. I also would not have to keep it to myself if someone wants to code it and share it on my dime.

Thanks, Lance

WetWired
01-27-2006, 03:51 AM
At one point, I had started work on such a system, but I accidentally wiped it out. The biggest issue is with demotions. A user's activity only gets updated when they visit or when their posts or profile is viewed. This means that it's possible to come back after a month of inactivity and have the old usergroup untill the next time promotions are run. It is, of course, possible to just do activity for everyone at once, however the process would be very server intensive, which is why I do it the way it is now.

Glad to hear that you got it sorted out on your own; sorry I hadn't gotten the chance to look into it for you yet.

luroca
01-27-2006, 11:47 AM
A user's activity only gets updated when they visit or when their posts or profile is viewed. This means that it's possible to come back after a month of inactivity and have the old usergroup untill the next time promotions are run. It is, of course, possible to just do activity for everyone at once, however the process would be very server intensivePerhaps with a diary cron this issue can be solved?
If promotion/demotion can be added to this hack I?ll install it.

In any case, excellent hack :)

Lance Carbuncle
01-27-2006, 02:46 PM
A user's activity only gets updated when they visit or when their posts or profile is viewed. This means that it's possible to come back after a month of inactivity and have the old usergroup untill the next time promotions are run. It is, of course, possible to just do activity for everyone at once, however the process would be very server intensive, which is why I do it the way it is now.



Thanks for the feedback WetWired... I am having a little trouble understanding what you are saying here, so maybe you can comment one more time........When are the promotions run now? Is this part of your script, or a vbulletin action.... Would it be possible to run a promotion check for a single user upon there visit, or is the problem that vbulletin would have to run all promotions to check one? (I am speaking al a layperson here and have no idea of coding or how things work, just a mechanic's view of the computer world LOL) Could vbulletin be set to run promotions once every evening for all users at a user set time (low visit period) if it uses a lot of resources?


OOps.... reading it again, I guess it would be the activity you would want to run a scheduled update for? and then promotions?

Thanks Again, Lance

nexus851
01-31-2006, 07:30 AM
in my post_legacy graphic... under longevity, it says this:

"User has been a member for 76114f the board's existence....etc.."

Why does it say "76114f"???? shouldnt that be a variable of some kind, i followed the instructions, but it still says it... sometimes it says another large number, but basically it seems like i left a variable out or something, any ideas????

NEVERMIND, fixed! thanks!

nexus851
01-31-2006, 08:12 AM
Almost. Your code doesn't take into account the first visit of the day, where the data in userinfo may not be up to date yet. This code should handle that situation:
if(isset($WWU002activityPoints)){
$user['activity']=intval($WWU002activityPoints/$WWU002maxPoints*100).'%';
}else if($vbulletin->userinfo['userid']){
$user['activity']=intval($vbulletin->userinfo['wwu002activity']/$WWU002maxPoints*100).'%';
}else{//(isset($WWU002activityPoints))
$user['activity']='N/A';
}//endif(isset($WWU002activityPoints))

i tried using the code above to add to my welcome block, but it doesnt seem to work. It gives me a "0%"....

I set the code as a plugin in global_start hook and used the variable "$user[activity]" in my template but just only gives me 0%


anyone know why it doesnt work?

username12
01-31-2006, 10:03 PM
Answered my own question.

mrcrx
02-01-2006, 12:00 PM
I installed the file as it said. It shows up as active and it shows up in the admin control panel also. but I dont see anything on the forum. Any help. Im very new at this.

nexus851
02-03-2006, 12:54 AM
Almost. Your code doesn't take into account the first visit of the day, where the data in userinfo may not be up to date yet. This code should handle that situation:
if(isset($WWU002activityPoints)){
$user['activity']=intval($WWU002activityPoints/$WWU002maxPoints*100).'%';
}else if($vbulletin->userinfo['userid']){
$user['activity']=intval($vbulletin->userinfo['wwu002activity']/$WWU002maxPoints*100).'%';
}else{//(isset($WWU002activityPoints))
$user['activity']='N/A';
}//endif(isset($WWU002activityPoints))


help, this doesnt work when i use $user[activity] in my template.. it just spits out "0"...... i did everything requested above.. anyone help please!

dirtycrow
02-06-2006, 01:20 AM
how do you unistall this please.

WetWired
02-07-2006, 05:07 AM
how do you unistall this please.

From the product manager, choose uninstall from the drop down next to the mod name. Note that if you uninstall, all activity data will be wiped and will be unavailable if you reinstall later.

As for the welcome panel issue, it turns out that the order in which hooks for the same place are loaded is random, so I'm integrating the functionality into the next version. Also in the next version, all of the postbit info will be available in the member profile page, and the mod will detect the vB version and self correct the fun percent issues.

mkdevo
02-09-2006, 12:59 PM
great hack. just installed.. a couple questions:

- what defines 'Today'? i would think that the 'today' meter would reset at midnight, but yesterday i definitely saw users' meters resetting before midnight.

- the hover-over text looks nice in IE (with line breaks), but stays all on one line (and cuts off with '...') in Firefox. is there any way to fix this?

thanks again.

WetWired
02-09-2006, 01:43 PM
Today is defined as the period since 0:00 GMT.

I don't know how to cause FF to make a tooltip have multiple lines. The vB image thumbnail tooltips have the same problem. You can change the tooltip text in the phrases (the variable names start with WWU002_reg), if you want.

mkdevo
02-09-2006, 01:53 PM
Today is defined as the period since 0:00 GMT.

thanks. is there a way to change that to 0:00 for the logged in user's time zone?

WetWired
02-10-2006, 02:20 PM
No. That will not work -- this would leave the system open to exploitative behavior as well as add significant code complication, however adding a forum global offset is something I'm considering for the next version.

Speaking of the next version, it has balooned into a major update and I will soon need beta testers. Interested parties should PM me.
Changes will include: Code restructured. Ironicly, the structure is now closer to that of v2.0.
Full activity info available in user profile
Full activity info available for logged in user
Simple, unflexable promotions based off of memberlevelI'm also researching the addition of other features.

forte
02-10-2006, 03:44 PM
How about showing the number of thanks with the Post Thank you Hack (https://vborg.vbsupport.ru/showthread.php?threadid=92410)

cmiller1014
02-18-2006, 12:10 AM
Hi there... i am using the light graphics, on the default style but they are not set in the white box like your screenshot so they arent as defined. How do I make it look like that?

Thanks! Like this a lot.

cmiller1014
02-18-2006, 12:38 AM
P.S. Please provide paypal address. Great to see an awesome hack out there, and an author who is so supportive. I want to donate.

Hornstar
02-18-2006, 06:53 AM
cool, am going to install this. Thanks

cmiller1014
02-19-2006, 01:53 AM
Hi there... i am using the light graphics, on the default style but they are not set in the white box like your screenshot so they arent as defined. How do I make it look like that?

Thanks! Like this a lot.


Bump

DS MrSinister
02-19-2006, 02:19 AM
try editing default.css file in the activity folder of the light images.... this is my guess

cmiller1014
02-19-2006, 03:44 AM
try editing default.css file in the activity folder of the light images.... this is my guess

I really wouldnt know where to begin. I followed the instructions for adding the CSS to main css in the CP, but it just doesnt look like everyone elses.

cmiller1014
02-19-2006, 07:53 AM
I really wouldnt know where to begin. I followed the instructions for adding the CSS to main css in the CP, but it just doesnt look like everyone elses.

Certainly SOMEONE has to know how to make the white inset border show up around the images, right??????

Logikos
02-19-2006, 12:21 PM
Certainly SOMEONE has to know how to make the white inset border show up around the images, right??????

Chill with the constant posting, read the authors first post.

Please click the install link if you install this hack
I will support this hack in this thread on about a daily basis untill the release version.


It's simple, I don't understand why your having such a problem. All you need to do is copy and paste the following code:

.WWU002postbit td {padding-left:2px;padding-right:2px;}
.WWU002postbit img.i,.WWU002postbit img.im,.WWU002postbit img.il,.WWU002postbit img.ir {background-color:#FFFFFF;border-left:1px solid #808080;border-top:1px solid #808080;border-right:1px solid #C0C0C0;border-bottom:1px solid #C0C0C0;}
.WWU002postbit img.im {border-left:none;border-right:none;}
.WWU002postbit img.il {border-right:none;}
.WWU002postbit img.ir {border-left:none;}


Into the BIG box that say Additional CSS Definitions.

You can get there by loggin into your admincp with your username and password, you will then be redirected to the admincp. On the left hand side you should see little boxes with names and links. Look for Styles & Templates and click the link that says Style Manager. The the right frame will reload into the style manager. Hit the go button on the style your using this on, then scroll down. Good luck...

WetWired
02-19-2006, 11:34 PM
Certainly SOMEONE has to know how to make the white inset border show up around the images, right??????

The CSS should do it. Noone can help you any further without page source.

cmiller1014
02-20-2006, 12:14 AM
The CSS should do it. Noone can help you any further without page source.

It doesnt work - it is pasted into the Main CSS definitions.

Is it possible that it does not work on firefox? That is the only browser i have at my disposal for testing.

cmiller1014
02-20-2006, 12:16 AM
Chill with the constant posting, read the authors first post.


It's simple, I don't understand why your having such a problem. All you need to do is copy and paste the following code:

.WWU002postbit td {padding-left:2px;padding-right:2px;}
.WWU002postbit img.i,.WWU002postbit img.im,.WWU002postbit img.il,.WWU002postbit img.ir {background-color:#FFFFFF;border-left:1px solid #808080;border-top:1px solid #808080;border-right:1px solid #C0C0C0;border-bottom:1px solid #C0C0C0;}
.WWU002postbit img.im {border-left:none;border-right:none;}
.WWU002postbit img.il {border-right:none;}
.WWU002postbit img.ir {border-left:none;}


Into the BIG box that say Additional CSS Definitions.

You can get there by loggin into your admincp with your username and password, you will then be redirected to the admincp. On the left hand side you should see little boxes with names and links. Look for Styles & Templates and click the link that says Style Manager. The the right frame will reload into the style manager. Hit the go button on the style your using this on, then scroll down. Good luck...

Thanks but I do not post without first reading the authors posts, and install instructions. Followed to a "T" and it does not show up like the one shown here. If I go into the light images directory and view the html file in there I seem them though so I don't think its a browser issue.

Logikos
02-20-2006, 03:34 AM
make sure your activity folder is like so:

www.none.com/forums/images/misc/activity/light/

cmiller1014
02-20-2006, 03:40 AM
make sure your activity folder is like so:

www.none.com/forums/images/misc/activity/light/

That's not right, then the images wouldn't even show up. All the template changes call images in images/misc/activity without the light directory. The images are showing fine, I just need the white border. It's a CSS issue - appears fine on the index.htm test file but not on my site. The CSS tags are different in the index.htm file than the ones we were told to put in main css too. I just don't know CSS well enough to make this work. :(

WetWired
02-20-2006, 12:58 PM
Again, we need page source to assist any further. Please view a page with the problem, view source, save it in a text file, and post it here.

kennethj
02-20-2006, 04:38 PM
thanks .

flawless install with no problems .

Hornstar
02-21-2006, 12:51 AM
cool, it worked perfect first go, thats unusual, considering the template edit was different then in your readme, because I had the ucash and thankyou hack installed.

Hornstar
02-26-2006, 05:53 AM
Instructions for Ebux/Estore templates

Then Find:


$vbphrase[posts]: $post[posts]



Replace With:


$vbphrase[posts]: $post[posts]<br />
<a href="estore.php?do=donate&amp;userid=$post[userid]">$vbphrase[ebux_points]</a>: $post[points]<br />
$vbphrase[ebux_bank]: $post[bank]<br />
$vbphrase[ebux_total_points]: $post[totalpoints]<br />





However this hack already removed $vbphrase[posts]: $post[posts]



Can you make this hack compatible with Estore and have the points show like the posts do.


Thanks

Hornstar
02-28-2006, 11:03 PM
I found a bug you left out a space.

User has been a member for {1}% of the board's existance.
Join date: {2}
Board start: {3}

should be

User has been a member for {1} % of the board's existance.
Join date: {2}
Board start: {3}

Other wise you get all weird numbers show up when you look at the longetivity.

when you hover your mous over the longetivity you can see {1} and {2} but 3 is just ... because the screen is not long enought to show all 3 on 1 line. can you put {3} on a new line i tried [br] but that did nothing, i dont know what other command to use.

mkdevo
03-01-2006, 11:36 AM
when you hover your mous over the longetivity you can see {1} and {2} but 3 is just ... because the screen is not long enought to show all 3 on 1 line. can you put {3} on a new line i tried [br] but that did nothing, i dont know what other command to use.

are you using firefox? it's been pointed out that the line breaks in IE, but stays as one line and cuts off in firefox. no one knows how to fix it..

Hornstar
03-02-2006, 12:08 AM
Yeah im using firefox, thanks for letting me know.

Logikos
03-02-2006, 02:21 AM
Yay, it's been updated! :)

Mudvayne
03-02-2006, 06:06 AM
Sorry.. May b this is a dumb question.. But whr is the upgrade instructions? Wht I hav to do for upgrade?

Logikos
03-02-2006, 06:14 AM
In First post. :)

Note: To upgrade, with the old version still installed, go to the Add/Import Product link on the Manage Products page, select the XML file for the new version, choose Yes for overwrite, then click Import.

Mudvayne
03-02-2006, 10:00 AM
In First post. :)
Ah!! I'm such a dumb :confused:.. Miss that point :(.. Thnx a lot Livewire :)..

djjeffa
03-03-2006, 01:31 AM
will upgrading screw up the editing i already did to make it look like this? https://vborg.vbsupport.ru/attachment.php?attachmentid=39775

up is ther any derections on upgrading?

WetWired
03-03-2006, 05:25 PM
There is no need to redo existing template modifications to upgrade. The upgrade instructions are in the first post, or two posts above yours.

The only change in the template modification instructions is a change in the way that the post count digits are accessed, but the old way still works. While there is more information made available in the profile or for the logged in user, there are no template edits provided to utilize these (though information on writing your own exists); these features were requested by people with templating experiance or using non-standard templates.

Replicators
03-03-2006, 06:09 PM
I just upgraded this mod from the last version, and now the post count don't show up! The box and everything does, just not the post count number.

Replicators
03-03-2006, 06:16 PM
Uh oh, you mean to tell me i should not of did the template edits for upgrading? You should put the upgrade notes in big red bold letters as i missed it cause it's so small!

djjeffa
03-03-2006, 09:38 PM
There is no need to redo existing template modifications to upgrade. The upgrade instructions are in the first post, or two posts above yours.

The only change in the template modification instructions is a change in the way that the post count digits are accessed, but the old way still works. While there is more information made available in the profile or for the logged in user, there are no template edits provided to utilize these (though information on writing your own exists); these features were requested by people with templating experiance or using non-standard templates.

thanks worked great!!!

PS what should we ul for activity.gif so it looks ok on vb gallery ect?

WetWired
03-04-2006, 04:20 AM
I just upgraded this mod from the last version, and now the post count don't show up! The box and everything does, just not the post count number.

I think this may be a problem with the plugin cache building in some version of vB. Try going to Plugin Manager, clicking Edit for any of the active plugins, then hit Save; tell me if this works, and if so what version of vB you're using. If not, try adding a space to the end of an active plugin then saving it (still tell me if it works)

Replicators
03-04-2006, 08:53 AM
I think this may be a problem with the plugin cache building in some version of vB. Try going to Plugin Manager, clicking Edit for any of the active plugins, then hit Save; tell me if this works, and if so what version of vB you're using. If not, try adding a space to the end of an active plugin then saving it (still tell me if it works)

Nope, not working and i did both of that, i am using vb version 3.5.4. If i could have the old postbit code, i could just revert.

WetWired
03-08-2006, 12:51 PM
Nope, not working and i did both of that, i am using vb version 3.5.4. If i could have the old postbit code, i could just revert.

Just search for postsd followed by a number. Surround the number with []. Repeat for each occurance (9)

Replicators
03-13-2006, 06:24 AM
I found the problem and i feeel like a idiot.

I also have the plugin accelerator installed, and all i needed to do was rebuild my plugins and bingo, it worked!

Dermo-MIO
04-27-2006, 12:20 PM
how do i do CSS changes ? also how do i remove "junior memebr" and the others as they clash with user rank images and member group titles i have installed

saba
04-27-2006, 06:38 PM
it dont seem to be showing up for me :confused:

Logikos
04-27-2006, 09:35 PM
You have to add the CSS in the admincp. Read the readme.txt file, there is a section that shows you the code to place in the CSS.

saba
04-28-2006, 09:28 AM
it seem to show like this on every buttion and smile:confused:
i added
.WWU002postbit td {padding-left:2px;padding-right:2px;}
.WWU002postbit img.i,.WWU002postbit img.im,.WWU002postbit img.il,.WWU002postbit img.ir {background-color:#000000;border-left:1px solid #404040;border-top:1px solid #404040;border-right:1px solid #808080;border-bottom:1px solid #808080;}
.WWU002postbit img.im {border-left:none;border-right:none;}
.WWU002postbit img.il {border-right:none;}
.WWU002postbit img.ir {border-left:none;}
body {background-color:#404040;}
img {border:inset 1px #808080;background-color:#000000;}
img.postsl {border-right:none;}
img.postsr {border-left:none;}
img.posts {border-left:none;border-right:none;}

aceofspades
04-30-2006, 11:28 PM
I have it and its working fine, but i have it set so my info is on the left (like ipb) not above (like standard vbulletin) and each section (like location) is enclosed in a box with a grey boader and a white background, however the activity mod doesnt have that box around it, how can i put it on?

Check out the image to see what i mean (forget the thing on the right i fixed that, forgot to do the css edit)

James

Dermo-MIO
05-01-2006, 01:33 PM
^u have to add the css and then they appear in boxes

WetWired
05-06-2006, 01:57 AM
To remove "Junior Member", don't add the part with WWU002_ranktext, or remove it if you already have.

Saba, you should have only added.WWU002postbit td {padding-left:2px;padding-right:2px;}
.WWU002postbit img.i,.WWU002postbit img.im,.WWU002postbit img.il,.WWU002postbit img.ir {background-color:#000000;border-left:1px solid #404040;border-top:1px solid #404040;border-right:1px solid #808080;border-bottom:1px solid #808080;}
.WWU002postbit img.im {border-left:none;border-right:none;}
.WWU002postbit img.il {border-right:none;}
.WWU002postbit img.ir {border-left:none;}


aceofspades, first you need to do the CSS step to add the boxes arround the components. After you do that, you should find out what the other posbit components are surrounded by and surround the activity stuff with the same.

loonytune15
05-20-2006, 02:58 PM
Looks great, thanks for the great hack. Pity the add-on never got finished..

Ryan McBain
05-29-2006, 10:08 AM
I got this email twice yesterday. Did anyone get the samething?

The following is an email sent to you by an administrator of "A-Mod Plus". If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address:

austin@phpbb-amod.com

Include this full email (particularly the headers).

Message sent to you follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It has come to my attention that Blend has a security issue. If you have Blend Portal System OR Activity Mod installed, please disable your board or uninstall these mods for the time being and do the file edit that I have listed below. Here are a list of IPs that you need to ban from your site as well.

85.107.151.110, 84.112.100.97, 84.112.100.97, 200.112.130.69, 87.97.213.154, 211.66.110.157, 201.29.218.185, 195.93.60.97, 202.133.82.69, 70.136.76.25, 212.104.107.114, 157.142.200.121, 200.243.242.123, 166.111.249.39, 85.104.25.166, 85.14.214.4

These are known IPs that have used a script to infect sites with trojans via a file in blend.
Open:
blend_data/blend_common.php

FIND

define('BLEND_DATA_PATH', 'blend_data/');

BEFORE, ADD

if (!defined('IN_PHPBB'))
die('Hack Attempt');

CLOSE & SAVE

I will release a fix for these issues ASAP.

I apologize for this huge inconvenience.

WetWired
05-30-2006, 06:00 AM
Um, that e-mail talks about phpBB. Are you sure it's not talking about a different Activity Mod?