The Arcive of vBulletin Modifications Site. |
|
Search: New Posts - Auto-refresh. Details »»
|
|||||||||||||||||||||||||
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> <if condition="$action == 'getdaily'"><meta http-equiv="refresh" content="30" url="search.php?do=getdaily"></if> 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! Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
Nice idea. One day this will be done via ajax with alert noises etc etc
|
|
#4
|
|||
|
|||
|
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! |
|
#5
|
|||
|
|||
|
I like the idea here a lot, however...this is what I get when trying to save the template
Quote:
|
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
Understood, I appreciate the response, gpchost!
|
|
#8
|
||||
|
||||
|
Good idea for company forums.
Thanks, Mat |
|
#9
|
||||
|
||||
|
Wow that's good.
|
|
#10
|
|||
|
|||
|
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> <if condition="$action == 'getdaily'"><meta http-equiv="refresh" content="30" url="search.php?do=getdaily"></if> |
![]() |
|
|