Add Lucy link to EQdkp items

From IT Wiki
Jump to: navigation, search

Here are instruction on how to add links to Lucy (or another site) to items in EQdkp.

In several php files (specific ones to be listed) change:

'NAME' => stripslashes($item['item_name']),

to

'NAME' => stripslashes($item['item_name']) . '  <a href="http://lucy.allakhazam.com/itemlist.html?searchtext='. ereg_replace(' ', '+', stripslashes($item['item_name'])) . '" target=new><img src="./images/glyphs/view.gif" width="16" height="16" alt="View" /></a>',


List of files to change:

  • listitems.php
  • viewraid.php
  • viewmember.php


You can also replace /images/glyphs/view.gif with a better image.


NOTE: Function ereg_replace() is deprecated in php. As a result, it is suggested that the line be changed to:

'NAME' => stripslashes($item['item_name']) . ' <a href="http://lucy.allakhazam.com/itemlist.html?searchtext='. preg_replace('/ /', '+', stripslashes($item['item_name'])) . '" target=new><img src="./images/glyphs/view.gif" width="16" height="16" alt="View" /></a>',