Site in read-only mode

This site is now read-only following the release of MyBB 1.8 and the new mods site.

If you are looking for MyBB 1.8 mods please click here to visit the new mods site.

You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.

Write Review

Reviews

Hide on Index - 1.0.0 by Jan

Released for 1.2.x.

Produces errors.

More plugin details: http://www.mybbcoder.info/thema-659.html

Written By: AussieJay, 23rd August 2009

To make it work, open plugin file and find;

PHP Code:
function hideonindex_activate()
{
    global 
$db;

    
$hideonindex_group = array(
        
"gid" => "NULL",
        
"name" => "hideonindex",
        
"title" => "Hide on Index",
        
"description" => "Versteckt Kategorie auf der Startseite",
        
"disporder" => "1",
        
"isdefault" => "no"
        
);
    
$db->insert_query(TABLE_PREFIX."settinggroups"$hideonindex_group);
    
$gid $db->insert_id();
    
$hideonindex_1 = array(
        
"sid" => "NULL",
        
"name" => "hide_cat",
        
"title" => "ID der Kategorien",
        
"description" => "Welche Kategorien(Id) sollen versteckt werden? Mehrere IDs mit Komma trennen.",
        
"optionscode" => "text",
        
"value" => "",
        
"disporder" => "1",
        
"gid" => intval($gid)
        );
    
$db->insert_query(TABLE_PREFIX."settings"$hideonindex_1);
    
rebuildsettings();


and Change it into;

PHP Code:
function hideonindex_activate()
{
    global 
$db;

    
$hideonindex_group = array(
        
"gid" => "NULL",
        
"name" => "hideonindex",
        
"title" => "Hide on Index",
        
"description" => "Versteckt Kategorie auf der Startseite",
        
"disporder" => "1",
        
"isdefault" => "no"
        
);
    
$db->insert_query("settinggroups"$hideonindex_group);
    
$gid $db->insert_id();
    
$hideonindex_1 = array(
        
"sid" => "NULL",
        
"name" => "hide_cat",
        
"title" => "ID der Kategorien",
        
"description" => "Welche Kategorien(Id) sollen versteckt werden? Mehrere IDs mit Komma trennen.",
        
"optionscode" => "text",
        
"value" => "",
        
"disporder" => "1",
        
"gid" => intval($gid)
        );
    
$db->insert_query("settings"$hideonindex_1);
    
rebuildsettings();

Written By: Yaldaram, 18th November 2011

Write Review