PDA

View Full Version : EDITOR_camera.php doesn't save specs (FIXED IN 2.02)


wkitty42
30th of October 2006 (Mon), 16:22
i've spent numerous hours rummaging all thru these EE2 forums with no luck... i know i've seen a message were it was said something about a script file had the wrong name of a database field or some such... i'm about blind having finally resorted to a plain search for messages pekka wrote in the last month and reading each and every one of them... i may have missed what i'm searching for, though :(

in any case, EDITOR_camera.php doesn't save what you put in the SPECs form box... i'm wrangled thru the templates and code trying to determine where such is read and written but my head just isn't in it with this medication i'm taking for my painful arm injury...

pekka, searching the forums doesn't work for searching within these EE2 forums... i think there's a tad bit of configuring to be done so that the searches on these areas do work... when i go to select to search the "EE Forums" group, there're no "child folders" :(

[pitiful mode ON] can someone please help? [pitiful mode OFF]

Pekka
30th of October 2006 (Mon), 17:01
This was supposedly fixed in 2.01: http://photography-on-the.net/forum/showthread.php?t=224184

To search EE forums, go to http://photography-on-the.net/forum/forumdisplay.php?f=93 and click "search this forum".

wkitty42
30th of October 2006 (Mon), 19:26
This was supposedly fixed in 2.01: http://photography-on-the.net/forum/showthread.php?t=224184

i did the update to 2.01 and do have the same time and date stamp on my file... i'll try to overwrite it again and see what happens...

To search EE forums, go to http://photography-on-the.net/forum/forumdisplay.php?f=93 and click "search this forum".
i was trying it from the top bar link between "new posts" and "quick links"... it doesn't work from there... when you look at the structure tree, it doesn't show the children for these forums...

wkitty42
30th of October 2006 (Mon), 19:41
i've reextracted the file and i still have the same problem... i have an existing camera with specs and comments... i added "foo!" to the end of the existing specs and saved it... upon return, "foo!" is not shown... going to the gear.php page in the public index also does not show it... when i peek into table ee_camera_eng with phpMyAdmin, it is there...

by the same token, i have a new camera that i just added today... i'd not been able to get the specs to save and show... just now, i put "FOO!!" into the spec field and saved the data... again, when the browser returned from the save process, "FOO!!" was not shown in that camera's specs field... it also does not show in gear.php from the public index... and as above, when i peek in with phpMySql, the data is in the ee_camera_eng table...

this is getting to be a real head scratcher... could this be something in the templates??

wkitty42
30th of October 2006 (Mon), 19:49
where do $camera_description_text_html and camera_description get loaded with their data??

wkitty42
30th of October 2006 (Mon), 20:43
i believe i've found (part of) the trouble... ee_camera_eng contains two fields, "description" and "features"... in the one camera that was imported from EEv1.5, the data in these fields is identical... however, in the new camera that i just added, the data only appears in the "features" field...

it appears that the script basecode/SCRIPT_camera.php is where this info is loaded... the code in there does not appear to actually use the data from the features field although it does pull it in $cameradata["features"]... it appears that the line print @ee_textblock_print (@$cameradata["description"],"0",$s_activate_br_gear); should actually read print @ee_textblock_print (@$cameradata["features"],"0",$s_activate_br_gear); for it to work correctly...

digging further, it also appears that admin/EDITOR_camera.php needs a slight adjustment on line 364... instead of print "<b>Specs:</b>" . $s_multilingual . "<br><textarea name=\"camera_features[" . $camera_vari . "]\" cols=\"40\" rows=\"5\" style=\"font-weight: normal; background-color: " . $s_multilingual_color . "\" "; ee_popuphelp("camera_features"); print ">" . ee_html_conversion(ee_stripslashes($camera_row["ee_camera_description"])) . "</textarea>"; it should read print "<b>Specs:</b>" . $s_multilingual . "<br><textarea name=\"camera_features[" . $camera_vari . "]\" cols=\"40\" rows=\"5\" style=\"font-weight: normal; background-color: " . $s_multilingual_color . "\" "; ee_popuphelp("camera_features"); print ">" . ee_html_conversion(ee_stripslashes($camera_row["ee_camera_features"])) . "</textarea>";

it would appear that there either needs to be a line of code equating one with the other or one needs to be decided on and the other eliminated...

i've done both of the above fixes in my copy and now it seems that it is working properly...