vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   TOTW: Thread of the Week Poll - Version 1.16 (https://vborg.vbsupport.ru/showthread.php?t=74737)

Marco van Herwaarden 04-09-2005 06:03 AM

Quote:

Originally Posted by fiber1
Thanks I guess that works... Sorry never seen that approach yet! :D

That is default behaviour for all multiselect fields:
- Simple click: deselect all and select only the one you clicked
- Control Click: togle state of the line you clicked, keeping all previously selected
- shift click: select from/until lines.

Kru 04-09-2005 01:14 PM

It works like a charm. Great work MarcoH64 and big thank you for the changes that I requested. :)

Lionel 04-13-2005 09:39 AM

Quote:

Originally Posted by MarcoH64
When it is time to rune the Rule again according to the schedule, it will close the current poll, post the results (and give away the uCash points if set) and create a new Poll.

It is not happening for me in that order. Seems that it is creating the new poll first, then post the results and close the poll last. So, for example in forumhome, last thread column will show April 2nd instead of April 9th.

I manually change the title for every thread created to make it as Week Ending 00/00/0000. And whenever the cron runs, the closed thread displays as last posted instead of new poll.

Lionel 04-13-2005 09:45 AM

Quote:

Originally Posted by Lionel
Thanks for considering it. Real nice hack! Couldn't that be achieved now by doing something like:

Best thread for week ending $lastrundate (something to that extent using that parameter)

Quote:

Originally Posted by MarcoH64
Well that parameter is not implemented, only start weeknumber and i think start date if i remember correct.

What about $today? date? The creation date of the thread has to be somewhere.

Marco van Herwaarden 04-13-2005 10:02 AM

Lionel,

Can you PM me an URL where i can see this behaviour?

Edit: And i will look if i have some time today for adding some more variables to the title.

Lionel 04-13-2005 10:14 AM

Marco I sent you the PM. If you look closely, the post number for the closed poll is lower than the new poll, indicating that it was created first. Yet it displays as last.

Marco van Herwaarden 04-13-2005 11:31 AM

Quote:

Originally Posted by Lionel
What about $today? date? The creation date of the thread has to be somewhere.

Today is already possible (with exception of the year). Just use one of the following for Thread Title:
- Poll for {day}-{month}-2005
- Poll for {day} {monthname} 2005

Marco van Herwaarden 04-13-2005 02:51 PM

New version 1.16 released:

Version 1.16:
- Fixed bugs in updating Username/Userid/Thread Title in posted thread and forum info
- Removed 2 unneeded queries
- Added replacement variables for Thread Title:
- {date} - Current date formatted according to vB settings
- {beginofweek} - Date (formatted) of the start of the current week (sunday is start)
- {endofweek} - Date (formatted) of the end of the current week (saturday is end)
- {beginofweekmon} - Date (formatted) of the start of the current week (monday is start)
- {endofweekmon} - Date (formatted) of the end of the current week (sunday is end)
- Added {date} replacement variable to Poll Title
- Made all replacement variables case-insensitive
- Admin Help pages updated accordingly

Polo 04-19-2005 01:47 PM

I dont know if this has been asked before... but is it possible to select just random threads? if yes, what do i need to modify?

Marco van Herwaarden 04-19-2005 02:03 PM

Nope that is not possible with the current version.
How did you have this in mind?

Just 3 (or more) random threads from the last week?

Polo 04-26-2005 10:24 PM

Quote:

Originally Posted by MarcoH64
Nope that is not possible with the current version.
How did you have this in mind?

Just 3 (or more) random threads from the last week?

yes.... I would like for this hack to just pick out 10 random threads from a specific forum... that is it... dont know how complicated that would be... but I would like to accomplish it...

Marco van Herwaarden 04-27-2005 03:45 AM

Shouldn't be to difficult, will have a look later.

kall 05-08-2005 06:20 AM

Anyone else having this problem?

Some of the threads chosen have the lat poster as the name listed, rather than the thread starter.

*sighs*

Looks like I am a moron. Updating counters fixed it.

Top stuff as always Marco!

Marco van Herwaarden 05-08-2005 09:08 AM

Thanks for the compliment. With a lot of user feedback it is now a nice and stable hack, unfortunatly it didn't start like that.

If you have any suggestions for improvement, i might be able to spend some time on previous wishes in the next week.

dsboyce8624 05-08-2005 03:52 PM

Quote:

Originally Posted by MarcoH64
Thanks for the compliment. With a lot of user feedback it is now a nice and stable hack, unfortunatly it didn't start like that.

If you have any suggestions for improvement, i might be able to spend some time on previous wishes in the next week.

I'd like to change the poll so the voters names are not displayed.

Other than that, excellent piece of work.

Marco van Herwaarden 05-08-2005 06:11 PM

Quote:

Originally Posted by dsboyce8624
I'd like to change the poll so the voters names are not displayed.

Other than that, excellent piece of work.

You can already choose in the Rule settings if it should be a Public Poll or not.

kall 05-09-2005 08:19 AM

Quote:

Originally Posted by MarcoH64
Thanks for the compliment. With a lot of user feedback it is now a nice and stable hack, unfortunatly it didn't start like that.

If you have any suggestions for improvement, i might be able to spend some time on previous wishes in the next week.

Well...the 'Place 1 gets... Place 2 gets...' could be changed to 'First place, second place, third place..' that might be nice.

Also, what about when threads have an equal number of votes? It could say 'First equal' .. I think at the moment it just says 'Place 1, Place 1, Place 1'.

Marco van Herwaarden 05-09-2005 08:23 AM

This would be difficult since it would make things language dependant. Will think about it.

And about ending up equal, you are right, i was just being lazy there. ;)

michael5472 05-10-2005 09:40 PM

Cheers mate added it in.

Lets see how it goes :)

kall 05-10-2005 09:44 PM

Quote:

Originally Posted by MarcoH64
This would be difficult since it would make things language dependant. Will think about it.

And about ending up equal, you are right, i was just being lazy there. ;)

*grins*

I scooped all the Points last time...only got 1 vote per thread too.

xtreme-mobile 05-11-2005 12:29 PM

ive just installed this and sounds really good

is there a way of testing it now to make sure its working? or do i have to wait till the end of the week, is there anyway of getting it run now just so i know its working?

thanks

clicks install

bonnmac 05-12-2005 12:43 AM

couple of quick questions please 1. do i have to add this to ucs or dose the installer automaticly do it? 2. i am going to set this up with 3 threads every 3days (just to keep it intresting) now how do i make a post where it auto shows winners in 1 st 2 nd and 3rd as a reply to the poll i'm kinda slow with this thanks for a great hack!!

Marco van Herwaarden 05-12-2005 04:27 AM

Quote:

Originally Posted by xtreme-mobile
ive just installed this and sounds really good

is there a way of testing it now to make sure its working? or do i have to wait till the end of the week, is there anyway of getting it run now just so i know its working?

thanks

clicks install

You could setup a test Rule posting into your Mod/Admin forum and have it run each day.

For testing you could clear the Last Run date in the rule, and run the Scheduled task with Run Now.

Marco van Herwaarden 05-12-2005 04:28 AM

Quote:

Originally Posted by bonnmac
couple of quick questions please 1. do i have to add this to ucs or dose the installer automaticly do it? 2. i am going to set this up with 3 threads every 3days (just to keep it intresting) now how do i make a post where it auto shows winners in 1 st 2 nd and 3rd as a reply to the poll i'm kinda slow with this thanks for a great hack!!

1. What is ucs?
2. Look into the Rule settings (make sure to also use the Admin help - questionmark behind each setting). You can set there how result should be posted.

Marco van Herwaarden 05-12-2005 08:26 AM

Hmm never mind ucs = uCash/uShop, didn't have enough coffee this morning to understand that.

1. No changes to ucs needed to make this work.

osariase 05-29-2005 08:38 PM

How do i create a cron job,
I know this question is dumb but please excuse me, can someone please show or tell me how
thanks

rinkrat 05-30-2005 03:23 AM

/me hits install

Brilliant!!

Marco van Herwaarden 05-30-2005 04:10 AM

Quote:

Originally Posted by osariase
How do i create a cron job,
I know this question is dumb but please excuse me, can someone please show or tell me how
thanks

AdminCP->Scheduled Tasks->Add Scheduled Task

Goodspeed 06-10-2005 01:27 PM

We have 1.11 version installed and would like to do clean uninstall and clean install of new version. How can I do clean uninstall of 1.11 version?

Thank you!

Marco van Herwaarden 06-10-2005 01:44 PM

You should be able to upgrade using the 1.16 installer.

If you want to uninstall first, upload the 1.11 installer again (if you removed it) and run it, and select to uninstall. Then just follow instrctions.

KevinL 06-19-2005 02:10 AM

I want to install as it sounds like an awesome hack, but first was wondering if something is possible.

Could it be possible to say have a button in the first post to nominate that thread? So users can nominate threads instead of it picking based on views/replies?

Then after a month it will make a poll thread on the first of every month based on those threads clicked and close after say five days?

Any thoughts on this? :)

Marco van Herwaarden 06-19-2005 06:13 AM

That would have to be an addon to this hack. I don't know if i would have time for that right now, maybe in a few weeks.

KevinL 06-19-2005 12:23 PM

Quote:

Originally Posted by MarcoH64
That would have to be an addon to this hack. I don't know if i would have time for that right now, maybe in a few weeks.

That would be great! Thanks

A donation might be in order when thats done ;)

Marco van Herwaarden 06-21-2005 02:48 PM

Quote:

Originally Posted by KevinL
That would be great! Thanks

A donation might be in order when thats done ;)

Kevin

You would really need to specify a bit more how you want this. Should nomination votes get reset after selection? It would not be possible to have more then 1 Poll running at the same time i think.

dsboyce8624 06-21-2005 03:02 PM

Quote:

Originally Posted by MarcoH64
Kevin

You would really need to specify a bit more how you want this. Should nomination votes get reset after selection? It would not be possible to have more then 1 Poll running at the same time i think.

Sounds like a whole new hack to me. And I do like the idea.

Users vote during the week, at the end of the week, the votes are used to create a poll, then the votes are reset and a new vote begins. The winners from the the last X number of weeks are ineligable and X is defined in ACP.

Marco van Herwaarden 06-21-2005 03:15 PM

Ok, i might be better off telling what i have in mind.

First of all i already made some changes to TOTW:
- New option to close a Poll after X-days instead of when a new Poll is started.
- Created basic support for alternative way of Candidate selection.
- Moved current Poll from Rules table to a new Polls table.
- Added a Poll Manager (not much, just a place to see the current ongoing Polls).
- Created to possiblility to End a Poll, the next time the cronjob is run. This means you can end it earlier then normal.

What i was thinking of is creating a function (maybe an addon, depending on the fact if vBfiles/tables must be edited or not, since the current TOTW is more a "plugin") that can do the following:
- Create a way of allowing external votes to be made to Candidate a thread for a predefined Rule. You would only need to add a link to that function with the ruleid as parameter somewhere in a template.
- Make it impossible to vote more then once for a user.
- Empty the new Candidate voting after a new Poll is created?


(I know this doesn't make sense, but i just slowly start to figure out how to solve this)

PS Not sure if i would make this addon for free.

dsboyce8624 06-21-2005 03:29 PM

Most of what you said, sounds like what I said.

If it ends up being what I said, I have no problems shelling out a few clams.

KevinL 06-21-2005 03:33 PM

Excellent :)

yahoooh 08-11-2005 06:05 AM

when i try to install i get this error :
[11-Aug-2005 02:36:40] PHP Warning: chdir(): No such file or directory (errno 2) in /home/xxx/public_html/forum/install/his_files/hack_install_b3.php on line 30
[11-Aug-2005 02:36:40] PHP Warning: main(./global.php): failed to open stream: No such file or directory in /home/xxx/public_html/forum/install/his_files/hack_install_b3.php on line 31
[11-Aug-2005 02:36:40] PHP Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/forum/install/his_files/hack_install_b3.php on line 31

Marco van Herwaarden 08-11-2005 01:33 PM

If you have renamed your admincp directory, then please have a look at the config file in install/his_files. This file must be renamed and edited to reflect your directory names.


All times are GMT. The time now is 05:49 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.01358 seconds
  • Memory Usage 1,830KB
  • 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
  • (16)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