topmenu.php override -- split your inventory link into pages

Bale

Minion
That's not what he's referring to.

Sometimes when I log out with mafia it sometimes stays logged in. You'll notice this if you try to log back in again and it complains at you for not having properly logged out. Then I have to wait a while until KoL lets me try to log on again.

Before you changed the logout link to do the same thing as the log out function in mafia, it was 100% guaranteed log out. I'm not sure if it is still that way.
 

Veracity

Developer
Staff member
I understood - and was responding to - precisely what he was referring to.

Sometimes when I log out with mafia it sometimes stays logged in. You'll notice this if you try to log back in again and it complains at you for not having properly logged out. Then I have to wait a while until KoL lets me try to log on again.

Yes. I've seen those reports. It has never, ever happened to me. And every time somebody has sent me a log to demonstrate the problem, the log shows a call to logout.php - and a redirect from KoL to loggedout.php. Every single log I have been sent shows KoL telling KoLmafia the "you are logged out" page.

My response is the same as now as ever: since every way to exit KoLmafia (short of a force quit) goes through the central place that calls logout.php - and waits for the response! - there is nothing we can do.

To repeat: it has never, ever, happened to me, and the debug logs I am sent show no errors, so there's nothing I can say or do to address this.
 

mredge73

Member
slightly related question:

Veracity
cli: quit, Does this not log out properly?
I use it as a chatbot script because sometimes I forget to log out of mafia at home and leave it idling logged on in chat. I /msg my main to "logout" from my multi while away from home and it will issue a cli_execute("quit"); command. I have never had a problem with this before but I do not immediately log in anyway. Is this not an effective or proper way to log out using mafia?
 

Muhandes

Member
Yes, I noticed that, I believe it was chanced from logout to "log out". The problem I mentioned might not be active now, but I'm still using the relay link from habit I guess. It's also nice to have the relay window show a log out though.
 

matt.chugg

Moderator
I removed it to save space. I figured most KoLmafia users were logging out via KoLmafia. Were you actually using it?

In terms of space saving, is the Character link really needed, since you can get to exactly the same place by clicking your name in charpane?
 

zarqon

Well-known member
I didn't remove that because I like the inventory and following links being where they are. Plus, I have designs for it -- I was thinking character sheet, display case, store...? But haven't decided yet. This still needs a guild link as well. What are the character-related links you most wish you could visit in a single click?
 

Bale

Minion
I noticed today that it was turning the minimoon into a link to my public charactersheet. Not a big deal, but this is the corrected line:

Code:
results.replace_string("valign=center><img src=\"http://images.kingdomofloathing.com/otherimages/","valign=center><a target=mainpane href=\"showplayer.php?who="+my_id()+"\"><img title=\"View Public Charsheet\" src=\"http://images.kingdomofloathing.com/otherimages/");
 

dawdawdo

Member
I added this to the "relay" folder and checked Enable user-scripted relay browser overrides. Am I missing something? My browser is Firefox. Will this only work in the minibrowser? Thanks.

Update: Nevermind! (walks off shamefully embarrassed)
 
Last edited:

Tarko

Member
anyone knows the 'url' to our own Mall?

Will try to use the info to change the Mall link to our own store.
(As I Use the Purchase tab)


EDIT:
Nevermind, found it.


// Mall option
results.replace_string("mall.php\">mall</a>",

"managestore.php\">ma</a><a target=mainpane href=\"managestore.php\">l</a><a target=mainpane href=\"managestore.php\">l</a>");


I know it's sub-optimal, but it works.
 
Last edited:

zarqon

Well-known member
I just updated the first post of this thread with my current version of this.

Only a couple other changes made:
- replaces "character" link with "guild" link
- "mall" now links directly to searchmall.php
 

icon315

Member
Hey since you can improve the Top-Menu, i was wondering if you could expand the Right-click menu too include other features (ie:Auto PSA)
 

icon315

Member
Well in /games we have a thing we call PSA (Public Service Announcement) in which we place a link into a player's profile if they have Min. Priced items in their store.
 

zarqon

Well-known member
Which right click menu? Is it a chat thing? I almost never use chat (I only sometimes lurk in /trade), and it seems that KoL's right-click menu doesn't work in Opera, so even if it's possible, I would not be the one to do it.
 

zarqon

Well-known member
Yes -- one of the fastest, most innovative browsers, and one of the most popular for mobile devices. Every browser from IE to Chrome has copied their ideas. Aside from some Firefox-only plugins (especially the ones for web developers), people mainly use Firefox for all the reasons that they should be using Opera. The recent 10.51 is amazing. </fanboyism>
 
Top