Talent Export Link not generating

A detailed character information viewer
Includes character stats, item bonuses, talents, spell book, mail, inventory, quests, and recipes.

Talent Export Link not generating

Postby 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
WR.net Apprentice
 
Posts: 3
Joined: Tue Jul 15, 2008 12:46 am

Talent Export Link not generating

Postby 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')); 
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Talent Export Link not generating

Postby zanix » Sun Jul 20, 2008 1:18 am

Oh, and moved too
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Talent Export Link not generating

Postby thuid » Mon Jul 21, 2008 11:26 am

Thanks Zanix it worked perfectly. :thumleft:

I knew it had to be simple, but I just couldn't see it.
thuid
WR.net Apprentice
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

cron