|
|
Author |
Message |
tramway
Group: Admin Joined: 24 Jan 2007 Donor: Posts: 4545 Gold: 2196.23 Clan: D3JSP
Status: Warn: Reputation: 187
|
#1 Posted: 27 Jul 2007 04:24 pm Post subject: Profile block fixes |
|
|
Code: |
Open includes/usercp_pb.php
---------------------------------------find ---------------
require($phpbb_root_path.'includes/bbcode.'.$phpEx);
---------------after add (if u dont, unregistered users will error out)---------
if( !$userdata['session_logged_in'] )
{
header("Location: " . append_sid($phpbb_root_path . "login." . $phpEx . "?redirect=index.php"));
}
------------------------find -----------
if ( isset($HTTP_POST_VARS['preview']) ){
---------------------replace everything after with-----------
$message = $HTTP_POST_VARS['pb_body'];
$message = bbencode_first_pass($message,'');
$message = smilies_pass(bbencode_second_pass($message, ''));
$message = str_replace("\n", "\n<br />\n", $message);
$message = make_clickable($message);
$message = stripslashes($message);
-----------------Find---------------
$template->assign_block_vars('preview_switch',Array(
'MESSAGE'
----------------replace with---------
$template->assign_block_vars('preview_switch',Array(
'MESSAGE' => $message,
-------------------Find---------------
if ( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR,$pb_lang['sql_error'],$pb_lang['sql_error_title'],__LINE__,__FILE__,$sql);
}
----------------replace after with--------------
$row = $db->sql_fetchrow($result);
$pb_body = $row['pb_block'];
$pb_body = stripslashes($pb_body);
$pb_body = str_replace('<br />', "\n", $pb_body);
|
do the same with includes/user_viewprofile.php and remove the extra spaces in user_pb.tpl _____________________
If your gold is locked, please PM a senior moderator. They will be able to unlock you |
|
Back to top |
|
|
treezzzzz
Group: Scammer Joined: 02 Mar 2007 Posts: 31031 Gold: Locked Clan: Transformers
Status: Warn: Reputation: 50
|
#2 Posted: 27 Jul 2007 05:03 pm Post subject: |
|
|
say what now? _____________________
Join Clan Transformers Today!! (links below)
Clan Forums Recruitment Thread |
|
Back to top |
|
|
DODGERFAN
Group: Members Joined: 03 Nov 2007 Posts: 534 Gold: 257.94 Clan: Zero Tolerance
Status: Warn: Reputation: 13
|
#3 Posted: 17 Nov 2007 08:52 pm Post subject: |
|
|
treezzzzz wrote: | say what now? |
lol _____________________ [img] |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
D3jsp is proudly powered by phpBB © 2.0 Theme and Forum by tramway
|