collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: how to wrap item link to show up in blob?  (Read 4531 times)

0 Members and 1 Guest are viewing this topic.

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
how to wrap item link to show up in blob?
« 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?
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

Offline Nesi

  • BeBot User
  • **
  • Posts: 55
  • Karma: +0/-0
Re: how to wrap item link to show up in blob?
« Reply #1 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.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: how to wrap item link to show up in blob?
« Reply #2 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)
Eternalist
General of The Syndicate

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
Re: how to wrap item link to show up in blob?
« Reply #3 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
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: how to wrap item link to show up in blob?
« Reply #4 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.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 168
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal