tom_de_schlong
Forum Replies Created
-
The site is live by the way at https://www.michaelgaisford.com/
Tom
Is there a way of calling the contents of that page in the sidebar.
Forum: Plugins
In reply to: Help needed extending custom functionSolved it myself
<?php // This Function Powers the thumbnail image that is used in my portfolio function return_ThumbNail($Thumb) { if (preg_match('/<img[^>]*>/',$Thumb,$Treffer)) { $Thumb = preg_replace('/(<img ).(alt=\'\').*(src=\'[^\']*\').*( \/>)/','$1$2$3',$Treffer[0]); $Thumb = preg_replace('/(.[^.]* \/>)/','.thumbnail$1',$Thumb); } else { $Thumb = false; } return $Thumb; } ?>
Tom
Forum: Plugins
In reply to: “Post Image” not working WordPress 2.1.3I could’nt get this to work with my install so I am instead using the following code to achieve the same affect.
<?php // This Function Powers the thumbnail image that is used in my portfolio function return_ThumbNail($Thumb) { if (preg_match('/<img[^>]*>/',$Thumb,$Treffer)) { $Thumb = preg_replace('/(<img ).*(src=\'[^\']*\').*( \/>)/','$1$2$3',$Treffer[0]); $Thumb = preg_replace('/(.[^.]* \/>)/','.thumbnail$1',$Thumb); } else { $Thumb = false; } return $Thumb; } ?>
Tom
Forum: Plugins
In reply to: Front page – ExcerptYou need to change the main index.php file in your main theme directory
Forum: Plugins
In reply to: Front page – ExcerptJust to make it easier for people coming in off of search engines (Like me). This is the final code you need
<?php if ($post->post_excerpt) :
$output = $output = $post->post_excerpt;
$output .= ' <a href="'.get_permalink().'" rel="bookmark" title="Read the rest of '.the_title("","",false).'">Continue reading...</a>';
echo apply_filters('the_excerpt',$output);
else:
the_content();
endif;
?>Hope this helps
Forum: Plugins
In reply to: current_page_itemIts ok I have fixed it i simply changed the following code in “template-function-post.php” from
$css_class = 'page_item';
if( $page_id == $queried_obj->ID) {
$css_class .= ' current_page_item';
}
to the following
/* START OF EDIT */
if( $page_id == $queried_obj->ID) { $css_class = 'current_page_item'; }
else { $css_class = 'page_item'; }
// This makes the current page have the 'only' the current_page_item class and all other pages the page_item class
/* END OF EDIT */remember to backup before you edit the core files and as ever note down wqhat you changed and when, you will regret it otherwise.
Cheers Tom
Forum: Fixing WordPress
In reply to: Blank page after adding commentHi this isn’t really a fix just a thought
Have you tried disablng all your plugins and activating the default theme, if so does this fix the problem or not?Forum: Plugins
In reply to: current_page_itemForum: Installing WordPress
In reply to: Mysql Grant tablesRight so do i just set up on user with all permissions
will people be able to post comments still or do i need to set up another user with limited permissions.
I dont really know what i am talking about any help would be great
TomForum: Installing WordPress
In reply to: MysqlMy host wants to know what he needs to do to Mysql so that it works with WordPress, do I simply need to set up one user with all permissions, What about people posting comments do i need to create a username for them as well with limited permissions.
I dont really know what I am tlaking about here so any help would be great.
My host wanted to know what permissions I needed to have set for the “Grant Tables”
Please help I want wordpress so much