![]() |
I want to search for new posts within a certain forum, but not within each and every forum.
|
Achieving that wasn't really that hard. In the old 1.1.X version it was a simple link. However with the new search engine the link wouldn't work anymore.
What I did is went in and look at the "GetNew" function in the search engine. This brings all the new posts for all forums the member can see. Too broad for this application. So I changed it to: Code:
// ###################### Start get latest ####################### The url to use would be: http://www.yourforumdomain.com/patht...est&forumid=XX Where XX equals the forum. I simply stuck this in my "forumhome_forumbit_levelX_post" and "forumdisplay_forumbit_levelX_post" templates. |
Thanks for the code wayne!
(dev team, is there a reason this isnt standard in v2?) |
exactly what i need as well :D
|
wayne, how could i do it to get new posts from a number of forums? I don't mind hard coding it so setting an array in searchphp for say $stargate=3,4,63,23,53,34; and then search.php?group=stargate
would be fine but i am not quite sure how to. Is it just a change of Code:
$forumsql=" AND forumid=$forumid"; |
Any update on this one?
I also need to search more than one forum (but not all) for new posts. /j |
I was about to ask for this, Wayne. :D I saw it on SitePoint and spent a while the other night trying to cobble together my own little version of it and failed miserably.
|
thx for the code. i needed that one
|
WLuke,
This function is fabulous and I having working. My question is if you meant to "change" the Get new as you mention on top or just "Copy the above code into search.php" as you mentioned below. I did the second of the two. I didn't change the Get New but added the new code underneath that part of the code. It works, I just wanted to see if having both of the codes in the search.php would cause any problems that you know of. Thank You for sharing your knowledge. |
How can I protect my private forums???
|
All times are GMT. The time now is 12:26 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:
|