TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 289
  • Total: 289

[Block] Polls for TP/SMF - and associated SSI hack

Started by Thurnok, October 21, 2006, 07:21:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ken.

#40
Quote from: pianoman723 on November 05, 2007, 05:09:12 PM
Quote from: Thurnok on October 21, 2006, 07:21:13 AM
In order for your members to actually vote from the Poll block, you need the SSI hack found here.

Forgive me if this has already been answered, but this topic appears to have been removed.  Could someone point me to the relocation or tell me how I can get the hack?  Thanks!


The Topic is still there, the link you referenced has an extra bit of info in it.

Try this one:
http://www.tinyportal.net/index.php?topic=9623.msg65481#msg65481


EDIT: The link in the referenced message has been corrected.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

koolaid

I'm using SMF 1.1.4, TP 0.9.8 and after i tested the poll by voting.. logged out and the results are shown = people who aren't logged in can see the results. I also reseted the poll so there aren't any votes and the same thing happened. Is there a way to prevent the results being shown to people who aren't logged in?

When i created the poll, i did check the option "Only show the results after someone has voted".

Thurnok

When someone is not logged in (a guest in other words) they will only be able to see results, not the options to select.  This is because SMF doesn't have a mechanism for guest voting (at least it didn't - sorry, I've been on hiatus for about 6+ months :)  )  The option "Only show the results after someone has voted" is for logged in users only - since they should have the option to vote, so the options are shown until they do vote.

pauls_uk

This did not work for me the bars still go off the screen even after i edit the ssi.php so i have it in the centre for now

Thurnok

Double check the hack code, you might have missed something there.  This still works even under latest SMF/TP.

Thurnok


forummaker

#46
testing for smf 1.1.8 tp 1.0.5

SN

Great Snippet! thanks

Is there any way, i can stop it from redirecting to the thread after you have voted?

And is there any way, to allow Guests to Vote when they don't Have permissions to see the forum?

Thanks

ZarPrime

#48
Quote from: SN on March 04, 2009, 09:00:06 AM
Great Snippet! thanks

Is there any way, i can stop it from redirecting to the thread after you have voted?

Someone who is a better coder than I would have to look at the code to see if a redirect to some other location of your choosing would be possible.  Where would you want them to be redirected to?

Quote from: SN on March 04, 2009, 09:00:06 AM
And is there any way, to allow Guests to Vote when they don't Have permissions to see the forum?

Thanks

Since Polls are tied to topics, off the top of my head, I can't think of a way that guests would be able to vote, especially if they didn't have permission to post in the Forum.  For more information, see Thurnok's post above --> http://www.tinyportal.net/index.php/topic,9869.msg178080.html#msg178080

ZarPrime

SN

Thanks for your replay mate.

so do you think it will be better to just get a free Poll scripts from somewhere instead and just place it in a block?

because all i want the poll for is the front page, i don't really mind if it has nothing to do with the forum Topics

This website is proudly hosted on Crocweb Cloud Website Hosting.