Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.1.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=20)
-   -   Custom Profile Modification (http://www.mysidiaadoptables.com/forum/showthread.php?t=845)

Bloodrun 05-19-2009 01:34 AM

Custom Profile Modification
 
This is the None Premium Member Custom Profile Modification

Database changes:

In your adopts_users table insert the following:

Code:

  `profilepic` varchar(200) NOT NULL,
  `ame` varchar(5000) NOT NULL,
  `location` varchar(50) NOT NULL,
  `age` varchar(3) NOT NULL,
  `occupation` varchar(50) NOT NULL,
  `interests` varchar(200) NOT NULL,
  `displayquote` varchar(200) NOT NULL,
  `usercss` longtext NOT NULL,

Preview:
(Image is too large for page.)
http://i43.tinypic.com/2s6sm5e.jpg

Now in your register.php file, make sure you add the (, '') needed for each new insert you put into your users table.

Okay, now go to your account.php file and find where it says:

PHP 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) { 

And place the following in that group:

PHP Code:

$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); 

Then, where it says:

PHP Code:


// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<br><br><br><br><br> 

Place the following within that form:

PHP Code:

  <p>Profile Layout:
    <
textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>".$usercss."</textarea>
</
p>
</
p>
  <
p>About Me: <br>
    <
textarea name='ame' type='text' id='ame' cols='40' rows='3'>".$ame."</textarea>
</
p>
  <
p>Interests: <br>
    <
textarea name='interests' type='text' id='interests' cols='40' rows='3'>".$interests."</textarea>
</
p>
  <
p>Location
    <
input name='location' type='text' id='location' value='".$location."'>
</
p>
  <
p>Age
    <
input name='age' type='text' id='age' value='".$age."'>
</
p>
  <
p>Display Picture:
    <
input name='profilepic' type='text' id='profilepic' value='".$profilepic."'>
</
p>
  <
p>Favorite Quote:
    <
input name='displayquote' type='text' id='displayquote' value='".$displayquote."'>
</
p>
  <
p>Occupation
    <
input name='occupation' type='text' id='occupation' value='".$occupation."'>
    <
input name='act' type='hidden' id='act' value='changesettings'>
</
p

Then in your accountpost.php file, find where it says:

PHP Code:

else if($act == "changesettings"){

// We are changing the settings 

and insert the following:

PHP Code:

$ame $_POST["ame"];
$ame secure($ame);

$location $_POST["location"];
$location secure($location);

$age $_POST["age"];
$age secure($age);

$occupation $_POST["occupation"];
$occupation secure($occupation);

$interests $_POST["interests"];
$interests secure($interests);

$profilepic $_POST["profilepic"];
$profilepic secure($profilepic);

$displayquote $_POST["displayquote"];
$displayquote secure($displayquote);

$usercss $_POST["usercss"];
$usercss secure($usercss); 

Then scroll down and insert:

PHP Code:

$query "UPDATE ".$prefix."users SET ame='".$ame."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query "UPDATE ".$prefix."users SET location='".$location."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query "UPDATE ".$prefix."users SET age='".$age."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query "UPDATE ".$prefix."users SET occupation='".$occupation."' WHERE username='".$loggedinname."'";

mysql_query($query);

$query "UPDATE ".$prefix."users SET interests='".$interests."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query "UPDATE ".$prefix."users SET profilepic='".$profilepic."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query "UPDATE ".$prefix."users SET displayquote='".$displayquote."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query "UPDATE ".$prefix."users SET usercss='".$usercss."' WHERE username='".$loggedinname."'";
mysql_query($query); 

Now go to your profile.php file, and find where it says:

PHP Code:

// This page handles user profiles and shows the site members...



$user $_GET["user"];

$user preg_replace("/[^a-zA-Z0-9\\040.]/"""$user);

$user secure($user);



$page $_GET["page"];

$page preg_replace("/[^a-zA-Z0-9\\040.]/"""$page);

$page secure($page);



if(
$user != ""){



// We have specified a specific user who we are showing a profile for...

// See if the user exists...



    
$query "SELECT * FROM ".$prefix."users WHERE username = '".$user."'";

    
$result mysql_query($query);

    
$num mysql_numrows($result);



    if(
$num 0){



    
$i=0;

    while (
$i 1) {



    
$usersname=@mysql_result($result,$i,"username");

    
$usersgroup=@mysql_result($result,$i,"usergroup");

    
$website=@mysql_result($result,$i,"website");

    
$aim=@mysql_result($result,$i,"aim");

    
$yahoo=@mysql_result($result,$i,"yahoo");

    
$msn=@mysql_result($result,$i,"msn");

    
$membersince=@mysql_result($result,$i,"membersince");



    if(
$website == ""){

    
$website "No Website Information Given";

    }

    else{

    
$website "<a href='".$website."' target='_blank'>".$website."</a>";

    }



    if(
$msn == ""){

    
$msn "No MSN Information Given";

    }

    

    if(
$aim == ""){

    
$aim "No AIM Information Given";

    }



    if(
$yahoo == ""){

    
$yahoo "No YIM Information Given";

    }

    



    
$i++;

    }



    
$query "SELECT * FROM ".$prefix."owned_adoptables WHERE owner = '".$user."'";

    
$result mysql_query($query);

    
$numpets mysql_numrows($result);



    
// Show the user's profile page...



    
$ccstat cancp($usersgroup);

    if(
$ccstat == "yes"){

    
$userdisp "<img src='templates/icons/star.gif'> ".$usersname."";

    }

    else{

    
$userdisp $usersname;

    }



    
$article_title $userdisp."'s Profile:";

    
$article_content "<b><u>".$lang_basic_info."".$usersname.":</u></b><br><br>

    <img src='templates/icons/web.gif'> "
.$website."<br>

    <img src='templates/icons/aim.gif'> "
.$aim."<br>

    <img src='templates/icons/msn.gif'> "
.$msn."<br>

    <img src='templates/icons/yahoo.gif'> "
.$yahoo."<br>

    <img src='templates/icons/title.gif'> <a href='messages.php?act=newpm&user="
.$usersname."'>Send ".$usersname." a Private Message</a><br>

    <br><b><u>"
.$usersname."'s Stats:</b></u><br><br>

    <b>Member Since:</b> "
.$membersince."<br>

    <b>Number Of Pets Owned:</b> "
.$numpets."<br><br>

    <b><u>"
.$usersname."'s Pets:</u></b><br><br>";



    if(
$numpets 0){



    
$i=0;

    while (
$i $numpets) {



    
$aid=@mysql_result($result,$i,"aid");

    
$image getcurrentimage($aid);



    
$article_content $article_content."<a href='levelup.php?id=".$aid."'><img src='".$image."' border='0'></a>";





    
$i++;

    }

    }

    else{

    
$article_content $article_content."This user currently does not have any pets.";

    }



    }

    else{

    

    
// User doesn't seem to exist, oh noes!



    
$article_title "User Does Not Exist";

    
$article_content "Sorry, but we could not find a user in the system with the name ".$user.".  

    Please make sure you have the username right.  The user's account may also have been deleted by the system admin."
;

 

    }





Copy and delete that from the profile.php file. Then make a new file, and call it profile2.php (make sure you have the neccessary things for the theme and functions etc. within the page.
Save that file for now. and go back to your profile.php and get rid of the first [else{}] bracket. and save the file.

Now go back to your profile2.php file.
and find where ti says:

PHP Code:


// We have specified a specific user who we are showing a profile for...
// See if the user exists...

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

    if(
$num 0){

    
$i=0;
    while (
$i 1) { 

Place the following:

PHP Code:

    $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"); 

Then scrol down and replace the 'article_title, and article content' with:

PHP Code:

    $article_title "".$usersname."'s Profile:";
        
$displaypic "<img src='".$profilepic."'>"
        
$display_quote "".$displayquote."<br>".$userdisp."<br>";
        
$aboutme "    <b>About Me:</b><br> ".$ame."<br>    <b>Interests:</b><br> ".$interests."<br>";
    
$article_content "
        <b><u>"
.$lang_basic_info."".$usersname.":</u></b></a><br><br>
    <img src='templates/icons/web.gif'> "
.$website."<br>
    <img src='templates/icons/aim.gif'> "
.$aim."<br>
    <img src='templates/icons/msn.gif'> "
.$msn."<br>
    <img src='templates/icons/yahoo.gif'> "
.$yahoo."<br>
    <img src='templates/icons/title.gif'> <a href='messages.php?act=newpm&user="
.$usersname."'>Send ".$usersname." a Private Message</a><br><br>";
    
$article_stats "
    <b><u>"
.$usersname."'s Stats:</b></u></a><br><br>
    <b>Member Since:</b> "
.$membersince."<br><br>";
    
$article_about "
    <b><u>About "
.$usersname.":</b></u></a><br><br>
    <b>Location:</b> "
.$location."<br>
    <b>Age:</b> "
.$age."<br>
    <b>Occupation:</b> "
.$occupation."<br>"

Make sure you change the profile2.php files theme url, to: $themeurl = "templates/default/usertemp.html";

And add the following to the Theme Definitions:

PHP Code:

$template replace(':DISPLAYPIC:',$displaypic,$template);
$template replace(':DISPLAYQUOTE:',$display_quote,$template);
$template replace(':ARTICLESTATS:',$article_stats,$template);
$template replace(':ARTICLEABOUT:',$article_about,$template);
$template replace(':ARTICLEABOUTME:',$aboutme,$template);
$template replace(':USERCSS:',$usercss,$template); 

Now, go to your register.php file and find where it says:

[first make sure that you place this in the configuration info part of the register file"

PHP Code:

include("inc/css.php"); 

Now, go to your register.php file and find where it says

PHP Code:

else{

//Grab the post data from the form 

and insert the following:

PHP Code:

$css2 $_POST["css2"];

$css2 secure($css2); 

Then insert the folliwng into the form:

PHP Code:

        <p><input name='css2' type='hidden' id='css2' value='".$css."'></p

then scroll down, and pay attention where the query is that insert the data into the users table,
add:

PHP Code:

'$css2'

to it, but make sure that it is in the correct order as it is within the adopts_users table.

Now download the following three pages, and add them to your server:

The css.php file go in your 'inc' directory, and the other two go into your 'templates/default' directory:
[attachment=184][attachment=185][attachment=186]

Rsmiley 05-19-2009 02:03 PM

RE: Custom Profile Modification
 
Why not have it to were if no info is given just hide that block? Otherwise you are doing a great job! Love your work!

SJC 05-19-2009 02:27 PM

RE: Custom Profile Modification
 
How would I insert the SQL details into the users table?

Bloodrun 05-19-2009 09:21 PM

RE: Custom Profile Modification
 
Quote:

Originally Posted by Rsmiley
Why not have it to were if no info is given just hide that block? Otherwise you are doing a great job! Love your work!

You could do that, yeah. Lol but I have a habbit of writing everything, making sure it works. Then going back through and putting in final touches. Lol such as that.

And thanks =D

Quote:

Originally Posted by SJC
How would I insert the SQL details into the users table?

Well if your using php-myadmin, you just go to the table, and scroll down, there will this line with options on it, you want the one one the far right, and you (it has a select option) you want it to say:

'After: the very last item in your table'
Then click go, and insert the info.

12345 05-22-2009 09:08 AM

RE: Custom Profile Modification
 
Omg Im so confiused in this instruction. Can you sand me changed files. I try to do this like 3 times.

Bloodrun 05-22-2009 09:37 AM

RE: Custom Profile Modification
 
Quote:

Originally Posted by 12345
Omg Im so confiused in this instruction. Can you sand me changed files. I try to do this like 3 times.

I would, but all my files are changed. What dont you understand?

12345 05-22-2009 11:41 AM

RE: Custom Profile Modification
 
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:


Bloodrun 05-22-2009 11:49 AM

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.

12345 05-22-2009 01:08 PM

RE: Custom Profile Modification
 
Ok so this is the files I changed.
Account:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");

$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act = $_GET["act"];
$act = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $act);
$act = secure($act);

$more = $_GET["more"];
$more = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $more);
$more = secure($more);

if($isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if($num > 0){

$i=0;
while ($i < 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if($changewarning == "1"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if($changewarning == "2"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if($changewarning == "3"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if($changewarning == "4"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if($changewarning == "5"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title = $loggedinname."'s Account";
$article_content = $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>".$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user=".$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>";

}
else if($act == "changeemail"){

// We are changing the user's email address

$article_title = $lang_email_change_title;
$article_content = $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>";

}
else if($act == "changepass"){

// We are changing the password

$article_title = $lang_changepass_title;
$article_content = $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>";

}
else if($act == "changesettings"){

// We are changing the settings

$article_title = $lang_changesettings_title;
$article_content = $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box = "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box = "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content = $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>".$usercss."</textarea>
</p>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>".$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>".$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='".$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='".$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='".$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='".$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='".$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>".$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='".$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='".$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='".$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='".$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>";



}
else{

// No valid action specified...

$article_title = "No Valid Action Specified";
$article_content = "Invalid Action";

}

}
else{

// Guest access to this page is forbidden

$article_title = $accden;
$article_content = $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar = getsidebar();
$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Accountpost:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");

$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act = $_POST["act"];
$act = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $act);
$act = secure($act);

$more = $_POST["more"];
$more = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $more);
$more = secure($more);

if($isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

// No action specified

$article_title = "Access Denied";
$article_content = "Direct access to this file is not allowed.";


}
else if($act == "changeemail"){

// We are changing the user's email address
// Grab the email from the post data...

$email = $_POST["email"];
$email = preg_replace("/[^a-zA-Z0-9@._-]/", "", $email);
$email = secure($email);

// Check that the email address is not blank and is in the valid format...

        if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
       
        $emailisvalid = "yes";
       
        }

if($email == "" or $emailisvalid != "yes"){

// Email address is bogus, show an error

$article_title = $lang_email_invalid_title;
$article_content = $emailinvalid;

}
else{

// Email is valid, so update the database...

$query = "UPDATE ".$prefix."users SET email='".$email."' WHERE username='".$loggedinname."'";
mysql_query($query);

// Show a success message to the user...

$article_title = $lang_email_update_success_title;
$article_content = $lang_email_update_success;

}

}
else if($act == "changepass"){

// We are changing the password
// First take in the passwords...

$cpass = $_POST["cpass"];
$cpass = secure($cpass);

$np1 = $_POST["np1"];
$np1 = secure($np1);

$np2 = $_POST["np2"];
$np2 = secure($np2);

// MD5 These...

$n1o = $np1;
$n2o = $np2;


$cpass = md5($cpass);
$np1 = md5($np1);
$np2 = md5($np2);

// Now we select from the users table the current password...

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

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

$vercurrentpassword=@mysql_result($result,$i,"password");

$i++;
}

if($vercurrentpassword != $cpass){

// Current password does not match the one on record...

$article_title = $lang_newpass_error_title;
$article_content = $lang_pass_nomatch_current;

}
else if($np1 != $np2){

// New passwords do not match!

$article_title = $lang_newpass_error_title;
$article_content = $lang_pass_nomatch_new;

}
else if($n1o == "" or $n2o == ""){

// Something was blank...

$article_title = $lang_newpass_error_title;
$article_content = $lang_pass_blank;


}
else{

// Everything checks out, so change the password...

// Update the password in the database, the easy part...

$query = "UPDATE ".$prefix."users SET password='".$np1."' WHERE username='".$loggedinname."' AND password='".$cpass."'";
mysql_query($query);

// Now we need to for the current session change the cookie passwords...

$past = time() - 10;
setcookie("auser",$username,$past);
setcookie("apass",$password,$past);
$isloggedin = "no";


// All done...

$article_title = $lang_pass_ch_ti;
$article_content = $lang_pass_ch;

}

}
else if($act == "changesettings"){

// We are changing the settings
$ame = $_POST["ame"];
$ame = secure($ame);

$location = $_POST["location"];
$location = secure($location);

$age = $_POST["age"];
$age = secure($age);

$occupation = $_POST["occupation"];
$occupation = secure($occupation);

$interests = $_POST["interests"];
$interests = secure($interests);

$profilepic = $_POST["profilepic"];
$profilepic = secure($profilepic);

$displayquote = $_POST["displayquote"];
$displayquote = secure($displayquote);

$usercss = $_POST["usercss"];
$usercss = secure($usercss);

$newmsgnotify = $_POST["newmsgnotify"];
$newmsgnotify = preg_replace("/[^a-zA-Z0-9@._-]/", "", $newmsgnotify);
$newmsgnotify = secure($newmsgnotify);

$website = $_POST["website"];
$website = secure($website);

$aim = $_POST["aim"];
$aim = secure($aim);

$yim = $_POST["yim"];
$yim = secure($yim);

$msn = $_POST["msn"];
$msn = secure($msn);

if($newmsgnotify != 1){
$newmsgnotify = 0;
}

// Run update queries...
$query = "UPDATE ".$prefix."users SET ame='".$ame."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query = "UPDATE ".$prefix."users SET location='".$location."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query = "UPDATE ".$prefix."users SET age='".$age."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query = "UPDATE ".$prefix."users SET occupation='".$occupation."' WHERE username='".$loggedinname."'";

mysql_query($query);

$query = "UPDATE ".$prefix."users SET interests='".$interests."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query = "UPDATE ".$prefix."users SET profilepic='".$profilepic."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query = "UPDATE ".$prefix."users SET displayquote='".$displayquote."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query = "UPDATE ".$prefix."users SET usercss='".$usercss."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query = "UPDATE ".$prefix."users SET newmessagenotify='".$newmsgnotify."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query = "UPDATE ".$prefix."users SET website='".$website."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query = "UPDATE ".$prefix."users SET aim='".$aim."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query = "UPDATE ".$prefix."users SET yahoo='".$yim."' WHERE username='".$loggedinname."'";
mysql_query($query);

$query = "UPDATE ".$prefix."users SET msn='".$msn."' WHERE username='".$loggedinname."'";
mysql_query($query);

// All done!

$article_title = $lang_changedsuccess_title;
$article_content = $lang_changedsuccess;


}
else{

// No valid action specified...

$article_title = "No Valid Action Specified";
$article_content = "Invalid Action";

}

}
else{

// Guest access to this page is forbidden

$article_title = $accden;
$article_content = $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar = getsidebar();
$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

register:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");
include("inc/css.php");
$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("register");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

if($isloggedin == "yes"){

$article_title = "You already have an account";
$article_content = "You already have an account, thus there is no need for you to register a new one.";

}
else{

//Grab the post data from the form
$css2 = $_POST["css2"];

$css2 = secure($css2);
$username = $_POST["username"];
$pass1 = $_POST["pass1"];
$pass2 = $_POST["pass2"];
$email = $_POST["email"];
$tos = $_POST["tos"];
$hidden = $_POST["hidden"];

//Protect the database
$username = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $username);
$username = secure($username);
$pass1 = secure($pass1);
$pass2 = secure($pass2);
$email = preg_replace("/[^a-zA-Z0-9@._-]/", "", $email);
$email = secure($email);
$tos = preg_replace("/[^a-zA-Z0-9s]/", "", $tos);
$hidden = preg_replace("/[^a-zA-Z0-9s]/", "", $hidden);

        if($hidden != "goregister"){

        //The form was not submitted, so we are showing the signup page...
<p><input name='css2' type='hidden' id='css2' value='".$css."'></p>
        $article_title = $regnew;
        $article_content = $regnewexplain."<br><form name='form1' method='post' action='register.php'>
          <p>Username: <input name='username' type='text' id='username' maxlength='20'></p>
          <p>Your username may be up to 20 characters long and may only contain letters, numbers and spaces. </p>
          <p>Password: <input name='pass1' type='password' id='pass1' maxlength='20'></p>
          <p>Your password may be up to 20 characters long and may contain letters, numbers, spaces and special characters. The use of a special character, such as * or ! is recommended for increased security. </p>
          <p>Confirm Password: <input name='pass2' type='password' id='pass2' maxlength='20'></p>
          <p>Email Address: <input name='email' type='text' id='email'></p>
          <p><input name='tos' type='checkbox' id='tos' value='yes'> I agree to the <a href='tos.php' target='_blank'>Terms of Service</a>.
          <input name='hidden' type='hidden' id='hidden' value='goregister'></p>
          <p><input type='submit' name='Submit' value='Register'>
          </p></form>";


        }
        else{

        //We are attempting to register the user...

        //First MD5 hash the passwords:

        $pass1 = md5($pass1);
        $pass2 = md5($pass2);

        //Next check that the username does not already exist...

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

        if($num > 0){
        $flag = 1;
        }

        //Now we verify that the email address is a valid email address...
        $emailisvalid = "no";


        if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
       
        $emailisvalid = "yes";
       
        }
       
        //First check that something required was not left blank...

        if($username == "" or $pass1 == "" or $pass2 == "" or $email == ""){
        $article_title = "Error";
        $article_content = $regblank;
        }
        else if($pass1 != $pass2){
       
        //Passwords do not match

        $article_title = "Your passwords do not match";
        $article_content = $passnomatch;

        }
        else if($tos != "yes"){

        //User did not agree to TOS
        $article_title = "Terms of Service Error";
        $article_content = $notos;

        }
        else if($flag > 0){

        //Username already exists
        $article_title = "Your username already exists";
        $article_content = $userexists;       

        }
        else if($emailisvalid != "yes"){

        //Email address is not valid or is a fake

        $article_title = "Email address is not valid";
        $article_content = $emailinvalid;

        }
        else{

        //All checks are done, actually create the user's account on the database

        $date = date('Y-m-d');

        mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1','$email','3','1', '$date', '0','','','','','','','','','','','','','','')");

        //Now that we have created the user, let's log them in...

        $status = dologin($username, $pass1);

        if($status != "success"){
       
        $article_title = "Something is Wrong!";
        $article_content = "Something is very, very wrong.  Please contact Rusnak PHP Scripts about this error.";

        }
        else{

        //We are registered and logged in...

        $article_title = $titleregsuccess;
        $article_content = $regsuccess."".$username."".$regsuccess2;

        //Reflect our changes in the sidebar...
        $sidebar = "<b><u>Welcome ".$username."</u></b>:<br><a href='account.php'>Go to My Account</a><br><a href='adopt.php'>Adopt Some Pets</a>";

        }


        }
       


        }

}

// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

if($sidebar == ""){

$sidebar = getsidebar();
}

$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Profile:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// File ID: profile.php
// Shows a user profile, or a member list.
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");

$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************



// We did not specify a user, so show the memberlist

$article_title = "Memberlist";
$article_content = "Here are all of the members of this site, sorted by registration date.<br><br>";

$query = "SELECT * FROM ".$prefix."users ORDER BY uid ASC";
$result = mysql_query($query);
$num = mysql_numrows($result);

$rowsperpage = 15;
$totalpages = ceil($num / $rowsperpage);

if(is_numeric($page) and $page != ""){
$currentpage = $page;
}
else{
$currentpage = 1;
}

if ($currentpage > $totalpages) { 
$currentpage = $totalpages; 
}
if ($currentpage < 1) { 
$currentpage = 1; 
}
$offset = ($currentpage - 1) * $rowsperpage; 

$query = "SELECT * FROM ".$prefix."users ORDER BY uid ASC LIMIT $offset, $rowsperpage";
$result = mysql_query($query);
$num2 = mysql_numrows($result);

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

$id=@mysql_result($result,$i,"uid");
$username=@mysql_result($result,$i,"username");
$email=@mysql_result($result,$i,"email");
$level=@mysql_result($result,$i,"usergroup");

$star = "";
$status = cancp($level);

if($status == "yes"){
$star = "<img src='templates/icons/star.gif' border=0'> ";
}

$article_content = $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";

$i++;
}



$article_content = $article_content."<br>";


if($currentpage > 1) {
$newpage = $currentpage - 1;
$article_content = $article_content."<b><a href='profile.php?page=".$newpage."'><img src='templates/icons/prev.gif' border=0> Previous Page</a></b> ";
}
else{
$article_content = $article_content."<b><img src='templates/icons/prev.gif' border=0> Previous Page</b> ";
}
if($currentpage < $totalpages) {
$newpage = $currentpage + 1;
$article_content = $article_content." ::  <b><a href='profile.php?page=".$newpage."'>Next Page <img src='templates/icons/next.gif' border=0></a></b> ";
}
else{
$article_content = $article_content." ::  <b>Next Page <img src='templates/icons/next.gif' border=0></b>";

}

}


// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar = getsidebar();
$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Profile2:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// File ID: profile.php
// Shows a user profile, or a member list.
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");

$themeurl = "templates/default/usertemp.html";

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

// This page handles user profiles and shows the site members...

$user = $_GET["user"];
$user = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $user);
$user = secure($user);

$page = $_GET["page"];
$page = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $page);
$page = secure($page);

if($user != ""){

// We have specified a specific user who we are showing a profile for...
// See if the user exists...

        $query = "SELECT * FROM ".$prefix."users WHERE username = '".$user."'";
        $result = mysql_query($query);
        $num = mysql_numrows($result);
   
        if($num > 0){

        $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");
        $usersname=@mysql_result($result,$i,"username");
        $usersgroup=@mysql_result($result,$i,"usergroup");
        $website=@mysql_result($result,$i,"website");
        $aim=@mysql_result($result,$i,"aim");
        $yahoo=@mysql_result($result,$i,"yahoo");
        $msn=@mysql_result($result,$i,"msn");
        $membersince=@mysql_result($result,$i,"membersince");

        if($website == ""){
        $website = "No Website Information Given";
        }
        else{
        $website = "<a href='".$website."' target='_blank'>".$website."</a>";
        }

        if($msn == ""){
        $msn = "No MSN Information Given";
        }
       
        if($aim == ""){
        $aim = "No AIM Information Given";
        }

        if($yahoo == ""){
        $yahoo = "No YIM Information Given";
        }
       

        $i++;
        }

        $query = "SELECT * FROM ".$prefix."owned_adoptables WHERE owner = '".$user."'";
        $result = mysql_query($query);
        $numpets = mysql_numrows($result);

        // Show the user's profile page...

        $ccstat = cancp($usersgroup);
        if($ccstat == "yes"){
        $userdisp = "<img src='templates/icons/star.gif'> ".$usersname."";
        }
        else{
        $userdisp = $usersname;
        }

  $article_title = "".$usersname."'s Profile:";
        $displaypic = "<img src='".$profilepic."'>";
        $display_quote = "".$displayquote."<br>".$userdisp."<br>";
        $aboutme = "    <b>About Me:</b><br> ".$ame."<br>    <b>Interests:</b><br> ".$interests."<br>";
    $article_content = "
        <b><u>".$lang_basic_info."".$usersname.":</u></b></a><br><br>
    <img src='templates/icons/web.gif'> ".$website."<br>
    <img src='templates/icons/aim.gif'> ".$aim."<br>
    <img src='templates/icons/msn.gif'> ".$msn."<br>
    <img src='templates/icons/yahoo.gif'> ".$yahoo."<br>
    <img src='templates/icons/title.gif'> <a href='messages.php?act=newpm&user=".$usersname."'>Send ".$usersname." a Private Message</a><br><br>";
    $article_stats = "
    <b><u>".$usersname."'s Stats:</b></u></a><br><br>
    <b>Member Since:</b> ".$membersince."<br><br>";
    $article_about = "
    <b><u>About ".$usersname.":</b></u></a><br><br>
    <b>Location:</b> ".$location."<br>
    <b>Age:</b> ".$age."<br>
    <b>Occupation:</b> ".$occupation."<br>";
    $article_stats = "
    <b><u>".$usersname."'s Stats:</b></u></a><br><br>
    <b>Member Since:</b> ".$membersince."<br><br>";
    $article_about = "
    <b><u>About ".$usersname.":</b></u></a><br><br>
    <b>Location:</b> ".$location."<br>
    <b>Age:</b> ".$age."<br>
    <b>Occupation:</b> ".$occupation."<br>";

        if($numpets > 0){

        $i=0;
        while ($i < $numpets) {

        $aid=@mysql_result($result,$i,"aid");
        $image = getcurrentimage($aid);

        $article_content = $article_content."<a href='levelup.php?id=".$aid."'><img src='".$image."' border='0'></a>";


        $i++;
        }
        }
        else{
        $article_content = $article_content."This user currently does not have any pets.";
        }

        }
        else{
       
        // User doesn't seem to exist, oh noes!

        $article_title = "User Does Not Exist";
        $article_content = "Sorry, but we could not find a user in the system with the name ".$user.". 
        Please make sure you have the username right.  The user's account may also have been deleted by the system admin.";
 
        }

}
// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':DISPLAYPIC:',$displaypic,$template);
$template = replace(':DISPLAYQUOTE:',$display_quote,$template);
$template = replace(':ARTICLESTATS:',$article_stats,$template);
$template = replace(':ARTICLEABOUT:',$article_about,$template);
$template = replace(':ARTICLEABOUTME:',$aboutme,$template);
$template = replace(':USERCSS:',$usercss,$template);
$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar = getsidebar();
$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

And in account there will not be MSN etc infos. Ow and I cant download user.css and usertemp.html. They redirect me to html page.

Bloodrun 05-22-2009 11:03 PM

RE: Custom Profile Modification
 
Account:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");

$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act = $_GET["act"];
$act = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $act);
$act = secure($act);

