PDA

View Full Version : enhanced "Posts of past 24 hours"


Chriss74
05-07-2004, 02:08 PM
Hi Forum,

on my xmb-board I had an enhanced version of "Posts of past 24 hours". This site was best liked site of all. Maybe a hack for a similar function for the vb-board already exists.

What is different?
1.) The User has the possibility to only view threads of the past 24 hours, in which he posted himself
2.) Postings of a particular forum (in my case, the forum "Geplauder") are not displayes by default. Only if the user clicks on "Show forum Geplauder", the postings of this forum will appear on the Postings of the past 24 hours.
3.) It is possible to show the postings of the past 24 hours, but also of the last 48 hours, the last week, and so on.
4.) It is possible to show only threads with no answer or threads which are closes or threads with polls or moved threads.

Does such a hack for bulletin already exist? Or can anybody make such a hack?

In the attached pic, you can see a screenshot of the xmb-function.

Thanks for any advice!
Greetings,
Chriss

msimplay
05-07-2004, 02:29 PM
the 24 hours thing is a template modification

https://vborg.vbsupport.ru/showthread.php?t=62774&highlight=active

and the unanswered posts is located here
https://vborg.vbsupport.ru/showthread.php?t=63008&highlight=unanswered

Chriss74
05-07-2004, 03:39 PM
@msimplay: Thanks! But I think it would be better to have all functions together in one hack, like I had in XMB.

Maybe, there is another hack, which combines all features?

Greetings,
Chriss

msimplay
05-07-2004, 03:50 PM
@msimplay: Thanks! But I think it would be better to have all functions together in one hack, like I had in XMB.

Maybe, there is another hack, which combines all features?

Greetings,
Chriss
template edits are not hacks
only the unread posts is a hack

just install of them check my site i have them installed theres a drop down called new posts and thats my implementation of it

ps this hack is actually better coz u can do unread posts per forum basis

Chriss74
05-08-2004, 06:16 PM
template edits are not hacks
only the unread posts is a hack

It ist necessary to modificate in the search.php-File to add my wished features. So it's a hack. By changing the templates I only can add the function "past 24 hours".

Greetings,
Chriss

msimplay
05-08-2004, 08:30 PM
no u can add more than 24 hours the search.php has it built in just use the template modification given before

Chriss74
05-08-2004, 10:47 PM
no u can add more than 24 hours the search.php has it built in just use the template modification given before
Ok, most things can be managed by updating the template-files. For example, if i want to list the threads with postings from me, i can follow the url search.html?do=process&searchdate=1&searchuser=Chriss74&starteronly=0

Then I will get a search-result. But I want an extra site with page-title "Postings of the past 24 hours" instead of a search-file. Therefore I added an additional variable "today":
search.html?do=process&searchdate=1&searchuser=Chriss74&starteronly=0&today=1

Then I changed the template search_forums with
<if condition="$today">own header</i>

This option should work, but vb is saving the query to the cache and the result is
search.html?searchid=15

Here my new variable "today" is gone and my if-query cannot work correctly. So I have to save my "today"-variable in the search.php. But how?


Greetings,
Chriss

Zachery
05-08-2004, 10:54 PM
Ok, most things can be managed by updating the template-files. For example, if i want to list the threads with postings from me, i can follow the url search.html?do=process&searchdate=1&searchuser=Chriss74&starteronly=0

Then I will get a search-result. But I want an extra site with page-title "Postings of the past 24 hours" instead of a search-file. Therefore I added an additional variable "today":
search.html?do=process&searchdate=1&searchuser=Chriss74&starteronly=0&today=1

Then I changed the template search_forums with
<if condition="$today">own header</i>

This option should work, but vb is saving the query to the cache and the result is
search.html?searchid=15

Here my new variable "today" is gone and my if-query cannot work correctly. So I have to save my "today"-variable in the search.php. But how?


Greetings,
Chriss
All templares are continaed within the database NOT the file system.