SMF Poll Mod

Started by clemenzo, June 09, 2007, 11:09:33 AM

Previous topic - Next topic

clemenzo

#20
Quote from: somze on June 12, 2007, 10:29:00 AM
Quote from: clemenzo on June 12, 2007, 10:04:39 AM
Quote from: somze on June 12, 2007, 02:54:55 AM
I have the same problem, Internal Server Error when trying to vote... :(
What other mods have you installed?

Some Mods :)

1. Profil Moderator Managment 1.0.0   [ Uninstall ] [ List Files ] [ Delete ] 
2. Change Theme Permission 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
3. Pretty URLs - Base 0.6  [ Apply Mod ] [ List Files ] [ Delete ] 
4. Use [color] Tags in [code] Mod 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
5. Youtube Field by Alan S 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
6. Tagging System 1.0.3   [ Uninstall ] [ List Files ] [ Delete ] 
7. Seo 4 SMF 0.2.9.8  [ Apply Mod ] [ List Files ] [ Delete ] 
8. Custom Profile Field Mod 3.16   [ Uninstall ] [ List Files ] [ Delete ] 
9. Custom BBCode 2.00   [ Uninstall ] [ List Files ] [ Delete ] 
10.  Permission Mod 1.01   [ Uninstall ] [ List Files ] [ Delete ] 
11. Country Flags 1.0.1   [ Uninstall ] [ List Files ] [ Delete ] 
12. Board Viewers Mod 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
13. Ad Managment 2.3   [ Uninstall ] [ List Files ] [ Delete ] 
14. SMF Poll Mod 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
15. YouTube BBC Tag (XHTML Compliant) 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
16. Display Age and Location next to posts 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
17. Gender On Registration 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
18. Advanced Visual Verification 1.1.2   [ Uninstall ] [ List Files ] [ Delete ] 
19. SMF Radio 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
20. Profile User Action 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
21. Member Color Link 2.0.0   [ Uninstall ] [ List Files ] [ Delete ] 
22. MySpace Field 2.4  [ Apply Mod ] [ List Files ] [ Delete ] 
23. Topic Ratings 1.03   [ Uninstall ] [ List Files ] [ Delete ] 
24. Wrap Text Around Image 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
25. Gallery 2 Integration 1.0beta3.1   [ Uninstall ] [ List Files ] [ Delete ] 
26. Profile Comments 1.2.1   [ Uninstall ] [ List Files ] [ Delete ] 
27. GoogleVideo BBCode by Yakuza 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
28. vMulticolor-Stars Mod 0.99   [ Uninstall ] [ List Files ] [ Delete ] 
29. FlashChat Integration 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
30. Avatars at Index Mod 1.4  [ Apply Mod ] [ List Files ] [ Delete ] 
31. TinyPortal 0.983   [ Uninstall ] [ List Files ] [ Delete ] 
32. Streaming 3 4.2.2b   [ Uninstall ] [ List Files ] [ Delete ] 
33. TopicStarter Mod 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
34. Reason For Editing Mod 1.14   [ Uninstall ] [ List Files ] [ Delete ] 
35. SMF Arcade E2.3.0   [ Uninstall ] [ List Files ] [ Delete ] 
[/code]

What a list! Let me look into it. Can you provide more details of the error such as logged in your web server and SMF forum log?

[Lucien]

Yeah it's one hell of a list LOL  :D

But this is the error SMF gives me, i hope it's good for you :)

http://....../forum/index.php?ssi_function=pollVote 
Databasefout: No database selected
Bestand: /var/www/html/forum/Sources/Subs.php
Regel: 3451
I'm using SMF 2.0.2 and SimplePortal 2.3.4

clemenzo

Quote from: somze on June 12, 2007, 12:54:58 PM
Yeah it's one hell of a list LOL  :D

But this is the error SMF gives me, i hope it's good for you :)

http://....../forum/index.php?ssi_function=pollVote 
Databasefout: No database selected
Bestand: /var/www/html/forum/Sources/Subs.php
Regel: 3451


Could you provide me your Subs.php file? Thanks!

qubbah

where can i setting only fovourite poll on show in the block and not only one time...every time my user refresh their page, they can see the polling block and can make a same poll for same question  for second time

qubbah

another things..

is there any option that i can fine all polling statistic take make it by my users....

qubbah

Quote from: clemenzo on June 09, 2007, 11:09:33 AM
Link to Mod

This mod will rotate 10 colours to the poll bars and allow voting from SSI block on default theme of SMF.

To show poll in tinyportal block, add a phpbox and type "ssi_showPoll(X);" into block body where X is a topic number.

Demo
======

Default theme:

http://dev.voixbox.com/index.php?theme=1
http://dev.voixbox.com/index.php?theme=1&topic=2


Custom theme:

http://www.voixbox.com
http://www.voixbox.com/index.php?topic=15182.0


when i used this "ssi_showPoll(X);" with php block this msg appeard

Parse error: syntax error, unexpected $end in /home/myforum/public_html/v3/Sources/Load.php(1735) : eval()'d code(35) : eval()'d code on line 1

qubbah

how about the theme has no own display.template like dilberm?...

clemenzo

Quote from: qubbah on June 13, 2007, 11:12:57 AM
where can i setting only fovourite poll on show in the block and not only one time...every time my user refresh their page, they can see the polling block and can make a same poll for same question  for second time
I think if you set the poll to allow multiple votes and check to allow vote change when a poll is created, it would allow users to vote more than once? This ia SMF feature, not of this mod.

clemenzo

Quote from: qubbah on June 13, 2007, 11:17:20 AM
another things..

is there any option that i can fine all polling statistic take make it by my users....
Do you mean who voted what? If yes, not this mod.

clemenzo

Quote from: qubbah on June 13, 2007, 11:34:53 AM
Quote from: clemenzo on June 09, 2007, 11:09:33 AM
Link to Mod

This mod will rotate 10 colours to the poll bars and allow voting from SSI block on default theme of SMF.

To show poll in tinyportal block, add a phpbox and type "ssi_showPoll(X);" into block body where X is a topic number.

Demo
======

Default theme:

http://dev.voixbox.com/index.php?theme=1
http://dev.voixbox.com/index.php?theme=1&topic=2


Custom theme:

http://www.voixbox.com
http://www.voixbox.com/index.php?topic=15182.0


when i used this "ssi_showPoll(X);" with php block this msg appeard

Parse error: syntax error, unexpected $end in /home/myforum/public_html/v3/Sources/Load.php(1735) : eval()'d code(35) : eval()'d code on line 1

Did you replace "X" with a topic number where your poll resides? In my examples, I would have used ssi_showPoll(2); or ssi_showPoll(15182.0);.

clemenzo

Quote from: qubbah on June 13, 2007, 12:07:33 PM
how about the theme has no own display.template like dilberm?...
Then your custom theme would fall back on the display.template of the default SMF theme.

clemenzo

Quote from: wilsy on June 10, 2007, 03:09:34 PM
Hi Clemenzo,

No dev site I'm afraid  :(

No worries - it's well outside of my very basic skills to contribute to solving this one. Hopefully someone else will come across the same error and can shed some light.

In the meantime I'll just keep the block switched off - thanks for taking a look though  :D

Regards,

Wilsy.

Would you be able to provide me an account added to a group at your site such that only this group can see the poll block? This would allow me to investigate further..

mforum

Quote from: wilsy on June 10, 2007, 12:19:27 PM
Hi Clemenzo,

Yes, as below: -

Database Error: No database selected
File: /home/rewindla/public_html/forum/Sources/Subs.php
Line: 3364

I have attached the subs.php file.

Regards,

Wilsy.

