Thesis OpenHook

Thank you for your inter­est in the Thesis OpenHook plu­gin. Information about the plu­gin is avail­able at Thesis OpenHook. This page has been retained for his­tor­i­cal pur­poses: in other words, I did not want to delete the loads of com­ments below!

This entry was posted in Uncategorized. Bookmark the permalink.

308 Responses to Thesis OpenHook

  1. Mike Nichols says:

    Rick, thank you so much for this! I can’t wait to try it out!

  2. Don Campbell says:

    Wow this is sweet Rick. Great idea! I wish I would have seen this before I spent all that time learn­ing hooks last week…
    Seriously, this will save a lot of peo­ple a lot of time.
    –Don

  3. Dave says:

    Thanks Rick… this is great. Would you also mind shar­ing the func­tions and CSS for your the­sis promo ‘super­charge your blog’ box at the end of each post?

    Thanks,
    Dave

  4. I down­loaded, then fol­lowed the direc­tions, but it’s still not show­ing up in my plu­gin panel — what am I doing wrong? I’m sure I put it in the right spot, because it’s in the same folder as the other things I DO see in the plu­gin panel.

    Thanks,
    Kelly (blog under con­struc­tion: http://www.kellythekitchencop.org)

  5. Never mind, I’m good now. Can’t wait to play with this, thank you!

  6. Rick Beckman says:

    Kelly the Kitchen Kop: It looks like you have the direc­tory in your plu­g­ins folder, but when I try to load any of the files within the folder (such as thesis-openhook.php), a page not found error is shown. Make sure that all of the files within the thesis-openhook/ direc­tory are uploaded.

    Dave: I have sev­eral tuto­ri­als in mind to explain how I’m doing var­i­ous things ’round here. All in good time. :D

    Don Campbell: Learning hooks and using the custom/custom_functions.php file is def­i­nitely the ideal; it ensures that your cus­tomiza­tions aren’t depen­dent upon a plu­gin stay­ing up-​​to-​​date in order to work with the lat­est ver­sion of Thesis. However, I will be doing my best to keep this thing cur­rent with what’s going on in the “Thesisphere.”

    Mike Nichols: Hope you enjoy it!

    And every­one… Keep me posted on bugs!

  7. ClarkeW says:

    Rick,
    This is a great plu­gin and while I kind of enjoy cre­at­ing cus­tom hooks this will also save me a ton of time. Thanks for cre­at­ing it.

  8. Claude says:

    Nice job Rick!

  9. Digiplace says:

    It’s look­ing very good Rick. Thank you very much.

  10. Momentum says:

    Rick

    Nice work! I look for­ward to play­ing with this plugin.

  11. Bruce Keener says:

    Rick,
    I’ll prob­a­bly link to this from my site, even though I will likely just stick with custom_functions.php myself. One ques­tion: does it sup­port php cod­ing, like con­di­tion­als, or is it strictly for text?

    Really, really good idea and good work. You are a fan­tas­tic help to the Thesis com­mu­nity (and the WordPress com­mu­nity in general).

  12. Rick Beckman says:

    Digiplace & Momentum: I hope it comes in handy for you!

    Bruce Keener: It works with PHP just fine. Check out the sec­ond exam­ple in the post itself. :)

    Basically, any­thing that can be done with custom_functions.php can be repli­cated eas­ily enough through OpenHook’s panel!

  13. Bruce Keener says:

    Ak! Thanks Rick. Obviously, I skimmed too quickly. Victim of the atten­tion deficit culture.

    Great job.

  14. Eric Marden says:

    Gotta love the GPL. Glad my K2 Hook Up plu­gin inspired this plu­gin for Thesis.

  15. Thank you! I was think­ing of using Thesis on one of my sites but I really don’t have time to learn hooks right now.

    What a won­der­ful gift for the community!

  16. Pingback: For WordPress Bloggers: Customize Thesis Theme Functions

  17. Rick Beckman says:

    Bruce Keener: Thanks, man, and thanks for the plug on your site!

    Eric Marden: I’m very grate­ful for your plu­gin, Eric! Seems like when­ever I try to do admin panel stuff, it’s so com­plex, lead­ing to sur­ren­der on my part. Your plu­gin was very well writ­ten — ele­gant in its sim­plic­ity, as they say — and helped me learn some stuff!

    Kim Woodbridge: Anything I can do to help you get rolling with Thesis, I’d be happy to do. I def­i­nitely believe in the power of Thesis to greatly enhance a site’s appeal — both to user’s and to search engines.

  18. Rick Beckman says:

    Thesis OpenHook was just upgraded to ver­sion 0.2 with some very handy new options in the admin panel. Go on, down­load it! :D

  19. Meg says:

    WOW, how awe­some is that! Thesis OpenHook down­loaded and installed with absolutely no prob­lems. Can’t wait to start insert­ing things! Thanks Rick for all your hard work!

  20. Solo-Dad says:

    Rick, Great plu­gin for us novices. My ques­tion: If I use this, will it over­write any hooks already inserted in the cus­tom func­tions file? Thanks!

  21. Rick Beckman says:

    Meg: You’re wel­come. Enjoy!

    Solo-​​Dad: No, OpenHook will not over­ride the custom/custom_functions.php file. Both Thesis’ built-​​in cus­tomiza­tion folder & OpenHook will load when using Thesis, so the two are complementary.

    It may be eas­ier for some to keep larger blocks of code in their custom/custom_functions.php file — which they can load up in a text edi­tor with syn­tax high­light­ing and line num­bers, for exam­ple — while using OpenHook to eas­ily remove Thesis’ default actions and to add in smaller customizations.

    The whole point is to empower the com­mu­nity to be able to cus­tomize with increased ease, and I hope I’ve done that.

  22. Meg says:

    Rick, it doesnt look like the inserted text using the hooks “obeys” the style built into Thesis… cor­rect? For instance I tried to move my byline from the side­bar to area before con­text and used HTML to style it, ie, H3 tags, but it didn’t com­ply. How do we do sim­ple stuff like adjust color, size of font, etc, within the hooks?

  23. Rick Beckman says:

    Meg: It does obey the style, but in order to take advan­tage of that, you need to repli­cate as closely as pos­si­ble Thesis’ markup structure.

    For instance, to do what you’re doing, you might try some­thing like this in the “Before Content” box:

    <div class="post_box top"><div class="format_text">
    <h3>Title</h3>
    <p>Your content</p>
    </div></div>

    The first and last lines are the most impor­tant as they are nec­es­sary to catch Thesis’ styling for for­mat­ted text, such as the text found in posts and comments.

    Hope this gets you headed in the right direction. :)

  24. Meg says:

    Rick, that worked per­fectly; now I just have to tweak it.
    I should have known I needed more code than that, because I had to use the div ‘s etc, in my side­bar sec­tion when I altered it with hooks!! I guess I was just too excited to be able to tweak my blog right in the admin panel that I got ahead of myself!

  25. This appli­ca­tion is cool and by the date I can tell that it is hot off the press. Thank you for this.

  26. Patch says:

    Hey Rick,
    Thanks for this use­ful plu­gin :) But now comes the dilemma that started with using Thesis — to plu­gin or not to plu­gin, that is the question …

    Great stuff anyways :)

  27. Pingback: One plugin inspires another | xentek

  28. Laurel says:

    Thank you so much for this, LOVE IT!!

  29. jason says:

    Hey Rick,
    No mat­ter what I plug in I get the fol­low­ing warn­ing:
    Warning: fopen [function.fopen]: failed to open stream: Permission denied in wp-content/plugins/options.php on line 32 Error editing.

    How do I fix that?

  30. Rick Beckman says:

    Jason: From the looks of the error mes­sage, I assume that you only uploaded the files within the thesis-openhook/ folder, rather than the entire folder itself, with the files therein.

    In other words, the options.php file shouldn’t be located at wp-content/plugins/options.php; on the con­trary, it (and the other OpenHook files) should be at wp-content/plugins/thesis-openhook/options.php.

    Hope this helps you get it workin’!

  31. rumblepup says:

    DOOOOD!!
    RAAAAAWWWKZ!

  32. Pingback: Dagens länkar - 2008-12-05 — Henriks blogg

  33. jcd3 says:

    dude. u rock. I (we) really (really, really, really, really) appre­ci­ate not only this tool, but also ALL the knowl­edge & exper­tise you bring to the Thesis forums.

     — j

  34. Rick
    Impressive, excel­lent work! I’m look­ing for­ward to test­ing it out! Thanks!

    –Miguel

  35. Rick says:

    Rick, I had the same prob­lem as Jason. Your zip file was the prob­lem. It needs a folder inside with the actual files.

    FTP replaces the orig­i­nal dates with the trans­fer time and date so in order to pre­serve the orig­i­nal file dates and times, I always unzip WordPress, Themes and Plugins remotely using CPanel File Manager or equivalent.

  36. Pingback: Thesis Theme — December 6, 2008

  37. Stijn says:

    Santa came early this year. Thanks so much, Rick!

  38. Nice lit­tle PlugIn which makes the work of a lot of peo­ple much eas­ier. But maybe there is a lit­tle bug? When I check the box “Add debug infor­ma­tion” the num­ber of queries and sec­onds appear in the footer. But when I uncheck the box, the queries van­ish, the sec­onds stay. Bug or feature?

  39. Rick Beckman says:

    Rick: I rebuilt the ZIP file — mak­ing sure I selected to com­press the thesis-openhook/ folder itself rather than just the files. Should be fine now. I’m sure I messed some­thing up a few days ago when I was prepar­ing for upload­ing to the plu­g­ins direc­tory — which still hasn’t worked prop­erly for me. Hopefully all is well now.

    first­day­black: If that’s what is hap­pen­ing, that’s a bug. I’ll make sure it’s work­ing cor­rectly for the next release. Thanks. :D

  40. Rick, thanks for car­ing. But there ist another major bug in your plu­gin. The text on the save but­ton says “update options” or some­thing like that. It should of course be “BIG ASS SAVE BUTTON”! ;-)

  41. Rick Beckman says:

    Haha. Chris & I have dif­fer­ent ideas on what makes a good sub­mit but­ton. :P

    That said, here’s the fix for the debug stats bug. This block of code is near the bot­tom of thesis-openhook/thesis-openhook.php:

    	if (get_option('openhook_footer_debug_info') && current_user_can('level_10'))
    		echo '<p>', get_num_queries(), __(' queries. '); timer_stop(1); _e('seconds.'); echo '</p>';

    Change it to this:

    	if (get_option('openhook_footer_debug_info') && current_user_can('level_10')) {
    		echo '<p>', get_num_queries(), __(' queries. ');
    		timer_stop(1);
    		echo __('seconds.'), '</p>';
    	}

    Will def­i­nitely be in the next ver­sion of OpenHook — along with the begin­nings of being able to edit custom/custom.css directly from the admin panel! :D

  42. Your bug­fix works per­fectly. Thank you very much. :-)

  43. Rick Beckman says:

    first­day­black: Glad to hear it! Let me know if any­thing else comes up.

  44. Matej says:

    I’m hav­ing the same prob­lem as Jason. All my files are under “thesis-​​openhook” folder but I get the same mes­sage. I hate hooks, why com­pli­cat­ing /​ “fix­ing” things when there’s no need …

    Also when I try to add it man­u­ally via custom_functions.php I get this mes­sage when i try to access my site “Parse error: syn­tax error, unex­pected ‘<’ in wp-content/themes/thesis/custom/custom_functions.php on line 37″

    I add it like this:

    /​* YOAST BreadCrumb */

    func­tion yoast_​breadcrumb () {

    }
    add_action(’thesis_hook_before_title, ‘yoast_​breadcrumb’);

    hate .. it …

  45. Matej says:

    I mean like this ..sorry

    /​* YOAST BreadCrumb */

    func­tion yoast_​breadcrumb () {

    }

    add_action(’thesis_hook_before_title, ‘yoast_​breadcrumb’);

  46. Matej says:

    Sorry feel free to delete my lat­est 2 com­ments but some­how php code is not showing …

  47. This is most help­ful — thank you!

  48. Rick Beckman says:

    Matej: Yeah, unless the code is prop­erly escaped, WordPress eats it.

    However, you are wel­come to e-​​mail me the code, and I’ll help you get it working.

    Regarding Thesis OpenHook, on which site are you attempt­ing to install it? I’d like to take a look, if possible.

  49. Rick Beckman says:

    Matej: Have you seen this reply from Kristarella? It has the proper code. :D

  50. Kayren says:

    I get this mes­sage when I try to update a hook.
    Warning: fopen(/home/p5r54565/public_html//wp-content/themes/thesis/custom/custom.css) [function.fopen]: failed to open stream: Permission denied in /home/p5r54565/public_html/wp-content/plugins/thesis-openhook/options.php on line 32
    Error edit­ing.
    Is this a prob­lem with per­mis­sions on my host server?

  51. This looks really excel­lent, Rick, thanks for cre­at­ing it. Anything that makes Thesis eas­ier to use! I’ve installed it on my WP 2.6.5 blog, now just read­ing up on hooks to under­stand bet­ter what I’d like to do ;)

    Thanks again.

  52. Matej says:

    Hey Rick, thanks for the sup­port! New code is not show­ing me error mes­sage any­more but I can’t see the bread­crumbs .… but that’s another dis­cus­sion for forums not here

  53. Yan says:

    That’s awe­some Rick, thanks for devis­ing this! Having all the hooks at the same place, and being able to edit them so sim­ply will make the cus­tomiz­ing job that much eas­ier.
    You even added many use­ful and cool com­ments when appropriate !

  54. Rick Beckman says:

    Kayren: Oh good­ness… I think I may have acci­den­tally uploaded my devel­op­ment code. (Lesson? Organization is GOOD and should NOT be neglected!) When I get off of my day job here in a few hours, I’ll be able to devote some time to get­ting this thing work­ing, as well as get­ting a canon­i­cal release uploaded to WordPress Extend.

    Everyone else: Glad you’re enjoy­ing the plu­gin. Hopefully I can make it even nicer and more fool­proof. I really want to get a more ele­gant admin panel going, with eas­ier to read/​find panels.

  55. Rick Beckman says:

    OpenHook’s been updated to 1.1 — bug fix + style sheet edit­ing! Should show up in your plu­g­ins panel for auto-​​upgrading; this baby’s hosted at WordPress now. :D

  56. Kel says:

    Slick. Very nice to have a “front-​​end” to the Thesis “back-​​end” ;) Thank you!

  57. Wayne says:

    Rick:

    Can you tell me how to add an iFrame to my blog. Can I use hooks?

    Actually I need about 5 pages with 5 dif­fer­ent iFrames. I would appre­ci­ate the help.

  58. Rick, you did it! I love that new save but­ton :-D :-D

  59. Armen says:

    Hey Rick,

    This is a fab­u­lous idea! I didn’t dis­cover it until today. Sadly though, the down­load link doesn’t seem to be working. :(

  60. Rick Beckman says:

    Armen: The down­load link points to the WordPress plu­gin direc­tory page, which is where you’ll need to down­load the file from. (Right-​​clicking on the down­load link on this page — or using a down­load man­ager to grab the link — will not work; it’s cur­rently a redi­rec­tion, not a download.)

  61. Armen says:

    Yeah I know buddy. I went over to the WordPress direc­tory, and clicked on the big ‘Download’ but­ton and it’s com­ing up as a dead link for me.

  62. mb says:

    Yup — I get a 404 too.

  63. Rick Beckman says:

    Well, that’s unfor­tu­nate. I updated the down­load links in the post above to point to a hosted ver­sion here. Sorry ’bout that, folks!

  64. Tom K. says:

    This plug-​​in fails to install in WordPress 2.7 final.

  65. @Tom K.: installed per­fectly on my copy of WP 2.7 RC2 -

    @Rick — in RC2 — plu­gin option shows up as its own tab under appear­ance as Thesis Openhook — so even eas­ier to find than advertised.

    Installed per­fectly. Now I have to learn what to do with it.

    Jon

    Edit by Rick Beckman: Fixed a bit of markup.

  66. Susan says:

    Hi! I’m totally new to hooks and am try­ing out this plu­gin. I added text to the Before Sidebars hook to have the words “Click cur­rent post title to see related movie below. ” appear on my site. This is because the movie is related to the post via a cus­tom field, but if you just go to the home page (not the post link itself), the movie does not appear. I would like this mes­sage to appear only on the home page, and I would like its style to match the other wid­get head­ings. Can any­one help? Sorry to be so limited!

  67. Tom K. says:

    Thanks Jon. I re-​​tried the install and it worked.

  68. Thanks, installed with­out a hitch. I can’t wait to use this… Faboulous!

  69. Rick Beckman says:

    Tom K.: What method of installing were you using? I’ve yet to have any luck with the auto­mated plu­gin installer. Glad you got it installed, what­ever method you used!

    Jonathan Soroko: OpenHook’s always had its own tab — below “Design” on WordPress < 2.7 —  but WordPress 2.7 def­i­nitely makes the sub­head­ings more acces­si­ble. Have fun learn­ing how to use it, and def­i­nitely feel free to exper­i­ment — espe­cially when fix­ing errors is as sim­ple as delet­ing from a text box and re-​​saving the form.

  70. Rick Beckman says:

    Susan: Try using some­thing like this in the “Before Sidebars” box, mak­ing sure to check the “Use PHP” option:

    <?php if (is_home()) { ?>
    <div class="sidebar"><ul class="sidebar_list"><li class="widget video_intro"><h3>THIS IS YOUR TITLE</h3></li></ul></div>
    <?php } ?>

    Yeah, it’s a lot of code, but it will ensure that the head­line is ren­dered iden­ti­cally to other side­bar head­ings — and that it will respond to font changes made within the Design Options panels.

    Using this markup will place a lot of mar­gin on the bot­tom of the head­ing, and you can lessen it by using this line in your custom/custom.css file:

    li.widget.video_intro { margin-bottom: 0; }
  71. Dave says:

    Hi Rick.

    I have a sand­box build that I am play­ing around with. I checked off the footer:
    “Remove Thesis attri­bu­tion  — Only those who pur­chased Thesis using the Developer’s Option are allowed to remove the Thesis attri­bu­tion link. If you pur­chased the Personal Option and remove the Thesis attri­bu­tion, be sure to include it within your own footer con­tent (per­haps replac­ing it with an
    affil­i­ate link to DIYthemes).”

    Yes, I do have a devel­op­ers license, just to let you know.

    The attri­bu­tion is still show­ing up.

    I also added in some text in the input box for the footer.
    Copyright 2008, BOTC

    That shows up just fine.

    Here is the site.
    http://www.bostononthecheap.info/

    Sorry to say I could not under­stand what this meant:
    You’re wel­come to ask sup­port below in the com­ments; prior to post­ing any code, though, please make sure it is prop­erly escaped. Thanks!
    (and going to the link did not give me any clues either)

    Any ideas as to what can be wrong.

    I am glad you have made this plu­gin. Thanks for all your efforts.

  72. So I’m curi­ous how this plays with Thesis in a WPMU set­ting. Does it involve any file alter­ations, out­side of custom.css?

    Just won­der­ing how it would work. One of the things that drew me to Thesis in the first place was how well it played with WPMU. Being able to tweak lay­out ele­ments triv­ially across a series of blogs with­out hack­ing at the theme files themselves.

  73. Jeremy says:

    Golly but this is good. I had put off upgrad­ing Thesis until after I had WP 2.7 up and run­ning, then did Thesis and this plu­gin and I am very impressed and very, very thank­ful for all the hard work you have con­tributed in gen­eral, and on this plu­gin in par­tic­u­lar. Really. Kudos to you.

  74. Hi Rick,

    I LOVE this– it is won­der­ful and made using Thesis so much eas­ier. I’m won­der­ing how to put my Feedburner stats into the nav bar, where the sub­scribe but­ton was… is it pos­si­ble to do it using openhook?

  75. Is there an option to place a code snip­pet in between the by-​​line and begin­ning of the post’s text?

  76. Rick Beckman says:

    Julie Strietelmeier: Try the “Before Post” field. It should do what you’re wanting.

  77. Rick Beckman says:

    Kelly: Not as eas­ily as you’d like; it would involve remov­ing the default nav bar and then writ­ing your own nav bar in the “Before Header” area. Otherwise, you could per­haps remove the feed link (via Thesis Options) and then insert your own Feedburn stats via the “Before Header” option of OpenHook. This will place your code after the nav menu and before the header, so you would need to posi­tion it into the appro­pri­ate place using custom/custom.css.

  78. Rick Beckman says:

    Chris Oldstrom: I’m not famil­iar with WordPress μ‘s archi­tec­ture, so I would love to hear whether or not OpenHook works or not. You’re right in assum­ing that the only actual file edit­ing which goes on is of the cus­tom style sheet; how­ever, that option is only avail­able if a user has top-​​tier admin­is­tra­tor priv­i­leges, which may not be the case in a multi-​​user environment.

  79. Oops! I thought I had tried that prior to post­ing this com­ment. Sorry, it worked like a charm :o)

  80. With regards to WMPU com­pat­i­bil­ity, I tested it and it works just fine. Settings are iso­lated to the indi­vid­ual blog those changes were done on. I haven’t checked the custom.css stuff, but if you sim­ply don’t allow it, it’s not a prob­lem. Were it allowed, I’m sure it would prop­a­gate across all blogs shar­ing the same theme directory.

  81. @Rick, Thanks! So what’s the code for the .cus­tom CSS if I want the stats aligned to the right? And maybe this is some­thing that you could con­sider adding to the next ver­sion? (Says the non tech­ni­cal per­son with a smile on her face?)

  82. Rick Butts says:

    I wanted to add the Add to Any javascript “After Content” so I got the code and pasted it — but it doesn’t appear after the post content.

    I’ve changed per­mis­sions on the custom/custom.css to 777 -

    Did I miss something?

    Thanks Rick for a killer tool — and I LOVE the “lit­tle ass save button”

    Rick Butts

    Edit by Rick Beckman: Fixed link markup.

  83. Rick Butts says:

    well dog­gone it — I sure didn’t mean to hyper­link the entire post to AddToAny.com !

    Sorry gang -

    Rick Butts

  84. Rick Beckman says:

    Well, that tells me what I need to do next in OpenHook — more doc­u­men­ta­tion! “After Content” refers to nearly the bot­tom of the page — after posts and com­ments have all been out­put. If you want to add some­thing to the end of each post before the com­ments start, use “After Post” instead. :)

  85. Rick Butts says:

    well DOH!

    I’m obvi­ously a retard — I shot down the page until I found after con­tent and then fig­ured I was where I needed to be.

    I’ll TRY to pay more atten­tion now — hope­fully my .js will work there.

    Thanks Rick -

    Rick Butts

  86. Pingback: Thesis Envy: The Problem with Thesis | rumblepup

  87. I’m try­ing to use this plu­gin for the first time — I can add the fol­low­ing code to custom_​functions and it works fine, but when I add the exact same thing inside the plu­gin, it doesn’t work. What am I miss­ing to use the plu­gin?

    function add_social_profiles () {
    global $comment;
    ?>
    user_id); ?>
    <?php
    }
    add_action('thesis_hook_after_comment_meta', 'add_social_profiles');

  88. Rick Beckman says:

    Looks like WordPress gar­bled the code a bit (tip: always run code through an escap­ing tool prior to post­ing in com­ments or posts), so I’m not sure of the exact code to give you… However, when using OpenHook, rather than using this:

    add_action('thesis_hook_after_comment_meta', 'add_social_profiles');

    …you can call your func­tion directly, like this:

    add_social_profiles();

    Let me know if you get it working.

  89. Robert Yang says:

    Rick,

    I use the All-​​in-​​One SEO plu­gin and when mod­i­fy­ing the header, it seems I get a con­flict with that plugin.

    Here’s my error message -

    Warning: Cannot mod­ify header infor­ma­tion — head­ers already sent by (out­put started at /home/rob888/public_html/shop/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php:632) in /home/rob888/public_html/shop/wp-content/plugins/thesis-openhook/thesis-openhook.php(191) : eval()‘d code on line 1

    What do I do?

    Thanks!

  90. Rick Beckman says:

    What code are you using in OpenHook? It’s pos­si­ble that header infor­ma­tion is being out­put, which of course would con­flict with All-​​in-​​One SEO which has already out­put header information.

  91. Dave King says:

    Amazing. Thanks Rick!

    –Dave

  92. This is an awe­some plug-​​in! Thank you for tak­ing the time to put it together.

    I’m new to Thesis and using this plu­gin and I have a follow-​​up ques­tion from the forums that I’d like to ask. I’m try­ing to add a email and twit­ter link next to my RSS but­ton in the nav bar. I’d like for it to look like @mnichols site Anxiety, Panic & Health but I’m just not sure what to paste into the “Before Header” block. I want to keep my nav menu but add the email and twit­ter link to the right.

    I tried using the code you sug­gested here: RSS email next to Subscribe by RSS in nav bar but it’s not exactly what I’m after.

    Sorry for the drawn out com­ment and any insight you have to offer is greatly appreciated.

  93. grenuis says:

    I have added the code below (via http://www.sugarrae.com) in the header box to change to test adding an image in the header area, but it didn’t work, but when I added directly through custom_functions.php file it worked. Anybody know what the prob­lem is… I’m using ver­sion 2.7 of word­press. Thanks!

    /​* Custom Header Image */​
    func­tion add_​header_​image () {
    echo “<a>

    </​a>”;
    }
    add_action(‘thesis_hook_after_title’, ‘add_​header_​image’);

  94. Brian says:

    New to Thesis and OpenHook
    Working in a sand­box envi­ron­ment. My ques­tion has to do with migra­tion to a pro­duc­tion environment.

    It looks like your plu­gin doesn’t mod­ify the cus­tom func­tu­ions php file. Does it store the mod­i­fi­ca­tions in the data­base? I sup­pose I could have looked. Moving a file into pro­duc­tion is easy. Exporting a table, or table con­tents is a lit­tle harder. Suggestions on how to migrate hooks from a sand­box to a pro­duc­tion environment?

  95. Rick Beckman says:

    Last time I did it, I copy/​pasted the val­ues from the test site to the live site man­u­ally. Exporting would be a mat­ter of find­ing the rel­e­vant rows in the wp_options table, then import­ing them into the pro­duc­tion site prior to installing OpenHook (which will cre­ate new options of the same name, result­ing in dupli­cate entries, which I’m unsure how they’d be han­dled in WordPress).

  96. Brian says:

    Wow — Thanks for the fast reply! Thats sort of what I fig­ured. Maybe an export/​import func­tion in the next release? Your file for­mat is already defined as custom_functions.php. I think for my sand­box I am going to just work in the php file. It will help me hone my php skills and make migra­tion to pro­duc­tion a snap! Oh, crud, did I hard code some absolute sand­box URLs? Ug. Hmm, rel­a­tive URLS are bad in down­stream feeds, Ug.

    OK — I’ll work it out.

    Thanks again

  97. Rick Beckman says:

    An import/​export might not be a bad idea. I could see it being use­ful even for blog­gers who deploy mul­ti­ple blogs, all with Thesis & sim­i­lar “base” customizations.

    I’ll have to get with Chris about this; we’re want­ing OpenHook func­tion­al­ity built in to Thesis in the future, so I’d rather move in that direc­tion, and we could maybe add import/​export for Thesis set­tings as a whole. Now that’d be total awesomeness.

  98. Khoo says:

    Great plu­gin that is really usable and use­ful for noobs like us. Thanks and keep up the good work!

  99. Robert says:

    Getting the fol­low­ing error above the header on home page, and at the top and bot­tom of the word­press dashboard?????

    Warning: include_once(/home/admin/public_html/wp-content/plugins/__MACOSX/) [function.include-once]: failed to open stream: Success in /home/admin/public_html/wp-settings.php on line 465

    Warning: include_​once() [function.include]: Failed open­ing ‘/​home/​admin/​public_​html/​wp-​​content/​plugins/​_​_​MACOSX/​’ for inclu­sion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/admin/public_html/wp-settings.php on line 465

  100. Robert says:

    Just to add, I have deac­ti­vated the theme and deleted it as well and I still have this issue.

    Thanks Rick

  101. robert says:

    Now, I can’t login to admin…This is the new error:

    Warning: include_once(/home/admin/public_html/wp-content/plugins/__MACOSX/) [function.include-once]: failed to open stream: Success in /home/admin/public_html/wp-settings.php on line 465

    Warning: include_​once() [function.include]: Failed open­ing ‘/​home/​admin/​public_​html/​wp-​​content/​plugins/​_​_​MACOSX/​’ for inclu­sion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/admin/public_html/wp-settings.php on line 465

    Warning: Cannot mod­ify header infor­ma­tion — head­ers already sent by (out­put started at /home/admin/public_html/wp-settings.php:465) in /home/admin/public_html/wp-includes/pluggable.php on line 850

  102. Rick Beckman says:

    Viewing your Web server in FTP, do you see a __MACOSX folder in the plugins folder? I’m not sure what would have cre­ated it, but for some rea­son, your WordPress instal­la­tion thinks its there or some­thing. Quite frankly, I’ve never come across some­thing like this before. Verify the files on your server, and delete the folder if it’s there. If it’s not, ask you host if they can track it down for you (it may be hidden).

  103. RickA says:

    Rick,

    I am using a sin­gle col­umn design and I want the mul­ti­me­dia box to be in the con­tent area. I can’t fig­ure out how to do this?

    Is it pos­si­ble to run text in a col­umn along­side it?

    Thanks in advance.

  104. Scot Herrick says:

    @Rick Beckman Two points:

    RE: _​_​MACOSX folder

    When you install the plu­gin from the WP Admin page (browse for a zip file), the _​MACOSX file shows up as part of the plu­gin result­ing in the error noted above. I dupli­cated it and couldn’t fig­ure out what was going on until I looked at the struc­ture of the .zip file.

    If you down­load the plu­gin using your down­load link, the same file is there. You have to unzip the file, then muck around in the folder struc­ture until you find the actual plu­gin file. So that’s the culprit.

    Second:

    Question: My CSS file changes, work­ing fine in custom.css, do not work at all with the same custom.css copy and pasted into the plu­gin in the css area. The custom.css file is in the Thesis Custom folder as needed, but when I exe­cute it, I get the plain vanilla Thesis theme instead of the fab­u­lous cus­tomiza­tions I have done ;>))

    My themes are in default loca­tion, but I have many blogs and they are located in a sub­di­rec­tory of \public_​html and then the installed WP blog with the Thesis theme. Is there any path issues to the CSS val­ues? \public_html\blog\themes\thesis\custom ver­sus \public_html\themes\thesis\custom?

  105. Pingback: How To Add Icons To Your Thesis Alert And Note Styles | Building Camelot

  106. mark says:

    Thanks Rick,

    I would like to sec­ond Dave’s com­ment above re: your “Super charge your blog” box that appears at the end of every post pro­mot­ing the the­sis theme. Providing a custom_​functions code for some­thing like this would be super cool.

  107. tino says:

    Hey Rick check this thread out:

    http://diythemes.com/forums/thesis-customization-tips/2797-problem-thesis-open-hook-plugin.html

    Let me know if you can fig­ure it out, thanks…

  108. Rick Beckman says:

    If it’s a prob­lem with the OpenHook plu­gin, it needs to be asked here as it falls out­side the scope of Thesis support.

    I won’t be on the board until very late this evening, so ask­ing here may be slightly quicker as well.

  109. Pingback: Integrating Dan Grossman’s WP Review Site and The Thesis Theme

  110. I’m work­ing on switch­ing my site over to Thesis, and OpenHook has proven invalu­able so far. I have only one sug­ges­tion, and if it’s been made before, just con­sider this another vote :)

    It would *rock* if you could dupli­cate the ‘lit­tle ass save but­ton’ at the top of the page and peri­od­i­cally through­out the page. The vast major­ity of stuff I’m doing at the moment involves the cus­tom css file, and hav­ing to scroll all­lll the way down each time to press the save but­ton is a lit­tle cumbersome.

    Other than that minor annoy­ance, OpenHook is fan­tas­tic — keep up the great work!

  111. Sebastian says:

    Hello Rick, thanks for a won­der­ful plugin.

    I am try­ing to use Openhook in order to insert a slideshow-​​application before my side­bars. Eventhough I have added the fol­low­ing piece of code in the cor­rect field of Openhook, with ‘Execute PHP’ enabled,

    ” ”

    I get the fol­low­ing error mes­sage where my slideshow oth­er­wise would be:

    ” Warning: include(/public_html/wp-content/themes/thesis/gallery.php) [function.include]: failed to open stream: No such file or direc­tory in /home/polysj4/public_html/wp-content/plugins/thesis-openhook/thesis-openhook.php(367) : eval()‘d code on line 1 ”

    Is there a prob­lem with the include-​​command, or have I missed some­thing very obvi­ous? Any help would be most appre­ci­ated, and thanks again for a truly help­ful tool.

  112. Sebastian says:

    ADDITION to pre­vi­ous comment:

    the line of code that I have inserted into Openhook is:

  113. Sebastian says:

    ?php include(‘/public_html/wp-content/themes/thesis/gallery.php’); ?

    though wrapped within the appro­pri­ate  — signs.

    I apol­o­gise for all the extra clutter

  114. lavonne says:

    Hi Rick,

    Great plu­gin, thanks. The site is here: http://myworldofsoaps.com
    I have the mul­ti­me­dia box dis­abled until I can get it set up the way I want, with a miniblog, using one cat­e­gory of posts from the main blog.There’s a wid­get plu­gin for this, and I want to put the wid­get in the mul­ti­me­dia box. Is this pos­si­ble? If not, can I put one cat­e­gory of posts there, using OpenHook?

  115. t says:

    I think there’s a small bug with your plu­gin. When I use the cus­tom functions.php file and add some­thing before the header, it appears between the nav bar and the top of the header. When I use your plu­gin and add it in the “before header” box it appears above the nav bar. Any suggestions?

  116. Rick Beckman says:

    The rea­son is that OpenHook’s code is fired prior to Thesis’ (plu­g­ins pre­cede themes in the WordPress hier­ar­chy), so it isn’t really a bug so much as a neces­sity. If you want some­thing below the nav menu, remove the default nav menu with the check­box in OpenHook, then add <?php thesis_nav_menu(); ?> *before* your code in the Before Header box, being sure that the “Use PHP” box for that area is checked.

  117. Stephen says:

    THANK YOU very much for OpenHook. It’s so handy just to pop in and change bits.

  118. Matthew says:

    Wow… I spent 3 or so hours ear­lier get­ting error mes­sages thrown up while try­ing to cre­ate my own hook. I then used this plu­gin and it worked with in 2 min­utes. LOL.

    Nice work!

  119. Mark says:

    I’ve uploaded the­sis open­hook to my plu­g­ins, but when I go to acti­vate it, the plu­gin doesn’t show up at all. I’ve tried installing and unin­stalling twice.. Please advise as how to get it to work. Thannks,

    Mark

  120. John Flynn says:

    OpenHook is truly amaz­ing, *almost* as impor­tant a con­tri­bu­tion as Thesis itself. :=)

  121. Kelley bell says:

    Hey gang,
    I would like to add a bit of text with a link to another site as follows:

    Read Kelley Bell’s Columns on The Huffington Post: http://www.huffingtonpost.com/kelley-bellwenzlaff/#blogger_bio

    How do I for­mat this so that the link is hot, and you just see “The Huffington Post” instead of the whole web address?

    Also, when using open­hook to place this, I am open to sug­ges­tions regard­ing the best place­ment on the site.

    I tried it under the header, but the text was so small and off to the left, it looked kind of bad. Any ideas?

  122. Boy this sure helps. Nice. Thanks.

  123. gary says:

    I am a real novice here. But I have installed the­sis in WP because I like the idea of hav­ing drop down combo boxes for Categories. I cant seem to make this hap­pen. For exam­ple:
    Software (cat­e­gory)
    Adobe Plugins (sub cat­e­gory)
    NIK Vivesa (sub cat­e­gory)
    Hardware (Category)
    Printers (sub)
    Scanners (sub)

    and so on. Then when choos­ing the Software cat­e­gory, the drop down would list Adobe and NIK. Using the Hardware drop down, choose Printers or Scanners. etc.

    Can this be done? and how?
    Gary

  124. Sire says:

    OK, I’ve down­loaded and installed it on my BS blog and it all went well, but I still have no idea how to work with hooks. Where would I be able to find a good site that explains work­ing with hooks in such a way that even an idiot could fol­low it.

  125. Pingback: 9 Reasons to use the Thesis WordPress Theme | The Expand2Web Blog

  126. John Stiles says:

    Hey Rick,

    Is there a dif­fer­ence in how open hook acts when WP is installed in the main folder or a sub folder?

    In a site with WP installed in a sub folder, the boxes for open hook are all dif­fer­ent and don’t have the stretch func­tion. Also the custom.css box at the top is miss­ing from the site where WP is installed in a sub folder.

    Is there some sort of path issue when the plug in is used on sites where WP is installed in a sub folder?

    This is a great plug in. Having the abil­ity to alter a site with these admin files is a huge time saver.

    Thanks,
    John

  127. Libidonous says:

    hey… you already rock with this one but are you prepar­ing some­thing spe­cial for us in con­nec­tion to Thesis 1.4 ?

  128. Mitch says:

    Well hello there. What is this fine post doing at the top of the page? Do I smell 1.4 fea­tured posts in action!?

  129. Hi, I just wanted to thank you for the excel­lent plu­gin. I am also recently a huge fan of the­sis (as you can see on my blog) and your plu­gin is going to save me a whole lot of time.

    All the best in the new year.

  130. Rick says:

    Hi Rick -

    Do you plan on adding the new “thesis_​hook_​feature_​box” option to your Open-​​Hooks plugin?

    Thanks!

  131. Josh says:

    won­der­ing the same thing as Rick. how do you add the fea­ture box using OpenHook?

  132. LuvablePug says:

    Hello,
    The styling that I added to .cus­tom #con­tainer on the cus­tom css file no longer ren­ders after I installed this plug-​​in. The body.custom is fine though. Do you know why the cus­tom class would stop working??

  133. LuvablePug says:

    Sorry… never mind, the issue was caused because I turned on the “full-​​width” option. The plug-​​in works great, thanks!

  134. Maniac says:

    Hello,
    I like this stuff, it would be nice if there are dif­fer­ent coulours on par­tic­u­lar parts of code (some­thing like in code editors)-or do you have some tips on good plu­gin for that? Other thing, are you going to imple­ment “Featrured box” ? Thank you anyway ;)

  135. Evelyn Lim says:

    Hello Rick, I just spent quite many hours learn­ing about Thesis and I have just installed your open­hooks plu­gin. Thank you for mak­ing things eas­ier for me as I am pretty much a beginner.

    Can I find out if fea­ture boxes are the boxes that are below your mul­ti­me­dia box? What would be the codes for these? I am inter­ested to have the same lay­out as the one on this website.

  136. Rick Beckman says:

    It’s been a while since I’ve checked com­ments in this thread — been so busy work­ing with Thesis itself, I’ve neglected this bad boy.

    Here are my plans for the next ver­sion of OpenHook, and no, I don’t have any clue about a release date — I’m still hop­ing Chris will just let me inte­grate the thing com­pletely into Thesis!

    • Support for Thesis 1.4’s new hooks.

    • More attrac­tive lay­out of the edit­ing boxes.

    • More rugged security.

    • Support for Thesis instal­la­tions in direc­to­ries other than thesis/ for custom.css editing.

    • And so on.

    Evelyn Lim: The fea­ture box in Thesis 1.4 appears at the top of your site in a defin­able place in the Design Options. The boxes you refer to (which I’m no longer using, actu­ally) were cre­ated using the process described here (sorry about the bro­ken images; such is the result of hav­ing imported con­tent from all of my blogs into one location).

  137. Tim says:

    Hi Rick -
    I want to use front­page slide show on only my front page. I put the php code in open hook “after header” and it works great. Problem is, it con­flicts with a plu­gin used on another page.

    How can I make this code work on only the front page?
    Even bet­ter, How can I exclude this code on a spe­cific page using open hook?

    Thanks — Love your work!

  138. Rick Beckman says:

    You can wrap your code with any one of WordPress’ con­di­tional tags.

    For exam­ple, to include stuff only on the front page of your blog:

    <?php if (is_front_page()) { ?>
    YOUR CODE HERE
    <?php } ?>

    Or to exclude con­tent from a cer­tain page, you will need the ID num­ber of the page you want to exclude from. Then, use the same setup as the “on front page only” code above, but use the ! operand to negate the con­di­tional, like this:

    <?php if (!is_page(#)) { ?>
    YOUR CODE HERE
    <?php } ?>

    The # should be replaced with the num­ber of the page in question.

    In both instances, you would need to check OpenHook’s “Use PHP” box for whichever hook you’re using dynamic code within.

  139. Tim says:

    Wow — That was sim­ple. I just learned a new PHP les­son — Thanks, Rick!

  140. Rick Beckman says:

    You’re very welcome!

  141. Is there any­way to make after_​post hook really after the post and before any third-​​party plu­g­ins using OpenHook? I’ll dig through the above com­ments to see if some­one else has asked. Thanks!! :)

  142. Miles Austin says:

    Is this com­pat­i­ble with WordPress 2.7? Notes say Compatible up to: 2.6.3. I am excited to use this as it sounds like it will help me tremen­dously in my new work with Thesis.

  143. Rick Beckman says:

    Yeah, it works with 2.7 for the most part. :)

    I’m hop­ing to improve com­pat­i­bil­ity in the future, when I have some time to work on it. Tons to do!

  144. Maniac says:

    when you are talk­ing about the new ver­sion and things to do :) , I will really appre­ci­ate if the “SAVE” but­ton has the fixed posi­tion so I dont have to sroll to the bot­tom of the page every­time I change something…

  145. Rick Beckman says:

    Ooh, a fixed save but­ton. Hadn’t thought about that one. That’s def­i­nitely prefer­able to a bunch of save but­tons strewn about after each box (unless I fig­ure out how to use Ajax to save just one box at a time w/​o refresh­ing the page). Since JavaScript makes about as much sense to me as Esperanto, I think I’ll be stick­ing with a fixed save but­ton for the fore­see­able future. Thanks for the sug­ges­tion, Maniac!

  146. Cynthia says:

    I’m cre­at­ing my own affil­i­ate ad in HTML and using OpenHook to insert it on my blog via the “After Comments” box. My ad includes a gif image and no mat­ter what I do, I can’t get it to show up. Are images inserted through OpenHook sup­posed to be in a par­tic­u­lar loca­tion on my host server? What is the cor­rect path­name to use?

    Thanks.

  147. Jacob says:

    Hi Rick,

    This is a fan­tas­tic plu­gin, thank you. However I’m hav­ing a prob­lem get­ting the default Thesis com­ments link to remove. I am run­ning the fol­low­ing code in the after post hook:

    <a href="">Permalink -
    -
    <a href="">Comments ()

    The code works but check­ing the “remove Thesis com­ments link” does noth­ing. I can’t remove it using the cus­tom css file either. Any idea what’s going on?

  148. Jacob says:

    Er, that’s not the code. It’s run­ning PHP too.

  149. Rick Beckman says:

    Cynthia, it entirely depends upon where you’ve uploaded the image on your server. If you’re plac­ing the image in your thesis/custom/images direc­tory, then that is the direc­tory for the image you’ll need to ref­er­ence in your image code.

    Jacob, are you using Thesis 1.4.2? There was a weird issue with 1.4 which pre­vented the remove_action() for the com­ments link from work­ing, but it has since been fixed.

  150. Jacob says:

    Just upgraded and prob­lem solved. Thanks again for a great plugin!

  151. Cynthia says:

    Rick,

    Here’s a follow-​​up to my pre­vi­ous ques­tion. I used your DIV tip above to get the text in my HTML ad (which I put in a table) to be styled like the rest of the Thesis text. I love the font and lead­ing, but now the style supercedes the cell­padding I enter in my HTML. Also, there’s too much space above my head­line and sub­head. Does this mean I have to mod­ify the CSS file? Which one? How?

    Thanks! (I really love work­ing with Thesis and OpenHook!)

    Cynthia

  152. Cynthia says:

    Rick,

    I put the image in that direc­tory and tried using full and par­tial path names and it still would not show up.

    I also was try­ing to make the image click­able with an affil­i­ate link.

    The image showed up and was click­able when I made the ad in Dreamweaver, but when I copied and pasted the text into OpenHook, I had to change the path names (from the one on my hard drive to the path to the file on the server) and just couldn’t come up with the right sequence of HTML to get the image to show in my table. Any ideas?

    Thanks!

    Cynthia

  153. James Stuart says:

    Has any­body had any luck with get­ting thesis-​​openhook to work as a plu­gin under MU?

  154. Hi rick,
    I’m using the­sis 1.4.2 and I hav­ing prob­lems with the custom.css, just cant see the text box.
    Are you havng this prob­lem to?
    Thanks.

  155. Rick Beckman says:

    If no text box for the custom.css is show­ing up, that’s because OpenHook couldn’t access the custom.css file. The box is hid­den in such a case to pre­vent larger problems.

    File per­mis­sions, file struc­ture, unusual server setups… Lots of things could pre­vent the file from being accessed.

    Most com­mon, though, is that Thesis is installed some­where other than in wp-content/themes/thesis/ (if the folder isn’t thesis/, OpenHook doesn’t touch the custom.css file).

  156. Oh! I guess this is the prob­lem I have the theme on thesis142/.
    Thanks!

  157. Derek says:

    OK, basic question — 

    I uploaded my logo, and used OpenHook before_​title hook with this:

    <img align=“left” src=“http://twilightearth.com/public_html/wp-content/themes/thesis1.3.3/custom/images/twilightearth_70.jpg” style=””/>

    and I see the above when I view the source code, but no image shows up.

    What am I doing wrong?
    http://twilightearth.com

  158. Derek says:

    Help!

    Using OpenHook to put logo into header: I uploaded the image, and I see the line in the ‘view source’ option, but the logo doesn’t show up. When I type the URL of the image in the address bar, I get a 404 page.

    Here’s the site: http://twilightearth.com

  159. iGoByDoc says:

    Hey Rick,

    Question for you. Just rein­stalled the­sis for a new blog I am devel­op­ing, and added open­hook to it.

    For some rea­son in open hook I do not see the custom.css: box. At the top of the screen is “Before HTML:”.

    Any ideas as to why the Custom CSS box would not be show­ing up in Open Hook?

    Thanks in advance!

    Doc

  160. Rick Beckman says:

    iGoB­y­Doc: Check out this com­ment just a few above yours. :)

    Derek: Looks like you got it sorted out? Looks good.

  161. James says:

    Just wanted to say thank you for this plu­gin. It’s very helpful.

  162. iGoByDoc says:

    Hi Rick, thanks for the quick answer.

    My atyle.css is located in wp-​​content/​themes/​thesis

    What should the file per­mis­sion be for open­hook to see it?

    Thanks, Doc

  163. Rick Beckman says:

    I assume it should be set to be server writable, but I’m not pre­tend­ing to know that much about server con­fig­u­ra­tions. Try 0777 as the per­mis­sions on it to see if that resolves it.

  164. Pingback: A Collection of Thesis Theme Reviews — rikin on the web

  165. Pingback: 50 Wordpress Resources that are Guaranteed to Improve Your Blog! | MattFlies.com -- Sarcasm, Tech, News, and More

  166. Darrell says:

    LOVE this plu­gin! Thanks for your time and effort in cre­at­ing it. Saves a great deal of time for us new­bies in cus­tomiz­ing the Thesis them.

  167. Rick Beckman says:

    You’re wel­come! I’m glad it’s been of use to you.

  168. Ivan says:

    Just pass­ing by to say thank you for the good plu­gin! I can do with it almost every­thing needed. And, very impor­tant — to edit the custom.css with­out even start­ing an FTP pro­gram and all that down­load­ing, edit­ing, upload­ing etc. :)

    Please, con­tinue sup­port­ing it, this obvi­ously becomes my main tool :)

    Thanks again!

  169. Brad says:

    Hey!

    Thanks for the AWESOME plu­gin. I was won­der­ing if there was a good way to use Openhook to do this:

    Thesis is set on my blog to have one side­bar, but on cer­tain Pages, I would like it to be the two side­bar style. Is there any­way to do an If/​Else state­ment in Openhook to help facil­i­tate this happening?

    Thank you so much!

    Brad

  170. Rick Beckman says:

    Unfortunately, not that I’m aware of. More advanced con­trol over the side­bars like that more than likely would involve hack­ing Thesis’ core to add in your con­di­tion­als, which I don’t rec­om­mend. However, with some CSS trick­ery, you could prob­a­bly achieve what you’re want­ing. Have you asked about this in the Thesis Customization forum on the sup­port board? Lots of styling gurus hang around there and should be able to help you out.

  171. James says:

    Hi Rick, is there a way to use OpenHook to add tweets in my header? When I add it, it seems to push the entire header down.

    Am I miss­ing something?

  172. Rick Beckman says:

    Well, I can’t say for sure with­out see­ing it in action, but you likely need to add some styling to the tweet so get it to appear where you want.

    Assuming the tweet is in a con­tainer called #tweet, you could use some­thing like this to put the tweet on the right side of your header:

    #tweet { float: right; }

    That will need to be added to your custom.css file, either via OpenHook (if that option is avail­able to you) or via man­u­ally edit­ing the file.

  173. Rick Wolff says:

    The scope of the Thesis project, what it’s done and what it plans to do, is so vast that it’s easy to assume Mr. Pearson & Co. want to cre­ate a new caste of coders/​designers/​consultants who are keep­ers of the Thesis secrets. That one of y’all devel­oped this OpenHook panel is direct refu­ta­tion of that. I won­der if you (or any­one) could give me encour­age­ment that I could single-​​handedly accom­plish my wish-​​list ( http://is.gd/kyDv ). I’d appre­ci­ate your thoughts. I’m on Twitter as @RickWolff .

  174. Alec Wild says:

    Rick,

    I love your plu­gin, thanks! I just upgraded to 2.0, and have this weird issue: the “Execute PHP on this hook” but­ton on the “After Header” hook won’t stay checked! Is this a lit­tle bug? Since I’ve got this code there …

    … I’m not see­ing my Nav Menu at all! I’ve tried all the L.A.Save Buttons, but to no avail. Ideas?

    Alec

  175. Alec Wild says:

    Sorry, the code is:

  176. Alec Wild says:

    php thesis_​nav_​menu();

  177. Alec Wild says:

    Rick,

    I nosed around in options.php and found …


    <input value=“1” id=“openhook_after_header_php” name=“openhook_after_html_php” type=“checkbox” /​>“

    and changed “openhook_​after_​html_​php” to “openhook_​after_​header_​php.” That seemed to do the trick.

    My first php cod­ing experience!

  178. RickA says:

    Thanks for the 2.0 update. Now for a request…how about allow­ing us to change the name of the “Button” to some­thing else? Even Chris allows that.

  179. Rick Beckman says:

    Yeah, my bad there. OpenHook was the prod­uct of close to ten hours non-​​stop cod­ing going from ver­sion 1.1 to 2.0. I got a lit­tle cross-​​eyed at times. I fixed the bug and 2.0.1 should show up in your dash­board for auto­matic upgrade soon enough. Thanks a ton for report­ing it!

  180. Rick Beckman says:

    I had con­sid­ered that, but after ten hours of star­ing at what seemed like a thou­sand dif­fer­ent hooks, I was just happy to release what I had and be done. Maybe in the future. :D

  181. Alec Wild says:

    Rick,

    Absolutely! It gave me an oppor­tu­nity to learn a lit­tle php. And thanks so much for the plu­gin. It allows hacks like me to look like real experts.

    Blessings,

    Alec

  182. Mary McRae says:

    This is amaz­ing! I was going to build another site using a dif­fer­ent theme, but now I’m con­vinced. First thing tomor­row I’ll be upgrad­ing to a devel­oper license. All other themes should just cease to exist — Thesis rules!

  183. James says:

    ack! I tried this and used open­hook instead of Notepad++ and ftp to change cus­tom css and now my logo is gone. I’m not sure what I could have done. I added to #tweet lines of code to the cus­tom css and have removed both of them but my logo is still gone.

  184. Donghyup Ryu says:

    I was won­der­ing if I could use “search box” within 404 page instead of error mes­sages. It seems to me OpenHook can cus­tomize 404 page.

  185. James says:

    What seems even more strange is I remem­bered the last custom.css I uploaded was prob­a­bly still in my recy­cle bin. I brought it out and my logo is still gone. Almost like some­thing is stuck and clear­ing out properly.

  186. Rick Beckman says:

    You can include what­ever you want on the 404 page; check out this extreme exam­ple (in OpenHook, use the code for “most other WordPress themes”).

    However, to include Thesis’ search form, use this func­tion in OpenHook:

    <?php thesis_search_form(); ?>

    Not sure what the styling would like on it, but I’m sure it’s noth­ing a few style tweaks in your cus­tom stylesheet wouldn’t handle.

  187. James says:

    OK, so some­thing very strange hap­pened. When I typed in the direct URL to my logo the url showed up in the browser as text. I uploaded my logo again and things seem to be work­ing normally.

    Not quite sure if it was an OpenHook issue or not, but this is the first time I’ve used OpenHook for custom.css.

    May be a bug?

  188. Rick Beckman says:

    I wouldn’t expect so; there’s no way that OpenHook could have affected your image file. Not sure what hap­pened there, but I’m glad you got it sorted!

  189. Donghyup Ryu says:

    Thanks, Rick.
    That code works for my blog.

  190. JHS says:

    Hey Rick! Thanks for the plu­gin update. I love it and am learn­ing more and more about using hooks.

    Now I need a tuto­r­ial on how to use the fea­ture box. (HINT, HINT) :-)

    Check out what I’ve done so far here: http://www.jhsiess.com

    Suggestions wel­come, of course.

  191. Brad says:

    Rick,

    Well you are the man. Thanks again for all of your hard work and being active on the com­ments here. Style & Grace.

    Best, Brad

  192. JHS says:

    Oops … I spoke too soon. Upgraded. But have to revert to the prior ver­sion because no mat­ter what I do, new ver­sion will not exe­cute php below the header. I have checked the box and re-​​saved about a zil­lion times. Same result. I didn’t make any changes other than to upgrade the plu­gin using the auto­matic upgrade fea­ture in WP 2.7.1.

  193. JHS says:

    Ah, I just real­ized what the prob­lem is. I have been using ver­sion 1.1. WP 2.7.1 is offer­ing an auto­matic upgrade to ver­sion 2.0, not 2.0.1. That’s why I got the error which I not see you wrote about above.

    My bad. I should not be doing this at mid­night, obviously.

    Thanks, Rick.

  194. Ivan says:

    Tell me! :) Where you could find such sup­port? You’re ask­ing politely Mr. Beckman to con­tinue the sup­port of the plu­gin because it’s impor­tant for you, and in 48 hours he says: “Please receive ver­sion 2!” :)

    Thank you, Rick! Deleted the old direc­tory, uploaded the new one and it worked instantly, keep­ing all pre­vi­ous settings :)

    Greetings!

  195. Lisa F. says:

    Rick:

    I find OpenHook to be invalu­able to me when I’m design­ing for clients. For one thing, it speeds the devel­op­ment process, because I can try things and replace things more rapidly than if I was con­stantly mod­ding the css and php files. For another, it makes the changes more trans­par­ent to the client once the files are turned over to them. They still might not have the skills to imple­ment new changes them­selves, but it’s less intim­i­dat­ing for them if I send instruc­tions to add some­thing to OpenHook than if I’d said add some­thing to the custom.php file. So, thanks!!

  196. Rick,
    Great update to 2.0 — extremely great. One lit­tle thing though… pleeeeeeeease bring back the stretchy edit­ing boxes! They were a major part of my work­flow, they made my job 100% eas­ier. They make the page shorter (not as much of a big deal now with the mul­ti­ple save but­tons) but more impor­tantly, I work far more effi­ciently when I can see a screen­ful of code rather than just 10 lines at a time.

  197. Rick Beckman says:

    Did those work on WordPress 2.7? Seems as though after I upgraded, they stopped work­ing, and since Chris and I only sup­port WordPress 2.7+ for Thesis, it didn’t seem unrea­son­able to expect the same with OpenHook.

    If I can get a solu­tion work­ing in 2.7, I may add it back. However, I’ll be hon­est and say that I have no idea how that JavaScript worked — I never got past “Hello world” in learn­ing JavaScript. The resiz­ing script was sim­ply car­ried over from the plu­gin that OpenHook was based on.

  198. They worked on WP 2.7, but nei­ther of the sites I’ve upgraded OpenHook on are run­ning WP 2.7.1, so maybe there’s some­thing going on there. I’m mod­er­ately decent with javascript, I’ll poke around and see if I can spot any­thing and let you know if I find anything.

  199. Is it pos­si­ble to rename the lit­tle ass save button?

  200. Hey Rick, I fig­ured out a solu­tion. It’s not as slick as the pull-​​down method, but I think it works even bet­ter. I put two but­tons under each textarea — one but­ton adds 15 rows to the textarea, the other con­tracts the textarea by 15 rows. I made a few other minor changes related to this as well, and put a new options.php file up for you to down­load and check out if you like: Right click and save, then rename the phps file to php. I started com­ment­ing on line 235 to explain every­thing I did in detail. No credit required if you decide to use my changes, just happy to help out.

  201. Henry M. says:

    Thanks for a this great work rick! Two ques­tions though:

    1. Is there any easy way to be noti­fied when you’re updat­ing OpenHook (i guess the auto-​​alert sys­tem built in word­press doesn’t work when you don’t host the plu­gin in the wordpress.org repository)?

    2. Do you have any nice resources where I can find inspi­ra­tion for all the pos­si­bil­i­ties this plu­gin gives us? Like the exam­ple for cus­tomiz­ing the footer.

    Thank you!

  202. Rick Beckman says:

    Thesis is hosted w/​ WordPress, and you should be noti­fied when updates are available. :)

    As for resources… Well, skies the limit. You can use just about any markup or WordPress code you could want in OpenHook. Better to know what you want and ask for it then to be given a ton of exam­ples of stuff you prob­a­bly don’t need, in my opin­ion anyway. :)

  203. Josh says:

    Rick, hi. I think I’m a lit­tle con­fused as to what to put in some spot. for exam­ple, say I want to do the nav menu switch from top to bot­tom of header. What exactly do I enter into the textbox?

    Thanks!

  204. Josh says:

    Another ques­tion Rick. I’m try­ing to put an adsense unit in the con­tent area.

    It shows up, but above the con­tent and is not aligned accord­ing to my CSS (float:left;)

    how would I put this in the con­tent area? Thanks again.

  205. Valerie says:

    Hi Rick,

    I’ve been try­ing to unzip this file and can­not. I’ve deleted it twice and reloaded but to no avail. Any suggestions?

  206. Rick Beckman says:

    If you’re using WordPress 2.7 or newer (which is required to use Thesis and thus, OpenHook as well), you can install the plu­gin via the auto­mated installer within WordPress. No need to down­load the above file at all. :D

  207. Rick Beckman says:

    It will be in the next ver­sion, per my com­ment above. :D

  208. iGoByDoc says:

    Hi Rick,

    Not sure why, but I am run­ning WP 2.7.1 and upgraded to your Openhook 2.0 the day you released.

    The WP auto installer in my admin is not show­ing a 2.1 upgrade available.

    Any ideas as to what’s up? Should I just DL from here and upload?

    Thanks,

    Doc

  209. Rick Beckman says:

    The exact code to use is included in OpenHook, listed along with the check­box for remov­ing the nav­i­ga­tion menu from “Above Header.” :)

  210. Rick Beckman says:

    What code are you using? There’s no rea­son some­thing like this shouldn’t work:

    <div class="adsense_ad">YOUR ADSENSE CODE</div>

    …with this in your custom.css file:

    .adsense_ad { float: left; }
  211. Rick Beckman says:

    Ooh, my fault. I for­got to change the ver­sion in the plu­gin file itself; no won­der the plu­g­ins direc­tory didn’t con­sider my changes a new ver­sion! Thanks for let­ting me know; I prob­a­bly would never have noticed this on my own.

    I fixed the over­sight, and the auto-​​update should appear soon-​​ish. However, there’s no harm in doing a man­ual update if you don’t want to wait. The only change is described in the changelog in the post above, so it may not be a big deal at all for you not to imme­di­ately upgrade. No harm either way.

  212. iGoByDoc says:

    Awesome… glad I decided to point it out.

    In no rush, blog work­ing fine, so I will wait for the auto installer. Just love the new auto installer — so much easier!

    Thanks again,

    Doc

  213. Josh says:

    I tried putting the code in the other, but it had php in it. basi­cally it calls…

    adsense_singlepost_top_square.php

    and uses the style you men­tion. hold on a sec… here’s how it’s resolving

    and the CSS I’m using is:

    #adsense_singlepost_top_square {
    float: left;
    margin-right: 10px;
    }

  214. Josh says:

    arrrg, ok so the code didn’t show up. It’s putting the google ad right after the con­tent div and right before the post div.

  215. Rick Beckman says:

    Do you have a link where I can see this at?

    (And when post­ing code in blog posts and com­ments, always, always, always escape the code, that way it shows up. :D)

  216. Josh says:

    gotcha. here’s the link — http://www.boulardii.net/

  217. Rick Beckman says:

    Try also adding this to your custom.css file:

    .custom div.post_box { clear: right; }

    That should do it.

  218. Josh says:

    Perfecto!!!!! excel­lent man. worked like a charm. duh! clear!!! I shoulda know that! Thanks Rick!

  219. RickA says:

    This NextGen Gallery short code [singlepic=1,188,141„right] doesn’t get processed but shows up where the image is sup­posed to be. Is there a way to use short codes with OpenHook?

  220. Rick Beckman says:

    The option to parse short­codes… Now that’s a good fea­ture request! Thanks, dude!

    In the mean­time, you can get around that short­com­ing with this:

    <?php
    $gallery = '[singlepic=1,188,141,,right]';
    $gallery_parsed = do_shortcode($gallery);
    echo $gallery_parsed;
    ?>

    Make sure to select to parse that code on whichever box you’re using in OpenHook. Let me know if that fails (and what the error is, if any).

  221. RickA says:

    Doesn’t seem to be work­ing. I get [SinglePic not found] but the short code works fine when used on a WordPress page. I just retested it to make sure.

  222. Josh says:

    Hey there Rick, just a side­note about a con­flict I found after upgrad­ing to 2.0.1 — I’m using the K2 theme while I cus­tomize my Thesis site. Well, Openhook causes older post not to show up. I get some con­flict with capabilities.php line 920 — not sure if this would con­cern you too much, but thought you would like to know about it.

  223. Josh says:

    just to clar­ify, the con­flict is when K2 is acti­vated. every­thing is fine with Thesis activated.

  224. todd says:

    I don’t know what I am doing wrong but I can’t get it to unzip. I have down­loaded many plu­g­ins for word­press and know what to do but when I try to unzip this plu­gin it keeps telling me I already have a file with that name. the thesis-​​openhook file with 0kb gets loaded and the folder with thesis-​​openhook never gets unzipped.
    any­body else have this prob­lem or am i alone

  225. Rick Beckman says:

    I’m not too famil­iar with the [singlepic] short­code, but I’m bet­ting what’s hap­pen­ing is that it can only be used within the loop (read: within posts them­selves); out­side of the loop, the short­code has no idea which post it’s access­ing, which picture(s) it should be ref­er­enc­ing, and so on. Not sure. If I can fig­ure out how to trick it, I’ll let you know.

  226. Rick Beckman says:

    The file works fine for me; how­ever, there’s no rea­son to down­load it. Just use the auto­mated plu­gin installer in WordPress. Search for OpenHook, and it’ll come up to be installed. Easy. :D

  227. todd says:

    thanks , got it. I have never installed a plug-​​in that way. I like to have them on my sys­tem so I can slide them all over in one move on new sites but that works. thanks for the quick response.

  228. Rick Beckman says:

    Once it’s installed via the auto­matic installer, you can down­load it to your comp via file man­ager. Again, not sure why the down­load­able archive above doesn’t work… Does it work if you down­load it from WordPress’ plugin’s direc­tory? Their archives are auto­mat­i­cally gen­er­ated, so it’ll be ever-​​so-​​slightly dif­fer­ent than the one I cre­ated and have avail­able above.

  229. Mike says:

    Rick,
    Not sure what I did, but I had the open hook rock­ing and rolling at http://www.michiganfireservice.com. Then I upgraded the open­hook to 2.0, and was run­ning a 1.3 some­thing on the­sis. I got error up the wazoo, so I unplugged the open hook and upgraded the­sis to 1.4.2 and to 2.7.1 on wp
    I plugged in open hook and get
    Warning: main(TEMPLATEPATH/lib/classes/options.php): failed to open stream: No such file or direc­tory in /home/content/m/o/b/mobrian/html/mifireservice/functions.php on line 22

    Fatal error: main(): Failed open­ing required ‘TEMPLATEPATH/lib/classes/options.php’ (include_path=’.:/usr/local/lib/php’) in /home/content/m/o/b/mobrian/html/mifireservice/functions.php on line 22
    Any ideas?

  230. Rick Beckman says:

    Not sure why, but there is a functions.php file in the root of your site, which is not needed by WordPress, Thesis, or OpenHook. It’s the file throw­ing the error, so it’s being used by some­thing, which is odd. Try delet­ing it, see­ing what happens.

  231. Mike says:

    Rick, that worked great, now I just have to fix some hooks that were lost. Not sure if I coded some­thing wired, but I will get it up and run­ning, thanks for your help!

  232. E.J. says:

    Rick -

    Trying to put an image above the title “Home” on the home page only of test site WebChannel33.com. Using Openhook, I can get an image in about the right place by using the Before Content space.
    However, I do not know how to invoke the con­di­tion that the image should only show on the home page. I tried putting the code below in the Before Content box:

    <?php if (is_​home()) { ?>
    <img src=“http://webchannel33.com/wp-content/uploads/2008/08/480x2701.jpg” alt=“480x270 test image” title=“480x2701” width=“480” height=“270” class=“size-full wp-​​image-​​232″ /​>
    <p>Text before con­tent, not before con­tent BOX.</p>
    <?php } ?>

    and checked the box to ” Execute PHP on this hook “. However, the image does not show on any page. (The same test image also cor­rectly appears a few para­graphs down the page, cap­tioned as “480×270 test image”.)

    My even­tual goal is to get video(s) into the Before Content loca­tion, on var­i­ous pages using con­di­tions. So it seemed to me that first I should try to learn how to place jpg images in the desired loca­tion, and later I will work on place­ment of the video player.

    If the error is appar­ent, please let me know.
    Thanks, — E.J.

  233. Rick Beckman says:

    WordPress’ con­di­tional tags are a bit con­fus­ing so far as their names go: If you’re using a page as a home page (rather than your blog) as you are doing, is_home() won’t work because is_home() always refers to the blog page. To tar­get your front page, whether it be the default or set to a cus­tom page, you should be using is_front_page(). Hope it works for ya. :D

  234. E.J. says:

    Rick -
    Thanks, it worked.
    I had not noticed, until after read­ing your com­ment above, that the test image was show­ing only on the “Blog” page. After mak­ing the change you rec­om­mended, the test image shows on the home page and only on the home page.

    Thank you for your patience towards those of us in an early learn­ing mode.
    Best regards,
     – E.J.

  235. Ken Grogan says:

    Hi Rick — I just wanted to let you know about a lit­tle glitch I encoun­tered with 404 Title — if I enter this:

    and save, the 404 page looks fine, but the next time I see this in the 404 Title (one back­slash per quote):

    and after the next save I see this (two back­slashes per quote):

    and then after the next save I see this (three back­slashes per quote)

    at this point I start get­ting the expected PHP error:
    Warning: Unexpected char­ac­ter in input: ‘\’ (ASCII=92)

  236. Ken Grogan says:

    Oops, I included the PHP tags and that is obvi­ously a no-​​no. This is the 404 Title code I added:
    echo "Content Not Found";
    which got turned into
    echo \"Content Not Found\";
    and then
    echo \\"Content Not Found\\";
    and finally
    echo \\\"Content Not Found\\\";

  237. Rick Beckman says:

    I hate slash issues. I’ll take a look at it and may have to roll out another point release. Thanks for report­ing this!

  238. Rick Beckman says:

    You can use Content Not Found in that box; no need to use an echo state­ment. That’ll let you avoid the bug for now. :D

  239. Chris Stroud says:

    Hi Rick,

    Thank you for the plu­gin, I should have started using it months ago. I am cur­rently re-​​doing my site at blog.chrisstroud.net and have a quick ques­tion. I am putting a footer after each of posts and do not wan it to show up on the home page. I know I should be using if(is_single()) { some how but do not know how to apply. Any help would be appre­ci­ated. Thank you.

  240. Rick Beckman says:

    Well, I could be more spe­cific if I knew what footer code you were using, so I’ll just assume a basic para­graph. Try this out.

    <?php if (is_single()) { ?>
    <p>Your Footer Text Here</p>
    <?php } ?>

    That should do it.

  241. Chris Stroud says:

    Worked per­fectly. Thank you.

  242. Rick Beckman says:

    You’re wel­come, dude!

  243. James says:

    I have tried to insert the fol­low­ing google code into the “before com­ment meta” hook to no avail. I have enabled php, but noth­ing ever shows up.

  244. Rick Beckman says:

    Please escape your code prior to post­ing it in comments. :)

  245. James says:

    10 – 4

    How’s this:
    <?php
    if (is_​page() )
    { ?>
    <script type=“text/javascript”><!–
    google_​ad_​client = “pub-​​22222222222222″;
    /​* 468×60, cre­ated 2÷17÷09 */​
    google_​ad_​slot = “1694247595”;
    google_​ad_​width = 468;
    google_​ad_​height = 60;
    /​/​ – >
    </​script>
    <script type=“text/javascript“
    src=“http://pagead2.googlesyndication.com/pagead/show_ads.js”>
    </​script>
    <?php }
    ?>

  246. Rick Beckman says:

    Much bet­ter. :) Now, with that, what’s the link to your site? I like to try to see things “live” if at all pos­si­ble… Helps me to visu­al­ize a solution.

  247. Rick Beckman says:

    Heads up, every­one: If you’re part of the élite group of legit­i­mate Thesis users (i.e., your copy isn’t pirated), you can now get OpenHook sup­port in a nice, orga­nized envi­ron­ment on the DIYthemes sup­port board. :D

  248. Pingback: If you use WordPress, you need Thesis | John McLearran

  249. ryan shell says:

    Rick,

    Thanks a ton for cre­at­ing this! I need a lit­tle (actu­ally a lot) of guid­ance. My home page acts as a blog but I want to have spe­cific bit of info show up prior to the begin­ing of the blog entries, not to be con­fused with info that shows up on every blog post. For exam­ple, the page would look like this:

    - Static text that doesn’t move (kind of an intro to the site)
     – Blog entry 1
     – Blog entry 2
     – .….….….….

    Understand what I’m get­ting at? Any idea how that can be done?

  250. Rick Beckman says:

    Hey, Ryan. Glad you enjoy OpenHook! To add con­tent before the posts on the home page, use the “Before Content” box, but wrap your code like this:

    <?php if (is_home()) { ?>
    YOUR CODE HERE
    <?php } ?>

  251. Jo Anne says:

    Hi Rick, thank you so much for all your work to make me not have to work so hard. (And since I don’t know very much, I really have to work hard any­way!) I fol­lowed your video and added a copy­right state­ment via my custom_​functions file, and fol­lowed instruc­tions some­where for switch­ing the nav bar to after the header. Since I just love to have options, I was so excited to see that Hooks give so many options. The prob­lem is that, as I look at the list of Thesis Hooks, I can’t really tell what most of them are or what they will do for me. For instance, “thesis_​hook_​after_​content” means noth­ing to me about what cool thing that could do for me. As some­one who is mainly using Thesis as a sta­tic web­site until I can get orga­nized to begin blog posts in addi­tion, is there a hook or two or three that you think I could ben­e­fit from? Thanks, I appre­ci­ate what­ever you or your sub­scribers want to sug­gest. http://www.tnlvirtualsolutions.com

  252. Dr. K says:

    Hi. I went to imple­ment open­hook and found this error on the page that loaded.

    Unfortunately, your custom.css file does not appear to be editable by the server, so you will not be able to edit it via the OpenHook inter­face. Sorry for the inconvenience.

    How do I fix this? Blog is hosted on my server…

    Thank you
    Rick

  253. Rick Beckman says:

    Using your file man­ager, change the per­mis­sions on the custom/custom.css file to “666” (or “0666” or writable by everyone).

  254. Chris says:

    Thanks this is going to save me a TON of work and time!

  255. ryan shell says:

    Rick,

    I’m a bit con­fused. First, let me men­tion that I’m run­ning Thesis on two dif­fer­ent sites, both con­fig­ured the same way. Both sites are using open­hook, but they appear to be dif­fer­ent ver­sions. The ver­sion that is work­ing only has one “lit­tle ass save but­ton” at the very bot­tom. The ver­sion that isn’t work­ing has a “lit­tle ass save but­ton” under each sec­tion. Have you had any­one else hav­ing this issue?

    Site that open­hook works with (noth­ing cur­rently imple­mented, but I did just test to make sure it was work­ing) is greensboropolitics.com. Site it isn’t work­ing with is greensborocommunitywatch.com.

    Thanks for any help you can provide.

    Ryan

  256. Rick Beckman says:

    By “not work­ing”, what do you mean? Are there any errors? Are you able to enter cus­tomiza­tions and save? If you are, does noth­ing hap­pen on the site itself?

    My ini­tial guess is that you’re using a caching plu­gin of some kind which isn’t updat­ing after OpenHook’s set­tings are changed. You’ll need to dump the cache via that plugin’s set­tings after any set­tings are changed in OpenHook.

    That said, your work­ing site is run­ning an out­dated ver­sion of OpenHook. If you’re run­ning a recent ver­sion of Thesis, you’ll want the lat­est ver­sion of OpenHook to take advan­tage of all of the newer hooks and so on. :D

  257. Stephen Ross says:

    My prob­lem is maybe one of those ‘lots of things’ other than the file struc­ture. It’s located here: http://www.lawnamackie.ca/wordpress/wp-content/themes/thesis/custom/custom.css

    Can you help?

  258. Stephen Ross says:

    solved my problem — thanks

  259. Rick Butts says:

    You men­tion that to remove the Thesis attri­bu­tion in the footer (and yes, I do have a devel­oper multi-​​site license) — you use the hook men­tioned below to edit custom_functions.php

    - but where do you put this hook in your “open­hook” interface?

    I’ve tried the Footer box (just dis­played my code as text) and the Before HTML — did nothing.

    Where should we place hooks for sitewide configuration?

    Thanks — rick

  260. Rick Butts says:

    Okay WAAY down at the bot­tom of OpenHook — I see you’ve included a check­box to remove the footer attribution — whew.

    Thanks — are there any other kinds of sitewide hooks that don’t go into a pre­set box on OpenHook?

    Where would they need to go?

    thanks — rick

  261. Rick Beckman says:

    Any of the Thesis remove_actions() prob­a­bly won’t work in OpenHook’s boxes — the box con­tent is fired before Thesis adds the actions, I think. That’s why I included the check­box removal system.

  262. Alec Wild says:

    Rick,
    I’m using

    if (is_page(array('232','234','236','303','383'))) remove_action('thesis_hook_header', 'thesis_default_header');

    in the Before Header box, and sim­i­lar remove_actions() in other OpenHook boxes, and they work per­fectly. A quick test showed that remove_action('thesis_hook_footer', 'thesis_attribution') in the Before Footer box worked to remove the attri­bu­tion. Useful if you want the attri­bu­tion removed only on cer­tain pages.

  263. Rick Beckman says:

    That’s good to know, Alec! I haven’t messed around with cus­tomiza­tion via OpenHook too much — I more or less test it enough to make sure it works (bar­ring the occa­sional bug or two), so a lot of its power is unknown even to me. I leave it to you users to do the cre­ative stuff… Kinda like Thesis itself: we know it’s a pow­er­ful sys­tem, but there are sites out there which blow Chris and myself away. We can never under­es­ti­mate users’ creativity!

  264. Ray Atreides says:

    Hi Rick,
    Firstly, thank you for OpenHook for Thesis! A great tool!

    I have a small prob­lem just sur­faced after mak­ing an entry in Openhook.
    The entry was placed in ‘Archive Info Box’
    The ‘code’ .…..

    Execute PHP on this block = Is ticked
    Remove Thesis default archive info = Is ticked

    I get the results that I want when I use the Category & Archive Pages but the error mes­sage occurs when I use the stan­dard Thesis Search Box. After typ­ing in a key word, the search results page is dis­played with the fol­low­ing error message…

    Catchable fatal error: Object of class WP_​Error could not be con­verted to string in /nfs/c03/h01/mnt/47704/domains/blog.youcanmakeitifyoutry.com/html/wp-content/plugins/thesis-openhook/functions.php(627) : eval()‘d code on line 3

    I am not an expe­ri­enced PHP user and would appre­ci­ate it if you could help me on this one.

    Regards,

    Ray

    I am using…
    Thesis 1.4.2
    Openhook 2.01
    PHP 5

  265. Ray Atreides says:

    Hi Rick,

    Noticed on my pre­vi­ous com­ment that the code did not appear…

    Here it is again wrapped in “”

    Regards,

    Ray

  266. Ray Atreides says:

    Hi Rick,

    My apolo­gies I missed the bit about ‘escaped code’.

    Here is the code!

    <div id=“archive_info”>
    <h1><?php single_​cat_​title(); ?></​h1>
    <div id=“category_description”><?php echo category_​description(); ?></div></div>

    Regards,

    Ray

  267. E.J. says:

    Ray -

    Rick has pointed out above, for exam­ple com­ment 239, that for the code to show up it in a WordPress com­ment it has to be “escaped”. This web­site will do the con­ver­sion:
    http://www.htmlescape.net/htmlescape_tool.html

    Regards,
    –E.J.

  268. Ray Atreides says:

    Hi Rick,

    I have just used the htm­lescape tool and here the ‘escaped’ code…

    <div id=“archive_info”>
    <h1><?php single_​cat_​title(); ?></​h1>
    <div id=“category_description”><?php echo category_​description(); ?></div></div>

    Regards,

    Ray

  269. Rick Beckman says:

    My guess is that the code is fail­ing because on a search results page, category_description() isn’t a valid function.

    Try wrap­ping your code in a con­di­tional so that it only is active if a non-​​search page is being viewed. The (neg­a­tive) search con­di­tional is !is_search().

  270. Ray says:

    Hi Rick,

    Thank you for your response and assistance.

    I have tried for a cou­ple of hours with no suc­cess to fol­low your advice (which makes sense to me log­i­cally) and wrap my code in the con­di­tional as you quoted, using Openhook as before.

    I looked up the WP Codex, W3Schools site etc for exam­ples but unfor­tu­nately my lack of PHP knowl­edge has defeated me.

    If you can would you please give me an exact example.

    Regards,

    Ray

  271. Karen Clark says:

    Hi — I have suc­cess­fully used open­hook to add word­ing but I am strug­gling to get images in place. I put in code src=image path; and just get worded detail on site, no pic­tures. Can some­one please sug­gest what I should put in open­hook to add images in var­i­ous spots. I copied code from other images I have placed and am clearly miss­ing the point/​ putting too much in openhook/​ or not enough! Say I want to add a nav bar to footer; I put all my nav bar detail in the footer box; as is for my ini­tial header, and just got all the code. I am sorry if this is a silly new­bie ques­tion! But really thank you!

  272. Char James-Tanny says:

    KingdomGeek, I have to tell you that I’m really lik­ing OpenHook. My hus­band found and installed it after we got started with Thesis, and it really is quite easy to use.

    I think I’ve tripped over some­thing, though. I want to move the nav­i­ga­tion so that it falls after the fea­ture box and before the content_​box div. But whether I place it before content_​box or after header, it actu­ally shows up before feature_box.(I would expect it to show up before feature_​box if I spec­ify after header…it’s the before content_​box that I think is confused.)

    I can mod­ify custom_functions.php to get around this…I just wanted you to know :-)

    Thanks again for an awe­some plugin!

  273. Ray says:

    Hi Rick,

    Sorry to has­sle you but are you able to help me on this one?

    Should I post on the Thesis Forum maybe?

    Regards,

    Ray

  274. Hi Rick,

    Can you tell me the code you used to get the Creative Commons icon with link back to site next to your name in the copy­right? Noob here.…my code so far is:

    Copyright 2009 – , Avinash Jude D’Souza.

    Is there any way I can amend the Thesis attri­bu­tion? What I want to say is “This site is pow­ered by Thesis and WordPress” where both Thesis and WordPress are links.

    Cheers,
    Nash

  275. JJ89 says:

    I’ve been play­ing around with the hooks for days, and just got referred to your plu­gin, what a relief!!!! Thanks for a great work­ing plugin.

  276. Rees Maxwell says:

    Hey KingdomGeek… I’m lovin’ your OpenHook addi­tion to Thesis! I do have one sug­ges­tion. Not sure how much of a pain it’d be to add this, but I really like how Chris P. added the + boxes that drop down more info … your OpenHook could be much eas­ier and quicker to nav­i­gate if you would put a + after each head­ing, like Custom Stylesheet, Before HTML, etc. Then what would drop down would be the input box, and “Execute PHP on this hook” type pro­cess­ing check­boxes, and the “Little Ass Save Button.” This way I could quickly get to just what I want to edit, with­out too much scrolling.

    Again, maybe that’s gonna be too much of a pain to imple­ment, but it seems like a good idea, yes?

  277. Rick Beckman says:

    That is a good idea… I just have no clue about JavaScript. Haven’t had much time to mess with OpenHook over the past few weeks, but hope­fully I’ll be able to get another improve­ment out into the wild soon. I hope.

  278. Rick — are there any incom­pat­i­bil­ity issues that you know of between Thesis 1.5 beta 3 and OpenHook? I was mak­ing changes via OpenHook to my custom.css file that weren’t reflected in the custom.css file on my server.

    *I* saw the deletions/​edits on my admin screen — but another admin kept insist­ing that I hadn’t make the changes, ’cause he couldn’t see it on his screen. (Yes, I’d hit the little-​​ass but­ton mul­ti­ple times!) He even logged out and then back in to triple-​​check. When I FTP-​​ed in to my server to down­load the file and prove him wrong — well, he was right. (I ended up mak­ing the edits offline & upload­ing a fresh file to my server.)

    I love the plu­gin and would love to con­tinue using it. Let me know if I can pro­vide more infor­ma­tion or help in any way.

  279. John McLearran says:

    It would be great if you could some­how “export” the changes you’ve made in Thesis OpenHook as prop­erly for­mat­ted custom.css and custom_functions.php.

    Any plans on adding this func­tion­al­ity in the future?
    (I’d even be will­ing to pay for a ver­sion that had that option…)

  280. Rick Beckman says:

    Exporting the custom.css is easy: cut, paste, done. :)

    I’ve thought about doing an export fea­ture, but given the ease of copy/​paste and the unlike­ly­hood of using so many hooks that copy/​paste becomes an undo bur­den, it’s not too high a fea­ture on my list. Once Thesis itself allows export­ing of set­tings, an export of OpenHook set­tings may get a sec­ond look as well. Good sug­ges­tion, though.

  281. Rick Beckman says:

    It should work per­fectly. If you’re see­ing the custom.css updated in the OpenHook screen, that means the hard file on the server is updated as well. There’s no caching or any­thing at work, and when­ever the page is loaded, it pulls directly from the file.

    The only incom­pat­i­bil­ity between Thesis 1.5b and OpenHook is that 1.5b intro­duces a cou­ple of new hooks which I don’t think I’ve added spots for in OpenHook.

  282. Penny says:

    Thanks for this plu­gin. Such a life-​​saver for me!

  283. John Gilmore says:

    Hi Rick,

    I’m new to all this cod­ing and hoped that OpenHook would help resolve some of the issues I’ve been strug­gling with for days. Maybe you could help.
    1. I’d like to put a small logo image to the left of, — not above, and not below — my Title and tagline in the Header.
    2. I want to put the out­put of the Global Translator Plugin into, (maybe a box?), on the Right Side of my Header (it wants to go into a side­bar wid­get)., and.
    3. I’d like to get rid of the WP Admin link in the footer.

    I will be most grate­ful for any direc­tions, advice or links to res­o­lu­tions to these issues.
    Thanks…John

  284. Alec Wild says:

    Hey John,

    You can be rid of the WP Admin link by going to “Thesis Options” under the “Appearance” menu. On the bot­tom left there are check­boxes for the Admin link’s level of visibility.

    The eas­i­est way to do the logo on the left is to cre­ate a ban­ner, 960 px wide or so, with the logo and title and tagline as part of the ban­ner. Then you can just replace the title and tagline with your cus­tom banner.

    Not sure about putting a con­tent box over on the right above your side­bar, but my inter­est is piqued … I’ll look into it a bit.

    Cheers,

    Alec

  285. Rick, hi,

    I’ve added this line in the Feature Box area:

    menu.html’ is sit­ting in the ‘cus­tom’ folder, right next to the ‘custom_functions.php’ file and the ‘Execute php’ check box is checked.

    But absolutely noth­ing appears in the func­tion box.

    I’ve tried dif­fer­ent variations:

    and..

    When I cre­ated a new com­pletely unre­lated php page in a sep­a­rate domain and call that file using every­thing works perfectly.

    Any help much appreciated!

    Cheers,

    Martin.

  286. Hmmm — the php lines I entered don’t show up. Here’s another go:

    I’ve added this line in the Feature Box area:

    /​/​

    menu.html’ is sit­ting in the ‘cus­tom’ folder, right next to the ‘custom_functions.php’ file and the ‘Execute php’ check box is checked.

    But absolutely noth­ing appears in the func­tion box.

    I’ve tried dif­fer­ent variations:

    /​/​

    and..

    /​/​

    When I cre­ated a new com­pletely unre­lated php page in a sep­a­rate domain and call that file using every­thing works perfectly.

    Any help much appreciated!

    Cheers,

    Martin.

  287. Sorry — still can’t show the calls I’ve used. I can send you some screen­shots if you can let me have an email add.

    Cheers,

    Martin.

  288. Rick Beckman says:

    Do you have the Feature Box enabled on the Design Options page?

    Also, note that when­ever post­ing raw code in WordPress — whether in posts or com­ments — you need to escape it. ;)

  289. Rick, hi,

    Yes — Feature Box is enabled.

    I’ve had the fea­ture box work­ing using the custom_functions.php file but I’m try­ing to cre­ate an easy way to revert to a default mes­sage in the Feature box when there’s noth­ing impor­tant to say, and to do it through the plugin!

    The escaped call vari­a­tions I’ve used in the plu­gin are here:

    <? include(“menu.html”); ?>
    <php? include(“menu.html”); ?>
    <?php include(“menu.html”); ?>

    I’ve got the Execute PHP check box checked.

    Cheers,

    Martin.

  290. Rick,

    I was using the scrolling ball on my mouse to scroll around in OpenHook and sud­denly ALL the text got much smaller. Also, when I checked my site, every­thing is com­pressed on it, too. What hap­pened and how can I undo this? PLEASE HELP!!!

    Thank you.

    Cynthia

  291. Rick,

    By “all the text got smaller” I mean ALL of it — the descrip­tions of the OpenHook boxes, the text on other pages of the Admin area, the site itself. In addi­tion, the site’s col­umn widths changed and got smaller. I was just scrolling in the OpenHook plu­gin when these changes seemed to make them­selves!! What could I pos­si­bly have done to change those set­tings? How can I restore the default col­umn widths and font sizes?

    Thank you!

    Cynthia

  292. Rick,

    My prob­lem is a “fea­ture” of Firefox 3 — I must have had the “con­trol” key down while I was scrolling down with the scroll wheel of my mouse and the com­bi­na­tion reduced the size of every­thing on the page. I have fixed it now.

    Thanks.

    Cynthia

  293. MK says:

    new to word­press, the­sis & the­sis openhook.

    am try­ing to load header: http://www.randomspecific.com have uploaded .gif image via cyber­duck and then entered:

    but the image is bro­ken. have tried a .png as well but no dif­fer­ence. clue­less & in need of help. cheers.

  294. Rick Beckman says:

    Could you please escape your code to pre­vent WordPress from strip­ping it? Thanks.

  295. On the 404 Title entry, if I enter the word “don’t” this gets changed to “don\‘t” and even­tu­ally more slashes appear. Just wanted to let you know.

  296. Rick Beckman says:

    The third option is the cor­rect for­mat, but it will only work if menu.php is in the wp-content/plugins/thesis-openhook/ folder.

    If you want to store the file else­where, you need to include the absolute or rel­a­tive path to the file.

  297. MK says:

    thanks for the tip on adding code here.
    this is the code that i’ve entered in the the­sis open­hook header panelescape

  298. MK says:

    <img src=“http://randomspecific.com/public_html/wp-content/themes/thesis/custom/images/header.gif” alt=\“Random Specific\” height=\“859\” width=\“103\” style=\“border:0px\” /​>

  299. Got it..!

    Many thanks Rick — much appreciated..!

    Cheers,

    Martin.

  300. Hi Rick
    I am try­ing to get the text of a cus­tom field to show up in Openhook.

    This string works fine when pasted in a nor­mal WordPress tem­plate, but not when I put it into OpenHook. (Yes, I have selected the Execute PHP checkbox ;-) )

    This is the PHP string I’m using — ‘author’ is the name of the cus­tom field
    <?php echo get_post_meta($post->ID, ‘author’, true); ?>

    Not sure if it mat­ters, but I am call­ing the author name into an Amazon javascript wid­get, and the line looks like:
    amzn_wdgt.defaultSearchTerm=’<?php echo get_post_meta($post->ID, ‘author’, true); ?>’;

    When I look at the source code of my blog page, the search term remains blank as if it is not print­ing. i.e like this
    amzn_wdgt.defaultSearchTerm=”;

    As I say, when I put this code into a nor­mal WordPress theme, the cus­tom field prints fine.

    Here’s an exam­ple of a page with the Amazon Widget on it so you can see the source code for your­self if you like.
    http://www.spikemagazine.com/on-chesil-beach-%e2%80%93-ian-mcewan.php

    What am I doing wrong?

    Many thanks for all your hard work on OpenHook
    best
    Chris

  301. Hi again Rick
    never mind — I solved my own prob­lem!
    Thanks to this thread http://wordpress.org/support/topic/207495

    Found out I needed to insert a global thingy into my echo string — and now it works
    <?php global $post; echo get_post_meta($post->ID, ‘author’, true); ?>’;

    Hope this helps some­one else.
    Best
    Chris

  302. Rick Beckman says:

    Add global $post; to the code, just before your get_post_meta() call. :)

  303. MK says:

    hey there rick — you clearly are a genius — and i still need you help if you have any clues about my bro­ken link ;-) thanks in advance.

  304. Rick Beckman says:

    Your image source is a bro­ken link. Try remov­ing the “public_​html” bit; that’s almost never sup­posed to be part of the Web-​​facing address.

    Also, remov­ing the slashes from before the quotes is a good idea too, though that isn’t what’s keep­ing your image from appearing.

  305. MK says:

    see… i knew you were a genius! thanks a million!