Jump to content

Help about customize the affiliate page!


Harii

Recommended Posts

6 minutes ago, Harii said:

I want to edit some words and where is file location !

The words are under the language files located at:

/your-installation/lang/english.php

Make a copy of that file and put it under:

/your-installation/lang/overrides/english.php 

To avoid future updates from writing over your changes.

The template file is located under:

/your-installation/templates/your-theme/affiliates.tpl

Assuming "your-theme" is the theme you are using as frontend.

Have fun 😁

Edited by yggdrasil
Link to comment
Share on other sites

18 hours ago, yggdrasil said:

The words are under the language files located at:

/your-installation/lang/english.php

Make a copy of that file and put it under:

/your-installation/lang/overrides/english.php 

The proper way is actually _not_ to make a copy of the existing file. Just create a file with the same name and only change the strings you need to change 🙂

Link to comment
Share on other sites

30 minutes ago, DennisHermannsen said:

The proper way is actually _not_ to make a copy of the existing file. Just create a file with the same name and only change the strings you need to change 🙂

Sure, performance wise, but I found out that if you do a lot of translations, it's easier just to have the entire language file copied and be able to quickly search for the line and change over copying and pasting individual strings one by one from the original file to your override file.

Keeping the same structure keeps the number positions, which makes it easier to merge and compare the locale files with new strings as they come up with updates. This means the line numbers for that string will always stay the same vs the original file. And I just added my own customized strings to the end of the file. If you just change one or two words here and there, that probably makes sense. If you change most of the WHMCS text, I found that approach cleaner.

Edited by yggdrasil
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