Add new field to profile

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
Impactforra
Berichten: 327
Lid geworden op: 01 nov 2005, 16:37

Add new field to profile

Bericht door Impactforra » 11 jan 2006, 19:26

Betreft:

## Hack Title: Add new field to profile
## Hack Version: 1.2.2
## Author Acid


Nadat ik deze mod installeerde, en klaar was zag ik 2 blanke pagina's weet iemand misschien hoe dit zou komen :roll:

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 11 jan 2006, 19:40

Loop die files nog eens na.

Gebruikersavatar
Impactforra
Berichten: 327
Lid geworden op: 01 nov 2005, 16:37

Bericht door Impactforra » 11 jan 2006, 19:46

http://www.dhost.info/skillzone/usercp_viewprofile.txt
http://www.dhost.info/skillzone/usercp_register.txt

Die 2 veroorzaken het denk ik, en zijn gewoon goed denk ik :?

Codewijzigingen

Code: Selecteer alles

# 
#-----[ OPEN ]------------------------------------------ 
#  
# includes/usercp_viewprofile.php
# 
#-----[ FIND ]---------------------------------------------------
# 
	'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',

# 
#-----[ BELOW ADD ]---------------------------------------------------
# 
	'INFO' => ( $profiledata['user_info'] ) ? $profiledata['user_info'] : ' ',
	'L_INFO' => $lang['Info'],



# 
#-----[ OPEN ]------------------------------------------ 
#  
# includes/usercp_register.php
# 
#-----[ FIND ]---------------------------------------------------
# 
	$strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests');

# 
#-----[ IN-LINE FIND ]---------------------------------------------------
# 
'interests'

# 
#-----[ IN-LINE ADD ]---------------------------------------------------
# 
, 'info' => 'info'

# 
#-----[ FIND (2x) ]---------------------------------------------------
# 
		$interests = stripslashes($interests);

# 
#-----[ always BELOW ADD ]---------------------------------------------------
# 
		$info = stripslashes($info);

# 
#-----[ FIND (just a quote) ]---------------------------------------------------
# 
			$sql = "UPDATE " . USERS_TABLE . "

# 
#-----[ IN-LINE FIND ]---------------------------------------------------
# 
$interests) . "'

# 
#-----[ IN-LINE ADD ]---------------------------------------------------
# 
, user_info = '" . str_replace("\'", "''", $info) . "'

# 
#-----[ FIND ]---------------------------------------------------
# 
			$sql = "INSERT INTO " . USERS_TABLE . "

# 
#-----[ IN-LINE FIND ]---------------------------------------------------
# 
user_interests

# 
#-----[ IN-LINE ADD ]---------------------------------------------------
# 
, user_info

# 
#-----[ IN-LINE FIND ]---------------------------------------------------
# 
$interests) . "'

# 
#-----[ IN-LINE ADD ]---------------------------------------------------
# 
, '" . str_replace("\'", "''", $info) . "'

# 
#-----[ FIND ]---------------------------------------------------
# 
	$interests = $userdata['user_interests'];

# 
#-----[ BELOW ADD ]---------------------------------------------------
# 
	$info = $userdata['user_info'];

# 
#-----[ FIND (just a quote) ]---------------------------------------------------
# 
display_avatar_gallery($mode, $avatar_category

# 
#-----[ IN-LINE FIND ]---------------------------------------------------
# 
$interests

# 
#-----[ IN-LINE ADD ]---------------------------------------------------
# 
, $info

# 
#-----[ FIND (just a quote) ]--------------------------
# 
	$template->assign_vars(array(
		.
		.
		.
		.
		'INTERESTS' => $interests,

# 
#-----[ BELOW ADD ]---------------------------------------------------
# 
		'INFO' => $info,
		'L_INFO' => $lang['Info'],

Gesloten