BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Coding and development discussion => Topic started by: kuznechik on November 03, 2006, 09:54:47 pm

Title: how to wrap item link to show up in blob?
Post by: kuznechik on November 03, 2006, 09:54:47 pm
I've modified my loot module with result wrapping in blob...
End up being unable to click on items to see ql.

Simple question: how to fix it?
Title: Re: how to wrap item link to show up in blob?
Post by: Nesi on November 04, 2006, 11:15:47 pm
It might just be me that dumb here, but it's as good as impossible to give any ffedback if you don't supply any details other than saying its broke.
Title: Re: how to wrap item link to show up in blob?
Post by: Malosar on November 06, 2006, 06:57:04 pm
After you've got a string from the make_item function, try:

$item = str_replace('"',"'",$item);

($item being whatever your string variable is)
Title: Re: how to wrap item link to show up in blob?
Post by: kuznechik on November 06, 2006, 09:29:39 pm
Well, long explanation:
It was standard loot.php
Due to request I've wrapped it so strings that were printed in privgroup are now added to string variable I use this -> bot -> make_blob () on.
All is ok except links in blob do not open info about items
Title: Re: how to wrap item link to show up in blob?
Post by: Alreadythere on November 06, 2006, 10:19:41 pm
See Malosar - links in blobs have to have ' instead of " (or the other way around, can't check right now). So his simple str_replace does the job.
SimplePortal 2.3.7 © 2008-2025, SimplePortal