|
|
#1 |
|
Senior Member
Join Date: Dec 2006
Posts: 105
Rep Power: 13 ![]() |
Ok, I know nothing about coding, but I just bought the 68c and have some plans to use it. I am testing it now. I noticed that the when user uses Seller Store the photo does show on RTE but after saving it disapears. Then I noticed that it works fine when in admin, but when in admin something is written and submitted then user cannot load a logo. So I compared 2 files. I have found little changes to admin.php and index.php. Here are the lines:
admin.php if(isset($HTTP_POST_VARS['sImage'])) { $extraSQL=",sImage='".safeAddSlashes($HTTP_POST_VA RS['sImage'])."'"; } $sSQL=sprintf("UPDATE ".PREFIX."store SET sTitle=%s, sDescription=%s".$extraSQL." WHERE sID=%s", GetSQLValueString($_POST['sTitle'], "text"), GetSQLValueString($_POST['sDescription'], "text"), GetSQLValueString($sID, "int")); index.php if(isset($_POST['sImage'])) { $extraSQL=",sImage='".safeAddSlashes($_POST['sImage'])."'"; } //badwords $description=@$_POST['sDescription']; $description = filterword($description); $description = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]"," ", $description); $sSQL=sprintf("UPDATE ".PREFIX."store SET sTitle=%s, sDescription=%s".$extraSQL." WHERE sUserID=%s AND sID=%s", GetSQLValueString($_POST['sTitle'], "text"), GetSQLValueString($description, "text"), GetSQLValueString($userid, "int"), GetSQLValueString($sID, "int")); we don't need to mention the badwords for this purpose, but I inclosed this in order not to devide the code So I chaned this line "GetSQLValueString($description, "text")," from index.php and put this one: "GetSQLValueString($_POST['sDescription'], "text")," All seems to work fine now. I would have a question to moderators: is it ok? Is anything else that should be changed? |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,981
Rep Power: 115 ![]() |
If it is working now I assume it is fine.
However by doing that you are skipping this section: PHP Code:
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Dec 2006
Posts: 105
Rep Power: 13 ![]() |
Hi, we meet first time, the code you wrote - ok, I got it, but it just did not work properly, is any other way to do it?
I have one more question. I noticed that the tiny mce is quite more advanced, I noticed that this code: PHP Code:
Last edited by darek; 12-14-2006 at 04:45 PM. |
|
|
|
|
|
#4 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,981
Rep Power: 115 ![]() |
To integrate the full version of tinymce you can download it from their site then use their setup instructions. We use a trimmed down version because the full package is pretty large and ads a lot to our download size.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Dec 2006
Posts: 105
Rep Power: 13 ![]() |
Thanks a lot, I will give it a try.
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Modification: Seller Store | Eric Barnes | v3.1 Modules & Modifications | 41 | 12-20-2007 01:48 PM |
| Seller Store - Help | Jake | v3.1 Modules & Modifications | 2 | 11-01-2006 10:42 AM |
| Totally lost - Seller Store | gregbatch | v3.1 Questions & Support | 2 | 08-05-2006 05:33 PM |
| Store - minor points - not bugs | Chaslie | v3.1 Questions & Support | 1 | 04-12-2006 08:49 AM |