|
|
#1 |
|
Junior Member
Join Date: Jul 2008
Location: Madrid, Spain
Posts: 24
Rep Power: 4 ![]() |
Hello.
Our magazine has fairly strict style rules which also apply to the classified listings. For example, a mobile number is always written as xxx xxx xxx where as a land-line is xx xxx xx xx. We like a space after a comma. We like to capitalise the first letter of a new sentence. Often a user will enter an ad that doesn't comply stylistically with our style guide. Therefore we have to manually alter all the elements of the description to make them comply. So what I'm trying to do is in the administration/listings.php page, create a second description box (done this in template) and fill it with a corrected version of the description text with a button for approval by the admin. This text would be corrected automatically using php's great string handling. I can figure out how to do this. However I'm wondering if somebody can give me a pointer as to where to pick up the description variable to duplicate it into another variable for processing. Also where should I do my processing... in administration/listing/php or as a function / module. Sorry for the php dabbler questions, but any directions at this stage would be most useful. thanks
__________________
Nick Haughton v4.0.8 Developer |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,806
Rep Power: 111 ![]() |
From what you describe I would go with a module. Manly because it would require any core edits.
However if you want to add it in manually then I would say look in the Listings class file. It is responsible for inserting, editing, deleting, etc..
__________________
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 |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Admin listing view search views | Mikael | v4 Questions & Support | 2 | 02-12-2009 10:41 AM |
| Admin can't view expired listings - fixed?? | HotAir | v3.1 Questions & Support | 3 | 01-05-2009 08:27 AM |
| "View Listing" missing from user admin | crystal | v4 Questions & Support | 1 | 06-29-2007 10:21 PM |
| Short Description view - order by price, title etc? | dankellaway | v3.1 Questions & Support | 4 | 03-07-2007 03:13 PM |
| Add short description to view listing | redmtnex | v3.1 Questions & Support | 2 | 01-25-2007 07:39 PM |