Thesis OpenHook

November 29, 2008 · 308 comments

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!

Enhance Your Blog with Thesis

What do you look for in a WordPress theme? Loads of options? Unsurpassed support? A thriving community?

Look no further than Thesis, the premier WordPress theme framework from DIYthemes.

Rock solid semantics. Bulletproof search engine optimization. Crystal clear typography. And more options than you can shake a stick at. What are you waiting for? Get Thesis today!

{ 297 responses }

1 Mike Nichols November 29, 2008 at 22:17

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

2 Don Campbell November 29, 2008 at 22:25

Wow this is sweet Rick. Great idea! I wish I would have seen this before I spent all that time learning hooks last week…
Seriously, this will save a lot of people a lot of time.
-Don

3 Dave November 29, 2008 at 23:01

Thanks Rick… this is great. Would you also mind sharing the functions and CSS for your thesis promo ‘supercharge your blog’ box at the end of each post?

Thanks,
Dave

4 Kelly the Kitchen Kop November 29, 2008 at 23:22

I downloaded, then followed the directions, but it’s still not showing up in my plugin 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 plugin panel.

Thanks,
Kelly (blog under construction: http://www.kellythekitchencop.org)

5 Kelly the Kitchen Kop November 29, 2008 at 23:41

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

6 Rick Beckman November 29, 2008 at 23:45

Kelly the Kitchen Kop: It looks like you have the directory in your plugins 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/ directory are uploaded.

Dave: I have several tutorials in mind to explain how I’m doing various things ’round here. All in good time. :D

Don Campbell: Learning hooks and using the custom/custom_functions.php file is definitely the ideal; it ensures that your customizations aren’t dependent upon a plugin staying up-to-date in order to work with the latest version of Thesis. However, I will be doing my best to keep this thing current with what’s going on in the “Thesisphere.”

Mike Nichols: Hope you enjoy it!

And everyone… Keep me posted on bugs!

7 Rick Beckman November 29, 2008 at 23:54

Kelly the Kitchen Kop: Glad you got it working! :)

8 ClarkeW November 30, 2008 at 00:22

Rick,
This is a great plugin and while I kind of enjoy creating custom hooks this will also save me a ton of time. Thanks for creating it.

9 Claude November 30, 2008 at 00:57

Nice job Rick!

10 Digiplace November 30, 2008 at 09:56

It’s looking very good Rick. Thank you very much.

11 Momentum November 30, 2008 at 10:17

Rick

Nice work! I look forward to playing with this plugin.

12 Bruce Keener November 30, 2008 at 11:05

Rick,
I’ll probably link to this from my site, even though I will likely just stick with custom_functions.php myself. One question: does it support php coding, like conditionals, or is it strictly for text?

Really, really good idea and good work. You are a fantastic help to the Thesis community (and the WordPress community in general).

13 Rick Beckman November 30, 2008 at 14:41

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

Bruce Keener: It works with PHP just fine. Check out the second example in the post itself. :)

Basically, anything that can be done with custom_functions.php can be replicated easily enough through OpenHook’s panel!

14 Bruce Keener November 30, 2008 at 15:14

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

Great job.

15 Eric Marden November 30, 2008 at 17:10

Gotta love the GPL. Glad my K2 Hook Up plugin inspired this plugin for Thesis.

16 Kim Woodbridge | (Anti) Social Development November 30, 2008 at 17:35

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

What a wonderful gift for the community!

17 Rick Beckman November 30, 2008 at 22:56

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

Eric Marden: I’m very grateful for your plugin, Eric! Seems like whenever I try to do admin panel stuff, it’s so complex, leading to surrender on my part. Your plugin was very well written — elegant in its simplicity, 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 definitely believe in the power of Thesis to greatly enhance a site’s appeal — both to user’s and to search engines.

18 Rick Beckman November 30, 2008 at 22:57

Thesis OpenHook was just upgraded to version 0.2 with some very handy new options in the admin panel. Go on, download it! :D

19 Meg December 1, 2008 at 11:56

WOW, how awesome is that! Thesis OpenHook downloaded and installed with absolutely no problems. Can’t wait to start inserting things! Thanks Rick for all your hard work!

20 Solo-Dad December 1, 2008 at 14:35

Rick, Great plugin for us novices. My question: If I use this, will it overwrite any hooks already inserted in the custom functions file? Thanks!

21 Rick Beckman December 1, 2008 at 17:28

Meg: You’re welcome. Enjoy!

Solo-Dad: No, OpenHook will not override the custom/custom_functions.php file. Both Thesis’ built-in customization folder & OpenHook will load when using Thesis, so the two are complementary.

It may be easier for some to keep larger blocks of code in their custom/custom_functions.php file — which they can load up in a text editor with syntax highlighting and line numbers, for example — while using OpenHook to easily remove Thesis’ default actions and to add in smaller customizations.

The whole point is to empower the community to be able to customize with increased ease, and I hope I’ve done that.

22 Meg December 1, 2008 at 18:02

Rick, it doesnt look like the inserted text using the hooks “obeys” the style built into Thesis… correct? For instance I tried to move my byline from the sidebar to area before context and used HTML to style it, ie, H3 tags, but it didn’t comply. How do we do simple stuff like adjust color, size of font, etc, within the hooks?

23 Rick Beckman December 1, 2008 at 18:18

Meg: It does obey the style, but in order to take advantage of that, you need to replicate as closely as possible Thesis’ markup structure.

For instance, to do what you’re doing, you might try something 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 important as they are necessary to catch Thesis’ styling for formatted text, such as the text found in posts and comments.

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

24 Meg December 1, 2008 at 18:46

Rick, that worked perfectly; 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 sidebar section 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 Furys America December 1, 2008 at 23:32

This application is cool and by the date I can tell that it is hot off the press. Thank you for this.

26 Patch December 2, 2008 at 00:46

Hey Rick,
Thanks for this useful plugin :) But now comes the dilemma that started with using Thesis – to plugin or not to plugin, that is the question …

Great stuff anyways :)

27 Laurel December 3, 2008 at 10:59

Thank you so much for this, LOVE IT!!

28 jason December 3, 2008 at 13:59

Hey Rick,
No matter what I plug in I get the following warning:
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?

29 Rick Beckman December 3, 2008 at 18:31

Jason: From the looks of the error message, 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 contrary, it (and the other OpenHook files) should be at wp-content/plugins/thesis-openhook/options.php.

Hope this helps you get it workin’!

30 rumblepup December 4, 2008 at 12:06

DOOOOD!!
RAAAAAWWWKZ!

31 jcd3 December 5, 2008 at 13:10

dude. u rock. I (we) really (really, really, really, really) appreciate not only this tool, but also ALL the knowledge & expertise you bring to the Thesis forums.

– j

32 Miguel Wickert December 7, 2008 at 04:34

Rick
Impressive, excellent work! I’m looking forward to testing it out! Thanks!

-Miguel

33 Rick December 7, 2008 at 08:26

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

FTP replaces the original dates with the transfer time and date so in order to preserve the original file dates and times, I always unzip Wordpress, Themes and Plugins remotely using CPanel File Manager or equivalent.

34 Stijn December 7, 2008 at 12:01

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

35 firstdayblack December 7, 2008 at 13:13

Nice little PlugIn which makes the work of a lot of people much easier. But maybe there is a little bug? When I check the box “Add debug information” the number of queries and seconds appear in the footer. But when I uncheck the box, the queries vanish, the seconds stay. Bug or feature?

36 Rick Beckman December 7, 2008 at 16:00

Rick: I rebuilt the ZIP file – making sure I selected to compress the thesis-openhook/ folder itself rather than just the files. Should be fine now. I’m sure I messed something up a few days ago when I was preparing for uploading to the plugins directory — which still hasn’t worked properly for me. Hopefully all is well now.

firstdayblack: If that’s what is happening, that’s a bug. I’ll make sure it’s working correctly for the next release. Thanks. :D

37 firstdayblack December 7, 2008 at 16:45

Rick, thanks for caring. But there ist another major bug in your plugin. The text on the save button says “update options” or something like that. It should of course be “BIG ASS SAVE BUTTON”! ;-)

38 Rick Beckman December 7, 2008 at 17:03

Haha. Chris & I have different ideas on what makes a good submit button. :P

That said, here’s the fix for the debug stats bug. This block of code is near the bottom 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 definitely be in the next version of OpenHook — along with the beginnings of being able to edit custom/custom.css directly from the admin panel! :D

39 firstdayblack December 7, 2008 at 17:17

Your bugfix works perfectly. Thank you very much. :-)

40 Rick Beckman December 7, 2008 at 17:30

firstdayblack: Glad to hear it! Let me know if anything else comes up.

41 Matej December 7, 2008 at 17:45

I’m having the same problem as Jason. All my files are under “thesis-openhook” folder but I get the same message. I hate hooks, why complicating / “fixing” things when there’s no need …

Also when I try to add it manually via custom_functions.php I get this message when i try to access my site “Parse error: syntax error, unexpected ‘<’ in wp-content/themes/thesis/custom/custom_functions.php on line 37″

I add it like this:

/* YOAST BreadCrumb */

function yoast_breadcrumb () {

}
add_action(’thesis_hook_before_title, ‘yoast_breadcrumb’);

hate .. it …

42 Matej December 7, 2008 at 17:46

I mean like this ..sorry

/* YOAST BreadCrumb */

function yoast_breadcrumb () {

}

add_action(’thesis_hook_before_title, ‘yoast_breadcrumb’);

43 Matej December 7, 2008 at 17:49

Sorry feel free to delete my latest 2 comments but somehow php code is not showing …

44 Barbra Sundquist December 7, 2008 at 20:11

This is most helpful – thank you!

45 Rick Beckman December 7, 2008 at 20:37

Matej: Yeah, unless the code is properly escaped, WordPress eats it.

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

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

46 Rick Beckman December 7, 2008 at 23:56

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

47 Kayren December 8, 2008 at 04:27

I get this message 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 editing.
Is this a problem with permissions on my host server?

48 Neville Hobson December 8, 2008 at 05:06

This looks really excellent, Rick, thanks for creating it. Anything that makes Thesis easier to use! I’ve installed it on my WP 2.6.5 blog, now just reading up on hooks to understand better what I’d like to do ;)

Thanks again.

49 Matej December 8, 2008 at 08:03

Hey Rick, thanks for the support! New code is not showing me error message anymore but I can’t see the breadcrumbs …. but that’s another discussion for forums not here

50 Yan December 8, 2008 at 12:02

That’s awesome Rick, thanks for devising this! Having all the hooks at the same place, and being able to edit them so simply will make the customizing job that much easier.
You even added many useful and cool comments when appropriate !

51 Rick Beckman December 8, 2008 at 13:29

Kayren: Oh goodness… I think I may have accidentally uploaded my development 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 getting this thing working, as well as getting a canonical release uploaded to WordPress Extend.

Everyone else: Glad you’re enjoying the plugin. Hopefully I can make it even nicer and more foolproof. I really want to get a more elegant admin panel going, with easier to read/find panels.

52 Rick Beckman December 8, 2008 at 18:36

OpenHook’s been updated to 1.1 — bug fix + style sheet editing! Should show up in your plugins panel for auto-upgrading; this baby’s hosted at WordPress now. :D

53 Kel December 8, 2008 at 22:28

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

54 Wayne December 9, 2008 at 01:38

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 different iFrames. I would appreciate the help.

55 firstdayblack December 9, 2008 at 10:55

Rick, you did it! I love that new save button :-D :-D

56 Armen December 9, 2008 at 20:24

Hey Rick,

This is a fabulous idea! I didn’t discover it until today. Sadly though, the download link doesn’t seem to be working. :(

57 Rick Beckman December 9, 2008 at 20:42

Armen: The download link points to the WordPress plugin directory page, which is where you’ll need to download the file from. (Right-clicking on the download link on this page — or using a download manager to grab the link — will not work; it’s currently a redirection, not a download.)

58 Armen December 9, 2008 at 21:15

Yeah I know buddy. I went over to the WordPress directory, and clicked on the big ‘Download’ button and it’s coming up as a dead link for me.

59 mb December 9, 2008 at 21:43

Yup – I get a 404 too.

60 Rick Beckman December 9, 2008 at 22:16

Well, that’s unfortunate. I updated the download links in the post above to point to a hosted version here. Sorry ’bout that, folks!

61 Tom K. December 11, 2008 at 03:06

This plug-in fails to install in Wordpress 2.7 final.

62 Jonathan Soroko December 11, 2008 at 05:03

@Tom K.: installed perfectly on my copy of WP 2.7 RC2 -

@Rick – in RC2 – plugin option shows up as its own tab under appearance as Thesis Openhook – so even easier to find than advertised.

Installed perfectly. Now I have to learn what to do with it.

Jon

Edit by Rick Beckman: Fixed a bit of markup.

63 Susan December 11, 2008 at 12:29

Hi! I’m totally new to hooks and am trying out this plugin. I added text to the Before Sidebars hook to have the words “Click current post title to see related movie below. ” appear on my site. This is because the movie is related to the post via a custom field, but if you just go to the home page (not the post link itself), the movie does not appear. I would like this message to appear only on the home page, and I would like its style to match the other widget headings. Can anyone help? Sorry to be so limited!

64 Tom K. December 11, 2008 at 12:35

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

65 Nicky Jameson December 11, 2008 at 20:33

Thanks, installed without a hitch. I can’t wait to use this… Faboulous!

66 Rick Beckman December 11, 2008 at 23:27

Tom K.: What method of installing were you using? I’ve yet to have any luck with the automated plugin installer. Glad you got it installed, whatever method you used!

Jonathan Soroko: OpenHook’s always had its own tab — below “Design” on WordPress < 2.7 — but WordPress 2.7 definitely makes the subheadings more accessible. Have fun learning how to use it, and definitely feel free to experiment — especially when fixing errors is as simple as deleting from a text box and re-saving the form.

67 Rick Beckman December 11, 2008 at 23:39

Susan: Try using something like this in the “Before Sidebars” box, making 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 headline is rendered identically to other sidebar headings — and that it will respond to font changes made within the Design Options panels.

Using this markup will place a lot of margin on the bottom of the heading, and you can lessen it by using this line in your custom/custom.css file:

li.widget.video_intro { margin-bottom: 0; }
68 Rick Beckman December 11, 2008 at 23:40

Nicky Jameson: Glad to hear it; enjoy!

69 Dave December 13, 2008 at 19:11

Hi Rick.

I have a sandbox build that I am playing around with. I checked off the footer:
“Remove Thesis attribution — Only those who purchased Thesis using the Developer’s Option are allowed to remove the Thesis attribution link. If you purchased the Personal Option and remove the Thesis attribution, be sure to include it within your own footer content (perhaps replacing it with an
affiliate link to DIYthemes).”

Yes, I do have a developers license, just to let you know.

The attribution is still showing 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 understand what this meant:
You’re welcome to ask support below in the comments; prior to posting any code, though, please make sure it is properly 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 plugin. Thanks for all your efforts.

70 Chris Olstrom December 14, 2008 at 16:43

So I’m curious how this plays with Thesis in a WPMU setting. Does it involve any file alterations, outside of custom.css?

Just wondering 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 layout elements trivially across a series of blogs without hacking at the theme files themselves.

71 Jeremy December 15, 2008 at 13:34

Golly but this is good. I had put off upgrading Thesis until after I had WP 2.7 up and running, then did Thesis and this plugin and I am very impressed and very, very thankful for all the hard work you have contributed in general, and on this plugin in particular. Really. Kudos to you.

72 Kelly from Almost Frugal December 16, 2008 at 06:37

Hi Rick,

I LOVE this- it is wonderful and made using Thesis so much easier. I’m wondering how to put my Feedburner stats into the nav bar, where the subscribe button was… is it possible to do it using openhook?

73 Julie Strietelmeier December 16, 2008 at 08:34

Is there an option to place a code snippet in between the by-line and beginning of the post’s text?

74 Rick Beckman December 16, 2008 at 12:50

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

75 Rick Beckman December 16, 2008 at 12:53

Kelly: Not as easily as you’d like; it would involve removing the default nav bar and then writing your own nav bar in the “Before Header” area. Otherwise, you could perhaps 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 position it into the appropriate place using custom/custom.css.

76 Rick Beckman December 16, 2008 at 12:56

Chris Oldstrom: I’m not familiar with WordPress μ’s architecture, so I would love to hear whether or not OpenHook works or not. You’re right in assuming that the only actual file editing which goes on is of the custom style sheet; however, that option is only available if a user has top-tier administrator privileges, which may not be the case in a multi-user environment.

77 Julie Strietelmeier December 16, 2008 at 12:57

Oops! I thought I had tried that prior to posting this comment. Sorry, it worked like a charm :o)

78 Chris Olstrom December 16, 2008 at 13:48

With regards to WMPU compatibility, I tested it and it works just fine. Settings are isolated to the individual blog those changes were done on. I haven’t checked the custom.css stuff, but if you simply don’t allow it, it’s not a problem. Were it allowed, I’m sure it would propagate across all blogs sharing the same theme directory.

