Jump to content

eNom New TLD's index.php/slider Workaround


Recommended Posts

Hello gang,

this is for those who are/may be interested in the following work around for the eNom New TLD's Watchlist displaying on the index page and possible causing errors & slow loading times with index sliders, loaders, intro presentations.

 

1.) Create a new template theme by copying your current one.

 

2.) Delete everything inside the new theme folder except only the header.tpl and if needed the footer.tpl files.

 

3.) Edit the header.tpl, and the footer.tpl file if needed, so that the links to .css, .js, and image files all link directly to the original theme directory. (i.e. if your theme was called mytheme and the copied theme was called mytheme2 then the link path in the new header file would be "templates/mytheme/css/style.css".

Also change all header & footer nav links to change back to the original theme when eaving this page by appending the following: ?systpl=mytheme

NOTE: If the link is a condition/action do not use "?" instead use "&" as in: "cart.php?gid=renewals&systpl=mytheme"

 

a.) edit this page do display anything you would want to on the watchlist page.

 

 

4.) Within your main theme directory edit the following files with these changes:

 

tempates/mytheme/header.tpl (& footer.tpl if you need to for your theme)

Find:

{if $enomnewtldsenabled}<li><a href="index.php?m=enomnewtlds">Preregister New TLDs</a></li>{/if}

Change to:

{if $enomnewtldsenabled}<li><a href="index.php?m=enomnewtlds[b]&systpl=mytheme2[/b]">Preregister New TLDs</a></li>{/if}

 

modules/addons/enomnewtlds/enomnewtlds.tpl

Find:

<script src="https://{$NEWTLDS_URLHOST}/api/embed?token={$NEWTLDS_LINK}" type="text/javascript"></script>

Change to:

<script src="https://{$NEWTLDS_URLHOST}/api/embed?token={$NEWTLDS_LINK}[b]&systpl=mytheme2[/b]" type="text/javascript"></script>

 

5.) Log into your WHMCS admin area and go to the enom addon page. Change the default url to append the new address: http://myhost.com/index.php?m=enomnewtlds&systpl=mytheme2

 

6.) Check and verify the navigation in and out of the newtlds page is smooth and working properly and you should be all done.

 

Reason & Works:

When you use the ?systpl=**** string it uses cookies to remember that template if you navigate away from that page. So utilizing the above instructions you can "jump" in and out of a specified theme for the new tlds without conflicts with your index page graphics or functionality.

 

 

EDIT: Unfortunately I have made one error in this workaround, you can not remove/change the big blue link in the client area home page without having a decoded or custom "modules/addons/enomnewtlds/hooks.php file. If you do have a decoded/custom hooks.php file scroll to the bottom of it and append the index.php link with the correct data.

 

So there are two choices for the rest of us:

If you DO NOT have any addons that display output in the clientareahome.tpl file you can remove the following code: WARNING: this will stop manual output display of addons for the clientarea.php page!

 

Find:

{foreach from=$addons_html item=addon_html}
<div style="margin:15px 0;">{$addon_html}</div>
{/foreach}

 

Replace:

<div style="margin:15px 0;"><div style="background:#0064CD;background:-moz-linear-gradient(top, #0064CD 0%, #207ce5 100%);background:-webkit-linear-gradient(top, #0064CD 0%,#207ce5 100%);background:-ms-linear-gradient(top, #0064CD 0%,#207ce5 100%);background:linear-gradient(to bottom, #0064CD 0%,#207ce5 100%);border:1px solid #0972E2;color:#FFF;font-family:Trebuchet MS, Trebuchet MS, sans-serif;font-size:18px;text-align:center;margin:24px 0;padding:14px;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 5px 5px -3px rgba(0,0,0,0.3);-moz-box-shadow:0 5px 5px -3px rgba(0,0,0,0.3);box-shadow:0 5px 5px -3px rgba(0,0,0,0.3);zoom:1;">
 The next generation of domains is coming! Take advantage of New TLD opportunities. <a href="index.php?m=enomnewtlds&systpl=mytheme2" style="color:#FFD20A">Learn More »</a></div></div>

 

*Always replacing "mytheme2" with your own*

Edited by REVOLUTIONS inc.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated