Zoinks! Graphics
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Exclude album in slideshow?Here’s the link to my site: http://www.rjdgallery.com/. Basically I want all the photos except those in the “Openings” album to display in the sidebar slideshow on the homepage.
Forum: Fixing WordPress
In reply to: hot to get the page title for a given page id?If you need just the first part of the link — say for image links — and plan on using it a lot, try this “elegant” solution… Put the following function in your theme’s functions file…
function WPpageLinkStart($num) { return '<a href="' . get_page_link($num) . '" ' . 'title="' . get_the_title($num) . '">'; }Then you can include that function wherever you need it, ie…
echo WPpageLinkStart(123) . '<img src="/path/to/image123.jpg" /></a>';Excelsior!
Forum: Everything else WordPress
In reply to: make a single site accessible by multiple domain namesI was just wondering about this myself and stumbled upon a solution. However, it requires your WordPress install (or at least your WP index.php and .htaccess files) be located in the root directory. So if you need to, follow the instructions here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Once that’s done, go to your General Settings and completely remove the “Blog address (URL)” and save. Now all the links generated by WordPress will be relative to your site’s root directory, so once you enter on abcd.com you stay there, same as efgh.com etc.
Now in order to style your header, you will need to put something like this in your header….
$ThisDomain = $_SERVER['SERVER_NAME']; if($ThisDomain=='abcd.com' || $ThisDomain=='www.abcd.com') { echo 'abcd design stuff'; } elseif($ThisDomain=='efgh.com' || $ThisDomain=='www.efgh.com') { echo 'efgh design stuff'; }etc…
Hope that helps!!
Forum: Fixing WordPress
In reply to: Apply filters to get_the_content()Fantastic! Thanks for sharing. 🙂
Forum: Fixing WordPress
In reply to: custom emails sent from wordpress sitewhooami, can you provide an idea what plugins do this? I’ve been searching for hours and can’t find a clue. Some years back there was a plugin that did this as part of changing the login page, put that was several WP versions back…..
Forum: Fixing WordPress
In reply to: Comment Notification LOOK/DESIGN / FORMATAny way to change the from address of notification emails from the default “wordpress@domainname.com”? Whoo mentioned in another post that there are several plugins to achieve that but after searching for hours I’m still no closer to a solution….
Forum: Fixing WordPress
In reply to: How to print category name in title tag?Give this a shot….
<title><? if(is_front_page()) { echo get_bloginfo('name') . ' » ' . get_bloginfo('description'); } else { wp_title('«',true,'right'); if(is_single()) { $category = get_the_category(); echo $category[0]->cat_name . ' «'; } echo ' ' . get_bloginfo('name'); } ?></title>Forum: Requests and Feedback
In reply to: Strip out Microsoft Word’s extraneous HTML tagsA plugin would be awesome!
In the meantime, interesting idea darinreid. Where would one install that code? (which template or core file?)
Forum: Requests and Feedback
In reply to: Password Protected Posts Logout?I agree that a log out for protected posts to break the password cookie would be great. Looks like some code on this WP trac ticket may be useful in creating a logout link, specifically “pluggable.php”…
http://core.trac.wordpress.org/ticket/2055
I tried just inserting the code, but it’s based on an older WP version so doesn’t work with 2.7.1. Maybe stronger coders than I can have better luck, or provide some tips.
Forum: Fixing WordPress
In reply to: Disable comments throughout the blog?I’ve seen a few requests for this type of solution during my own quest. Having just come up with an alternative to manually changing each post’s settings *or* editing the database, I figured I’d post it here for the benefit of others.
In /wp-content/themes/YOURtheme/single.php replace all the if/elseif $post->comment_status and ‘open’==$post->ping_status with the following…
if(('open'==$post->comment_status) && ('open'==get_option('default_comment_status'))) { echo ' You can follow any responses to this entry through the '; post_comments_feed_link('RSS 2.0'); echo ' feed. '; echo ' You can skip to the end and <a href="#respond">leave a response</a>. '; } if('open'==$post->ping_status) { echo ' You can <a href="'; trackback_url(); echo ' " rel="trackback">trackback</a> from your own site. '; }Then change comments_template(); to…
if('open'==get_option('default_comment_status')) { comments_template(); }The resultant potential repetition of “You can” verbiage isn’t as elegant as the the default text, but it solves the issue of being able to turn off comment display/commenting in ALL posts in one shot using the Administration > Settings > Discussion “Allow people to post comments on the article” button, overriding each post’s individual discussion settings.
Hope this helps someone out there!
Forum: Themes and Templates
In reply to: Media buttons area in TinyMCE editorJust did a hack that likely won’t survive upgrades, but here it is anyway…
In the file /wp-admin/includes/media.php under “function media_buttons()” delete the following code….
<a href="{$video_upload_iframe_src}&TB_iframe=true" id="add_video" class="thickbox" title='$video_title'><img src='images/media-button-video.gif' alt='$video_title' /></a> <a href="{$audio_upload_iframe_src}&TB_iframe=true" id="add_audio" class="thickbox" title='$audio_title'><img src='images/media-button-music.gif' alt='$audio_title' /></a> <a href="{$media_upload_iframe_src}&TB_iframe=true" id="add_media" class="thickbox" title='$media_title'><img src='images/media-button-other.gif' alt='$media_title' /></a>Forum: Themes and Templates
In reply to: Media buttons area in TinyMCE editorI agree with popart: Only want the admin to be able to upload movies and Flash media, everyone else just images. I’m on shared hosting and don’t want my members to upload huge files and blow out my storage and/or bandwidth. Any tips other than WP core hacks that will get overwritten with updates?
Forum: Themes and Templates
In reply to: How To Add Target=”_bank” In Comments.phpSweet! Thank you, Kalon. Your code helped me with my blog!!
I adjusted it to account for comment authors who don’t have a site address…
echo '<cite>'; if(get_comment_author_url()) { echo '<a href="' . get_comment_author_url() . '" target="_blank" title="Website of ' . get_comment_author() . '">' . get_comment_author() . '</a>'; } else { comment_author(); } echo '</cite>';Forum: Fixing WordPress
In reply to: remove page title based on if statementDid you resolve this? I’d think something like…
<h2><?php if (get_the_title() != “Homepage”) echo get_the_title() ?></h2>
Forum: Plugins
In reply to: Author Archive: show the name of the authorSweet! This is just what I was looking for. Thank you both!