View Single Post
  #4  
Old 09-24-2013, 10:35 AM
Starrunner's Avatar
Starrunner Starrunner is offline
Member
 
Join Date: Sep 2013
Posts: 16
Gender: Male
Credits: 3,155
Starrunner is on a distinguished road
Default

Umm i have bad luck xD Here is what i have in main>template.html
Code:
:LINKSBAR:
Mysidia Adoptables v1.3.2
:SIDEFEED:
::
:ARTICLECONTENT:
★ Powered by Mysidia Adoptables v1.3.2 ★
And i was trying to follow this tutorial http://www.mysidiaadoptables.com/for...ead.php?t=2089

But i dont have such codes in my profile.php
Code:
<?php  

$filename = "profile";
require("inc/init.php");
include("inc/tabs.php");
include("inc/bbcode.php");

//***************//
//  START SCRIPT //
//***************//

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

if(!$mysidia->input->get("user")){
  // We have not select a user profile yet, so show memberlist instead
  UserProfile::memberlist();
}  
else{
  $mysidia->page->settitle("{$mysidia->input->get("user")}'s Profile");
  $validator = new UserValidator($mysidia->user, array());
  
  if(!$validator->validate("username", $mysidia->input->get("user"))){
     // The user does not exist, show an error message instead
	 $mysidia->page->addcontent($lang->nonexist);
  }
  else{
     // We have specified an existing user profile, now its getting interesting
	 $user = new Member($mysidia->input->get("user"));
	 $user->getprofile();
	 
	 // Now start the tab script
	 $tabs = array("Visitor Message" => "visitormessage", "About Me" => "aboutme", "Adoptables" => "adopts", 
	               "Friends" => "friends", "Contact Info" => "contactinfo");
     $profiletabs = new Tab(5, $tabs, 2);
	 $profiletabs->createtab();
	 
	 // Format basic user profile info
	 $user->profile->formatusername($user)->getfavpet();
	 
	 // Here we go with the first tab content: Visitor Message
	 $profiletabs->starttab(0);
	 $mysidia->page->addcontent("<strong><u>{$mysidia->input->get("user")}{$lang->VM_member}");
	 $user->profile->display("vmessages");
	 $mysidia->user->getstatus();
	 
	 if(!$mysidia->user->isloggedin) $mysidia->page->addcontent($lang->VM_guest);
	 elseif(!$mysidia->user->status->canvm) $mysidia->page->addcontent($lang->VM_banned);
	 else{
	    $vmessage = new VisitorMessage();		
		$vmessage->setrecipient($user->username);
		$vmessage->post();
		if($mysidia->input->post("vmtext")) $vmessage->execute("post");
	 }
	 $profiletabs->endtab(0);
	 
	 // Now the second tab: About me...
	 $profiletabs->starttab(1);
	 $user->profile->display("aboutme");
	 $profiletabs->endtab(1);
	 
	 // The third tab: Adopts...	
	 $profiletabs->starttab(2);
	 $user->getadopts();

     try{ 
         $user->profile->display("adopts");
     }
     catch(Exception $e){ 
         $mysidia->page->addcontent($lang->noadopts);
     }

	 $profiletabs->endtab(2);
	 
	 // The fourth tab: Friends...
	 $profiletabs->starttab(3);
     $user->profile->display("friends", $user);
     $profiletabs->endtab(3);

	 // The last tab: Contact Info!	
     $profiletabs->starttab(4); 
	 $user->getcontacts();
	 $user->formatcontacts();
	 $user->profile->display("contactinfo", $user->contacts);
	 $profiletabs->endtab(4);
  }
  // It's all over now, cheers
}



//***************//
//  OUTPUT PAGE  //
//***************//

$mysidia->output();

?>
:/
Reply With Quote