$more = $_GET["more"];
$more = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $more);
$more = secure($more);

if($isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if($num > 0){

$i=0;
while ($i < 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if($changewarning == "1"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if($changewarning == "2"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if($changewarning == "3"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if($changewarning == "4"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if($changewarning == "5"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title = $loggedinname."'s Account";
$article_content = $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>".$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user=".$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>";

}
else if($act == "changeemail"){

// We are changing the user's email address

$article_title = $lang_email_change_title;
$article_content = $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>";

}
else if($act == "changepass"){

// We are changing the password

$article_title = $lang_changepass_title;
$article_content = $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>";

}
else if($act == "changesettings"){

// We are changing the settings

$article_title = $lang_changesettings_title;
$article_content = $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box = "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box = "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content = $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>".$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>".$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>".$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='".$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='".$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='".$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='".$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='".$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>".$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='".$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='".$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='".$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='".$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>";



}
else{

// No valid action specified...

$article_title = "No Valid Action Specified";
$article_content = "Invalid Action";

}

}
else{

// Guest access to this page is forbidden

$article_title = $accden;
$article_content = $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar = getsidebar();
$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

register:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");
include("inc/css.php");
$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("register");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

if($isloggedin == "yes"){

$article_title = "You already have an account";
$article_content = "You already have an account, thus there is no need for you to register a new one.";

}
else{

//Grab the post data from the form
$css2 = $_POST["css2"];

$css2 = secure($css2);
$username = $_POST["username"];
$pass1 = $_POST["pass1"];
$pass2 = $_POST["pass2"];
$email = $_POST["email"];
$tos = $_POST["tos"];
$hidden = $_POST["hidden"];

//Protect the database
$username = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $username);
$username = secure($username);
$pass1 = secure($pass1);
$pass2 = secure($pass2);
$email = preg_replace("/[^a-zA-Z0-9@._-]/", "", $email);
$email = secure($email);
$tos = preg_replace("/[^a-zA-Z0-9s]/", "", $tos);
$hidden = preg_replace("/[^a-zA-Z0-9s]/", "", $hidden);

        if($hidden != "goregister"){

        //The form was not submitted, so we are showing the signup page...
        $article_title = $regnew;
        $article_content = $regnewexplain."<br><form name='form1' method='post' action='register.php'>
<p><input name='css2' type='hidden' id='css2' value='".$css."'></p>
          <p>Username: <input name='username' type='text' id='username' maxlength='20'></p>
          <p>Your username may be up to 20 characters long and may only contain letters, numbers and spaces. </p>
          <p>Password: <input name='pass1' type='password' id='pass1' maxlength='20'></p>
          <p>Your password may be up to 20 characters long and may contain letters, numbers, spaces and special characters. The use of a special character, such as * or ! is recommended for increased security. </p>
          <p>Confirm Password: <input name='pass2' type='password' id='pass2' maxlength='20'></p>
          <p>Email Address: <input name='email' type='text' id='email'></p>
          <p><input name='tos' type='checkbox' id='tos' value='yes'> I agree to the <a href='tos.php' target='_blank'>Terms of Service</a>.
          <input name='hidden' type='hidden' id='hidden' value='goregister'></p>
          <p><input type='submit' name='Submit' value='Register'>
          </p></form>";


        }
        else{

        //We are attempting to register the user...

        //First MD5 hash the passwords:

        $pass1 = md5($pass1);
        $pass2 = md5($pass2);

        //Next check that the username does not already exist...

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

        if($num > 0){
        $flag = 1;
        }

        //Now we verify that the email address is a valid email address...
        $emailisvalid = "no";


        if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
       
        $emailisvalid = "yes";
       
        }
       
        //First check that something required was not left blank...

        if($username == "" or $pass1 == "" or $pass2 == "" or $email == ""){
        $article_title = "Error";
        $article_content = $regblank;
        }
        else if($pass1 != $pass2){
       
        //Passwords do not match

        $article_title = "Your passwords do not match";
        $article_content = $passnomatch;

        }
        else if($tos != "yes"){

        //User did not agree to TOS
        $article_title = "Terms of Service Error";
        $article_content = $notos;

        }
        else if($flag > 0){

        //Username already exists
        $article_title = "Your username already exists";
        $article_content = $userexists;       

        }
        else if($emailisvalid != "yes"){

        //Email address is not valid or is a fake

        $article_title = "Email address is not valid";
        $article_content = $emailinvalid;

        }
        else{

        //All checks are done, actually create the user's account on the database

        $date = date('Y-m-d');

        mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1','$email','3','1', '$date', '0','','','','','','','','','','','','','','')");

        //Now that we have created the user, let's log them in...

        $status = dologin($username, $pass1);

        if($status != "success"){
       
        $article_title = "Something is Wrong!";
        $article_content = "Something is very, very wrong.  Please contact Rusnak PHP Scripts about this error.";

        }
        else{

        //We are registered and logged in...

        $article_title = $titleregsuccess;
        $article_content = $regsuccess."".$username."".$regsuccess2;

        //Reflect our changes in the sidebar...
        $sidebar = "<b><u>Welcome ".$username."</u></b>:<br><a href='account.php'>Go to My Account</a><br><a href='adopt.php'>Adopt Some Pets</a>";

        }


        }
       


        }

}

// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

if($sidebar == ""){

$sidebar = getsidebar();
}

$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Okay so the two codes at the top (register, and account) were the ones that had problems in them. They should both be fixed now. So use them.
And What do you mean you can't download them? They should be attachment, ill try ad see whats wrong.

12345 05-23-2009 06:20 AM

RE: Custom Profile Modification
 
Quote:

Originally Posted by Bloodrun
Account:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");

$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act = $_GET["act"];
$act = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $act);
$act = secure($act);

$more = $_GET["more"];
$more = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $more);
$more = secure($more);

if($isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if($num > 0){

$i=0;
while ($i < 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if($changewarning == "1"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if($changewarning == "2"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if($changewarning == "3"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if($changewarning == "4"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if($changewarning == "5"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title = $loggedinname."'s Account";
$article_content = $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>".$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user=".$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>";

}
else if($act == "changeemail"){

// We are changing the user's email address

$article_title = $lang_email_change_title;
$article_content = $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>";

}
else if($act == "changepass"){

// We are changing the password

$article_title = $lang_changepass_title;
$article_content = $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>";

}
else if($act == "changesettings"){

// We are changing the settings

$article_title = $lang_changesettings_title;
$article_content = $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box = "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box = "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content = $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>".$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>".$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>".$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='".$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='".$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='".$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='".$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='".$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>".$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='".$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='".$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='".$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='".$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>";



}
else{

// No valid action specified...

$article_title = "No Valid Action Specified";
$article_content = "Invalid Action";

}

}
else{

// Guest access to this page is forbidden

$article_title = $accden;
$article_content = $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar = getsidebar();
$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

register:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");
include("inc/css.php");
$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("register");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

if($isloggedin == "yes"){

$article_title = "You already have an account";
$article_content = "You already have an account, thus there is no need for you to register a new one.";

}
else{

//Grab the post data from the form
$css2 = $_POST["css2"];

$css2 = secure($css2);
$username = $_POST["username"];
$pass1 = $_POST["pass1"];
$pass2 = $_POST["pass2"];
$email = $_POST["email"];
$tos = $_POST["tos"];
$hidden = $_POST["hidden"];

//Protect the database
$username = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $username);
$username = secure($username);
$pass1 = secure($pass1);
$pass2 = secure($pass2);
$email = preg_replace("/[^a-zA-Z0-9@._-]/", "", $email);
$email = secure($email);
$tos = preg_replace("/[^a-zA-Z0-9s]/", "", $tos);
$hidden = preg_replace("/[^a-zA-Z0-9s]/", "", $hidden);

        if($hidden != "goregister"){

        //The form was not submitted, so we are showing the signup page...
        $article_title = $regnew;
        $article_content = $regnewexplain."<br><form name='form1' method='post' action='register.php'>
<p><input name='css2' type='hidden' id='css2' value='".$css."'></p>
          <p>Username: <input name='username' type='text' id='username' maxlength='20'></p>
          <p>Your username may be up to 20 characters long and may only contain letters, numbers and spaces. </p>
          <p>Password: <input name='pass1' type='password' id='pass1' maxlength='20'></p>
          <p>Your password may be up to 20 characters long and may contain letters, numbers, spaces and special characters. The use of a special character, such as * or ! is recommended for increased security. </p>
          <p>Confirm Password: <input name='pass2' type='password' id='pass2' maxlength='20'></p>
          <p>Email Address: <input name='email' type='text' id='email'></p>
          <p><input name='tos' type='checkbox' id='tos' value='yes'> I agree to the <a href='tos.php' target='_blank'>Terms of Service</a>.
          <input name='hidden' type='hidden' id='hidden' value='goregister'></p>
          <p><input type='submit' name='Submit' value='Register'>
          </p></form>";


        }
        else{

        //We are attempting to register the user...

        //First MD5 hash the passwords:

        $pass1 = md5($pass1);
        $pass2 = md5($pass2);

        //Next check that the username does not already exist...

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

        if($num > 0){
        $flag = 1;
        }

        //Now we verify that the email address is a valid email address...
        $emailisvalid = "no";


        if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
       
        $emailisvalid = "yes";
       
        }
       
        //First check that something required was not left blank...

        if($username == "" or $pass1 == "" or $pass2 == "" or $email == ""){
        $article_title = "Error";
        $article_content = $regblank;
        }
        else if($pass1 != $pass2){
       
        //Passwords do not match

        $article_title = "Your passwords do not match";
        $article_content = $passnomatch;

        }
        else if($tos != "yes"){

        //User did not agree to TOS
        $article_title = "Terms of Service Error";
        $article_content = $notos;

        }
        else if($flag > 0){

        //Username already exists
        $article_title = "Your username already exists";
        $article_content = $userexists;       

        }
        else if($emailisvalid != "yes"){

        //Email address is not valid or is a fake

        $article_title = "Email address is not valid";
        $article_content = $emailinvalid;

        }
        else{

        //All checks are done, actually create the user's account on the database

        $date = date('Y-m-d');

        mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1','$email','3','1', '$date', '0','','','','','','','','','','','','','','')");

        //Now that we have created the user, let's log them in...

        $status = dologin($username, $pass1);

        if($status != "success"){
       
        $article_title = "Something is Wrong!";
        $article_content = "Something is very, very wrong.  Please contact Rusnak PHP Scripts about this error.";

        }


        else{

        //We are registered and logged in...

        $article_title = $titleregsuccess;
        $article_content = $regsuccess."".$username."".$regsuccess2;

        //Reflect our changes in the sidebar...
        $sidebar = "<b><u>Welcome ".$username."</u></b>:<br><a href='account.php'>Go to My Account</a><br><a href='adopt.php'>Adopt Some Pets</a>";

        }


        }
       


        }

}

// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

if($sidebar == ""){

$sidebar = getsidebar();
}

$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Okay so the two codes at the top (register, and account) were the ones that had problems in them. They should both be fixed now. So use them.
And What do you mean you can't download them? They should be attachment, ill try ad see whats wrong.

I get this when go to account.php on my site:
Code:

Parse error: syntax error, unexpected T_ELSE in /home/a1400075/public_html/account.php on line 273
and when go on profile.php and click on some user it just refresh page:
Ow and Im puting to server profile and profile2 files?

PS. You mistake files names. It should be css.css and user.php ;)

Bloodrun 05-23-2009 12:56 PM

RE: Custom Profile Modification
 
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Account:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");

$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act = $_GET["act"];
$act = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $act);
$act = secure($act);

$more = $_GET["more"];
$more = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $more);
$more = secure($more);

if($isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if($num > 0){

$i=0;
while ($i < 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if($changewarning == "1"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if($changewarning == "2"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if($changewarning == "3"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if($changewarning == "4"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if($changewarning == "5"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title = $loggedinname."'s Account";
$article_content = $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>".$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user=".$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>";

}
else if($act == "changeemail"){

// We are changing the user's email address

$article_title = $lang_email_change_title;
$article_content = $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>";

}
else if($act == "changepass"){

// We are changing the password

$article_title = $lang_changepass_title;
$article_content = $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>";

}
else if($act == "changesettings"){

// We are changing the settings

$article_title = $lang_changesettings_title;
$article_content = $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box = "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box = "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content = $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>".$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>".$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>".$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='".$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='".$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='".$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='".$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='".$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>".$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='".$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='".$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='".$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='".$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>";



}
else{

// No valid action specified...

$article_title = "No Valid Action Specified";
$article_content = "Invalid Action";

}

}
else{

// Guest access to this page is forbidden

$article_title = $accden;
$article_content = $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar = getsidebar();
$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

register:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");
include("inc/css.php");
$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("register");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

if($isloggedin == "yes"){

$article_title = "You already have an account";
$article_content = "You already have an account, thus there is no need for you to register a new one.";

}
else{

//Grab the post data from the form
$css2 = $_POST["css2"];

$css2 = secure($css2);
$username = $_POST["username"];
$pass1 = $_POST["pass1"];
$pass2 = $_POST["pass2"];
$email = $_POST["email"];
$tos = $_POST["tos"];
$hidden = $_POST["hidden"];

//Protect the database
$username = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $username);
$username = secure($username);
$pass1 = secure($pass1);
$pass2 = secure($pass2);
$email = preg_replace("/[^a-zA-Z0-9@._-]/", "", $email);
$email = secure($email);
$tos = preg_replace("/[^a-zA-Z0-9s]/", "", $tos);
$hidden = preg_replace("/[^a-zA-Z0-9s]/", "", $hidden);

        if($hidden != "goregister"){

        //The form was not submitted, so we are showing the signup page...
        $article_title = $regnew;
        $article_content = $regnewexplain."<br><form name='form1' method='post' action='register.php'>
<p><input name='css2' type='hidden' id='css2' value='".$css."'></p>
          <p>Username: <input name='username' type='text' id='username' maxlength='20'></p>
          <p>Your username may be up to 20 characters long and may only contain letters, numbers and spaces. </p>
          <p>Password: <input name='pass1' type='password' id='pass1' maxlength='20'></p>
          <p>Your password may be up to 20 characters long and may contain letters, numbers, spaces and special characters. The use of a special character, such as * or ! is recommended for increased security. </p>
          <p>Confirm Password: <input name='pass2' type='password' id='pass2' maxlength='20'></p>
          <p>Email Address: <input name='email' type='text' id='email'></p>
          <p><input name='tos' type='checkbox' id='tos' value='yes'> I agree to the <a href='tos.php' target='_blank'>Terms of Service</a>.
          <input name='hidden' type='hidden' id='hidden' value='goregister'></p>
          <p><input type='submit' name='Submit' value='Register'>
          </p></form>";


        }
        else{

        //We are attempting to register the user...

        //First MD5 hash the passwords:

        $pass1 = md5($pass1);
        $pass2 = md5($pass2);

        //Next check that the username does not already exist...

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

        if($num > 0){
        $flag = 1;
        }

        //Now we verify that the email address is a valid email address...
        $emailisvalid = "no";


        if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
       
        $emailisvalid = "yes";
       
        }
       
        //First check that something required was not left blank...

        if($username == "" or $pass1 == "" or $pass2 == "" or $email == ""){
        $article_title = "Error";
        $article_content = $regblank;
        }
        else if($pass1 != $pass2){
       
        //Passwords do not match

        $article_title = "Your passwords do not match";
        $article_content = $passnomatch;

        }
        else if($tos != "yes"){

        //User did not agree to TOS
        $article_title = "Terms of Service Error";
        $article_content = $notos;

        }
        else if($flag > 0){

        //Username already exists
        $article_title = "Your username already exists";
        $article_content = $userexists;       

        }
        else if($emailisvalid != "yes"){

        //Email address is not valid or is a fake

        $article_title = "Email address is not valid";
        $article_content = $emailinvalid;

        }
        else{

        //All checks are done, actually create the user's account on the database

        $date = date('Y-m-d');

        mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1','$email','3','1', '$date', '0','','','','','','','','','','','','','','')");

        //Now that we have created the user, let's log them in...

        $status = dologin($username, $pass1);

        if($status != "success"){
       
        $article_title = "Something is Wrong!";
        $article_content = "Something is very, very wrong.  Please contact Rusnak PHP Scripts about this error.";

        }


        else{

        //We are registered and logged in...

        $article_title = $titleregsuccess;
        $article_content = $regsuccess."".$username."".$regsuccess2;

        //Reflect our changes in the sidebar...
        $sidebar = "<b><u>Welcome ".$username."</u></b>:<br><a href='account.php'>Go to My Account</a><br><a href='adopt.php'>Adopt Some Pets</a>";

        }


        }
       


        }

}

// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

if($sidebar == ""){

$sidebar = getsidebar();
}

$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Okay so the two codes at the top (register, and account) were the ones that had problems in them. They should both be fixed now. So use them.
And What do you mean you can't download them? They should be attachment, ill try ad see whats wrong.

I get this when go to account.php on my site:
Code:

Parse error: syntax error, unexpected T_ELSE in /home/a1400075/public_html/account.php on line 273
and when go on profile.php and click on some user it just refresh page:
Ow and Im puting to server profile and profile2 files?

PS. You mistake files names. It should be css.css and user.php ;)

Yes you need to put both the profiles on there.
And no, I didn't mistake the names. It is user.css and css.php.
css.php is there to store the css code for new registers. and the user.css is their to call the css from that users database.

12345 05-24-2009 08:15 AM

RE: Custom Profile Modification
 
I get this when go to profile.php:
Code:

Parse error: syntax error, unexpected '}' in /home/a1400075/public_html/profile.php on line 140
and this when to account.php:
Code:

Parse error: syntax error, unexpected T_ELSE in /home/a1400075/public_html/account.php on line 273
Heres code of them. Account.php:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");

$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act = $_GET["act"];
$act = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $act);
$act = secure($act);

$more = $_GET["more"];
$more = preg_replace("/[^a-zA-Z0-9\\040.]/", "", $more);
$more = secure($more);

if($isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if($num > 0){

$i=0;
while ($i < 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if($changewarning == "1"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if($changewarning == "2"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if($changewarning == "3"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if($changewarning == "4"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if($changewarning == "5"){
$warn = "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title = $loggedinname."'s Account";
$article_content = $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>".$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user=".$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>";

}
else if($act == "changeemail"){

// We are changing the user's email address

$article_title = $lang_email_change_title;
$article_content = $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>";

}
else if($act == "changepass"){

// We are changing the password

$article_title = $lang_changepass_title;
$article_content = $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>";

}
else if($act == "changesettings"){

// We are changing the settings

$article_title = $lang_changesettings_title;
$article_content = $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box = "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box = "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content = $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>".$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>".$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>".$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='".$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='".$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='".$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='".$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='".$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>".$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='".$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='".$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='".$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='".$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>";



}
else{

// No valid action specified...

$article_title = "No Valid Action Specified";
$article_content = "Invalid Action";

}

}
else{

// Guest access to this page is forbidden

$article_title = $accden;
$article_content = $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar = getsidebar();
$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

profile.php:
Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// File ID: profile.php
// Shows a user profile, or a member list.
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");

$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************


// We did not specify a user, so show the memberlist

$article_title = "Memberlist";
$article_content = "Here are all of the members of this site, sorted by registration date.<br><br>";

$query = "SELECT * FROM ".$prefix."users ORDER BY uid ASC";
$result = mysql_query($query);
$num = mysql_numrows($result);

$rowsperpage = 15;
$totalpages = ceil($num / $rowsperpage);

if(is_numeric($page) and $page != ""){
$currentpage = $page;
}
else{
$currentpage = 1;
}

if ($currentpage > $totalpages) { 
$currentpage = $totalpages; 
}
if ($currentpage < 1) { 
$currentpage = 1; 
}
$offset = ($currentpage - 1) * $rowsperpage; 

$query = "SELECT * FROM ".$prefix."users ORDER BY uid ASC LIMIT $offset, $rowsperpage";
$result = mysql_query($query);
$num2 = mysql_numrows($result);

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

$id=@mysql_result($result,$i,"uid");
$username=@mysql_result($result,$i,"username");
$email=@mysql_result($result,$i,"email");
$level=@mysql_result($result,$i,"usergroup");

$star = "";
$status = cancp($level);

if($status == "yes"){
$star = "<img src='templates/icons/star.gif' border=0'> ";
}

$article_content = $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";

$i++;
}



$article_content = $article_content."<br>";


if($currentpage > 1) {
$newpage = $currentpage - 1;
$article_content = $article_content."<b><a href='profile.php?page=".$newpage."'><img src='templates/icons/prev.gif' border=0> Previous Page</a></b> ";
}
else{
$article_content = $article_content."<b><img src='templates/icons/prev.gif' border=0> Previous Page</b> ";
}
if($currentpage < $totalpages) {
$newpage = $currentpage + 1;
$article_content = $article_content." ::  <b><a href='profile.php?page=".$newpage."'>Next Page <img src='templates/icons/next.gif' border=0></a></b> ";
}
else{
$article_content = $article_content." ::  <b>Next Page <img src='templates/icons/next.gif' border=0></b>";

}

}


// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar = getsidebar();
$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


echo $template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>


Bloodrun 05-24-2009 11:45 AM

RE: Custom Profile Modification
 
Okay try this for your account.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}
}
else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";



}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

And this for your profile.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// File ID: profile.php
// Shows a user profile, or a member list.
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************


// We did not specify a user, so show the memberlist

$article_title "Memberlist";
$article_content "Here are all of the members of this site, sorted by registration date.<br><br>";

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC";
$result mysql_query($query);
$num mysql_numrows($result);

$rowsperpage 15;
$totalpages ceil($num $rowsperpage);

if(
is_numeric($page) and $page != ""){
$currentpage $page;
}
else{
$currentpage 1;
}

if (
$currentpage $totalpages) {  
$currentpage $totalpages;  
}
if (
$currentpage 1) {  
$currentpage 1;  
}
$offset = ($currentpage 1) * $rowsperpage;  

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC LIMIT $offset$rowsperpage";
$result mysql_query($query);
$num2 mysql_numrows($result);

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

$id=@mysql_result($result,$i,"uid");
$username=@mysql_result($result,$i,"username");
$email=@mysql_result($result,$i,"email");
$level=@mysql_result($result,$i,"usergroup");

$star "";
$status cancp($level);

if(
$status == "yes"){
$star "<img src='templates/icons/star.gif' border=0'> ";
}

$article_content $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";

$i++;
}



$article_content $article_content."<br>";


if(
$currentpage 1) {
$newpage $currentpage 1;
$article_content $article_content."<b><a href='profile.php?page=".$newpage."'><img src='templates/icons/prev.gif' border=0> Previous Page</a></b> ";
}
else{
$article_content $article_content."<b><img src='templates/icons/prev.gif' border=0> Previous Page</b> ";
}
if(
$currentpage $totalpages) {
$newpage $currentpage 1;
$article_content $article_content." ::  <b><a href='profile.php?page=".$newpage."'>Next Page <img src='templates/icons/next.gif' border=0></a></b> ";
}
else{
$article_content $article_content." ::  <b>Next Page <img src='templates/icons/next.gif' border=0></b>";

}




// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Those both should work now.

12345 05-24-2009 01:46 PM

RE: Custom Profile Modification
 
Quote:

Originally Posted by Bloodrun
Okay try this for your account.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}
}
else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";



}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

And this for your profile.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// File ID: profile.php
// Shows a user profile, or a member list.
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************


// We did not specify a user, so show the memberlist

$article_title "Memberlist";
$article_content "Here are all of the members of this site, sorted by registration date.<br><br>";

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC";
$result mysql_query($query);
$num mysql_numrows($result);

$rowsperpage 15;
$totalpages ceil($num $rowsperpage);

if(
is_numeric($page) and $page != ""){
$currentpage $page;
}
else{
$currentpage 1;
}

if (
$currentpage $totalpages) {  
$currentpage $totalpages;  
}
if (
$currentpage 1) {  
$currentpage 1;  
}
$offset = ($currentpage 1) * $rowsperpage;  

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC LIMIT $offset$rowsperpage";
$result mysql_query($query);
$num2 mysql_numrows($result);

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

$id=@mysql_result($result,$i,"uid");
$username=@mysql_result($result,$i,"username");
$email=@mysql_result($result,$i,"email");
$level=@mysql_result($result,$i,"usergroup");

$star "";
$status cancp($level);

if(
$status == "yes"){
$star "<img src='templates/icons/star.gif' border=0'> ";
}

$article_content $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";

$i++;
}



$article_content $article_content."<br>";


if(
$currentpage 1) {
$newpage $currentpage 1;
$article_content $article_content."<b><a href='profile.php?page=".$newpage."'><img src='templates/icons/prev.gif' border=0> Previous Page</a></b> ";
}
else{
$article_content $article_content."<b><img src='templates/icons/prev.gif' border=0> Previous Page</b> ";
}
if(
$currentpage $totalpages) {
$newpage $currentpage 1;
$article_content $article_content." ::  <b><a href='profile.php?page=".$newpage."'>Next Page <img src='templates/icons/next.gif' border=0></a></b> ";
}
else{
$article_content $article_content." ::  <b>Next Page <img src='templates/icons/next.gif' border=0></b>";

}




// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Those both should work now.

Ok now Im really confused. Account file is still with problem but profile is good. Only when click on user(on profile.php) to see his profile it refresh page.

Bloodrun 05-24-2009 07:42 PM

RE: Custom Profile Modification
 
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Okay try this for your account.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}
}
else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";



}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

And this for your profile.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// File ID: profile.php
// Shows a user profile, or a member list.
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************


// We did not specify a user, so show the memberlist

$article_title "Memberlist";
$article_content "Here are all of the members of this site, sorted by registration date.<br><br>";

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC";
$result mysql_query($query);
$num mysql_numrows($result);

$rowsperpage 15;
$totalpages ceil($num $rowsperpage);

if(
is_numeric($page) and $page != ""){
$currentpage $page;
}
else{
$currentpage 1;
}

if (
$currentpage $totalpages) {  
$currentpage $totalpages;  
}
if (
$currentpage 1) {  
$currentpage 1;  
}
$offset = ($currentpage 1) * $rowsperpage;  

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC LIMIT $offset$rowsperpage";
$result mysql_query($query);
$num2 mysql_numrows($result);

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

$id=@mysql_result($result,$i,"uid");
$username=@mysql_result($result,$i,"username");
$email=@mysql_result($result,$i,"email");
$level=@mysql_result($result,$i,"usergroup");

$star "";
$status cancp($level);

if(
$status == "yes"){
$star "<img src='templates/icons/star.gif' border=0'> ";
}

$article_content $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";

$i++;
}



$article_content $article_content."<br>";


if(
$currentpage 1) {
$newpage $currentpage 1;
$article_content $article_content."<b><a href='profile.php?page=".$newpage."'><img src='templates/icons/prev.gif' border=0> Previous Page</a></b> ";
}
else{
$article_content $article_content."<b><img src='templates/icons/prev.gif' border=0> Previous Page</b> ";
}
if(
$currentpage $totalpages) {
$newpage $currentpage 1;
$article_content $article_content." ::  <b><a href='profile.php?page=".$newpage."'>Next Page <img src='templates/icons/next.gif' border=0></a></b> ";
}
else{
$article_content $article_content." ::  <b>Next Page <img src='templates/icons/next.gif' border=0></b>";

}




// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Those both should work now.

Ok now Im really confused. Account file is still with problem but profile is good. Only when click on user(on profile.php) to see his profile it refresh page.

OMG >.<

Okay, um let I'll have to wait till I get to my computer to compare the two. Ill probably end up just giving you my file page. And if that fails, Ill have to install it for you.

12345 05-27-2009 05:14 AM

RE: Custom Profile Modification
 
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Okay try this for your account.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}
}
else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";



}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

