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)

M.C. 09-06-2013 11:58 AM

1 Attachment(s)
installed, great hack but why it appear ABOVE notices on forumhome? I have not default skin tho...

also would like to disable it for guests?

UPD: managed to do it myself.... thanks! this is need for code editing so I don't know is it allowed to post here or not...

DragonByte Tech 09-08-2013 06:16 AM

Quote:

Originally Posted by M.C. (Post 2443695)
installed, great hack but why it appear ABOVE notices on forumhome? I have not default skin tho...

also would like to disable it for guests?

UPD: managed to do it myself.... thanks! this is need for code editing so I don't know is it allowed to post here or not...

You can post it, what did you have to modify?

Guests shouldn't be able to nominate unless you set it in their usergroup settings. I don't know how well that would work though as it's coded around nominations being done by users with id's.

Dylan

M.C. 04-30-2014 08:11 PM

in file "forum/dbtech/vbnominate/hooks/forumhome_complete.php"

find:
Code:

if ($vbulletin->options['dbtech_vbnomnom_fh_enabled'])
replace:
Code:

if ($vbulletin->options['dbtech_vbnomnom_fh_enabled'] AND $vbulletin->userinfo['usergroupid'] != '1')
if you want to change location on forumhome in file "forum/dbtech/vbnominate/hooks/forumhome_complete.php"
at the bottom find:
Code:

                // Ensure we're always first in line
                $ad_location['ad_navbar_below'] = $ad_location['ad_navbar_below'] . $vbnomnom_info_panel;
        }
        else
        {
                // Ensure we're always first in line
                $ad_location['global_below_navbar'] = $ad_location['global_below_navbar'] . $vbnomnom_info_panel;
        }

I used one of template hooks... you can use own or create one or add new template location:
Code:

// Ensure we're always first in line
                $template_hook['forumhome_below_navbar'] = $template_hook['forumhome_below_navbar'] . $vbnomnom_info_panel;
        }
        else
        {
                // Ensure we're always first in line
                $template_hook['forumhome_below_navbar'] = $template_hook['forumhome_below_navbar'] . $vbnomnom_info_panel;

Well, I want to disable nomination for guests posts as there no use as I can't reward winning guests.. Some are deleted users and may have been nominated before deletion, so at result when poll created there is NO username!

I think this is need to be done here: "forum/dbtech/vbnominate/hooks/showthread_query.php" but I have not enough skills to do it myself :(

grey_goose 11-19-2014 04:38 PM

This is one of my favorite mods, but I can't seem to get it to work. Installation seems to go OK, but any attempts to use it spawns all sorts of db errors that show that my tables aren't being altered during the install process.

Thoughts?

addamroy 12-04-2014 07:24 PM

What happens when a nomination ends or is won?

Does the user get a notification? Is a thread created? Etc. What happens when it finishes, besides being listed on the nominations page? Using Autoscore for example.

MasturB 01-07-2016 05:32 PM

Hey, can someone tell me I have everything set up correctly in Rotation and Nominations.

But when my users try to nominate for Post of the WEek (I don't have threads, avatars etc set up, only Posts) a popup opens and says "Page Not Found"

Am I doing something wrong?

DragonByte Tech 01-07-2016 05:43 PM

Quote:

Originally Posted by grey_goose (Post 2523421)
This is one of my favorite mods, but I can't seem to get it to work. Installation seems to go OK, but any attempts to use it spawns all sorts of db errors that show that my tables aren't being altered during the install process.

Thoughts?

Could you please post the error messages?

Quote:

Originally Posted by addamroy (Post 2525657)
What happens when a nomination ends or is won?

Does the user get a notification? Is a thread created? Etc. What happens when it finishes, besides being listed on the nominations page? Using Autoscore for example.

At this time, I believe it only lists the winners on the nominations page.

Quote:

Originally Posted by MasturB (Post 2562213)
Hey, can someone tell me I have everything set up correctly in Rotation and Nominations.

But when my users try to nominate for Post of the WEek (I don't have threads, avatars etc set up, only Posts) a popup opens and says "Page Not Found"

Am I doing something wrong?

Can you show me the URL of the page in question?


Fillip

MasturB 01-07-2016 06:01 PM

Quote:

Originally Posted by DragonByte Tech (Post 2562215)
Could you please post the error messages?

At this time, I believe it only lists the winners on the nominations page.

Can you show me the URL of the page in question?


Fillip

Do you mean my website?

I can take a screen shot of the error message when I try it. Hang on.

MasturB 01-07-2016 06:05 PM

Here is screenshot I took.

The post I'm trying to nominate is an old post, I'm just testing it in my staff forum.

https://vborg.vbsupport.ru/external/2016/01/17.png

MasturB 01-08-2016 06:39 AM

So a few hours after I made a "TESTING" rotation, a nomination poll came up in the designated nomination forum.

I did this around 4pm yesterday afternoon and it's 330am (for me) and it's now showing a poll.

But still when I try to nominate something (I only allowed nominations from Staff Forum), it says Page Not Found.


All times are GMT. The time now is 08:10 AM.

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.01294 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)bbcode_code_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