Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Topic (incl. Blog) of the Week/Fortnight/Month Nomination v1.636 Details »
Topic (incl. Blog) of the Week/Fortnight/Month Nomination v1.636
Mod Version: 1.636, by J98680Bxxxxx (Member) J98680Bxxxxx is offline
Developer Last Online: Oct 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (45 votes - 4.89 average) Installs: 328
Released: 02 Jul 2008 Last Update: 07 Oct 2008 Downloads: 5006
Not Supported DB Changes Uses Plugins Auto-Template Additional Files Re-usable Code Translations  

On my board (USS Enterprise, NCC-1701-D), we get many comments daily or weekly on many different topics and there are so many topics in the community that to be honest, we had a tough time remembering the topic being reviewed to offer a timely comment or response. Obviously, we needed a weekly/monthly topic nomination system with which we could get our community to commit to one topic as a group and then comment on it during the course of the week/month.

Cruising vB.org at warp speed, I failed to find a nomination system readily available. Hence, I quickly wrote this mod (on my way to the bridge).

Acknowledgement:
This release would not have been quickly possible without the existence of most hacks released at vB.org, especially the "Thank You" hack by Abe1, which provided this mod basis structure. Our thanks and all the merit goes to Abe1.

A nice set of button and awards images have also been kindly provided by PrinceEdward to whom we also extend our thanks.

Many constructive feedbacks have been given by those members at the vB.org community who downloaded the first releases of this Mod, the implementation of which has led to an improved version of the Mod. We extend our thanks to those members.

What this mod does

It adds a "Topic Of The Week/Month" nomination system to your community.

What is Topic Of The Week/Month?

Topic of the Week/Month is a contest that select posts on which your community can commit to as a group and then comment/discuss on them during the course of the selected week/month. Any listed topic (post, thread) is eligible for the Topic of the Week/Month selection.

What determines a Topic Of The Week/Month?

Topic Of The Week/Month is based on a simple nomination system. Throughout the selected forums, members with adequate permissions can nominate their favorite topic by clicking on the award nomination button below the post.

The five topics with the most votes during the course of the week/month are automatically displayed on a nomination thread including a poll feature. At the end of the week/month, the first three topics with the most votes are the award winners of the contest.

