DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • June 18, 2013, 02:43:43 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Double Options in AJAX  (Read 950 times)
0 Members and 1 Guest are viewing this topic.
The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« on: May 18, 2012, 06:19:26 AM »

So, I've got this small problem where the moderation options in the AJAX chat I have installed double up at the top of the chat. To clarify, a screenshot:



The links to the first lot of the top row's double links link to an empty player, for example, the mail link's URL is:

Quote

Anyone know a fix to this?
« Last Edit: July 20, 2012, 07:58:58 AM by Aeolus » Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
HunterD
Captain of the Guard
***
Offline Offline

Posts: 101



View Profile WWW
« Reply #1 on: May 18, 2012, 10:46:34 AM »

Got a weird one too.. anyone get two status icons for the post at the top of an AJAX commentary?  I get a nonplayer then the actual status for the top posted user.

I don't think I can do anything about that, it seems to be a problem with ajax. I've noticed that the other ajax scripts have the same problem.

I kinda figured it out.  I commented out the non-player indication.  I don't have any NPC stuff in my chats anyway.  Worked like a charm. Smiley

I only added the non player thing to keep things aligned down the left hand side as much as possible. You can comment out the lines of code if you wish. Smiley

Dragonprime: Reading is FUNdamental!
Logged

Novelus|Grant|DarknessFalls
Captain of the Guard
***
Offline Offline

Posts: 229


Its not the beginning, or the end, that matters.


View Profile WWW
« Reply #2 on: May 18, 2012, 11:19:56 AM »

So would be posting the link to the topic, Hunter, instead of copying&pasting what was said.
Logged

Not Nadez. Got it?
The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« Reply #3 on: May 18, 2012, 11:40:38 AM »

So would be posting the link to the topic, Hunter, instead of copying&pasting what was said.

Exactly. Thank you, Grant. Which would help me read the entire topic, and hence get a better view on things. Grin ( Edit: ) Because, if I might add, if one searched for "double options", or "double script", it comes up with something entirely different to "online icons", right? Smiley Jussayin, bro.
« Last Edit: May 18, 2012, 11:48:02 AM by Aeolus » Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #4 on: May 18, 2012, 11:56:21 AM »

if you click the Quote from Mojo link above the quote box it takes you to the post. Cheesy  But its for chat icons not the ajax edit user, delete, and edit commentary.  Which is what he wants only one set of.  Not two.  Reading is FUN when you read correctly.  Just saying.
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« Reply #5 on: May 18, 2012, 12:04:23 PM »

if you click the Quote from Mojo link above the quote box it takes you to the post. Cheesy

Thanks Meg- that's how I found out that it was about the Online Chat Icons. xD

But its for chat icons not the ajax edit user, delete, and edit commentary.  Which is what he wants only one set of.  Not two.  Reading is FUN when you read correctly.  Just saying.

Exactly. Seeing as that I don't have the Online Chat Icons installed at all, plus.. how does one simply comment out a line of commands? 'Twould have been better, Mr. Hunter, if you described how. Wink

Dragonprime: Reading is FUNdamental!

Dragonprime: Reading is FUNdamental.. when you read the right thing.
« Last Edit: May 18, 2012, 12:10:09 PM by Aeolus » Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #6 on: May 18, 2012, 12:16:01 PM »

To comment out a line you just go to said line, for example, addnav("village.php") and right in front of the a you put 2 slashes like follows: // so it would look like this: //addnav("village.php")  works for any code you dont need because sometimes removing it all together can break the module.  Cheesy
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« Reply #7 on: May 18, 2012, 12:22:27 PM »

To comment out a line you just go to said line, for example, addnav("village.php") and right in front of the a you put 2 slashes like follows: // so it would look like this: //addnav("village.php")  works for any code you dont need because sometimes removing it all together can break the module.  Cheesy

Ahh, that type of commenting out. Thanks, Sara Smiley Anyone have a clue as to which line in code I have to comment out?
Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
Novelus|Grant|DarknessFalls
Captain of the Guard
***
Offline Offline

Posts: 229


Its not the beginning, or the end, that matters.


View Profile WWW
« Reply #8 on: May 18, 2012, 08:39:02 PM »

Now THAT, good sir, is a good question. One I do not have an answer to. xD
Logged

Not Nadez. Got it?
The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« Reply #9 on: May 20, 2012, 03:01:39 AM »

Rightio, here's the solution.

In root/ajaxcommentary.php, Find:

Code:
for(;$i>-1;$i--){

Replace with:

Code:
for($i=$rowcount-1;$i>-1;$i--){

Grin
« Last Edit: May 20, 2012, 03:34:43 AM by Aeolus » Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
HunterD
Captain of the Guard
***
Offline Offline

Posts: 101



View Profile WWW
« Reply #10 on: May 20, 2012, 03:13:53 AM »

Well done. Smiley
Logged

The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« Reply #11 on: May 20, 2012, 03:17:47 AM »

Well done. Smiley

Thanks. Smiley
Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 823


View Profile WWW
« Reply #12 on: May 20, 2012, 01:32:28 PM »

How did you figure that out?
Logged

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination
HunterD
Captain of the Guard
***
Offline Offline

Posts: 101



View Profile WWW
« Reply #13 on: May 20, 2012, 03:35:12 PM »

What I *did* notice, however, is that in certain chat areas, that change created a multitude of blank entries, so if you think the double at the top was bad, try 20 or so of them.  So... CAVEAT EMPTOR:  That edit may not work for you.

Logged

The Doctor
Mod God
*****
Offline Offline

Posts: 1100


Doctor.. Who?


View Profile WWW
« Reply #14 on: May 20, 2012, 05:07:39 PM »

How did you figure that out?

Magic, deary. Wink

What I *did* notice, however, is that in certain chat areas, that change created a multitude of blank entries, so if you think the double at the top was bad, try 20 or so of them.  So... CAVEAT EMPTOR:  That edit may not work for you.

Yeah, my bad on that. I fixed my post/edit about half an hour after I posted it. xD Try the new edit. Sorry.
Logged


Time Lords Online - A Doctor Who RPG! Open Now!

~ My Modules: PM me if you would like me to code something! ~
Pages: [1]   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
21 Guests, 1 User
Wikii
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search