- b2evolution CMS Support Forums
- b2evolution Support
- Plugins & Extensions
- help implementing Show/Hide plugin code into cultb2skin
1 crisrieder Dec 10, 2007 10:11
hi, i am new to the whole php adventure and cannot figure out what to change or implement in the _main.php of my cultb2 skin to have the Show/Hide plugin working.
Cannot find any class="bSmallPrint"
here is the code of my _main.php
would be very nice to get help from someone who knows the stuff
thanks a lot
cris
<?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, the easiest way is to call index.php?blog=#
* where # is the number of your blog.
*
* This file is part of the b2evolution project - {@link http://b2evolution.net/}
*
* @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}
* Parts of this file are copyright (c)2005 by Jason EDGECOMBE.
*
* @license http://b2evolution.net/about/license.html GNU General Public License (GPL)
*
* {@internal Open Source relicensing agreement:
* Jason EDGECOMBE grants Francois PLANQUE the right to license
* Jason EDGECOMBE's personal contributions to this file and the b2evolution project
* under any OSI approved OSS license (http://www.opensource.org/licenses/).
* }}
*
* @package evoskins
* @subpackage originalb2
*
* {@internal Below is a list of authors who have contributed to design/coding of this file: }}
* @author BLUEROBOT.COM - {@link http://bluerobot.com/web/layouts/layout2.html} : layout
* @author cafelog (team)
* @author fplanque: Francois PLANQUE - {@link http://fplanque.net/}
* @author edgester Jason EDGECOMBE
*
* {@internal Below is a list of former authors whose contributions to this file have been
* either removed or redesigned and rewritten anew:
* - (none)
* }}
*
* @version $Id: _main.php,v 1.63.2.7.2.7 2007/06/05 17:15:31 fplanque Exp $
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
skin_content_header(); // Sets charset!
?>
<!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">
<!-- layout credits goto http://bluerobot.com/web/layouts/layout2.html -->
<head xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>">
<?php skin_content_meta(); /* Charset for static pages */ ?>
<?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?>
<title><?php $Blog->disp( 'name', 'htmlhead' ) ?><?php request_title( ' :: ', '', ' :: ', 'htmlhead' ) ?></title>
<?php skin_base_tag(); /* 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' ); ?>" />
<?php robots_tag(); ?>
<style type="text/css" media="screen">
@import url(default.css);
</style>
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
<meta name="generator" content="b2evolution <?php echo $app_version ?>" /> <!-- Please leave this for stats -->
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />
<?php comments_popup_script() // Include javascript to open pop up windows ?>
<?php
$Blog->disp( 'blog_css', 'raw');
$Blog->disp( 'user_css', 'raw');
?>
</head>
<body>
<div id="header_X"><h1><?php $Blog->disp( 'name', 'htmlbody' ) ?></h1></div>
<div id="page">
<div id="sidebar">
<div id="menu" class="boxed">
<h2>log in here to post an ad or contribute an article:</h2>
<?php
// Administrative links:
user_login_link( '', '<br />' );
user_admin_link( '', '<br />' );
user_logout_link( '', '<br />' );
?>
<br />
</div>
</div>
<div id="content">
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
$Messages->disp( '<div class="post">', '</div>' );
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php // ----------------------------------- START OF POSTS ------------------------------------
if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post
if( isset($MainList) ) while( $Item = & $MainList->get_item() )
{
// Load Item's creator User:
$Item->get_creator_User();
locale_temp_switch( $Item->locale ); // Temporarily switch to post locale
?>
<div class="storyTitle">
<?php $Item->anchor(); ?>
<h3><a href="<?php $Item->permanent_url() ?>">
<?php $Item->title(); ?></a></h3></font>
posted: <?php $Item->issue_date() ?> </p>
</div><br />
<div class="post">
<?php $Item->content(); ?>
<div class="rightFlush">
<?php link_pages( '#', '#', 'number', '#', '#', '%d' ) ?>
<?php $Item->feedback_link( 'comments' ) // Link to comments ?>
<?php $Item->feedback_link( 'trackbacks', ' • ' ) // Link to trackbacks ?>
<?php $Item->feedback_link( 'pingbacks', ' • ' ) // Link to trackbacks ?>
<?php $Item->edit_link( ' • ' ) // Link to backoffice for editing ?>
<?php $Item->trackback_rdf() // trackback autodiscovery information ?>
<?php
// THIS is an example of how to display unmixed comments, trackbacks and pingbacks.
// doing it old b2 style :>>
// this includes the comments and a form to add a new comment
$disp_comments = 1; // Display the comments if requested
$disp_comment_form = 1; // Display the comments form if comments requested
$disp_trackbacks = 0; // Display the trackbacks if requested
$disp_trackback_url = 0; // Display the trackbal URL if trackbacks requested
$disp_pingbacks = 0; // Don't Display the pingbacks if requested
$disp_title = "Comments:";
require( dirname(__FILE__).'/_feedback.php' );
// this includes the trackbacks
$disp_comments = 0; // Display the comments if requested
$disp_comment_form = 0; // 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 = 0; // Don't Display the pingbacks if requested
$disp_title = "Trackbacks:";
require( dirname(__FILE__).'/_feedback.php' );
// this includes the pingbacks
$disp_comments = 0; // Display the comments if requested
$disp_comment_form = 0; // Display the comments form if comments requested
$disp_trackbacks = 0; // Display the trackbacks if requested
$disp_trackback_url = 0; // Display the trackbal URL if trackbacks requested
$disp_pingbacks = 1; // Display the pingbacks if requested
$disp_title = "Pingbacks:";
require( dirname(__FILE__).'/_feedback.php' );
?>
</div>
</div>
<?php locale_restore_previous(); // Restore previous locale (Blog locale) ?>
<?php } // ---------------------------------- END OF POSTS ------------------------------------ ?>
<?php
// -------------- START OF INCLUDES FOR LAST COMMENTS, MY PROFILE, ETC. --------------
// Note: you can customize any of the sub templates included here by
// copying the matching php file into your skin directory.
$current_skin_includes_path = dirname(__FILE__).'/';
// Call the dispatcher:
require $skins_path.'_dispatch.inc.php';
// --------------- END OF INCLUDES FOR LAST COMMENTS, MY PROFILE, ETC. ---------------
?>
</div>
<div class="boxed">
</div>
</div>
<div style="clear: both;"> </div>
</div>
<div id="footer_X">
<!-- Please leave the following template attribution link as per the designer's licence. Thanks, Naomi -->
<p class="baseline center">
<?php $Blog->contact_link() ?>
-
<?php
// Display additional credits (see /conf/):
// If you can add your own credits without removing the defaults, you'll be very cool :))
// Please leave this at the bottom of the page to make sure your blog gets listed on b2evolution.net
display_list( $credit_links, T_('Credits').': ', '', '|', ' ', ' ' );
$Hit->log(); // log the hit on this page
debug_info(); // output debug info if requested
?>
</p>
</div>
</body>
</html>
:roll: :roll: :-/
Well. your skin varies from the default skins.
It doesn't use a bSmallPrint.
In fact it has a really odd and badly marked up section, where the bSmallPrint should/could be... notice the closing </p>, without a matching starting <p>.....
I suggest you contact the plugin developer for a suggestion