Previous Thread
Next Thread
Print Thread
Hop To
#211982 05/13/2008 5:20 AM
Joined: Jun 2006
Posts: 697
Addict
Addict
Joined: Jun 2006
Posts: 697
In the old system, users could create polls. In the new system it seems that every forum got set so that users can NOT create new polls. We have 400+ forums so this would take me a long while to fix manually.

What would the SQL script be to change this across the entire system? Users should always be able to create polls.

Thanks!


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
SQL Query
update ubbt_FORUM_PERMISSIONS
set POLLS_IN_TOPICS=1
where GROUP_ID <> 5

If you want them to be able to make polls in replies as well:

SQL Query
update ubbt_FORUM_PERMISSIONS
set POLLS_IN_TOPICS=1
POLLS_IN_REPLIES=1
where GROUP_ID <> 5

Anyone logged in while this query is done, will need to logout and then log back in, in order to get the new permission.

Joined: Jun 2006
Posts: 697
Addict
Addict
Joined: Jun 2006
Posts: 697
Just in case anybody else needs to do this, I had to add a comma after line 2 in the second query to get it to work. Then it ran fine! I.e. so it read:

update ubbt_FORUM_PERMISSIONS
set POLLS_IN_TOPICS=1,
POLLS_IN_REPLIES=1
where GROUP_ID <> 5


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Whoops, my ummm comma key was broken....yeah that's it wink

Joined: Jun 2006
Posts: 16,535
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,535
Likes: 150
Half of my keyboard is wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Slow Queries - Any Ideas?
by BellaOnline - 10/16/2026 4:34 PM
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
Who's Online Now
0 members (), 227 guests, and 132 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)