Guild Banks Pic are Screwy

Theme, template, layout, or image issues

Guild Banks Pic are Screwy

Postby Zaphire » Wed Oct 04, 2006 6:51 pm

Not sure what is going on here. It looks like an older version of Character Profiler parsed everything fine. I installed a new version, scanned my banks mules and uploaded; The images of the banks that were scanned are messed up. The older data and bank scan of a guild bank on a different account (hasn't been updated since 9/3) work fine. What's up?

http://www.piratesofthecrown.com/roster ... =guildbank
User avatar
Zaphire
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Tue Jul 11, 2006 2:02 am

Guild Banks Pic are Screwy

Postby zanix » Wed Oct 04, 2006 9:25 pm

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

Guild Banks Pic are Screwy

Postby vgjunkie » Wed Oct 04, 2006 9:32 pm

If you look at the source code, you'll see a bunch of "img src" entries that have multiple slashes in the name. Some web servers will process these without any issues, but this is not the case with yours.

The fix would be to open the addons/guildbank/gbank.php file and to find the line:
Code: Select all
        // Clean the Item Texture of backslashes and replace them with forward slashes
        $item_texture=str_replace('\\','/',$itemrow['item_texture']);


and add this below it:
Code: Select all
      $item_texture =  preg_replace("|\/+|","/",$item_texture);


Overall the code should look something like:
Code: Select all
$item_texture = $item_texture=str_replace('\\','/',$itemrow['item_texture']);
$item_texture =  preg_replace("|\/+|","/",$item_texture);


When you are done. The problem can be ocurring for a number of reasons, (database INSERTS adding extra slashes?), But this should take care of your problem without having to try and figure out any changes to your system(s).
User avatar
vgjunkie
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 30
Joined: Wed Aug 09, 2006 11:58 pm
Location: Brooklyn NY

Guild Banks Pic are Screwy

Postby vgjunkie » Wed Oct 04, 2006 9:47 pm

If you want to do it in the lib/wowdb.php file as zanix suggested, I would go with the following change:

Code: Select all

$item
['item_texture'] = preg_replace("/\\\+/","/",$item_data['Texture']);
 


This would change any amount of backslashes to a single one (not caring if it's 2 or 20).
User avatar
vgjunkie
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 30
Joined: Wed Aug 09, 2006 11:58 pm
Location: Brooklyn NY

Guild Banks Pic are Screwy

Postby Zaphire » Thu Oct 05, 2006 12:12 pm

Ok, I'm guessing that the line I am putting it behind looks similiar to the one mentioned above in the earlier post.. I will try this fix in a few and keep you posted! Thanks much!
User avatar
Zaphire
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Tue Jul 11, 2006 2:02 am


Return to Appearance

Who is online

Users browsing this forum: No registered users and 1 guest

cron