GTALK phpBB2


:

################################################################################
## : Google-Talk-Button
## : Botzo (www.Go-To-Quebec.net)
##
## :
## : 10 .
## : 14
## privmsg.php
## viewtopic.php
## admin/admin_users.php
## includes/functions_validate.php
## includes/usercp_avatar.php
## includes/usercp_register.php
## includes/usercp_viewprofile.php
## language/lang_bulgarian/lang_main.php
## templates/subSilver/subSilver.cfg
## templates/subSilver/privmsgs_read_body.tpl
## templates/subSilver/profile_view_body.tpl
## templates/subSilver/profile_add_body.tpl
## templates/subSilver/viewtopic_body.tpl
## templates/subSilver/admin/user_edit_body.tpl
##
## : 1
## templates/subSilver/images/lang_bulgarian/icon_google_talk.gif
##
################################################################################
#
#-----[ ]-----
#
# root-
# phpBB-.
#
#
#-----[ ]-----
# , :
install.php

#
#-----[ ]-----
#
viewtopic.php

#
#-----[ ]-----
#
//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_id,

#
#-----[ ]-----
#
u.user_yim,

#
#-----[ ]-----
#
u.user_google_talk,

#
#-----[ ]-----
#
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");
$msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
$msn = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '">' . $lang['MSNM'] . '</a>' : '';

#
#-----[ ]-----
#
$google_talk_img = ( $postrow[$i]['user_google_talk'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_google_talk'] . '" alt="' . $lang['GOOGLE_TALK'] . '" title="' . $lang['GOOGLE_TALK'] . '" border="0" /></a>' : '';
$google_talk = ( $postrow[$i]['user_google_talk'] ) ? '<a href="' . $temp_url . '">' . $lang['GOOGLE_TALK'] . '</a>' : '';

#
#-----[ ]-----
#
$msn_img = '';
$msn = '';

#
#-----[ ]-----
#
$google_talk_img = '';
$google_talk = '';

#
#-----[ ]-----
#
'MSN_IMG' => $msn_img,
'MSN' => $msn,

#
#-----[ ]-----
#
'GOOGLE_TALK_IMG' => $google_talk_img,
'GOOGLE_TALK' => $google_talk,

#
#-----[ ]-----
#
privmsg.php

#
#-----[ ]-----
#
//
// Major query obtains the message ...
//
$sql = "SELECT u.username

#
#-----[ ]-----
#
u.user_yim,

#
#-----[ ]-----
#
u.user_google_talk,

#
#-----[ ]-----
#
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id_from");
$msn_img = ( $privmsg['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
$msn = ( $privmsg['user_msnm'] ) ? '<a href="' . $temp_url . '">' . $lang['MSNM'] . '</a>' : '';

#
#-----[ ]-----
#
$google_talk_img = ( $privmsg['user_google_talk'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_google_talk'] . '" alt="' . $lang['GOOGLE_TALK'] . '" title="' . $lang['GOOGLE_TALK'] . '" border="0" /></a>' : '';
$google_talk = ( $privmsg['user_google_talk'] ) ? '<a href="' . $temp_url . '">' . $lang['GOOGLE_TALK'] . '</a>' : '';

#
#-----[ ]-----
#
'MSN_IMG' => $msn_img,
'MSN' => $msn,

#
#-----[ ]-----
#
'GOOGLE_TALK_IMG' => $google_talk_img,
'GOOGLE_TALK' => $google_talk,

#
#-----[ ]-----
#
includes/usercp_viewprofile.php

#
#-----[ ]-----
#
$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : ' ';
$msn = $msn_img;

#
#-----[ ]-----
#
$google_talk_img = ( $profiledata['user_google_talk'] ) ? $profiledata['user_google_talk'] : ' ';
$google_talk = $google_talk_img;

#
#-----[ ]-----
#
'MSN_IMG' => $msn_img,
'MSN' => $msn,

#
#-----[ ]-----
#
'GOOGLE_TALK_IMG' => $google_talk_img,
'GOOGLE_TALK' => $google_talk,

#
#-----[ ]-----
#
'L_MESSENGER' => $lang['MSNM'],

#
#-----[ ]-----
#
'L_GOOGLE_TALK' => $lang['GOOGLE_TALK'],

#
#-----[ ]-----
#
includes/usercp_register.php

#
#-----[ ]-----
#
$strip_var_list = array(

#
#-----[ ]-----
#
'msn' => 'msn',

#
#-----[ ]-----
#
'google_talk' => 'google_talk',

#
#-----[ ]-----
#
validate_optional_fields

#
#-----[ ]-----
#
);

#
#-----[ ]-----
#
, $google_talk

#
#-----[ ]-----
#
$msn = stripslashes($msn);

#
#-----[ ]-----
#
$google_talk = stripslashes($google_talk);

#
#-----[ ]-----
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email =

#
#-----[ ]-----
#
user_msnm = '" . str_replace("\'", "''", $msn) . "',

#
#-----[ ]-----
#
user_google_talk = '" . str_replace("\'", "''", $google_talk) . "',

#
#-----[ ]-----
#
//
// Get current date
//
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username,

#
#-----[ ]-----
#
user_msnm,

#
#-----[ ]-----
#
user_google_talk,

#
#-----[ ]-----
#
'" . str_replace("\'", "''", $msn) . "',

#
#-----[ ]-----
#
'" . str_replace("\'", "''", $google_talk) . "',

#
#-----[ ]-----
#
'MSN' => $msn,

#
#-----[ ]-----
#
'GOOGLE_TALK' => $google_talk,

#
#-----[ ]-----
#
$msn = stripslashes($msn);

#
#-----[ ]-----
#
$google_talk = stripslashes($google_talk);

#
#-----[ ]-----
#
$msn = $userdata['user_msnm'];

#
#-----[ ]-----
#
$google_talk = $userdata['user_google_talk'];

#
#-----[ ]-----
#
display_avatar_gallery

#
#-----[ ]-----
#
$msn,

#
#-----[ ]-----
#
$google_talk,

#
#-----[ ]-----
#
'MSN' => $msn,

#
#-----[ ]-----
#
'GOOGLE_TALK' => $google_talk,

#
#-----[ ]-----
#
'L_MESSENGER' => $lang['MSNM'],

#
#-----[ ]-----
#
'L_GOOGLE_TALK' => $lang['GOOGLE_TALK'],

#
#-----[ ]-----
#
includes/functions_validate.php

#
#-----[ ]-----
#
function validate_optional_fields(

#
#-----[ ]-----
#
)

#
#-----[ ]-----
#
, &$google_talk

#
#-----[ ]-----
#
$check_var_length = array(

#
#-----[ ]-----
#
);

#
#-----[ ]-----
#
, 'google_talk'

#
#-----[ ]-----
#
includes/usercp_avatar.php

#
#-----[ ]-----
#
function display_avatar_gallery(

#
#-----[ ]-----
#
&$msn,

#
#-----[ ]-----
#
&$google_talk,

#
#-----[ ]-----
#
$params = array(

#
#-----[ ]-----
#
'msn',

#
#-----[ ]-----
#
'google_talk',

#
#
#-----[ ]-----
#
language/lang_bulgarian/lang_main.php

#
#-----[ ]-----
#
$lang['MSNM'] = 'MSN Messenger';

#
#-----[ ]-----
#
$lang['GOOGLE_TALK'] = "Google-Talk";

#
#-----[ ]-----
#
admin/admin_users.php

#
#-----[ ]-----
#
$msn = ( !empty($HTTP_POST_VARS['msn']) ) ? trim(strip_tags( $HTTP_POST_VARS['msn'] ) ) : '';

#
#-----[ ]-----
#
$google_talk = ( !empty($HTTP_POST_VARS['google_talk']) ) ? trim(strip_tags( $HTTP_POST_VARS['google_talk'] ) ) : '';

#
#-----[ ]-----
#
validate_optional_fields

#
#-----[ ]-----
#
);

#
#-----[ ]-----
#
, $google_talk

#
#-----[ ]-----
#
$msn = htmlspecialchars(stripslashes($msn));

#
#-----[ AFTER, ADD ]-----
#
$google_talk = htmlspecialchars(stripslashes($google_talk));

#
#-----[ ]-----
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql .

#
#-----[ ]-----
#
, user_msnm = '" . str_replace("\'", "''", $msn) . "'

#
#-----[ ]-----
#
, user_google_talk = '" . str_replace("\'", "''", $google_talk) . "'

#
#-----[ ]-----
#
$msn = htmlspecialchars(stripslashes($msn));

#
#-----[ ]-----
#
$google_talk = htmlspecialchars(stripslashes($google_talk));

#
#-----[ ]-----
#
$msn = htmlspecialchars($this_userdata['user_msnm']);

#
#-----[ ]-----
#
$google_talk = htmlspecialchars($this_userdata['user_google_talk']);

#
#-----[ ]-----
#
$s_hidden_fields .= '<input type="hidden" name="msn" value="' . str_replace("\"", """, $msn) . '" />';

#
#-----[ ]-----
#
$s_hidden_fields .= '<input type="hidden" name="google_talk" value="' . str_replace("\"", """, $google_talk) . '" />';

#
#-----[ ]-----
#
'MSN' => $msn,

#
#-----[ ]-----
#
'GOOGLE_TALK' => $google_talk,

#
#-----[ ]-----
#
'L_MESSENGER' => $lang['MSNM'],

#
#-----[ ]-----
#
'L_GOOGLE_TALK' => $lang['GOOGLE_TALK'],

#
#-----[ ]-----
#
templates/subSilver/subSilver.cfg

#
#-----[ ]-----
#
$images['icon_msnm'] = "$current_template_images/{LANG}/icon_msnm.gif";

#
#-----[ ]-----
#
$images['icon_google_talk'] = "$current_template_images/{LANG}/icon_google_talk.gif";

#
#-----[ ]-----
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ ]-----
#
{postrow.MSN_IMG}

#
#-----[ ]-----
#
{postrow.GOOGLE_TALK_IMG}

#
#-----[ ]-----
#
templates/subSilver/privmsgs_read_body.tpl

#
#-----[ ]-----
#
{MSN_IMG}

#
#-----[ ]-----
#
{GOOGLE_TALK_IMG}

#
#-----[ ]-----
#
templates/subSilver/profile_view_body.tpl

#
#-----[ ]-----
#
<td class="row1" valign="middle"><span class="gen">{MSN}</span></td>
</tr>

#
#-----[ ]-----
#
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_GOOGLE_TALK}:</span></td>
<td class="row1" valign="middle"><span class="gen">{GOOGLE_TALK}</span></td>
</tr>

#
#-----[ ]-----
#
templates/subSilver/profile_add_body.tpl

#
#-----[ ]-----
#
<input type="text" class="post" style="width: 150px" name="msn" size="20" maxlength="255" value="{MSN}" />
</td>
</tr>

#
#-----[ ]-----
#
<tr>
<td class="row1"><span class="gen">{L_GOOGLE_TALK}:</span></td>
<td class="row2">
<input type="text" class="post"style="width: 150px" name="google_talk" size="20" maxlength="255" value="{GOOGLE_TALK}" />
</td>
</tr>

#
#-----[ ]-----
#
templates/subSilver/admin/user_edit_body.tpl

#
#-----[ ]-----
#
<input class="post" type="text" name="msn" size="20" maxlength="255" value="{MSN}" />
</td>
</tr>

#
#-----[ ]-----
#
<tr>
<td class="row1"><span class="gen">{L_GOOGLE_TALK}</span></td>
<td class="row2">
<input class="post" type="text" name="google_talk" size="20" maxlength="255" value="{GOOGLE_TALK}" />
</td>
</tr>

#
#-----[ ]-----
#

. :

!

/ /