• 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

Edit link moved on 'page_main.php'

May 17th, 2008

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;
}

  roger
Tags: edit link, page_main
 


Message Generated From Actions on 'page_main.php'

May 17th, 2008

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;
}

  roger
Tags: message action, page_main
 


<< 1 ... 46 47 48 ...49 ...50 51 52 ...53 ...54 55 56 ... 67 >>
  •  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!