zilla4
Forum Replies Created
-
Forum: Alpha/Beta/RC
In reply to: 2.7 New admin interfaceAh found my answer! My old site uses PHP4.0 but my new one uses PHP 5.0.
With PHP 5.0 you need to assign the memory usage for your php pages. I’m not a techie so I called my host and asked them to increase my PHP memory and ta da! no more blank pages… so not WordPress problem at all but a PHP 5.0 and website host problem! ??
Forum: Fixing WordPress
In reply to: Admin Dashboard DisappearingAh Hah! Found the problem!
This is so common on the forum “Blank Pages” to do with admin but there is only one post I could find that answers it. I’m not a techie so forgive me if my asnwer isn’t exact….
WordPress databases use php pages…
Most people using PHP 4.0 will have no problems.BUT
If you are using PHP 5 you need to manually assign memory to your PHP usage. I couldn’t do it personally (again not a techie!) so I called my host and asked them to increase my PHP memory! Problem solved no more blank pages!!
Forum: Alpha/Beta/RC
In reply to: 2.7 New admin interfaceHi,
I moved my blog from one url to another… exact same host same web set up . I reinstalled wordpress 2.7.1 which I was using on my old site.The plugins which work on my other site when installed on the new one cause the plugins page to stop working (all I see is the original intro page even though several plugins were installed) and the dashboard to disappear(white page no error message).
Sometimes when I install plugins and re-login the whole admin sections is a blank white page… I don’t know what’s wrong as it is ‘theoretically’ exactly the same as the old site. Is this a common error? Can anyone suggest a fix?
The only way I can fix it at the moment is to have no plugins at all (not even akismet) and that seems a bit pointless…
Forum: Themes and Templates
In reply to: Getting Sidebar to show in comments with default themeThank you that is wonderful! I was tearing my hair out over this!
… I have a dumb question though… My sidebar shows up now but the bookmarks and login are missing… I’m using the default theme with the latest version of wordpress… does anyone have an idea of why this is missing??
thank you so much if you can help!
Forum: Themes and Templates
In reply to: problem formating bookmarks with <li class>Problem Solved…
CSS
#sidebar a, #sidebar a:visited { text-decoration: none; color: #797979; } #sidebar a:hover { text-decoration: none; color: #cc9900; } /* this is the >> color and the (1) number color on categories*/ #sidebar ul ul li { color: #878787; } #sidebar ul { list-style-type: none; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; } .sidebar_alternate_title_li{ font-size: 1.4em; font-weight: bold; color: #9e9e9e; list-style-type: none; list-style-image: none; margin-top: 20px; margin-bottom: 3px; padding-bottom: 1px; border-bottom: 1px solid #5f5f5f; } .sidebar_alternate_content_li{ font: 1em 'Lucida Grande', Verdana, Arial, Sans-Serif; color: #797979; list-style-type: none; list-style-image: none; margin-top: 3px; margin-bottom: 3px; padding-bottom: 0px; border-bottom: 1px solid #5f5f5f; } #sidebar ul li ul li { list-style-type: none; list-style-image: none; margin-bottom: 0px; margin-top: 3px; margin-bottom: 3px; margin-left: 0px; margin-right: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; border-bottom: 1px solid #5f5f5f; } #sidebar ul ol { list-style: none; margin-bottom: 0px; margin-top: 0px; margin-bottom: 3px; margin-left: 0px; margin-right: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; } #sidebar ul ol li { color: #797979; margin-bottom: 0px; margin-top: 0px; margin-bottom: 3px; margin-left: 0px; margin-right: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; border-bottom: 1px solid #5f5f5f; } #sidebar ul ul li { margin-top: 3px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; }
PHP
<div id="sidebar"> <ul> <?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <?php get_search_form(); ?> <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. <li><h2>Author</h2> <p>A little something about you, the author. Nothing lengthy, just an overview.</p> </li> --> <?php if ( is_404() || is_category() || is_day() || is_month() || is_year() || is_search() || is_paged() ) { ?> <li> <?php /* If this is a 404 page */ if (is_404()) { ?> <?php /* If this is a category archive */ } elseif (is_category()) { ?> <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p> <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for the day <?php the_time('l, F jS, Y'); ?>.</p> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for <?php the_time('F, Y'); ?>.</p> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for the year <?php the_time('Y'); ?>.</p> <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p> <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p> <?php } ?> </li> <?php }?> <?php wp_list_pages('title_li=<li class="sidebar_alternate_title_li">PAGES</li><li>&before=&after=</li>'); ?> <li class="sidebar_alternate_title_li">ARCHIVES</li> <?php wp_get_archives('type=monthly'.'&before='.'<li class="sidebar_alternate_content_li">&after=</li>'); ?> <?php if (function_exists('put_cat_icons')) put_cat_icons( wp_list_categories('show_count=1'.'&title_li='.'<li class="sidebar_alternate_title_li">POSTS</li><li>&after=</li>'.'&depth=-1'.'&echo=0')); else wp_list_categories('show_count=1'.'&title_li=<span class="sidebar-title">POSTS</span><li>&after=</li>'); ?> <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> <?php wp_list_bookmarks('title_li='.'&title_before='.'<li class="sidebar_alternate_title_li">&title_after=</li>&before=<li class="sidebar_alternate_content_li">&after=</li>'); ?> <li class="sidebar_alternate_title_li">MEMBER LOGIN</li> <ul> <?php wp_register('<li class="sidebar_alternate_content_li">','</li>'); ?> <li class="sidebar_alternate_content_li"><?php wp_loginout(); ?></li> <?php wp_meta(); ?> </ul> <br /><br /><br /> <li class="sidebar_alternate_title_li">OPTIMISED FOR:</li> <ol> <li>Mozilla 3.06</li> <li>Internet Explorer 7.0</li> <li>All Others: Here Be Dragons</li> </ol> <?php } ?> <?php endif; ?> </ul> </div>
Forum: Themes and Templates
In reply to: wp_list_bookmarks formatted with <hr />thanks for the help! worked a treat!
Forum: Themes and Templates
In reply to: Icon for Edit buttonah figured it out!
<?php if (is_user_logged_in()){ echo'<img src="https://www.brookeluder.com/wp-content/themes/default/images/edit.png" width ="16" height="16" class="icon-edit">'; } else { echo ""; }; ?>
Forum: Themes and Templates
In reply to: Icon for Edit buttonHey! Thanks for that kkarpieszuk! This seems to be what I need but I’m not very good with PHP… I can’t figure out how use the image tags within the php… I keep breaking the code…
can anyone help? I tried below but it does not work…
<?php if (is_user_logged_in()){ echo"<img src='/images/edit.png' width ='16' height='16' class='icon-edit'">; } else { echo ""; }; ?>