View Full Version : turn off get new posts per forum...
bashy
05-19-2006, 06:18 PM
Hi peeps
I know there is a hack for this but what i am wanting to do is
permenatly turn off a couple of sections, I have a RSS news and a Google Alerts
and its a bit much when the members have to troll through the the news to get to the normal posts....
Is there away to permenantly do this please?
JohnBee
05-21-2006, 06:53 AM
YES! I am also looking for this as well as the option to discretely search such a forum as well (show new post for this forum) option.
Pleas someone look into this.
peterska2
05-21-2006, 06:57 AM
This one is a user selectable one, which is controlled via the usercp.
https://vborg.vbsupport.ru/showthread.php?t=91025
JohnBee
05-21-2006, 07:06 AM
This one is a user selectable one, which is controlled via the usercp.
https://vborg.vbsupport.ru/showthread.php?t=91025
Thanks I saw this however is it still possible to search new posts in that forum only afterwards? I want to make a drop down in the forum section header so users can forgo the new posts for that forum, however if they wish they can descretely get all new posts for the said forum if they wanted to.
peterska2
05-21-2006, 07:12 AM
this one stops all new posts from that forum, but then if they want to search it at any point, they can remove it from the block list in the ACP and then it will show in the searches.
JohnBee
05-21-2006, 07:14 AM
Ah to bad there is no overide it would of been perfect!
well I know you were answering the initial post but thanks anyways.
bashy
05-21-2006, 07:34 AM
Yeah this is a shame thanks Peterska, Love the new name colour ;) not sure what it means mind lol
Its a shame we can sepcifically opt out 1 or more forums as standard so that the user can deslect it should they wish...
Oh well thanks anyway peeps
peterska2
05-21-2006, 07:50 AM
I'll have a think Bashy as I'm sure there is another way of doing it.
(BTW, I'm staff now :))
Ok here we go
search.php?do=getnew&exclude=X,Y
Replace the X and Y with the forumid numbers that you wish to exclude from your search. You can add more id's by just seperating them with commas.
To add this to your current navbar
find
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
replace with
<td id="navbar_search_new" class="vbmenu_control"><a href="search.php?$session[sessionurl_q]do=getnew&exclude=X,Y" accesskey="4" rel="nofollow">$vbphrase[new_posts_nav]</a> <script type="text/javascript"> vbmenu_register("navbar_search_new"); </script></td>
making sure you make the X and Y replacements.
find
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
above add
<div class="vbmenu_popup" id="navbar_search_new_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="vbmenu_popup"><a href="search.php?$session[sessionurl_q]do=getnew&exclude=X,Y" accesskey="4" rel="nofollow">Limited Search</a></td>
</tr>
<tr>
<td class="vbmenu_popup"><a href="search.php?$session[sessionurl_q]do=getnew" accesskey="4" rel="nofollow">$vbphrase[new_posts_nav]</a></td>
</tr>
</table>
</div>
bashy
05-21-2006, 08:16 AM
Thanks peterska2....
Although i i have the have for the get new posts, by days, hours, minutes and so on
I aint too sure about where to add this to it...
On another note, I also have the hack that shows in the navbar that says
Welcome, Bashy.
You last visited: 27 Minutes Ago at 09:48 AM
3 New Posts since your last visit.
Its this 1 that shows up the all the posts from all sections and its this one that
the members have complained about showing the 200 posts from the news section lol
I aint 100% sure on adding your code to said hack
peterska2
05-21-2006, 08:26 AM
Ok in your navbar find the code for the new posts dropdown menu, and add the &excludeX,Y to the end of all the links in that section then add this to the very bottom of that code, just above </table><tr>
<td class="vbmenu_popup"><a href="search.php?$session[sessionurl_q]do=getnew" accesskey="4" rel="nofollow">All new posts</a></td>
</tr>
Also in your navbar find the search code near <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br /> and again add the &excludeX,Y to the end of this.
bashy
05-21-2006, 10:06 AM
Hi peterska2
Sorry , Congrats on ya promotion :banana:
Ok i think i broke sommat :o nowt new they 'eh lol
I now have a All new posts link above the forums...
in the New Posts menu i have 2 new options although
the colouring is not as it should be...
I think im gonna leave this one alone and just turn off
the news section full stop lol
Thanks for trying anyway....i think theres some stuff i
should leave alone untill i know what im doing :o
Thanks again for ya help :)
peterska2
05-21-2006, 11:42 AM
I'll log into your site shortly bashy and have a look and see what is going on for you. :)
bashy
05-21-2006, 12:00 PM
Thanks alot...but i was just gonna leave it as it wernt that important lol
peterska2
05-21-2006, 01:13 PM
oops, already done it. I lost the site coz my puter crashed, and didn't pop back in.
bashy
05-21-2006, 01:35 PM
ok peterska...no worries lol
peterska2
05-21-2006, 01:38 PM
No problem. Happy to help, as always :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.