79 Kelly from Almost Frugal December 17, 2008 at 03:35

@Rick, Thanks! So what’s the code for the .custom CSS if I want the stats aligned to the right? And maybe this is something that you could consider adding to the next version? (Says the non technical person with a smile on her face?)

80 Rick Butts December 18, 2008 at 01:26

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 permissions on the custom/custom.css to 777 -

Did I miss something?

Thanks Rick for a killer tool – and I LOVE the “little ass save button”

Rick Butts

Edit by Rick Beckman: Fixed link markup.

81 Rick Butts December 18, 2008 at 01:27

well doggone it – I sure didn’t mean to hyperlink the entire post to AddToAny.com !

Sorry gang -

Rick Butts

82 Rick Beckman December 18, 2008 at 12:36

Well, that tells me what I need to do next in OpenHook — more documentation! “After Content” refers to nearly the bottom of the page — after posts and comments have all been output. If you want to add something to the end of each post before the comments start, use “After Post” instead. :)

83 Rick Butts December 18, 2008 at 13:38

well DOH!

I’m obviously a retard – I shot down the page until I found after content and then figured I was where I needed to be.

I’ll TRY to pay more attention now – hopefully my .js will work there.

Thanks Rick -

Rick Butts

84 Matt Faulkner December 21, 2008 at 21:40

I’m trying to use this plugin for the first time – I can add the following code to custom_functions and it works fine, but when I add the exact same thing inside the plugin, it doesn’t work. What am I missing to use the plugin?

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

85 Rick Beckman December 21, 2008 at 23:31

Looks like WordPress garbled the code a bit (tip: always run code through an escaping tool prior to posting in comments 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 function directly, like this:

add_social_profiles();

Let me know if you get it working.

86 Robert Yang December 25, 2008 at 04:15

Rick,

I use the All-in-One SEO plugin and when modifying the header, it seems I get a conflict with that plugin.

Here’s my error message -

Warning: Cannot modify header information – headers already sent by (output 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!

87 Rick Beckman December 25, 2008 at 04:22

What code are you using in OpenHook? It’s possible that header information is being output, which of course would conflict with All-in-One SEO which has already output header information.

88 Dave King December 29, 2008 at 21:08

Amazing. Thanks Rick!

-Dave

89 Tyler @ Building Camelot December 30, 2008 at 15:09

This is an awesome plug-in! Thank you for taking the time to put it together.

I’m new to Thesis and using this plugin and I have a follow-up question from the forums that I’d like to ask. I’m trying to add a email and twitter link next to my RSS button 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 twitter link to the right.

I tried using the code you suggested 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 comment and any insight you have to offer is greatly appreciated.

90 grenuis December 30, 2008 at 17:27

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 problem is… I’m using version 2.7 of wordpress. Thanks!

/* Custom Header Image */
function add_header_image () {
echo “<a>

</a>”;
}
add_action(‘thesis_hook_after_title’, ‘add_header_image’);

91 Brian December 31, 2008 at 14:33

New to Thesis and OpenHook
Working in a sandbox environment. My question has to do with migration to a production environment.

It looks like your plugin doesn’t modify the custom functuions php file. Does it store the modifications in the database? I suppose I could have looked. Moving a file into production is easy. Exporting a table, or table contents is a little harder. Suggestions on how to migrate hooks from a sandbox to a production environment?

92 Rick Beckman December 31, 2008 at 15:12

Last time I did it, I copy/pasted the values from the test site to the live site manually. Exporting would be a matter of finding the relevant rows in the wp_options table, then importing them into the production site prior to installing OpenHook (which will create new options of the same name, resulting in duplicate entries, which I’m unsure how they’d be handled in WordPress).

93 Brian December 31, 2008 at 15:18

Wow – Thanks for the fast reply! Thats sort of what I figured. Maybe an export/import function in the next release? Your file format is already defined as custom_functions.php. I think for my sandbox I am going to just work in the php file. It will help me hone my php skills and make migration to production a snap! Oh, crud, did I hard code some absolute sandbox URLs? Ug. Hmm, relative URLS are bad in downstream feeds, Ug.

OK – I’ll work it out.

Thanks again

94 Rick Beckman December 31, 2008 at 17:40

An import/export might not be a bad idea. I could see it being useful even for bloggers who deploy multiple blogs, all with Thesis & similar “base” customizations.

I’ll have to get with Chris about this; we’re wanting OpenHook functionality built in to Thesis in the future, so I’d rather move in that direction, and we could maybe add import/export for Thesis settings as a whole. Now that’d be total awesomeness.

95 Khoo January 2, 2009 at 11:19

Great plugin that is really usable and useful for noobs like us. Thanks and keep up the good work!

96 Robert January 2, 2009 at 15:40

Getting the following error above the header on home page, and at the top and bottom of the wordpress 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 opening ‘/home/admin/public_html/wp-content/plugins/__MACOSX/’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/admin/public_html/wp-settings.php on line 465

97 Robert January 2, 2009 at 15:41

Just to add, I have deactivated the theme and deleted it as well and I still have this issue.

Thanks Rick

98 robert January 2, 2009 at 16:19

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 opening ‘/home/admin/public_html/wp-content/plugins/__MACOSX/’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/admin/public_html/wp-settings.php on line 465

Warning: Cannot modify header information – headers already sent by (output started at /home/admin/public_html/wp-settings.php:465) in /home/admin/public_html/wp-includes/pluggable.php on line 850

99 Rick Beckman January 2, 2009 at 21:47

Viewing your Web server in FTP, do you see a __MACOSX folder in the plugins folder? I’m not sure what would have created it, but for some reason, your WordPress installation thinks its there or something. Quite frankly, I’ve never come across something 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).

100 RickA January 5, 2009 at 10:10

Rick,

I am using a single column design and I want the multimedia box to be in the content area. I can’t figure out how to do this?

Is it possible to run text in a column alongside it?

Thanks in advance.

101 Scot Herrick January 6, 2009 at 00:36

@Rick Beckman Two points:

RE: __MACOSX folder

When you install the plugin from the WP Admin page (browse for a zip file), the _MACOSX file shows up as part of the plugin resulting in the error noted above. I duplicated it and couldn’t figure out what was going on until I looked at the structure of the .zip file.

If you download the plugin using your download link, the same file is there. You have to unzip the file, then muck around in the folder structure until you find the actual plugin file. So that’s the culprit.

Second:

Question: My CSS file changes, working fine in custom.css, do not work at all with the same custom.css copy and pasted into the plugin in the css area. The custom.css file is in the Thesis Custom folder as needed, but when I execute it, I get the plain vanilla Thesis theme instead of the fabulous customizations I have done ;>))

My themes are in default location, but I have many blogs and they are located in a subdirectory of \public_html and then the installed WP blog with the Thesis theme. Is there any path issues to the CSS values? \public_html\blog\themes\thesis\custom versus \public_html\themes\thesis\custom?

102 mark January 6, 2009 at 14:13

Thanks Rick,

I would like to second Dave’s comment above re: your “Super charge your blog” box that appears at the end of every post promoting the thesis theme. Providing a custom_functions code for something like this would be super cool.

103 tino January 8, 2009 at 22:01

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 figure it out, thanks…

104 Rick Beckman January 9, 2009 at 12:38

If it’s a problem with the OpenHook plugin, it needs to be asked here as it falls outside the scope of Thesis support.

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

105 Daniel M. Clark January 11, 2009 at 22:03

I’m working on switching my site over to Thesis, and OpenHook has proven invaluable so far. I have only one suggestion, and if it’s been made before, just consider this another vote :)

It would *rock* if you could duplicate the ‘little ass save button’ at the top of the page and periodically throughout the page. The vast majority of stuff I’m doing at the moment involves the custom css file, and having to scroll alllll the way down each time to press the save button is a little cumbersome.

Other than that minor annoyance, OpenHook is fantastic – keep up the great work!

106 Sebastian January 12, 2009 at 13:54

Hello Rick, thanks for a wonderful plugin.

I am trying to use Openhook in order to insert a slideshow-application before my sidebars. Eventhough I have added the following piece of code in the correct field of Openhook, with ‘Execute PHP’ enabled,

” ”

I get the following error message where my slideshow otherwise would be:

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

Is there a problem with the include-command, or have I missed something very obvious? Any help would be most appreciated, and thanks again for a truly helpful tool.

107 Sebastian January 12, 2009 at 15:32

ADDITION to previous comment:

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

“”

108 Sebastian January 12, 2009 at 15:34

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

