svn[1404] Item Links

Posts from previous Beta sessions

svn[1404] Item Links

Postby Subxero » Wed Oct 24, 2007 9:18 am

Hi there! I'm want update Madeby to use Item Link like addon Info does it but i found the next problem:

On Char page "?p=char-info&member=XXX" when you click on a item gets a list of web pages with item database that you can choose and select ones..

Works perfectly because use the ITEMID number..

Well the problem its at Recipe page "?p=char-info-recipes&member=XXX"

These page have the same function than char page when you click on a "crafted" item but don't use ITEMID use the NAME of item.

And the results its any link works well, because don't found the items.

There are a possibility to ADD name search to ITEM Link ? because I think its impossible get ITEMID from recipe list.

Best Regards, Subxero.
Subxero - Priest 70 Holy - Asphelt Knight Officer - Zul'jin Horde.
User avatar
Subxero
WR.net Artisan
WR.net Artisan
 
Posts: 234
Joined: Thu Jul 06, 2006 4:08 pm
Realm: Zul'jin (PvE) - US

svn[1404] Item Links

Postby Subxero » Sun Oct 28, 2007 12:47 am

Ok i found the function ! ;) its implemented not used at recipes.

Open /lib/recipes.php
Search
Code: Select all
      foreach( $roster->locale->wordings[$lang]['itemlinks'] as $key => $ilink )
      {
         $linktip .= '<a href="'.$ilink.urlencode(utf8_decode($this->data['recipe_name'])).'" target="_blank">'.$key.'</a><br />';
      }
      setTooltip($num_of_tips,$linktip);
      setTooltip('itemlink',$roster->locale->wordings[$lang]['itemlink']);


change to:
Code: Select all
      foreach( $roster->locale->wordings[$lang]['data_links'] as $key => $ilink )
      {
         $linktip .= '<a href="'.$ilink.urlencode(utf8_decode($this->data['recipe_name'])).'" target="_blank">'.$key.'</a><br />';
      }
      setTooltip($num_of_tips,$linktip);
      setTooltip('itemlink',$roster->locale->wordings[$lang]['data_search']);


look the change from itemlink that use itemid to data_link that search names.
Subxero - Priest 70 Holy - Asphelt Knight Officer - Zul'jin Horde.
User avatar
Subxero
WR.net Artisan
WR.net Artisan
 
Posts: 234
Joined: Thu Jul 06, 2006 4:08 pm
Realm: Zul'jin (PvE) - US

svn[1404] Item Links

Postby zanix » Sun Oct 28, 2007 2:08 am

Nice, I will make this change
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


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron