UBB.Dev
Posted By: scroungr Beta-[6.4] Pollpal.php v1.0-5 - 02/22/2004 2:32 AM
Mod Name / Version: Pollpal.php v1.0

Description: Ok I can now view multiple question polls

Working Under: UBB.Threads 6.4 and 6.4.1

Mod Status: Beta

Any pre-requisites: IIP because you will not authenicated without it unless you add a function for that.

Author(s): scroungr

Date: 02/21/04

Credits: David Lozier for original IIP, Joshpet for updating IIP

Files Altered: pollpal.php, /pals/languages/english/languagepal.php

New Files: pollpal.php, /pals/languages/english/languagepal.php


Database Altered: No

Info/Instructions: Just upload this into the pals directory and overwrite existing pollpal.php and set the variables and also either cut and paste the pollpal part of the language file into your language file in the pals/languages/xxx directory or overwrite the existing one

// set variables
// $whocanseepoll = "0" everyone can see
// $whocanseepoll = "1" only registered people can see
$whocanseepoll = 0;

// $whocanvote = "0" everyone can vote
// $whocanvote = "1" only registered people can vote
$whocanvote = 1;


Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.

Attached File
108448-pollpal.zip  (211 downloads)
Posted By: Zackary Re: Beta-[6.4] Pollpal.php v1.0-5 - 02/22/2004 4:38 AM
Nice job!
Posted By: scroungr Re: Beta-[6.4] Pollpal.php v1.0-5 - 02/22/2004 5:09 AM
only if it works hehe
Posted By: Zarzal Re: Beta-[6.4] Pollpal.php v1.0-5 - 02/22/2004 2:52 PM
I encounter a litte problem, take a look:

[]http://www.dragonclan-forum.de/capture.jpg[/]

from were come the number top of the box ? My pal: www.dragonclan-forum.de/index.php
Posted By: scroungr Re: Beta-[6.4] Pollpal.php v1.0-5 - 02/22/2004 5:12 PM
ahhh I left a echo in there. hang on let me fix. Thats the currtime I was using it to test a function.
Posted By: scroungr Re: Beta-[6.4] Pollpal.php v1.0-5 - 02/22/2004 5:19 PM
all fixed now. I left an echo $currtime in there when I was testing poll stop time
Posted By: Zarzal Re: Beta-[6.4] Pollpal.php v1.0-5 - 02/22/2004 5:29 PM
work ! Fine. There is another minor display error in. Below the poll pal box seems to be a [br] to much. I encounter a double blank line below the box.
Posted By: scroungr Re: Beta-[6.4] Pollpal.php v1.0-5 - 02/22/2004 9:04 PM
ok I think there are two display issues now.. won't show any boxes under it either.. let me check and fix.
Posted By: scroungr Re: Beta-[6.4] Pollpal.php v1.0-5 - 02/22/2004 9:57 PM
Ok both problems fixed. New Version uploaded. This should be da end.
Posted By: Zarzal Re: Beta-[6.4] Pollpal.php v1.0-5 - 02/22/2004 10:24 PM
Thanks for your work, just install and looks better.
Posted By: scroungr Re: Beta-[6.4] Pollpal.php v1.0-5 - 02/23/2004 12:46 AM
only thig I wasn;t too happy with was the way the actual answer lined up on the pal with the bar.. but not much I can do about that...
Posted By: scroungr Re: Beta-[6.4] Pollpal.php v1.0-5 - 02/26/2004 4:13 PM
ok new one uploaded that uses the Title of the Forum instead of the Keyword.
Posted By: scroungr Re: Beta-[6.4] Pollpal.php v1.0-5 - 03/01/2004 11:47 PM
Hmm contemplating putting a brake routine in here if you post too many questions or options on the poll.. here take a look why..

www.couch-tomatoe.cc
Posted By: ChAoS_dup1 Re: Beta-[6.4] Pollpal.php v1.0-5 - 03/02/2004 2:26 AM
Holy Cow thats one long Poll!
I don't think I would have the patience to choose that many options.
Posted By: RandyJG Re: Beta-[6.4] Pollpal.php v1.0-5 - 04/08/2004 7:06 PM
I've been poking around pals lately, and I'm still using UBB6.2 (waiting for 6.5.1 probably before we change) and was wondering if 6.3, 6.4 have added a KEY for B_Poll to speed up this query?

SELECT B_Poll,B_Replies,B_Number,B_Board,B_Posted, B_Subject
FROM {$config['tbprefix']}Posts
WHERE B_Poll = '$pollname_q'
© UBB.Developers