[RC1] Profile Blocks 1.1.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Uru Wolf
Registered User
Posts: 117
Joined: Sat Jun 23, 2007 12:11 pm
Location: aW4gbXkgbWluZA==
Contact:

[RC1] Profile Blocks 1.1.0

Post by Uru Wolf »

MOD Title: Profile Blocks
MOD Description: Profile blocks allow users to add their own bbcode into a block in their profile. The code is managed from an improved profile page allowing for more profile options to be added later.

The profile blocks can be disabled on a u2u basis as well as board wide, from the ACP.
MOD Version: 1.1.0

MOD Download: http://ewolfuk.com/modules/phpbb2/profi ... ks_110.zip

Demo Board: http://aeonpartum.ewolfuk.com
Last edited by Uru Wolf on Sat Jul 28, 2007 12:17 pm, edited 1 time in total.
- UrW
Image
phpBB newb tutorial (moding) || SupaNav (Side bar navagation) || PMail || Profile Blocks
If you can work out my location I will give you a cookie. People with cookies: 3
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [RC1] Profile Blocks 1.0.0

Post by marian0810 »

Your demo doesn't seem to be working :(
Warning: require() [function.require]: Unable to access ./language/lang_/lang_pb.php in /misc/13/307/795/006/0/user/web/aeonpartum.ewolfuk.com/includes/usercp_viewprofile.php on line 30

Warning: require(./language/lang_/lang_pb.php) [function.require]: failed to open stream: No such file or directory in /misc/13/307/795/006/0/user/web/aeonpartum.ewolfuk.com/includes/usercp_viewprofile.php on line 30
You and me, time and space. You watch us run!
Uru Wolf
Registered User
Posts: 117
Joined: Sat Jun 23, 2007 12:11 pm
Location: aW4gbXkgbWluZA==
Contact:

Re: [RC1] Profile Blocks 1.0.0

Post by Uru Wolf »

Thanks, I will get that fixed. (I thought I got that one before >_<)
- UrW
Image
phpBB newb tutorial (moding) || SupaNav (Side bar navagation) || PMail || Profile Blocks
If you can work out my location I will give you a cookie. People with cookies: 3
Uru Wolf
Registered User
Posts: 117
Joined: Sat Jun 23, 2007 12:11 pm
Location: aW4gbXkgbWluZA==
Contact:

Re: [RC1] Profile Blocks 1.0.0

Post by Uru Wolf »

Ok it was a problem with the user bing logged out and so the $userdata var was useless

Fix:

Code: Select all

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

#
#-----[ FIND ]--------
#
require($phpbb_root_path.'language/lang_'.$userdata['user_lang'].'/lang_pb.'.$phpEx);

#
#-----[ BEFORE, ADD ]-----------
#
$lang_pb_include = ( $userdata['session_logged_in'] )?$userdata['user_lang']:$lang_pb_include = $board_config['default_lang'];

#
#-----[ IN-LINE, FIND ]--------
#
$userdata['user_lang']

#
#---- [ IN-LINE, REPLACE WITH ]------
#
$lang_pb_include
- UrW
Image
phpBB newb tutorial (moding) || SupaNav (Side bar navagation) || PMail || Profile Blocks
If you can work out my location I will give you a cookie. People with cookies: 3
User avatar
beggers
Registered User
Posts: 1257
Joined: Fri Nov 23, 2001 8:19 pm
Location: Las Vegas
Contact:

Re: [RC1] Profile Blocks 1.0.0

Post by beggers »

I can't get past this error:

Code: Select all

