![]() |
Search: New Posts - Auto-refresh.
I tend to keep my browser on the New Post page to see if there are any new posts needing my attention.
With most popular web e-mail clients you see how many new e-mails there are in your browsers title bar along with an auto refresh to check for new e-mails, why not have the same for your forums? I did this for my last forums and figured I would do it for vB, since this forum has given me tons of cool stuff already I enjoy trying to give some stuff back, hopefully someone else will find this u sefull. This is very easy to do so give it a shot: admincp > style manager > edit templates > search templates > search_results Modify the header: # ORIGINAL Code:
<title>$vboptions[bbtitle] - $vbphrase[search_results]</title> Code:
<title><if condition="$action == 'getdaily'">$numitems posts today - </if>$vboptions[bbtitle] - $vbphrase[search_results]</title> Really basic but very functional, got to love tabbed browsing and the ability to see all "new" activity without being on the tab, super lazy! |
I've failed to realize the searchid is not static..
:grumbles: I'll post an update shortly... ** I changed it to <if condition="$action == 'getnew'"> so it only shows on new posts -- Well sorry I jumped the gun posting all of this, I changed it to getdaily, if there are no posts it displays the vB message and not the search_results template, I'll figure out what tpl it shows the error in and post those changes later. |
Nice idea. One day this will be done via ajax with alert noises etc etc :)
|
Jez glad I know how to use AJAX :)
http://gamecp.com/ajax/ I might give your idea a shot Borgs8472, jez I should be working on my program! |
I like the idea here a lot, however...this is what I get when trying to save the template
Quote:
|
Sorry was missing the close ' in:
<if condition="$action == 'getdaily'"> Doing it with getnew shows the 'no new posts' more often and since that requrires another tpl edit I didnt want to do it, getdaily tends to always show atleast something so youll wake up, see 2 posts, read em then when it says 3 post you got a new one. Its not perfect, just something basic and simple to do. |
Understood, I appreciate the response, gpchost!
|
Good idea for company forums.
Thanks, Mat |
Wow that's good.
|
so is the coding in the original post for the hack
Code:
<title><if condition="$action == 'getdaily'">$numitems posts today - </if>$vboptions[bbtitle] - $vbphrase[search_results]</title> |
All times are GMT. The time now is 01:36 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:
|