• b2evo
  • Front Page
  • Contact
  • Login
  • reset page

Far Fields

  • Andromeda ¦ First Contact
  • Blush ¦ Private
  • Dad ¦ Private
  • Vyaj ¦ Immigration & Asylum Cases

Near Fields

  • My Bits
  • Behind the Sceanic
  • vOw ¦ Vegan Organic Wholefood

Old Fields

  • 1996 Site
  • Old Search Site

Blogs

  • b2Evo ¦ Blog techie stuff
  • eLf ¦ Updates on the land
  • blInk ¦ Some useless links
  • spAce ¦ Thoughts on being
  • j&j ¦ Prospectors of Kern
  • av0id ¦ How I Got Here

Manual Skin Mod: CasesUpdated: April 22nd, 2014

Created: 22/04/14

Four more hacks.

1 to change default main page from showing full categories and post titles as the to 9 most recent posts

a) comment out block
<!-- echo '<h2 class="table_contents">'.T_('Table of contents').'</h2>';
$Skin->display_chapters( array(
'display_blog_title' => false,
'display_children' => true,
'class_selected' => ''
) ); -->

b) Immediately before block insert new line to end php i.e
?>

c) following the block add

<!-- My Mod -->
<?php // ------ START OF POSTS -------
// Display message if no post:
display_if_empty();

while( $Item = & mainlist_get_item() )
{ // For each blog post, do everything below up to the closing curly brace "}"
?>
<h3>
<?php
$Item->title( array(
'link_type' => 'permalink'
) );
?>
</h3>

<?php
// ---- POST CONTENT ----
skin_include( '_item_content.inc.php', array(
'image_size' => 'fit-400x320',
) );
?>

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

d) add class to /media/blogs/cases/style.css
.iaac_cat {
font-weight: 600;
background: #bbaaff;
border-bottom: 1px solid blue;
margin-bottom: 2em;
padding: 0.1em 1em;
}

2. Comment out prev~next navigation on
_item_block.php
a) added lines
53 ?>
54 <?php

b) commented out lines 43 to 53
<!--?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links( array(
'block_start' => '<div class="posts_navigation">',
'separator' => ' :: ',
'block_end' => '</div>',
'target_blog' => $Blog->ID, // this forces to stay in the same blog, should the post be cross posted in multiple blogs
'post_navigation' => 'same_category', // force to stay in the same category in this skin
) );
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?-->

3. Formatted background to bText
/media/blogs/cases/style.css
.bText {
background:#fff6ec;
padding:1em;
}

4. Deleted Prev/Next blocks from
index.main.php and
_item_block.php

  roger
print   Print     
 
  •  Paged Index of 133 Posts

  • Last nineteen

    • Add html figure tag
    • Validation 7.2.5
    • elfgifs_plugin
    • Add sub text button
    • [autocorrect] validation
    • Versions & Database
    • Math Terms & Plugin
    • My Search Hack
    • figure tag
    • evobar toolbar
    • Front Page Collections #
    • Move to a new line using CSS not <br />
    • Version 6.10.6 & php 7
    • Stuck on Version 6.10.5
    • Limit Login Attempts
    • 6.10.5
    • Add Number to Comment
    • 6.10.4
    • v 6.10.*
  • Search


Valid HTML 5.0    ubuntu link    duckduckgo link    b2evolution link    firefox link    Creative Commons Licence    Valid CSS!