though wrapped within the appropriate – signs.

I apologise for all the extra clutter

109 lavonne January 12, 2009 at 17:21

Hi Rick,

Great plugin, thanks. The site is here: http://myworldofsoaps.com
I have the multimedia box disabled until I can get it set up the way I want, with a miniblog, using one category of posts from the main blog.There’s a widget plugin for this, and I want to put the widget in the multimedia box. Is this possible? If not, can I put one category of posts there, using OpenHook?

110 t January 12, 2009 at 19:03

I think there’s a small bug with your plugin. When I use the custom functions.php file and add something before the header, it appears between the nav bar and the top of the header. When I use your plugin and add it in the “before header” box it appears above the nav bar. Any suggestions?

111 Rick Beckman January 13, 2009 at 16:53

The reason is that OpenHook’s code is fired prior to Thesis’ (plugins precede themes in the WordPress hierarchy), so it isn’t really a bug so much as a necessity. If you want something below the nav menu, remove the default nav menu with the checkbox 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.

112 Stephen January 13, 2009 at 20:23

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

113 Matthew January 14, 2009 at 16:44

Wow… I spent 3 or so hours earlier getting error messages thrown up while trying to create my own hook. I then used this plugin and it worked with in 2 minutes. LOL.

Nice work!

114 Mark January 15, 2009 at 21:26

I’ve uploaded thesis openhook to my plugins, but when I go to activate it, the plugin doesn’t show up at all. I’ve tried installing and uninstalling twice.. Please advise as how to get it to work. Thannks,

Mark

115 John Flynn January 15, 2009 at 23:41

OpenHook is truly amazing, *almost* as important a contribution as Thesis itself. :=)

116 Kelley bell January 17, 2009 at 19:59

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 format this so that the link is hot, and you just see “The Huffington Post” instead of the whole web address?

Also, when using openhook to place this, I am open to suggestions regarding the best placement 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?

117 Bill Bolmeier January 20, 2009 at 17:34

Boy this sure helps. Nice. Thanks.

118 gary January 23, 2009 at 10:58

I am a real novice here. But I have installed thesis in WP because I like the idea of having drop down combo boxes for Categories. I cant seem to make this happen. For example:
Software (category)
Adobe Plugins (sub category)
NIK Vivesa (sub category)
Hardware (Category)
Printers (sub)
Scanners (sub)

and so on. Then when choosing the Software category, 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

119 Sire January 24, 2009 at 23:04

OK, I’ve downloaded 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 working with hooks in such a way that even an idiot could follow it.

120 John Stiles January 25, 2009 at 14:47

Hey Rick,

Is there a difference 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 different and don’t have the stretch function. Also the custom.css box at the top is missing 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 ability to alter a site with these admin files is a huge time saver.

Thanks,
John

121 Libidonous January 26, 2009 at 17:35

hey… you already rock with this one but are you preparing something special for us in connection to Thesis 1.4 ?

122 Mitch January 26, 2009 at 20:51

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

123 Dave Williams January 28, 2009 at 06:46

Hi, I just wanted to thank you for the excellent plugin. I am also recently a huge fan of thesis (as you can see on my blog) and your plugin is going to save me a whole lot of time.

All the best in the new year.

124 Rick January 28, 2009 at 09:31

Hi Rick -

Do you plan on adding the new “thesis_hook_feature_box” option to your Open-Hooks plugin?

Thanks!

125 Josh January 28, 2009 at 16:50

wondering the same thing as Rick. how do you add the feature box using OpenHook?

126 LuvablePug January 29, 2009 at 00:56

Hello,
The styling that I added to .custom #container on the custom css file no longer renders after I installed this plug-in. The body.custom is fine though. Do you know why the custom class would stop working??

127 LuvablePug January 29, 2009 at 01:14

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

128 Maniac January 30, 2009 at 09:10

Hello,
I like this stuff, it would be nice if there are different coulours on particular parts of code (something like in code editors)-or do you have some tips on good plugin for that? Other thing, are you going to implement “Featrured box” ? Thank you anyway ;)

129 Evelyn Lim January 31, 2009 at 21:46

Hello Rick, I just spent quite many hours learning about Thesis and I have just installed your openhooks plugin. Thank you for making things easier for me as I am pretty much a beginner.

Can I find out if feature boxes are the boxes that are below your multimedia box? What would be the codes for these? I am interested to have the same layout as the one on this website.

130 Rick Beckman February 1, 2009 at 23:26

It’s been a while since I’ve checked comments in this thread — been so busy working with Thesis itself, I’ve neglected this bad boy.

Here are my plans for the next version of OpenHook, and no, I don’t have any clue about a release date — I’m still hoping Chris will just let me integrate the thing completely into Thesis!

  • Support for Thesis 1.4′s new hooks.

  • More attractive layout of the editing boxes.

  • More rugged security.

  • Support for Thesis installations in directories other than thesis/ for custom.css editing.

  • And so on.

Evelyn Lim: The feature box in Thesis 1.4 appears at the top of your site in a definable place in the Design Options. The boxes you refer to (which I’m no longer using, actually) were created using the process described here (sorry about the broken images; such is the result of having imported content from all of my blogs into one location).

131 Tim February 2, 2009 at 12:10

Hi Rick –
I want to use frontpage slide show on only my front page. I put the php code in open hook “after header” and it works great. Problem is, it conflicts with a plugin used on another page.

How can I make this code work on only the front page?
Even better, How can I exclude this code on a specific page using open hook?

Thanks – Love your work!

132 Rick Beckman February 2, 2009 at 17:13

You can wrap your code with any one of WordPress’ conditional tags.

For example, to include stuff only on the front page of your blog:

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

Or to exclude content from a certain page, you will need the ID number 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 conditional, like this:

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

The # should be replaced with the number 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.

133 Tim February 2, 2009 at 17:46

Wow – That was simple. I just learned a new PHP lesson – Thanks, Rick!

134 Rick Beckman February 2, 2009 at 18:15

You’re very welcome!

135 Bill Bolmeier February 3, 2009 at 00:27

Is there anyway to make after_post hook really after the post and before any third-party plugins using OpenHook? I’ll dig through the above comments to see if someone else has asked. Thanks!! :)

136 Miles Austin February 3, 2009 at 21:33

Is this compatible 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 tremendously in my new work with Thesis.

137 Rick Beckman February 3, 2009 at 22:40

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

I’m hoping to improve compatibility in the future, when I have some time to work on it. Tons to do!

138 Maniac February 4, 2009 at 12:07

when you are talking about the new version and things to do :) , I will really appreciate if the “SAVE” button has the fixed position so I dont have to sroll to the bottom of the page everytime I change something…

139 Rick Beckman February 4, 2009 at 12:26

Ooh, a fixed save button. Hadn’t thought about that one. That’s definitely preferable to a bunch of save buttons strewn about after each box (unless I figure out how to use Ajax to save just one box at a time w/o refreshing the page). Since JavaScript makes about as much sense to me as Esperanto, I think I’ll be sticking with a fixed save button for the foreseeable future. Thanks for the suggestion, Maniac!

140 Cynthia February 5, 2009 at 01:57

I’m creating my own affiliate 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 matter what I do, I can’t get it to show up. Are images inserted through OpenHook supposed to be in a particular location on my host server? What is the correct pathname to use?

Thanks.

141 Jacob February 5, 2009 at 21:37

Hi Rick,

This is a fantastic plugin, thank you. However I’m having a problem getting the default Thesis comments link to remove. I am running the following code in the after post hook:

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

The code works but checking the “remove Thesis comments link” does nothing. I can’t remove it using the custom css file either. Any idea what’s going on?

142 Jacob February 5, 2009 at 21:40

Er, that’s not the code. It’s running PHP too.

143 Rick Beckman February 5, 2009 at 22:11

Cynthia, it entirely depends upon where you’ve uploaded the image on your server. If you’re placing the image in your thesis/custom/images directory, then that is the directory for the image you’ll need to reference in your image code.

Jacob, are you using Thesis 1.4.2? There was a weird issue with 1.4 which prevented the remove_action() for the comments link from working, but it has since been fixed.

144 Jacob February 5, 2009 at 23:23

Just upgraded and problem solved. Thanks again for a great plugin!

145 Cynthia February 6, 2009 at 00:31

Rick,

Here’s a follow-up to my previous question. 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 leading, but now the style supercedes the cellpadding I enter in my HTML. Also, there’s too much space above my headline and subhead. Does this mean I have to modify the CSS file? Which one? How?

Thanks! (I really love working with Thesis and OpenHook!)

Cynthia

146 Cynthia February 6, 2009 at 00:36

