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)

Pandemikk 04-05-2012 12:00 AM

Quote:

Originally Posted by megabink (Post 2316811)
I have installed and uninstalled this mod 3times now and still it don't show the settings menu in the acp(it does shows in vB option)

Sounds like you didn't upload the cpnav file in includes/xml/

Or your bitfields are being rebuilt. Verify that the file exists, install vBNominate again, problem persists? Turn on debug mode and rebuild bitfields.

DragonByte Tech 04-05-2012 08:11 AM

Quote:

Originally Posted by Akyeame Kwame (Post 2314985)
I'm getting this error where the option to nominate on the blog is not displaying correctly. Can you check into it for me?

Sorry I didn't get to this sooner. I'd need you to PM me an admin account and I'll check it out.

DragonByte Tech 04-05-2012 08:44 AM

Quote:

Originally Posted by betts02 (Post 2315106)
Just testing this out and if possible could we have this is a forum side block ?

Many thanks

There is a sideblock but it's Pro only

Quote:

Originally Posted by betts02 (Post 2315109)
Also can you disable it so users can not vote for themselves ?
And can you move the position to may be postbit ?

many thanks

What do you mean by move it to the postbit?

I'll add blocking the user in the next version.
Dylan

megabink 04-05-2012 03:33 PM

Quote:

Originally Posted by Pandemikk (Post 2316849)
Sounds like you didn't upload the cpnav file in includes/xml/

Or your bitfields are being rebuilt. Verify that the file exists, install vBNominate again, problem persists? Turn on debug mode and rebuild bitfields.

All files are in place installed the product again,rebuild bitfields and still no luck!

Pandemikk 04-05-2012 03:35 PM

Quote:

Originally Posted by megabink (Post 2317053)
All files are in place installed the product again,rebuild bitfields and still no luck!

Are you a superadmin as defined in config.php / do you have Can Admin vBNominate permissions?

betts02 04-05-2012 06:46 PM

Quote:

Originally Posted by DragonByte Tech (Post 2316927)
There is a sideblock but it's Pro only
What do you mean by move it to the postbit?
Dylan

So the Nominate button is in the postbit legacy and not at the bottom left on the message area

megabink 04-05-2012 08:03 PM

Quote:

Originally Posted by Pandemikk (Post 2317054)
Are you a superadmin as defined in config.php / do you have Can Admin vBNominate permissions?

Yes i am the owner of my site.
But i don't see the Can Admin vBnominate permission.

DragonByte Tech 04-05-2012 10:31 PM

Quote:

Originally Posted by megabink (Post 2317125)
Yes i am the owner of my site.
But i don't see the Can Admin vBnominate permission.

I would need temp admin to troubleshoot it. Hard to fix the problem if I can't see it.

Dylan

MoreLinux 04-06-2012 06:34 AM

Thanks Dylan, Installed om my test site on a VB4.1.11 and it works nice. Love the automated "Rotating Nominations" feature. It deduces a load of manual labor :)

megabink 04-06-2012 10:13 PM

Quote:

Originally Posted by DragonByte Tech (Post 2317150)
I would need temp admin to troubleshoot it. Hard to fix the problem if I can't see it.

Dylan

I will pm you later on with all the details.

DragonByte Tech 04-15-2012 06:59 AM

I just posted up a bugfix release of vBNominate 1.2.4

This release fixes a few bugs. I also changed the way the time is calculated for adding/ending nominations.
  • Blog nomination link showing up when no blog nominations available
  • Blog nomination dropdowns not working
  • Blog comment nomination link showing up when no blog comment nominations available
  • Blog comment nomination dropdowns not working
Also, If you are a clean freak then there are 3 files that are no longer used and can be deleted.
dbtech/vbnominate/cron/add_rotate.php
dbtech/vbnominate/cron/end_nomnom.php
dbtech/vbnominate/cron/end_nomnom_poll.php

Dylan

DannyITR 04-17-2012 07:03 PM

Hi Dylan,
I have a question. I have a thread nomination going but every post in the thread has a nominate dropdown. It says nominate>thread and it works but I'm just wondering if this is standard.

Also I noticed in the settings the thread nomination hook is set for postbit_start and the post nomination hook is set to postbit_userinfo_right_after_posts. The only nomination I have is under the avatar next to the infractions. Is that postbit_start? Is there any way to get it up near the thread rating dropdowns?

https://vborg.vbsupport.ru/external/2012/04/17.jpg

DragonByte Tech 04-23-2012 07:24 PM

