Language Search & Edit

Layout - Language Search & Edit

Layout

by azpro » Sun Sep 10, 2023 11:45 am

Line 506 in zipur_language_tool.php I made a small change to have more consistent output - I added style="width: 90%" class="overflow-auto" so it will be :

Code: Select all

<td style="width: 90%" class="overflow-auto"><?php echo $match['value']; ?></td>
azpro
Contributor
Posts: 177
Joined: Fri Nov 06, 2020 8:25 am
Phoenix Version: v1.1.0.6
Contact:

Re: Layout

by zipurman » Thu Sep 14, 2023 4:02 pm

Thanks for the input. I updated the code with a similar change to accomplish this in the next release. I set the first td in that row(tr) to 150px as the 90% doesn't scale to mobile very well. Not that I would recommend using mobile to do this anyway ;)
zipurman
-----------
User avatar
zipurman
Builder
Posts: 540
Joined: Tue Oct 13, 2020 5:20 pm
Phoenix Version: v
Contact:

Re: Layout

by Tom » Tue Sep 17, 2024 7:48 am

Does this module search the "overides" folder and allow edits of the files in that location?
Tom
Member
Posts: 27
Joined: Thu Nov 05, 2020 7:22 pm
Phoenix Version:
Contact:

Re: Layout

by zipurman » Tue Sep 17, 2024 8:18 am

Not currently. I'd have to review and adjust. I have seen the discussions on the overrides languages ... will have a look when I get a chance.
zipurman
-----------
User avatar
zipurman
Builder
Posts: 540
Joined: Tue Oct 13, 2020 5:20 pm
Phoenix Version: v
Contact:

Re: Layout

by Tom » Tue Sep 17, 2024 8:15 pm

Thanks for the update!
It's a great module, it made editing my changes so much easier.
Thanks
Tom
Member
Posts: 27
Joined: Thu Nov 05, 2020 7:22 pm
Phoenix Version:
Contact:

Re: Layout

by zipurman » Fri Sep 20, 2024 9:49 pm

I will add this when I get a chance, but if you edit the admin/zipur_language_tool.php

Find:

Code: Select all

    $adminlangpath   = DIR_FS_ADMIN . 'includes/languages/' . $_SESSION['zip_language'];
    $cataloglangpath = DIR_FS_CATALOG . 'includes/languages/' . $_SESSION['zip_language'];

    //Load the library files into an array
    zipGetDirArray( $adminlangpath, [], 2 );
    zipGetDirArray( $cataloglangpath, [], 2 );
Change to:

Code: Select all

    $adminlangpath   = DIR_FS_ADMIN . 'includes/languages/' . $_SESSION['zip_language'];
    $cataloglangpath = DIR_FS_CATALOG . 'includes/languages/' . $_SESSION['zip_language'];
    $templatelangpath = DIR_FS_CATALOG . 'templates/' . TEMPLATE_SELECTION . '/includes/languages/' . $_SESSION['zip_language'];


    //Load the library files into an array
    zipGetDirArray( $adminlangpath, [], 2 );
    zipGetDirArray( $cataloglangpath, [], 2 );
    if (file_exists( $templatelangpath) ) {
            zipGetDirArray( $templatelangpath, [], 2 );
    }
zipurman
-----------
User avatar
zipurman
Builder
Posts: 540
Joined: Tue Oct 13, 2020 5:20 pm
Phoenix Version: v
Contact:

Re: Layout

by Tom » Sat Sep 21, 2024 10:48 am

Hi,
Thanks for the info.
I have tried this three times changing the code to make sure I got it right, but with the revisions it still only finds and edits the core file and then replaces with the overide file which has not been edited.
Thanks again :+1:
Tom
Member
Posts: 27
Joined: Thu Nov 05, 2020 7:22 pm
Phoenix Version:
Contact:

Re: Layout

by zipurman » Sat Sep 21, 2024 2:23 pm

Can you confirm the template languages path for me.
zipurman
-----------
User avatar
zipurman
Builder
Posts: 540
Joined: Tue Oct 13, 2020 5:20 pm
Phoenix Version: v
Contact:

Re: Layout

by Tom » Sat Sep 21, 2024 2:36 pm

/public_html/templates/override/includes/languages/english/modules/content/index/cm_i_customer_greeting.php
Tom
Member
Posts: 27
Joined: Thu Nov 05, 2020 7:22 pm
Phoenix Version:
Contact:

Re: Layout

by zipurman » Sat Sep 21, 2024 4:25 pm

That looks correct.

Try adding an:

Code: Select all

echo $templatelangpath;
To make sure it matches. When you search, what are you searching for (text)?
zipurman
-----------
User avatar
zipurman
Builder
Posts: 540
Joined: Tue Oct 13, 2020 5:20 pm
Phoenix Version: v
Contact: