1 (edited by domkalan 2015-07-08 13:29:22)

Topic: [Moddiction] CPanel Proxy Fix

So after some research I have looked into how I can run YouHosting with a proxy server such as CloudFlare. This is a simple little JQuery snippet that you can add to your CPanel theme and it will replace all main-hosting.com text with your own domain. If you find any errors let feel free to fix them. This is a very hacky method and there is not much I can do to make it better. I've kinda abandoned this so dont expect much updates from me on this anymore.

<script>
var htmlString = $('body').html().toString();
var index = htmlString.indexOf("main-hosting.com");
if (index != -1)$("body").html($("body").html().replace(/main-hosting.com/g,'YourDomain.com'));
</script>

Be sure to replace YouDomain.com with your domain. Example: piehost.com You have to add this code bellow to all your CPanel layouts. You must add it at the end of the layout right above </body>. Make sure you have JQuery enabled!

We have moved the community http://hosters.cc. I'll still pop in on here to see how things are going.

Re: [Moddiction] CPanel Proxy Fix

nice find , i'll try to to play with when i get some time
with the update comming ( i hope ) we'll have more & more work to for the user interface if they make big changes in the layouts

Re: [Moddiction] CPanel Proxy Fix

Raouf wrote:

nice find , i'll try to to play with when i get some time
with the update comming ( i hope ) we'll have more & more work to for the user interface if they make big changes in the layouts

Yes I do hope YouHosting brings some new layouts options. I have had to add so many JavaScript hacks to get the cpanel to be considered modern.

We have moved the community http://hosters.cc. I'll still pop in on here to see how things are going.

Re: [Moddiction] CPanel Proxy Fix

This is a case because we all work hard to fix them and we don't how it will be all layouts after YH upgrade (if ever comes)

Raouf wrote:

nice find , i'll try to to play with when i get some time
with the update comming ( i hope ) we'll have more & more work to for the user interface if they make big changes in the layouts

FreeResellers.net
NO Setup Fee - Or Any Deposit - Or Monthly Cost
New Forum!

Re: [Moddiction] CPanel Proxy Fix

Well when YouHosting gets this update out and if the version of jQuery they are using gets updated I want to work on updating AdminLTE first so it can be fully functionable.

We have moved the community http://hosters.cc. I'll still pop in on here to see how things are going.

Re: [Moddiction] CPanel Proxy Fix

I'm glad to have a simple script like this,Thank you.I will be hosting it in my static CDN service for more convenient use.

IceFreeHost Go!

Re: [Moddiction] CPanel Proxy Fix

http://i3.tietuku.com/427aa18a52e1e3ab.png ... i have nothing to say..It seems to come out some things.

IceFreeHost Go!

Re: [Moddiction] CPanel Proxy Fix

ice_in wrote:

http://i3.tietuku.com/427aa18a52e1e3ab.png ... i have nothing to say..It seems to come out some things.

That is supposed to be there. It stands for the JavaScript global method if I remember correctly.

We have moved the community http://hosters.cc. I'll still pop in on here to see how things are going.