vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Activity Modification (https://vborg.vbsupport.ru/showthread.php?t=93831)

Milad 01-30-2007 08:30 PM

No your plugins control the generating.

1) In the plugin "Top Activity" at forumhome_start hook

PHP Code:

$pagenav=construct_page_nav($pagenumber,$perpage,count($WWU002statdata),$vbulletin->options['forumhome'].'.php?'.$vbulletin->session->vars['sessionurl'].'do=activitystat&pp='.$perpage); 

must be:

PHP Code:

$pagenav=construct_page_nav($pagenumber,$perpage,count($WWU002statdata),$vbulletin->options['forumhome'].'.php?'.$vbulletin->session->vars['sessionurl'].'do=activitystat&pp='.$perpage); 



2) you use selected instead of selected="selected" in the template "WWU002statpage"

HTML Code:

<option <if condition="$perpage==10">selected</if>>10</option>
<option <if condition="$perpage==20">selected</if>>20</option>
<option <if condition="$perpage==50">selected</if>>50</option>
<option <if condition="$perpage==100">selected</if>>100</option>

must be:


HTML Code:

<option<if condition="$perpage==10"> selected="selected"</if>>10</option>
<option<if condition="$perpage==20"> selected="selected"</if>>20</option>
<option<if condition="$perpage==50"> selected="selected"</if>>50</option>
<option<if condition="$perpage==100"> selected="selected"</if>>100</option>


After doing these modifications the errors had disappeared
take a look:

http://validator.w3.org/check?uri=ht...doctype=Inline

Also the edits to postbit(_legacy) need some corrections in the <img> tags

Regards

Milad 01-30-2007 08:36 PM

Also I discovered a bug in the top activity page.

take a look here http://www.syrianmeds.net/forum/inde...p=100&langid=9

Now look for users who have the same activity level, for example the users: NINAR & almoheeb, both share the activity 3.8% and the rank 91, but the next rank is 94 not 92.

got it?

WetWired 01-30-2007 09:27 PM

That's how the ranks are supposed to go. Just because 3 people are 1st doesn't make the next person 2nd. If two people tie for gold in the Olympics, the next person gets bronze, not silver. If you don't like the way I do ties, you can turn them off in the CP.

WetWired 01-30-2007 09:44 PM

Uploaded 2.80 rc3. You only need to redo the template edits if you want alt attributes on all your images...

Milad 01-31-2007 10:06 AM

Quote:

Originally Posted by WetWired (Post 1170859)
That's how the ranks are supposed to go. Just because 3 people are 1st doesn't make the next person 2nd. If two people tie for gold in the Olympics, the next person gets bronze, not silver. If you don't like the way I do ties, you can turn them off in the CP.

No, I like it, but I thought it might work in different way.

Thank you

princeedward 01-31-2007 06:22 PM

great one..thanks for this bro...:) install clicked...

DasCool 02-03-2007 02:41 AM

Does anyone know why i have double like in the picture

WetWired 02-03-2007 03:38 AM

One is from the mod and can change with activity, the other is the default one based on usergroup or customizable. This works out really well when everyone has custom titles, because this way, you can still tell who the staff are.

It shows that in the screenshot:
Attachment 33101

If you don't want it, just search for $WWU002_ranktext in your postbit_legacy template, and remove the whole line

ijob 02-03-2007 08:29 AM

Ok I've added it successfully, now when a member has a large Location description it shifts the longevity, posts etc graphics to one side which makes that side look a bit odd.

How do I move member info 'Location:********' from the right side to under the avatar?

I've attached an image

Thanks

WetWired 02-03-2007 03:55 PM

You can find the location field by searching for
Code:

                                        <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
You can then move it where you like.
Also, I have an idea to fix the original problem of the other stuff affecting the placement of the activity stuff, but I don't have time ATM to work on it. Check back Monday afternoon for that.


All times are GMT. The time now is 08:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01496 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete