Recent Topics

1 Aug 06, 2004 04:26    

Hi all,

I'm setting up a multiblog with several writers.

http://home-harbor-inn.com/blogs

In trying to find suitable skins for some of the
female writers I'm having trouble finding skins
with practical links.

In many of the skins there's no "next" link
or "previous page" link to help navigate from
post to post in the same category.

For instance in one blog I go to,,


http://home-harbor-inn.com/blogs/index.php?blog=5

a "testimonies" category and can't scroll through
the 5 testimonies that are there. Is it possible to
add additional navigation links, such as "next" and
"back" to help people scroll from page to page?

Thanks,
Ron

2 Aug 06, 2004 08:18

<?php posts_nav_link(); ?>

3 Aug 06, 2004 12:31

Graham wrote:

<?php posts_nav_link(); ?>

So I can insert this in the main.php file for that skin,, and just anywhere?

Ron

4 Aug 06, 2004 13:15

RonB wrote:

Graham wrote:

<?php posts_nav_link(); ?>

So I can insert this in the main.php file for that skin,, and just anywhere?

Ron

I tried this in the main.php file for the "rubric" skin on

www.divineprinciple.net/blogs

but I didn't see any links or noticeable change in the links layout.

Ron

5 Aug 06, 2004 18:23

On that blog it won't generate any navigation links, because you don't have more posts than the default display number set in the admin. Either add more posts or add that code to a blog that has more posts than what's set in the admin section.

6 Aug 08, 2004 06:47

mattbta wrote:

On that blog it won't generate any navigation links, because you don't have more posts than the default display number
set in the admin. Either add more posts or add that code to a blog
that has more posts than what's set in the admin section.

I added ten more test posts to see if that would generate navigation
links,, but nothing.

The setting in admin is to have one post per page,,, so even if
there are two posts there ought to be links there, right? There is
of course "one' post showing on the page,, I just can't link to the
next one.

Many themes are like this,, where there are no links to the
"next" post in the blog. How is it that a skin is designed without
them?

Ron

7 Aug 08, 2004 07:00

Many themes are like this,, where there are no links to the
"next" post in the blog. How is it that a skin is designed without
them?

Ron

Warning: The argument needs to be an array in /home/www/divineprinciple/blogs/b2evocore/_functions_locale.php on line 139

Ok,, I got links and a warning,, (above)

Around line 139 on that file I see this:: (below)

What should I do?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

function locale_temp_switch( $locale )
{
global $saved_locale, $current_locale;
if( !isset( $saved_locale ) ) $saved_locale = array();
array_push( $saved_locale, $current_locale );
locale_activate( $locale );
}

8 Aug 08, 2004 07:07

Anyway,, we're making progress,, the links are there and working,,
sort of,, but now I have error code to deal with.

Sorry for not being a code jockey,, but I have plenty of other things
to worry about.

Take a look and see what you think.

www.divineprinciple.net/blogs

9 Aug 09, 2004 08:16

RonB, what are you talking about?

That page just says that it's been moved. I checked out the page that it was moved to, and it has page links in all the normal places.

??? :-/

1. Figure out what you're trying to do.
2. Tell us.
3. Provide a link to the page where you tried to do that, and it didn't work.

10 Aug 09, 2004 18:18

isaac wrote:

RonB, what are you talking about?

That page just says that it's been moved. I checked out the page that it was moved to, and it has page links in all the normal places.

??? :-/

1. Figure out what you're trying to do.
2. Tell us.
3. Provide a link to the page where you tried to do that, and it didn't work.

I reinstalled the software on another domain while I work out
all the bugs on this installation. And for now I just gave up on
the "rubric" skin. I really like the skin, but I need navigation
links. When I stalled the code for links,, I also got eroneous
code showing up on the page too.. like I mentioned above.

Anyway, that's where I'm at.

I still see the need to install navigation links on many of the
skins available. Like "next" and "previous post" etc. And I
think it's much easier for the designers to do, rather than
someone like me.

Ron

11 Aug 09, 2004 18:54

Ron, nearly all skins do have the navigation links you refer to.

Check your settings in the back-office to make sure that you're set to show "Posts Paged" and not "Days" or "Posts".

13 Aug 09, 2004 20:37

mattbta wrote:

