• OzzModz is no longer taking registrations. All registrations are being redirected to Snog's Site
    All addons and support is available there now.

Two Week delay possible?

adwade

New member
Where the XML file for v3.8.x reads:
Code:
<scheduling weekday="-1" day="-1" hour="0" minute="10" />

If I wanted the PM delayed until two weeks had passed since a user registered, could this line be edited in the XML file and then imported to achieve that purpose? If so, what would the revised code be?
 
No, you would not change that, you would need a file edit. Edit the file, ozzmodz_mods/followup_pm/ozzmodz_followup_pm

Find:
PHP:
    $weeks_info = $vbulletin->db->query_read("
        SELECT *
            FROM " . TABLE_PREFIX . "user
            WHERE DATEDIFF(NOW(), FROM_UNIXTIME(joindate)) >= 7
            AND DATEDIFF(NOW(), FROM_UNIXTIME(joindate)) <= 8
    ");

Change to:
PHP:
    $weeks_info = $vbulletin->db->query_read("
        SELECT *
            FROM " . TABLE_PREFIX . "user
            WHERE DATEDIFF(NOW(), FROM_UNIXTIME(joindate)) >= 14
            AND DATEDIFF(NOW(), FROM_UNIXTIME(joindate)) <= 15
    ");
 
Thanxx, found it and revised it!

Now a brief second question, and please forgive my ignorance. It says to "upload the contents of the UPLOAD folder", but when I unzipped the MOD I found the UPLOAD folder contains two sub-folders (i.e. /ozzmodz_mods, then /followup_pm a subfolder of the previous one) neither of which exist on my server now.

So does one just upload the /ozzmodz_mods folder (along with /followup_pm) into the forums directory?

If not, then where to?
 
Correct, you upload the contents of the upload folder to the same folder that contains your forum files.
 
Back
Top