Hi Danny, I haven't been able to find a way to tap into the top administrative toolbar, that's why I put it in the thread tools at the bottom.
Right now it displays in every post if you use combined. This is because you have the ability to nominate a particular post/user/avatar/sig and you can't do that with one main dropdown at the top of the thread.
If you only have thread nominations and don't plan on doing any other types, you can change it so it doesn't use the combined list and set the thread hook to use postbit_start. That should get it the closest to how you want.

Dylan

DannyITR 04-23-2012 07:46 PM

Quote:

Originally Posted by DragonByte Tech (Post 2322872)
Hi Danny, I haven't been able to find a way to tap into the top administrative toolbar, that's why I put it in the thread tools at the bottom.
Right now it displays in every post if you use combined. This is because you have the ability to nominate a particular post/user/avatar/sig and you can't do that with one main dropdown at the top of the thread.
If you only have thread nominations and don't plan on doing any other types, you can change it so it doesn't use the combined list and set the thread hook to use postbit_start. That should get it the closest to how you want.

Dylan

Thank you for the reply. The thread hook location is currently set at postbit_start. Are you saying there is another possible location for the nomination button or to have the nomination button only in the first post?

DragonByte Tech 04-23-2012 10:42 PM

Quote:

Originally Posted by DannyITR (Post 2322887)
Thank you for the reply. The thread hook location is currently set at postbit_start. Are you saying there is another possible location for the nomination button or to have the nomination button only in the first post?

If you look at the nominations settings there is a tab for Popup Options. On that tab is the setting called Combined Menu. If you set that to no and change the Thread Hook Location to be postbit_start then it should only show 1 dropdown option above the first post. That is only if you have the nomination set to a type Thread.

Dylan

DannyITR 04-23-2012 11:41 PM

Quote:

Originally Posted by DragonByte Tech (Post 2322941)
If you look at the nominations settings there is a tab for Popup Options. On that tab is the setting called Combined Menu. If you set that to no and change the Thread Hook Location to be postbit_start then it should only show 1 dropdown option above the first post. That is only if you have the nomination set to a type Thread.

Dylan

Ah I missed that option. It worked thank you although it caused a new issue. Even though I have only one rotating thread nomination created, all the nomination buttons are now visible. Is that supposed to be like that or should it only display active nominations? I f I choose no automatic deployment then they all disappear.

What would it take to get the combined list to appear at postbit_start instead of at the bottom of the postbit?

https://vborg.vbsupport.ru/external/2012/04/10.jpg

sacobra 04-25-2012 01:33 AM

1 Attachment(s)
Hi,

After I installed this mod, I have some junk in the new vBNominate tab in profile. See attached.

Regards

DragonByte Tech 04-25-2012 07:07 AM

Quote:

Originally Posted by DannyITR (Post 2322952)
Ah I missed that option. It worked thank you although it caused a new issue. Even though I have only one rotating thread nomination created, all the nomination buttons are now visible. Is that supposed to be like that or should it only display active nominations? I f I choose no automatic deployment then they all disappear.

What would it take to get the combined list to appear at postbit_start instead of at the bottom of the postbit?

https://vborg.vbsupport.ru/external/2012/04/10.jpg

I'm working on a bugfix release for it. I'll try and take care of it in that.

Dylan

DragonByte Tech 04-25-2012 07:14 AM

Quote:

Originally Posted by sacobra (Post 2323245)
Hi,

After I installed this mod, I have some junk in the new vBNominate tab in profile. See attached.

Regards

I'm sorry about that, I'll get it fixed up in the next release. If you want to disable the profile tab for now, go to
ACP->Plugins & Products->Plugin Manager
Find the section: Product : DragonByte Tech: vBNominate (Pro)
Find the plugin: Member Info Profile Block
And uncheck it to disable it

Dylan

DannyITR 04-25-2012 12:15 PM

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.

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 :


DannyITR 05-08-2012 03:31 PM

In the new version, if you don't use the combined menu, the thread nomination doesn't give you a successful completion message. You click on it and nothing happens. If you refresh it's gone meaning the vote was registered.

DannyITR 05-08-2012 04:17 PM

How does the poll work? If I select poll, how does it know which forum to create the poll thread? Can I still add photos and data to this poll thread?

DragonByte Tech 05-08-2012 07:18 PM

Quote:

Originally Posted by Akyeame Kwame (Post 2326687)
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 :


Can you tell me what you are doing when you get that error? Nominating a thread, post, user, etc?
Also, are you using combined or separate menu