I have exactly the same problem ....  :(

clemenzo

Quote from: mforum on June 14, 2007, 10:14:30 AM
Quote from: wilsy on June 10, 2007, 12:19:27 PM
Hi Clemenzo,

Yes, as below: -

Database Error: No database selected
File: /home/rewindla/public_html/forum/Sources/Subs.php
Line: 3364

I have attached the subs.php file.

Regards,

Wilsy.

I have exactly the same problem ....  :(

Can you provide your list of mods used?

mforum

1.Tiny Portal 098
2.Board post limit
3.Read topic permission 104
4.pm on registration 102
5.Global announcements 1.00
6.Google video bbcode by yakuza
7.Youtube bbcode by yakuza
8.Hide tag 1.2.7
9.Hide tag bbc image 1.00
10. Users online today mod 1.4.0
11.Language drop 1.2
12.User email system 1.3
13.Country flags 1.0.1
14.Mini clip game bbc tag 0.1
15.Merge double posts 1.0.8
16. SMF Arcade 1.3.1 MOD E 1.5.2
17.Save pm as html 1.0.2
18.vReportBoard mod 0.99
19.Email Flash 2.0
20.Flashchat intergration 1.0
21.Inline attachments 1.0.4.2
22.SMF Poll mod 1.0


It must be a conflict with another mod, cause when i tried smf poll on my test site with a few mods installed, worked fine .......
I hope you can find the problem and fix it, is really a great mod ....  :(

clemenzo

#35
Quote from: mforum on June 15, 2007, 02:59:17 AM
1.Tiny Portal 098
2.Board post limit
3.Read topic permission 104
4.pm on registration 102
5.Global announcements 1.00
6.Google video bbcode by yakuza
7.Youtube bbcode by yakuza
8.Hide tag 1.2.7
9.Hide tag bbc image 1.00
10. Users online today mod 1.4.0
11.Language drop 1.2
12.User email system 1.3
13.Country flags 1.0.1
14.Mini clip game bbc tag 0.1
15.Merge double posts 1.0.8
16. SMF Arcade 1.3.1 MOD E 1.5.2
17.Save pm as html 1.0.2
18.vReportBoard mod 0.99
19.Email Flash 2.0
20.Flashchat intergration 1.0
21.Inline attachments 1.0.4.2
22.SMF Poll mod 1.0


It must be a conflict with another mod, cause when i tried smf poll on my test site with a few mods installed, worked fine .......
I hope you can find the problem and fix it, is really a great mod ....  :(

I'll try my best.. am really busy lately.. I am suspecting conflict lies with Flashchat mod. If you can do me a favour, try installing this chat mod at your test site and see if voting from block still works..

mforum

Quote from: clemenzo on June 16, 2007, 02:48:25 AM
I'll try my best.. am really busy lately.. I am suspecting conflict lies with Flashchat mod. If you can do me a favour, try installing this chat mod at your test site and see if voting from block still works..

The time i installed flashchat mod, voting from block stoped working ....  ::)

error in log
Database error: No database selected
File: C:\apache2triad\htdocs\forum\Sources\Subs.php
Line: 3218


subs.php
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$GLOBALS['fc_config']['db']['pref']}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$GLOBALS['fc_config']['db']['pref']}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
AND mem.ID_MEMBER != 0
  LINE 3218 => ORDER BY mem.realName ASC", __FILE__, __LINE__);

$context['users_chat'] = array();
$context['list_users_chat'] = array();
$context['num_chat'] = mysql_num_rows($result);

// Loop through all users in chat
while ($row = mysql_fetch_assoc($result))
{


Hope that helps ....  :-\

clemenzo

Thanks, this confirms my doubt. I'll look into it but no promise that I can fix it..

dimdom

Excellent mod!

But there is a problem in IE7. It "centers" the poll text in TP block....

What must i do to be shown correctly as in Firefox (text to the left)?


clemenzo

Quote from: dimdom on June 18, 2007, 01:00:22 PM
Excellent mod!

But there is a problem in IE7. It "centers" the poll text in TP block....

What must i do to be shown correctly as in Firefox (text to the left)?



I do not have this issue on my site. Could your theme be causing the problem? Try using another theme and see if the problem persists. You can try using IE7 to visit my site.

Advertisement: