1 sjenkins Apr 06, 2009 02:58
3 sjenkins Apr 06, 2009 04:56
Yes, im using the latest stable release.
As for the skin, what i have done is used the "SIMPLE" skin that was packaged with the site as a template, and then "merged" it with the Website template.
...I had a feeling it was the skin...
Following is the "BODY" section of the skin. It is more or less a direct copy from the simple skin tweaked for formating
Any suggestions on how to tweak it?
<div align="center">
<h1><?php $Blog->name() ?></h1>
<?php
$Blog->tagline( array(
'before' => '<p>',
'after' => '</p>',
) );
?>
</div>
<?php
$Blog->longdesc( array(
'before' => '<small>',
'after' => '</small>',
) );
?>
<hr>
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages( array(
'block_start' => '<div class="action_messages">',
'block_end' => '</div>',
) );
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links( array(
'block_start' => '',
'prev_start' => '',
'prev_end' => ' :',
'next_start' => ': ',
'next_end' => '',
'block_end' => '',
) );
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>
<?php
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
request_title( array(
'title_before'=> '<h2 style="font-family:arial; text-decoration:none;">',
'title_after' => '</h2>',
'title_none' => '',
'glue' => ' - ',
'title_single_disp' => true,
'format' => 'htmlbody',
) );
// ------------------------------ END OF REQUEST TITLE -----------------------------
?>
<?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 "}"
?>
<?php
// ------------------------------ DATE SEPARATOR ------------------------------
$MainList->date_if_changed( array(
'before' => '<div style="background-color:#0000FF; color: #ffffff; font-weight: bold;text-align: center; border:1px solid #000000; padding: 3px; font-size:16px;">',
'after' => '</div>',
'date_format' => 'l F d, Y',
) );
?>
<div id="<?php $Item->anchor_id() ?>" lang="<?php $Item->lang() ?>">
<?php
$Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
?>
<div style="font-size:12px">
<?php $Item->issue_time(); ?>
</div>
<h2><a href="<?php $Item->permanent_url() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><img src="img/icon_minipost.gif" alt="Permalink" width="12" height="9" border="0" align="absmiddle" /></a>
<?php $Item->title(); ?>
</h2>
<blockquote>
<?php
$Item->categories( array(
'before' => '<small>'.T_('Categories').': ',
'after' => '</small>',
'include_main' => true,
'include_other' => true,
'include_external'=> true,
'link_categories' => true,
) );
?>
<?php
// ---------------------- POST CONTENT INCLUDED HERE ----------------------
skin_include( '_item_content.inc.php', array(
'image_size' => 'fit-400x320',
) );
// Note: You can customize the default item feedback by copying the generic
// /skins/_item_feedback.inc.php file into the current skin folder.
// -------------------------- END OF POST CONTENT -------------------------
?>
<small>
<?php
// Link to comments, trackbacks, etc.:
$Item->feedback_link( array(
'type' => 'comments',
'link_before' => '',
'link_after' => ' • ',
'link_text_zero' => '#',
'link_text_one' => '#',
'link_text_more' => '#',
'link_title' => '#',
'use_popup' => false,
) );
// Link to comments, trackbacks, etc.:
$Item->feedback_link( array(
'type' => 'feedbacks',
'link_before' => '',
'link_after' => ' • ',
'link_text_zero' => '#',
'link_text_one' => '#',
'link_text_more' => '#',
'link_title' => '#',
'use_popup' => false,
) );
?>
<?php
$Item->edit_link( array( // Link to backoffice for editing
'before' => '',
'after' => ' • ',
) );
?>
<?php $Item->permanent_link(); ?>
</small>
</blockquote>
<?php
// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
skin_include( '_item_feedback.inc.php', array(
'before_section_title' => '<h4>',
'after_section_title' => '</h4>',
) );
// Note: You can customize the default item feedback by copying the generic
// /skins/_item_feedback.inc.php file into the current skin folder.
// ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
?>
<?php
locale_restore_previous(); // Restore previous locale (Blog locale)
?>
</div>
<?php } // --------------------------------- END OF POSTS ----------------------------------- ?>
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include( '$disp$', array(
'disp_posts' => '', // We already handled this case above
'disp_single' => '', // We already handled this case above
'disp_page' => '', // We already handled this case above
) );
// Note: you can customize any of the sub templates included here by
// copying the matching php file into your skin directory.
// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
?>
<hr>
<div align="center">
<?php
// -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
mainlist_page_links( array(
'block_start' => '<p class="center"><strong>',
'block_end' => '</strong></p>',
'links_format' => '$prev$ :: $next$',
'prev_text' => '<< '.T_('Previous'),
'next_text' => T_('Next').' >>',
) );
// ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
?>
<strong>
<a href="<?php $Blog->disp( 'arcdirurl', 'raw' ) ?>"><?php echo T_('Archives') ?></a>
</strong>
<p>
<?php
// Display a link to contact the owner of this blog (if owner accepts messages):
$Blog->contact_link( array(
'before' => ' [',
'after' => '] ',
'text' => T_('Contact'),
'title' => T_('Send a message to the owner of this blog...'),
) );
?>
<?php
user_login_link( ' [', '] ' );
user_register_link( ' [', '] ' );
user_admin_link( ' [', '] ' );
user_logout_link( ' [', '] ' );
?>
</p>
</div>
<hr>
<?php
// Please help us promote b2evolution and leave this logo on your blog:
powered_by( array(
'block_start' => '<div align="center">',
'block_end' => '</div>',
// Check /rsc/img/ for other possible images -- Don't forget to change or remove width & height too
'img_url' => '$rsc$img/powered-by-b2evolution-120t.gif',
'img_width' => 120,
'img_height' => 32,
) );
?>
<?php
$Hit->log(); // log the hit on this page
debug_info(); // output debug info if requested
?>
4 edb Apr 06, 2009 05:28
Holy Crap that skin *sucks*! No offense there eh? Just that I always throw out the 'basic' skin cuz it never was anything I wanted any part of. So I had no idea that the "user_whatever_thing()" format (a) was still valid and (b) was still in use anywhere.
No containers in the whole skin. Doh! The whole implementation of "widgets in containers" has drawbacks, but it beats the living snot out of editing files for every little detail.
ANYWAY honestly I'd start all over with either 'custom' or 'evopress' and dial it in to suit your application ... OR find a skin at http://skins.b2evolution.net/ that actually seems sort of close to what you want so that the dialing process is easier. Depends on your overall comfort level with tweaking css and the php bits you might need to tweak is the thing.
BTW containers are all the places around the actual blog posts section. So like the sidebar is a container and all the bits in it are widgets. Add 'em, remove 'em, move 'em around - all by clickety clicking in the back office. So the big-ticket work would be to get your header image in there, and move an existing sidebar to the left. And come to think of it there's a widget for a logo that you could probably use to put your header image in the ... one of the three containers for the area above the posts and sidebar areas.
Bottom line is, really, I'd ditch basic as a starting point. You have a lot of work done already, but wow you're missing out on a lot of cool stuff by using that one as your base. http://www.ibenefitrx.com/blog/index.php?tempskin=custom uses a background image for the line between posts and sidebar. After that it's an easy skin to dial around.
5 sjenkins Apr 06, 2009 05:49
LOL I just wanted someting SIMPLE that i didnt have to strip out allot of layout stuff as i was applying my own layout stuff.
but honstly i had too re-create a sidebar from scratch casue simple had none.
**SIGH** ok well guess i know what im doing monday!
Thank for the advice..
6 sjenkins Apr 06, 2009 17:54
Ok well i started from some-what scratch using CUSTOM as a base line
still lots to tweak but i found that the login button still goes to
which takes you to a login screen
After you login you get to go to
http://www.ibenefitrx.com/blog/?blog=1&title=%2Fimages%2FLayout%2FTop_Logo.jpg
an EROR 404
Also after editing a post same thing
http://www.ibenefitrx.com/blog/?blog=1&title=%2Fimages%2FLayout%2FTop_Logo.jpg
7 sjenkins Apr 06, 2009 18:00
Second Page also links as
http://www.ibenefitrx.com/blog/?blog=1&title=%2Fimages%2FLayout%2FTop_Logo.jpg&paged=2
8 sjenkins Apr 06, 2009 18:02
Ooo i found the problem
My site's template has the following line in it
if ($Country=="CA") $title="/images/Layout/Top_LogoCA.jpg";
Arg variable conflicts!
9 sjenkins Apr 06, 2009 18:12
Ok after some tweaking and replacing the title variable with the correct value i keep getting 404
http://www.ibenefitrx.com/blog/blog1.php?blog=1&title=iBenefitRx%20Blog&paged=2
10 edb Apr 07, 2009 00:51
Why are you trying to manually create a link to the title of a blog? I mean, you simply don't need to replace the title variable *ever*. Check out http://www.ibenefitrx.com/blog/index.php?tempskin=evopress and scroll to the bottom. It'll link to page 2 of the same blog without using "title" as a variable that needs to be filled.
11 sjenkins Apr 07, 2009 05:57
Im not manual manipulating anything.
Im wrapping an EXISTING template for the site into a B2Evolution skin..
Sadly that template used some PHP variables b2evolution did not like....
Awsme a simple unset($title) just before the rest of the page fires cleaned everything up (i hope).
(still have to deal with a custom "form" class that wasnt to get included.... but thats a differnt problem)
Thank you !
Hi sjenkins. Welcome to the forums.
Your links to the images don't work, but did let me find a place to see your blog ( http://www.ibenefitrx.com/blog/ ) and therefore your version. So down to the business of making wrong things right! Here's my first observation: if you are using that code in that version you've got some serious wrongness going on. Basically using the "user_whatever_link(afd adsf asdf)" routine went out of business with v2.*, and you're using v2.4.6 it seems. Actually I never even tried it, but the whole idea of those links as a bit of code that you drop into your skin is gone ... replaced by using widgets in containers.
So step one is to select a skin that came with the package and see if your errors duplicate. Step two is to then figure "well heck it's gotta be my skin" ;) I'm suspecting you had an older version running and upgraded your blog then maybe enough of the skin to get it working? That'd be the most likely root of all evil in my mind - using a 1.* skin in a 2.* installation.