And this for your profile.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// File ID: profile.php
// Shows a user profile, or a member list.
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************


// We did not specify a user, so show the memberlist

$article_title "Memberlist";
$article_content "Here are all of the members of this site, sorted by registration date.<br><br>";

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC";
$result mysql_query($query);
$num mysql_numrows($result);

$rowsperpage 15;
$totalpages ceil($num $rowsperpage);

if(
is_numeric($page) and $page != ""){
$currentpage $page;
}
else{
$currentpage 1;
}

if (
$currentpage $totalpages) {  
$currentpage $totalpages;  
}
if (
$currentpage 1) {  
$currentpage 1;  
}
$offset = ($currentpage 1) * $rowsperpage;  

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC LIMIT $offset$rowsperpage";
$result mysql_query($query);
$num2 mysql_numrows($result);

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

$id=@mysql_result($result,$i,"uid");
$username=@mysql_result($result,$i,"username");
$email=@mysql_result($result,$i,"email");
$level=@mysql_result($result,$i,"usergroup");

$star "";
$status cancp($level);

if(
$status == "yes"){
$star "<img src='templates/icons/star.gif' border=0'> ";
}

$article_content $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";

$i++;
}



$article_content $article_content."<br>";


if(
$currentpage 1) {
$newpage $currentpage 1;
$article_content $article_content."<b><a href='profile.php?page=".$newpage."'><img src='templates/icons/prev.gif' border=0> Previous Page</a></b> ";
}
else{
$article_content $article_content."<b><img src='templates/icons/prev.gif' border=0> Previous Page</b> ";
}
if(
$currentpage $totalpages) {
$newpage $currentpage 1;
$article_content $article_content." ::  <b><a href='profile.php?page=".$newpage."'>Next Page <img src='templates/icons/next.gif' border=0></a></b> ";
}
else{
$article_content $article_content." ::  <b>Next Page <img src='templates/icons/next.gif' border=0></b>";

}




// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Those both should work now.

Ok now Im really confused. Account file is still with problem but profile is good. Only when click on user(on profile.php) to see his profile it refresh page.

OMG >.<

Okay, um let I'll have to wait till I get to my computer to compare the two. Ill probably end up just giving you my file page. And if that fails, Ill have to install it for you.

Can you help me Bloodrun?

Bloodrun 05-27-2009 08:59 AM

RE: Custom Profile Modification
 
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Okay try this for your account.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}
}
else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";



}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

And this for your profile.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// File ID: profile.php
// Shows a user profile, or a member list.
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************


// We did not specify a user, so show the memberlist

$article_title "Memberlist";
$article_content "Here are all of the members of this site, sorted by registration date.<br><br>";

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC";
$result mysql_query($query);
$num mysql_numrows($result);

$rowsperpage 15;
$totalpages ceil($num $rowsperpage);

if(
is_numeric($page) and $page != ""){
$currentpage $page;
}
else{
$currentpage 1;
}

if (
$currentpage $totalpages) {  
$currentpage $totalpages;  
}
if (
$currentpage 1) {  
$currentpage 1;  
}
$offset = ($currentpage 1) * $rowsperpage;  

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC LIMIT $offset$rowsperpage";
$result mysql_query($query);
$num2 mysql_numrows($result);

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

