Jump to content


Tutorial info Visit support topic

  • Added on: Mar 05 2006 08:48 AM
  • Date Updated: May 30 2006 07:51 PM
  • Views: 865
 


* * * * *
0 Ratings

default signature

with this Tutorial u will define a default signature for members who havnt yet defined one for themselfs.

Posted by Vince on Mar 05 2006 08:48 AM
<font color="red">
files to edit:
</font>

sources/Topics.php
lang/en/lang_topic.php

<font color="red">
first step:
</font>
open: sources/Topics.php

find:

 //--------------------------------------------------------------
 // Siggie stuff
 //--------------------------------------------------------------
 
 $row['signature'] = "";
 
 if ($poster['signature'] and $ibforums->member['view_sigs'])
 {
  if ($row['use_sig'] == 1)
  {
   if ( $ibforums->vars['sig_allow_html'] == 1 )
   {
	$poster['signature'] = $this->parser->parse_html($poster['signature'], 0);
   }
   
   if ( $ibforums->vars['post_wordwrap'] > 0 )
   {
	$poster['signature'] = $this->parser->my_wordwrap( $poster['signature'], $ibforums->vars['post_wordwrap']);
   }
   
   $row['signature'] = $skin_universal->signature_separator($poster['signature']);
  }
 }


replace with:


 //--------------------------------------------------------------
 // Siggie stuff & custom sig to users who havnt defined one
 //--------------------------------------------------------------
 
 if ($row['signature'] == "")
											  {
																			$row['signature'] = $skin_universal->signature_separator($ibforums->lang['custom_sig']);
											  }
											  else
											  {
 
 if ($poster['signature'] and $ibforums->member['view_sigs'])
 {
  if ($row['use_sig'] == 1)
  {
   if ( $ibforums->vars['sig_allow_html'] == 1 )
   {
	$poster['signature'] = $this->parser->parse_html($poster['signature'], 0);
   }
   
   if ( $ibforums->vars['post_wordwrap'] > 0 )
   {
	$poster['signature'] = $this->parser->my_wordwrap( $poster['signature'], $ibforums->vars['post_wordwrap']);
   }
   
   $row['signature'] = $skin_universal->signature_separator($poster['signature']);
  }
 }
}

save and upload.

<font color="red">
step two:
</font>

open: lang/en/lang_topic.php

find:

$lang = array (

add below:

'custom_sig' => "your custom sig to users who havent yet defined it",

save and upload.

if u want to put an image instead of text then:

open: lang/en/lang_topic.php

find:

'custom_sig' => "your custom sig to users who havent yet defined it",

and replace with:

'custom_sig' => " <img src='http-to-image'>",

save and upload.

replace http-to-image with the image url.

NJOY

Powered by Tutorials 1.4.1 © 2012, by Michael McCune