vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - [DBTech] vBNominate v1 (vB4) [AJAX] (https://vborg.vbsupport.ru/showthread.php?t=279473)

DragonByte Tech 04-29-2012 03:47 PM

Quote:

Originally Posted by DannyITR (Post 2323362)
No worries. It's a great mod and still very usable. I just wanted to be sure I wasn't missing anything. Thank you for your work, you are very talented.

I just posted a fix for this.
vBNominate 1.2.5
  • drastically reduced queries in showthread
  • fixed user profile tab, now displays nominated and won entries
  • removed non combined dropdowns from display if they have no options
Dylan

booble 04-30-2012 10:50 PM

With 1.2.5 I have at now:

Fecha de inicio------------Fecha lĂ­mite--------------Active----------------Completed---------------Controls
-------------------------- Threads-------------%01/%05/%2012--------%01/%06/%2012

sticky 05-01-2012 07:11 AM

Is it possible to make it so the winning poster/item gives a bonus or award? I would like to award reputation points for example.

Akyeame Kwame 05-02-2012 07:22 AM

Those who were nominated in the previous month are getting this error at the top of their profile pages now. Any fix?
Warning: in_array() expects parameter 2 to be array, boolean given in [path]/dbtech/vbnominate/includes/class_profileblock.php on line 86

Those who were nominated for one thing get this error once, those who were nominated for two things get it twice and so forth and so on. I think it has to do with the fixed user profile tab that shows nominated and won entries.

DragonByte Tech 05-02-2012 08:18 PM

Quote:

Originally Posted by Akyeame Kwame (Post 2325427)
Those who were nominated in the previous month are getting this error at the top of their profile pages now. Any fix?
Warning: in_array() expects parameter 2 to be array, boolean given in [path]/dbtech/vbnominate/includes/class_profileblock.php on line 86

Those who were nominated for one thing get this error once, those who were nominated for two things get it twice and so forth and so on. I think it has to do with the fixed user profile tab that shows nominated and won entries.


I'm sorry about that.
If you open
dbtech/vbnominate/includes/class_profileblock.php

Find
PHP Code:

if (in_array($data_data['nomnom_id'], $winner_ids)) 

and change it to
PHP Code:

if (in_array($data_data['nomnom_id'], (array)$winner_ids)) 

That should fix it

Dylan

DragonByte Tech 05-02-2012 08:22 PM

Quote:

Originally Posted by booble (Post 2325052)
With 1.2.5 I have at now:

Fecha de inicio------------Fecha l?mite--------------Active----------------Completed---------------Controls
-------------------------- Threads-------------%01/%05/%2012--------%01/%06/%2012

What are you using for your date format on your primary language?
ACP->Languages & Phrases->Language Manager->Edit Settings
Field: Date Format Override

Dylan

DragonByte Tech 05-02-2012 08:23 PM

Quote:

Originally Posted by sticky (Post 2325148)
Is it possible to make it so the winning poster/item gives a bonus or award? I would like to award reputation points for example.

There is no integration right now for reputation. I'll create a request on our system to look into it on our next update.

Dylan

Akyeame Kwame 05-02-2012 08:27 PM

Quote:

Originally Posted by DragonByte Tech (Post 2325600)
I'm sorry about that.
If you open
dbtech/vbnominate/includes/class_profileblock.php

Find
PHP Code:

if (in_array($data_data['nomnom_id'], $winner_ids)) 

and change it to
PHP Code:

if (in_array($data_data['nomnom_id'], (array)$winner_ids)) 

That should fix it

Dylan

Perfect! Nominated for MOTM.

mjfan227 05-03-2012 05:33 PM

My users love it! Thanks!

Akyeame Kwame 05-06-2012 10:49 AM

I'm getting this error now. Any idea how to correct it?

Code:

Database error in vBulletin 4.1.11:

Invalid SQL:

                              SELECT

                              FROM
                              WHERE
                                        = 0;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM
                              WHERE
                                        = 0' at line 3
Error Number  : 1064
Request Date  : Sunday, May 6th 2012 @ 07:26:44 AM
Error Date    : Sunday, May 6th 2012 @ 07:26:44 AM
Script        : http://www.*********.com/forums/vbnominate.php?id=10
Referrer      :
IP Address    : 173.193.219.168
Username      : Unregistered
Classname    : vB_Database
MySQL Version :



All times are GMT. The time now is 01:10 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.01205 seconds
  • Memory Usage 1,751KB
  • 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
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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