Dylan

DragonByte Tech 05-08-2012 07:20 PM

Quote:

Originally Posted by DannyITR (Post 2327368)
In the new version, if you don't use the combined menu, the thread nomination doesn't give you a successful completion message. You click on it and nothing happens. If you refresh it's gone meaning the vote was registered.

Does it happen on any type of separated nomination or a specific type? It's working on my dev so not sure which part isn't giving the notification.

Quote:

Originally Posted by DannyITR (Post 2327397)
How does the poll work? If I select poll, how does it know which forum to create the poll thread? Can I still add photos and data to this poll thread?

On the Nominate General Settings you tell it what forum to create the poll thread in. It should work like any other poll thread.

Dylan

Akyeame Kwame 05-14-2012 05:48 AM

Quote:

Originally Posted by DragonByte Tech (Post 2327439)
Can you tell me what you are doing when you get that error? Nominating a thread, post, user, etc?
Also, are you using combined or separate menu


Dylan

It happens when an unregistered member goes to http://www.************.com/forums/vbnominate.php?id=10

I don't know what the id=10 is used for in the vbnominate system or if unregistered is some type of spider or bot indexing pages because no member with any regular activity has triggered it off. It's combined menu.

hoof 05-23-2012 09:55 AM

Hey there,
Thanks for this great mod :) I am trying to do a couple things and could use a hand.

1. Is there a way to only display the nomination button on the first post of assigned forums?
2. In the admincp how do you correct the links in the current nominations so it will take you to the threads? They are adding the admincp before the showthread.php which results in the 404 error page.

glen290 06-01-2012 03:51 PM

Installed this today on both my test and live forum, not seeing any nomination button etc...
Followed the instructions but still no joy..

DragonByte Tech 06-03-2012 10:27 AM

Quote:

Originally Posted by hoof (Post 2331878)
Hey there,
Thanks for this great mod :) I am trying to do a couple things and could use a hand.

1. Is there a way to only display the nomination button on the first post of assigned forums?
2. In the admincp how do you correct the links in the current nominations so it will take you to the threads? They are adding the admincp before the showthread.php which results in the 404 error page.

I'll fix the links and come out with a new version.
If you want it to only show on the first post try this
Open the file dbtech/vbnominate/hooks/postbit_display_complete.php

Find the line
PHP Code:

    if ((int)$vbulletin->userinfo['permissions']['dbtech_vbnomnom_perms'] & $vbulletin->bf_ugp_dbtech_vbnomnom_perms['dbtech_vbnomnom_canvotenomnom'])
    { 

and replace it with

PHP Code:

    if (((int)$vbulletin->userinfo['permissions']['dbtech_vbnomnom_perms'] & $vbulletin->bf_ugp_dbtech_vbnomnom_perms['dbtech_vbnomnom_canvotenomnom']) && (($post['isfirstshown'] == $post['postid']) || ($toppostid == $post['postid'])))
    { 

That should do it.

Dylan

hoof 06-04-2012 10:21 PM

Quote:

Originally Posted by DragonByte Tech (Post 2336083)
I'll fix the links and come out with a new version.
If you want it to only show on the first post try this
Open the file dbtech/vbnominate/hooks/postbit_display_complete.php

Find the line
PHP Code:

    if ((int)$vbulletin->userinfo['permissions']['dbtech_vbnomnom_perms'] & $vbulletin->bf_ugp_dbtech_vbnomnom_perms['dbtech_vbnomnom_canvotenomnom'])
    { 

and replace it with

PHP Code:

    if (((int)$vbulletin->userinfo['permissions']['dbtech_vbnomnom_perms'] & $vbulletin->bf_ugp_dbtech_vbnomnom_perms['dbtech_vbnomnom_canvotenomnom']) && (($post['isfirstshown'] == $post['postid']) || ($toppostid == $post['postid'])))
    { 

That should do it.

Dylan

Dylan,
Thank you! That did the trick :)

hoof 06-04-2012 10:26 PM

Quote:

Originally Posted by glen290 (Post 2335479)
Installed this today on both my test and live forum, not seeing any nomination button etc...
Followed the instructions but still no joy..

glen,
Check to make sure your current nominations is set to active. Ran into that one myself :)


All times are GMT. The time now is 01:02 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.01664 seconds
  • Memory Usage 1,877KB
  • 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
  • (2)bbcode_code_printable
  • (8)bbcode_php_printable
  • (27)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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