Parse error: parse error, expecting `')'' in /home/httpd/vhosts/wwe-club.com/httpdocs/phpBB2/includes/usercp_viewprofile.php on line 455
I think that line is:

Code: Select all

$sql = 'SELECT pb_block, pb_allow FROM '.USERS_TABLE.' WHERE user_id='.$profiledata['user_id'];
Uru Wolf
Registered User
Posts: 117
Joined: Sat Jun 23, 2007 12:11 pm
Location: aW4gbXkgbWluZA==
Contact:

Re: [RC1] Profile Blocks 1.0.0

Post by Uru Wolf »

It works fine on mine and I checked the .zip and that is ok. I am not sure how that happened.
- UrW
Image
phpBB newb tutorial (moding) || SupaNav (Side bar navagation) || PMail || Profile Blocks
If you can work out my location I will give you a cookie. People with cookies: 3
d3jsp
Registered User
Posts: 32
Joined: Fri Mar 02, 2007 2:18 pm

Re: [RC1] Profile Blocks 1.0.0

Post by d3jsp »

the codes really buggy, ur missing a lot of strip slashes/skip line and bbcode filters. For some reason, its also including bbcode.php twice in user_viewprofile.php. I finally got it working on my site http://www.d3jsp.org if u want a demo :). Feel free to ask me if u need any help
Create your own empire or venture in the dragon cave at http://www.d3jsp.org
Uru Wolf
Registered User
Posts: 117
Joined: Sat Jun 23, 2007 12:11 pm
Location: aW4gbXkgbWluZA==
Contact:

Re: [RC1] Profile Blocks 1.0.0

Post by Uru Wolf »

Do you have fixes and things? I am not too clear with bbcode formating >_< and this is the first time I have done anything with it.
- UrW
Image
phpBB newb tutorial (moding) || SupaNav (Side bar navagation) || PMail || Profile Blocks
If you can work out my location I will give you a cookie. People with cookies: 3
d3jsp
Registered User
Posts: 32
Joined: Fri Mar 02, 2007 2:18 pm

Re: [RC1] Profile Blocks 1.0.0

Post by d3jsp »

I posted some here. http://www.d3jsp.org/viewtopic.php?p=16027#16027

You also need to remove the spaces in the .tpl file
Create your own empire or venture in the dragon cave at http://www.d3jsp.org
Uru Wolf
Registered User
Posts: 117
Joined: Sat Jun 23, 2007 12:11 pm
Location: aW4gbXkgbWluZA==
Contact:

Re: [RC1] Profile Blocks 1.0.0

Post by Uru Wolf »

Thanks. I have updated the zip.
- UrW
Image
phpBB newb tutorial (moding) || SupaNav (Side bar navagation) || PMail || Profile Blocks
If you can work out my location I will give you a cookie. People with cookies: 3
User avatar
dstartz
Registered User
Posts: 35
Joined: Sun Sep 11, 2005 10:21 am
Location: Deep South Texas

Re: [RC1] Profile Blocks 1.1.0

Post by dstartz »

Sorry the really newbie question (I'm self-taught w/ php)...

How do I modify the DB "INSERT INTO phpbb_config (`config_name`,`config_value`) VALUES ('pb_use','0');"?

I've gone into the DB, browsed to write phpbb_config (`config_name`,`config_value`), tried to enter ('pb_use','0') in the values area, but keep getting a syntax error message.
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [RC1] Profile Blocks 1.1.0

Post by marian0810 »

You and me, time and space. You watch us run!
User avatar
dstartz
Registered User
Posts: 35
Joined: Sun Sep 11, 2005 10:21 am
Location: Deep South Texas

Re: [RC1] Profile Blocks 1.1.0

Post by dstartz »

Thanks, marian, but I'm afraid I still don't understand how much of 'INSERT INTO phpbb_config (`config_name`,`config_value`) VALUES ('pb_use','0');' I plug into <http://www.ktuk.net/kb/5.gif>. :oops:
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [RC1] Profile Blocks 1.1.0

Post by marian0810 »

Do you have access to mySQL? If you don't know you can ask your host.
You and me, time and space. You watch us run!
User avatar
dstartz
Registered User
Posts: 35
Joined: Sun Sep 11, 2005 10:21 am
Location: Deep South Texas

Re: [RC1] Profile Blocks 1.1.0

Post by dstartz »

Yes, I do and I've made the other 2 DB modifications required by this mod with no problems. But I'm stumped on how to make this particular one.
Post Reply

Return to “[2.0.x] MODs in Development”