vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   View posts in last [x] hours (https://vborg.vbsupport.ru/showthread.php?t=66089)

amykhar 12-16-2004 04:30 PM

I have it done already for somebody else. Let me dig up the code and I'll release tomorrow. No time today.

trevelyn1015 12-16-2004 04:32 PM

you are the man :)


edit: i see your name is amy... you are the WOman... :o

jos 12-17-2004 03:45 AM

Quote:

Originally Posted by Reef
Thanks for helping out so fast with this all-the-vb

Works very well, Nice Job :up:


man, this is so nice, i would love to add this to my group.

can somebody who doesn't have any hacking knowledge, like myself, do this?

do i just open the files in a text editor, and than just copy the code that all-the-vb posted... copy and paste?

please advise. maybe this will be stepping stone into hacking vb? :ermm:

I sure would like to learn, as i have tens of ideas for modifications that i would like to make and then freely share here with others.

Peace, jo

trevelyn1015 12-17-2004 02:34 PM

Quote:

Originally Posted by jos
do i just open the files in a text editor, and than just copy the code that all-the-vb posted... copy and paste?


do exactly this:

Quote:

Originally Posted by all-the-vb
open (FORUMDISPLAY) templates:

find:
Code:

<select name="daysprune" style="width:125px">
after that add:
Code:

<option value="900">15 min</option>
<option value="1800">30 min</option>
<option value="2700">45 min</option>
<option value="3600">1 Hours</option>
<option value="7200">2 Hours</option>
<option value="21600">6 Hours</option>
<option value="43200">12 Hours</option>


open forumdisplay.php

find:
PHP Code:

        $datecut '';
        
$show['noposts'] = true;
    } 

after that add:

PHP Code:

$all_the_vb = array(900,1800,2700,3600,7200,21600,43200);

if(
in_array ($daysprune,$all_the_vb))
    {
        
$datecut "AND lastpost >= " . (TIMENOW - ($daysprune));
        
$show['noposts'] = false;



to get to your templates:

go to admincp -> styles and templates -> style manager, then on your style(s) drop down list click on <edit templates>.. if you have more than one style, do it on both of them...

to mod your forumdisplay.php, ftp your site, grab the file, modify it in a text editor or dreamweaver or whatever, then save it and upload it back to your server. make sure to have a backup, though... in case you mod that file incorrectly...

trevelyn1015 12-19-2004 01:36 AM

Quote:

Originally Posted by amykhar
I have it done already for somebody else. Let me dig up the code and I'll release tomorrow. No time today.

bumpity bump bump

amykhar 12-19-2004 02:28 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=73077" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=73077</a>

ArAb4NoKiA 12-20-2004 12:33 PM

TaNxXxXxxXXx


All times are GMT. The time now is 06:16 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.01157 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete