1
beppe
Re: Business Directory Created
  • 2003/9/23 14:18

  • beppe

  • Just popping in

  • Posts: 3

  • Since: 2003/9/22


There's an error in the latest admin/index.php file

Error occurs in new link validation section, when u must approve a new link. The page doesn't load correctly, many fields are omitted and there are no buttons in the form.

The problem is on line 139 of admin/index.php file

The line is

echo "<textarea name=description cols=\"60\" rows=\"5\">$description</text>\n";

to be replaced with

echo "<textarea name=description cols=\"60\" rows=\"5\">$description</textarea>\n";


Infact close tag is </text> instead of </textarea>, so all html code after is inserted into textarea box.

Byezz
Beppe






2
beppe
Re: Business Directory Created
  • 2003/9/23 0:24

  • beppe

  • Just popping in

  • Posts: 3

  • Since: 2003/9/22


Quote:
Hi Bobdt, thanks for that. I edited the fields in the SQL file and the install now works. Now I guess I have to wait until the submit bug is fixed. Good work so far.


Submit bug is caused by forgotten vars in sprintf function before the query..



3
beppe
Re: Business Directory Created
  • 2003/9/23 0:20

  • beppe

  • Just popping in

  • Posts: 3

  • Since: 2003/9/22


Hi dears..

I'm working on this module..

I've found another bug.. and solved it.

If u see, in administration section, u can find something strange in "User Listing Modification Requests".

Pay attention. When a simple user (not an admin) edits a link, u must approve it from Administration. So u must access "User Listing Modification Requests" section. Here, u can see old values 4 that record, and new values proposed by the user. Yet, it seems new values r not correct.. And "submitter" field is blank. Really, in description field, is shown not the description but the user id. So.. i've found the error in the code.

in admin.php on line 543, in the function listModReq() there's a problem in the while-statement. Or better.. in list() used in the while statement. In the code is:

while ( list($requestid, $lid, $cid, $title, $address, $city, $state, $zip, $phone, $url, $email, $logourl, $description, $submitterid)=$xoopsDB->fetchRow($result) )

but Email field is not set in MySQL table.

So this line is to be replaced with

while ( list($requestid, $lid, $cid, $title, $address, $city, $state, $zip, $phone, $url, $logourl, $description, $submitterid)=$xoopsDB->fetchRow($result) ) {



Greetings from Italy
Byezzz
Beppe




TopTop



Login

Who's Online

116 user(s) are online (73 user(s) are browsing Support Forums)


Members: 0


Guests: 116


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits