vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - Week / Month Topic Nominations (https://vborg.vbsupport.ru/showthread.php?t=223607)

Cedric_FP 10-12-2009 02:00 PM

Hi,

I am looking to do 2 things:

1: Set the number of official winners to just 1 per contest.
2: Remove the "Awarded" image from postbit for previous winners.

How may I do this?

Thanks for your help!

imported_silkroad 10-12-2009 03:20 PM

Quote:

Originally Posted by Cedric_FP (Post 1898542)
1: Set the number of official winners to just 1 per contest.
2: Remove the "Awarded" image from postbit for previous winners.

These are good options to include +1 :up:

alehawk 10-12-2009 04:14 PM

How can I put the nominate button in every thread?
I mean I can now butwhen the user clicks the button it nominates the thread, I want to have the nominate button in every thread but, when the user clicks que nominate button it will nominate the whole post not a thingle thread... can that be done?
Tnx!

robdawg 10-12-2009 05:39 PM

Quote:

Originally Posted by dai-kun (Post 1897300)
It happens to me to, if you do mysqladmin proc, it shows that it's trying to add things to the users and posts table which will take a very long time if you have very large tables. I suggest you shutdown your board from members and run it. It takes a long time (for me took 45 mins and i had to import it a couple times since the script timed out on me).

I also suggest that vbboarder adds a warning for members with large forums, telling them that it will cause downtime since tables will be locked waiting for the fields to be added.

Yeah I am experiencing the same problem.

Need to be careful if you have A LOT of posts in your forum. I am letting it ride right now and will post an update once it is done.

Hopefully it does not crash MySQL. :(

**** EDIT ****

Well it seemed to install fine. However, it does seem to spike the CPU/MySQL usage whenever you hit the Hall of Fame or do any activity with this plugin.

imported_silkroad 10-13-2009 07:34 AM

Quote:

Originally Posted by robdawg (Post 1898668)
Yeah I am experiencing the same problem.

Need to be careful if you have A LOT of posts in your forum. I am letting it ride right now and will post an update once it is done.

Hopefully it does not crash MySQL. :(

**** EDIT ****

Well it seemed to install fine. However, it does seem to spike the CPU/MySQL usage whenever you hit the Hall of Fame or do any activity with this plugin.

Should be OK, if you install during off-peak times.

Or, simply turn off your forums and install (that is the safest way!). There is an option to do this, as you might recall, but most people do not do it :D

chick 10-14-2009 10:41 AM

I upgrade last night from 1.6.3 version to this one 2.0.2 and now things are messed up... nominations are not holding and when I go back and look at the nominated topic it is not nominated... and it does not send it to the poll.

I knew I should not have upgraded... I always have problems.

Also there were no templates to revert anywhere. I went over everything.

What should I do?

also when I look at nominate_topic.php?do=shownominationawardswinners page there are no longer any winners and there were 2 yesterday.

vbboarder 10-14-2009 03:50 PM

@chick: you probably upgraded wrong because EVERY template was changed so every template starting with 'nominate_topic' needs to be reverted. If you did not edit any templates, then no templates need reverting. As stated in instruction #3:
Quote:

This mod will work only if ALL templates are reverted since major changes were done to them.

chick 10-14-2009 04:35 PM

Yes I never touched the templates so there were none to revert.

What should I do? I reinstalled again and overwrote everything, checked all settings etc...

now.....

NOMINATE doesn't work and throws a pop-up window javascript error in IE7 which I have never seen before.
This pages doesn't work /nominate_topic.php?do=findallnominations (nothing there)
This page doesn't work nominate_topic.php?do=shownominationawardswinners (I had 2 previous winners)

I have to get this to work, should I uninstall completely and lose everything I have thus far the do a fresh install?????

Can I go back to 1.63 if I overwrite everthing?????

Its funny because I have your version 1.63 working 100% everything works on another site and I don't dare touch it.

Cableguy69 10-16-2009 02:15 PM

1 Attachment(s)
Right I've read most of this thread, but I'm still not able to see any buttons/images ect, I've uploaded the images into my custom skin, but to no avail.

http://revolution-forums.com/images/...nate_topic.png

That is from the correct file path but it does not show up in the forum.

Below is a screen shot of what I see, I just don't see any buttons, great mod btw I hope I can get it working as it would be a great feature for my forum.

matthewhotdude 10-16-2009 02:50 PM

1 Attachment(s)
Quote:

Originally Posted by imported_silkroad (Post 1898499)
Well, why don't you post exactly what your template had before and after, instead of a short message with no information.

It is impossible to help you if you don't provide any information.

Oh sorry!

Before nominate_topic_stamps_box had this in it

<div id="nominate_topic_stamps_box_$post[postid]">$nominate_topic_stamps_box</div>

When I change to

this
Code:

</td>
<td>
<div id="nominate_topic_stamps_box_$post[postid]">
$nominate_topic_stamps_box
</div>
</td>

this happenes (See screen shot)

Cableguy69 10-16-2009 08:01 PM

I've set up a brand new test board with no mods and it still doesn't show, I've followed the read me, word for word I don't know what the problem is.

crkgb 10-17-2009 03:43 AM

1 Attachment(s)
Everything seemed to work flawless till no. Under the first post I have that informational table which says that 4 people votes. But it only displays 3 users. How is it possible.? In the poll thread it also displays "4".

chick 10-17-2009 12:22 PM

vbboarder, I had to uninstall this completely and go back to the previous version which I now have working 100% properly now. Thank you for this mod.

vbboarder 10-17-2009 03:42 PM

Quote:

Originally Posted by crkgb (Post 1901187)
Everything seemed to work flawless till no. Under the first post I have that informational table which says that 4 people votes. But it only displays 3 users. How is it possible.? In the poll thread it also displays "4".

A username may not show if that user is allowed to make his online status invisible.

chick 10-17-2009 05:07 PM

My online status is always hidden, so is my smod and another admin but it shows up... err is that just because I can view invisible members? My members are not allowed to be invisible.

Cableguy69 10-17-2009 05:44 PM

VBBoarder any chance you can help me? I set up the mod as per the read me on my board, but icons buttons ect were not showing, so I set up a test board brand new install no other mods and I get the same results.

I've double checked all images to make sure everything has gone into the correct directories ect, but still no luck.

As you can see from the image the TOTW Award shows in the post bit, I can generate polls ect but because threads cannot be nominated, there are no poll options.

https://vborg.vbsupport.ru/attachmen...5&d=1255706140

vbboarder 10-17-2009 06:06 PM

Quote:

Originally Posted by chick (Post 1901401)
My online status is always hidden, so is my smod and another admin but it shows up... err is that just because I can view invisible members? My members are not allowed to be invisible.

Yep, that's why.

vbboarder 10-17-2009 06:13 PM

@Cableguy69: I only have time to help in this thread. Review the troubleshooting tips again and check the actual source code of your showthread pages - search for the nominate_topic image to verify if: 1. the <img> tag was inserted by the plugin, and 2. the url of the image is correct (image will not show if url is not correct).

Cableguy69 10-17-2009 06:42 PM

OK now were getting somewhere, the <img> url hasn't been inserted into the showthread so were should it be placed?

and how should it appear?

Should it go after this to get it to appear on the right of the quick reply button?

Code:

                <tr>
                        <td class="tcat" colspan="2">
                                <if condition="$show['quickreply_collapse']"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('quickreply');"><img id="collapseimg_quickreply" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_quickreply].gif" alt="" border="0" /></a></if>
                                $vbphrase[quick_reply]
                        </td>
                </tr>


grey_goose 10-17-2009 08:45 PM

can someone paste the nomination button/link code? i can't make them appear in postbit_legacy, and have nothing to go off of...

MarceloS 10-18-2009 12:03 PM

Hi! I accidentally uninstalled previous version of this mod, and lost all other nominations from before. Is there any way to reload them? Are they still on the database?

crkgb 10-18-2009 05:21 PM

Quote:

Originally Posted by vbboarder (Post 1901370)
A username may not show if that user is allowed to make his online status invisible.

Not the case in my case, sorry. Nobody is allowed to be invisible.

simon157 10-19-2009 12:45 PM

Please help. Just installed this mod. Everything went fine, but when I click on the icons to view the poll it says I have insufficient priviledges. Can you help?

Simon

vbboarder 10-19-2009 06:26 PM

Quote:

Originally Posted by Cableguy69 (Post 1901427)
OK now were getting somewhere, the <img> url hasn't been inserted into the showthread so were should it be placed?

and how should it appear?

Should it go after this to get it to appear on the right of the quick reply button?

Code:

                <tr>
                        <td class="tcat" colspan="2">
                                <if condition="$show['quickreply_collapse']"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('quickreply');"><img id="collapseimg_quickreply" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_quickreply].gif" alt="" border="0" /></a></if>
                                $vbphrase[quick_reply]
                        </td>
                </tr>


Well, it seems like you're missing a template_hook. Insert either before or after the quick reply and within the same td cell: $template_hook[postbit_controls]

vbboarder 10-19-2009 06:28 PM

Quote:

Originally Posted by MarceloS (Post 1901640)
Hi! I accidentally uninstalled previous version of this mod, and lost all other nominations from before. Is there any way to reload them? Are they still on the database?

If you have a 'post' sql table backup before you uninstalled the old mod, then you can restore your old awards - otherwise, no.

vbboarder 10-19-2009 06:31 PM

Quote:

Originally Posted by simon157 (Post 1902054)
Please help. Just installed this mod. Everything went fine, but when I click on the icons to view the poll it says I have insufficient priviledges. Can you help?

Simon

The usergroup you're using to view the nominations probably don't have the permissions to view nominations and/or nominate - check VB Options > Nominate Topic settings.

Cedric_FP 10-19-2009 09:32 PM

Quote:

Originally Posted by Cedric_FP (Post 1898542)

1: Set the number of official winners to just 1 per contest.


Can this be done?

tiengnhat 10-20-2009 12:54 PM

Error:
"Nominated 4,294,967,295 Times in 4,294,967,295 Posts
TOTW/F/M Award(s): 0"

Please tell me about fix it?

Cableguy69 10-20-2009 05:33 PM

Hi Vbboarder I've added the hook like you said, but the nominate button still doesn't show.

What I noticed before I added the hook, I have a private forum set up just for me, to keep certain details in ect. On posts 9 there was the nominate button. I pressed it and sure enough the post was flagged as nominated and the nomination poll was created.

I have no idea what is going on with.

Also is this how the template should look?

Code:

                <tr>
                        <td class="tcat" colspan="2">
                                $template_hook[postbit_controls]
                                      <if condition="$show['quickreply_collapse']"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('quickreply');"><img id="collapseimg_quickreply" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_quickreply].gif" alt="" border="0" /></a></if>
                                $vbphrase[quick_reply]
                        </td>
                </tr>

or

Code:

                <tr>
                        <td class="tcat" colspan="2">
                            <if condition="$show['quickreply_collapse']"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('quickreply');"><img id="collapseimg_quickreply" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_quickreply].gif" alt="" border="0" /></a></if>
                                $vbphrase[quick_reply]
                                $template_hook[postbit_controls]
                        </td>
                </tr>


vbboarder 10-20-2009 06:42 PM

@ Cedric_FP: no, it's hard coded to 3 winners.

@ tiengnhat: are you sure you upgraded correctly? This was an error that occurred in the pre-2.0 release. Can't help you wo. an sql error report or actual sequence of actions that caused it.

vbboarder 10-20-2009 06:44 PM

@ Cableguy69: Yes, your edits are correct - either one is fine.

I don't really understand your question. Why did you edit the postbit if the nominate button was already showing up in your private forum?

Cableguy69 10-20-2009 08:58 PM

What I mean is the button only shows in a locked down area only visible to me, the problem is the nominate button only shows in posts 9, which is the last post in that thread. The button does not appear anywhere else out of 20 or so categories.

I did the edit in a last ditch attempt to get it working.

I also tried to add this piece of code directly into the post bit as I could see it in the page source.

Code:

                                <a href="nominate_topic.php?do=nominate_topic_add_user&amp;p=17743&amp;securitytoken=1256074968-506f86c196cd3de8a485f42502d12c1430b68a94" id="nominate_topic_button_17743"  onclick="nominate_topic_add_user(17743); return false;" style="display:none" rel="nofollow"><img src="images/styles/BlissfullySimple/buttons/nominate/nominate_topic.gif" alt="Nominate this post" border="0" /></a>
Unfortunately that made no difference either.

I'll try uninstalling and starting over fresh, I can't see it making any difference though.

Cableguy69 10-20-2009 10:14 PM

Reinstalled it and came across this when trying to finalize and create poll.

http://www.hostmypics.org/pictures/3...8184d83a47.png

Cableguy69 10-20-2009 11:32 PM

Ah right now I've got it working, reverted to the default setting and it's there although it's not quite yet working how I want it to lol.

Cheers Vbboarder. I made some Icons for my board, so I thought I'd share em with anybody who wants them.


They're saved as Transparent editable .png files so fonts colour ect can be changed.

I've posted them here.

https://vborg.vbsupport.ru/showthread.php?t=225698

Cableguy69 10-21-2009 12:27 AM

Can I just ask were about I need to edit this TOTW/F/M so it just shows TOTW?

http://www.hostmypics.org/pictures/b...2b93f1c5d2.png

matthewhotdude 10-21-2009 10:32 AM

Thanks for the ribbons cable guy :)

matthewhotdude 10-21-2009 10:46 AM

1 Attachment(s)
How can I change this, so it shows a different ribbon for first and second place?

MarceloS 10-21-2009 12:17 PM

Quote:

Originally Posted by vbboarder (Post 1902245)
If you have a 'post' sql table backup before you uninstalled the old mod, then you can restore your old awards - otherwise, no.

I have daily backups of my database. Do you know how can I get the data from a backup database and add it to the current one?

Thanks for your help!

Cableguy69 10-21-2009 12:42 PM

Quote:

Originally Posted by matthewhotdude (Post 1903125)
How can I change this, so it shows a different ribbon for first and second place?

I'm not sure sorry I've named the images the same as the default ones.

vbboarder 10-21-2009 03:41 PM

Quote:

Originally Posted by Cableguy69 (Post 1903164)
I'm not sure sorry I've named the images the same as the default ones.

The names of the images need to be exactly the same as the ones they are supposed to replace, otherwise the wrong images will show. Thanks for sharing - they look great ;)

Regarding 'TOTW/F/M' phrase, you need to search for that term in the Phrase Manager - I forgot the exact name for it right now.

Glad you finally got it working :D Yeah, you should used the default settings 'cause those are the ones that I tested the most so they're most likely to be reliable.


All times are GMT. The time now is 01:03 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.01716 seconds
  • Memory Usage 1,850KB
  • 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
  • (6)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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