Popup or more precisely modal box should appears after a specified time

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:

  1. In the Wordpress dashboard 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.

  2. 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.

5 Likes

Hi @Paul_Wilkins,

Actually, what I meant was this →

<div class="footercopyright">
   <p>Powered by:<a href="www.thebrandname.com">the brand name</a></p>
</div>

there are hooks in Wordpress, and by writing a function we can put above HTMl in the footer.

But I want to convert this into a machine language so that this is actually not visible, and can’t be deleted.

That can’t be done.

1 Like

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.

No matter how you encode it, it always must be decoded to be used on the web page.

1 Like

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.

2 Likes

I hope you are not offended or pestered by the debate further. With all due respect to you I have a question:

How come if I am distributing a free theme, and protecting my code’s copyright is considered a grey hat?

That is not.

[quote=“codeispoetry, post:3, topic:284761, full:true”]

That is.

1 Like

Do you have anything in mind that can be a white hat technique, and will help in protecting the footer’s copyright?

What’s wrong with just displaying the information in the footer as you show in post #3

Nothing wrong, but the end result will be beaten.

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.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.