$id=@mysql_result($result,$i,"uid");
$username=@mysql_result($result,$i,"username");
$email=@mysql_result($result,$i,"email");
$level=@mysql_result($result,$i,"usergroup");

$star "";
$status cancp($level);

if(
$status == "yes"){
$star "<img src='templates/icons/star.gif' border=0'> ";
}

$article_content $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";

$i++;
}



$article_content $article_content."<br>";


if(
$currentpage 1) {
$newpage $currentpage 1;
$article_content $article_content."<b><a href='profile.php?page=".$newpage."'><img src='templates/icons/prev.gif' border=0> Previous Page</a></b> ";
}
else{
$article_content $article_content."<b><img src='templates/icons/prev.gif' border=0> Previous Page</b> ";
}
if(
$currentpage $totalpages) {
$newpage $currentpage 1;
$article_content $article_content." ::  <b><a href='profile.php?page=".$newpage."'>Next Page <img src='templates/icons/next.gif' border=0></a></b> ";
}
else{
$article_content $article_content." ::  <b>Next Page <img src='templates/icons/next.gif' border=0></b>";

}




// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Those both should work now.

Ok now Im really confused. Account file is still with problem but profile is good. Only when click on user(on profile.php) to see his profile it refresh page.

OMG >.<

Okay, um let I'll have to wait till I get to my computer to compare the two. Ill probably end up just giving you my file page. And if that fails, Ill have to install it for you.

Can you help me Bloodrun?

Okay try this one for your account.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}

else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";


}
}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>


12345 05-27-2009 02:37 PM

RE: Custom Profile Modification
 
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Okay try this for your account.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}
}
else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";



}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

And this for your profile.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// File ID: profile.php
// Shows a user profile, or a member list.
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************


// We did not specify a user, so show the memberlist

$article_title "Memberlist";
$article_content "Here are all of the members of this site, sorted by registration date.<br><br>";

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC";
$result mysql_query($query);
$num mysql_numrows($result);

$rowsperpage 15;
$totalpages ceil($num $rowsperpage);

if(
is_numeric($page) and $page != ""){
$currentpage $page;
}
else{
$currentpage 1;
}

if (
$currentpage $totalpages) {  
$currentpage $totalpages;  
}
if (
$currentpage 1) {  
$currentpage 1;  
}
$offset = ($currentpage 1) * $rowsperpage;  

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC LIMIT $offset$rowsperpage";
$result mysql_query($query);
$num2 mysql_numrows($result);

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

$id=@mysql_result($result,$i,"uid");
$username=@mysql_result($result,$i,"username");
$email=@mysql_result($result,$i,"email");
$level=@mysql_result($result,$i,"usergroup");

$star "";
$status cancp($level);

if(
$status == "yes"){
$star "<img src='templates/icons/star.gif' border=0'> ";
}

$article_content $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";

$i++;
}



$article_content $article_content."<br>";


if(
$currentpage 1) {
$newpage $currentpage 1;
$article_content $article_content."<b><a href='profile.php?page=".$newpage."'><img src='templates/icons/prev.gif' border=0> Previous Page</a></b> ";
}
else{
$article_content $article_content."<b><img src='templates/icons/prev.gif' border=0> Previous Page</b> ";
}
if(
$currentpage $totalpages) {
$newpage $currentpage 1;
$article_content $article_content." ::  <b><a href='profile.php?page=".$newpage."'>Next Page <img src='templates/icons/next.gif' border=0></a></b> ";
}
else{
$article_content $article_content." ::  <b>Next Page <img src='templates/icons/next.gif' border=0></b>";

}




// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Those both should work now.

Ok now Im really confused. Account file is still with problem but profile is good. Only when click on user(on profile.php) to see his profile it refresh page.

OMG >.<

Okay, um let I'll have to wait till I get to my computer to compare the two. Ill probably end up just giving you my file page. And if that fails, Ill have to install it for you.

Can you help me Bloodrun?

Okay try this one for your account.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}

else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";


}
}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>


Error:
Code:

Parse error: syntax error, unexpected T_ELSE in /home/a1400075/public_html/account.php on line 274
****! This is geting me crazy :(

Bloodrun 05-27-2009 02:54 PM

RE: Custom Profile Modification
 
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Okay try this for your account.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}
}
else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";



}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

And this for your profile.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// File ID: profile.php
// Shows a user profile, or a member list.
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************


// We did not specify a user, so show the memberlist

$article_title "Memberlist";
$article_content "Here are all of the members of this site, sorted by registration date.<br><br>";

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC";
$result mysql_query($query);
$num mysql_numrows($result);

$rowsperpage 15;
$totalpages ceil($num $rowsperpage);

if(
is_numeric($page) and $page != ""){
$currentpage $page;
}
else{
$currentpage 1;
}

if (
$currentpage $totalpages) {  
$currentpage $totalpages;  
}
if (
$currentpage 1) {  
$currentpage 1;  
}
$offset = ($currentpage 1) * $rowsperpage;  

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC LIMIT $offset$rowsperpage";
$result mysql_query($query);
$num2 mysql_numrows($result);

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

$id=@mysql_result($result,$i,"uid");
$username=@mysql_result($result,$i,"username");
$email=@mysql_result($result,$i,"email");
$level=@mysql_result($result,$i,"usergroup");

$star "";
$status cancp($level);

if(
$status == "yes"){
$star "<img src='templates/icons/star.gif' border=0'> ";
}

$article_content $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";

$i++;
}



$article_content $article_content."<br>";


if(
$currentpage 1) {
$newpage $currentpage 1;
$article_content $article_content."<b><a href='profile.php?page=".$newpage."'><img src='templates/icons/prev.gif' border=0> Previous Page</a></b> ";
}
else{
$article_content $article_content."<b><img src='templates/icons/prev.gif' border=0> Previous Page</b> ";
}
if(
$currentpage $totalpages) {
$newpage $currentpage 1;
$article_content $article_content." ::  <b><a href='profile.php?page=".$newpage."'>Next Page <img src='templates/icons/next.gif' border=0></a></b> ";
}
else{
$article_content $article_content." ::  <b>Next Page <img src='templates/icons/next.gif' border=0></b>";

}




// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Those both should work now.

Ok now Im really confused. Account file is still with problem but profile is good. Only when click on user(on profile.php) to see his profile it refresh page.

OMG >.<

Okay, um let I'll have to wait till I get to my computer to compare the two. Ill probably end up just giving you my file page. And if that fails, Ill have to install it for you.

Can you help me Bloodrun?

Okay try this one for your account.php


PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}

else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";


}
}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>


Error:
Code:

Parse error: syntax error, unexpected T_ELSE in /home/a1400075/public_html/account.php on line 274
****! This is geting me crazy :(

Okay screw it, use mine. And I have to ask you don't swear =/

PHP Code:

<?php


include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);




if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

// No action specified


$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
<b><u>Account Settings:</u></b><br><br>
<a href='profile2.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;
}
}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address : 
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br>


<form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password: 
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password: 
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password: 
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

$newmessagenotify=@mysql_result($result,$i,"newmessagenotify"); 
$website=@mysql_result($result,$i,"website");
$aim=@mysql_result($result,$i,"aim");
$yahoo=@mysql_result($result,$i,"yahoo");
$msn=@mysql_result($result,$i,"msn");
$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");
$friends=@mysql_result($result,$i,"friends");
$signature=@mysql_result($result,$i,"signature");



$website stripslashes($website);
$aim stripslashes($aim);
$yahoo stripslashes($yahoo);
$msn stripslashes($msn);
$ame stripslashes($ame);
$location stripslashes($location);
$age stripslashes($age);
$occupation stripslashes($occupation);
$interests stripslashes($interests);
$profilepic stripslashes($profilepic);
$displayquote stripslashes($displayquote);
$usercss stripslashes($usercss);
$friends stripslashes($friends);
$signature stripslashes($signature);




$i++;
}




// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<br><br><br><br><br>

<form name='form1' method='post' action='accountpost.php'>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>

<p>
  Profile Layout:<br>
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>

  <p>Website: 
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username: 
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username: 
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username: 
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location: 
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age: 
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation: 
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>

  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Friends, make sure to seperate each one with a comma and space:<br>
    <textarea name='friends' type='text' id='friends' cols='40' rows='3'> "
.$friends."</textarea><br>
</p>
  <p>Forum signature, a max character limit of 800 is in effect:<br>
    <textarea name='signature' type='text' id='signature' cols='40' rows='3'>"
.$signature."</textarea><br>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>

</form>"
;



}
else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";

}

}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}








// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>


12345 05-27-2009 04:13 PM

RE: Custom Profile Modification
 
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Okay try this for your account.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}
}
else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";



}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

And this for your profile.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// File ID: profile.php
// Shows a user profile, or a member list.
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************


// We did not specify a user, so show the memberlist

$article_title "Memberlist";
$article_content "Here are all of the members of this site, sorted by registration date.<br><br>";

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC";
$result mysql_query($query);
$num mysql_numrows($result);

$rowsperpage 15;
$totalpages ceil($num $rowsperpage);

if(
is_numeric($page) and $page != ""){
$currentpage $page;
}
else{
$currentpage 1;
}

if (
$currentpage $totalpages) {  
$currentpage $totalpages;  
}
if (
$currentpage 1) {  
$currentpage 1;  
}
$offset = ($currentpage 1) * $rowsperpage;  

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC LIMIT $offset$rowsperpage";
$result mysql_query($query);
$num2 mysql_numrows($result);

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

$id=@mysql_result($result,$i,"uid");
$username=@mysql_result($result,$i,"username");
$email=@mysql_result($result,$i,"email");
$level=@mysql_result($result,$i,"usergroup");

$star "";
$status cancp($level);

if(
$status == "yes"){
$star "<img src='templates/icons/star.gif' border=0'> ";
}

$article_content $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";

$i++;
}



$article_content $article_content."<br>";


if(
$currentpage 1) {
$newpage $currentpage 1;
$article_content $article_content."<b><a href='profile.php?page=".$newpage."'><img src='templates/icons/prev.gif' border=0> Previous Page</a></b> ";
}
else{
$article_content $article_content."<b><img src='templates/icons/prev.gif' border=0> Previous Page</b> ";
}
if(
$currentpage $totalpages) {
$newpage $currentpage 1;
$article_content $article_content." ::  <b><a href='profile.php?page=".$newpage."'>Next Page <img src='templates/icons/next.gif' border=0></a></b> ";
}
else{
$article_content $article_content." ::  <b>Next Page <img src='templates/icons/next.gif' border=0></b>";

}




// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Those both should work now.

Ok now Im really confused. Account file is still with problem but profile is good. Only when click on user(on profile.php) to see his profile it refresh page.

OMG >.<

Okay, um let I'll have to wait till I get to my computer to compare the two. Ill probably end up just giving you my file page. And if that fails, Ill have to install it for you.

Can you help me Bloodrun?

Okay try this one for your account.php


PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}

else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";


}
}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>


Error:
Code:

Parse error: syntax error, unexpected T_ELSE in /home/a1400075/public_html/account.php on line 274
****! This is geting me crazy :(

Okay screw it, use mine. And I have to ask you don't swear =/

PHP Code:

<?php


include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);




if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

// No action specified


$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
<b><u>Account Settings:</u></b><br><br>
<a href='profile2.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;
}
}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address : 
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br>


<form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password: 
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password: 
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password: 
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

$newmessagenotify=@mysql_result($result,$i,"newmessagenotify"); 
$website=@mysql_result($result,$i,"website");
$aim=@mysql_result($result,$i,"aim");
$yahoo=@mysql_result($result,$i,"yahoo");
$msn=@mysql_result($result,$i,"msn");
$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");
$friends=@mysql_result($result,$i,"friends");
$signature=@mysql_result($result,$i,"signature");



$website stripslashes($website);
$aim stripslashes($aim);
$yahoo stripslashes($yahoo);
$msn stripslashes($msn);
$ame stripslashes($ame);
$location stripslashes($location);
$age stripslashes($age);
$occupation stripslashes($occupation);
$interests stripslashes($interests);
$profilepic stripslashes($profilepic);
$displayquote stripslashes($displayquote);
$usercss stripslashes($usercss);
$friends stripslashes($friends);
$signature stripslashes($signature);




$i++;
}




// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<br><br><br><br><br>

<form name='form1' method='post' action='accountpost.php'>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>

<p>
  Profile Layout:<br>
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>

  <p>Website: 
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username: 
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username: 
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username: 
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location: 
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age: 
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation: 
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>

  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Friends, make sure to seperate each one with a comma and space:<br>
    <textarea name='friends' type='text' id='friends' cols='40' rows='3'> "
.$friends."</textarea><br>
</p>
  <p>Forum signature, a max character limit of 800 is in effect:<br>
    <textarea name='signature' type='text' id='signature' cols='40' rows='3'>"
.$signature."</textarea><br>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>

</form>"
;



}
else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";

}

}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}








// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>


OMG!
It dont work. I dont know what is the problem.
Code:

Parse error: syntax error, unexpected '}' in /home/a1400075/public_html/account.php on line 261
I alomst destroy my PC when I see that. >(

Bloodrun 05-27-2009 04:22 PM

RE: Custom Profile Modification
 
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by 12345
Quote:

Originally Posted by Bloodrun
Okay try this for your account.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}
}
else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";



}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

And this for your profile.php

PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// File ID: profile.php
// Shows a user profile, or a member list.
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************


// We did not specify a user, so show the memberlist

$article_title "Memberlist";
$article_content "Here are all of the members of this site, sorted by registration date.<br><br>";

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC";
$result mysql_query($query);
$num mysql_numrows($result);

$rowsperpage 15;
$totalpages ceil($num $rowsperpage);

if(
is_numeric($page) and $page != ""){
$currentpage $page;
}
else{
$currentpage 1;
}

if (
$currentpage $totalpages) {  
$currentpage $totalpages;  
}
if (
$currentpage 1) {  
$currentpage 1;  
}
$offset = ($currentpage 1) * $rowsperpage;  

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC LIMIT $offset$rowsperpage";
$result mysql_query($query);
$num2 mysql_numrows($result);

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

$id=@mysql_result($result,$i,"uid");
$username=@mysql_result($result,$i,"username");
$email=@mysql_result($result,$i,"email");
$level=@mysql_result($result,$i,"usergroup");

$star "";
$status cancp($level);

if(
$status == "yes"){
$star "<img src='templates/icons/star.gif' border=0'> ";
}

$article_content $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";

$i++;
}



$article_content $article_content."<br>";


if(
$currentpage 1) {
$newpage $currentpage 1;
$article_content $article_content."<b><a href='profile.php?page=".$newpage."'><img src='templates/icons/prev.gif' border=0> Previous Page</a></b> ";
}
else{
$article_content $article_content."<b><img src='templates/icons/prev.gif' border=0> Previous Page</b> ";
}
if(
$currentpage $totalpages) {
$newpage $currentpage 1;
$article_content $article_content." ::  <b><a href='profile.php?page=".$newpage."'>Next Page <img src='templates/icons/next.gif' border=0></a></b> ";
}
else{
$article_content $article_content." ::  <b>Next Page <img src='templates/icons/next.gif' border=0></b>";

}




// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>

Those both should work now.

Ok now Im really confused. Account file is still with problem but profile is good. Only when click on user(on profile.php) to see his profile it refresh page.

OMG >.<

Okay, um let I'll have to wait till I get to my computer to compare the two. Ill probably end up just giving you my file page. And if that fails, Ill have to install it for you.

Can you help me Bloodrun?

Okay try this one for your account.php


PHP Code:

<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);

if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

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

if(
$num 0){

$i=0;
while (
$i 1) {

$changewarning=@mysql_result($result,$i,"changewarning");

// the following shows the member their warning level

if($changewarning == "0"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/0.png'>";
}
else if(
$changewarning == "1"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/1.png'>";
}
else if(
$changewarning == "2"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/2.png'>";
}
else if(
$changewarning == "3"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/3.png'>";
}
else if(
$changewarning == "4"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/4.png'>";
}
else if(
$changewarning == "5"){
$warn "Your Warning Level: <img src='http://mycookie.co.cc/img/5.png'><br>You are currently banned, and cannot use the PM System.";
}

$i++;
}
}
$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
// the following gets the users warning level from above and places it within the article content.
<b>"
.$warn."</b><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;

}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address :
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br><form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password:
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password:
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password:
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

// 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);


$i++;
}

// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<form name='form1' method='post' action='accountpost.php'>
  <p>Profile Layout:
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location:
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age:
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation:
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>
  <p>Website:
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username:
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username:
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username:
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>
</form>"
;



}

else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";


}
}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}



// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>


Error:
Code:

Parse error: syntax error, unexpected T_ELSE in /home/a1400075/public_html/account.php on line 274
****! This is geting me crazy :(

Okay screw it, use mine. And I have to ask you don't swear =/

PHP Code:

<?php


include("inc/functions.php");
include(
"inc/config.php");
include(
"lang/lang.php");

$themeurl grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads getads("account");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent getsitecontent("index");
$article_title $pagecontent[title];
$article_content $pagecontent[content];
$article_content nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle grabanysetting("browsertitle");
$sitename grabanysetting("sitename");
$slogan grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

$act $_GET["act"];
$act preg_replace("/[^a-zA-Z0-9\\040.]/"""$act);
$act secure($act);

$more $_GET["more"];
$more preg_replace("/[^a-zA-Z0-9\\040.]/"""$more);
$more secure($more);




if(
$isloggedin == "yes"){

// We are logged in, so we must have an account
// Now we switch through our actions...

if($act == ""){

// No action specified


$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
<b><u>Account Settings:</u></b><br><br>
<a href='profile2.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;
}
}
else if(
$act == "changeemail"){

// We are changing the user's email address

$article_title $lang_email_change_title;
$article_content $lang_email_change."<br><form name='form1' method='post' action='accountpost.php'>
  <p>New Email Address : 
    <input name='email' type='text' id='email'>
    <input name='act' type='hidden' id='act' value='changeemail'>
</p>
  <p>
    <input type='submit' name='Submit' value='Change Email Address'>
</p>
</form>"
;

}
else if(
$act == "changepass"){

// We are changing the password

$article_title $lang_changepass_title;
$article_content $lang_changepass."<br>


<form name='form1' method='post' action='accountpost.php'>
  <p>Your Current Password: 
    <input name='cpass' type='password' id='cpass'>
</p>
  <p>Your New Password: 
    <input name='np1' type='password' id='np1' maxlength='20'>
</p>
  <p>Confirm New Password: 
    <input name='np2' type='password' id='np2' maxlength='20'>
    <input name='act' type='hidden' id='act' value='changepass'>
  </p>
  <p>
    <input type='submit' name='Submit' value='Change Password'>
</p>
</form>"
;

}
else if(
$act == "changesettings"){

// We are changing the settings

$article_title $lang_changesettings_title;
$article_content $lang_changesettings."<br>";

// 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) {

$newmessagenotify=@mysql_result($result,$i,"newmessagenotify"); 
$website=@mysql_result($result,$i,"website");
$aim=@mysql_result($result,$i,"aim");
$yahoo=@mysql_result($result,$i,"yahoo");
$msn=@mysql_result($result,$i,"msn");
$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");
$friends=@mysql_result($result,$i,"friends");
$signature=@mysql_result($result,$i,"signature");



$website stripslashes($website);
$aim stripslashes($aim);
$yahoo stripslashes($yahoo);
$msn stripslashes($msn);
$ame stripslashes($ame);
$location stripslashes($location);
$age stripslashes($age);
$occupation stripslashes($occupation);
$interests stripslashes($interests);
$profilepic stripslashes($profilepic);
$displayquote stripslashes($displayquote);
$usercss stripslashes($usercss);
$friends stripslashes($friends);
$signature stripslashes($signature);




$i++;
}




// Show the form...

if($newmessagenotify == 1){
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1' checked>";
}
else{
$box "<input name='newmsgnotify' type='checkbox' id='newmsgnotify' value='1'>";
}

$article_content $article_content."<br><br><br><br><br>

<form name='form1' method='post' action='accountpost.php'>
  <p>"
.$box."
  Notify me via email when I receive a new message or reward code</p>
  <p><u>Publically Viewable Details: </u></p>

<p>
  Profile Layout:<br>
    <textarea name='usercss' type='text' id='usercss' cols='80' rows='30'>"
.$usercss."</textarea>
</p>

  <p>Website: 
    <input name='website' type='text' id='website' value='"
.$website."'>
</p>
  <p>AIM Username: 
    <input name='aim' type='text' id='aim' value='"
.$aim."'>
</p>
  <p>YIM Username: 
    <input name='yim' type='text' id='yim' value='"
.$yahoo."'>
</p>
  <p>MSN Username: 
    <input name='msn' type='text' id='msn' value='"
.$msn."'>
</p>
  <p>About Me: <br>
    <textarea name='ame' type='text' id='ame' cols='40' rows='3'>"
.$ame."</textarea>
</p>
  <p>Interests: <br>
    <textarea name='interests' type='text' id='interests' cols='40' rows='3'>"
.$interests."</textarea>
</p>
  <p>Location: 
    <input name='location' type='text' id='location' value='"
.$location."'>
</p>
  <p>Age: 
    <input name='age' type='text' id='age' value='"
.$age."'>
</p>
  <p>Favorite Quote:
    <input name='displayquote' type='text' id='displayquote' value='"
.$displayquote."'>
</p>
  <p>Occupation: 
    <input name='occupation' type='text' id='occupation' value='"
.$occupation."'>
    <input name='act' type='hidden' id='act' value='changesettings'>
</p>

  <p>Display Picture:
    <input name='profilepic' type='text' id='profilepic' value='"
.$profilepic."'>
</p>
  <p>Friends, make sure to seperate each one with a comma and space:<br>
    <textarea name='friends' type='text' id='friends' cols='40' rows='3'> "
.$friends."</textarea><br>
</p>
  <p>Forum signature, a max character limit of 800 is in effect:<br>
    <textarea name='signature' type='text' id='signature' cols='40' rows='3'>"
.$signature."</textarea><br>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit Details'>
  </p>

</form>"
;



}
else{

// No valid action specified...

$article_title "No Valid Action Specified";
$article_content "Invalid Action";

}

}
else{

// Guest access to this page is forbidden

$article_title $accden;
$article_content $nopriv." ".$reqlogin;


}








// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file $themeurl;

// Do the template changes and echo the ready template
$template file_get_contents($file);

$template replace(':ARTICLETITLE:',$article_title,$template);
$template replace(':ARTICLECONTENT:',$article_content,$template);
$template replace(':ARTICLEDATE:',$article_date,$template);

$template replace(':BROWSERTITLE:',$browsertitle,$template);
$template replace(':SITENAME:',$sitename,$template);

//Define our links
$template replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar getsidebar();
$template replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template replace(':ADS:',$ads,$template);

//Get the slogan info
$template replace(':SLOGAN:',$slogan,$template);


echo 
$template;

// **********************************************************************
// End Template Definition
// **********************************************************************



?>


OMG!
It dont work. I dont know what is the problem.
Code:

Parse error: syntax error, unexpected '}' in /home/a1400075/public_html/account.php on line 261
I alomst destroy my PC when I see that. >(

You have to be kidding T_T

Alright, ill go though everything hold on.

rainbelly 06-02-2009 10:55 PM

RE: Custom Profile Modification
 
This is really helpful! Thanks so much. (:

However, when I clicked on the link to my account and then view profile, it brought me to a page of members. That was fine and everything but when I clicked on one of the members, it went to this URL:

/profile.php?user=admin

And nothing changed. Isn't it supposed to go to profile2.php?user=admin? Because I tried that, and then it said:

Parse error: syntax error, unexpected '<' in /profile2.php on line 163

That's the line that says this:

<b><u>".$usersname."'s Pets:</u></b><br><br>";

So then I tried taking out all of the brackets in that line. Then it said this:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home2/flared/public_html/rusnak/adoptables/profile2.php on line 173

Yeah. I don't want to go any farther, because I am probably already confusing you. I certainly confused myself!

Thanks for any help you can offer. (:

Bloodrun 06-02-2009 11:01 PM

RE: Custom Profile Modification
 
Quote:

Originally Posted by rainbelly
This is really helpful! Thanks so much. (:

However, when I clicked on the link to my account and then view profile, it brought me to a page of members. That was fine and everything but when I clicked on one of the members, it went to this URL:

/profile.php?user=admin

And nothing changed. Isn't it supposed to go to profile2.php?user=admin? Because I tried that, and then it said:

Parse error: syntax error, unexpected '<' in /profile2.php on line 163

That's the line that says this:

<b><u>".$usersname."'s Pets:</u></b><br><br>";

So then I tried taking out all of the brackets in that line. Then it said this:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home2/flared/public_html/rusnak/adoptables/profile2.php on line 173

Yeah. I don't want to go any farther, because I am probably already confusing you. I certainly confused myself!

Thanks for any help you can offer. (:

Well did you follow the instructions step by step?

Because for one, I don't remember having the Pets within the profile page.
Secondly, do you have to files that say, profile? well one should say profile2.php
If you don't, that is your error, right there, you need to make sure your memberlist is on the page titled 'profile.php and that the actual profile, is on the page entitled profile2.php

And then, from then on, any link that is suppose to go to a profile, make sure it says profile2.php.

Seapyramid 06-02-2009 11:51 PM

RE: Custom Profile Modification
 
To 12345... I am offended by the language.. not because of me but because I know there are minors on the forum. Use it again & I will personally request a suspension of your account!

rainbelly 06-03-2009 07:34 AM

RE: Custom Profile Modification
 
Quote:

Originally Posted by Bloodrun
Quote:

Originally Posted by rainbelly
This is really helpful! Thanks so much. (:

However, when I clicked on the link to my account and then view profile, it brought me to a page of members. That was fine and everything but when I clicked on one of the members, it went to this URL:

/profile.php?user=admin

And nothing changed. Isn't it supposed to go to profile2.php?user=admin? Because I tried that, and then it said:

Parse error: syntax error, unexpected '<' in /profile2.php on line 163

That's the line that says this:

<b><u>".$usersname."'s Pets:</u></b><br><br>";

So then I tried taking out all of the brackets in that line. Then it said this:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home2/flared/public_html/rusnak/adoptables/profile2.php on line 173

Yeah. I don't want to go any farther, because I am probably already confusing you. I certainly confused myself!

Thanks for any help you can offer. (:

Well did you follow the instructions step by step?

Because for one, I don't remember having the Pets within the profile page.
Secondly, do you have to files that say, profile? well one should say profile2.php
If you don't, that is your error, right there, you need to make sure your memberlist is on the page titled 'profile.php and that the actual profile, is on the page entitled profile2.php

And then, from then on, any link that is suppose to go to a profile, make sure it says profile2.php.

Okay, thanks so much!

I did the profile2.php page again, and it shows up. I also changed the link on the profile.php to profile2.php so now it works. So yeah, everything works. :]

Is there any way to make it so if someone does not enter CSS, we can make a default one? Thank you!

Rsmiley 06-03-2009 10:21 PM

RE: Custom Profile Modification
 
Quote:

Originally Posted by Seapyramid
To 12345... I am offended by the language.. not because of me but because I know there are minors on the forum. Use it again & I will personally request a suspension of your account!

Remember Sea, you can PM any staff on the forum and they can warn and/or suspend his account :)

` I gave him a warning for use of foul language `

Tkrules 01-23-2010 09:01 PM

RE: Custom Profile Modification
 
I'm having trouble downloading the files. I was going to add this to my site, but all the files download as a blank 0 byte file. It happens in all other attchments as well, so I'm not sure if there's a post limit to downloading attachments?

Roconza 01-23-2010 09:12 PM

RE: Custom Profile Modification
 
Quote:

Originally Posted by BMR777

This should not happen. What scripts are you trying to download? It's possible something was corrupted in the server move process. Let me know which ones are giving you issues so I can take a look. :)

Are these the attachments on the forums here or the downloads on the main rusnakweb.com homepage? The attachments here on the forums were not transferred in the server move, but the downloads on the main rusnakweb.com site should be fine. Smile

Not much we can do unless the poster is kind enough to reupload.

Seapyramid 01-24-2010 03:29 AM

RE: Custom Profile Modification
 
Bloodrun is the orig poster & while he is not on often now due to personal stuff he still checks in.. I am sure he will reupload the lost file when he can. Please be patienct. :)

Tequila 03-29-2010 09:59 AM

RE: Custom Profile Modification
 
Hey Bloodrun, just to let you know the current usertemp.html file is nothing but a blank. Is that how it's supposed to be, or is it an error.

If anything what should we have for the user template (if we're not using the CSS)?

fadillzzz 05-22-2010 11:41 AM

RE: Custom Profile Modification
 
Seems like the attachment is broken...
Can anyone reupload it?

Tequila 05-22-2010 12:40 PM

RE: Custom Profile Modification
 
Quote:

Originally Posted by fadillzzz
Seems like the attachment is broken...
Can anyone reupload it?

I just PM'd Bloodrun, hopefully we can get the files back.

fadillzzz 06-03-2010 02:28 AM

RE: Custom Profile Modification
 
The attachments are still broken...

Where are you bloodrun? :(

Ansem717 01-06-2011 03:41 AM

RE: Custom Profile Modification
 
D= I did all of that work, and then I realized I had to download blank files. Major dissapointment!

Hall of Famer 01-06-2011 07:07 AM

RE: Custom Profile Modification
 
@ Ansem717: BMR moved the server after setting up MA, and all old attachments prior to Oct 2009 were lost. Ask BMR if you still believe that he has backups for all these old files.

Ansem717 01-06-2011 05:31 PM

RE: Custom Profile Modification
 
I will do, thanks for the tip. :)

(What's the minimum length of messages on these forums? Seems fairly large...)

Hall of Famer 01-06-2011 09:45 PM

RE: Custom Profile Modification
 
umm I'd say either 10 or 15 characters? I think BMR has his reasons for that, but maybe it can be shortened.

Ansem717 01-07-2011 12:44 AM

RE: Custom Profile Modification
 
Meh, it's not like there is any popular demand for it. Let alone a population in order to demand. Hah.

Bloodrun 01-18-2011 11:29 AM

So the script was sold to someone else? Lol alright.
Hall of Famer emailed me asking me to re upload the scripts, when I created these add-ons I was using a different laptop, so in order for me to find them I have to search through the filesharing sites I used to transport them. So chances are they won't be there anymore, but I'll look for them.

I will probably have to fix them, because I am assuming the new owner changed the script a little, (it's what I would have done) but we'll see. If I have to edit them, I don't know when they will be done seeing as my classes have started up again, but we'll see.


All times are GMT -5. The time now is 11:41 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.