0 Members and 1 Guest are viewing this topic.

*

Tua

  • *
  • 17
I can not load an english language
« on: January 03, 2017, 07:11:58 AM »
To all a happy new year 2017.
I have changed some in lang_main.php  (English.}
And uploaded via FTP, afterwards in the admin area english language load but it comes only a white screen. See Screenshot.

Then I deleted the english language completely to reload this. But also no success, at input: http://www.kttpattaya.com/admin/load_language.php?langname=english&loadlang=english

But even a white screen. I can not load the english language, does anyone have an idea?
Thanks for your help

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: I can not load an english language
« Reply #1 on: January 03, 2017, 07:38:12 AM »
Hi Tua,

The mistake you made was deleting the English language completely.

All you had to to was to load the changed English language and it would have made the needed changes.

Try the admin/load_language.php?langname=english&loadlang=english in the address bar to load again, it should fix it

Now there is no language in the database, nothing will show in the template, hopefully you did a backup before deleting the English language, then you can just do a database restore.

Getting a white page means there is a error in your lang_main.php you edited, you need to find the error, it might just be a '; or a ' missing.
« Last Edit: January 03, 2017, 07:45:01 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Tua

  • *
  • 17
Re: I can not load an english language
« Reply #2 on: January 12, 2017, 07:03:01 AM »
 Thanks I found the error in the lang_main.php.
But another question: If I use the text, e.g. In the page /services.html then switch </ p> / r / n / <p> so this n and r is then seen in the frontend. I need to delete this entry into the database.Even if only one word is exchanged, I have to look through the complete page in the database. See Screenshot

Thanks in advance for your help
Tua



Hi Tua,

The mistake you made was deleting the English language completely.

All you had to to was to load the changed English language and it would have made the needed changes.

Try the admin/load_language.php?langname=english&loadlang=english in the address bar to load again, it should fix it

Now there is no language in the database, nothing will show in the template, hopefully you did a backup before deleting the English language, then you can just do a database restore.

Getting a white page means there is a error in your lang_main.php you edited, you need to find the error, it might just be a '; or a ' missing.

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: I can not load an english language
« Reply #3 on: January 12, 2017, 07:38:24 AM »
Hi Tua,

Happy to hear you found your typo :)

For the /r / n / issue I posted a fix here but found it causes issues somewhere else so please give me some
time to get this sorted.

The tiny_mce really needs to be updated also, might be some of the problem.
« Last Edit: January 12, 2017, 08:45:50 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Tua

  • *
  • 17
Re: I can not load an english language
« Reply #4 on: January 13, 2017, 02:41:05 AM »

Thanks for your answer. No problem, take your time. Other question I would like to delete the affiliate page and the link in footer. What should I do? When I create a new page, e.g. Prices then the page link in footer is not visible.
Admin: manage pages Title: Prices Key: prices
Thank you for your quick help
Tua


Hi Tua,

Happy to hear you found your typo :)

For the /r / n / issue I posted a fix here but found it causes issues somewhere else so please give me some
time to get this sorted.

The tiny_mce really needs to be updated also, might be some of the problem.

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: I can not load an english language
« Reply #5 on: January 13, 2017, 02:57:21 AM »
Hi Tua,

Yeah the new pages doesn't create new links sorry to say, you need to manually add them in the footer.tpl

You can remove the affiliate page link in there also.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Tua

  • *
  • 17
Re: I can not load an english language
« Reply #6 on: January 13, 2017, 12:18:56 PM »
Hello Pharg, Thank you for your quick response.
So, my last question: it is not to see which user is online. Can I adjust this somewhere?
Normal was below the profile picture, e.g. online.

Regards
Tua


Hi Tua,

Yeah the new pages doesn't create new links sorry to say, you need to manually add them in the footer.tpl

You can remove the affiliate page link in there also.

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: I can not load an english language
« Reply #7 on: January 13, 2017, 08:41:25 PM »
Hi Tua,

I think this is what you want, wasn't sure but here it is.

In the smallprofile.tpl go to line 32:
Change this:
Code: [Select]
{*<div class="line_top_bottom_pad"  align="center">
{checkuser userid=$item.id checkfor='online'}
</div>*}

To this:
Code: [Select]
<div class="line_top_bottom_pad"  align="center">
{checkuser userid=$item.id checkfor='online'}
</div>

Or just remove the brackets that's hiding the code the two {*  *} then save.

Here is the quick fix for the \r \n issue also:
In the init.php go to line 68:
Remove this:
Code: [Select]
checkRequestData();

Then go to line 719:
Remove this:
Code: [Select]
function checkRequestData() {
    $conn = mysqli_connect(DB_HOST, DB_USER, DB_PASS);
    foreach ($_GET as $k => $val) {
        if (! is_array($val)) {
            $val = mysqli_real_escape_string($conn, $val);
        }
        $_GET[$k] = $val;
    }
    foreach ($_POST as $k => $val) {
        if (! is_array($val)) {
            $val = mysqli_real_escape_string($conn, $val);
        }
        $_POST[$k] = $val;
   }

}

Save the file.

Now go to your admin and modify the pages again and the \r \n will be gone.
Check the pages on the frontside to see ;)

Looking to change this at some stage but this should be ok for now.

If you have another question, please make a new topic, most of the questions in here are nothing to do with the lang file not loading, makes it harder for others to find what they might be looking for.
« Last Edit: January 13, 2017, 08:50:06 PM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Tua

  • *
  • 17
Re: I can not load an english language
« Reply #8 on: January 14, 2017, 04:27:12 AM »

Hello Phil,
Thanks for your help, I've done all the steps. I wish you a beautiful weekend.
Best regards
Tua

Hi Tua,

I think this is what you want, wasn't sure but here it is.

In the smallprofile.tpl go to line 32:
Change this:
Code: [Select]
{*<div class="line_top_bottom_pad"  align="center">
{checkuser userid=$item.id checkfor='online'}
</div>*}

To this:
Code: [Select]
<div class="line_top_bottom_pad"  align="center">
{checkuser userid=$item.id checkfor='online'}
</div>

Or just remove the brackets that's hiding the code the two {*  *} then save.

Here is the quick fix for the \r \n issue also:
In the init.php go to line 68:
Remove this:
Code: [Select]
checkRequestData();

Then go to line 719:
Remove this:
Code: [Select]
function checkRequestData() {
    $conn = mysqli_connect(DB_HOST, DB_USER, DB_PASS);
    foreach ($_GET as $k => $val) {
        if (! is_array($val)) {
            $val = mysqli_real_escape_string($conn, $val);
        }
        $_GET[$k] = $val;
    }
    foreach ($_POST as $k => $val) {
        if (! is_array($val)) {
            $val = mysqli_real_escape_string($conn, $val);
        }
        $_POST[$k] = $val;
   }

}

Save the file.

Now go to your admin and modify the pages again and the \r \n will be gone.
Check the pages on the frontside to see ;)

Looking to change this at some stage but this should be ok for now.

If you have another question, please make a new topic, most of the questions in here are nothing to do with the lang file not loading, makes it harder for others to find what they might be looking for.

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: I can not load an english language
« Reply #9 on: January 15, 2017, 12:34:48 AM »
Hi Tua,

Thanks you to.

I forgot to tell you when adding a new page and your using htaccess SEO you will also need to add the page in the htaccess so it loads correctly and does cause a error.

Exmaple: RewriteRule ^faq.html$ index.php?page=faq   

Change faq to your page name so like this:

RewriteRule ^newpage.html$ index.php?page=newpage

Some will have it like this:

RewriteRule ^newpage.html$ index.php?page=newpage=$1
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Tua

  • *
  • 17
Re: I can not load an english language
« Reply #10 on: January 26, 2017, 04:11:03 AM »

Hello Phil, I have tried to create a new page in osdate. But in footer the page is not to be seen. I do not know where the error is. See Screenshot For a test is the page name: links. Maybe you can tell me where the mistake.
Page created in the admin area name: links. Then follow the link in the footer.tpl
Then entered the htacess the link. Also with this version:  RewriteRule ^links.html$ index.php?page=links=$1
Beste regards

Tua


Hello Phil,
Thanks for your help, I've done all the steps. I wish you a beautiful weekend.
Best regards
Tua

Hi Tua,

I think this is what you want, wasn't sure but here it is.

In the smallprofile.tpl go to line 32:
Change this:
Code: [Select]
{*<div class="line_top_bottom_pad"  align="center">
{checkuser userid=$item.id checkfor='online'}
</div>*}

To this:
Code: [Select]
<div class="line_top_bottom_pad"  align="center">
{checkuser userid=$item.id checkfor='online'}
</div>

Or just remove the brackets that's hiding the code the two {*  *} then save.

Here is the quick fix for the \r \n issue also:
In the init.php go to line 68:
Remove this:
Code: [Select]
checkRequestData();

Then go to line 719:
Remove this:
Code: [Select]
function checkRequestData() {
    $conn = mysqli_connect(DB_HOST, DB_USER, DB_PASS);
    foreach ($_GET as $k => $val) {
        if (! is_array($val)) {
            $val = mysqli_real_escape_string($conn, $val);
        }
        $_GET[$k] = $val;
    }
    foreach ($_POST as $k => $val) {
        if (! is_array($val)) {
            $val = mysqli_real_escape_string($conn, $val);
        }
        $_POST[$k] = $val;
   }

}

Save the file.

Now go to your admin and modify the pages again and the \r \n will be gone.
Check the pages on the frontside to see ;)

Looking to change this at some stage but this should be ok for now.

If you have another question, please make a new topic, most of the questions in here are nothing to do with the lang file not loading, makes it harder for others to find what they might be looking for.
Hi Tua,

Thanks you to.

I forgot to tell you when adding a new page and your using htaccess SEO you will also need to add the page in the htaccess so it loads correctly and does cause a error.

Exmaple: RewriteRule ^faq.html$ index.php?page=faq   

Change faq to your page name so like this:

RewriteRule ^newpage.html$ index.php?page=newpage

Some will have it like this:

RewriteRule ^newpage.html$ index.php?page=newpage=$1

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: I can not load an english language
« Reply #11 on: January 26, 2017, 04:57:03 AM »
Hi Tua,

It looks perfect, nice job.

I think the reason it's not showing is that you need to edit the correct footer.tpl, you might have edited the default but it looks like your using a 3 column template so it would be the default 3 column template.

Best way to do it, is to copy the footer.tpl into the template your using, this way there is less confusion and the new page should now show.
It's always best to put your customized TPL files in your template like black-gray, less likely to override the files.  ;)

PS: please make a new topic for your next question as this if off the topics title.
« Last Edit: January 26, 2017, 04:59:51 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35