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: Profession image in whois details  (Read 29838 times)

0 Members and 1 Guest are viewing this topic.

Offline rmb

  • BeBot User
  • **
  • Posts: 33
  • Karma: +0/-0
Profession image in whois details
« on: June 02, 2009, 11:35:00 pm »
I have notice that there is "fancy" option for online, that suppose to show little image for each profession. Right now it does not work for AoC because there are some fake  (or simple wrong) rdb reference for images .

Using a RDBdata extractor tool and some experiments I manage to find proper way to link images from rdb files. Unfortunately in my opinion they are a bit too big for online list.


But I have a feeling that they would look good on whois page. The problem is I have no idea how the whois page content is created in whois.php file (in OnlineDisplay.php it looks much easier).

I know I should  define images for each profession (similar to OnlineDisplay.php):
Code: [Select]
if($this -> bot -> game == "aoc")
{
$profgfx["Barbarian"] = "149766 - $0A6F9324";
$profgfx["Guardian"] = "149708 - $0A6F55D4";
$profgfx["Conqueror"] = "262153 - $22BEBA6C";
$profgfx["Priest of Mitra"] = "261998 - $0AA31B30";
$profgfx["Tempest of Set"] = "3777448 - $2DC5DC6C";
$profgfx["Bear Shaman"] = "299131 - $0AC5D5AC";
$profgfx["Dark Templar"] = "262205 - $0AB19CEC";
$profgfx["Assassin"] = "318958 - $0AC612AC";
$profgfx["Ranger"] = "150173 - $0A702FE0";
$profgfx["Necromancer"] = "3913093 - $3F5A2698";
$profgfx["Herald of Xotli"] = "262032 - $0AA5813C";
$profgfx["Demonologist"] = "261899 - $0A9AE994";
(notice that here are working image id, not those form original OnlineDisplay.php )

I should then add:
Code: [Select]
<img src=rdb:// $profgfx >to whois page definition but I’m not sure where exactly the content is defined In whois.php. 


Could some one skilled in php explain me how and where I should modify bot files to show those images?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Profession image in whois details
« Reply #1 on: June 03, 2009, 11:25:18 pm »
It's in core/aoc/Whois.php

The function you are looking for is whois_details().

It should be pretty self-explanatory.

Offline alekseyvip

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Profession image in whois details help
« Reply #2 on: April 16, 2010, 07:03:22 pm »

Code: [Select]
if($this -> bot -> game == "aoc")
{
$profgfx["Barbarian"] = "149766 - $0A6F9324";
$profgfx["Guardian"] = "149708 - $0A6F55D4";
$profgfx["Conqueror"] = "262153 - $22BEBA6C";
$profgfx["Priest of Mitra"] = "261998 - $0AA31B30";
$profgfx["Tempest of Set"] = "3777448 - $2DC5DC6C";
$profgfx["Bear Shaman"] = "299131 - $0AC5D5AC";
$profgfx["Dark Templar"] = "262205 - $0AB19CEC";
$profgfx["Assassin"] = "318958 - $0AC612AC";
$profgfx["Ranger"] = "150173 - $0A702FE0";
$profgfx["Necromancer"] = "3913093 - $3F5A2698";
$profgfx["Herald of Xotli"] = "262032 - $0AA5813C";
$profgfx["Demonologist"] = "261899 - $0A9AE994";
OnlineDisplay.php

I should then add:
Code: [Select]
<img src=rdb:// $profgfx >
hi.
plz help me.where add this text on whois.php and onlinedisplay.php files.
pls ask me.or send me this two works files.
THX

Offline risenlore

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Profession image in whois details
« Reply #3 on: June 19, 2010, 02:35:17 am »
I've been trying to get this worked out. If I figure it out I will post.

Offline risenlore

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Profession image in whois details
« Reply #4 on: June 21, 2010, 08:03:01 pm »
I have my !online list sorted. Looks good now.
http://i184.photobucket.com/albums/x64/mtsaint/online.png

Writing profession image details in !whois should be easy.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Profession image in whois details
« Reply #5 on: June 21, 2010, 11:01:49 pm »
Nice work.

The images do seem a tad oversized for Online listing. I don't suppose there are any smaller ones in the database that could be used instead?
BeBot Founder and Fixer Kingpin

Offline risenlore

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Profession image in whois details
« Reply #6 on: June 22, 2010, 03:48:06 am »
I have been trying to get the class members to display to the right of the class icon rather than underneath it.         
                           [members online]

                       [-------]  1.xteam_member
Profession-->  [        ]  2.xteam member
       image        Barbarian

 I think that would clean up the look a bit. I dont know if there are smaller icons than those I have been looking in the rbd archive but there a ton of entries.

I will  write a plugin for whois to display profgfx as soon as I get my online list cleaned up.
« Last Edit: June 22, 2010, 03:50:29 am by risenlore »

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Profession image in whois details
« Reply #7 on: June 21, 2011, 10:44:17 am »
I have my !online list sorted. Looks good now.
http://i184.photobucket.com/albums/x64/mtsaint/online.png

Writing profession image details in !whois should be easy.

hey ... nice one ... do u have the rewriten mod for me psl ;)

greetz

Offline Bamsina

  • BeBot User
  • **
  • Posts: 28
  • Karma: +0/-0
Re: Profession image in whois details
« Reply #8 on: October 07, 2011, 07:16:38 pm »
Is this module done and were can I get it?

Offline Bamsina

  • BeBot User
  • **
  • Posts: 28
  • Karma: +0/-0
Re: Profession image in whois details
« Reply #9 on: December 13, 2011, 08:14:46 pm »
Ever get the Newo ne posted?

I have been trying to get the class members to display to the right of the class icon rather than underneath it.         
                           [members online]

                       [-------]  1.xteam_member
Profession-->  [        ]  2.xteam member
       image        Barbarian

 I think that would clean up the look a bit. I dont know if there are smaller icons than those I have been looking in the rbd archive but there a ton of entries.

I will  write a plugin for whois to display profgfx as soon as I get my online list cleaned up.

Offline risenlore

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Profession image in whois details
« Reply #10 on: February 20, 2012, 07:14:45 am »
I just started playing again. I have to rewrite the functions for this to display properly.

 

* 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: 216
  • 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