MyBB Community Forums

Full Version: problem in postbit-Gender:
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hi all..
i used ((Litesoft Gender in postibt )) in my forum .. and when i deactivate it it is still have Gender in post bit and i deleted it in FTP but untill know have in post bit ..!!??Huh what i mast to do ?
and i checked in temple-postbit theirs no cod for these plugging ??
Just upload the file that you deleted, thats the easy way?!
but i want to don't show in postbit !!??
Upload or install the plug in again, sorry for the miss understanding!?
i edited it these file i changed Gender to my langueage but when i deactivate that it is still shown in postbit[attachment=13714]
Have a look in ACP > Templates & Style > Templates > **expand template set** > Postbit Templates > postbit_author_user for Gender or something similar. If you can't find anything, post the code and I'll take a look.
i deleted all cod in postbit_author_user but have same thing like that picture i showed ??
Can you post a link to where I can download the plugin or post the code from the plugin file.
<?php
/**
 * MyBB 1.4
 * Copyright © 2008 LiteSoft
 */

// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

//All the information about the plugin. These will appear in the plugins list.
function lgp_info()
{
    return array(
        "name"          => "Litesoft Gender in postibt",
        "description"   => "This plugins shows the gender in the postbit",
        "website"       => "http://litesoft.info",
        "author"        => "LiteSoft Group",
        "authorsite"    => "http://litesoft.info",
        "version"       => "2.0",
        "compatibility" => "14*",
    );
}

//All the activation processes go here
function lgp_activate()
{
	global $db, $mybb;
require MYBB_ROOT.'/inc/adminfunctions_templates.php';
	find_replace_templatesets("postbit", "#".preg_quote('{$post[\'user_details\']}<br />
Gender: <b><img src="images/{$post[\'fid3\']}.png" alt="{$post[\'fid3\']}"><br></b></span>')."#i", '', 0);
	find_replace_templatesets("postbit_classic", "#".preg_quote('{$post[\'user_details\']}<br />
Gender: <b><img src="images/{$post[\'fid3\']}.png" alt="{$post[\'fid3\']}"><br></b></span>')."#i", '', 0);

	find_replace_templatesets("postbit", "#".preg_quote('{$post[\'user_details\']}')."#i", '{$post[\'user_details\']}<br />
Gender: <b><img src="images/{$post[\'fid3\']}.png" alt="{$post[\'fid3\']}"><br></b></span>');
	find_replace_templatesets("postbit_classic", "#".preg_quote('{$post[\'user_details\']}')."#i", '{$post[\'user_details\']}<br />
Gender: <b><img src="images/{$post[\'fid3\']}.png" alt="{$post[\'fid3\']}"><br></b></span>');
}

//All deactivation processes go here
function lgp_deactivate()
{
	global $db, $mybb;
require MYBB_ROOT.'/inc/adminfunctions_templates.php';
	find_replace_templatesets("postbit", "#".preg_quote('<br />
Gender: <b><img src="images/{$post[\'fid3\']}.png" alt="{$post[\'fid3\']}"><br></b></span>')."#i", '', 0);
	find_replace_templatesets("postbit_classic", "#".preg_quote('<br />
Gender: <b><img src="images/{$post[\'fid3\']}.png" alt="{$post[\'fid3\']}"><br></b></span>')."#i", '', 0);

}
?>
ACP > Templates & Style > Templates > **expand template set** > Postbit Templates > postbit.

Again, if you can't find it, post the code of the template.
Pages: 1 2