bu mod sayesinde atılan mesajın ilk harfi resim olarak çıkıyor.
örneğin "Haydi gidelim" yazdığınızda bu "
aydi gidelim "die görünüyor. pek bi işlevi yok ama foruma rek katar.
gerekli dosyalar ektedir, içinde 5 farklı karakter seti mevcut. ama ne yazııkki türkçe karakterler mevcut değil. ama resim yeteneğiniz iiyse modda gerekli yerleri düzenleyerek onlarıdsa ekleyebilirsiniz.
##############################################################
## MOD Title: Image_First_Postletter
## MOD Author: wicher <http://www.detecties.com/phpbb2018>
##
##
## MOD Description: This mod replaces the first letter of a posting in a letterimage.
## The user can set in there profile if they want to use it or not.
## For additional LetterPacks go to https://tik.lat/tOVpm
## note: Feel free to design your own letterpack for this mod and
## post them at https://tik.lat/y1GVh
## or submit them to https://tik.lat/kjKdV .
##
## MOD Version: 1.0.5
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: includes/usercp_register.php
## viewtopic.php
## templates/subSilver/profile_add_body.tpl
## language/lang_englisch/lang_main.php
## Included Files: 26
##############################################################
## For Security Purposes, Please Check: https://tik.lat/jtXec for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: https://tik.lat/L2vEr
##############################################################
## MOD History:
##
## 2006-Mar-09 - 1.0.5
## - Fifth release (images now can be different per template.)
## - Added Dauthus's LetterPack to the zip
## 2006-Mar-09 - 1.0.4
## - Fourth release (Took out another bug in usercp_register.php.)
## People who installed previous versions of this mod should update or reinstall
## because of problem with wrong insertions in database when new users register.
## When you are updating from 1.0.3 you should do the following:
## OPEN:
## includes/usercp_register.php
## FIND:
## , user_active, user_initial , user_actkey
## REPLACE WITH:
## , user_initial, user_active , user_actkey
## EOM
##
## After this update user_actkey should be at the end of the line.
## user_actkey should ALWAYS be at the end of that line and ", user_active " before that
## in order for correct working of the activationcode when a new user want to register and activate.
## After you did above changes you are having version 1.0.4, and there is no need for other changes.
##
## 2006-Feb-26 - 1.0.3
## - Third release (Took out a bug in usercp_register.php.)
## People who installed previous versions of this mod should update or reinstall
## because of problem with activationkey when new users register.
## When you are updating from 1.0.2 or before you should do the following:
## OPEN:
## includes/usercp_register.php
## FIND:
## , user_actkey, user_initial
## REPLACE WITH:
## , user_initial, user_actkey
## EOM
##
## After this update user_actkey should be at the end of the line.
## user_actkey should ALWAYS be at the end of that line in order for
## correct working of the activationcode when a new user want to register and activate.
## After you did above changes you are having version 1.0.3.
##
## 2006-Jan-24 - 1.0.2
## - Third release (Added userchoice in profile.)
##
## 2006-Jan-22 - 1.0.1
## - Second release (Text now wraps around the image.)
##
## 2006-Jan-21 - 1.0.0
## - First release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
# change phpbb_ to the database prefix you use
#
ALTER TABLE phpbb_users ADD user_initial TINYINT(1) DEFAULT '1';
#
#-----[ COPY ]------------------------------------------
#
copy IFPimages/*.* to templates/subSilver/images/IFPimages/*.*
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
if ( $mode == 'register' )
{
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$postinitial = ( isset($HTTP_POST_VARS['postintitial']) ) ? ( ($HTTP_POST_VARS['postintitial']) ? TRUE : 0 ) : TRUE;
#
#-----[ FIND ]------------------------------------------
#
$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']) ) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $userdata['user_allowsmile'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$postinitial = ( isset($HTTP_POST_VARS['postintitial']) ) ? ( ($HTTP_POST_VARS['postintitial']) ? TRUE : 0 ) : $userdata['user_initial'];
#
#-----[ FIND ]------------------------------------------
# note: this is a partal search, the full line is longer.
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email)
#
#-----[ INLINE, FIND ]------------------------------------------
#
" . $avatar_sql . "
#
#-----[ INLINE, AFTER ADD ]------------------------------------------
#
, user_initial = $postinitial
#
#-----[ FIND ]------------------------------------------
# note: this is a partal search, the full line is longer.
$sql = "INSERT INTO " . USERS_TABLE . " (user_id,
#
#-----[ INLINE, FIND ]------------------------------------------
#
, user_active, user_actkey
#
#-----[ INLINE, BEFORE ADD ]------------------------------------------
#
, user_initial
#
#-----[ INLINE, FIND ]------------------------------------------
#
, $user_style, 0, 1,
#
#-----[ INLINE, AFTER ADD ]------------------------------------------
#
$postinitial,
#
#-----[ FIND ]------------------------------------------
#
$allowsmilies = $userdata['user_allowsmile'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$postinitial = $userdata['user_initial'];
#
#-----[ FIND ]------------------------------------------
#
'ALWAYS_ALLOW_SMILIES_YES' => ( $allowsmilies ) ? 'checked="checked"' : '',
'ALWAYS_ALLOW_SMILIES_NO' => ( !$allowsmilies ) ? 'checked="checked"' : '',
#
#-----[ AFTER, ADD ]------------------------------------------
#
'INITIAL_YES' => ( $postinitial ) ? 'checked="checked"' : '',
'INITIAL_NO' => ( !$postinitial ) ? 'checked="checked"' : '',
#
#-----[ FIND ]------------------------------------------
#
'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_POSTINITIAL' => $lang['postinitial'],
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_POSTINITIAL}:</span></td>
<td class="row2">
<input type="radio" name="postintitial" value="1" {INITIAL_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="postintitial" value="0" {INITIAL_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
language/lang_englisch/lang_main.php
#
#-----[ FIND ]------------------------------------------
# note: this is a partial search, the full line is longer.
$lang['Always_smile'] =
#
#-----[ AFTER, ADD ]------------------------------------------
#
//PostInitial
$lang['postinitial'] = 'Use ImageInitial in Postings';
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('postrow', array(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ($userdata['user_initial'] == '1')
{
$lettercount = (strlen($message));
$lettercount = $lettercount-1;
$firstl = substr(($message), 0, 1);
$resttext = substr(($message), 1, $lettercount);
$testletter = strtoupper ($firstl);
if ($testletter == 'A' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/a.gif" align="left">';
}
if ($testletter == 'B' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/b.gif" align="left">';
}
if ($testletter == 'C' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/c.gif" align="left">';
}
if ($testletter == 'D' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/d.gif" align="left">';
}
if ($testletter == 'E' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/e.gif" align="left">';
}
if ($testletter == 'F' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/f.gif" align="left">';
}
if ($testletter == 'G' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/g.gif" align="left">';
}
if ($testletter == 'H' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/h.gif" align="left">';
}
if ($testletter == 'I' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/i.gif" align="left">';
}
if ($testletter == 'J' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/j.gif" align="left">';
}
if ($testletter == 'K' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/k.gif" align="left">';
}
if ($testletter == 'L' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/l.gif" align="left">';
}
if ($testletter == 'M' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/m.gif" align="left">';
}
if ($testletter == 'N' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/n.gif" align="left">';
}
if ($testletter == 'O' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/o.gif" align="left">';
}
if ($testletter == 'P' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/p.gif" align="left">';
}
if ($testletter == 'Q' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/q.gif" align="left">';
}
if ($testletter == 'R' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/r.gif" align="left">';
}
if ($testletter == 'S' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/s.gif" align="left">';
}
if ($testletter == 'T' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/t.gif" align="left">';
}
if ($testletter == 'U' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/u.gif" align="left">';
}
if ($testletter == 'V' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/v.gif" align="left">';
}
if ($testletter == 'W' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/w.gif" align="left">';
}
if ($testletter == 'X' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/x.gif" align="left">';
}
if ($testletter == 'Y' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/y.gif" align="left">';
}
if ($testletter == 'Z' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/z.gif" align="left">';
}
$message = $firstl . $resttext;
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
örneğin "Haydi gidelim" yazdığınızda bu "
gerekli dosyalar ektedir, içinde 5 farklı karakter seti mevcut. ama ne yazııkki türkçe karakterler mevcut değil. ama resim yeteneğiniz iiyse modda gerekli yerleri düzenleyerek onlarıdsa ekleyebilirsiniz.
##############################################################
## MOD Title: Image_First_Postletter
## MOD Author: wicher <http://www.detecties.com/phpbb2018>
##
##
## MOD Description: This mod replaces the first letter of a posting in a letterimage.
## The user can set in there profile if they want to use it or not.
## For additional LetterPacks go to https://tik.lat/tOVpm
## note: Feel free to design your own letterpack for this mod and
## post them at https://tik.lat/y1GVh
## or submit them to https://tik.lat/kjKdV .
##
## MOD Version: 1.0.5
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: includes/usercp_register.php
## viewtopic.php
## templates/subSilver/profile_add_body.tpl
## language/lang_englisch/lang_main.php
## Included Files: 26
##############################################################
## For Security Purposes, Please Check: https://tik.lat/jtXec for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: https://tik.lat/L2vEr
##############################################################
## MOD History:
##
## 2006-Mar-09 - 1.0.5
## - Fifth release (images now can be different per template.)
## - Added Dauthus's LetterPack to the zip
## 2006-Mar-09 - 1.0.4
## - Fourth release (Took out another bug in usercp_register.php.)
## People who installed previous versions of this mod should update or reinstall
## because of problem with wrong insertions in database when new users register.
## When you are updating from 1.0.3 you should do the following:
## OPEN:
## includes/usercp_register.php
## FIND:
## , user_active, user_initial , user_actkey
## REPLACE WITH:
## , user_initial, user_active , user_actkey
## EOM
##
## After this update user_actkey should be at the end of the line.
## user_actkey should ALWAYS be at the end of that line and ", user_active " before that
## in order for correct working of the activationcode when a new user want to register and activate.
## After you did above changes you are having version 1.0.4, and there is no need for other changes.
##
## 2006-Feb-26 - 1.0.3
## - Third release (Took out a bug in usercp_register.php.)
## People who installed previous versions of this mod should update or reinstall
## because of problem with activationkey when new users register.
## When you are updating from 1.0.2 or before you should do the following:
## OPEN:
## includes/usercp_register.php
## FIND:
## , user_actkey, user_initial
## REPLACE WITH:
## , user_initial, user_actkey
## EOM
##
## After this update user_actkey should be at the end of the line.
## user_actkey should ALWAYS be at the end of that line in order for
## correct working of the activationcode when a new user want to register and activate.
## After you did above changes you are having version 1.0.3.
##
## 2006-Jan-24 - 1.0.2
## - Third release (Added userchoice in profile.)
##
## 2006-Jan-22 - 1.0.1
## - Second release (Text now wraps around the image.)
##
## 2006-Jan-21 - 1.0.0
## - First release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
# change phpbb_ to the database prefix you use
#
ALTER TABLE phpbb_users ADD user_initial TINYINT(1) DEFAULT '1';
#
#-----[ COPY ]------------------------------------------
#
copy IFPimages/*.* to templates/subSilver/images/IFPimages/*.*
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
if ( $mode == 'register' )
{
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$postinitial = ( isset($HTTP_POST_VARS['postintitial']) ) ? ( ($HTTP_POST_VARS['postintitial']) ? TRUE : 0 ) : TRUE;
#
#-----[ FIND ]------------------------------------------
#
$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']) ) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $userdata['user_allowsmile'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$postinitial = ( isset($HTTP_POST_VARS['postintitial']) ) ? ( ($HTTP_POST_VARS['postintitial']) ? TRUE : 0 ) : $userdata['user_initial'];
#
#-----[ FIND ]------------------------------------------
# note: this is a partal search, the full line is longer.
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email)
#
#-----[ INLINE, FIND ]------------------------------------------
#
" . $avatar_sql . "
#
#-----[ INLINE, AFTER ADD ]------------------------------------------
#
, user_initial = $postinitial
#
#-----[ FIND ]------------------------------------------
# note: this is a partal search, the full line is longer.
$sql = "INSERT INTO " . USERS_TABLE . " (user_id,
#
#-----[ INLINE, FIND ]------------------------------------------
#
, user_active, user_actkey
#
#-----[ INLINE, BEFORE ADD ]------------------------------------------
#
, user_initial
#
#-----[ INLINE, FIND ]------------------------------------------
#
, $user_style, 0, 1,
#
#-----[ INLINE, AFTER ADD ]------------------------------------------
#
$postinitial,
#
#-----[ FIND ]------------------------------------------
#
$allowsmilies = $userdata['user_allowsmile'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$postinitial = $userdata['user_initial'];
#
#-----[ FIND ]------------------------------------------
#
'ALWAYS_ALLOW_SMILIES_YES' => ( $allowsmilies ) ? 'checked="checked"' : '',
'ALWAYS_ALLOW_SMILIES_NO' => ( !$allowsmilies ) ? 'checked="checked"' : '',
#
#-----[ AFTER, ADD ]------------------------------------------
#
'INITIAL_YES' => ( $postinitial ) ? 'checked="checked"' : '',
'INITIAL_NO' => ( !$postinitial ) ? 'checked="checked"' : '',
#
#-----[ FIND ]------------------------------------------
#
'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_POSTINITIAL' => $lang['postinitial'],
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_POSTINITIAL}:</span></td>
<td class="row2">
<input type="radio" name="postintitial" value="1" {INITIAL_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="postintitial" value="0" {INITIAL_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
language/lang_englisch/lang_main.php
#
#-----[ FIND ]------------------------------------------
# note: this is a partial search, the full line is longer.
$lang['Always_smile'] =
#
#-----[ AFTER, ADD ]------------------------------------------
#
//PostInitial
$lang['postinitial'] = 'Use ImageInitial in Postings';
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('postrow', array(
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ($userdata['user_initial'] == '1')
{
$lettercount = (strlen($message));
$lettercount = $lettercount-1;
$firstl = substr(($message), 0, 1);
$resttext = substr(($message), 1, $lettercount);
$testletter = strtoupper ($firstl);
if ($testletter == 'A' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/a.gif" align="left">';
}
if ($testletter == 'B' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/b.gif" align="left">';
}
if ($testletter == 'C' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/c.gif" align="left">';
}
if ($testletter == 'D' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/d.gif" align="left">';
}
if ($testletter == 'E' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/e.gif" align="left">';
}
if ($testletter == 'F' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/f.gif" align="left">';
}
if ($testletter == 'G' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/g.gif" align="left">';
}
if ($testletter == 'H' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/h.gif" align="left">';
}
if ($testletter == 'I' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/i.gif" align="left">';
}
if ($testletter == 'J' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/j.gif" align="left">';
}
if ($testletter == 'K' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/k.gif" align="left">';
}
if ($testletter == 'L' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/l.gif" align="left">';
}
if ($testletter == 'M' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/m.gif" align="left">';
}
if ($testletter == 'N' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/n.gif" align="left">';
}
if ($testletter == 'O' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/o.gif" align="left">';
}
if ($testletter == 'P' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/p.gif" align="left">';
}
if ($testletter == 'Q' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/q.gif" align="left">';
}
if ($testletter == 'R' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/r.gif" align="left">';
}
if ($testletter == 'S' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/s.gif" align="left">';
}
if ($testletter == 'T' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/t.gif" align="left">';
}
if ($testletter == 'U' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/u.gif" align="left">';
}
if ($testletter == 'V' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/v.gif" align="left">';
}
if ($testletter == 'W' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/w.gif" align="left">';
}
if ($testletter == 'X' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/x.gif" align="left">';
}
if ($testletter == 'Y' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/y.gif" align="left">';
}
if ($testletter == 'Z' )
{
$firstl = '<img src="templates/'.$theme['style_name'].'/images/IFPimages/z.gif" align="left">';
}
$message = $firstl . $resttext;
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM