PDA

View Full Version : Couple of questions...


Charlie O
08-16-2003, 07:23 AM
1. Not sure if this is a hack or not, still getting familiar with the way vB does things... but how do I make the user redirect back to the forum they are in instead of the thread they posted in when creating a new topic or reply?

2. Is there a way to include PHP if / else logic in the display? For example, I have optional fields in my postbit that I don't want to include if those fields are blank. I know the proper sytax to do that, but I'm not sure how to make it work WITH vB.

Thanks in advance~

Erwin
08-16-2003, 08:09 AM
Today at 06:23 PM Charlie O said this in Post #1 (https://vborg.vbsupport.ru/showthread.php?postid=426316#post426316)
1. Not sure if this is a hack or not, still getting familiar with the way vB does things... but how do I make the user redirect back to the forum they are in instead of the thread they posted in when creating a new topic or reply?


There is a hack that can do this already. Do a search for it. The hack gives the user a choice to return to the thread or forum.


2. Is there a way to include PHP if / else logic in the display? For example, I have optional fields in my postbit that I don't want to include if those fields are blank. I know the proper sytax to do that, but I'm not sure how to make it work WITH vB.

Thanks in advance~

This is possible in vB3 with conditionals as standard, but not in vB2 without installing hacks - such hacks have been released - search for them too.

Charlie O
08-16-2003, 08:50 AM
I tried searching for "return to forum after post" and a few other things but it was too common and got a ton of threads. Any ideas on how to narrow it down?

Thanks for the answers on number two tho!

assassingod
08-16-2003, 09:10 AM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=47918" target="_blank">https://vborg.vbsupport.ru/showt...threadid=47918</a>

You can try that for #1

Charlie O
08-16-2003, 09:37 AM
Thanks much, I shall try that. :)