View Full Version : Forum Home Enhancements - Add link "Today's posts" in quicks Links
Allan
12-15-2009, 10:00 PM
This mod add a link "Today's posts" in quicks Links (removed in vB4)
In the "navbar" template, find (the third from top):
<vb:if condition="$show['member']">
<vb:if condition="$show['member']">
Add under:<li><a href="search.php?do=getdaily&contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
PS: This is a useful function and I find that this is more original in VB4, like many things, damage ..
VonDoom
12-16-2009, 07:31 PM
Good stuff, My members have been asking for this one.
Leo Brazil
12-17-2009, 02:02 PM
Hi Allan,
I was looking exacly for something like this.
I have on 3.8.4 something like this:
- /search.php?do=process&replyless=1&replylimit=0&exclude=30 - To get Threads with no replies
- /search.php?do=getnew - To get posts since my last visit
- /search.php?do=getdaily&days=7- Posts from a week before
- /search.php?do=getdaily&days=30 - Posts from a month before
Any idea how would be the links for those ? Got my idea ?
Dr.osamA
12-18-2009, 08:19 PM
Hi Allan,
I was looking exacly for something like this.
I have on 3.8.4 something like this:
- /search.php?do=process&replyless=1&replylimit=0&exclude=30 - To get Threads with no replies
- /search.php?do=getnew - To get posts since my last visit
- /search.php?do=getdaily&days=7- Posts from a week before
- /search.php?do=getdaily&days=30 - Posts from a month before
Any idea how would be the links for those ? Got my idea ?
After Brother Allan
Leo Brazil !!
try this code
find in navbar
<vb:if condition="$show['member']">
<vb:if condition="$show['member']">
Add under:
<li><a href="search.php?do=getdaily&contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
<li><a href="search.php?do=process&replyless=1&replylimit=0&exclude=30">Threads with no replies</a></li>
<li><a href="search.php?do=getnew">{vb:rawphrase last_visit}</a></li>
<li><a href="search.php?do=getdaily&days=7">Posts from a week before</a></li>
<li><a href="search.php?do=getdaily&days=30">Posts from a month before</a></li>
installed:D
________
Crime insurance advice (http://www.insurance-forums.org/crime-insurance/)
woffie
12-19-2009, 12:55 PM
Very Nice!
SİMAR
12-21-2009, 04:56 PM
thanks man
Leo Brazil
12-22-2009, 10:10 AM
After Brother Allan
Leo Brazil !!
try this code
installed:D
Awesome !! Thx a lot.
clmazin
12-23-2009, 03:05 PM
I can't seem to find the code you're describing in the navbar template (so I'm not sure where to put your new code).
Can you be more specific? There doesn't seem to be any place in the navbar template that repeats those two lines:
<vb:if condition="$show['member']">
<vb:if condition="$show['member']">
Could you give me a bigger picture of the code area and where I specifically need to insert your code to get "today's posts"?
Thanks.
Allan
12-23-2009, 03:15 PM
I can't seem to find the code you're describing in the navbar template (so I'm not sure where to put your new code).
Can you be more specific? There doesn't seem to be any place in the navbar template that repeats those two lines:
<vb:if condition="$show['member']">
<vb:if condition="$show['member']"> Could you give me a bigger picture of the code area and where I specifically need to insert your code to get "today's posts"?
Thanks.
Above the first:
<li><a href="subscription.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>
clmazin
12-23-2009, 03:24 PM
Et voila! Merci, Allan!
C.
MattZ DSLR
12-24-2009, 08:32 PM
Thank you
This is great
When i click on View threads with no reply, i get this
Please add more constraints to your search. Searches that return all or most of the database are a bad idea
Any ideas ?
BoredOutOfMyMin
12-29-2009, 03:19 AM
Excellent fix and going to mod footer to solve missing Forum Jump Navigation
coloradomoms
12-29-2009, 04:11 PM
Awesome! thanks!!
captkirk
01-01-2010, 07:47 PM
Thanks works great, I don't know why it was removed in the first place
JonUrban
01-02-2010, 10:29 PM
Thanks. I did it and it works perfectly. Why did they take this out? vB works in mysterious ways I guess.
Thanks again!
SuperGLS
01-03-2010, 01:35 AM
Very good. Added!
COL NIL SATIS
01-09-2010, 05:30 PM
Thanks Allan..nice little code!!! much appreciated
Anne Lise
02-05-2010, 06:17 AM
I cannot get this to work.
KProjects
02-15-2010, 10:39 PM
Thanks!
I used it a little differently..
http://www.twilightrumors.com ;)
COL NIL SATIS
02-16-2010, 09:30 PM
Great add on Allan Merci ..installed sir
In 4.0.2 this code is already implemented but i can't see the url in quick link menu...why?
skwestle
03-08-2010, 04:01 AM
Thank you I have been looking for this
donnie_ogm
03-10-2010, 08:20 PM
good!
A question ... do you know how to edit:
http://www.exampleforum.com/forum/search.php?do=getnew
in order to obtain new posts from all the forum excluded someone?
for example I don't want to take into account new posts from forum 44 ... any ideas?
SuperGLS
03-15-2010, 02:48 AM
Allan, any plans on putting this in plugin form to avoid having to make the change at every update?
voglermc
03-17-2010, 12:39 AM
check your install, when I'm in my settings, quick links has the normal pull down, not all like on the forum home
docvader
04-30-2010, 05:40 PM
What template do we use to change the wording in the "what's new" link? I want to search for more than 24 hours, as I had in my previous 3.7 version. I usually have links for 7, 14, 21, 30, 60, 90 days, as some of my visitors are kind of "infrequent".
Bounce
05-14-2010, 07:01 PM
In 4.0.2 this code is already implemented but i can't see the url in quick link menu...why?
same for me, why is it not there? :eek:
Videx
07-07-2010, 02:30 AM
Yes, this isn't making too much sense any longer in 404. Can we get some updated instructions?
Edit: Maybe this will make more sense. In the navbar template, find around line 68 <li><a href="subscription.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>Add on the line before it <li><a href="search.php?do=getdaily&contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
Gero50
08-01-2010, 03:49 AM
Instaled, thanks so much this will be so nice.
Dr Aj642
08-03-2010, 09:02 AM
When i click on View threads with no reply, i get this
Please add more constraints to your search. Searches that return all or most of the database are a bad idea
Any ideas ?
Need to somehow code the line below to a restricted search, say show up the last 30 threads with no posts. I'm not a coding guy so i don't know what to change.
<li><a href="search.php?do=process&replyless=1&replylimit=0&exclude=30">Threads with no replies</a></li>
Front Range 4x4
08-04-2010, 12:59 AM
Merci Allan, nice touch!
Dr Aj642
08-11-2010, 10:41 PM
Need to somehow code the line below to a restricted search, say show up the last 30 threads with no posts. I'm not a coding guy so i don't know what to change.
<li><a href="search.php?do=process&replyless=1&replylimit=0&exclude=30">Threads with no replies</a></li>
Anyone got any ideas?
Videx
08-11-2010, 11:00 PM
There's already a way to show unanswered threads if that's what you're looking for.
Forum-wide Search For Unanswered Threads (https://vborg.vbsupport.ru/showthread.php?t=244842&highlight=unanswered)
Search For Unanswered Threads By Forum (https://vborg.vbsupport.ru/showthread.php?t=244875&highlight=unanswered)
sbsforum.us
08-18-2010, 01:31 AM
Thanks, Installed!
Mr Peabody
09-12-2010, 07:23 AM
No idea why they removed it.
Cheers for the fix!.
Videx
09-13-2010, 02:42 AM
FYI, there's a vote up at http://tracker.vbulletin.com/browse/VBIV-8256
FReeSTER
11-29-2010, 10:59 PM
Yes, this isn't making too much sense any longer in 404. Can we get some updated instructions?
Edit: Maybe this will make more sense. In the navbar template, find around line 68 <li><a href="subscription.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>Add on the line before it <li><a href="search.php?do=getdaily&contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
Thank you works on vB 4.0.8 pl2:D
Fergal C
12-04-2010, 02:20 PM
Thanks for that, installed.
Danasy
12-05-2010, 01:11 AM
Installed! :D
Thanks
indyonline
12-09-2010, 01:59 AM
Above the first:
<li><a href="subscription.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>
These are the real, working install instructions.
Thanks man.
Dez_U
12-24-2010, 08:23 PM
Great, thanks for this, have had lots of complaints about this, cheers
Detay
12-27-2010, 08:01 PM
thanks man
bintoro
01-06-2011, 07:12 AM
Thanks to Videx and original post. Installed.
Perfect...
i modified it a little bit to put all these nice Searchlinks in one menu
After
{vb:raw template_hook.navbar_after_getnew}
Insert
<li class="popupmenu">
<a href="javascript://" class="popupctrl" accesskey="7">{vb:rawphrase search_links}</a>
<ul class="popupbody popuphover">
<li><a href="search.php?{vb:raw session.sessionurl}do=getnew&contenttype=vBForum_P ost">{vb:rawphrase new_posts_nav}</a></li>
<li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&contenttype=vBForum _Post">{vb:rawphrase todays_posts}</a></li>
<li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&contenttype=vBForum _Post&days=7">{vb:rawphrase week_posts}</a></li>
<li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&contenttype=vBForum _Post&days=30">{vb:rawphrase month_posts}</a></li>
<li><a href="search.php?{vb:raw session.sessionurl}do=process&contenttype=vBForum_ Post&replyless=1&replylimit=0&exclude=30">{vb:rawphrase replyless_posts}</a></li>
</ul>
</li>
voglermc
01-12-2011, 12:54 PM
Perfect...
i modified it a little bit to put all these nice Searchlinks in one menu
Not working in 4.1.1 but thanks!
COL NIL SATIS
01-14-2011, 04:43 PM
thanks,nice job
RichieBoy67
01-16-2011, 02:45 PM
This is great Allan. Thank you so much..
Richie
hyppa
01-19-2011, 11:47 AM
Works perfect in the 4.1.1.
Thanks.
traen
01-30-2011, 05:44 PM
Is it possible to modify this so guests can view the daily posts as well?
Edit: Would you just need to modify this part of the code right above the today's posts line? What would you replace it with, guest? Or just "$show[]"?
<vb: if condition="$show['member']">
Edit to add again:
I only want the daily posts viewable to guests, not new posts just to clarify.
Videx
01-30-2011, 10:35 PM
My forum already shows "Today's Posts" to Guests on the navbar. It changes to "New Posts" when you log in, and this one shows under Quick Links.
traen
01-30-2011, 11:40 PM
Guests can see it only when they click what's new, but they get a no permissions page. Its not on the quick links tab at all for guests, works fine for logged in users.
Edit to add: And I'd also like to place a daily posts link on the cms home page on the quick links bar as well. We used to have vbadvanced before the upgrade which had a recent activity page viewable to everyone, I'm hoping that this would be a suitable replacement.
I would need it on the home page as well to really satisfy that need, any help would be greatly appreciated.
Thanks.
traen
02-03-2011, 12:18 AM
So is there no way to enable this for guests to use?
Edit: I figured it out, no worries.
jar546
02-06-2011, 02:46 AM
Not to sound like an idiot but is this something that can be changed through the Admin CP or do I have to use my Dreamweaver?
Videx
02-06-2011, 05:22 AM
Not to sound like an idiot but is this something that can be changed through the Admin CP or do I have to use my Dreamweaver?It's a template edit done via AdminCP>Styles and templates>Style Manager>Edit templates.
jar546
02-06-2011, 10:50 AM
It's a template edit done via AdminCP>Styles and templates>Style Manager>Edit templates.
Got it, thank you.
BellyBelly
02-08-2011, 04:35 AM
Very happy, my members have been asking for this back for AAAAAAGES.
Merenguista
02-08-2011, 09:06 PM
thanks a lot ..
jitsuboy
02-10-2011, 07:15 AM
I don't have a quick link tab on my 4.1.1..why? I want this mod!
woffie
03-02-2011, 09:14 AM
Does not work with 4.1.2
Freewings2
03-27-2011, 07:00 PM
how can we do this in 4.1.2? Really missing the today's posts option:(
Videx
03-27-2011, 07:34 PM
Mine's still working in 4.1.2. It's sitting on line 69 now, but still after the third 'show member'. <a href="javascript://" class="popupctrl" accesskey="3">{vb:rawphrase quick_links}</a>
<ul class="popupbody popuphover">
<vb:if condition="$show['member']">
<li><a href="search.php?do=getdaily&contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
<li><a href="{vb:link subscription}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>
Freewings2
03-27-2011, 10:47 PM
awesome, thank you :) Much better having that back ;)
orangecopper
04-16-2011, 03:10 PM
Cool Man!
It worked for me, thanks a lot!
cheers
Josh
spillage
04-19-2011, 11:36 PM
I got a template conflict when doing the 4.1.3 update.
I removed the old mode code, and reinserted it after the update (per the instructions).
All works fine.
SuperGLS
05-02-2011, 12:58 PM
Ah yes, thanks Videx! Working good for me now on 4.1.2.
BlueCheri
06-24-2011, 04:54 PM
Thanx a lot
steven vaccaro
07-03-2011, 12:44 AM
I've just upgraded to vb4 and its part of it already. Am I missing something?
Videx
07-03-2011, 01:01 AM
I've just upgraded to vb4 and its part of it already. Am I missing something?Yes. See my post: https://vborg.vbsupport.ru/showpost.php?p=2156670&postcount=51
Satfool1
07-03-2011, 11:21 PM
great stuff, very handy to have back
maxie
07-06-2011, 12:56 AM
working n 4.1.2
in navbar find
<li><a href="{vb:link subscription}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>
paste above
<li><a href="search.php?do=getdaily&contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
BajaBoatOwners
11-22-2011, 07:45 PM
Is there a way to make this functional as a "Active Posts"? In otherwords create a Tab when you click on it it pulls up all threads in say last 5 days?
CSS59
12-10-2011, 12:31 AM
now can I put today's posts next to what's new in the main navbar?
SGT Rock
02-16-2012, 04:42 PM
Good mod, I just installed it. One question if someone can help...
I would like this link to still be available in the nav bar once you go to the search results. But it isn't there after doing the search.
MrSquid
03-10-2012, 09:06 PM
Yes - I'm with CSS59 - I want "Today's Posts" next to "What's New" too. I'm building a new style and want it like that on this new one.
I took over a site from another admin, and somehow he had accomplished that in our old style, but I can't figure out HOW he did it.
wildheart
03-27-2012, 10:39 AM
Yes - I'm with CSS59 - I want "Today's Posts" next to "What's New" too. I'm building a new style and want it like that on this new one.
I took over a site from another admin, and somehow he had accomplished that in our old style, but I can't figure out HOW he did it.
I dont want New Posts at all so I replaced it with Today's posts.
Find in Navbar
<li><a href="search.php?{vb:raw session.sessionurl}do=getnew&contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>
Replace with:
<li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
Eq4bits
09-07-2012, 03:58 PM
anyone know if there is a fix for using this in v4.2? the 'find' phrase as described does not exist ... it's only present in navbar template one time ....
Videx
09-07-2012, 06:23 PM
That's actually a good question because my navbar template is showing as default in 4.2, but "Today's Posts" is still on my Quick Links dropdown.
I sure don't remember editing anything else, and I can't remember installing any other mods. Could 4.2 have come with Today's Posts included?
I guess I'll mark this as uninstalled because if it still is I sure can't figure out where.
Eq4bits
09-09-2012, 05:58 PM
My bad, guess it's a 'built-in' for v4.2PL2 though I *did* have to go to Settings>Navigation Manager then 'expand' Forum to show links and put a check mark beside 'Today's Posts' to make it active. I guess with the default is 'not active' or something.
Thanks tho.
Marking this as 'uninstalled' since it is now built-in.
Great Mod for versions 4.0.x-4.1.x
Videx
09-10-2012, 12:06 AM
Holy cow I don't think I even knew you could expand those items! Consequently, I clearly never had to do this for mine. All my selections are checked, and must have been by default. Even one for my PhotoPost Classifieds. Apparently whoever coded that particular upgrade was really on the ball!
thenags
12-22-2012, 06:32 PM
Worked perfect. Thanks.
hyppa
03-02-2013, 05:16 PM
Cant use for 4.2. :(
dandanch
03-03-2013, 08:13 PM
^hyppa, I think in 4.2.0 you should have the today's link in quicks Links.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.