Sponsored Content
The Lounge What is on Your Mind? Search for REALLY old threads / posts Post 303029001 by Neo on Saturday 19th of January 2019 11:10:08 AM
Old 01-19-2019
OK.. "mai pen rai" .... I think this is the basic PHP ....

Code:
<?php
if ($vbulletin->GPC['searchbyyear'] >= 2000 and $vbulletin->GPC['searchbyyear'] <= $date('Y')) {
    $start_year_unixtime = $mktime(0, 0, 0, 1, 1, $vbulletin->GPC['searchbyyear']);
    $end_year_unixtime = $mktime(23, 59, 59, 12, 31, $vbulletin->GPC['searchbyyear']);
    $thread_query_logic[] = "thread.dateline >= " . $start_year_unixtime . " thread.dateline <= " . $end_year_unixtime;
}

I think I just add this logic above ... and set up the HTML and the HTTPD $_POST for this new $vbulletin->GPC['searchbyyear'] var and we are all set.
 

We Also Found This Discussion For You

1. Post Here to Contact Site Administrators and Moderators

How do i delete threads/posts?

I cannot find the option anywhere when i click on "Edit". (2 Replies)
Discussion started by: johnthebaptist
2 Replies
PHP_STRIP_WHITESPACE(3) 						 1						   PHP_STRIP_WHITESPACE(3)

php_strip_whitespace - Return source with stripped comments and whitespace

SYNOPSIS
string php_strip_whitespace (string $filename) DESCRIPTION
Returns the PHP source code in $filename with PHP comments and whitespace removed. This may be useful for determining the amount of actual code in your scripts compared with the amount of comments. This is similar to using php -w from the commandline. PARAMETERS
o $filename - Path to the PHP file. RETURN VALUES
The stripped source code will be returned on success, or an empty string on failure. Note This function works as described as of PHP 5.0.1. Before this it would only return an empty string. For more information on this bug and its prior behavior, see bug report #29606. EXAMPLES
Example #1 php_strip_whitespace(3) example <?php // PHP comment here /* * Another PHP comment */ echo php_strip_whitespace(__FILE__); // Newlines are considered whitespace, and are removed too: do_nothing(); ?> The above example will output: <?php echo php_strip_whitespace(__FILE__); do_nothing(); ?> Notice the PHP comments are gone, as are the whitespace and newline after the first echo statement. PHP Documentation Group PHP_STRIP_WHITESPACE(3)
All times are GMT -4. The time now is 06:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy