A detailed character information viewer
Includes character stats, item bonuses, talents, spell book, mail, inventory, quests, and recipes.
	
		
		
			
				
			
			
			
by thuid » Sat Jul 19, 2008 11:53 pm 
			
			Hi all,
I hope someone can help. I am trying to figure out why   $this->talent_build_url   is returning a nul value. The talents are showing properly for the chararcters but for what ever reason they are not being generated properly in the   char.lib.php   file for the export link. I am still fairly new to php and i know it has to be something simple.
			
		 
		
			
			- 
				thuid
			
 
			- WR.net Apprentice

 
		-  
 
		- Posts: 3
 - Joined: Tue Jul 15, 2008 12:46 am
 
		
	
		
		 
	 
	
	
		
		
			
				
			
			
			
by zanix » Sun Jul 20, 2008 1:16 am 
			
			You are right
Where $this->talent_build_url is assigned to the template is before the talent data is generated
addons/info/inc/char.lib.php
Find - Line 1742 - 1745
- Code: Select all
         $roster->tpl->assign_vars(array(
            'U_TALENT_EXPORT' => $roster->locale->act['export_url'] . strtolower($this->data['classEn']) . '/talents.html?' . $this->talent_build_url,
            )
        ); 
Move to before
- Code: Select all
             $roster->tpl->set_filenames(array('talents' => $addon['basename'] . '/talents.html')); 
 
			
		 
		
			
			- 
				

				zanix
			 
			- Admin

 - WoWRoster.net Dev Team

 - UA/UU Developer

 
		-  
 
		- Posts: 5546
 - Joined: Mon Jul 03, 2006 8:29 am
 - Location: Idaho Falls, Idaho
 
			- Realm:  Doomhammer (PvE) - US
 
		
			- 
				
			
 
		
		
	
		
		 
	 
	
	
	
	
		
		
			
				
			
			
			
by thuid » Mon Jul 21, 2008 11:26 am 
			
			Thanks Zanix it worked perfectly.   
 
I knew it had to be simple, but I just couldn't see it.
 
			
		 
		
			
			- 
				thuid
			
 
			- WR.net Apprentice

 
		-  
 
		- Posts: 3
 - Joined: Tue Jul 15, 2008 12:46 am
 
		
	
		
		 
	 
	
	
	
	Return to CharacterInfo
	
	Who is online
	Users browsing this forum: No registered users and 0 guests