isaac's right - something must be wrong with your config. For grins, I put the platinum on my site and it has 'navigation links'.

http://www.brotherson.com/index.php?skin=platinum

Yes, "platinum" always shows navigation links. That's
one of the better themes.

But like I said, some of the themes I'd like to use for my
female writers don't have navigation links.

Right now, I have the www.divineprinciple.net/blogs site
set up with the wpc_Zen skin, in the "Display Options"
I have it set to "Posts Paged" 1 Posts/Days per page,,
Archive Monthly,, etc.

It still doesn't show navigation links..

Ron

14 Aug 09, 2004 20:49

OK you're right, wpc_zen does not have nav links- so I added that skin to my site too and tinkered with it for a minute.

In the skin file _main.php at line 38 I added this, right before the import call to style.css:


@import url(../../rsc/basic.css);	/* Import basic styles */

I added this at line 98:


<p class="center"><strong>
		<?php posts_nav_link(); ?>
		<?php 
			// previous_post( '<p class="center">%</p>' );
			// next_post( '<p class="center">%</p>' );
		?>
	</strong></p>

and now I have navigation links.

http://www.brotherson.com/index.php?skin=wpc_zen

15 Aug 09, 2004 21:29

mattbta wrote:

OK you're right, wpc_zen does not have nav links- so I added that skin to my site too and tinkered with it for a minute.

In the skin file _main.php at line 38 I added this, right before the import call to style.css:


@import url(../../rsc/basic.css);	/* Import basic styles */

I added this at line 98:


<p class="center"><strong>
		<?php posts_nav_link(); ?>
		<?php 
			// previous_post( '<p class="center">%</p>' );
			// next_post( '<p class="center">%</p>' );
		?>
	</strong></p>

and now I have navigation links.

http://www.brotherson.com/index.php?skin=wpc_zen

Depending on what I open the files with the exact line # is
different. If I use frontpage, they're all combined into one
huge paragraph,, I'm sure that's not right.

Using a FTP editor it looks better.. so I made the changes
you mentioned,, there,, counting out the lines.

Nothing yet.

It would be helpful if you pasted the code exactly previous
to where the new code needs to be added. Or a short "before"
and "after" clip of what that section of page should look like.
Include the line of code before and after the change.
That way I won't be guessing.

I've learned that putting the code in the right place makes a
difference.

Thanks,
Ron

16 Aug 09, 2004 21:32

RonB wrote:

mattbta wrote:

OK you're right, wpc_zen does not have nav links- so I added that skin to my site too and tinkered with it for a minute.

In the skin file _main.php at line 38 I added this, right before the import call to style.css:


@import url(../../rsc/basic.css);	/* Import basic styles */

I added this at line 98:


<p class="center"><strong>
		<?php posts_nav_link(); ?>
		<?php 
			// previous_post( '<p class="center">%</p>' );
			// next_post( '<p class="center">%</p>' );
		?>
	</strong></p>

and now I have navigation links.

http://www.brotherson.com/index.php?skin=wpc_zen

Depending on what I open the files with the exact line # is
different. If I use frontpage, they're all combined into one
huge paragraph,, I'm sure that's not right.

Using a FTP editor it looks better.. so I made the changes
you mentioned,, there,, counting out the lines.

Nothing yet.

It would be helpful if you pasted the code exactly previous
to where the new code needs to be added. Or a short "before"
and "after" clip of what that section of page should look like.
Include the line of code before and after the change.
That way I won't be guessing.

I've learned that putting the code in the right place makes a
difference.

Thanks,
Ron

Okay,, I got it going,,

Now I need to do it for Rubric,, etc,

I'll write if I have any more trouble,, thanks.

Ron

17 Aug 09, 2004 21:38


