Welcome to Geeklog, Anonymous Tuesday, January 07 2025 @ 10:20 pm EST
Geeklog Forums
Polls Assigned to Topics
Status: offline
Robin
Forum User
Full Member
Registered: 02/15/02
Posts: 725
I've been working on hacking polls in GL so you have an option to assign them to different topics.
So far I've managed to get a pull down list with topics like in the case of blocks. Unfortunately I can't figure out why it doesn't update correctly the database and why it doesn't display polls, after manually entering tid in a given topic.
What I have done so far is:
1. changed layout/admin/poll/polleditor.thtml (see here)
2. changed admin/poll.php (see here)
3. altered gl_pollquestions: display -> tid (varchar 20)
4. changed lib-common.php ($result = DB_query( "SELECT qid from {$_TABLES['pollquestions']} WHERE display = 1" ) into ($result = DB_query( "SELECT qid from {$_TABLES['pollquestions']} WHERE tid = 'All' " );
If anyone could give me some idea I'd be much obliged.
Geeklog Polish Support Team
So far I've managed to get a pull down list with topics like in the case of blocks. Unfortunately I can't figure out why it doesn't update correctly the database and why it doesn't display polls, after manually entering tid in a given topic.
What I have done so far is:
1. changed layout/admin/poll/polleditor.thtml (see here)
2. changed admin/poll.php (see here)
3. altered gl_pollquestions: display -> tid (varchar 20)
4. changed lib-common.php ($result = DB_query( "SELECT qid from {$_TABLES['pollquestions']} WHERE display = 1" ) into ($result = DB_query( "SELECT qid from {$_TABLES['pollquestions']} WHERE tid = 'All' " );
If anyone could give me some idea I'd be much obliged.
Geeklog Polish Support Team
4
3
Quote
All times are EST. The time is now 10:20 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content