DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • May 18, 2013, 04:31:22 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: 1 [2]   Go Down
  Print  
Author Topic: The Cell  (Read 688 times)
0 Members and 1 Guest are viewing this topic.
HunterD
Captain of the Guard
***
Offline Offline

Posts: 101



View Profile WWW
« Reply #15 on: July 29, 2012, 12:45:09 AM »

*HunterD sticks his two cents in.

I've got this with an AJAX commentary as well.  I have no issues.  I have button modifications as well, however, I do NOT have the delete feature that Aeolus so kindly figured out.  Have you tried removing that function yet?

Logged

Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #16 on: July 29, 2012, 06:04:55 AM »

*HunterD sticks his two cents in.

I've got this with an AJAX commentary as well.  I have no issues.  I have button modifications as well, however, I do NOT have the delete feature that Aeolus so kindly figured out.  Have you tried removing that function yet?



It's not the AJAX Commentary that's causing this. I deactivated it, and it still happens. Already gone there. xD
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Loscil Derails
Militia
**
Offline Offline

Posts: 51



View Profile
« Reply #17 on: July 29, 2012, 01:35:40 PM »

Weird. If i turn off the autorefresh on my ajaxcommentary, it works fine, but as soon as I turn refresh back on, it glitches.

I think, at least in my case, that it is the commentary causing the problem.

I'm kind of considering changing the everyhit hook to just main hooks, like the village hooks and forest, and such. It won't /immediately/ redirect in some cases, but will get there within a few clicks. I think it would fix a large part of the problem.
Logged

Your specimen is being processed...
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #18 on: July 29, 2012, 03:29:21 PM »

I'm kind of considering changing the everyhit hook to just main hooks, like the village hooks and forest, and such. It won't /immediately/ redirect in some cases, but will get there within a few clicks. I think it would fix a large part of the problem.

I might do the same. o.o Thanks for the idea. xD

EDIT: Only problem is, when I do that, the mail, petition and motd won't redirect to where it's meant to.. o.o
« Last Edit: July 29, 2012, 04:11:07 PM by Aeolus » Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Loscil Derails
Militia
**
Offline Offline

Posts: 51



View Profile
« Reply #19 on: July 29, 2012, 04:29:54 PM »

I'm kind of considering changing the everyhit hook to just main hooks, like the village hooks and forest, and such. It won't /immediately/ redirect in some cases, but will get there within a few clicks. I think it would fix a large part of the problem.

I might do the same. o.o Thanks for the idea. xD

EDIT: Only problem is, when I do that, the mail, petition and motd won't redirect to where it's meant to.. o.o
I'll probably be working on this tonight/tomorrow so I'll keep you updated if I find anything that works well for me :3
Logged

Your specimen is being processed...
Boris735
Mod God
*****
Offline Offline

Posts: 532


View Profile
« Reply #20 on: July 29, 2012, 06:32:36 PM »

I viewed the HTML page source just before, and after, the page copied itself (I didn't know if there would be a difference..). They're attached at .txt files.

There's certainly some differences in those files, including invalid HTML.  The odd part is that the bad HTML is in BeforeCopy.txt, rather than after.  It may be a red herring, but if you can find out why that is being produced and fixed it it may help.

I cannot easily figure out what commentary system you are using, but certainly something there needs investigating.  The following were bad features noticed.


In the javascript function fetchmorecommentary():

Code:
      c</brTimeout(commentarytimerid);

which later becomes the correct

Code:
      clearTimeout(commentarytimerid);


In the outputted charinfo section (only part of line shown since it is long):

Code:
<span class='colLtGreen'>50span>

which later correctly becomes

Code:
<span class='colLtGreen'>50</span>


It's hard to imagine what might cause this, but it does suggest some kind of corruption of the output stream.
Logged
Loscil Derails
Militia
**
Offline Offline

Posts: 51



View Profile
« Reply #21 on: August 03, 2012, 02:59:02 PM »

I... think I fixed this. It feels hacky to me. I haven't encountered any extraneous bugs or issues, so hopefully it works.

As for me, I'm using the improbable island ajax chat. Upon inspecting the html, I figured out what broke.

There was a line in the improbable island ajax commentary.php:
rawoutput("<div id=\"typedisplay".$jsec."\"></div>");

I commented this out, and everything seems to be working perfectly. With thecell and everything else.

I'll update if I find any issues from removing this...

I also added a new hook to the common.php file.
There might be something in here that is irrelevant, and I don't know if it really needs to be done, but it looks like this:

if(!strpos($_SERVER["PHP_SELF"],'commentary') !== false && $session['user']['loggedin'] && httpget("module") != "thecell" ){
 modulehook("everyhit-nocomment-thecell");
}

Then just use everyhit-nocomment-thecell instead of everyhit. I think this prevents chats that autorefresh (such as the ajax one) from thinking it redirected the user already.
Again, this may not be necessary but this is what I have done which appeared to have resolved it.
Logged

Your specimen is being processed...
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
24 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search