Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
Dr. Scream

[Suche] THX Mod

Recommended Posts

Okay, dann öffne mal die mod_thx_machine_func.php und suche folgende Stelle:

//-------------------------------

// Reply permissions?

//-------------------------------

    if($this->forum['allow_thanks']==1)

      {

       

if ( $std->check_perms($this->forum['reply_perms']) != TRUE )

        {

  $this->output = $std->Error( array( 'LEVEL' => 1, 'MSG' => 'no_permission' ) );

        }

 

// a user shouldn´t be able to thank himself:

$DB->query("SELECT * FROM ibf_topics WHERE tid = " . $ibforums->input['t']);

$s = $DB->fetch_row();

if ($s['starter_id']==$ibforums->member['id'])

{

  $this->output = $std->Error( array( 'LEVEL' => 1, 'MSG' => 'no_permission' ) );

}

Ändere die rot markierte Stelle in no_own_thanks und in der lang_error.php fügst du folgendes ein:

'no_own_thanks'   	 =>	"Es ist nicht möglich sich in seinen eigenen Beitrag zu bedanken!",
Bzw. bei anderer Arrayschreibweise:
$lang['no_own_thanks']   	 =	"Es ist nicht möglich sich in seinen eigenen Beitrag zu bedanken!";

Nun solltest du eine eigene Fehlermeldung haben. ;)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×