Support Forums

friendmail.tpl, any problems?

This is a discussion on friendmail.tpl, any problems? within the Technical Support forums, part of the Technical Support Forums category; When I tried to use the email a friend option.....I filled in the information to send the email. Then 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 06-01-2008, 08:55 PM   #1
Member
 
Join Date: Apr 2008
Posts: 40
Rep Power: 14
YourPalAl is on a distinguished road
Question friendmail.tpl, any problems?

When I tried to use the email a friend option.....I filled in the information to send the email. Then this happened..

Fatal error: Smarty error: [in emails/text/friendmail.tpl line 9]: syntax error: mismatched tag {/textformat}. (Smarty_Compiler.class.php, line 2300) in /home/68classifieds/public_html/includes/classes/smarty/Smarty.class.php on line 1095.

Do I need an updated script for the friendmail.tpl?

Please advise...

Thanks a bunch~

-Al
YourPalAl is offline  
Old 06-02-2008, 02:55 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Hi,

This sounds like a problem with the template file. Can you try reuploading it from the original download and see if that fixes it?
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 06-02-2008, 03:25 PM   #3
Member
 
Join Date: Apr 2008
Posts: 40
Rep Power: 14
YourPalAl is on a distinguished road
Question

sure. where do I find the original download?
Can you give me a specific location?

I also had this error with using the contact.

Fatal error: Smarty error: [in emails/text/contactus.tpl line 9]: syntax error: mismatched tag {/textformat}. (Smarty_Compiler.class.php, line 2300) in /home/68classifieds/public_html/includes/classes/smarty/Smarty.class.php on line 1095

I did try to refine all of the emails and how they appear
YourPalAl is offline  
Old 06-02-2008, 03:30 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

You can get the original download from our customer area:
http://www.68classifieds.com/customers/

Just do a fresh download then upload these templates again.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 06-02-2008, 04:32 PM   #5
Member
 
Join Date: Apr 2008
Posts: 40
Rep Power: 14
YourPalAl is on a distinguished road
Default contactus.tpl

Hi Eric~

I got the same error again...

I simply updated the contactus.tpl with:

{assign var='subject' value='Contact request from your classifieds website.'}

{include file="emails/html/mail_header.tpl"}
<h2>Website Contact</h2>
Hi Admin,<br />
The following message has been sent to you from a visitor on your web site at {$sitetitle}.<br>
<div class="hr"><hr /></div>
<strong>{$smarty.const.LANG_FULL_NAME}:</strong> {$name}<br />
<strong>{$smarty.const.LANG_USER_EMAIL}:</strong> {$email}<br />
<strong>IP:</strong> {$smarty.server.REMOTE_ADDR}<br />
<br />
<fieldset>
<legend>{$smarty.const.LANG_YOUR_MESSAGE}</legend>
{$comments}
</fieldset>
<div class="hr"><hr /></div>

{include file="emails/html/mail_footer.tpl"}
YourPalAl is offline  
Old 06-02-2008, 05:07 PM   #6
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Hi,

I just did a search and the only time {/textformat} is used is in the text emails.

Here is an original emails/text/friendmail.tpl
Code:
{assign var='subject' value='Your friend thought you would be interested in this.'}
{include file="emails/text/mail_header.tpl"}
{textformat wrap=40}
Hi {$friendname},
The following message was sent to you by {$name} who thought you would be interested in seeing this ad: 
{$url}
{$name} left the following comments:
{$comments}
{/textformat}
{include file="emails/text/mail_footer.tpl"}
Notice it has: {textformat wrap=40} then at the bottom {/textformat} to close it.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 06-02-2008, 05:32 PM   #7
Member
 
Join Date: Apr 2008
Posts: 40
Rep Power: 14
YourPalAl is on a distinguished road
Question html contactus.tpl and friendmail.tpl

I'm sorry...

Im talking about the >html< tpl contactus.tpl and friendmail.tpl.

If you go to my site http://www.YourPostings.com and click on contact
and fill in the info, that error I posted earlier will appear.
I did attempt to replace the original contactus.tpl and still received that same error..

Im lost~

-Al
YourPalAl is offline  
Old 06-02-2008, 05:39 PM   #8
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Replace the file emails/text/contactus.tpl with this:
Code:
{assign var='subject' value='Contact request from your classifieds website.'}
{include file="emails/text/mail_header.tpl"}
{textformat wrap=40}
{$smarty.const.LANG_FULL_NAME}: {$name}
{$smarty.const.LANG_USER_EMAIL}: {$email}
IP: {$smarty.server.REMOTE_ADDR}
{$smarty.const.LANG_YOUR_MESSAGE}:
{$comments}
{/textformat}
{include file="emails/text/mail_footer.tpl"}
Fatal error: Smarty error: [in emails/text/contactus.tpl line 9]: syntax error: mismatched tag {/textformat}
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 06-02-2008, 07:00 PM   #9
Member
 
Join Date: Apr 2008
Posts: 40
Rep Power: 14
YourPalAl is on a distinguished road
Thumbs up

By the bang by the boom~

Fixed~

Thank you~

Are changes sensitive to both the text and html.tpls through admin?

Last edited by YourPalAl; 06-02-2008 at 09:05 PM.
YourPalAl is offline  
Old 06-02-2008, 07:04 PM   #10
Member
 
Join Date: Apr 2008
Posts: 40
Rep Power: 14
YourPalAl is on a distinguished road
Question

Okay I mentioned this one in the forums before but did not see a solution..

When you click on email a friend...this is an example of the email that is sent.

The problem is under "Listed URL" it does not display a clickable link for the listing. The link listed is exactly what it says...viewlist/5.htm

How do we make it so it will display the actual listing link?



Message From A Friend
Hi Jen,
The following message was sent to you by Al, who thought you would be interested in seeing a specific posting from our web site.




Name: Al
Email: [email protected]
Message:
Is this your ad?

Listing URL: viewlisting/5.html






Best regards,
YourPostings.com Find Local Jobs, Personals, Housing, Wheels, Services and more.. Team
http://www.yourpostings.com

�2008 YourPostings.com Find Local Jobs, Personals, Housing, Wheels, Services and more..
YourPalAl is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Log In Problems Kazza Technical Support 17 06-03-2008 02:38 PM


All times are GMT -4. The time now is 10:21 PM.


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