Features:
  1. Uses AJAX technology.
  2. Uses one query per show thread page
  3. Fully phrased to allow (language translation) (addition v 1.3)
  4. Places an easy to use "Nominate Post" button next to the edit button
  5. Automatically create a nomination thread for discussions on nominees
  6. Displays a varying nomination stamps on posts that have been nominated for the contest. The color of the nomination stamps varies depending on how many users have nominated the post. (addition v 1.2)
  7. Displays an award winner stamp op award winner posts at the end of the Topic Of The Week/Month contest. (addition v 1.2)
  8. Via postbit pop-up, displays link to find all nominations or nominees made by a user (addition v 1.35)
  9. Via postbit pop-up, allows selected usergroups (e.g. Moderators or SuperModerators) can withdraw all user’s nominees from all posts (addition v 1.2) or to remove all current nominations on a given user (addition v 1.35)
  10. Option to select the maximum number of topics that must be displayed in the poll (addition v 1.2)
  11. Option to take or not into account for nomination only posts made during the month preceding the nomination cycle time (addition v 1.2)
  12. Option to consider the maximum number of posts a user can nominate per cycle time (addition v 1.2)
  13. Nominated posts titles hot linked in the poll to actual thread/post of the forum. Links displaying on the same page (No. popups) (addition v 1.3)
  14. Automatically closes the nomination thread at end of the contest cycle time (weekly/monthly)
  15. Quick link to nomination thread via the "Quick Navigation" menu
  16. Quick link to award winners page via the "Quick Navigation" menu (addition v.1.1)
  17. Automatically update the nomination poll whenever a post is nominated or withdraw from the contest.
  18. Separate looks for postbit and postbit_legacy
  19. Places all post nominees in one small box
  20. Displays award winners in one small box
  21. Quick link to nomination thread via the "small box" on the thread page
  22. Option to allow award winners to re-enter the contest after X days
  23. Users cannot nominate the same post twice
  24. Option to not allow users to nominate their own post
  25. Counts nominees submitted by a user
  26. Counts how many times a nominee is submitted
  27. Shows how many nominees a user submitted in every post of his
  28. Shows info in member's profile
  29. Option to search for posts nominated by a user
  30. Option to search for all nominated posts
  31. Administrator can withdraw all nominees of a single post
  32. Selected usergroups (e.g. Moderators or SuperModerators) can withdraw all nominees of a single post (addition v 1.10)
  33. Users can withdraw their own nominee
  34. Option to disable the mod on selected forums
  35. Option to disable the mod on all but the first post of a thread
  36. Option to disable the mod on all but the first post of a thread in specific forums
  37. Option to enable/disable view of nomination date on specific or all forums
  38. Option to add to post count when someone nominate a post.
  39. Option to give reputation points to the user whose post is nominated.
  40. Option to ban selected usergroups from using the mod
  41. Option to ban selected users from using the mod
  42. Option to display user’s nomination statistics on postbit (addition v 1.10)
  43. Option not to display nomination statistics on postbit for selected users (addition v 1.10)
  44. Option not to display nomination statistics on postbit for selected usergroups (addition v 1.50)
  45. Option to display or not the hall of fame link in Quick-Links (addition v 1.3)
  46. Option to select forums on which nominations must be considered (addition v 1.35)
  47. Hall of fame re-designed to handle a Top 10 award winners, all time cumulated (addition v 1.3)
  48. Option to refresh the poll thread if for some reason a post referenced in the poll came to be deleted (addition v 1.3)
  49. Option to use the current week number or month, or the next week number or month, in the contest title (addition v 1.3)
  50. Option for archiving nominations in the "Nomination Thread" automatically whenever a user nominate a post. (addition v 1.35)
  51. Option to automatically send a PM to award winners at the end of the contest (addition v 1.4)
  52. Option to automatically add points to award winners’ reputation at the end of the contest (addition v 1.4)
  53. If the current “Nomination Thread” is deleted for whatever reason, a single manual run of the cron file will suffice to create a new thread, avoiding a clean install of the product.
  54. Option to nominate blog entries (addition v 1.6)
  55. Option to have award winners or nominated posts icons displayed on posts, so that nominated posts can be easily identified when listing posts.
  56. Option to close current nomination thread and create a new one directly from the ACP

Installation instructions

Version 1.63
  1. Uncompress the archive
  2. Upload the content of the "upload" folder into your forum root directory
  3. Import the "product_nominate_topic.xml" product via your ACP:
    ACP -> Plugins & Products -> Manage Product -> Add/Import Product (Allow Overwrite if you are upgrading)
  4. Adjust the mod settings as you see fit.
    Specify the Forum ID that will receive nomination threads. Also specify the User ID of the nomination thread owner.
    ACP -> vBulletin Options -> vBulletin Options -> Nominate Topic Mod
  5. Save the specified settings
  6. ACP -> Scheduled Tasks -> Scheduled Task Manager
    Nominate Weekly Or Monthly Topic Mod -> Run Now

Enjoy

Update in version 1.01
Nominated posts titles hot linked in the poll to actual thread/post of the forum

Update in version 1.1
  1. Postbit_legacy fixed
  2. Quick link to award winners page via the "Quick Navigation" menu
  3. Selected usergroups (e.g. Moderators or SuperModerators) can withdraw all nominees of a single post
  4. Option to display user’s nomination statistics on postbit
  5. Option not to display nomination statistics on postbit for selected users
  6. Small bugs fixed
  7. Tested on vB 3.7.0 and vB 3.7.2
  8. Working on vB 3.6.8 and above

