TinyPortal

Development => Support => Topic started by: Dragooon on May 19, 2007, 10:19:07 AM

Title: Need help with adding a poll block
Post by: Dragooon on May 19, 2007, 10:19:07 AM
I used this thread
http://www.tinyportal.net/index.php?topic=9623.0
And
http://www.tinyportal.net/index.php?topic=9869.0
But wasent able to understand what to do.Sorry if it has been answered but I am unable to understand what to do to add a block for poll.
Can anyon give me a step by step guide what to do???????
Title: Re: Need help with adding a poll block
Post by: Thurnok on May 20, 2007, 06:42:35 AM
These posts involve editing php files on your server.  These php files are part of the SMF program.  If you are not comfortable editing php files, you will not be able to perform this function.

I will make this into a mod so that you can simply add it via the SMF package manager, but don't look for it anytime soon as I'm pretty tied up with work related issues for a few weeks.  If I can squeeze it in I will, but no promises.
Title: Re: Need help with adding a poll block
Post by: Dragooon on May 20, 2007, 09:22:03 AM
ok I tried what you said and it worked almost as I wanted it is just that it is breaking the bars lol.And I tried your solution of fixing it but still failed
Title: Re: Need help with adding a poll block
Post by: Dragooon on May 20, 2007, 05:31:12 PM
I tried everything works fine on my test forum but on my main forum it says Page cannot be displayed when voted
Title: Re: Need help with adding a poll block
Post by: Thurnok on May 21, 2007, 04:45:45 AM
For your bars issue, make sure you updated both references.  There was actually 2 places to change bar lengths.. hence why I mentioned to update all references:
Quote from: Thurnok on October 21, 2006, 07:21:13 AM
Edit SSI.php
[FIND ALL OCCURRANCES]
$barWide = $bar == 0 ? 1 : floor(($bar * 5) / 3);

You probably just did the first occurance.  If you actually did do both, then I'm not sure why your bars are breaking the block.  Best bet is to restore your backup file (you did make a backup I hope before starting the whole process), and try going through the process again carefully.

Don't know about your second issue.  I can only assume something was missed, or misplaced during your editing.  Again, you might need to restore your backed up file, and go through the process again.
Title: Re: Need help with adding a poll block
Post by: Dragooon on May 21, 2007, 05:06:01 AM
I tried that what I did was I used my SSI.php on my test forums and replaced it with the main one and still failed.
And ya should the address be something like:
www.mysite.com/SSI.php?action=pollvote
It was something like that
EDIT:
It was http://www.mysite.com/SSI.php?ssi_function=pollVote
Title: Re: Need help with adding a poll block
Post by: Dragooon on May 21, 2007, 11:09:09 AM
It is finally solved.It was caused due to Flash Chat integration v1.0 so I removed it and changed to v0.1 and it worked lol
Title: Re: Need help with adding a poll block
Post by: Thurnok on May 22, 2007, 03:20:51 AM
Ah.. hehe.. well, glad you got it worked out... cause I couldn't reproduce it so wasn't sure what to tell you next. LOL