View Single Post
  #648  
Old 07-31-2008, 02:03 PM
J98680Bxxxxx J98680Bxxxxx is offline
 
Join Date: Jan 2008
Location: Bridge - Enterprise
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Topic of the Week-Month Nomination v1.51 Updated Prod and Cron
  1. Automatic PM subject phrase moved from "<phrasetype name="Email Subject Text" fieldname="emailsubject">" to "<phrasetype name="GLOBAL" fieldname="global">"
  2. For monthly nominations, Cron file set to create a new "Nomination Thread" every 1st day of the month (00:10AM) and not on the last day of the month.

---

Quote:
Originally Posted by tekguru View Post
Agreed on those last two points, the month ended a day early and the new thread has again been created with 'August' in the title.

This is with running 1.51 with the latest Cron / Mod.
Cron file fixed, attachment uploaded accordingly. Thread was been closed on the last day of the month, at 00:10 AM. Thus, the month name remained unchanged at that time.

Have updated the cron file so that it will close the thread on the first day of the month at 00:10AM

You can update the title of the newly created thread title manually (Change July to August), as there should be no problems with the nomination poll if you were using the cron file of v1.51. If you were using an older cron file and noticed that your previous poll results have been affected, contact me via TeamViewer at:
ID: 51 429 434
PW: vborg

or drop me a PM if my TeamViewer is off line and we will fix that quickly.


The vbulletin function

Code:
			eval(fetch_email_phrases($nt_awardwinner_pm));
is failing to work. Similar reason as reported here.

Have added the following to the cron file to read the PM subject directly from vbulletin database:

Code:
			$get_phrase = $vbulletin->db->query_read("SELECT * FROM `". TABLE_PREFIX ."phrase` WHERE `varname` = 'nominate_topic_awardwinner_pm_subject'");
			$fetchphrase = $vbulletin->db->fetch_array($get_phrase);
			$nt_awardwinner_pm_subject = $fetchphrase['text'];

This should fix the missing phrase issue on the automatic PM subject:
Quote:
Could not find phrase 'This is an automatic message to inform you that your post on [post={1}]{2}[/post] is amongst the winners of this cycle time topic nomination contest.'.

Quote:
Originally Posted by mokonzi View Post
I've had that today as well, I've been adjusting the phrases and so I've tried adding in an English entry for this. Hoping it will be enough to fix the problem.

Also noticed that when a topic wins, and rep is an option to be added, it sets the setting wrong.

To explain.

On my board the rep points is like the above post, but it then sets the user as having only '6' points in the name of the rep level, while the actual points are added to but not displayed in the name. Yet, the rep symbols remain the same.

User 1 has 450 points (on my board that is Ace 2nd Grade) which means a user normally displays 5 of the symbols.

User 1 wins the nomination contest and gets 6 points.

Now in the postbit 5 of the are show, the system reads 456 points through the Admin CP, but when you hover over the it acts as if it's only got 6 points, and so displays Harmless the 0-10 point level in my rep system.

Images to show:



This gets 'unstuck' when rep is added, and goes back to behaving normally.

On another point, the month competition ended today, already, even though it's not the end of July.

It's then setup a new thread for 'August' even though we've just finished the 'August' contest.

Hope this all makes sense

Edit: PS Not upgraded to 1.51 as the cron job didn't seem to be relevant to me.
Will take a closer look at this feedback when I return. Any suggestions or hint is welcome. For the time been,you can switch off the "Add reputation to Award Winner" in the ACP. :up:
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01299 seconds
  • Memory Usage 1,794KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete