phpBBHacks.com - Profile blocks mod - profile disappeared!
Bad Boy Blog, an unofficial Diddy and Bad Boy fan blog
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Username:    Password:
Remember Me?    
   I Lost My Password!
Bookmark and Share
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2 Hack Support
 See a User Guidelines violation? Please contact us.
Author Message

Rohan
New User

Joined: 13 Jan 2010
Posts: 6

PostPosted: January 24th 2010, 2:00 pm    Post subject: Profile blocks mod - profile disappeared! Reply with quote

I tried to install the Profile Blocks mod and the profile.php?mode=viewprofile&u=# cuts off after the overall_header... so basically whenever looking at a profile page, it would only show the overall_header and cut off everything else beneath it.

I tried fiddling with the edits / throwing the backup file back on the profile.php and it didn't seem to be affected.

Help please? :\ Not sure where I would look first... this was the list of files to edit:

## Files To Edit: profile.php,
## admin/admin_board.php,
## admin/admin_users.php,
## includes/page_header.php,
## includes/usercp_viewprofile.php,
## language/lang_english/lang_admin.php,
## language/lang_english/lang_main.php,
## templates/subSilver/profile_view_body.tpl,
## templates/subSilver/admin/board_config_body.tpl,
## templates/subSilver/admin/user_edit_body.tpl

## Included Files: includes/usercp_pb.php,
## language/lang_english/lang_pb.php,
## templates/subSilver/profile_body.tpl,
## templates/subSilver/profile_pb.tpl

Edit: From uploading backup files one at a time, I think the problem is because of includes/usercp_viewprofile.php. This is the install code for the file, but I don't know php so I'm not sure if there are any errors.

Code:
#
#-----[ OPEN ]-----------------------------------------
#
includes/usercp_viewprofile.php

#
#-----[ FIND ]-----------------------------------------
#
if ( !defined('IN_PHPBB') )
{
   die("Hacking attempt");
   exit;
}

#
#-----[ AFTER, ADD ]------------------------------------
#
//BEGIN UrW's profile block
$lang_pb_include = ( $userdata['session_logged_in'] )?$userdata['user_lang']:$lang_pb_include = $board_config['default_lang'];
require($phpbb_root_path.'language/lang_'.$lang_pb_include.'/lang_pb.'.$phpEx);
require($phpbb_root_path.'includes/bbcode.'.$phpEx);
if( !$userdata['session_logged_in'] )
{
   header("Location: " . append_sid($phpbb_root_path . "login." . $phpEx . "?redirect=index.php"));
}
//END UrW's profile block

#
#-----[ FIND ]-----------------------------------------
#
$template->assign_vars(array(
   'USERNAME' => $profiledata['username'],

#
#-----[ BEFORE, ADD ]----------------------------------
#
//BEGIN UrW's profile block

//
// Decide if the profile block is shown or not.
//
$sql = 'SELECT pb_block, pb_allow FROM '.USERS_TABLE.' WHERE user_id='.$profiledata['user_id'];
if ( !$result=$db->sql_query($sql) )
{
   message_die(GENERAL_ERROR,$pb_lang['sql_error'],$pb_lang['sql_error_title'],__LINE__,__FILE__,$sql);
}
$pb_info = $db->sql_fetchrow($result);
$show_pb = showAdd($profiledata['user_id'],$profiledata['user_rank']);
if ( $pb_info['pb_allow'] && $board_config['pb_use'] )
{
   $message = $profiledata['pb_block'];
   $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);
   
   $template->assign_block_vars('switch_pb',array(
      'PB_TITLE' => $profiledata['username'].'\'s '.$pb_lang['profile_block'],
      'PB_BLOCK' => smilies_pass(bbencode_second_pass($message, ''))
      )
   );
}
//END UrW's profile block
Back to top
View user's profile Send private message

Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.

PostPosted: February 4th 2010, 12:04 pm    Post subject: Reply with quote

Does anyone have any thoughts on this?

Thanks,

Patrick
_________________
Patrick O'Keefe - phpBBHacks.com Administrator - Feedback? Questions? Please Contact Me!
User Guidelines - Featured phpBB - Featured Author - phpBBHacks.com Awards - Supported Sites - About Us
Author, Managing Online Forums - A Practical Guide to Community Management
phpBB 3 Tutorials: Add Hacks | Clear Your Cache | Fix Missing Images | phpBB 3 Permissions Guide
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger

~HG~
Dedicated User

Joined: 08 Nov 2003
Posts: 3913
Location: Australia

PostPosted: February 6th 2010, 1:40 pm    Post subject: Reply with quote

We would need to see the full includes/usercp_viewprofile.php with the changes as you made them to see if there any errors first.
_________________
~HG~

|| rodneyangell.com || || phpbb-tutorials.com ||My Hacks
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2 Hack Support All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
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



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil - phpBB Portugal - phpBBpersian.com

Network: iFroggy Hosting - PhotoshopForums.com - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - KarateForums.com - Bad Boy Blog - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Disclosure Policy - Staff - User Guidelines >

Copyright © 2001-2012. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.