![]() |
how do I do that ?? :(
sorry, im totally confused here |
You need look for phpportal file which has string
Code:
eval("\$P_pollbits .= \"".gettemplate("P_polloption")."\";"); |
looked in P_polloptions, nothing of that nature in there !
|
Forget P_polloption.
Just create new template with name P_polloption_mult: Code:
<tr> Code:
eval("\$P_pollbits .= \"".gettemplate("P_polloption")."\";"); It's not in templates. |
ah ok, so templates is out of the story, although I have added the one u said !
But as for the php file, I have searched ALL of the files in vbportal dir and NONE of them have that command in it anywhere. Am I mistaken ?? if so, where would it be ? I see Gen you have done multiple polls on your vbportal, which file did YOU change ? thanks guys |
vbpstuff.php
|
lol
back to square one :- I dont HAVE any file caleld vbpstuff.php anywhere on my server let alone on the vbportal directory :) thats the problem what version of vbportal are you using ? coul THAT be it ? |
Let say It based on v2.01
In any case you have file which includes the same line as above Just search |
First of all look for the file included in phpinclude template
|
ok, I think the file I need to edit is
vbp_includes.php as it refers to that in the phpinclude template Although I STILL dont see the eval.... command in there ! |
Look inside this file
any other include(vbp... .php) or it can be just in index.php or vbphome.php |
there many other includes, but nothing with vbp starting the the brackets
shall I send u all the root of vbportal files ?? lol |
Ok. Do it
|
By the end you can change the P_polloptions template and have the permanent multi poll form on the main page. It works in all cases.
|
ok, im lost again
this is hopeless :( |
Quote:
Code:
<tr> Code:
<tr> |
this is what i gt in P_polloption
<form action="$bburl/poll.php" method="get"> <input type="hidden" name="s" value="$session[dbsessionhash]"> <input type="hidden" name="action" value="pollvote"> <input type="hidden" name="pollid" value="$P_pollinfo[pollid]"> <table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td> <table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%"> <tr> <td bgcolor="{tableheadbgcolor}" align="center" colspan="4"><smallfont color="{tableheadtextcolor}"><b>$P_pollinfo[question]</b></smallfont></td> </tr> $P_pollbits </table> </td></tr></table> <table cellpadding="2" cellspacing="0" border="0" width="100%" {tableinvisibleextra} align="center"> <tr> <td style="font-size: 8pt"><smallfont><input type="submit" class="bginput" value="Vote!" style="font-size: 8pt"> <a href="$bburl/poll.php?s=$session[sessionhash]&action=showresults&pollid=$P_pollinfo[pollid]">View Results</a> </smallfont></td></tr> </table> </form> not anything you mentioned to change thanks |
You should have in php files the line
Code:
eval("\$P_pollbits .= \"".gettemplate("template_name ")."\";"); |
This will be part of the next version due out in a few days so I suggest waiting until then.
|
Does having this hack installed cause problems when upgrading to 2.2.0 ?
Should I uninstall this hack, and then upgrade? Or will I be fine? Just wondering before I upgrade tonight... Thanks |
freddie (I think it was him?) added a check to the last upgrade script that checks if you have a field named multiple, and if you do, it skips that part of the upgrade.
I upgraded a test board using this hack to v2.2.0 with no problems. :) |
Quote:
|
The installer link up top need to be changed to this url to work.
|
I haven't installed this hack yet, but I definitely will!
But I have a question: Can I limit the number of selections a user can make? Such as, there are 10 choices, but I only want the user to choose three: can I set a limit? And thanks for your hard work :) |
Well I found out the hard way (via a MySQL error) that 2.2.0 has Multiple Choice Built in!!! I did not see a way to limit the amount of times they could vote. I voted for 3 outta 4 on my test.
|
All times are GMT. The time now is 06:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|