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)

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 07:40 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.01458 seconds
  • Memory Usage 1,764KB
  • 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
  • (7)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