×

info

Dear guests,
You are currently on the old forum we kept as a knowledge base. You will find the new community forum here
Welcome, Guest
Username: Password: Remember me
Keyword

TOPIC: Having issue with IF/ELSE tag value in jreviews plugin

Having issue with IF/ELSE tag value in jreviews plugin 3 years 7 months ago #106541

  • Anonymous user
  • jasperli's Avatar
  • Posts: 14
  • Karma: 0
Hi Guys,

I have some issues with the jreviews plugin.

1. i created a custom template file with the following code:
													{if:var.{jr_promotiontype}~directly} 
														
													Click your favorite webstore:
													<br/>
													<table width="90%">
														<tr>
														<td width="100%">
														
														{if:var.{jr_amazonasin}!= }
															<div class="directly"><a href="http://www.amazon.com/dp/{jr_amazonasin}/?tag=auyt0q-80"><img class="webstore" src="http://example.com/images/template/socialicons/Amazon.png" height="50" width="50"></a></div>
														{/if}

														{if:var.{jr_barnesnoble}!= }
															<div class="directly"><a href="{jr_barnesnoble}"><img class="webstore" src="http://example.com/images/template/socialicons/BarnesNoble.png" height="50" width="50"></a></div>
														{/if}

														
														</td>
														</tr>
													</table>
													
													{/if}

What i try to archieve is that there is only an output when the field value is not zero.

The way used with {if:var.{jr_amazonasin}!= } text here {/if} works where the jreviews field is a TEXT field.

The .{jr_barnesnoble} field is a jreviews WEBSITE field and within the tag output of the email the value is present:
{ jr_ratethisbookforreaders } => Rated R (not suitable for those 17 and under)
{ jr_othercontributors } => 
{ jr_buyitnow } => http://www.amazon.com/booktitler-ebook/dp/B06HJO5YTC
{ jr_barnesnoble } => http://www.website0.com
{ jr_audible } => http://www.website1.com
{ jr_smashwords } => http://www.website3.com
{ jr_itunes } => 
{ jr_kobo } => http://www.website4.com
{ jr_link1 } => 
{ jr_link2 } =>

So what i expect is that the code {if:var.{jr_barnesnoble}!= } checks if the value IS NOT NULL

Instead of that, when sending out a test email the panel displays the error:
User variable not set : var.http://www.website0.com in var.http://www.website0.com!=

Any idea what i am doing wrong here ? For me it looks like i cannot check jreviews WEBSITE fields for empty strings

Jasper
Last Edit: 3 years 7 months ago by Anonymous user. Reason: no answer yet :-)
Please log in to post a reply

Having issue with IF/ELSE tag value in jreviews plugin 3 years 7 months ago #106620

  • Dax
  • Dax's Avatar
  • Posts: 6423
  • Karma: 227
Hello Jasper,

Could you download and install again AcyMailing? It seems that you don't have the latest version of the "managetext" plugin.
The syntax you use is correct and should work, the error message you can see is displayed when the "var" is not recognized, and I know that the previous version of AcyMailing didn't handle the values containing dots.

Jeremy
-AcyMailing developer-
This email address is being protected from spambots. You need JavaScript enabled to view it.

I helped you? The best way to thank me is to post a review on the JED :laugh:

Do not hesitate to illustrate your messages with screenshots, I love images :)
Always consult our tutorials before asking a question on our forum, the answer is surely there ;)

Hey look at our Video tutorials, It's really helpful to understand how Acy works!
Please log in to post a reply

Having issue with IF/ELSE tag value in jreviews plugin 3 years 7 months ago #106745

  • Anonymous user
  • jasperli's Avatar
  • Posts: 14
  • Karma: 0
Hi guys,

Yes, that worked flawless !! :woohoo:
Great thanks!

Jasper
Please log in to post a reply
Time to create page: 0.218 seconds
Powered by Kunena Forum