Support Forums

Funny Bug

This is a discussion on Funny Bug within the Technical Support forums, part of the Technical Support Forums category; v4.0.9 Developer If I go to delete an ad (click on delete while in 'modify an ad') I get this ...


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 10-12-2008, 10:45 PM   #1
Junior Member
 
 
Join Date: Oct 2008
Location: Morgantown, West Virginia
Posts: 21
Rep Power: 9
dollpage is on a distinguished road
Talking Funny Bug

v4.0.9 Developer

If I go to delete an ad (click on delete while in 'modify an ad') I get this warning message/question:

Are you sure you wish to delete this?nIt cannot be undonen.

I found:
define("LANG_JS_DELETE_CONFIRM", "Are you sure you wish to delete this?");
define("LANG_JS_DELETE_CANNOT", "It cannot be undone");
in the language file, but I can't find where the two are combined to make this statement.

Any ideas anybody? We'd really like to fool our users into thinking we're literate
dollpage is offline  
Old 10-13-2008, 05:19 PM   #2
Junior Member
 
 
Join Date: Oct 2008
Location: Morgantown, West Virginia
Posts: 21
Rep Power: 9
dollpage is on a distinguished road
Default

Thanks Cotton!

Yup, the confirm delete code on my user/browselistings.tpl had the \n in the same places as you pointed out, so I just stripped them out and left a space between the two smarty.construct statements..and now it looks fine.

cmsg = "{/literal}{$smarty.const.LANG_JS_DELETE_CONFIRM} {$smarty.const.LANG_JS_DELETE_CANNOT}{literal}"

I thought the \n was to add a whitespace between characters, but apparently not in this case.

That's one of the things I love about code... it's always consistent sometimes
dollpage is offline  
Old 10-15-2008, 11:47 AM   #3
Junior Member
 
 
Join Date: Oct 2008
Location: Morgantown, West Virginia
Posts: 21
Rep Power: 9
dollpage is on a distinguished road
Default

Weird, isn't it?

What happens when you delete an ad as a user... do you get a well spelled confirmation message?

dollpage is offline  
Old 10-15-2008, 12:07 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Yea that should be a line break. Very strange that it isn't.

What you may want to do is edit the template file that cotton posted and just remove it and add a space there.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 10-16-2008, 10:40 AM   #5
Junior Member
 
 
Join Date: Oct 2008
Location: Morgantown, West Virginia
Posts: 21
Rep Power: 9
dollpage is on a distinguished road
Default

Yup

That's what I did and it looks great now.

Glad to know that you found it strange too..

Thanks!
dollpage is offline  
Old 10-20-2008, 09:56 AM   #6
Senior Member
 
frommarcq's Avatar
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 111
Rep Power: 22
frommarcq is on a distinguished road
Default

Hi,
In userbrowselistings.tpl, could you try to replace
\n
with
\\n
I think it will solve this bug.
Regards
Pascal
__________________
68classifieds (V4.0.9Developer)

maison nord - appartement Lille - maison lens - meteo Lille - restaurants Lievin

Last edited by frommarcq; 10-20-2008 at 09:56 AM. Reason: bug
frommarcq is offline  

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