Home › Support › Support Tickets › Request facbook like before displaying a page
Tagged: javascript wordpress page
- This topic has 4 replies, 3 voices, and was last updated 10 years, 2 months ago by Kelvin Lee.
-
AuthorPosts
-
-
July 31, 2014 at 10:23 PM #10124Kelvin LeeParticipant
Dear Sir/Madam,
I have script to check whether a user has already liked a facebook, how I can apply this to a WordPress page? I want to request the user to like my facebook before I show up the WordPress page with a form? Can I do that using CJT? For example I have page using shortcode [form form-id xx] to show form.
Best regards,
Kelvin.
-
August 3, 2014 at 7:21 PM #10125Damian BakerParticipant
Hi Kelvin,
I’m sorry for the delay in responding.
Unfortunately third party script implementation is really out of scope of CJT Dev support.On another note, we are releasing an import/export feature for CJT Pro/Dev soon and that will allow users to share scripts, upload them to the http://www.cjt-scripts.com website and even discuss script implementation. Keep an eye out on this awesome feature.
Kind Regards,
Damian -
August 4, 2014 at 9:24 AM #10126Kelvin LeeParticipant
Dear Damian,
Not asking for third party script implementation, just want to know whether CJT can have conditional execute according to custom variable, just like I can apply the CTJ on specific page, post or URL, but not sure whether it can be applied on the return of the script such as boolean. I suggest developer can code a custom script and return a boolean, then the script can be loaded according to this return.
Best regards,
Kelvin.
-
August 5, 2014 at 12:16 AM #10127Ahmed HamedParticipant
Hello,
No. CJT cannot do that for you.
CJT Code-Block can be just assigned to a request (page, post, URL, etc…).
If I understand you correctly I believe the following steps might help you. I’m not sure but I believe the script you wrote for checking Facebook like is in Javascript?
1. Hide the form using CSS code.
2. Write Javascript code to call Facebook like checker script.
3.Show the form or point visitor to like your facebok Based on the return value.I might not completely understand you. But CJT Code Blocks is not conditionally executed.
Please don’t hesitate to ask.
Regards,
AHMeD -
October 1, 2014 at 5:44 AM #10666Kelvin LeeParticipant
Dear AHMeD,
Yes, your suggestion may be worked. Any idea to the javascript code to check?
Best regards,
Kelvin.
-
-
AuthorPosts
- You must be logged in to reply to this topic.