Update in version 1.2
  1. Displays a varying nomination stamps on posts that have been nominated for the contest. The color of the nomination stamps varies depending on how many users have nominated the post. (addition v 1.2)
  2. Displays an award winner stamp op award winner posts at the end of the Topic Of The Week/Month contest. (addition v 1.2)
  3. Via postbit pop-up, displays link to find all nominations made by a user (addition v 1.2)
  4. Via postbit pop-up, allows selected usergroups (e.g. Moderators or SuperModerators) can withdraw all user’s nominees from all posts (addition v 1.2)
  5. Option to select the maximum number of topics that must be displayed in the poll (addition v 1.2)
  6. Option to take or not into account for nomination only posts made during the month preceding the nomination cycle time (addition v 1.2)
  7. Option to consider the maximum number of posts a user can nominate per cycle time (addition v 1.2)

Update in version 1.21
  1. Fix for transition to Week 28 on cron file
  2. Fix Unknown column error when adding a nomination.
  3. Few bugs on withdraw nomination
Feedback are welcome and implementation of constructive suggestions will likely be carried out during weekends only, as I am kept busy with other matters during working days.

Update in version 1.22
  1. Fix Duplicate entry issue.
  2. Clean cron file
  3. Full phrasing for those who wish to translate it.

Update in version 1.3
  1. Nominated posts titles hot linked in the poll to actual thread/post of the forum. Links displaying on the same page (No. popups) (addition v 1.3)
  2. Option to display or not the hall of fame link in Quick-Links (addition v 1.3)
  3. Option to select only one forum on which nominations must be considered (addition v 1.3)
  4. Hall of fame re-designed to handle a Top 10 award winners, all time cumulated (addition v 1.3)
  5. Option to refresh the poll thread if for some reason a post referenced in the poll came to be deleted (addition v 1.3)
  6. Option to use the current week number or month, or the next week number or month, in the contest title (addition v 1.3)
  7. Fully phrased to allow language translation (addition v 1.3)
  8. Cron file up-to-date

Update in version 1.35
  1. Option to select forums on which nominations must be considered
  2. Option for archiving nominations in the “Nomination Thread” automatically.
  3. Fortnightly cycle time added
  4. Fully phrased to allow language translation (addition v 1.35)
  5. Few reported bugs fixed

Update 14/07/2008 in cron file
I noticed that some code instructions fail to work properly depending on the PhP version been used.

If you are running the v 1.35 and TOTW on a weekly basis and if for some reason, your cron file failed to work and create a new nomination thread on Sunday 13, July 2008, please use the attachment "updated-cron-14-07-2008.zip". The instructions are given in there.

Update in version 1.40
  1. Option to automatically send a PM to award winners at the end of the contest (addition v 1.4)
  2. Option to automatically add points to award winners’ reputation at the end of the contest (addition v 1.4)
  3. If the current “Nomination Thread” is deleted for whatever reason, a single manual run of the cron file will suffice to create a new thread, avoiding a clean install of the product.

