| Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc... |
| by ik2xnw on 2007/5/23 14:27:00 I had such output, whilst trying to see full sized images. I remembered that in the Protector Preferences panel, somewhat sounded like this: "All requests named "*id" will be treated as integer. This option protects you from some kind of XSS and SQL Injections. Though I recommend to turn this option on, it can cause problems with some modules." Switched that setting to "no", solved my problem. |
| Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc... |
| by gstarrett on 2003/11/14 18:41:39 Quote:
It's called "Statistics", by Mispunt. The readme instructs you to as follows: Quote: Installation. | I've been able to patch the include file so it doesn't stomp on variables. All the patch does is isolate the routine from the global variables by putting it into a funciton instead of inline. Modify 2 places. Add the line in red to the TOP of the file to look like this: ... now add the 2 lines in red at the BOTTOM to look like this: le="color: #000000"><?php ... else { $xoopsDB->queryF("INSERT INTO ".$xoopsDB->prefix("statistics_ip")." (ip, date, hits) VALUES ('$ip', '$now_ip', '1')"); } [color=FF0000][b]} statistics_counter_countpage();[/b][/color] ?> I'll send the author the full patch also, so he can update his code. I won't be posting a patched version since I don't know if I have the latest or not. Another tip while I'm in there anyway... If you change le="color: #000000"><?php $ip = $HTTP_SERVER_VARS['REMOTE_ADDR']; to (all on a single line): le="color: #000000"><?php $ip = isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : $HTTP_SERVER_VARS['REMOTE_ADDR']; it'll get IP addresses properly while running on Apache too. |
| Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc... |
| by shinybt on 2003/11/14 18:15:51 Quote:
which stats module u were saying? sorry, this was the 3rd days for me to play this XOOPS and gallery. It was a 1st php portal for me also.. >.< |
| Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc... |
| by gstarrett on 2003/11/14 18:10:40 Quote: ERROR: requested index [] out of bounds [2] That can be caused by not updating, but there is a statistics module that will cause that too. Removing the statistics module has fixed the problem for others. (Surprised you didn't recognize that one, gnik )
|
| Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc... |
| by shinybt on 2003/11/14 17:41:54 my bad, forgot to mentioned I did "updated" them as well. Had tried to re-update once again. and the bug still bugging me badly... any idea? |