Test templates without breaking the frontend
Previous article Next articleYou need to do some tests at your website, but you don't want to break the frontend for the visitors.
A simple solution using Smarty.
How to use
Your current IP address is: 18.119.137.175
This way only you will see the template vars:
{get_template_vars}
{/if}
<!-- The template content -->
Another example, testing a module like CGFeedback without letting it show to the public.
{if $smarty.server.REMOTE_ADDR == '18.119.137.175'}
{CGFeedback key1=$foo key2=$bar}
{/if}
This content is only visible at the frontend when you are logged in into the Admin, it is hidden for regular visitors.
{if $uid > 0}
{get_template_vars}
{/if}
<-- The template content -->
Comment Form
ReviewManager
ReviewManager
2 Comments
Hey there,
What if instead of wasting your time on ChatGPT...
You could launch your Own app like ChatGPT and charge people for it?
Here’s your chance to do the same:
Click here to create your own version of ChatGPT and begin charging people for access.
===>> https://bit.ly/chtbees
You see, people are frustrated when ChatGPT faces outages..
And this has opened up a massive opportunity for internet marketers..
There’s a new app called Chat Bees, and it lets you create a ChatGPT like app, but with ZERO outages.
People are willing to pay handsomely for zero outages.
So, you can either create your Chat GPT-like app and se1l it to other businesses and make m0ney from it…
OR, you can start your content creation agency.
It Has All The Same Powerful Features Of ChatGPT, And Even More:
✅ Write engaging, high quality content for blogs, scripts, emails, newsletters, ebooks literally anything
✅ 100% unique content with no plagiarism
✅ Generate the best AI designs that put 99% of graphic designers to shame, in just seconds
✅ It can proofread and edit your contents
✅ It can fix grammar and other errors
✅ Translate your writing to multiple languages and pr0fit
✅ It can provide a transcription of your audio and video files in seconds
✅ Boost your team’s performance by tracking their progress and assigning tasks
✅ Supports different Open AI models.
And much more…
And you can offer this service to people, and easily rake in 5-10k per month..
Best Regards,
Souryal T.
93, S.N Road.
WB 700055
INDIA
=====
Click here to unsubscribe
https://bit.ly/stop69
I do a similar thing but with get variables. Eg
{if $smarty.server.get.test eq '1'}
{get_template_vars}
{/if}
And then add ?test=1 to the end of the url.