[SNIPPET] If Statements

Mixed forum with phpBB code snippets
Guides and styles

[SNIPPET] If Statements

Post by Stoker »

Yeah, localhost is good for testing and getting error messages.
Blank pages tell us nothing.

If you have some kind of plesk/cpanel you need to enable error messages. Much easier to find out the error

[SNIPPET] If Statements

Post by Steve »

Tell me what you are trying to achive, what file does the edit go in? $SIG_EDIT has to be defined some where?

[SNIPPET] If Statements

Post by cisco007 »

Steve wrote: Yesterday, 13:06 Tell me what you are trying to achive, what file does the edit go in? $SIG_EDIT has to be defined some where?
it was for a support request template that i had at phpbbandbbocodes remember?
it would only show up in the defined support forums, i might actually not need the other stuff, because if i only make it show up in those forums i wouldn't need the

Code: Select all

not S_QUICK_REPLY_ENABLED and not S_PRIVMSGS and not S_SHOW_DRAFTS and not SIG_EDIT eq 1
stuff

[SNIPPET] If Statements

Post by Steve »

is it inserting text into the text area? from the posting page? posting page if statement {% if S_IN_POSTING %} true{% else %}false{% endif %}

[SNIPPET] If Statements

Post by cisco007 »

i think you remember the template, it was in the support forum you would fill out the boxes and then it would input it into the text area.
like i said it still works, i was just trying to update it using the new twig syntax but was having trouble finding the right one. but i think i might have it.