Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Home link doesn't show in multi-post pages


  #1  
Old Aug 21, 2009, 04:57 PM
mcgiver058
 
16 posts · Aug 2009
I'm using version 3.4.2 and my home link does not show up in multi-post pages, either set to BOTTOM or set to TOP AND BOTTOM

It works fine in the single post pages, however.
Any ideas?

Thanks
  #2  
Old Aug 22, 2009, 04:18 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
this looks like a bug. I've sent Flynn some notes and am waiting to here from him about it.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Aug 22, 2009, 07:16 AM
mcgiver058
 
16 posts · Aug 2009
Whew! I thought it was a glitch
I "inhale sharply" [read "suck"] at php...
  #4  
Old Aug 25, 2009, 09:20 PM
mcgiver058
 
16 posts · Aug 2009
We have a solution! YAY! Thank you Rob! (see his work at http://www.robinomicon.com)

We had to modify the css.php and modify the bfa_next_previous_links.php pages.

Here are the changes:
in bfa_next_previous_links.php
lines 79-119 read as follows:

function bfa_next_previous_page_links($location = "Top") {

global $bfa_ata;


if ( !is_single() AND !is_page() AND
strpos($bfa_ata['location_multi_next_prev'],$location) !== FALSE AND

// don't display on WP Email pages
intval(get_query_var('email')) != 1 AND

// display only if next/prev links actually exist
show_posts_nav() ) {

if ( function_exists('wp_pagenavi') ) {

echo '<div class="wp-pagenavi-navigation">'; wp_pagenavi();
echo '</div>';

} else {

echo '<div class="navigation-'.strtolower($location).'">
<div class="older' . $nav_home_add . '">';

$bfa_ata['next_prev_orientation'] == 'Older Left, Newer Right' ?
next_posts_link($bfa_ata['multi_next_prev_older']) :
previous_posts_link($bfa_ata['multi_next_prev_newer']);

// echo ' &nbsp;</div>' . $nav_home_div . '<div class="newer' .
// $nav_home_add . '">&nbsp; ';

if (is_front_page() AND is_paged() ) {

echo '&nbsp;</div> <div class="home"><a href="' . $bfa_ata['get_option_home'] . '/">' .
$bfa_ata['home_single_next_prev'] . '</a></div> <div class="newer' .
$nav_home_add . '">&nbsp; ';


}
else {echo '&nbsp;</div> <div class="home"></div><div class="newer' .
$nav_home_add . '">&nbsp; ';}

in css.php, width for div.older, div.newer, div.older-home, div.newer-home, div.home were all changed to 33%

As with any modification, back up the original files before making any changes.
Hope this helps others..
Now on to the next challenge...
  #5  
Old Aug 25, 2009, 09:37 PM
mcgiver058
 
16 posts · Aug 2009
One small glitch - the link name for single post pages will also be the name for multi-post pages - I'll leave that fix to another hacker to play with.
  #6  
Old Aug 28, 2009, 07:30 PM
mcgiver058
 
16 posts · Aug 2009
glitch fix..
line 114 should read:
$bfa_ata['home_multi_next_prev'] . '</a></div> <div class="newer' .

That way, the correct value is displayed.
  #7  
Old Aug 29, 2009, 04:47 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The following will make the PAGE navagation work like the POST navagation - It will add HOME to the Navagation area
Atahualpa 3.4.2 - edit bfa_next_previous_posts.php
locate line 95-96 which should be
HTML Code:
			echo '<div class="navigation-'.strtolower($location).'">
			<div class="older' . $nav_home_add . '">';
and change them to
HTML Code:
		echo '<div class="navigation-'.strtolower($location).'">
		<div class="older' . ($bfa_ata['home_single_next_prev'] != '' ?
        '-home' : '') . '">';
next find the following code (it will now be lines 103-104)
HTML Code:
			echo ' &nbsp;</div>' . $nav_home_div . '<div class="newer' .
            $nav_home_add . '">&nbsp; ';
and change them to
HTML Code:
		echo ' &nbsp;</div>' . ($bfa_ata['home_single_next_prev'] != '' ?
        '<div class="home"><a href="' . $bfa_ata['get_option_home'] . '/">' .
        $bfa_ata['home_single_next_prev'] . '</a></div>' : '') .
		'<div class="newer' . ($bfa_ata['home_single_next_prev'] != '' ?
        '-home' : '') . '">&nbsp; ';
This will now cause home to display on in the navigation area. NOTE: you do not have to edit CSS.php
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Aug 29, 2009 at 05:55 AM.
  #8  
Old Aug 30, 2009, 05:05 AM
mcgiver058
 
16 posts · Aug 2009
Worked like a charm - with one glitch - the home page link shows on the first page also - I'll play with the conditional and see what I come up with
  #9  
Old Aug 30, 2009, 05:21 AM
mcgiver058
 
16 posts · Aug 2009
change line 103-104 to read:
HTML Code:
if (is_front_page() AND is_paged() ) {
	echo ' &nbsp;</div>' . ($bfa_ata['home_single_next_prev'] != '' ? '<div class="home"><a href="' . $bfa_ata['get_option_home'] . '/">' . $bfa_ata['home_single_next_prev'] . '</a></div>' : '') . '<div class="newer' . ($bfa_ata['home_single_next_prev'] != '' ? '-home' : '') . '">&nbsp; ';
	}
else {
	echo '&nbsp;</div> <div class="home"></div><div class="newer' . $nav_home_add . '">&nbsp; ';
	}
This will not show the home link on the first page of multi-page posts, but will show the link on subsequent ages and on all single post pages
The else clause is simply a spacer for alignment

Last edited by juggledad; Aug 30, 2009 at 05:43 AM. Reason: wrapped code so it would stand out
  #10  
Old Sep 4, 2009, 09:51 PM
mcgiver058
 
16 posts · Aug 2009
OK - I found another glitch in Next/Home/Previous script. On multi-post pages in the category view, it was not showing the home link but it was showing in the normal view.

Here is the fix:
Lines 85 - 126 should read as follows:
// display only if next/prev links actually exist
show_posts_nav() ) {

if ( function_exists('wp_pagenavi') ) {

echo '<div class="wp-pagenavi-navigation">'; wp_pagenavi();
echo '</div>';

} else {

echo '<div class="navigation-'.strtolower($location).'">
<div class="older' . ($bfa_ata['home_single_next_prev'] != '' ?
'-home' : '') . '">';

$bfa_ata['next_prev_orientation'] == 'Older Left, Newer Right' ?
next_posts_link($bfa_ata['multi_next_prev_older']) :
previous_posts_link($bfa_ata['multi_next_prev_newer']);

if (is_paged() ) {

echo ' &nbsp;</div>' . ($bfa_ata['home_single_next_prev'] != '' ?
'<div class="home"><a href="' . $bfa_ata['get_option_home'] . '/">' .
$bfa_ata['home_single_next_prev'] . '</a></div>' : '') .
'<div class="newer' . ($bfa_ata['home_single_next_prev'] != '' ?
'-home' : '') . '">&nbsp; ';
}
else {
echo '&nbsp;</div> <div class="home"></div><div class="newer' .
$nav_home_add . '">&nbsp; ';
}


$bfa_ata['next_prev_orientation'] == 'Older Left, Newer Right' ?
previous_posts_link($bfa_ata['multi_next_prev_newer']) :
next_posts_link($bfa_ata['multi_next_prev_older']);

echo '</div><div class="clearboth"></div></div>';

}

}
}

I had to change one of the conditionals to get things to work correctly

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show actual comments in multi-post pages arbatax Comments, trackbacks & pings 5 May 4, 2013 08:54 AM
Displaying comments and comment form below each post on multi post pages, in 3.4.x Flynn Comments, trackbacks & pings 12 May 28, 2011 07:27 PM
Getting something to show on Multi-Post Pages in the Center Column edits adum Atahualpa 3 Wordpress theme 2 Aug 15, 2009 01:06 PM
Latest Comment From Each Post on Homepage And Multi-page pages noyell Post-Kicker, -Byline & -Footer 3 Aug 8, 2009 01:39 PM
[SOLVED] Removing tags from multi post pages bushtool Atahualpa 3 Wordpress theme 2 May 31, 2009 10:18 AM


All times are GMT -6. The time now is 05:06 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.