Jump to content

Claim your .UK Domain Addon - Style changes not taking effect


Dan_HiHosting

Recommended Posts

Hi all,

 

Not had any problem adding the Claim your .UK Addon module, however we want to make some some simple style changes, and for some reason they're not displaying.

 

E.g. we've edited style.css in the module directory with the following:

 

#claimyouruk .launchinfo {

padding: 30px 0;

font-size: 16px;

text-align: left;

}

 

This makes the bottom lunch text left aligned as opposed to centred.

 

And have confirmed the updated css file has been correctly uploaded, but the old css file is still being displayed.

 

I've tried disabling and renabling the addon module but this hasn't helped.

 

Any ideas?

 

Thanks very much

Link to comment
Share on other sites

Also does anybody know how to test if the module is enabled?

 

I'd like to add it to the domain drop down below the Transfer Domains to Us item in header.tpl:

 

        {if $condlinks.domainreg || $condlinks.domaintrans}<ul class="nav">
           <li class="dropdown"><a id="Menu-Domains" class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.navdomains} <b class="caret"></b></a>
             <ul class="dropdown-menu">
               <li><a id="Menu-Domains-My_Domains" href="clientarea.php?action=domains">{$LANG.clientareanavdomains}</a></li>
               <li class="divider"></li>
               <li><a id="Menu-Domains-Renew_Domains" href="cart.php?gid=renewals">{$LANG.navrenewdomains}</a></li>
               {if $condlinks.domainreg}<li><a id="Menu-Domains-Register_a_New_Domain" href="cart.php?a=add&domain=register">{$LANG.navregisterdomain}</a></li>{/if}
               {if $condlinks.domaintrans}<li><a id="Menu-Domains-Transfer_Domains_to_Us" href="cart.php?a=add&domain=transfer">{$LANG.navtransferdomain}</a></li>{/if}
[b][i]****if claim uk module enabled, claim uk module link****[/i][/b]
               {if $enomnewtldsenabled}<li><a id="Menu-Domains-Preregister_New_TLDs" href="{$enomnewtldslink}">Preregister New TLDs</a></li>{/if}
               <li class="divider"></li>
               <li><a id="Menu-Domains-Whois_Lookup" href="domainchecker.php">{$LANG.navwhoislookup}</a></li>
             </ul>
           </li>
         </ul>{/if}

Link to comment
Share on other sites

the style.css file in your addons/claimyouruk/css/ is dated 23 September 2014 - are you sure you uploaded your modified css to the correct directory?

 

- - - Updated - - -

 

Also does anybody know how to test if the module is enabled?

 

add ?m=claimyouruk to your whmcs site URL.

Link to comment
Share on other sites

I've viewed the css file in the cPanel File Manager and it reflects the changes made today. It's just the page that seems to load the old file.

 

sorry, I meant test the module is enabled in the header.tpl file, along the lines of:

{if $enomnewtldsenabled}<li><a id="Menu-Domains-Preregister_New_TLDs" href="{$enomnewtldslink}">Preregister New TLDs</a></li>{/if}

 

We'd like to add an entry to the Domain drop down for the claim uk module... so were wondering about how to test if the module is enabled and add it as a menu item. The documentation doesn't mention an enabled global to test.

 

- - - Updated - - -

 

Problem solved. We had two copies, one in modules and one in modules > addons.

 

Thanks for the help. Any ideas regarding adding the module to the Domains drop down with a test if it's enabled?

Link to comment
Share on other sites

i'm glad you got it working. :idea:

 

I don't think you can test as there are no obvious smarty variables setup in the script - you could throw a {debug} into the header and see if it shows anything you can test for, but I think the page is only enabled when called directly, so I doubt you can check if the addon is active on the client side.

Link to comment
Share on other sites

Thanks, what about testing if the claim your uk domain page exists? - ?m=claimyouruk

If the page exists the module will be enabled - so it'd be okay to display the link...

the problem is that it's not a separate page - you're just passing a variable to index.php that triggers the .uk addon - so the page will always exist, and you can always pass the variable - so it's not really a good testing method...

 

one possible way, though I can't test this as I don't use the .uk addon, would be to query the tbladdonmodules database table - if you take a look in your table, hopefully there is an entry that shows the .uk addon as being active/on etc...

 

if so, they you can query the database to get the value on the entry... and then if it's "on", show the link in the menu, otherwise don't.

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