Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-07-2004, 02:08 PM
Chriss74 Chriss74 is offline
 
Join Date: Apr 2004
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default enhanced "Posts of past 24 hours"

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
Attached Images
File Type: jpg screenshot.jpg (72.7 KB, 0 views)
Reply With Quote
  #2  
Old 05-07-2004, 02:29 PM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 05-07-2004, 03:39 PM
Chriss74 Chriss74 is offline
 
Join Date: Apr 2004
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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
Reply With Quote
  #4  
Old 05-07-2004, 03:50 PM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 05-08-2004, 06:16 PM
Chriss74 Chriss74 is offline
 
Join Date: Apr 2004
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 05-08-2004, 08:30 PM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no u can add more than 24 hours the search.php has it built in just use the template modification given before
Reply With Quote
  #7  
Old 05-08-2004, 10:47 PM
Chriss74 Chriss74 is offline
 
Join Date: Apr 2004
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 05-08-2004, 10:54 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:34 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.04253 seconds
  • Memory Usage 2,278KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete