Doodlebee
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: exlusions are ignored when combined::smacks head::
NOW you’re making sense. I’m having a total DUH moment here. Thank you for pointing out my silliness! I appreciate it π
Forum: Fixing WordPress
In reply to: exlusions are ignored when combinedthat’s funny… it’s seems logical *to me* LOL
ETA: if I use
if (is_search() || is_404())I can make stuff appear on those two pages. So I guess I don’t get why the addition of the “!” makes it “illogical.” Does that make sense?I don’t want the sidebar to show up on the search results page or the 404 page.
I realize I could just do a search.php and 404.php template file, but since the layout is exactly the same as the index.php file, sans sidebar, I just wanted to use a conditional to not pull it in.
Excellent. If you get a chance, could you let me know what plugin it was that caused the issue? Maybe I can figure some kind of workaround out so it doesn’t happen again.
Thanks!
Can you give me some more information please? The instructions are, indeed, NOT expanded by default. In all of my tests, the Instructions plugin doesn’t affect the Screen options stuff either, so I’ll need more information to figure out what’s going on here.
The only thing I can think is that there’s some kind of jQuery conflict going on that’s coming from something else, and it’s causing these issues. Have you tried disabling all other plugins and reverting your theme back to 2010 to see what that does?
Thank you! I appreciate the compliments π Just drop me a note if you find any issues π
Forum: Fixing WordPress
In reply to: Odd issue with if/else statementOkay, got it sorted. first off, I stupidly forgot to add the
$hide = $instance['hide'];line in the function widget() area. but still, the only thing that worked was<?php checked(isset($instance['hide'])); ?>– adding the ‘? true : false’ (or other) still made it not work. Which is really weird.Forum: Themes and Templates
In reply to: toggle post to from post title to full article in the loop (.js)Hi Tom,
there’s lots of tutorials out there already on it. I’ve used several of them on sites for clients. I actually did it just recently on one site (they wanted the “read more” link to expand further content, rather than go to the single post page). How that was done was…yep – I created my own function. In the index.php file, I used it in place of the_content:
<?php toggle_read_more('Read the rest of this entry »'); ?>And the function looked like so:
function expand_header_js() { global $post; if(have_posts()) : while(have_posts()) : the_post(); $text = $post->post_content; $find = strpos($text, '<!--more-->'); if($find !== false) { $ids[] .= $post->ID; } $commentIDs[] .= $post->ID; endwhile; endif; wp_reset_query; $header = "\n" . '<!-- toggle read more -->' . "\n"; $header .= '<script type="text/javascript">' . "\n"; $header .= 'var $toggleReadMore = jQuery.noConflict();' . "\n"; $header .= '$toggleReadMore(document).ready(function() {' . "\n\n"; if(!empty($ids)) { foreach($ids as $i) { $header .= "\t" . '$toggleReadMore("#expand-content-' . $i . '").hide();' . "\n"; $header .= "\t" . '$toggleReadMore("#expand-link-' . $i . '").click(function() {' . "\n"; $header .= "\t\t" . '$toggleReadMore("#expand-content-' . $i . '").toggle("fast");' . "\n"; $header .= "\t\t" . '$toggleReadMore(this).text($toggleReadMore(this).text() == "Read the full article" ? "Hide the article" : "Read the full article");' . "\n"; $header .= "\t\t" . 'return false;' . "\n"; $header .= "\t" . '});' . "\n\n"; } } foreach($commentIDs as $c) { $header .= "\t" . '$toggleReadMore("#comments_div-' . $c . '").hide();' . "\n"; $header .= "\t" . '$toggleReadMore("#expand-comment-link-' . $c . '").click(function() {' . "\n"; $header .= "\t\t" . '$toggleReadMore("#comments_div-' . $c . '").toggle("fast");' . "\n"; $header .= "\t\t" . '$toggleReadMore(this).text($toggleReadMore(this).text() == "Leave a Comment" ? "" : "Toggle Comment Form");' . "\n"; $header .= "\t\t" . 'return false;' . "\n"; $header .= "\t" . '});' . "\n\n"; } $header .= '});' . "\n"; $header .= '</script>' . "\n"; $header .= '<!--/end toggle read more -->' . "\n\n"; echo $header; } function toggle_read_more($type = '') { global $post; $text = $post->post_content; $id = $post->ID; $find = strpos($text, '<!--more-->'); if($find !== false) { $text = explode('<!--more-->', $text, 2); $pretext = apply_filters('the_content', $text[0]); $posttext = apply_filters('the_content', $text[1]); $before = '<div id="expand-content-' . $id . '" class="expand-print">' . "\n"; $after = '<!-- end expandable -->' . "\n" . '</div>' . "\n\n"; $after .= '<a class="more-link" href="" id="expand-link-' . $id . '">Read the full article</a>' . "\n"; $content = $pretext . $before . $posttext . $after; } else { $content = apply_filters('the_content', $text); } if($type == 'return') return $content; else echo $content; }and you had to have the jquery enqueued. The theme I did for this client is massive (seriously customized) so I *think* I have everything here for just this functionality, but I’m not 100% sure I didn’t forget something! bu hope it gets you started, at least. π
Forum: Themes and Templates
In reply to: toggle post to from post title to full article in the loop (.js)First off, Java isn’t the same thing as javascript. They are two completely different platforms.
Second, what you’re looking for is called “jQuery Toggle“. (slideToggle is prettier and requires some easing)
You can read the documentation there (and see demos, explanations, etc.) that will tell you what’s going on/how to use it.
Forum: Installing WordPress
In reply to: Installing WP locally – I am in trouble!!Open your browser window, and in the address bar, type in either “localhost:port” (“port” being the port number – usually it’s 8888 but you have to look in your httpd.conf file in Apache to be sure) or “localhost:port/wordpress” (“wordpress” being the directory in your localhost documents section where you’ve placed your wordpress files)
If your’e on Mac, you’re probably using MAMP. Asking MAMP/reading the documentation will give you a better handle on things.
Forum: Fixing WordPress
In reply to: wp get archives link loads index.phpOkay – sorry I couldn’t help more! it’s kind of hard to see it without actually *seeing* it – if you know what I mean π
Forum: Fixing WordPress
In reply to: .docx files and functions.phpWhat version of Word are you using? the .docx extension wasn’t available until Office 2007…
Forum: Everything else WordPress
In reply to: Can I include my own mysql content in my pages?As long as you have everything connected correctly, you shouldn’t have any problems.
Forum: Fixing WordPress
In reply to: wp get archives link loads index.phpI can only guess that because you don’t actually have the content created properly that this is the root of the issue. Usually, when I’m developing a theme for WordPress and I want to code it in HTML first, I only do it to get the proper page layouts in place. once I have that sorted, I’ll break it apart into the template files and THEN I start adding content and checking for functionality. Sounds to me like your’e trying to check the functionality before you even have all the content properly inserted.
I just tried three localhost installs, and wp_get_archives does put out a link (like yours does) and when I click the links, it takes me to the page that has all the archived stuff in there. So perhaps you should try to finish up the theme first, before you start inserting the content? I dunno – I’ve never “mingled” the stuff before – seemed to always make things more difficult.
Forum: Fixing WordPress
In reply to: .docx files and functions.phpThis is a local/intranet issue? what server are you running?
duh – nevermind. I see you say “Apache”.
You say “We’d successfully added the ability to upload these to posts,” – how are you uploading them? The media management is how I always do it, and it causes no problems. but did you do something else/use another method to upload the docx files? I just insert them into the post like I do when I add images.
Forum: Plugins
In reply to: Which forum plugin is this?At the very bottom of the site is a link that tells you who created it (ENTP). Go to their site, and it says:
“Tender Support is a discussion-based customer support system that we built from the ground up…”
I would say it’s completely custom-built and not a plugin that’s available anywhere. if you want it, you’ll have to write it yourself (looks like that’s what they did!)