activate-deactivate a site!

xryskom

Member
there is any way to dispaly on the site if the website is activate ot deactivate? ofc until to active for the admin panel!
 

soccerki

Member
There is, follow this step-by-step process to de-activate a website. It's quite simple if you think about it :)

Step 1: Go to Manage Members located under Members drop-down list.
Step 2: Find the username you want to de-activate, and click "Edit" under the actions menu.
Step 3: Scroll to the bottom of the page, where it says this site is: Active (listed), Inactive (not listed), Or temp-inactive.

I hope this guide helps! Cheers!
 

Basti

Administrator
Staff member
You would need to make a plugin, since the database values are stored as 0, 1, 2 or 3

If you want to display it on the rankings, the file needed for the plugin would be rankings_compile_stats.php
In case of details page, it would be details_build_page.php

In both cases the code needed would be
Code:
switch($TMPL['active'])
{
    case 0: $TMPL['active_text'] = 'Pending'; break;
    case 1: $TMPL['active_text'] = 'Active'; break;
    case 2: $TMPL['active_text'] = 'Deactivated'; break;
    case 3: $TMPL['active_text'] = 'Inactive due no PV/ Hits in'; break;
}
Then paste {$active_text} in your html file to have it show the proper text.
Please note that "pending" will never show since vl 1.3, as pending sites are neither displayed on the ranking or details anymore. I just included it for the completeness
 
Top