<?php
/*
 * This is the main template. It displays the blog.
 *
 * However this file is not meant to be called directly.
 * It is meant to be called automagically by b2evolution.
 * To display a blog, you should call a stub file instead, for example:
 * /blogs/index.php or /blogs/blog_b.php
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php locale_charset() ?>" />
<title><?php
	$Blog->disp('name', 'htmlhead');
	single_cat_title( ' - ', 'htmlhead' );
	single_month_title( ' - ', 'htmlhead' );
	single_post_title( ' - ', 'htmlhead' );
	arcdir_title( ' - ', 'htmlhead' );
	last_comments_title( ' - ', 'htmlhead' );
	stats_title( ' - ', 'htmlhead' );
?>
</title>
<base href="<?php skinbase(); // Base URL for this skin. You need this to fix relative links! ?>" />
<meta name="description" content="<?php $Blog->disp( 'shortdesc', 'htmlattr' ); ?>" />
<meta name="keywords" content="<?php $Blog->disp( 'keywords', 'htmlattr' ); ?>" />
<meta name="generator" content="b2evolution <?php echo $b2_version ?>" /> <!-- Please leave this for stats -->
<link rel="alternate" type="text/xml" title="RDF" href="<?php $Blog->disp( '../custom/rdf_url', 'raw' ) ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php $Blog->disp( '../custom/rss_url', 'raw' ) ?>" />
<link rel="alternate" type="text/xml" title="RSS 2.0" href="<?php $Blog->disp( '../custom/rss2_url', 'raw' ) ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( '../custom/atom_url', 'raw' ) ?>" />
<link rel="pingback" href="<?php $Blog->disp( '../custom/pingback_url', 'raw' ) ?>" />

<style type="text/css">
	@import url(../../rsc/img.css);	/* Import standard image styles */
	@import url(../../rsc/blog_elements.css);	/* Import standard blog elements styles */
	@import url(../../rsc/basic.css);	/* Import basic styles */
	@import url(style.css);
</style>

</head>
<body>
<div id="rap">
<h1 id="header"><a href="<?php bloginfo('url'); ?>"><?php $Blog->disp( 'name', 'htmlbody' ) ?></a></h1>

<!-- =================================== START OF MAIN AREA =================================== -->

<div id="content">

<?php // ------------------------------------ START OF POSTS ----------------------------------------
	if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post

	if( isset($MainList) ) while( $Item = $MainList->get_item() )
	{
		$MainList->date_if_changed();
	?>

<div class="post" lang="<?php $Item->lang() ?>">
		<?php
			locale_temp_switch( $Item->locale ); // Temporarily switch to post locale
			$Item->anchor(); // Anchor for permalinks to refer to
		?>
	 <h3 class="storytitle"><a href="<?php $Item->permalink() ?>" rel="bookmark" title="<?php echo T_('Permanent link to full entry') ?>"><?php $Item->title(); ?></a></h3>
	<div class="meta"><?php echo T_('Filed under:'); ?> <?php $Item->categories(); ?> — <?php $Item->Author->prefered_name() ?> @ <?php $Item->issue_time() ?>
	</div>
	
	<div class="storycontent">
			<?php $Item->content(); ?>
	</div>
	
	<div class="feedback">
			<?php link_pages() ?>
			<?php $Item->feedback_link( 'comments' ) // Link to comments ?>
			<?php $Item->feedback_link( 'trackbacks', ' &bull; ' ) // Link to trackbacks ?>
			<?php $Item->feedback_link( 'pingbacks', ' &bull; ' ) // Link to trackbacks ?>
	</div>

	<?php $Item->trackback_rdf() // trackback autodiscovery information ?>

	<?php // ------------- START OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. -------------
	$disp_comments = 1;					// Display the comments if requested
	$disp_comment_form = 1;			// Display the comments form if comments requested
	$disp_trackbacks = 1;				// Display the trackbacks if requested

	$disp_trackback_url = 1;		// Display the trackbal URL if trackbacks requested
	$disp_pingbacks = 1;				// Display the pingbacks if requested
	require( dirname(__FILE__).'/_feedback.php' );
	// ---------------- END OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. ----------------

	locale_restore_previous();	// Restore previous locale (Blog locale)
	?>
</div>

<?php } // ---------------------------------- END OF POSTS ------------------------------------ ?>

</div>

<p class="center"><strong>
		<?php posts_nav_link(); ?>
		<?php 
			// previous_post( '<p class="center">%</p>' );
			// next_post( '<p class="center">%</p>' );
		?>
	</strong></p>
<!-- =================================== START OF SIDEBAR =================================== -->

<div id="menu">

<ul>

	<?php // -------------------------- LINKBLOG INCLUDED HERE -----------------------------
		require( dirname(__FILE__).'/_linkblog.php' );
		// -------------------------------- END OF LINKBLOG ---------------------------------- ?>

 <li id="categories"><?php echo T_('Categories'); ?>:
	<?php // -------------------------- CATEGORIES INCLUDED HERE -----------------------------
		require( dirname(__FILE__).'/_categories.php' );
		// -------------------------------- END OF CATEGORIES ---------------------------------- ?>
 </li>

 <li id="search">
   <label for="s"><?php echo T_('Search') ?>:</label>	
	<?php form_formstart( $Blog->dget( 'blogurl', 'raw' ), '', 'searchform' ) ?>
	<div>
		<input type="text" name="s" id="s" size="15" value="<?php echo htmlspecialchars($s) ?>" /><br />
		<input type="submit" name="submit" value="<?php echo T_('Search') ?>" />
	</div>
	</form>
 </li>

	<li><?php echo T_('Archives') ?>:
		<ul>
			<?php // -------------------------- ARCHIVES INCLUDED HERE -----------------------------
				require( dirname(__FILE__).'/_archives.php' );
				// -------------------------------- END OF ARCHIVES ---------------------------------- ?>
		</ul>
	</li>

	<li id="calendar">
	<?php // -------------------------- CALENDAR INCLUDED HERE -----------------------------
		require( dirname(__FILE__).'/_calendar.php' );
		// -------------------------------- END OF CALENDAR ---------------------------------- ?>
	</li>


	<li><?php echo T_('Choose skin') ?>:
		<ul>
			<?php // ------------------------------- START OF SKIN LIST -------------------------------
			for( skin_list_start(); skin_list_next(); ) { ?>
				<li><a href="<?php skin_change_url() ?>"><?php skin_list_iteminfo( 'name', 'htmlbody' ) ?></a></li>
			<?php } // ------------------------------ END OF SKIN LIST ------------------------------ ?>
		</ul>
	</li>
	
 <li id="other"><?php echo T_('Other'); ?>:
	<ul>
		<?php
			user_login_link( '<li>', '</li>' );
			user_register_link( '<li>', '</li>' );
			user_admin_link( '<li>', '</li>' );
			user_logout_link( '<li>', '</li>' );
		?>
	</ul>
 </li>
 
 
 <li id="meta"><?php echo T_('Meta'); ?>:
 	<ul>
		<li><a href="<?php $Blog->disp( 'rss2_url', 'raw' ); ?>" title="<?php echo T_('Syndicate this site using RSS'); ?>"><?php echo T_('<abbr title="Really Simple Syndication">RSS</abbr> 2.0'); ?></a></li>
		<li><a href="<?php $Blog->disp( 'comments_rss2_url', 'raw' ) ?>" title="<?php echo T_('The latest comments to all posts in RSS'); ?>"><?php echo T_('Comments <abbr title="Really Simple Syndication">RSS</abbr> 2.0'); ?></a></li>
		<li><a href="http://validator.w3.org/check/referer" title="<?php echo T_('This page validates as XHTML 1.0 Transitional'); ?>"><?php echo T_('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
		<li><a href="http://b2evolution.net/" title="<?php echo T_('Powered by b2evolution; multilingual multiuser multi-blog engine.'); ?>">b2evolution</a></li>
	</ul>
 </li>

</ul>

</div>

</div>

<p class="credit"><cite>powered by &nbsp;<a href="http://b2evolution.net/" title="<?php echo T_('Powered by b2evolution; multilingual multiuser multi-blog engine.'); ?>"><img src="../../img/b2evolution_button.png" alt="b2evolution" width="80" height="15" border="0" class="middle" /></a></cite><br />
<?php echo T_('This skin features a CSS file originally designed for WordPress (See design credits in style.css).') ?><br />
<?php echo T_('In order to ensure maximum compatibility with WP CSS files, most b2evolution features that do not exist in WP are hidden from this generic wpc_* skin.') ?>
</p>

<?php
	log_hit();	// log the hit on this page
	debug_info(); // output debug info if requested
?>

</body>

</html>

here's the whole she-bang.

18 Aug 09, 2004 21:54

Thanks Mattbta,,

It looks like that did it.

I made the changes on other skins,, and it works.

I"m a,, er,, I mean,, You're a genius.

Ron


Form is loading...