Support Forums


Go Back   68 Classifieds Forums > Help & Support > v4 Questions & Support

 
LinkBack Thread Tools Display Modes
Old 05-07-2009, 05:15 PM   #1
Junior Member
 
Join Date: Jul 2008
Location: Madrid, Spain
Posts: 24
Rep Power: 4
nickhaughton is on a distinguished road
Default Admin view listing duplicate description variable

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
nickhaughton is offline   Reply With Quote
Old 05-07-2009, 08:36 PM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,806
Rep Power: 111
Eric Barnes is a jewel in the rough
Default

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
Eric Barnes is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 01:09 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0