Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,502,623
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-29-24 11:02 PM
Guest: Register | Login

0 users currently in Computing | 1 guest

Main - Computing - Problems with AcmlmBoard, again New thread | New reply

Pages: 1 2

Cellar Dweller
Posted on 05-18-08 07:46 PM Link | Quote | ID: 83901


Snifit
Level: 39

Posts: 111/287
EXP: 385294
Next: 19477

Since: 02-19-07
From: Arkansas

Last post: 4055 days
Last view: 3223 days
I found this in my IRC logs:
Nov 26 23:33:56 ||bass  the following query is wrong:
Nov 26 23:33:57 tunabot mreeeeow....
Nov 26 23:33:58 ||bass SELECT p.*,text,headtext,signtext,edited,options,tagval,u.id uid,name,posts,sex,powerlevel,picture,title,useranks,location,lastposttime,lastactivity,imood,skype,regdate FROM posts p,posts_text LEFT JOIN users uON p.user=u.id WHERE thread=9277 AND p.id=pid ORDER BY p.id LIMIT 0,100
Nov 26 23:34:13 ||bass SELECT p.*,text,headtext,signtext,edited,options,tagval,u.id uid,name,posts,sex,powerlevel,picture,title,useranks,location,lastposttime,lastactivity,imood,skype,regdate FROM posts_text, posts p LEFT JOIN users uON p.user=u.id WHERE thread=9277 AND p.id=pid ORDER BY p.id LIMIT 0,100
Nov 26 23:34:28 ||bass notice the very subtle difference
Nov 26 23:34:33 ||bass because
Nov 26 23:34:48 ||bass since you are using p in the ON clause
Nov 26 23:34:58 ||bass posts p has to be an immediate operand of the join
Nov 26 23:35:47 ||bass that is actual standardized sql syntax
Nov 26 23:36:03 ||bass i know mysql4 let you use any table from anywhere in the query in the join
Nov 26 23:36:12 ||bass for the on clause
Nov 26 23:36:21 ||bass but, at least if you read the standard
Nov 26 23:36:28 ||bass it's explicitly supposed to fail
Nov 26 23:36:31 ||bass which it does in php5


All you need to do is search for "posts p,posts_text" in thread.php and replace it with "posts_text,posts p". There will be more than one instance that needs to be fixed.

blackhole89
Posted on 05-18-08 07:50 PM Link | Quote | ID: 83902


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 1664/4196
EXP: 21538955
Next: 297646

Since: 02-19-07
From: Ithaca, NY, US

Last post: 475 days
Last view: 87 days



Yeah, that was it. I think I used to solve the problem by putting (posts p, posts_text) in brackets.

IIMarckus: A somewhat cleaner codebase, and a bit less bloat, pretty much.

____________________



Arbe
Posted on 05-18-08 08:01 PM Link | Quote | ID: 83903

go away
Level: 86

Posts: 823/1788
EXP: 5989014
Next: 153093

Since: 02-23-07

Last post: 4973 days
Last view: 1541 days
The main advantage is the lack of the disciplinary shit everywhere. You'll still have to fix about 1000 injection holes. I'd say it's not worth it, pieguy, unless you have a community already, or a purpose for the board.

pieguy1732
Posted on 05-18-08 09:17 PM (rev. 2 of 05-18-08 09:39 PM) Link | Quote | ID: 83906


Ptooie
Note: I wasn't here because I wasn't here, not because someone switched the 7 and the 3.
Level: 84

Posts: 1046/1711
EXP: 5464161
Next: 197791

Since: 01-04-08

Last post: 5020 days
Last view: 4950 days
Thank you so much, everyone. It works now.

EDIT: Bah, another problem. The numbers don't show up. :o

____________________
"There are 3 types of people in this world: Those who can count and those who can't."
Neritic Net

Arbe
Posted on 05-19-08 03:52 PM (rev. 3 of 05-19-08 03:55 PM) Link | Quote | ID: 83926

go away
Level: 86

Posts: 826/1788
EXP: 5989014
Next: 153093

Since: 02-23-07

Last post: 4973 days
Last view: 1541 days
Acmlmboard 1.92.08

Download that, replace your copy, and it's bound to fix some problems. I assume this version is more secure.

Edit: click the link in a few minutes it's still uploading

Edit2: okay you're good to go

OoBurns
Posted on 05-23-08 01:52 AM (rev. 2 of 05-23-08 01:52 AM) Link | Quote | ID: 84058


Boo
Level: 68

Posts: 1022/1036
EXP: 2642306
Next: 86494

Since: 02-19-07
From: It is a mystery.

Last post: 5725 days
Last view: 5725 days
Posted by pieguy1372
Bah, another problem. The numbers don't show up. :o

This could simply be a server problem. If your host doesn't have GD enabled, you're out of luck for the image-numbers. I remember one host I tried a while ago didn't have GD for whatever reason...

____________________

pieguy1732
Posted on 05-23-08 04:06 AM Link | Quote | ID: 84060


Ptooie
Note: I wasn't here because I wasn't here, not because someone switched the 7 and the 3.
Level: 84

Posts: 1052/1711
EXP: 5464161
Next: 197791

Since: 01-04-08

Last post: 5020 days
Last view: 4950 days
After uploading the link that Arbe gave, new problems came up:

1. When making a post, the data isn't entered.
2. The memberlist doesn't show anything.

____________________
"There are 3 types of people in this world: Those who can count and those who can't."
Neritic Net

chungy
Posted on 05-24-08 12:34 AM Link | Quote | ID: 84085


Rex
Level: 51

Posts: 203/533
EXP: 960596
Next: 53342

Since: 08-23-07
From: Las Vegas

Last post: 4448 days
Last view: 4250 days
you're better off not bothering with Acmlmboard entirely.

pieguy1732
Posted on 05-24-08 02:23 AM Link | Quote | ID: 84090


Ptooie
Note: I wasn't here because I wasn't here, not because someone switched the 7 and the 3.
Level: 84

Posts: 1053/1711
EXP: 5464161
Next: 197791

Since: 01-04-08

Last post: 5020 days
Last view: 4950 days
THANK YOU FOR YOUR HELP

Anyway, those two problems were fixed, but now there's another one. Linking to a thread using pid doesn't work properly; nothing is displayed.

____________________
"There are 3 types of people in this world: Those who can count and those who can't."
Neritic Net
Pages: 1 2


Main - Computing - Problems with AcmlmBoard, again New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.024 seconds. (324KB of memory used)
MySQL - queries: 57, rows: 74/75, time: 0.016 seconds.