uCoz Community uCoz Modules Web Polls, Guestbook and Tests Poll Issue |
Poll Issue |
Clyde, in the Blog main page template, at the very bottom, you have this code:
Code $POLLC_1$ This code is not in a condition and that's why the poll appears for guests too: http://take.ms/zxO5g . Remove the code or put it into a condition in the way described by SanTLee to solve the issue. hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau sometimes i lurk here |
ahh yes a stray module in the blog template ! I don't remember putting it there after its deletion, the original code is working fine now Thanks bigblog for catching this and also to the others that gave suggestions... Ucoz Website Since 2009
Post edited by Clyde - Wednesday, 2017-05-17, 2:48 AM
|
SanTLee, just to clarify you do not require the users module condition. Also, given we're checking two conditions for a true result we could still refactor it into a single condition which is good practice. For example:
Code <?if($USERS_ON$ && $USER_LOGGED_IN$)?>User Logged In<?endif?> Again, however, you do not require the $USERS_ON$ condition either when checking $USER_LOGGED_IN$ or user conditions without an else statement given the output won't default to anything other than a false/null result of the condition function. Clyde, glad we got to the bottom of the problem I'm going to close this thread for now. PM me if you need it reopened. Jack of all trades in development, design, strategy.
Working as a Support Engineer. Been here for 13 years and counting. |
| |||