Rick,

I put the image in that directory and tried using full and partial path names and it still would not show up.

I also was trying to make the image clickable with an affiliate link.

The image showed up and was clickable 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

147 James Stuart February 6, 2009 at 11:47

Has anybody had any luck with getting thesis-openhook to work as a plugin under MU?

148 Daniel Rodriguez February 8, 2009 at 13:17

Hi rick,
I’m using thesis 1.4.2 and I having problems with the custom.css, just cant see the text box.
Are you havng this problem to?
Thanks.

149 Rick Beckman February 8, 2009 at 14:50

If no text box for the custom.css is showing up, that’s because OpenHook couldn’t access the custom.css file. The box is hidden in such a case to prevent larger problems.

File permissions, file structure, unusual server setups… Lots of things could prevent the file from being accessed.

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

150 Daniel Rodriguez February 8, 2009 at 15:19

Oh! I guess this is the problem I have the theme on thesis142/.
Thanks!

151 Derek February 11, 2009 at 02:00

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

152 Derek February 11, 2009 at 03:37

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

153 iGoByDoc February 14, 2009 at 20:33

Hey Rick,

Question for you. Just reinstalled thesis for a new blog I am developing, and added openhook to it.

For some reason 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 showing up in Open Hook?

Thanks in advance!

Doc

154 Rick Beckman February 14, 2009 at 23:49

iGoByDoc: Check out this comment just a few above yours. :)

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

155 James February 15, 2009 at 00:30

Just wanted to say thank you for this plugin. It’s very helpful.

156 iGoByDoc February 15, 2009 at 10:47

Hi Rick, thanks for the quick answer.

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

What should the file permission be for openhook to see it?

Thanks, Doc

157 Rick Beckman February 15, 2009 at 14:40

I assume it should be set to be server writable, but I’m not pretending to know that much about server configurations. Try 0777 as the permissions on it to see if that resolves it.

158 Darrell February 21, 2009 at 15:52

LOVE this plugin! Thanks for your time and effort in creating it. Saves a great deal of time for us newbies in customizing the Thesis them.

159 Rick Beckman February 21, 2009 at 17:38

You’re welcome! I’m glad it’s been of use to you.

160 Ivan February 22, 2009 at 07:25

Just passing by to say thank you for the good plugin! I can do with it almost everything needed. And, very important – to edit the custom.css without even starting an FTP program and all that downloading, editing, uploading etc. :)

Please, continue supporting it, this obviously becomes my main tool :)

Thanks again!

161 Brad February 22, 2009 at 23:48

Hey!

Thanks for the AWESOME plugin. I was wondering if there was a good way to use Openhook to do this:

Thesis is set on my blog to have one sidebar, but on certain Pages, I would like it to be the two sidebar style. Is there anyway to do an If/Else statement in Openhook to help facilitate this happening?

Thank you so much!

Brad

162 Rick Beckman February 23, 2009 at 00:01

Unfortunately, not that I’m aware of. More advanced control over the sidebars like that more than likely would involve hacking Thesis’ core to add in your conditionals, which I don’t recommend. However, with some CSS trickery, you could probably achieve what you’re wanting. Have you asked about this in the Thesis Customization forum on the support board? Lots of styling gurus hang around there and should be able to help you out.

163 James February 23, 2009 at 00:53

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 missing something?

164 Rick Beckman February 23, 2009 at 01:04

Well, I can’t say for sure without seeing 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 container called #tweet, you could use something 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 available to you) or via manually editing the file.

165 Rick Wolff February 23, 2009 at 13:44

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 create a new caste of coders/designers/consultants who are keepers of the Thesis secrets. That one of y’all developed this OpenHook panel is direct refutation of that. I wonder if you (or anyone) could give me encouragement that I could single-handedly accomplish my wish-list ( http://is.gd/kyDv ). I’d appreciate your thoughts. I’m on Twitter as @RickWolff .

166 Tom K. February 23, 2009 at 13:51

2.0 rocks!

167 Alec Wild February 23, 2009 at 14:25

Rick,

I love your plugin, thanks! I just upgraded to 2.0, and have this weird issue: the “Execute PHP on this hook” button on the “After Header” hook won’t stay checked! Is this a little bug? Since I’ve got this code there . . .

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

Alec

168 Alec Wild February 23, 2009 at 14:25

Sorry, the code is:

169 Alec Wild February 23, 2009 at 14:26

php thesis_nav_menu();

170 Alec Wild February 23, 2009 at 14:44

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 coding experience!

171 RickA February 23, 2009 at 19:08

Thanks for the 2.0 update. Now for a request…how about allowing us to change the name of the “Button” to something else? Even Chris allows that.

172 Rick Beckman February 23, 2009 at 20:44

Yeah, my bad there. OpenHook was the product of close to ten hours non-stop coding going from version 1.1 to 2.0. I got a little cross-eyed at times. I fixed the bug and 2.0.1 should show up in your dashboard for automatic upgrade soon enough. Thanks a ton for reporting it!

173 Rick Beckman February 23, 2009 at 20:46

I had considered that, but after ten hours of staring at what seemed like a thousand different hooks, I was just happy to release what I had and be done. Maybe in the future. :D

174 Alec Wild February 23, 2009 at 21:47

Rick,

Absolutely! It gave me an opportunity to learn a little php. And thanks so much for the plugin. It allows hacks like me to look like real experts.

Blessings,

Alec

175 Mary McRae February 23, 2009 at 22:59

This is amazing! I was going to build another site using a different theme, but now I’m convinced. First thing tomorrow I’ll be upgrading to a developer license. All other themes should just cease to exist – Thesis rules!

176 James February 23, 2009 at 23:30

ack! I tried this and used openhook instead of Notepad++ and ftp to change custom 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 custom css and have removed both of them but my logo is still gone.

177 Donghyup Ryu February 23, 2009 at 23:36

I was wondering if I could use “search box” within 404 page instead of error messages. It seems to me OpenHook can customize 404 page.

178 James February 23, 2009 at 23:41

What seems even more strange is I remembered the last custom.css I uploaded was probably still in my recycle bin. I brought it out and my logo is still gone. Almost like something is stuck and clearing out properly.

179 Rick Beckman February 23, 2009 at 23:53

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

However, to include Thesis’ search form, use this function in OpenHook:

<?php thesis_search_form(); ?>

Not sure what the styling would like on it, but I’m sure it’s nothing a few style tweaks in your custom stylesheet wouldn’t handle.

180 James February 23, 2009 at 23:53

OK, so something very strange happened. 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 working 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?

181 Rick Beckman February 24, 2009 at 00:01

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

182 Donghyup Ryu February 24, 2009 at 00:20

Thanks, Rick.
That code works for my blog.

183 JHS February 24, 2009 at 02:08

Hey Rick! Thanks for the plugin update. I love it and am learning more and more about using hooks.

Now I need a tutorial on how to use the feature box. (HINT, HINT) :-)

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

Suggestions welcome, of course.

184 Brad February 24, 2009 at 02:30

Rick,

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

Best, Brad

185 JHS February 24, 2009 at 02:43

Oops . . . I spoke too soon. Upgraded. But have to revert to the prior version because no matter what I do, new version will not execute php below the header. I have checked the box and re-saved about a zillion times. Same result. I didn’t make any changes other than to upgrade the plugin using the automatic upgrade feature in WP 2.7.1.

186 JHS February 24, 2009 at 03:26

Ah, I just realized what the problem is. I have been using version 1.1. WP 2.7.1 is offering an automatic upgrade to version 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 midnight, obviously.

Thanks, Rick.

187 Ivan February 24, 2009 at 05:49

Tell me! :) Where you could find such support? You’re asking politely Mr. Beckman to continue the support of the plugin because it’s important for you, and in 48 hours he says: “Please receive version 2!” :)

Thank you, Rick! Deleted the old directory, uploaded the new one and it worked instantly, keeping all previous settings :)

Greetings!

188 Lisa F. February 24, 2009 at 13:11

Rick:

I find OpenHook to be invaluable to me when I’m designing for clients. For one thing, it speeds the development process, because I can try things and replace things more rapidly than if I was constantly modding the css and php files. For another, it makes the changes more transparent to the client once the files are turned over to them. They still might not have the skills to implement new changes themselves, but it’s less intimidating for them if I send instructions to add something to OpenHook than if I’d said add something to the custom.php file. So, thanks!!

189 Daniel M. Clark February 24, 2009 at 15:02

