Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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.
Attachments
108448-pollpal.zip (0 Bytes, 211 downloads)

Sponsored Links
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Nice job!

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
only if it works hehe

Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
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

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
ahhh I left a echo in there. hang on let me fix. Thats the currtime I was using it to test a function.

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
all fixed now. I left an echo $currtime in there when I was testing poll stop time

Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
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.

Last edited by Zarzal; 02/22/2004 10:36 AM.
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
ok I think there are two display issues now.. won't show any boxes under it either.. let me check and fix.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Ok both problems fixed. New Version uploaded. This should be da end.

Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
Thanks for your work, just install and looks better.

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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...

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
ok new one uploaded that uses the Title of the Forum instead of the Keyword.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
Holy Cow thats one long Poll!
I don't think I would have the patience to choose that many options.

Joined: Mar 2003
Posts: 215
Junior Member
Junior Member
Offline
Joined: Mar 2003
Posts: 215
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'


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)