Page 114 of 124 FirstFirst ... 1464104112113114115116 ... LastLast
Results 1,131 to 1,140 of 1238
  1. #1131
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Profiles Support Thread

    @alan145

    I wonder if you're using http://www.zen-cart.com/index.php?ma...oducts_id=1088

    This was developed from Admin Profiles but was a bad idea, immediately abandoned by its author, and it would be a surprise if it worked in current versions of Zen Cart.

    I'm afraid that's not supported here, or anywhere else to my knowledge.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  2. #1132
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Profiles Support Thread

    @autoace

    The problem isn't with Admin Profiles. It's that Apsona launches itself in a non-standard way and the mini script that it uses to do so and which you're putting in your database is breaking SQL when used in a query.

    You're already escaping the single quotes, e.g. putting "\" before them in your admin_files entry for Apsona. You could try escaping the escapes (i.e. put two more backslashes before each single quote), but there's no guarantees for that, so please let us know whether or not it works.
    Last edited by kuroi; 11 May 2011 at 10:16 AM.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #1133
    Join Date
    May 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    So what do you suggest I do? I copy/pasted the code below for clarity.


    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
    <!-- footer_eof //-->
    <br>
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); }?>

  4. #1134
    Join Date
    May 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    Quote Originally Posted by kuroi View Post
    Sort of. I'm not convinced that your fix was correct. The line number reported is merely where the PHP parser detected the problem of the missing bracket. The place from which it was missing would have been rather earlier.

    So although you've managed to get past the error, the underlying problem is still there.

    Trouble is it doesn't resolve any that I've seen before, so is specific to your site, making it difficult to comment with greater clarity.

    So what do you suggest I do? I copy/pasted the code below for clarity.


    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
    <!-- footer_eof //-->
    <br>
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); }?>

  5. #1135
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Profiles Support Thread

    Quote Originally Posted by planetdh View Post
    So what do you suggest I do?
    I suggest doing a file comparison between your version of this file and the one in an unchanged version of Zen Cart to find the place where the bracket matching problem has slipped in, rather than just adding an extra bracket at the end.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #1136
    Join Date
    May 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    Quote Originally Posted by kuroi View Post
    I suggest doing a file comparison between your version of this file and the one in an unchanged version of Zen Cart to find the place where the bracket matching problem has slipped in, rather than just adding an extra bracket at the end.

    Wow...I guess file comparisons really do work! I found where I left out the }

    Thank you very much for pointing me in the right direction. I guess I need to be more careful about copying ALL info in the instructions!

  7. #1137
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Profiles Support Thread

    Glad you found it. I find file comparisons from a good automated tool (I particularly like Beyond Compare) invaluable for getting a much more accurate assessment of changes (working or otherwise) than I could possibly achieve from a visible inspection alone.

    Oh, and credit to you too. Often when us old hands keep telling people the same thing they get frustrated thinking that we're not getting it. Can happen, but usually it's the opposite. You though were listening and so got to the bottom of the issue, which is always good to see.
    Last edited by kuroi; 12 May 2011 at 12:53 AM.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #1138
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    Quote Originally Posted by kuroi View Post
    @autoace

    The problem isn't with Admin Profiles. It's that Apsona launches itself in a non-standard way and the mini script that it uses to do so and which you're putting in your database is breaking SQL when used in a query.

    You're already escaping the single quotes, e.g. putting "\" before them in your admin_files entry for Apsona. You could try escaping the escapes (i.e. put two more backslashes before each single quote), but there's no guarantees for that, so please let us know whether or not it works.
    @kuroi

    Did as you suggested and no go

    Would you be able to suggest another possible work around so that both mods can live in harmonly :)
    Thank you,
    autoace

  9. #1139
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Admin Profiles Support Thread

    You could try replacing the whole box_file with just the line
    $za_contents[] = array('text' => "Apsona ShopAdmin", 'link' => 'apsona_index.php');
    and then right clicking to launch in a new tab/window when you want to use it.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  10. #1140
    Join Date
    May 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: Admin Profiles Support Thread

    Help me about multi languages in Admin Profile.

    when i chose Edit Permission, then select a language Vietnamese in combobox Define Languages. ZenCart have a error such as:

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    in:
    [SELECT admin_name FROM admin WHERE admin_id = ]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    Please, help me how to fix this error? Thanks a lot

 

 

Similar Threads

  1. v150 Admin New Order [Support Thread]
    By lhungil in forum Addon Admin Tools
    Replies: 121
    Last Post: 5 Feb 2021, 07:51 PM
  2. v150 CSS Buttons for Admin [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 19
    Last Post: 24 Dec 2015, 09:13 PM
  3. Admin-Editable Sidebox - Support Thread
    By kuroi in forum Addon Sideboxes
    Replies: 331
    Last Post: 29 Oct 2014, 04:15 AM
  4. v151 Blue Admin [Support Thread]
    By vvomble in forum Addon Templates
    Replies: 11
    Last Post: 27 May 2013, 09:43 PM
  5. [Support Thread] IE only JavaScripts and Stylesheets Addon
    By Meshach in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 31 May 2011, 08:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR