View Single Post
  #8  
Old 05-22-2009, 11:49 AM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 29,388
Bloodrun
Send a message via Yahoo to Bloodrun
Default RE: Custom Profile Modification

Quote:
Originally Posted by 12345
How to put some lines to file example in account chanes. Its should be like this?
Code:
// Get the user's account details from the database...

$query = "SELECT * FROM ".$prefix."users WHERE username='$loggedinname'";
$result = mysql_query($query);
$num = mysql_numrows($result);
$ame=@mysql_result($result,$i,"ame");
$location=@mysql_result($result,$i,"location");
$age=@mysql_result($result,$i,"age");
$occupation=@mysql_result($result,$i,"occupation");
$interests=@mysql_result($result,$i,"interests");
$profilepic=@mysql_result($result,$i,"profilepic");
$displayquote=@mysql_result($result,$i,"displayquote");
$usercss=@mysql_result($result,$i,"usercss");

$ame = stripslashes($ame);
$location = stripslashes($location);
$age = stripslashes($age);
$occupation = stripslashes($occupation);
$interests = stripslashes($interests);
$profilepic = stripslashes($profilepic);
$displayquote = stripslashes($displayquote);
$usercss = stripslashes($usercss); 
//Loop out code
$i=0;
while ($i < 1) {
Actualy I dont know how to modify properly account.php and register.php and how change this:
Code:
Make sure you change the profile2.php files theme url, to: $themeurl = "templates/default/usertemp.html";

And add the following to the Theme Definitions:
The first one should be written like this:

Code:
// Get the user's account details from the database...

$query = "SELECT * FROM ".$prefix."users WHERE username='$loggedinname'";
$result = mysql_query($query);
$num = mysql_numrows($result);

//Loop out code
$i=0;
while ($i < 1) { 

$ame=@mysql_result($result,$i,"ame");
$location=@mysql_result($result,$i,"location");
$age=@mysql_result($result,$i,"age");
$occupation=@mysql_result($result,$i,"occupation");
$interests=@mysql_result($result,$i,"interests");
$profilepic=@mysql_result($result,$i,"profilepic");
$displayquote=@mysql_result($result,$i,"displayquote");
$usercss=@mysql_result($result,$i,"usercss");

$ame = stripslashes($ame);
$location = stripslashes($location);
$age = stripslashes($age);
$occupation = stripslashes($occupation);
$interests = stripslashes($interests);
$profilepic = stripslashes($profilepic);
$displayquote = stripslashes($displayquote);
$usercss = stripslashes($usercss);
The second, all you have to do, is go to the file, and find (close to the top) where it says:
$themeurl =

And replace it with:
$themeurl = "templates/default/usertemp.html";

Change the default to the folder you put the file in.
Reply With Quote