Rick,
Great update to 2.0 – extremely great. One little thing though… pleeeeeeeease bring back the stretchy editing boxes! They were a major part of my workflow, they made my job 100% easier. They make the page shorter (not as much of a big deal now with the multiple save buttons) but more importantly, I work far more efficiently when I can see a screenful of code rather than just 10 lines at a time.

190 Rick Beckman February 24, 2009 at 16:43

Did those work on WordPress 2.7? Seems as though after I upgraded, they stopped working, and since Chris and I only support WordPress 2.7+ for Thesis, it didn’t seem unreasonable to expect the same with OpenHook.

If I can get a solution working in 2.7, I may add it back. However, I’ll be honest and say that I have no idea how that JavaScript worked — I never got past “Hello world” in learning JavaScript. The resizing script was simply carried over from the plugin that OpenHook was based on.

191 Daniel M. Clark February 24, 2009 at 18:32

They worked on WP 2.7, but neither of the sites I’ve upgraded OpenHook on are running WP 2.7.1, so maybe there’s something going on there. I’m moderately decent with javascript, I’ll poke around and see if I can spot anything and let you know if I find anything.

192 Kim Woodbridge February 24, 2009 at 19:16

Is it possible to rename the little ass save button?

193 Daniel M. Clark February 25, 2009 at 01:10

Hey Rick, I figured out a solution. It’s not as slick as the pull-down method, but I think it works even better. I put two buttons under each textarea – one button adds 15 rows to the textarea, the other contracts 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 download and check out if you like: Right click and save, then rename the phps file to php. I started commenting on line 235 to explain everything I did in detail. No credit required if you decide to use my changes, just happy to help out.

194 Henry M. February 25, 2009 at 11:38

Thanks for a this great work rick! Two questions though:

1. Is there any easy way to be notified when you’re updating OpenHook (i guess the auto-alert system built in wordpress doesn’t work when you don’t host the plugin in the wordpress.org repository)?

2. Do you have any nice resources where I can find inspiration for all the possibilities this plugin gives us? Like the example for customizing the footer.

Thank you!

195 Rick Beckman February 26, 2009 at 12:41

Thesis is hosted w/ WordPress, and you should be notified 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 examples of stuff you probably don’t need, in my opinion anyway. :)

196 Josh February 26, 2009 at 16:32

Rick, hi. I think I’m a little confused as to what to put in some spot. for example, say I want to do the nav menu switch from top to bottom of header. What exactly do I enter into the textbox?

Thanks!

197 Josh February 26, 2009 at 17:36

Another question Rick. I’m trying to put an adsense unit in the content area.

It shows up, but above the content and is not aligned according to my CSS (float:left;)

how would I put this in the content area? Thanks again.

198 Valerie February 26, 2009 at 18:20

Hi Rick,

I’ve been trying to unzip this file and cannot. I’ve deleted it twice and reloaded but to no avail. Any suggestions?

199 Rick Beckman February 26, 2009 at 19:52

If you’re using WordPress 2.7 or newer (which is required to use Thesis and thus, OpenHook as well), you can install the plugin via the automated installer within WordPress. No need to download the above file at all. :D

200 Rick Beckman February 26, 2009 at 19:57

It will be in the next version, per my comment above. :D

201 iGoByDoc February 26, 2009 at 20:01

Hi Rick,

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

The WP auto installer in my admin is not showing a 2.1 upgrade available.

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

Thanks,

Doc

202 Rick Beckman February 26, 2009 at 20:06

The exact code to use is included in OpenHook, listed along with the checkbox for removing the navigation menu from “Above Header.” :)

203 Rick Beckman February 26, 2009 at 20:09

What code are you using? There’s no reason something like this shouldn’t work:

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

…with this in your custom.css file:

.adsense_ad { float: left; }
204 Rick Beckman February 26, 2009 at 20:13

Ooh, my fault. I forgot to change the version in the plugin file itself; no wonder the plugins directory didn’t consider my changes a new version! Thanks for letting me know; I probably would never have noticed this on my own.

I fixed the oversight, and the auto-update should appear soon-ish. However, there’s no harm in doing a manual 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 immediately upgrade. No harm either way.

205 iGoByDoc February 26, 2009 at 20:20

Awesome… glad I decided to point it out.

In no rush, blog working fine, so I will wait for the auto installer. Just love the new auto installer – so much easier!

Thanks again,

Doc

206 Josh February 26, 2009 at 21:59

I tried putting the code in the other, but it had php in it. basically it calls…

adsense_singlepost_top_square.php

and uses the style you mention. 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;
}

207 Josh February 26, 2009 at 22:01

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

208 Rick Beckman February 26, 2009 at 22:10

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

(And when posting code in blog posts and comments, always, always, always escape the code, that way it shows up. :D)

209 Josh February 26, 2009 at 22:22

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

210 Rick Beckman February 26, 2009 at 22:35

Try also adding this to your custom.css file:

.custom div.post_box { clear: right; }

That should do it.

211 Josh February 26, 2009 at 22:49

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

212 RickA February 27, 2009 at 10:29

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

213 Rick Beckman February 27, 2009 at 16:59

The option to parse shortcodes… Now that’s a good feature request! Thanks, dude!

In the meantime, you can get around that shortcoming 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).

214 RickA February 28, 2009 at 05:36

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

215 Josh February 28, 2009 at 07:16

Hey there Rick, just a sidenote about a conflict I found after upgrading to 2.0.1 – I’m using the K2 theme while I customize my Thesis site. Well, Openhook causes older post not to show up. I get some conflict with capabilities.php line 920 – not sure if this would concern you too much, but thought you would like to know about it.

216 Josh February 28, 2009 at 07:18

just to clarify, the conflict is when K2 is activated. everything is fine with Thesis activated.

217 todd February 28, 2009 at 10:41

I don’t know what I am doing wrong but I can’t get it to unzip. I have downloaded many plugins for wordpress and know what to do but when I try to unzip this plugin 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.
anybody else have this problem or am i alone

218 Rick Beckman February 28, 2009 at 14:51

I’m not too familiar with the [singlepic] shortcode, but I’m betting what’s happening is that it can only be used within the loop (read: within posts themselves); outside of the loop, the shortcode has no idea which post it’s accessing, which picture(s) it should be referencing, and so on. Not sure. If I can figure out how to trick it, I’ll let you know.

219 Rick Beckman February 28, 2009 at 14:54

The file works fine for me; however, there’s no reason to download it. Just use the automated plugin installer in WordPress. Search for OpenHook, and it’ll come up to be installed. Easy. :D

220 todd February 28, 2009 at 15:07

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

221 Rick Beckman February 28, 2009 at 19:14

Once it’s installed via the automatic installer, you can download it to your comp via file manager. Again, not sure why the downloadable archive above doesn’t work… Does it work if you download it from WordPress’ plugin’s directory? Their archives are automatically generated, so it’ll be ever-so-slightly different than the one I created and have available above.

222 Mike March 1, 2009 at 22:14

Rick,
Not sure what I did, but I had the open hook rocking and rolling at http://www.michiganfireservice.com. Then I upgraded the openhook to 2.0, and was running a 1.3 something on thesis. I got error up the wazoo, so I unplugged the open hook and upgraded thesis 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 directory in /home/content/m/o/b/mobrian/html/mifireservice/functions.php on line 22

Fatal error: main(): Failed opening 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?

223 Rick Beckman March 1, 2009 at 22:26

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 throwing the error, so it’s being used by something, which is odd. Try deleting it, seeing what happens.

224 Mike March 1, 2009 at 22:45

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

225 E.J. March 2, 2009 at 00:49

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 condition 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/480×2701.jpg" alt="480×270 test image" title="480×2701" width="480" height="270" class="size-full wp-image-232" />
<p>Text before content, not before content 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 correctly appears a few paragraphs down the page, captioned as “480×270 test image”.)

My eventual goal is to get video(s) into the Before Content location, on various pages using conditions. So it seemed to me that first I should try to learn how to place jpg images in the desired location, and later I will work on placement of the video player.

If the error is apparent, please let me know.
Thanks, – E.J.

226 Rick Beckman March 2, 2009 at 12:50

WordPress’ conditional tags are a bit confusing 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 target your front page, whether it be the default or set to a custom page, you should be using is_front_page(). Hope it works for ya. :D

227 E.J. March 2, 2009 at 13:29

Rick -
Thanks, it worked.
I had not noticed, until after reading your comment above, that the test image was showing only on the “Blog” page. After making the change you recommended, 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 learning mode.
Best regards,
- E.J.

228 Ken Grogan March 3, 2009 at 17:26

Hi Rick – I just wanted to let you know about a little glitch I encountered 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 backslash per quote):

and after the next save I see this (two backslashes per quote):

