I am building a free theme in Wordpress that is about to be completed. I will distribute the theme free, but I want one or two features:
In the Wordpressdashboard if my theme is installed than → a popup should appear one time in every 24 hours. Suppose if the login difference between the two logins is 23 hours than the Popup won’t appear and if the login difference between the two subsequent logins is more than 24 hours than the popup should appear. when I say Popup than that is a modal box. because with popups I think there is an issue that they do not open in all the browsers if the popups are blocked.
I want to write a function which will inject this: Powered by<a href="www.google.com">my companies name</a>
For the second one, I want the code should be hidden in such a way that it can’t be deleted. Is this even possible, but in the browser, it should be rendered as pure HTML code.
I believe that the first one is achievable through some cache or cookie system.
I am new here so I do not know the exact technical term to search such things on the Internet.
Forcing popups on people every day is a grey-hat technique that I will not be a part of, and must warn others about too.
Other techniques such as placing your advert somewhere else such as in the footer is shown somewhere else are much more effective, because then people won’t be uninstalling your theme out of annoyance.
Anything that you give to the web browser no matter how well you think that it is protected, must always be unprotected for the web browser to display it, or for the script to have an effect on the page. Attempts to hide and disguise are a futile waste of time. You’re far better off not making public what you want to keep private.
When I was in college my college mates used to talk about some php encoders. I do not know if those things are still relevant today without much repercussion.
Yeah, I understand your point, but for a layman, in most of the cases, it won’t be an easy exercise.
Nothing is air-tight, but we should not make it easily breakable as much as we can.
It’s like if defeat is inevitable then die in a combat.
[quote=“codeispoetry, post:7, topic:284761, full:true”] Yeah, I understand your point, but for a layman, in most of the cases, it won’t be an easy exercise.[/quote]
I will not help you to perform grey-hat tactics on the people using your page.
I was anticipating to distribute a couple of free themes, which will have features equivalent to a Premium theme, and with footer, copyright drive some traffic to my own website that can be converted into a buyer +
If there are many installations then too many people will see “Powered by my brand name”: this will create an impression, and people will have my brand names in their mind. In short. marketing the brand name.
If the footer copyright is easily deletable, the purpose will eventually fail.
This then might be a good time then to get advice from the business forum
Some techniques are to use terms and conditions, user accounts, and apply suitable punishment (including lawyers) for people that are found breaking the terms and conditions. The people in the business forum will know more about that side of things.