Having a bit of a problem with the SAX on lafferjm's site, http://lafferealm.freehostia.com/phpBB2, of course you must be logged in to view it. If you could just tell me where to look for the error Kerm.
Here is the code I think is wrong.
Code:
Code:
$ajaxurl = preg_replace('/(^.*)(posting\.'.$phpEx.'.*$)/',"$1viewtopic.'.$phpEx.'",htmlspecialchars($HTTP_SERVER_VARS['PHP_SELF']));
ajaxSaxAddItem(0,$userdata['username'],$topicname,$ajaxurl .'?'.POST_POST_URL.'='.$post_id.'#'.$post_id);
Mexi, by clicking the link and seeing it takes you to
http://morphteque.alex10819.net/forum/viewtopic.'.php.'?p=17#17
you should be able to figure out the proper fix on your own by now.
http://morphteque.alex10819.net/forum/viewtopic.'.php.'?p=17#17
you should be able to figure out the proper fix on your own by now.
Bah i already fixed that problem .
the problem is that the viewtopic.php?p=# just shows up, no numbers!
the problem is that the viewtopic.php?p=# just shows up, no numbers!
Uhhhh, no?
http://morphteque.alex10819.net/forum/index.php
*click*
http://morphteque.alex10819.net/forum/viewtopic.'.php.'?p=17#17
And I already PMed you about how to fix that I believe...
http://morphteque.alex10819.net/forum/index.php
*click*
http://morphteque.alex10819.net/forum/viewtopic.'.php.'?p=17#17
And I already PMed you about how to fix that I believe...
I really think it is this line that is wrong.
Code:
Here is an example of the links that don't work.
http://lafferealm.freehostia.com/phpBB2/viewtopic.php?p=#
I sure hope you see what is wrong this time.
Code:
ajaxSaxAddItem(0,$userdata['username'],$topicname,$ajaxurl .'?'.POST_POST_URL.'='.$post_id.'#'.$post_id);
Here is an example of the links that don't work.
http://lafferealm.freehostia.com/phpBB2/viewtopic.php?p=#
I sure hope you see what is wrong this time.
Wrong.
There are supposed to be numbers on both sides of the #. Maybe you should look when you are looking at posts.
Here is an example to help you:
http://cemetech.net/forum/viewtopic.php?p=67461#67461
There are supposed to be numbers on both sides of the #. Maybe you should look when you are looking at posts.
Here is an example to help you:
http://cemetech.net/forum/viewtopic.php?p=67461#67461
So there should be - but if you already know the problem, what is preventing you from diagnosing it? Find out what the variable names should be and/or what you must do to get the values...
Oh, and it still works without the # sign and the number after it, all you *need* is the number before the # sign
Oh, and it still works without the # sign and the number after it, all you *need* is the number before the # sign
Mexi1010 wrote:
I really think it is this line that is wrong.
Code:
Code:
ajaxSaxAddItem(0,$userdata['username'],$topicname,$ajaxurl .'?'.POST_POST_URL.'='.$post_id.'#'.$post_id);
I know that there is something wrong with $post_id but I cannot seem to find why.
Try tracking down where $post_id is defined - are you missing an include? Is it a value returned by a function that you forgot to call?
Check, check, and check. I think I may be looking in the wrong spot. Maybe Kerm will help me out later since it is his MOD.
By the way, I am working on the SAX on http://lafferealm.freehostia.com
By the way, I am working on the SAX on http://lafferealm.freehostia.com
It has been a while since I have used PHP, but just in case, do you need to explicitly convert from an integer to a string?
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Advertisement