and then after the next save I see this (three backslashes per quote)

at this point I start getting the expected PHP error:
Warning: Unexpected character in input: ‘\’ (ASCII=92)

229 Ken Grogan March 3, 2009 at 17:31

Oops, I included the PHP tags and that is obviously 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\\\";

230 Rick Beckman March 3, 2009 at 17:31

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

231 Rick Beckman March 3, 2009 at 20:09

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

232 Chris Stroud March 4, 2009 at 17:13

Hi Rick,

Thank you for the plugin, I should have started using it months ago. I am currently re-doing my site at blog.chrisstroud.net and have a quick question. 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 appreciated. Thank you.

233 Rick Beckman March 4, 2009 at 17:19

Well, I could be more specific if I knew what footer code you were using, so I’ll just assume a basic paragraph. Try this out.

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

That should do it.

234 Chris Stroud March 4, 2009 at 17:27

Worked perfectly. Thank you.

235 Rick Beckman March 4, 2009 at 18:17

You’re welcome, dude!

236 James March 6, 2009 at 14:28

I have tried to insert the following google code into the “before comment meta” hook to no avail. I have enabled php, but nothing ever shows up.

237 Rick Beckman March 6, 2009 at 16:58

Please escape your code prior to posting it in comments. :)

238 James March 6, 2009 at 22:26

10-4

How’s this:
<?php
if (is_page() )
{ ?>
<script type="text/javascript"><!–
google_ad_client = "pub-22222222222222";
/* 468×60, created 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 }
?>

239 Rick Beckman March 7, 2009 at 01:54

Much better. :) Now, with that, what’s the link to your site? I like to try to see things “live” if at all possible… Helps me to visualize a solution.

240 Rick Beckman March 7, 2009 at 03:03

Heads up, everyone: If you’re part of the elite group of legitimate Thesis users (i.e., your copy isn’t pirated), you can now get OpenHook support in a nice, organized environment on the DIYthemes support board. :D

241 ryan shell March 11, 2009 at 10:18

Rick,

Thanks a ton for creating this! I need a little (actually a lot) of guidance. My home page acts as a blog but I want to have specific bit of info show up prior to the begining of the blog entries, not to be confused with info that shows up on every blog post. For example, 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 getting at? Any idea how that can be done?

242 Rick Beckman March 11, 2009 at 18:37

Hey, Ryan. Glad you enjoy OpenHook! To add content 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 } ?>

243 Jo Anne March 12, 2009 at 18:52

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 anyway!) I followed your video and added a copyright statement via my custom_functions file, and followed instructions somewhere for switching 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 problem 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 nothing to me about what cool thing that could do for me. As someone who is mainly using Thesis as a static website until I can get organized to begin blog posts in addition, is there a hook or two or three that you think I could benefit from? Thanks, I appreciate whatever you or your subscribers want to suggest. http://www.tnlvirtualsolutions.com

244 Dr. K March 12, 2009 at 19:13

Hi. I went to implement openhook 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 interface. Sorry for the inconvenience.

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

Thank you
Rick

245 Rick Beckman March 12, 2009 at 20:41

Using your file manager, change the permissions on the custom/custom.css file to “666″ (or “0666″ or writable by everyone).

246 Chris March 15, 2009 at 01:58

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

247 ryan shell March 19, 2009 at 09:00

Rick,

I’m a bit confused. First, let me mention that I’m running Thesis on two different sites, both configured the same way. Both sites are using openhook, but they appear to be different versions. The version that is working only has one “little ass save button” at the very bottom. The version that isn’t working has a “little ass save button” under each section. Have you had anyone else having this issue?

Site that openhook works with (nothing currently implemented, but I did just test to make sure it was working) is greensboropolitics.com. Site it isn’t working with is greensborocommunitywatch.com.

Thanks for any help you can provide.

Ryan

248 Rick Beckman March 19, 2009 at 10:40

By “not working”, what do you mean? Are there any errors? Are you able to enter customizations and save? If you are, does nothing happen on the site itself?

My initial guess is that you’re using a caching plugin of some kind which isn’t updating after OpenHook’s settings are changed. You’ll need to dump the cache via that plugin’s settings after any settings are changed in OpenHook.

That said, your working site is running an outdated version of OpenHook. If you’re running a recent version of Thesis, you’ll want the latest version of OpenHook to take advantage of all of the newer hooks and so on. :D

249 Stephen Ross March 19, 2009 at 13:13

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

Can you help?

250 Stephen Ross March 19, 2009 at 13:27

solved my problem – thanks

251 Rick Butts March 19, 2009 at 15:11

You mention that to remove the Thesis attribution in the footer (and yes, I do have a developer multi-site license) – you use the hook mentioned below to edit custom_functions.php

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

I’ve tried the Footer box (just displayed my code as text) and the Before HTML – did nothing.

Where should we place hooks for sitewide configuration?

Thanks – rick

252 Rick Butts March 19, 2009 at 15:20

Okay WAAY down at the bottom of OpenHook – I see you’ve included a checkbox to remove the footer attribution – whew.

Thanks – are there any other kinds of sitewide hooks that don’t go into a preset box on OpenHook?

Where would they need to go?

thanks – rick

253 Rick Beckman March 19, 2009 at 17:57

Any of the Thesis remove_actions() probably won’t work in OpenHook’s boxes — the box content is fired before Thesis adds the actions, I think. That’s why I included the checkbox removal system.

254 Alec Wild March 19, 2009 at 18:36

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 similar remove_actions() in other OpenHook boxes, and they work perfectly. A quick test showed that remove_action('thesis_hook_footer', 'thesis_attribution') in the Before Footer box worked to remove the attribution. Useful if you want the attribution removed only on certain pages.

255 Rick Beckman March 19, 2009 at 21:36

That’s good to know, Alec! I haven’t messed around with customization via OpenHook too much — I more or less test it enough to make sure it works (barring the occasional bug or two), so a lot of its power is unknown even to me. I leave it to you users to do the creative stuff… Kinda like Thesis itself: we know it’s a powerful system, but there are sites out there which blow Chris and myself away. We can never underestimate users’ creativity!

256 Ray Atreides March 20, 2009 at 00:29

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

I have a small problem just surfaced after making 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 message occurs when I use the standard Thesis Search Box. After typing in a key word, the search results page is displayed with the following error message…

Catchable fatal error: Object of class WP_Error could not be converted 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 experienced PHP user and would appreciate it if you could help me on this one.

Regards,

Ray

I am using…
Thesis 1.4.2
Openhook 2.01
PHP 5

257 Ray Atreides March 20, 2009 at 00:34

Hi Rick,

Noticed on my previous comment that the code did not appear…

Here it is again wrapped in “”

Regards,

Ray

258 Ray Atreides March 20, 2009 at 00:47

Hi Rick,

My apologies 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

259 E.J. March 20, 2009 at 00:51

Ray -

Rick has pointed out above, for example comment 239, that for the code to show up it in a Wordpress comment it has to be “escaped”. This website will do the conversion:
http://www.htmlescape.net/htmlescape_tool.html

Regards,
-E.J.

260 Ray Atreides March 20, 2009 at 00:59

Hi Rick,

I have just used the htmlescape 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

261 Rick Beckman March 20, 2009 at 02:55

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

Try wrapping your code in a conditional so that it only is active if a non-search page is being viewed. The (negative) search conditional is !is_search().

262 Ray March 20, 2009 at 06:42

Hi Rick,

Thank you for your response and assistance.

I have tried for a couple of hours with no success to follow your advice (which makes sense to me logically) and wrap my code in the conditional as you quoted, using Openhook as before.

I looked up the WP Codex, W3Schools site etc for examples but unfortunately my lack of PHP knowledge has defeated me.

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

Regards,

Ray

263 Karen Clark March 20, 2009 at 12:01

Hi – I have successfully used openhook to add wording but I am struggling to get images in place. I put in code src=image path; and just get worded detail on site, no pictures. Can someone please suggest what I should put in openhook to add images in various spots. I copied code from other images I have placed and am clearly missing 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 initial header, and just got all the code. I am sorry if this is a silly newbie question! But really thank you!

264 Char James-Tanny March 20, 2009 at 19:04

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

I think I’ve tripped over something, though. I want to move the navigation so that it falls after the feature box and before the content_box div. But whether I place it before content_box or after header, it actually shows up before feature_box.(I would expect it to show up before feature_box if I specify after header…it’s the before content_box that I think is confused.)

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

Thanks again for an awesome plugin!

265 Ray March 21, 2009 at 21:36

Hi Rick,

Sorry to hassle you but are you able to help me on this one?

Should I post on the Thesis Forum maybe?

Regards,

Ray

266 Avinash D'Souza March 23, 2009 at 02:40

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 copyright? Noob here….my code so far is:

Copyright 2009–, Avinash Jude D’Souza.

Is there any way I can amend the Thesis attribution? What I want to say is “This site is powered by Thesis and Wordpress” where both Thesis and Wordpress are links.

Cheers,
Nash

267 JJ89 March 23, 2009 at 04:14

I’ve been playing around with the hooks for days, and just got referred to your plugin, what a relief!!!! Thanks for a great working plugin.

268 Rees Maxwell March 23, 2009 at 20:42

Hey KingdomGeek… I’m lovin’ your OpenHook addition to Thesis! I do have one suggestion. 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 easier and quicker to navigate if you would put a + after each heading, like Custom Stylesheet, Before HTML, etc. Then what would drop down would be the input box, and “Execute PHP on this hook” type processing checkboxes, and the “Little Ass Save Button.” This way I could quickly get to just what I want to edit, without too much scrolling.

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

269 Rick Beckman March 23, 2009 at 20:50

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 hopefully I’ll be able to get another improvement out into the wild soon. I hope.

270 Betsy Richter March 25, 2009 at 00:15

Rick – are there any incompatibility issues that you know of between Thesis 1.5 beta 3 and OpenHook? I was making 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 insisting that I hadn’t make the changes, ’cause he couldn’t see it on his screen. (Yes, I’d hit the little-ass button multiple times!) He even logged out and then back in to triple-check. When I FTP-ed in to my server to download the file and prove him wrong – well, he was right. (I ended up making the edits offline & uploading a fresh file to my server.)

I love the plugin and would love to continue using it. Let me know if I can provide more information or help in any way.

271 John McLearran March 25, 2009 at 13:48

It would be great if you could somehow “export” the changes you’ve made in Thesis OpenHook as properly formatted custom.css and custom_functions.php.

Any plans on adding this functionality in the future?
(I’d even be willing to pay for a version that had that option…)

272 Rick Beckman March 25, 2009 at 16:17

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

I’ve thought about doing an export feature, but given the ease of copy/paste and the unlikelyhood of using so many hooks that copy/paste becomes an undo burden, it’s not too high a feature on my list. Once Thesis itself allows exporting of settings, an export of OpenHook settings may get a second look as well. Good suggestion, though.

273 Rick Beckman March 25, 2009 at 16:19

It should work perfectly. If you’re seeing 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 anything at work, and whenever the page is loaded, it pulls directly from the file.

The only incompatibility between Thesis 1.5b and OpenHook is that 1.5b introduces a couple of new hooks which I don’t think I’ve added spots for in OpenHook.

274 Penny March 26, 2009 at 05:07

Thanks for this plugin. Such a life-saver for me!

275 John Gilmore March 27, 2009 at 18:10

Hi Rick,

I’m new to all this coding and hoped that OpenHook would help resolve some of the issues I’ve been struggling 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 output of the Global Translator Plugin into, (maybe a box?), on the Right Side of my Header (it wants to go into a sidebar widget)., and.
3. I’d like to get rid of the WP Admin link in the footer.

I will be most grateful for any directions, advice or links to resolutions to these issues.
Thanks…John

276 Alec Wild March 27, 2009 at 18:25

Hey John,

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

The easiest way to do the logo on the left is to create a banner, 960 px wide or so, with the logo and title and tagline as part of the banner. Then you can just replace the title and tagline with your custom banner.

Not sure about putting a content box over on the right above your sidebar, but my interest is piqued . . . I’ll look into it a bit.

Cheers,

Alec

277 Martin Malden March 27, 2009 at 22:00

Rick, hi,

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

‘menu.html’ is sitting in the ‘custom’ folder, right next to the ‘custom_functions.php’ file and the ‘Execute php’ check box is checked.

But absolutely nothing appears in the function box.

I’ve tried different variations:

and..

When I created a new completely unrelated php page in a separate domain and call that file using everything works perfectly.

Any help much appreciated!

Cheers,

Martin.

278 Martin Malden March 27, 2009 at 22:04

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 sitting in the ‘custom’ folder, right next to the ‘custom_functions.php’ file and the ‘Execute php’ check box is checked.

But absolutely nothing appears in the function box.

I’ve tried different variations:

//

and..

//

When I created a new completely unrelated php page in a separate domain and call that file using everything works perfectly.

Any help much appreciated!

Cheers,

Martin.

279 Martin Malden March 27, 2009 at 22:05

Sorry – still can’t show the calls I’ve used. I can send you some screenshots if you can let me have an email add.

Cheers,

Martin.

280 Rick Beckman March 28, 2009 at 00:53

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

Also, note that whenever posting raw code in WordPress — whether in posts or comments — you need to escape it. ;)

281 Martin Malden March 28, 2009 at 07:55

Rick, hi,

Yes – Feature Box is enabled.

I’ve had the feature box working using the custom_functions.php file but I’m trying to create an easy way to revert to a default message in the Feature box when there’s nothing important to say, and to do it through the plugin!

The escaped call variations I’ve used in the plugin are here:

<? include("menu.html"); ?>
<php? include("menu.html"); ?>
<?php include("menu.html"); ?>

I’ve got the Execute PHP check box checked.

Cheers,

Martin.

282 Cynthia Yockey March 28, 2009 at 15:27

Rick,

I was using the scrolling ball on my mouse to scroll around in OpenHook and suddenly ALL the text got much smaller. Also, when I checked my site, everything is compressed on it, too. What happened and how can I undo this? PLEASE HELP!!!

Thank you.

Cynthia

283 Cynthia Yockey March 28, 2009 at 16:20

Rick,

By “all the text got smaller” I mean ALL of it — the descriptions of the OpenHook boxes, the text on other pages of the Admin area, the site itself. In addition, the site’s column widths changed and got smaller. I was just scrolling in the OpenHook plugin when these changes seemed to make themselves!! What could I possibly have done to change those settings? How can I restore the default column widths and font sizes?

Thank you!

Cynthia

284 Cynthia Yockey March 28, 2009 at 16:59

Rick,

My problem is a “feature” of Firefox 3 — I must have had the “control” key down while I was scrolling down with the scroll wheel of my mouse and the combination reduced the size of everything on the page. I have fixed it now.

Thanks.

Cynthia

285 MK March 29, 2009 at 00:27

new to wordpress, thesis & thesis openhook.

am trying to load header: http://www.randomspecific.com have uploaded .gif image via cyberduck and then entered:

but the image is broken. have tried a .png as well but no difference. clueless & in need of help. cheers.

286 Rick Beckman March 29, 2009 at 00:48

Could you please escape your code to prevent WordPress from stripping it? Thanks.

287 Justin Thomas March 29, 2009 at 00:48

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

288 Rick Beckman March 29, 2009 at 00:53

The third option is the correct format, but it will only work if menu.php is in the wp-content/plugins/thesis-openhook/ folder.

If you want to store the file elsewhere, you need to include the absolute or relative path to the file.

289 MK March 29, 2009 at 01:08

thanks for the tip on adding code here.
this is the code that i’ve entered in the thesis openhook header panelescape

290 MK March 29, 2009 at 01:10

<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\" />

291 Martin Malden March 29, 2009 at 01:14

Got it..!

Many thanks Rick – much appreciated..!

Cheers,

Martin.

292 Chris Mitchell March 29, 2009 at 01:51

Hi Rick
I am trying to get the text of a custom field to show up in Openhook.

This string works fine when pasted in a normal Wordpress template, 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 custom field
<?php echo get_post_meta($post->ID, ‘author’, true); ?>

Not sure if it matters, but I am calling the author name into an Amazon javascript widget, 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 printing. i.e like this
amzn_wdgt.defaultSearchTerm=”;

As I say, when I put this code into a normal Wordpress theme, the custom field prints fine.

Here’s an example of a page with the Amazon Widget on it so you can see the source code for yourself 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

293 Chris Mitchell March 29, 2009 at 02:04

Hi again Rick
never mind – I solved my own problem!
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 someone else.
Best
Chris

294 Rick Beckman March 29, 2009 at 02:15

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

295 MK March 29, 2009 at 02:24

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

296 Rick Beckman March 29, 2009 at 02:50

Your image source is a broken link. Try removing the “public_html” bit; that’s almost never supposed to be part of the Web-facing address.

Also, removing the slashes from before the quotes is a good idea too, though that isn’t what’s keeping your image from appearing.

297 MK March 29, 2009 at 02:59

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

{ 11 linkbacks }

Previous post:

Next post: