Navigate
Home
ArticleWiki
Forum
Journal
Search
Newsletter
Links
Tech News
expertsrt.com
Welcome Guest.
Username:

Password:

Remember me

suggestion feature polls
Welcome, Guest. Please login or register.
December 02, 2008, 07:50:26 PM
11304 Posts in 1248 Topics by 498 Members
Latest Member: katCheeme
Experts Round Table Network  |  Community Affairs  |  Propose and Consult  |  Propose and Consult...CLOSED  |  suggestion feature polls « previous next »
Pages: [1] 2
Author Topic: suggestion feature polls  (Read 1569 times)
VGR
Mentor

Offline Offline

Posts: 682



WWW
« on: April 20, 2006, 11:58:03 PM »

I would like to see the "expires on" date displayed in the  Experts Round Table Forum Index -> Ballot Box category.

is this feasible ?
Logged

techie overlord, answers all kind of questions on http://www.europeanexperts.org
nicholassolutions
Administrator
*
Offline Offline

Posts: 133



WWW
« Reply #1 on: April 21, 2006, 01:03:07 AM »

yes - it should just take some editing of the template and/or some simple addition to the phpBB code...unfortunately that code is a mess so it can be hard to find where you need to insert things...but it can get done relatively soon and I see no reason not to.
Logged
Huntress
Administrator
*
Offline Offline

Posts: 133



WWW
« Reply #2 on: April 21, 2006, 01:05:42 AM »

I think it's a very good idea for reminding users to vote.
Logged
nicholassolutions
Administrator
*
Offline Offline

Posts: 133



WWW
« Reply #3 on: April 21, 2006, 01:35:46 AM »

Agreed. After looking through the code, I must confirm what a mess it really *is*.  :sad3: I don't have time right now to pick through it much more, so I'll put some notes here, either to help myself, or the next person to come to this:

The modification needs to be done on viewforum.php, though I am not certain exactly where..I think around line 597, one needs to add a query on table phpbb_vote_desc
Code:
SELECT vote_start, vote_length FROM phpbb_vote_desc WHERE topic_id = $topic_id

vote_start in a unix timestamp, and vote length appears to also be in seconds, so you need something like,
Code:
$i_expires_in = $i_vote_start + $i_vote_length - mktime();

and then divide that appropriately to find days, hours, min. Alternatively, you could just use date() on
Code:
$i_end_time = $i_vote_start + $i_vote_length

to show the end time. However you choose to show this information (time left or end date), it seems that it should be appended to
Code:
$topic_type .= $lang['Topic_Poll'] . ' ';
Logged
VGR
Mentor

Offline Offline

Posts: 682



WWW
« Reply #4 on: April 21, 2006, 04:53:37 AM »

it seems worse than "messy" :D :D :D

so the end_date is not even stored simply as a DATETIME/TIMESTAMP ? It has to be deduced from the duration + start_date ? what a monster :D

I'm sorry if a simple request turns into a monstruous hair-pulling task, but really I thought it was probably very simple to do ;-)
Logged

techie overlord, answers all kind of questions on http://www.europeanexperts.org
nicholassolutions
Administrator
*
Offline Offline

Posts: 133



WWW
« Reply #5 on: April 21, 2006, 12:57:21 PM »

"c'est phpBB"  :D It's a good suggestion; eventually one of us will work up the courage to face the beast again and set it up....it certainly *seems* like you shouldn't have to change more than a line or two of code  :D
Logged
coral1
Moderator
*
Offline Offline

Posts: 321



« Reply #6 on: April 21, 2006, 10:23:48 PM »

I suppose I could put something in the post.
Compared to deciphering the Poll from the Discussion :sad3: , that would be easy.
Logged

NS,NR!!
nicholassolutions
Administrator
*
Offline Offline

Posts: 133



WWW
« Reply #7 on: April 21, 2006, 10:26:05 PM »

darnit coral, stop thinking of simple non-technical solutions will you? I'm trying to make this as complicated as possible.
Logged
coral1
Moderator
*
Offline Offline

Posts: 321



« Reply #8 on: April 21, 2006, 10:37:15 PM »

Not a problem. I am naturally lazy, anyway.  
Less typing =  :thumbup:
Logged

NS,NR!!
Srirangan
Mentor

Offline Offline

Posts: 52



WWW
« Reply #9 on: April 22, 2006, 03:28:32 AM »

Coral's right. Just mention the date in the poll and lock polling after that date. Remember the aim to to get it working, not finding the utopian solution. :D
Logged

I rant therefore I am!
nicholassolutions
Administrator
*
Offline Offline

Posts: 133



WWW
« Reply #10 on: April 22, 2006, 10:24:06 AM »

yes, that's what I meant -- at least until someone finds the time to monkey with the code, that's definitely the solution
Logged
VGR
Mentor

Offline Offline

Posts: 682



WWW
« Reply #11 on: April 22, 2006, 04:08:07 PM »

du travail de cochon :D

monkey business ;-)
Logged

techie overlord, answers all kind of questions on http://www.europeanexperts.org
coral1
Moderator
*
Offline Offline

Posts: 321



« Reply #12 on: April 22, 2006, 10:12:37 PM »

Well... don't wait too long. I REALLY hate typing.  :sad3:
Logged

NS,NR!!
COBOLdinosaur
ERT.com Admin

Offline Offline

Posts: 481



WWW
« Reply #13 on: April 23, 2006, 08:41:39 PM »

The polling interface is a candidate for a full re-write as we move to the newer format, so I would not spend a lot of effort on this.  The interface is going to seperated from the target so we hve several dedicated pages to voter information and balloting.  The discussion topic will run right off of it with cross-linking between the votes, the discussion topic, related topics and any discussion that the Governing councils has related to it.

Sort of a one stop location for the government side of ERT.  That will make it easier to manage permissions, and make voting results more secure and easy to verify.

If the request can be satisfied by addit it to the topic text that may be the best short-term solution.  

Cd&
Logged
coral1
Moderator
*
Offline Offline

Posts: 321



« Reply #14 on: May 03, 2006, 10:43:28 PM »

Locking in a couple of days unless yelled at.   :glasses7:
Logged

NS,NR!!
Pages: [1] 2
« previous next »
    Jump to: