• spAce
  • blUsh
  • blInk
  • b2Evo
  • e L f

this.b2evolution

An Introduction to the Vagaries of <this.load_of_old.blogin/>
  • Home
  • New to Blogin'?
  • Contact
  • Log In

My Tags Plugin

Details on my mod to Quick Tags plug-in.

I have added a fourth <div> as follows:
1. Open _mytags.plugin.php and edit
2. In function GetDefaultSettings() copy existing div code, that starts as follows and changing div numbers. Do not change ['rows' => 4]

'moretags_div1' => array(

3. In function SkinBeginHtmlHead() copy code for div starting as follows, and change numbers to suit step 2 above.

if ( $this->Settings->get('moretags_div1') != '' )

4. In function AnotherButton(id, display, tagClass, tagStart, tagEnd, tit, open)
copy code for new button, as follows and again change div number to suit above. The 'd1' is the button label(text) and can be anything. I have used 'Cl' on a button to {clear:both} and 'dL' for a <div> that has {float:left} in it's CSS class.

MoreButtons[MoreButtons.length] = new AnotherButton(
'mtb_div1','d1','divs leftgap','

5. Then edit the plug-in via management ~ pluin installed ~ MyTags to create the style wanted.

OK All the above was unnecessary. clearboth is already a class in rsc/css/basic.css and I made two more classes to replace the divs made above; post_fll and post_flr (post detail float left and ditto float right). So the divs can be used for something else. Well at least they are implimented and the css of each cna be easily changed.

  • August 9th, 2010
  • Category
    Plugins and Hacks, Ongoing
Send feedback »
 

Search Form Widget

Hard coded paragraph tag around submit button as validator didn't like any lines of code inside a <form> tag not to be in a block tag.
echo '<p>';
echo '<input type="submit" name="submit" value="'.T_('Search').'" class="search_submit" />';
echo '</p>';

  • March 28th, 2009
  • Category
    Plugins and Hacks
Send feedback »
 

Search Form Widget

Hard coded paragraph tag around submit button as validator didn't like any lines of code inside a <form> tag not to be in a block tag.

echo '&lt'p>';
echo '<input type="submit" name="submit" value="'.T_('Search').'" class="search_submit" />';
echo '</p>';

  • March 28th, 2009
  • Category
    Background
Send feedback »
 

Search Form Widget

Hard coded paragraph tag around submit button as validator didn't like any lines of code inside a <form> tag not to be in a block tag.
[code]
echo '&lt'p>';
echo '<input type="submit" name="submit" value="'.T_('Search').'" class="search_submit" />';
echo '</p>';
[/code]

  • March 28th, 2009
  • Category
    Background
Send feedback »
 

Search Form Widget

Hard coded paragraph tag around submit button as validator didn't like any lines of code inside a <form> tag not to be in a block tag.
[codespan]
echo '&lt'p>';
echo '<input type="submit" name="submit" value="'.T_('Search').'" class="search_submit" />';
echo '</p>';
[/codespan]

  • March 28th, 2009
  • Category
    Background
Send feedback »
 

Problems in Firefox 3

  • July 10th, 2008
  • Category
    Announcements
Send feedback »
 

Get Plugins

Code Plugin: See post by yabba on forum
Sticky Plugin

  • May 22nd, 2008
  • Category
    Background
Send feedback »
 

Edit link moved on 'page_main.php'

More modifying for the page_main.php
As in the last post on 'Messages Generated From Actions, I want to move the edit link from the left hand column to the bottom of the post as I have in the posts_main.php.

After moving it I formatted it with a <div class="page-edit-link"> with borders, but when not logged in the borders didn't show and i wanted a separator from the feedback block so I added a border-top to the 'feedback' div to separate.

The code in the 'page_main.php'is: Added before the <div class="clearboth">
<?php
$Item->edit_link( array( // Link to backoffice for editing
'before' => '<div class="page-edit-link">',
'after' => '<div>',
'text' => '#',
'title' => '#',
'class' => '',
'save_context' => true,
) );
?>

Then the <div class="clearboth"> was changed to <div class="comments"> to get a permanent separator, which acts as the bottom border for the edit link when logged in.

The css codes are:
.page-edit-link{
clear:both;
text-align:right;
width:96%;
margin-left:23px;
padding:5px 3px 2px 0;
border-top:1px dotted blue;
}
.comments{
clear:both;
margin-left:23px;
border-top:1px solid blue;
}

  • May 17th, 2008
  • Category
    Done
Send feedback »
  Tags: edit link, page_main

Message Generated From Actions on 'page_main.php'

I have modified the Message Action for the page view as it looked out of place to the side. As their is no text in the space above the page title I've moved it here and made it a long and thinner div.

So the changes, in my modified simple_zen, are:

1. page.main.php Insert immediately after <div id="content" class="column">

<?php
// -----MESSAGES GENERATED FROM ACTIONS -----
messages( array(
'block_start' => '<div class="page_action">',
'block_end' => '</div>',
) );
// --END OF MESSAGES GENERATED FROM ACTIONS --
?>

2. stylesheet.css Add the following
.page_action {
border:1px solid black;
background:#ffff66; color:#000000;
text-align:center;
padding:1px;
margin-left:23%;
margin-top:-24px;
}

  • May 17th, 2008
  • Category
    Done
Send feedback »
  Tags: message action, page_main
1 2 3 4 5 >>
  • Categories

    • All
    • Announcements
    • Background
    • Help for Users and Admin
      • b2evolution bugs
      • Things I've learnt.
    • Plugins and Hacks
      • Complete
      • Ongoing
      • Wanted
    • Skin Modifications
      • Done
      • To Do
      • Underway
  • this.b2evolution

  • This design is good for keeping keep track of an ongoing story as you can view posts chronologically and filtered by subject. You will be able to comment on most except on Very Persinal post, and can chose to allow such on any you make.

  • February 2012
    Sun Mon Tue Wed Thu Fri Sat
     << <   > >>
          1 2 3 4
    5 6 7 8 9 10 11
    12 13 14 15 16 17 18
    19 20 21 22 23 24 25
    26 27 28 29      
  • Search





Oops! a daisy


no legs

Can you stand up for
cluster bombs?

Global cluster bomb ban comes into force (1st Aug 2010) - Well sort of global. However countries like The USA, Russia, China, India, Pakistan and Israel refuse to sign.

The Convention on Cluster Munitions bans the stockpiling, use and transfer of virtually all existing cluster bombs, and also provides for the clearing up of unexploded munitions.

It has been adopted by 108 states, of which 38 have ratified it. Twenty-two out of the 28 countries in Nato, including the UK, have joined up to this ban. So who hasn't appart from the US??

The US administration insists cluster munitions are "legitimate weapons" with "clear military utility in combat".
It argues that cluster munitions actually cause less harm to civilians than some other weapons.

The charity Handicap International estimates that 98% of cluster bomb victims are civilians and nearly one-third are children." and yet the US have it that "cluster munitions actually cause less harm to civilians than some other weapons"

What are these other weapons we use??



powered by: b2evolution 2.4.6