Additional anti-spam feature in Gbook module
Previous article Next articleThe Gbook guestbook module for CMS Made Simple™ has a built-in anti-spam feature. It uses the b8 statistical (Bayesian) spam filter. At one of my websites where I use the GBook module I noticed spammers are getting more clever trying to by-pass the filter and it leaves me more work checking ham or spam...
I found a really simple method to hide and show the form. When there is no form, a bot can't fill it in...
How to use
Open the guestbook content page in the Admins page-editor and set WYSIWYG off in the Options tab.
Replace the GBook tags with the following code:
{if $showform == '1'}
{Gbook|replace:"{root_url}/guestbook":"{root_url}/guestbook?showform=1" action='form'}
{else}
<p><a href="{$page_alias}?showform=1" rel="nofollow">Show the form</a></p>
{/if}
{Gbook}
Note: Change the URL's in the code above to the one of your guest book page!
Basically it takes these steps:
- Read the "showform" parameter from page URL
- Only show the form when having the showform parameter in the page URL and the value is 1
- If not show the message button, when clicked it reloads the page *with* the showform parameter
- Show the current guest book entries
Afterwards you can always change the parameter name and/or the value. Or even set the date ( {$smarty.now|date_format:"%e"} is now 30 ) as value, so it changes every day... Let your imagination run wild :)
Working example
Comment Form
12 Comments
Hi ,
Want to write sales messages that sell anything to anyone?
Learn the 7 psychological triggers that Dan Kennedy uses in his copywriting.
Dan Kennedy is a direct mail legend who made millions with words.
Read his secrets in https://www.neraslibrary.com/7-psychological-triggers-of-copywriting-how-to-use-them-to-sell-anything
It’s free, fast, and easy.
But hurry, it’s only for serious learners.
Don’t miss this chance to become a copywriting master.
Best,
Neras Library
P.S. Subscribe to our newsletter for more copywriting tips.
Dear,
I hope this message finds you well. As a fan of your website I wanted to reach out to you with an exciting opportunity to elevate your content and save time using WriteSonic,
a powerful AI-powered copywriting tool.
WriteSonic can help you quickly generate high-quality content for your website, social media channels, email newsletters, and more, without sacrificing creativity or quality.
With our easy-to-use platform, you can craft compelling copy in minutes, freeing up time to focus on other aspects of your business.
As a valued affiliate of WriteSonic, I would like to introduce you to our monthly or annual subscriptions.
By purchasing a WriteSonic subscription through our affiliate link, you can enjoy all the benefits of our copywriting tool.
Our subscription plans include unlimited use of WriteSonic's features, access to our growing library of templates, and the ability to export your copy in multiple formats.
With our high satisfaction rate and proven success stories, WriteSonic is a reliable and effective tool for businesses of all sizes.
If you are interested in learning more about WriteSonic and how it can help you elevate your content, please visit https://writesonic.com?via=neras22 to explore our subscription plans.
If you have any questions or need assistance, please do not hesitate to reach out to me.
Thank you for considering this opportunity, and I look forward to seeing how WriteSonic can help you elevate your content.
Best regards.
Struggling to create engaging and persuasive content that connects with your audience? Don't waste another minute! Try WriteSonic AI now and experience the power of our state-of-the-art AI algorithm that generates high-quality content in just minutes.
Stay ahead of the competition and drive results with WriteSonic AI. Sign up today using the link below and transform your content marketing game.
Don't miss out on this opportunity! Sign up now:
https://writesonic.com?via=neras22
Hello,
Are you tired of lackluster content that fails to engage your audience and boost conversions? If so, we have the perfect solution for you Content at Scale. Our team of experts offers fully customizable content creation and marketing strategies that are tailored to your business's unique needs and goals.
Our data-driven approach ensures maximum ROI, so you can rest assured that your investment in our services will pay off. We are dedicated to delivering top-quality content that captivates your audience and drives sales. Plus, with our exclusive 20% discount, you can get started today at an unbeatable price.
At Content at Scale, we understand that creating compelling content takes time and effort. That's why we offer a range of services to help you streamline your content marketing efforts, including blog post writing, social media management, email marketing campaigns, and more. Let us take care of the content so you can focus on growing your business.
Don't settle for mediocre content marketing. Elevate your game with Content at Scale and experience the difference for yourself. Click the link below to sign up and claim your exclusive 20% discount:
https://contentatscale.ai?fpr=scale54
Thank you for considering Content at Scale as your content marketing partner. We look forward to helping you achieve your goals and exceed your expectations.
Best regards,
Hi
Are you struggling with dedicating too much time to content creation?
Content plays a crucial role in any successful business plan as it helps to attract and retain your target audience, establish your brand, and ultimately drive sales.
Nevertheless, creating quality content consistently can prove to be a daunting task.
That's where our Content at Scale solution comes in handy. With Content At Scale tool, you can boost your efficiency and produce top-notch content within seconds.
Try Content At Scale out for free by signing up for a trial, and see the positive impact it can have on your content marketing approach.
Click the link below to get started!
https://contentatscale.ai?fpr=scale54
Best Regards
Dear,
Are you tired of spending countless hours trying to create quality content for your website or blog? Do you find it difficult to keep up with the latest trends and techniques in your industry?
If so, we have the perfect solution for you!
Our AI writing tool takes what is already working based on top-ranking content for your target keywords and creates fresh, compelling content that is sure to engage your audience.
You no longer need to worry about hiring a writer with industry experience, passing down knowledge to new writers, or wasting time on AI content tools that lack quality and can be easily detected as AI-generated content.
With our tool, you can simply take the draft produced by our AI, edit as you see fit, and publish! We've created a simple, easy-to-use platform that allows you to create content in a matter of minutes. And the best part?
Our AI writing tool is available at an affordable price, so you don't have to break the bank to improve your content.
Don't wait any longer to improve your content creation process. Click on the link below to see samples of our AI-generated content and learn more about our writing tool. Act now and take advantage of our special offer!
http://bit.ly/418GTrt
Thank you for your time and consideration.
Best regards,
Hi,
Struggling to create high-quality ad creatives that drive results?
Adcreative.ai can help. Our AI-powered tool generates effective ad creatives in seconds, saving time and resources.
It's a cost-effective, user-friendly solution that offers a variety of ad formats and styles.
Sign up for a free trial or schedule a demo with one of Adcreative.ai experts to see the results for yourself.
https://free-trial.adcreative.ai/ikijdmthvwwq
Best regards,
Transform your marketing approach and skyrocket your success with jasper, the powerful AI copywriting tool. Boost your content output by 10X and write compelling copy in 25 languages.
Don’t miss this opportunity to revolutionize your marketing strategy. Try Jasper and experience the power of high-converting marketing copy.
Hurry, this offer won’t last long! Click the link below to get started:
http://bit.ly/3Hwo48H
Best regards,
Hello
You Need Help To Grow In Google And Drive More Traffic And Get You More Customers For cmscanbesimple.org
WE OFFERING QUALITY SEO SERVICES:
► Rank Higher Your Website In Google
► Rank Higher Video in Youtube & Google
► Rank Higher GMB In Google Maps
► High-Quality Organic Website Traffic
► We Create High-Quality Videos
► Content Text & Video for Your Website
We Want To Prove To You That Our Services Work With Risk-Free
WE OFFER FREE TEST=> https://zeep.ly/c4Fgr?=75954
Thanks, SEObyAxy
Please do not reply directly to this email!
You can contact us from the contact page of the website!
IF YOU NO LONGER WISH TO HEAR FROM US,
PLEASE REPLY TO THIS EMAIL WITH:
STOP EMAIL ME
Hello
Are you new to SEO and want to rank #1 on google this upcoming year?
Here are 3 SEO strategies that will boost your rankings!
#1: Focus on content
#2: Optimize your title tag and your meta description
#3: Use Google Search Console
Subscribe here to learn more of my
Secret SEO Tips & Trics https://zeep.ly/WkJgE?=025
Thanks,
Teresita Pattison
Please do not reply directly to this email!
Hello
YOU NEED QUALITY VISITORS FOR YOUR: cmscanbesimple.org ?
We Provide Website Traffic 100% safe for your site, from Search Engines or Social Media Sites from any country you want.
With this traffic, you can boost ranking in SERP, SEO, profit from CPM
CLAIM YOUR 24 HOURS FREE TEST HERE=> http://mariosyei18529.bloggerbags.com/8099353/get-quality-visitors-for-your-site
Thanks,
Nigel Rieger
Great guide, used it for a CGBetterForms form. What is the:
replace:"{root_url}/guestbook":"{root_url}/guestbook?showform=1"
supposed to do though?