WordPress.org

Ready to get started?Download WordPress

Forums

Grins and 1.3 ?? (13 posts)

  1. Mark (podz)
    Support Maven
    Posted 9 years ago #

    My daughter has wp_grins, and they display fine in the comments area.
    Can I find how to get them into the posting area ? I'm looking at core files and trying things there with zero results.
    Am I missing the painfully obvious, or is it really core hacking ? (And no, quicktags.php does not exist in 1.3) - I hope it's not core hacking.....

  2. Beel
    Member
    Posted 9 years ago #

    Yep...

  3. Beel
    Member
    Posted 9 years ago #

    In admin-functions add this (there is some wrap-around so you can find where to place it):
    <script type="text/javascript">edToolbar();</script>
    ';
    if (function_exists("wp_grins")) { echo "
    "; wp_grins(); }
    echo '</div>';
    endif;

  4. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Many thanks Beel :)
    (I'll FAQ this .... it's not the most obvious place is it ?)

  5. ludvig87
    Member
    Posted 9 years ago #

    Where in the file? I can't figure out what you mean with wrap-around.
    I would appreciate your help.

  6. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Do a search in the file for 'edToolbar' - it only happens once. It's around line 550

  7. ludvig87
    Member
    Posted 9 years ago #

    When I try to add it, I get a Parse error: parse error, unexpected '/' in /customers/deep-within.dk/deep-within.dk/httpd.www/wordpress/wp-admin/admin-functions.php on line 553

    My code looks like this
    <script type="text/javascript">edToolbar();</script>
    ';
    if(function_exists("wp_grins")) { echo "
    "; wp_grins(); }
    echo '</div>';
    endif;
    ';
    echo '</div>';
    endif;
    }

    Anything I should edit out? I probably am...

  8. ludvig87
    Member
    Posted 9 years ago #

    Anyone who can tell me where I should put it?

  9. Beel
    Member
    Posted 9 years ago #

    admin-functions.php if I remember correctly.

  10. ludvig87
    Member
    Posted 9 years ago #

    Thank you. I finally got it put in. Now I can finally just click on them :D

  11. chan
    Member
    Posted 9 years ago #

    So when installing grins in the beta wordpress all I have to do is at the above code in the admin functions php file and no where else to have it to show it?

  12. EvilBeAr
    Member
    Posted 9 years ago #

    Nice trick with the script. You can do either way chan. what he posted is the easiest way. I actually didn't know about this trick until after I had core hacked wp-grins into wordpress. No problem though. The core hack is really very small.. you just add a function call to 3 files. Takes five seconds at most.

  13. changjoe
    Member
    Posted 9 years ago #

    awesome script. i have successfully added the quicktags for writing a post. but how do you add the quicktags for the comments? (wp 1.5b1)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.