title says it all, how to add a banner on the page result after clicking "new posts" but not on other kind of searches?
How to add a banner to the new posts search result?
Collapse
X
-
You must edit template search_results and insert following code in any place
Code:<if condition="$action == 'getnew'">HERE_YOUR_BANNER</if>
-
Thanks for your help!
I'd like to put the banner in the header, is it possible to combine this conditional with a condition to check the script, something like:
Code:<if condition="THIS_SCRIPT == 'search'" AND "$action == 'getnew'">HERE_YOUR_BANNER</if>
would this work?Comment
-
yea but you must use this code:
Code:<if condition="((THIS_SCRIPT == 'search') AND ($action == 'getnew'))">HERE_YOUR_BANNER</if>
Comment
-
Sorry I've just test this. It's don't work at header. You can put this code ($action == 'getnew') only in navbar and search_ templates👍 1Comment
-
so, there is no way to get the information on if the search page being displayed was from a normal search request of from a "get new" request?
the search result of a "get new posts" is like any other search result, it just shows a searchid, is it possible to query or have a conditional that checks what generated this search id and by that way identify if the result is a "getnew" or not, so that the banner is only displayed in that page?Comment
-
it seems to work now, thank you both!
I didn't realize that it was already said in the previous post
The only problem now is taht in header I'm able to place the banner aligned with the logo (it it was were, it would be between vb logo and version info) while using navbar an additional space is always inserted for the banner.Last edited by ChipTz; Wed 11 Apr '07, 2:42pm.Comment
-
Humm, back to this topic... I've managed to place the banner as suposed, or at least almost as suposed.
The banner is now showing up in new posts but only if the search string is .../search.php?do=getnew however I also have one link in the main page excluding some of the forums from search, something like .../search.php?do=getnew&exclude=61,85
With the exclude I believe the condition ($action == 'getnew') doesn't seem to work properly. Any ideas?
Comment
Related Topics
Collapse
-
by imagerI would like to set up a sliding content banner that only shows images featured in selected channels.
At the moment, I have this:
Code:{"featured":1,"sort":{&
-
Channel: Support Issues & Questions
Tue 18 Jul '23, 4:38am -
Comment