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

Quote:
Originally Posted by TimberFloorAu View Post
Okies.

Followed full instructions, and upgraded to v 1.22

Week 29 looks ok at the moment.

In the process of uninstall and reinstall etc and the hiccups, all data and votes for week 28 are dead and gone.

Shame as our members will feel slightly concerned f their votes are pissing in th wind.

For testing purposes may I please make a suggestion !

Allow a 1 hr test version for this.

Whereby we can condense a totw to a toth , for testing purposes, to see if everything is propogating properly.

Then reset to totw afterwards, and delete any corresponding threads. This would mean that new totw would have to overwrite the week field, as this would have already been crunched by test week.

Do you know what I mean?

1. duplicate entry into week 28/29 now seems to be fixed.
2. all previous weeks entries and voting has disappeared. ( hence a test acct ) as 150 votes, on varying threads etc, over the course of a week, only to be lost in upgrade etc, is gonna piss so many ppl off, and lose the board credibility.

Regards Ozzy
Have tested it a daily cron and the transition seems to work well.

Good suggestion TimberFloorAu. Will proceed as suggested with the cron hourly test later today.

The previous week entries were damaged during the transition Sunday/Monday.

Quote:
Originally Posted by StonePilot View Post
I would like to see a feature that allows for only one forum's posts be able to be nominated, it's a bit of work to have to disable every single forum except for the one that I want. Plus I have to remember to disable all new forums that are created.
Will add it in the next version. :up:


Quote:
Originally Posted by smirkley View Post
Just an update, I am close to having a completed poll module created for use with CMPS.

Still a little testing needed, but so far it works.

I think it will just take a new module upload, and maybe a couple of the cmps poll template tweaks for esthetic purposes.

(and voted this hack here, as mod of the month )
Well done there on the CMPS. Keep us posted.


Quote:
Originally Posted by TsirhCitna View Post
I fixed my week 28 with a few simple MySQL edits.

I'm not sure where I fix the link to the week 29 poll though or this: Award Winner, Topic Of The Week 01, December, 1969
To fix the link to the week 29 poll, edit the table "nominate_topic_thread". It contains one entry with values (postid, threadid, pollid) for the current nomination thread. But, it's better to do a clean install.


Quote:
Originally Posted by smirkley View Post
Followup, and bug report I think,..

It seems in testing that nominated posts displayed do not necessarily follow forum permissions by member group.

IE,...

If a nominated forum for some reason ends up in the trash bin or moved to a private or staff forum, the forum title as well as the votes still display publically on the totm poll topic.

Can "follow forum/member group permissions" be a feature added in the future for topics moved later to forums where member groups have no permissions? (I know you can specify which forums to allow/deny in the acp, but it would make sense to filter by member group permission masks also)
Have tested it and saw that vBulletin automatically handles forum permissions. The user following a link through the poll will receive a message telling him/her that "...he/she do not have permission to access this page. This could be due to one of several reasons:..."

Don't know how it's done on the CMPS side. Keep us posted


Quote:
Originally Posted by Hannan View Post
The error is still there!


Thanks for responding fast
Please describe the steps that you are following so that I can replicate them on my side.

(All steps of the installation done? Cron file manually run at the first installation?)


Quote:
Originally Posted by soletrader View Post
Does anyone know how to move the nominate button from next to the edit button to somewhere else? Thanks
Quote:
Originally Posted by soletrader View Post
Any help with this is appreciated. Thank you.
  1. First, you must locate the "template hook" that you wish to use for the "nominate button". Let's call it "yourtemplatehook".
  2. Secondly, find the location within that template, where you wish to have the "nominate button" displayed. This location will be in between pieces of existing html code. Let's say preceeded by "prevHTMLLocationCode". Ensure that this piece of html code is unique (appears only once) in that template.
  3. Thirdly, open the product file "product-nominate_topic.xml" using WordPad for example and do the following:

1. Scroll down until you reach the plugins section
2. In the "global_setup_complete" plugin, add this line just after the "<![CDATA[":
$vbulletin->templatecache['yourtemplatehook'] = str_replace("prevHTMLLocationCode", "prevHTMLLocationCode".$vbulletin->templatecache['nominate_topic_button'], $vbulletin->templatecache['yourtemplatehook']);

3. In the "postbit_display_complete" plugin, change this line:

eval('$template_hook[postbit_controls] .= " ' . fetch_template('nominate_topic_button') . '";');

with:

eval('$template_hook[yourtemplatehook] .= " ' . fetch_template('nominate_topic_button') . '";');

--

That should do it.


Quote:
Originally Posted by tekguru View Post
This was working well but now that my team / users are starting to use the Mod we are gettign errors like:

PHP Code:
Database error in vBulletin 3.7.2:

Invalid SQL:
INSERT INTO vb_pollvote (pollid,userid,votedate,voteoption,votetypeVALUES ('32','10','1215502754','4','0');

MySQL Error   Duplicate entry '32-10-0' for key 2
Error Number  
1062
Request Date  
TuesdayJuly 8th 2008 08:39:14 AM
Error Date    
TuesdayJuly 8th 2008 08:39:14 AM
Script        
http://www.4winmobile.com/forums/nominate_topic.php?do=nominate_topic_add&p=188812&securitytoken=1215501110-9dc08c878ed8d2682274ca2ad0f152cd85314268
Referrer      http://www.4winmobile.com/forums/4wm-news/16710-winterface-cool-fresh-breeze-world-windows-mobile-interface.html
IP Address    86.139.133.53
Username      
neilm
Classname     
vB_Database 
The poll seems to be updated okay but if these continue I'm tempted to turn it off for the moment as uses get scared by such errors.

Any ideas?
Fixed yesterday with version 1.22.

Open the v 1.22 attachment and upload the file located in "upload/includes/functions_nominate_topic.php" to the corresponding location on your site.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01130 seconds
  • Memory Usage 1,825KB
  • 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
  • (1)bbcode_php
  • (9)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