allanhardy wrote: I take it you never got any feedback on this?
This mod is nice but the developer has flown the coop its totaly unsupported except by people trying to help, but many don't understand the coding model used and its not documented.
By the way, I have never been able to get changes to map definitions made in ACP to 'stick' and I installed this by hand.
Riamus wrote: My problems revolve around not being able to make changes in my maps definitions from the ACP.
Code: Select all
## _________________________________________________________________________________________
##
##
## / \
## / ! \ The next CHMODs are required to allow the editing of the mentioned files by the ACP tools
## /_____\
##
##
## CHMOD 666 to apply :
##
## profilcp/def/def_userfields.php
## profilcp/def/def_usermaps.php
##
## COPY to each of your language installed directories (ie: languages/lang_english/) and
## CHMOD 666 those files :
## COPY mod-lang_settings/lang_extend.php TO language/lang_*/lang_extend.php
##
##############################################################
JustinS wrote: here's a link to the mod.
http://www.phpbbhacks.com/download/3270
Also, I don't know if you can, but could you tell me if I set those tables up correctly?
in phpbb_config:
registration_status; char(0)
registration_closed; text
edit: the command in the .txt document for it is:
#
#-----[ SQL ]----------------------------------------------
#
INSERT INTO `phpbb_config` VALUES ('registration_status', '0');
INSERT INTO `phpbb_config` VALUES ('registration_closed', '');
Also, I'd pretty much prefer to have to activate all new members before their accounts become valid. It makes it easier for me, and I can limit the permission forms that I'll have to give out.
Code: Select all
$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#');
$unhtml_specialchars_replace = array('>', '<', '"', '&');
Code: Select all
// BEGIN Disable Registration MOD
if( $board_config['registration_status'] && !$userdata['session_logged_in'] )
{
if( $board_config['registration_closed'] == '' )
{
message_die(GENERAL_MESSAGE, 'registration_status', 'Information');
}
else
{
message_die(GENERAL_MESSAGE, $board_config['registration_closed'], 'Information');
}
}
// END Disable Registration MOD
ninosportif wrote:tlavery wrote:Well, it appears that I solved my problem. I deleted the table php_buddy and altered the SQL query I was supposed to run to show the new table name as buddy instead of php_buddy and it WORKS!! WOO HOO!! Thanks so much for everyone's help!!
Edit:
I came across one bug. When I try and delete any pm's in the in box, out box, sent box, or saved box I get a General Error "Invalid_session". I get the same error when trying to send a PM too. Any ideas??
Well, I logged out and back in and now it seems to be working just fine.
I am afraid this is not correct, as this will make you change a lot of codes from the files provided by PCP. to avoid this, just expend the time in SQL. (make sure you know what you are doing and what needs to be drop off, if not dont bother, as it can mess up badly)
Go back to SQL and create the phpbb_buddy again and drop of those you did b4.
Like thisIn order to make the phpbb3_users one, use the phpbb_buddy as an example:Code: Select all
CREATE TABLE phpbb3_buddy ( user_id mediumint(8) NOT NULL default '0', buddy_id mediumint(8) NOT NULL default '0', buddy_ignore tinyint(1) NOT NULL default '0', buddy_visible tinyint(1) NOT NULL default '0', PRIMARY KEY (user_id, buddy_id) ) TYPE=MyISAM;
Code: Select all
CREATE TABLE phpbb3_users ( ADD user_realname VARCHAR(25) NOT NULL; ADD user_gender TINYINT(1) UNSIGNED DEFAULT '0' NOT NULL; ADD user_birthday VARCHAR(8) DEFAULT '0' NOT NULL; ADD user_last_birthday INT(11) UNSIGNED DEFAULT '0' NOT NULL; ADD user_home_phone VARCHAR(20); ADD user_home_fax VARCHAR(20); ADD user_work_phone VARCHAR(20); ADD user_work_fax VARCHAR(20); ADD user_cellular VARCHAR(20); ADD user_pager VARCHAR(20); ADD user_summer_time TINYINT(1) UNSIGNED DEFAULT '0' NOT NULL; ADD user_list_option VARCHAR(255); ADD user_allow_email TINYINT(1) DEFAULT '1' NOT NULL; ADD user_allow_website TINYINT(1) DEFAULT '1' NOT NULL; ADD user_allow_messanger TINYINT(1) DEFAULT '1' NOT NULL; ADD user_allow_real TINYINT(1) DEFAULT '1' NOT NULL; ADD user_allow_sig TINYINT(1) DEFAULT '1' NOT NULL; ADD user_viewpm TINYINT(1) DEFAULT '1' NOT NULL; ADD user_viewwebsite TINYINT(1) DEFAULT '1' NOT NULL; ADD user_viewmessanger TINYINT(1) DEFAULT '1' NOT NULL; ADD user_viewreal TINYINT(1) DEFAULT '1' NOT NULL; ADD user_viewavatar TINYINT(1) DEFAULT '1' NOT NULL; ADD user_viewsig TINYINT(1) DEFAULT '1' NOT NULL; ADD user_viewimg TINYINT(1) DEFAULT '1' NOT NULL; ADD user_buddy_friend_display TINYINT(1) DEFAULT '1'; ADD user_buddy_ignore_display TINYINT(1) DEFAULT '1'; ADD user_buddy_friend_of_display TINYINT(1) DEFAULT '1'; ADD user_buddy_ignored_by_display TINYINT(1) DEFAULT '1'; ADD user_watched_topics_per_page SMALLINT(3) DEFAULT '15'; ADD user_privmsgs_per_page SMALLINT(3) DEFAULT '5';
Last but not least for the last two sessions
Code: Select all
CREATE TABLE phpbb3_ranks ( ADD rank_title VARCHAR(255) NOT NULL; ADD rank_max MEDIUMINT(8) NOT NULL AFTER rank_min;
Dont forget to check if your SQL is running as phpbb_ (version 1 or 2 or 3) I assume yours at moment is phpbb3.Code: Select all
CREATE TABLE phpbb3_sessions ( ADD session_robot VARCHAR(32);
i am not sure why you dont have phpbb_users, but never mind. This will definately do the trick.
Code: Select all
SQL-query:
CREATE TABLE phpbb_users(
ADD user_realname VARCHAR( 25 ) NOT NULL
MySQL said:
#1064 - You have an error in your SQL syntax near 'ADD user_realname VARCHAR(25) NOT NULL' at line 2
Code: Select all
SQL-query:
CREATE TABLE phpbb_ranks(
ADD rank_title VARCHAR( 255 ) NOT NULL
MySQL said:
#1064 - You have an error in your SQL syntax near 'ADD rank_title VARCHAR(255) NOT NULL' at line 2
Code: Select all
SQL-query:
CREATE TABLE phpbb_sessions(
ADD session_robot VARCHAR( 32 )
MySQL said:
#1064 - You have an error in your SQL syntax near 'ADD session_robot VARCHAR(32)' at line 2
Code: Select all
General Error
Could not obtain buddys information.
DEBUG MODE
SQL Error : 1146 Table 'dishinstallers_net_-_phpbb3.buddy' doesn't exist
SELECT * FROM buddy WHERE user_id=3 and buddy_id in (3)
Line : 216
File : page_header.php
tlavery wrote: OK I added all the tables with the php_ prefix. I have some questions.....the default in the NULL column was NOT NULL, but some of the lines did not specify NULL or NOT NULL. Should I just leave it at NOT NULL???
Now am I supposed to delete the entries that were made in Users, Sessions, Ranks, and the entire Buddy table? The Sessions section of the SQL changes said that it was supposed to change one and add one (with a specification on where it was supposed to go.) So I am not really sure what to do about the table sessions.
Now what?