vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   enhanced "Posts of past 24 hours" (https://vborg.vbsupport.ru/showthread.php?t=64843)

Chriss74 05-07-2004 02:08 PM

enhanced "Posts of past 24 hours"
 
1 Attachment(s)
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/showthrea...ghlight=active

and the unanswered posts is located here
https://vborg.vbsupport.ru/showthrea...ght=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

Quote:

Originally Posted by Chriss74
@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

Quote:

Originally Posted by msimplay
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

Quote:

Originally Posted by msimplay
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
PHP Code:

search.html?do=process&searchdate=1&searchuser=Chriss74&starteronly=

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":
PHP Code:

search.html?do=process&searchdate=1&searchuser=Chriss74&starteronly=0&today=

Then I changed the template search_forums with
PHP Code:

<if condition="$today">own header</i

This option should work, but vb is saving the query to the cache and the result is
PHP Code:

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

Quote:

Originally Posted by Chriss74
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
PHP Code:

search.html?do=process&searchdate=1&searchuser=Chriss74&starteronly=

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":
PHP Code:

search.html?do=process&searchdate=1&searchuser=Chriss74&starteronly=0&today=

Then I changed the template search_forums with
PHP Code:

<if condition="$today">own header</i

This option should work, but vb is saving the query to the cache and the result is
PHP Code:

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.


All times are GMT. The time now is 09:53 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
  • Page Generation 0.01172 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete