airandseabattle
Forum Replies Created
-
Forum: Plugins
In reply to: Post view limit per user?I’ve found a plugin that will set a post/page to expire upon a total number of views but not exactly what I’m looking for.
Anyone else know of another solution?
Forum: Plugins
In reply to: [Sidebar Login] [Plugin: Sidebar Login] Logout RedirectI’ve even changed the logout location int he plug-in settings to be the home page, but no matter what it still goes to:
Forum: Themes and Templates
In reply to: Sidebar IssueI sorrrt of got it working. It’s not the best solution and the original template I was working with wasn’t constructed that well and it’s my own fault for using it.
I had to set the left-column (the main content) to have a min-height in CSS of that of the height of the sidebar after it was filled with content. That turned out being 1500px. It works fine now.
https://www.self-titledmag.com/home/ is the final.
Forum: Themes and Templates
In reply to: Sidebar Issuei seem to have temporarily fixed it by giving the #main (left column) a min-height of 1500px in the css… but I’m sure this will sneak up again soon.
Forum: Themes and Templates
In reply to: Sidebar Issuehttps://dev.papertigerllc.com/2010/02/23/test-post-1-million/
still having this issue – losing my mind!
the widgets wont just stay lined up on the right.
help! I’ve tried everything I can think of…
You would have to remove the following code from your header.php file:
<div class="header-menu-wrapper clearfix"> <div id="pngfix-right"></div> <ul class="menu" id="menu"> <li class="<?php if (!is_paged() && is_home()) { ?>current_page_item<?php } else { ?>page_item<?php } ?>" id="header-menu-home"><a href="<?php echo get_settings('home'); ?>/"><?php _e('HOME','piano-black'); ?></a></li> <?php $options = get_option('pb_options'); if($options['header_menu_type'] == 'pages') { wp_list_pages('sort_column=menu_order&depth=0&title_li=&exclude=' . $options['exclude_pages']); } else { wp_list_categories('depth=0&title_li=&exclude=' . $options['exclude_category']); } ?> </ul> <div id="pngfix-left"></div> </div>
Forum: Fixing WordPress
In reply to: Page navigation not workingWORKED. Brilliant!
Forum: Fixing WordPress
In reply to: Page navigation not workingi’ll try it out. thanks again!
Forum: Fixing WordPress
In reply to: Page navigation not workinghas anyone created a gawker.com “top headline” style section on their blog? what would be the best way to approach this? im probably doing it wrong at airandseabattle.com
Forum: Fixing WordPress
In reply to: Page navigation not working@alchymyth That totally worked! Thank you! It fixed the problem with pagination but the “Headlines” along the top change along with the page. Not sure how I can keep that static to the 4 most recent Headlines but I’ll keep trying. If you have any recommendations I’m all ears ??
Forum: Fixing WordPress
In reply to: Page navigation not workingi was just playing around with page navigation to see if it would help fix, im removing it now
Forum: Fixing WordPress
In reply to: Page navigation not workingJust in case, here is my code for the index.php
<?php get_header();?> <div id="skybanner"><h2>Recent Headlines:</h2> <?php query_posts('showposts=4'); ?> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?><p class="skylink"><?php the_title(); ?></p></a></li> <?php endwhile;?> </div> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a> <?php edit_post_link('- Edit Post'); ?></h2> <div class="postmetadata-twitter"> <script type="text/javascript"> tweetmeme_url = '<?php the_permalink(); ?>'; tweetmeme_source = 'airandseabattle'; tweetmeme_style = 'compact'; </script> <script type="text/javascript" src="https://tweetmeme.com/i/scripts/button.js"></script></div> <div class="postmetadata-top2"> <span class="date-text"><?php the_date('F d, Y'); ?> ( <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> ) - Written by: <?php the_author_posts_link(); ?></span></div> <?php the_content('Read more ›'); ?> <div class="postmetadata-bottom"> Posted in: <strong><?php the_category(', '); ?></strong> |<strong><?php echo '<ul class="addtoany_list">'; if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); echo '</ul>'; ?></strong> </div> </div> <?php endwhile; ?> <?php endif; ?> <div class="navlink"> <div class="alignleft"><?php previous_posts_link(); ?></div> <div class="alignright"><?php next_posts_link(); ?></div> </div> <?php posts_nav_link ('sep','prelabel','nxtlabel'); ?> <?php get_footer();?>
Forum: Fixing WordPress
In reply to: [Plugin: MM Forms] Unable to export CSV filesI too have this problem. I also set this folder to 777 and nothing happens. Anyone else having this issue?
Forum: Installing WordPress
In reply to: Redirects to home page while admin pages work fineI seem to be having a similar issue… did you ever get this fixed?
Forum: Themes and Templates
In reply to: Widget titles – from text to image?Thanks for bringing up this subject. I’m trying to do the same thing but it seems my theme isn’t making this very easy…
I want to add the code that alanft suggested:
'before_widget' => '<li id=\"%1$s\" class=\"widget %2$s\">'
But I can’t seem a place to add this. Below is is my sidebar code, can anyone offer any suggestions on where to add this line?
<?php function arras_widget_search($args) { extract($args, EXTR_SKIP); ?> <?php echo $before_widget; ?> <?php echo $before_title . __('Search', 'arras') . $after_title; ?> <form method="get" id="widgetsearch" action="<?php bloginfo('url'); ?>/"> <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" size="20" onfocus="this.value=''" class="text" /> <input type="submit" id="searchsubmit" class="submit" value="<?php _e('Search', 'arras') ?>" /> </form> <?php echo $after_widget; ?> <?php } function arras_get_tabbed_opts($selected, $default) { $opts = array( 'none' => __('None', 'arras'), 'featured' => __('Featured Posts', 'arras'), 'latest' => __('Latest Posts', 'arras'), 'comments' => __('Recent Comments', 'arras'), 'tags' => __('Tag Cloud', 'arras') ); if ( function_exists('akpc_most_popular') ) $opts['popular'] = __('Popular Posts', 'arras'); if ( !$selected ) $selected = $default; foreach ( $opts as $id => $val ) { ?> <option value="<?php echo $id; ?>" <?php if ( $selected == $id ) echo 'selected="selected"'; ?>> <?php echo $val; ?> </option> <?php } } function arras_widget_previews($args) { global $allowed_cats; extract($args, EXTR_SKIP); $options = get_option('arras_widget_previews'); if (!$allowed_cats) $allowed_cats = arras_get_option('gaming_cats'); $r = new WP_Query( array('showposts' => 5, 'cat' => $options['cat'] ) ); if ($r->have_posts()) : ?> <?php echo $before_widget; ?> <?php echo $before_title . $options['title'] . $after_title; ?> <ul> <?php while ($r->have_posts()) : $r->the_post(); ?> <li> <strong><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?> </a></strong> </li> <?php endwhile; ?> </ul> <?php echo $after_widget; ?> <?php endif; } function arras_widget_previews_control() { $cats = get_categories(); $options = $newoptions = get_option('arras_widget_previews'); if ( isset($_POST['arras-widget-previews-submit']) ) { $newoptions['title'] = strip_tags( stripslashes($_POST['arras-widget-previews-title']) ); $newoptions['cat'] = (int) $_POST['arras-widget-previews-cat']; } if ( $options != $newoptions ) { $options = $newoptions; update_option('arras_widget_previews', $options); } $title = attribute_escape($options['title']); if ($title == '') $title = __('Latest Previews', 'arras'); if ($options['cat'] == 0) $options['cat'] = 1; ?> <p><label for="arras-widget-previews-title"><?php _e('Title:'); ?> <input class="widefat" id="arras-widget-previews-title" name="arras-widget-previews-title" type="text" value="<?php echo $title; ?>" /></label></p> <p><label for="arras-widget-previews-cat"><?php _e('Previews Category:'); ?> <select class="widefat" id="arras-widget-previews-cat" name="arras-widget-previews-cat"> <?php foreach ( $cats as $opt ) : ?> <option <?php if ( $options['cat'] == $opt->cat_ID ) echo ' selected="selected"'; ?> value="<?php echo $opt->cat_ID; ?>"><?php echo $opt->name; ?></option> <?php endforeach; ?> </select></label></p> <input type="hidden" id="arras-widget-previews-submit" name="arras-widget-previews-submit" value="1" /> <?php } function arras_widget_reviews($args) { global $allowed_cats; extract($args, EXTR_SKIP); $options = get_option('arras_widget_reviews'); if (!$allowed_cats) $allowed_cats = arras_get_option('gaming_cats'); $r = new WP_Query( array('showposts' => 5, 'cat' => $options['cat'] ) ); if ($r->have_posts()) : ?> <?php echo $before_widget; ?> <?php echo $before_title . $options['title'] . $after_title; ?> <ul> <?php while ($r->have_posts()) : $r->the_post(); ?> <li> <strong><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?> </a></strong>