Update in version 1.50
  1. Option not to display nomination statistics on postbit for selected usergroups (addition v 1.50)
  2. Few display titles fixed
  3. Additions made for users who had problems displaying the nomination button and stamp on their styles. Checkout the "Readme and installation" file.
  4. Cron file completely rewritten. Why?
    The previous cron file worked fine only when they were activated manually from the Run button in the Admin CP, but they were failing to run on their own as a scheduled task. I noticed that vbulletin global variables were no longer been passed to the cron file. Why??? I have actually getting the values of vbulletin global variables needed for the cron directly from the database.
    If you noticed that the "Nomination Thread" of the past week did not closed properly, proceed as follow:
    1. Open the cron file (upload/included/cron/
    2. Search for "// $createNewThread = 1;"
    3. Replace it by: "$createNewThread = 1;"
    4. Upload the cron file and run it manually (only once), just to close the previous thread and open a new one.
    5. Upload the original cron file back (the one with "// $createNewThread = 1;")

Update in version 1.51
  1. For weekly nominations, Cron file set to create a new "Nomination Thread" every MONDAY's (00:10AM) as the week numbering starts on Monday's and not on Sunday's (as set in v 1.50)

If you are running v 1.50 with weekly cycle time and noticed that a new nomination thread has been created but the display title is still that of the previous thread (week 30), then this is for you. Do not delete the newly created nomination thread (with title week 30). On Monday 21st July, 2008, after 00:10AM, proceed as follow:
  1. Refresh your poll from the ACP -> Nominate Topic -> Refresh Poll (This will update the display title of both the poll and the nomination thread)
  2. Upload the content of the attachment v 1.51 to your root directory. (DO NOT MANUALLY RUN THE CRON FILE)


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.


Topic of the Week-Month Nomination v1.51 Updated function
  1. Function updated (see attachment) as a result of exchanges with Kevil via TeamViewer.


Update in version 1.60
  1. Option to nominate blog entries (addition v 1.6)
  2. Option to have award winners or nominated posts icons displayed on posts, so that nominated posts can be easily identified when listing posts.
  3. Option to close current nomination thread and create a new one directly from the ACP (NOT VIA THE CRON)

Update in version 1.61
  1. Typing mistake fixed in the "nominate_topic_admin.php". nominate_topic_amount instead of nominated_topic_amount.
  2. Fix for "Could not find phrase 'This is an automatic message to inform you that your post ..." message.


Update in version 1.62
  1. Typing mistake fixed in the "nominate_topic_admin.php". nominate_topic_amount instead of nominated_topic_amount.
  2. Fix for http:"//... occurring in the poll while listing blog entries.
  3. Display of nomination stamps while listing blog entries from the blog.
  4. Fix for displaying of blog entries in poll when a post is nominated from the non blog board.

Update in version 1.621
  1. Fixed "Parse error: syntax error, unexpected '}' in /includes/cron/nominate_topic_cron.php on line 584"
  2. Fixed ": syntax error, unexpected T_STRING in /home/nascartr/public_html/community/admincp/nominate_topic_admin.php on line 435"


Update in version 1.63
  1. Fixed link call, requested by TsirhCitna
  2. Fixed "Hall of fame" display.

Update in version 1.635
  1. Bug Fix by vbboarder implemented – ‘can’t find phrase’ error in PM subject

Update in version 1.636
  1. Default value for "cycle time header" set to use the current cycle time (current week/fortnight/month instead of next week/fortnight)
  2. Option to nominate own post activated by default.

Feedback are welcome and implementation of constructive suggestions will likely be carried out during weekends only, as I am kept busy with other matters during working days. Also, feel free to add improvements in those files and post them.

To other coders: feel free to add improvements to the Mod (files) and post them. I will directly use your updated files for the next version of the mod.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	Image1.jpg
Views:	5337
Size:	79.1 KB
ID:	83362   Click image for larger version

Name:	Image2.jpg
Views:	3263
Size:	76.3 KB
ID:	83363   Click image for larger version

Name:	Image3.jpg
Views:	2375
Size:	80.0 KB
ID:	83364   Click image for larger version

Name:	Image4.jpg
Views:	2505
Size:	79.0 KB
ID:	83365  

Click image for larger version

Name:	Image5.jpg
Views:	2125
Size:	80.5 KB
ID:	83366   Click image for larger version

Name:	Image7.jpg
Views:	2282
Size:	86.2 KB
ID:	83368   Click image for larger version

Name:	Image10.jpg
Views:	2539
Size:	79.5 KB
ID:	83371  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #886  
Old 04 Oct 2008, 11:35
djilou's Avatar
djilou djilou is offline
 
Join Date: Jan 2007
Originally Posted by tekguru View Post
2) The Hall of Fame still does not make sense. To me is should show which topics / forum members have won awards in each month which it doesn't. The HOF is still formatted wrongly (see bottom right image in the attachment)
Same problem here!
Reply With Quote
  #887  
Old 04 Oct 2008, 17:18
J98680Bxxxxx's Avatar
J98680Bxxxxx J98680Bxxxxx is offline
 
Join Date: Jan 2008
Originally Posted by Morrus View Post
And, in addition to the other problems suddenly for no apparent reason members attempting to nominate a post are suddenly taken to the "You are not logged in" page.

It's a great idea, but this mod is a long, long, long way from being finished. It doesn't really work, and the number of issues is increasing all the time.

I hope it gets finished at some point; but I can't use it in the state it's in.
There are no linking to the "You are not logged in" in the code.


Originally Posted by TsirhCitna View Post
Any news on when the fix for urls will be done?
Hi TsirhCitna,

I will release your fix soon. I didn't have time to do anything on this mod lately.

Originally Posted by tekguru View Post
Well I'm now unfortunately joining the club where I'm strongly considering removing this Mod (even though I love it) due to the following:

1) PM's advising about awards still being titled:

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

This makes the forum look unprofessional

2) The Hall of Fame still does not make sense. To me is should show which topics / forum members have won awards in each month which it doesn't. The HOF is still formatted wrongly (see bottom right image in the attachment)

3) This morning it decided to close the nominations for the previous month and yet created a new topic for the next month with the same heading.

It is frustrating as it is so close to being a damned good mod (one of the best I've installed) but without these glitches being fixed........

Anyway attachments illustrating the problem are attached.
The Hall of Fame is meant to show cummulated results. If you want results for each month, feel free to modify the code as you see fit or disable displaying the Hall of Fame from the ACP.

Originally Posted by jGas View Post
hi to all, i have a big problem!!

the cron job at the beginning of the month was disable, so the new poll didn't start!

so, i've acidentally clicked on Refresh Poll Thread and my thread of the month of october became thread of the month of november!!

so i have to wait an other month!

what should i do? i tried to click on Create New Poll Thread and it open a new poll...but with all the nominations of the month before, and it doesn't nominate the winner!

please help me..thanks!
Do a clean installation by following all steps as mentionned in the Readme file.


Originally Posted by apiasto View Post
some problems here as well.

in month nomination the poll starts closed as default and the polls were showing correctly
on the first contest after installation.in the second contest its different.any idea? thnx
The second poll has not receive any nomination yet.

Originally Posted by djilou View Post
Same problem here!
Will fix the formatting shortly.

I will soon discontinue the full support on this mod as I am running out of free time due to the end of year activities.
Reply With Quote
  #888  
Old 04 Oct 2008, 19:21
pnosko31 pnosko31 is offline
 
Join Date: May 2006
move to graveyard
Reply With Quote
  #889  
Old 04 Oct 2008, 20:07
J98680Bxxxxx's Avatar
J98680Bxxxxx J98680Bxxxxx is offline
 
Join Date: Jan 2008
Update in version 1.63
  1. Fixed link call, requested by TsirhCitna
  2. Fixed "Hall of fame" display.
Reply With Quote
  #890  
Old 04 Oct 2008, 20:43
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
Originally Posted by pnosko31 View Post
move to graveyard
A joke, right..?
If I could get this mod working right (I'm going to test the latest download in a few moments), this is a great tool to have - Not sure why you'd think it deserves to be thrown into the graveyard just yet.
Reply With Quote
  #891  
Old 04 Oct 2008, 23:14
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
Don't move this awesome mod to the graveyard! You can mark it as "unsupported", but please keep this mod active. Thanks for your contributions!
Reply With Quote
  #892  
Old 05 Oct 2008, 10:10
tekguru tekguru is offline
 
Join Date: May 2007
Well that's if for me - now removed. Looks like the other problems are not likely to be addressed so I've removed it. A great pity that this was an awesome Mod, but if it is not going to be supported....
Reply With Quote
  #893  
Old 05 Oct 2008, 16:49
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Originally Posted by tekguru View Post
Well that's if for me - now removed. Looks like the other problems are not likely to be addressed so I've removed it. A great pity that this was an awesome Mod, but if it is not going to be supported....
You guys are idiots...he's obviously supporting this mod since he's released 2 updates in the last week or so. Why don't you learn how to code mods and see how long it takes you to fix people's problems. He's doing fine....patience is a virtue.
__________________
Xbox 360 Mods
Reply With Quote
  #894  
Old 05 Oct 2008, 17:13
tekguru tekguru is offline
 
Join Date: May 2007
I have the greatest respect for this Mod and the coder and anyone who has the ability to develop Mods.

However as the coder himself has advised 'I will soon discontinue the full support on this mod as I am running out of free time due to the end of year activities.' and that an internal poll on site determined that the Mod was not being used (or worse forgotten about) on site. I made the decision to remove it.

Patience I have plenty......
Reply With Quote
  #895  
Old 05 Oct 2008, 17:47
Morrus Morrus is offline
 
Join Date: Jan 2002
Originally Posted by AzzidReign View Post
You guys are idiots...he's obviously supporting this mod since he's released 2 updates in the last week or so. Why don't you learn how to code mods and see how long it takes you to fix people's problems. He's doing fine....patience is a virtue.

I think you're missing the point. It's no evil to not use a mod, and nobody is saying he's evil for making it! However some of us have large boards which generate income and are the backbone of healthy businesses; so new additions need to work perfectly and not cause issues.

I'm sure he's doing his best, and I'm sure we all commend him for his effort, and if this mod gets finished, I'm sure I will look at installing it again.

Nobody is indicting the guy's character or anything. I'm just trying to run a large website effectively.
Reply With Quote
  #896  
Old 05 Oct 2008, 19:04
comicus comicus is offline
 
Join Date: Jul 2006
I'd have to agree. This mod has so much potential and is an outstanding idea, but it's still very much in a beta stage. I'd certainly give it another shot down the road once it's most reliable, stable, etc. though.
Reply With Quote
  #897  
Old 06 Oct 2008, 15:23
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Originally Posted by J98680B2423E View Post
Update in version 1.63
  1. Fixed link call, requested by TsirhCitna
  2. Fixed "Hall of fame" display.
thnx,you doing a great job considering the time it would have taken you to create this.keep it up and tyt,i know its easy for some people to make weired comments but as we all know talk is cheap
Reply With Quote
  #898  
Old 07 Oct 2008, 02:22
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
Arrow problems addressed so Data can have a break ;)

Originally Posted by klyde View Post
Hi, i just installed this mod but i can't see icons to nominate posts! All was fine during installation but icons doesn't appear below any post.

I have checked options to enable this mod, to configure ForumID to receive polls and Nomination Threads Owner ID option, but i don't know what's the problem.

To test it i have set the option "Individual Forums On Which This Mod Must Be Enabled" in a private forum with many post from different users.
Could any one help me?
Most likely this is a settings configuration problem. Assuming that you have forumids & usergroup permissions set correctly, there are still 3 settings that can prevent the nominate post icon from showing. These are "Disable Nominating Topics Older Than X Days", "Disable Nominating Topics Not Made During Preceeding Month", and "Allow user to nominate their own post?" (which defaults to 'No'). So if you are testing and have not changed the defaults, then you won't see the nominate post button if you are viewing your own posts. But you should see the button if you are viewing others' posts. If you enabled time limits for the other 2 settings, then posts older than whatever time you set will not have the button.

Someone posted a while ago that the solution was to remove the "display:" keyword in the style attribute of the link in the nominate_topic_button template. I'm sure this is not the right solution since it will disable those 3 settings above and always display the nominate post button.

Originally Posted by Morrus View Post
And, in addition to the other problems suddenly for no apparent reason members attempting to nominate a post are suddenly taken to the "You are not logged in" page.

It's a great idea, but this mod is a long, long, long way from being finished. It doesn't really work, and the number of issues is increasing all the time.
I hope it gets finished at some point; but I can't use it in the state it's in.
Users who are automatically logged off have their cookies disabled. The solution is to add $session[sessionurl] to the links, which Data did in the nominate_topic_button template for the button. Either you are talking about another link or button, or another mod is causing the automatic log-off.

Originally Posted by tekguru View Post
Well I'm now unfortunately joining the club where I'm strongly considering removing this Mod (even though I love it) due to the following:

1) PM's advising about awards still being titled:
"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.'."
This makes the forum look unprofessional

2) The Hall of Fame still does not make sense. To me is should show which topics / forum members have won awards in each month which it doesn't. The HOF is still formatted wrongly (see bottom right image in the attachment)

3) This morning it decided to close the nominations for the previous month and yet created a new topic for the next month with the same heading.

It is frustrating as it is so close to being a damned good mod (one of the best I've installed) but without these glitches being fixed........
Anyway attachments illustrating the problem are attached.
In regards to #1 & #3, see my bug fixes that I will post next.
For #2, as with any Hall of Fame in real life, it shows things that are most distinguished/ most awarded, which it does correctly.

Data never claimed that it was an Awards History page to show topics and members winners chronologically by month. If you ask nicely, maybe he'll consider implementing your suggestion Note that as stated in the Hall of Fame titles, it shows members & topics with the most awards, not the most nominations.

Minor Bug: In the Members with Most Awards block, there is a bug in the phrase "nominated 'x' times in 'y' posts". I tested it with 3 nominations in 3 posts, but it showed "nominated 3 times in 1 posts".

Originally Posted by jGas View Post
hi to all, i have a big problem!!
the cron job at the beginning of the month was disable, so the new poll didn't start!

so, i've acidentally clicked on Refresh Poll Thread and my thread of the month of october became thread of the month of november!!
so i have to wait an other month!

what should i do? i tried to click on Create New Poll Thread and it open a new poll...but with all the nominations of the month before, and it doesn't nominate the winner!
please help me..thanks!
See my bug fix in the next post.

Originally Posted by apiasto View Post
some problems here as well.
in month nomination the poll starts closed as default and the polls were showing correctly on the first contest after installation.in the second contest its different.any idea? thnx
See my bug fix in the next post.
Reply With Quote
  #899  
Old 07 Oct 2008, 02:41
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
Arrow Bug fixes for: starting new contest, PM subject error, wrong month thread title

IMPORTANT: UPGRADE TO VERSION 1.63 BEFORE DOING BUG FIXES.

Bug Fix – close old & start new contest thread: The current contest thread will not close and a new contest thread will not begin if your computer/ server was down or you had the nominate topic cron task disabled when the cron task is scheduled to run. As Data noted in his script: ./includes/cron/nominate_topic_cron.php in line #247 (in v1.63), you can uncomment a line to get the current contest thread to close and a new one to begin. Basically, you change “// $createNewThread = 1;” to “$createNewThread = 1;” then run the nominate topic cron task manually, then put the “// “ back into “$createNewThread = 1;” To run the cron task manually, on the AdminCP left side column, go to Scheduled Tasks > Scheduled Task Manager > find Nominate Topic Mod and click “Run Now” (make sure it’s enabled first – should have a check mark next to the title).

Bug Fix – ‘can’t find phrase’ error in PM subject: There are some missing code in ./includes/cron/nominate_topic_cron.php file:
FIND:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

.
ADD ABOVE THAT:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

.
FIND:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

.
ADD ABOVE THAT:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

.
The PM subject should now be phrased to whatever you set for the nominate_topic_awardwinner_pm phrase, which defaults to “Award Winner Topic Nomination Contest!” Note that this setting will not take effect till the current contest thread is over.

Bug Fix – correctly displaying contest thread title:
For monthly nominations, this code is written so that a new thread is only created on the last day of the month. If you set “Display Next Cycle Time On Contest Header” to ‘Yes’ which is the default, this is not a good condition to test for since the # of days varies every month and the month phrases for the thread title & posts are created by adding 1 to the current month. Thus, when users had new monthly threads created on Sept. 30, adding 1 month would result in Oct. 30, so users got a new thread titled “Topic of the Month October, 2008” which is incorrect IF the above setting is enabled since the contest running now in Oct. should have posts in the “Topic of the Month November, 2008” thread. There’s 2 fixes for this problem:

Quick fix for current threads:
For the October, 2008 thread title, you need to wait till Oct. 1 or later to do this fix. On the AdminCP left side column, click Nominate Topic > Refresh Poll Thread. Click on or refresh the nomination forum and you should see the new month November, 2008 in the thread title, which should be saved.

Permanent fix for new threads: This fix requires editing ./includes/cron/nominate_topic_cron.php. FIND 2 occurrences of:
if ($day == $days_in_month){
.
REPLACE BOTH WITH:
if ($day == 1){
.
This fix will require the mod to create new threads on the first day on the month to fix the thread titles bug. . Note that this setting will not take effect till the next new contest thread is created.

Note: If you do not want the thread title & posts to be named for the next month, then set “Display Next Cycle Time On Contest Header” to ‘No’ in Nominate Topic settings. If set to ‘No’, then the contest running now in Oct. will have posts in the “Topic of the Month October, 2008” thread. This makes more sense, similar to how vbulletin.org runs their nomination contest. Note that this setting will not take effect till the next new contest thread is created.

Data, hope this relieves some debugging strain for you ‘cause you have an excellent mod!
Reply With Quote
  #900  
Old 07 Oct 2008, 13:43
J98680Bxxxxx's Avatar
J98680Bxxxxx J98680Bxxxxx is offline
 
Join Date: Jan 2008
Update in version 1.635
The following bug Fix by vbboarder has been implemented

Originally Posted by vbboarder View Post
IMPORTANT: UPGRADE TO VERSION 1.63 BEFORE DOING BUG FIXES.

Bug Fix – close old & start new contest thread: The current contest thread will not close and a new contest thread will not begin if your computer/ server was down or you had the nominate topic cron task disabled when the cron task is scheduled to run. As Data noted in his script: ./includes/cron/nominate_topic_cron.php in line #247 (in v1.63), you can uncomment a line to get the current contest thread to close and a new one to begin. Basically, you change “// $createNewThread = 1;” to “$createNewThread = 1;” then run the nominate topic cron task manually, then put the “// “ back into “$createNewThread = 1;” To run the cron task manually, on the AdminCP left side column, go to Scheduled Tasks > Scheduled Task Manager > find Nominate Topic Mod and click “Run Now” (make sure it’s enabled first – should have a check mark next to the title).

Bug Fix – ‘can’t find phrase’ error in PM subject: There are some missing code in ./includes/cron/nominate_topic_cron.php file:
FIND:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

.
ADD ABOVE THAT:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

.
FIND:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

.
ADD ABOVE THAT:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

.
The PM subject should now be phrased to whatever you set for the nominate_topic_awardwinner_pm phrase, which defaults to “Award Winner Topic Nomination Contest!” Note that this setting will not take effect till the current contest thread is over.

Bug Fix – correctly displaying contest thread title:
For monthly nominations, this code is written so that a new thread is only created on the last day of the month. If you set “Display Next Cycle Time On Contest Header” to ‘Yes’ which is the default, this is not a good condition to test for since the # of days varies every month and the month phrases for the thread title & posts are created by adding 1 to the current month. Thus, when users had new monthly threads created on Sept. 30, adding 1 month would result in Oct. 30, so users got a new thread titled “Topic of the Month October, 2008” which is incorrect IF the above setting is enabled since the contest running now in Oct. should have posts in the “Topic of the Month November, 2008” thread. There’s 2 fixes for this problem:

Quick fix for current threads:
For the October, 2008 thread title, you need to wait till Oct. 1 or later to do this fix. On the AdminCP left side column, click Nominate Topic > Refresh Poll Thread. Click on or refresh the nomination forum and you should see the new month November, 2008 in the thread title, which should be saved.

Permanent fix for new threads: This fix requires editing ./includes/cron/nominate_topic_cron.php. FIND 2 occurrences of:
.
REPLACE BOTH WITH:
.
This fix will require the mod to create new threads on the first day on the month to fix the thread titles bug. . Note that this setting will not take effect till the next new contest thread is created.

Note: If you do not want the thread title & posts to be named for the next month, then set “Display Next Cycle Time On Contest Header” to ‘No’ in Nominate Topic settings. If set to ‘No’, then the contest running now in Oct. will have posts in the “Topic of the Month October, 2008” thread. This makes more sense, similar to how vbulletin.org runs their nomination contest. Note that this setting will not take effect till the next new contest thread is created.

Data, hope this relieves some debugging strain for you ‘cause you have an excellent mod!
Thank you vbboarder, I really appreciate this bug fix.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:52.

Layout Options | Width: Wide Color: