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.
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.
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'
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.