Skip Navigation

[Resuelto] code not valid ?

This support ticket is created hace 6 años, 10 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 24 respuestas, tiene 2 mensajes.

Última actualización por Akhil hace 6 años, 10 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#604923

hi Luo ,this code below was working fine , after the beta update its not working as before.

	
[wpv-conditional if="( $(wpcf-floor-plan-image) ne '' )"]
[wpv-for-each field="wpcf-floor-plan-image"]
<a href='[types field="floor-plan-image" raw="true" data-rel="lightbox-gallery-182"][/types]'> 
[types field='floor-plan-image' alt='%%ALT%%' title='%%TITLE%%' width='200' height='200' align='left' resize='crop' separator=' '][/types]</a>
[/wpv-for-each]
[/wpv-conditional]

i notice the field raw and url value has been updated to :

	
[types field="floor-plan-image" output="raw" separator=", "][/types]
[types field="floor-plan-image" size="full" separator=", " url="true"][/types]

pls let me have the correct code if possible. thanks.

#604954

deleted.

#604983

Dear C6410,

Please try below codes and test again:

[wpv-conditional if="( $(wpcf-floor-plan-image) ne '' )"]
[wpv-for-each field="wpcf-floor-plan-image"]
<a href='[types field="floor-plan-image" url="true" size="full" data-rel="lightbox-gallery-182"][/types]'>
[types field='floor-plan-image' alt='%%ALT%%' title='%%TITLE%%' width='200' height='200' align='left' resize='crop' separator=' '][/types]
</a>
[/wpv-for-each]
[/wpv-conditional]

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#image
url:
'false'(default) | 'true'
true=output the url of the image instead of the html img tag.

Works with the size attribute to output the url of the re-sized image

#604999

Hi . LUo this is the error message i receive:

Image cannot be loaded. Make sure the path is correct and image exist.
i also notice from the output the href is referring to 2 images not one.

i repeat the above code on #1 was working till i update to the beta toolset version.

thanks.

#605298

Above codes work in my localhost with a fresh wordpress installation + latest beta toolset version, in case there is any other compatibility problem, please check these in your website:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) if the problem persists, please provide a copy of your website, also point out the problem page URL and layout URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/
You can put it into your own google drive disk, and share the link in the "private detail box", I need to duplicate same problem and debug it in my localhost, thanks

#605299

Hi can you look into my staging site the issue. if its possible to revert to non beta if thats what causing this issue ?

link : toolset layout id 75 . the login credential you have has been activated. thanks.

#605306

I did not save your website credentials, please provide the login details of your website in below private message box, and point out the problem page URL, and where I can edit above codes, thanks

#605351

Please point out the problem page URL and the login URL, thanks

#605353

Login url add /hrk_login

Page is layout id 75 . Section : floor plan. Thanks

#605619

hi.. any update ?

#605641

I am asking for the problem URL:
https://toolset.com/forums/topic/code-not-valid-2/#post-605351
But you provide a layout id 75, so It takes time to find the URL in your old tickets,

I assume we are talking about this layout:
enlace oculto
cell "floor plan"?

I test it in the front-end:
enlace oculto

The codes does not work in your website, and you are using the latest stable version of Types + Views plugin, so it is abnormal, in case there is any compatibility problem, please try this:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, I need to test and debug it in my localhost, thanks

#605653

any update ?

#605665

I just downloaded your database dump file, and import it into my localhost, there are lots of table in it, I am not sure which one is the problem tables, please edit your wordpress file wp_config.php, find this line:

$table_prefix = '...';

Copy it here.

#605666

$table_prefix = 'st2_';

#605670

Thanks, I am trying to duplicate same problem and debug it in my localhost, will feedback if there is anything found.