Mauwiks Posted October 22, 2018 Share Posted October 22, 2018 Hi everyone, I would like to ask your help for any code suggestion to add a powered text credit at the footer of my client's websites. I'd like to use the client's website ad section on MOFH to automate the process if possible. Quote Link to comment Share on other sites More sharing options...
Logan L Johnson Posted October 22, 2018 Share Posted October 22, 2018 Adverts>Client Site Adverts>resellerdomain.whatever <p><span style="font-family:helvetica; color: #333333">Powered by RESELLER NAME</span></p> Quote Link to comment Share on other sites More sharing options...
Mauwiks Posted October 22, 2018 Author Share Posted October 22, 2018 Thanks, @Logan L Johnson Quote Link to comment Share on other sites More sharing options...
Logan L Johnson Posted October 22, 2018 Share Posted October 22, 2018 Do note, that, this will modify every HTML and possibly PHP file on client accounts. This can potentially break some php-based applications. While I'm not sure whether or not it does this, IF this HTML snippet is added to CSS and Javascript files, it can cause issues with site functionality. Quote Link to comment Share on other sites More sharing options...
Logan L Johnson Posted October 22, 2018 Share Posted October 22, 2018 1 minute ago, Mauwiks said: Thanks, @Logan L Johnson Happy to help Quote Link to comment Share on other sites More sharing options...
Mauwiks Posted October 22, 2018 Author Share Posted October 22, 2018 I actually prefered to host WordPress based sites. Will this code work? Quote Link to comment Share on other sites More sharing options...
Logan L Johnson Posted October 22, 2018 Share Posted October 22, 2018 1 hour ago, Mauwiks said: I actually prefered to host WordPress based sites. Will this code work? I haven't tested it with wordpress. The HTML will work, but, it could cause issues with WP. Try it, and, if it doesn't play well with WP you can always remove it. IMO, unless you're blogging, static (HTML) sites are better for performance and security than WP. Quote Link to comment Share on other sites More sharing options...
Mauwiks Posted October 22, 2018 Author Share Posted October 22, 2018 I will when the downtime of the servers gets resolved. Some of my client sites were gone. I could not use my demo site as well apparently Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted October 23, 2018 Share Posted October 23, 2018 Hi @Mauwiks, What you're doing there is called "Forced-Ads" and most people hate it. I highly suggest that you tell the user before signup that there are forced ads as the aftermath can be distasterous. Quote Link to comment Share on other sites More sharing options...
Mauwiks Posted October 23, 2018 Author Share Posted October 23, 2018 Yeah, thanks! I was told by some in the community and figured to have it emphasized on my TOS. It is actually optional and I have a reason for it. Quote Link to comment Share on other sites More sharing options...
Logan L Johnson Posted October 24, 2018 Share Posted October 24, 2018 14 hours ago, PlanetCloud said: Hi @Mauwiks, What you're doing there is called "Forced-Ads" and most people hate it. I highly suggest that you tell the user before signup that there are forced ads as the aftermath can be distasterous. I did the same thing as @Mauwiks when I first created my MOFH account. Removed the "powered by" text within a week, as, it screwed up some sites. Quote Link to comment Share on other sites More sharing options...
Mauwiks Posted October 24, 2018 Author Share Posted October 24, 2018 What did you use to do it? The HTML code? Quote Link to comment Share on other sites More sharing options...
PlanetCloud Posted October 24, 2018 Share Posted October 24, 2018 (edited) 1 hour ago, Mauwiks said: What did you use to do it? The HTML code? Yes.... the bone for any websites is HTML so you MUST use HTML. If a HTML file gets a PHP script on it, it will be outputed as is without getting parsed and also as mentioned by @Logan L Johnson here : On 10/23/2018 at 2:20 AM, Logan L Johnson said: Do note, that, this will modify every HTML and possibly PHP file on client accounts. This can potentially break some php-based applications. While I'm not sure whether or not it does this, IF this HTML snippet is added to CSS and Javascript files, it can cause issues with site functionality. if the code was injected to let's say a PHP file and there are multiple PHP files included/required by an Autoloader/Loader, it will cause multiple output of your ad code and if it was added to PHP files that does not have a close tag (Which is possible), it will cause E_EXCEPTION/T_STRING error. I highly recommend if you wanted to place the credit, ask the website owner either thru email or setup a page that says "Help us grow by putting our credits in your Footer!" or something like that or you could manually log into their cPanel and change the code. EDIT Remember Wix? A free website builder that let's you built beautiful sites in minutes with their ADI. But the problem is that they put a forced ads and user's did try to remove them. The point is, user's (if forced) will try and remove your's to or they could easily switch host's. Edited October 24, 2018 by PlanetCloud Quote Link to comment Share on other sites More sharing options...
Mauwiks Posted October 24, 2018 Author Share Posted October 24, 2018 @PlanetCloud Yes, got the idea. I'm working not to force the credit instead. I also did what you said, to notify the new users by email and I will make a content/page for it too. I will not actually force users to show the credit forever. It will just for about some period of time. My idea was to input a script from my marketing tool which it's designed as is. I already tried it in WordPress and as well as in PHP based sites. It worked but I'm not sure in MOFH accounts when using the client adverts panel Quote Link to comment Share on other sites More sharing options...
Logan L Johnson Posted October 24, 2018 Share Posted October 24, 2018 11 hours ago, Mauwiks said: @PlanetCloud Yes, got the idea. I'm working not to force the credit instead. I also did what you said, to notify the new users by email and I will make a content/page for it too. I will not actually force users to show the credit forever. It will just for about some period of time. My idea was to input a script from my marketing tool which it's designed as is. I already tried it in WordPress and as well as in PHP based sites. It worked but I'm not sure in MOFH accounts when using the client adverts panel You can always send the clients individual emails, and, ask if they are ok with placing an attribution link on their website. Either by doing it themselves, or, you signing into their cPanel account. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.