Support Forums

Error Text Problem (Language)

This is a discussion on Error Text Problem (Language) within the Technical Support forums, part of the Technical Support Forums category; Some error text is hard-coded into a few PHP files when it should be referencing a constant within the global ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-02-2008, 11:10 AM   #1
Jon
Junior Member
 
Join Date: May 2008
Posts: 23
Rep Power: 10
Jon is on a distinguished road
Default Error Text Problem (Language)

Some error text is hard-coded into a few PHP files when it should be referencing a constant within the global language file.

This error text:

<b>The operation could not be performed because one or more error(s) occurred.</b> <p> Please resubmit the form after making the following changes:</p>

Is hard-coded in:

contact.php
contactus.php
friendmail.php
\includes\core\checkout\step3submit.php
\includes\core\membercheckout\step3submit.php
\includes\core\memberships\step3.php
\includes\core\renew\step2.php
\language\english.php
\useraccountmodify.php
\usermodifylisting.php


When it should reference the constant:

LANG_FORM_ERROR_OCCURED

It would be useful to see these PHP files updated in a future release to reflect the constant - for the sake of convenience.

Thanks in advance
__________________
Version 4.0.9 Developer
Jon is offline  
Old 06-02-2008, 11:18 AM   #2
Jon
Junior Member
 
Join Date: May 2008
Posts: 23
Rep Power: 10
Jon is on a distinguished road
Default

I should also note that I have seen a few more instances of this (copy in code, not that particular copy BTW), and from a developer's perspective, it would help a lot to abstract the code from the presentation layer completely.

But from what I've seen you guys have done a great job so far.
__________________
Version 4.0.9 Developer
Jon is offline  
Old 06-02-2008, 03:17 PM   #3
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,471
Rep Power: 130
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Thanks for posting this. I have just made the changes and it will be available in the next release.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with spanish language canariasdata Technical Support 8 05-16-2008 04:49 AM


All times are GMT -4. The time now is 05:29 PM.


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