vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Anniversary Awards (https://vborg.vbsupport.ru/showthread.php?t=89942)

vol_freak 12-05-2006 03:28 PM

Quote:

Originally Posted by acidburn0520 (Post 1049696)
Just make a new plugin for 'postbit_display_start' with the following:
Code:

$jointime = (TIMENOW - $this->post['joindate']) / 86400;

This seems to work but everyone seems to be getting 5 stars in the messaging system. When I am reading a PM from someone, everyone has 5 stars under their name regardless of join date. Any suggestions? Thank in advance.

Kirk Y 12-05-2006 09:17 PM

It's because the Plugin Code I supplied above is being used under 'postbit_display_start', which means the code is only being executed in the postbits.

You could try creating another hook with the same code using a location such as 'global_start' or 'private_showpm_start'.

MysticMoon 01-26-2007 04:05 PM

Quote:

Originally Posted by acidburn0520 (Post 1132769)
It's because the Plugin Code I supplied above is being used under 'postbit_display_start', which means the code is only being executed in the postbits.

You could try creating another hook with the same code using a location such as 'global_start' or 'private_showpm_start'.

1st thanks for the post bit info, that worked like a charm :D

But neither of the above worked for fixing the PM's showing all stars available :(

Kirk Y 01-26-2007 05:14 PM

If you want something simple, you could just wrap the IF Condition Blocks with one larger condition like:

Code:

<if condition="THIS_SCRIPT == 'showthread'">
Code here.
</if>

If you still want the awards to show in Private Messages; it's possible that the problem is in the "jointime" variable -- $this->post['joindate'] -- $this->post should be corrected for use with Private Messages.

MysticMoon 01-29-2007 01:26 AM

Quote:

Originally Posted by acidburn0520 (Post 1167881)
If you want something simple, you could just wrap the IF Condition Blocks with one larger condition like:

Code:

<if condition="THIS_SCRIPT == 'showthread'">
Code here.
</if>


Ok above worked to atleast remove the stars from PM's, would rather none show then all lol ~ so thank you :D

Quote:

Originally Posted by acidburn0520 (Post 1167881)
If you still want the awards to show in Private Messages; it's possible that the problem is in the "jointime" variable -- $this->post['joindate'] -- $this->post should be corrected for use with Private Messages.

Not sure if above will work or not, as I may just not know what to change it to
I tried $this->pm & $this->private as a plugin under "private_showpm_start" & no change - still showed all stars available in PM's.

Kirk Y 01-29-2007 01:50 AM

Yeah, that's why I figured I'd mention it to you - if you wanted to give it a try; as I don't know the right var. to use.

MysticMoon 01-29-2007 07:46 PM

Maybe someone else will post the answer then :)

Again, thank you so much with your help on this :D

SVTCobraLTD 11-04-2008 04:08 PM

Quote:

Originally Posted by Kirk Y (Post 1049696)
Just make a new plugin for 'postbit_display_start' with the following:
Code:

$jointime = (TIMENOW - $this->post['joindate']) / 86400;

With this plugin add, it works on 3.6.11. Thanks


All times are GMT. The time now is 04:37 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01386 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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