Forums

[closed] Theme dkret 3 and WordPress 3.1.2 (22 posts)

  1. monpelaud
    Member
    Posted 1 year ago #

    Hi,

    With dkret3 and wordpress 3.1.2 only superadmin can see the tinyMCE editing buttons.
    All other users can't see the tinyMCE editing buttons.

    Thanks for your help

  2. monpelaud
    Member
    Posted 1 year ago #

    If I switch to twentyten theme tinyMCE works fine.

  3. monpelaud
    Member
    Posted 1 year ago #

    If I rename "wp-content\themes\dkret3\library\js" to "wp-content\themes\dkret3\library\js-old" tinyMCE works and I see the buttons again.

  4. kretzschmar
    Member
    Posted 1 year ago #

    I will look into this. You should'nt rename the folder, since you will loose all javascript functions of the theme (Drop-Down-Menu, comment preview, ...).

  5. monpelaud
    Member
    Posted 1 year ago #

    Many thanks for your reply.

    I renamed the directory "js-old" in "js" and now the TinyMCE works and I see the buttons again.

    I had the same probleme with an other blog on an other server and I did the same thing, rename "js" in "js-old" next "js-old" in "js" and TinyMCE works again and buttons come back!

    Best regards

  6. kretzschmar
    Member
    Posted 1 year ago #

    It seems like this is not a problem of dkret. I can't see why. It works here.

    Seems to be a caching problem. Clearing the browsers cache (maybe a page reload is enough) should be enough.

  7. monpelaud
    Member
    Posted 1 year ago #

    Before renaming the directory "js" I cleared the cache several times with no success.
    When I switched to the default theme twenty ten, TinyMCE worked correctly but when I switched again on dkret TinyMCE didn't work correctly.
    The only way to solve the problem on the 2 blogs which raised the problem was to apply the procedure of renaming "js" directory and then everything works fine.

    Now for me all works fine.
    Dkret is a very powerful and beautiful theme.

    Thanks you.
    Best regards.

  8. kretzschmar
    Member
    Posted 1 year ago #

    Thanks.

    If there is a bug in dkret I hope one of the other users is so kind and find it.

  9. videomike
    Member
    Posted 1 year ago #

    Hello

    I encountered the same problem - only that for me the renameing solution did not work.
    I run a wordpress blog network and the network superadmin can work just fine - for every other user the TinyMCE and the Ajax stuff in the dashboard is broken as soon as dkret3 is activated. If I switch to other themes the problem does not appear.
    Is there any news on the reason?

    Mike

  10. monpelaud
    Member
    Posted 1 year ago #

    Hi,

    After I renamed "js" in "js-old" I clear the cache and only when I saw TinyMCE buttons again I renamed it in "js".

    Best regards

  11. videomike
    Member
    Posted 1 year ago #

    Hmm, strange.
    I deactivated WP Super cache, just to be sure, I renamed the js direcory in the library subdirectory of the dkret theme and flushed the browser cache - to no success. Currently the only way to get a working graphical editor is to use another theme than dkret.

    Mike

  12. videomike
    Member
    Posted 1 year ago #

    Hi again

    I think I possibly found the bug:

    In library/functions/core.php line 300 it says:

    if ( !is_super_admin() || !is_admin_bar_showing() )

    in the condition that determines whether the dkret settings should be loaded to the admin bar. I am not sure why this is set to super admin.
    In a wordpress blog network like I run this leads to other administrators not being able to use Tinymce and breaks the AJAX on the dashboard.

    I changed it to

    if ( !is_admin() || !is_admin_bar_showing() )

    and now it seems to work fine.
    Jörn, could you clarify whether my approach is correct or whether I break something else with that change?

    Mike

  13. kretzschmar
    Member
    Posted 12 months ago #

    You found the right file but I doubt you found the right solution (only super admins should be able to change theme options).

    But right know if a non super-admin is logged in the function EXITS. Please change 'exit' in line 260 to 'return'.

  14. videomike
    Member
    Posted 12 months ago #

    Hi Jörn

    Thanks for the feedback.
    Is there a special reason why only super-admin (network admins) should be able to change theme options? I run a blog network with quite a few sites and I don't want have to work only because one of my site owners want to change their adsense code in the dkret options.
    Or did I get the roles wrong? I thought the super admin is the only role who can install themes and plugins and has access to all the blogs in the network(and can create new ones or delete old ones)
    Besides that I thought a blog administrator can change all settings that affect his blog only...?

    Mike

  15. kretzschmar
    Member
    Posted 12 months ago #

    Guess you are wrong. Because I don't use the multisite features of WordPress, I haven't testet this part enough.

    Your fix plus mine should be ok then. I already made those changes for the next release.

  16. kretzschmar
    Member
    Posted 12 months ago #

    I meant: Guess you are right.

  17. videomike
    Member
    Posted 12 months ago #

    Ah, o.k. I would have believed you ;-)
    I definitely need to read more about the rights of the different user roles in wordpress ;-)
    Thanks for fixing it in the next release!

    Mike

  18. monpelaud
    Member
    Posted 11 months ago #

    Hi,

    I have an other issue with javascript functions.
    I can't make the plugin " WordPress plugin random post slider " to work.
    If I switch to twentyten theme the plugin works fine.
    If I rename "wp-content\themes\dkret3\library\js" to "wp-content\themes\dkret3\library\js-old" the plugin works fine to.

    Best regards

  19. monpelaud
    Member
    Posted 11 months ago #

    Hi,

    The problem was due to the plugin.
    My problem is solved.

  20. monpelaud
    Member
    Posted 11 months ago #


  21. aacinc
    Member
    Posted 2 months ago #

    I am using the theme on a site with left and right sidebars. The header image leaves the right side bar as white space in the header Is there a way to correct this?

    I also would like to remove the page name from the page display since we have images that reflect the page name. The hack would be to remove (blank out) the page name but then the users would have a difficult time determining which page is which in wordpress.

    The menu bar is green with lighter colored links and I thought that these options could be changed, but do not see anything in the theme settings that would affect this.

    Thank you

  22. esmi
    Theme Diva & Forum Moderator
    Posted 2 months ago #

    Please post your own topic.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags