Recent Topics

1 Sep 10, 2008 20:05    

My b2evolution Version: 1.10.x

I just installed b2evolution and the purple_beauty skin.
My blog (under construction): http://gerbenonline.nl/b2evolution/blog1.php

Now i have two questions (for which i didn't find an answer using the forum search):

- I use some "pages" instead of "blogs" since the site needs to be a more static information page. Therefore I displayed the "page list" in the top bar. But now al the page titles are written right after each other, there is no spacing between the words like the page list does have in other skins. How can i fix this?

- Since my "pages" are static, i don't like the post information like time stamp, post date, word count, views and category to be displayed. Can i turn this all of?

Thanx for your reaction!

2 Sep 10, 2008 20:42

Hi gerbenv,

Welcome to the forums.

1) Add to /skins/purple_beauty/style.css:

div.widget_core_coll_page_list ul li a {

border: 1px solid #CCCCCC;

padding: 1.2em;

padding-left: 0.5em;

padding-right: 0.5em;

color: #FFFFFF;

text-decoration: none;

}



div.widget_core_coll_page_list ul li a:hover, div.widget_core_coll_page_list ul li a:active {

	border: 1px solid #FFFFFF;

	padding: 1em;

	padding-left: 0.5em;

	padding-right: 0.5em;

	text-decoration: none;

	color: #FFFFFF;

}

2) Open /skins/purple_beauty/index.main.php and remove lines 206-213:

<?php
			// ------------------------------ DATE SEPARATOR ------------------------------
			$MainList->date_if_changed( array(
					'before'      => '<h2>',
					'after'       => '</h2>',
					'date_format' => '#',
				) );
		?>


and lines 221-264:

			<div class="bSmallHead">
			<?php
				// Permalink:
				$Item->permanent_link( array(
						'text' => '#icon#',
					) );

				$Item->issue_time( array(
						'before'    => ' ',
						'after'     => '',
					));

				$Item->author( array(
						'before'    => ', '.T_('by').' ',
						'after'     => '',
					) );

				$Item->msgform_link();
				echo ', ';

				$Item->wordcount();
				echo ' '.T_('words');
				echo ', ';
				$Item->views();

				$Item->locale_flag( array(
						'before'    => ' &nbsp; ',
						'after'     => '',
					) );
			?>

			<br />

			<?php
				$Item->categories( array(
					'before'          => T_('Categories').': ',
					'after'           => ' ',
					'include_main'    => true,
					'include_other'   => true,
					'include_external'=> true,
					'link_categories' => true,
				) );
			?>
			</div>

Good luck

3 Sep 10, 2008 20:45

Hi gerbenv. Welcome to the forums.

The spacing issue is easy. Crack open your skins/purple_beauty/style.css and add the following right before where it says "/* bloglist */":

.widget_core_coll_page_list ul.bloglist li {
padding-right: 10px;
}


You can play with the value of the padding-right to suit your tastes - I just threw that out as a proof of concept.

The other part isn't as easy. Start with this: in the same folder, copy index.main.php as page.main.php then open page.main.php in a file editor and make a change to make sure that is all you need to get a new template for your pages. Something like

... um ... won't that wipe out all the bloggy stuff on all pages and not just on the page-type posts?

4 Sep 10, 2008 21:38

Thanks for replying so fast! Didn't expect that.

Solution 1 of EdB works fine!
The first solution of Afwas also does the trick but is adds boxes around the links, that's a nice fancy extra but i like the plain text links better.

The solution to the second question of Afwas also did exactly the trick i was looking for!

5 Nov 15, 2008 00:48

Hello.

How to add a "Top Menu" container to fit the "Page Top" design style? :?:

Thanks.

6 Nov 24, 2008 00:46

Hello.

Within 'skin_container( NT_('Menu')' or via another procedure for that widget, how to get that Menu link widget to use a 'selected' attribute when that page is selected (similar to Public Blog List and Sorted Public Blog list widgets)? :?:

Thanks.


Form is loading...