![]() |
filburt, in your opinion does this render logician's conditionals hack obsolete? i'm fluent in php. i liked logician's conditionals a lot except that it was kinda slow..
|
I have tried many combinations and haven't figured out this one yet
if someone would be so kind this is what I had figured out in the vb3 conditionals: PHP Code:
I have tried several things but only get parse errors displayed above the header stuff like: PHP Code:
PHP Code:
thanks a bunch for any help |
once again...I couldn't get bit by a dog even with a steak hanging around my neck
|
Quote:
well, i don't have any experience in vbulletin 3, but if i'm understanding the code correctly, it should look something like this in php: PHP Code:
|
thank you...I will give that a try.
it looks like it will work though....I forgot about the "echo" |
We all forget some times about the quotes or the echo ...
|
I read through some of the other messages AFTER modifying/fixing the original script, I would have added the <?php ?> <php> </php> stuff but I can't be arsed. On a deadline for other stuff.
That said, attached is an updated version that uses output buffering (in case you want to echo text) and also fixes the str_replace that didn't do squat :) Mail me at stephen AT natnet DOT com if you want to say thanks or have questions, today was my first day on the board and I probably won't be back (fixed for a client who wanted to use phpAdsNew). |
Very usefull! I hope this will possible in vb3 soon. :)
|
Quote:
With these modifications, the hack works like a charm for what I needed it to do, which was to pull a php file into the header template via include(). the original hack would pull the file into the page but only at the top of the page and not where it was supposed to display. For everyone else that had a similar problem, try this version. My thanks to both authors that worked on this. |
All times are GMT. The time now is 12:19 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:
|