Similar to the hack on my site to display info to a selected group or user, this is how to code your skins _html_header.inc file to display the toolbar for administrators only. Thanks again to ¥åßßå.
Code:
<body> | |
| |
<?php | |
if( is_logged_in() ) | |
{ | |
switch( $current_User->group_ID ) | |
{ | |
case 1 : | |
// ---------------------------- TOOLBAR INCLUDED HERE ---------------------------- | |
require $skins_path.'_toolbar.inc.php'; | |
echo '<div id="bgcontainer" class="skin_wrapper_loggedin">'; | |
// ------------------------------- END OF TOOLBAR -------------------------------- | |
break; | |
} | |
| |
} | |
?> | |
<!-- Start of skin_wrapper --> |
b2evolution 2.4.1 allows you to select what your URLs are to look like, by choosing either “param” or “extra-path”. I was experiencing a problem on one of my servers that none of the “extra-path” urls were functioning and I was repeatedly getting 404 errors. Even after enabling the sample.htacess file, I would still get the errors.
Now I don’t have all the answers… cause I know nothing about server settings and all that stuff… but this is what worked for me.
Another one of my blogs used php5, and I never had a problem with the “extra-path", the pretty or clean urls as some people call them. I noticed that this other blog was using php4… I wondered if that was the culprit. I went to my server admin panel and upgraded to php5 and low and behold, all my pretty urls worked beautifully!
If you are having trouble getting your extra-path or pretty urls to work, try to see if upgrading to php5 will help.
As of now, b2evo 2.4 only allows your blog settings short name length to be 12 characters long. To increase this number, this is what you need to do. Thanks for the tip EdB.
1) Enter your MYSQL database and review table evo_blogs. Here you’ll need to edit the field blog short name, changing the length/values from 12 to whatever number you need.
2) Next you’ll need to edit file inc/collections/views/_coll_general.form.php at approximately line 54, changing the number 12 to your desired number.
Code:
$Form->text( 'blog_shortname', $edited_Blog->get( 'shortname', 'formvalue' ), 12, T_('Short name'), T_('Will be used in selection menus and throughout the admin interface.') ); |
As of now, b2evo cuts off long urls for permalinks. Here is the hack to make them loooooonnnnnnnger. Tested in version 2.4. Credits go to astonishme for the original hack for version v0.9.1.0 and to ¥åßßå for her tips.
1) Enter your MYSQL database and review table evo_items__item. Here you’ll need to edit the field post_urltitle, changing the length/values from 50 to 250.
2) Next you’ll need to edit file inc/items/views/_item_expert.form.php at approximately line 219, changing the $field_maxlength from 50 to 250.
Code:
T_('("slug" to be used in permalinks)'), $field_maxlength = 50 ) ; |
3) Finally you’ll need to edit file inc/items/model/_item.funcs.php at approximately line 134 changing the number 40 to 250.
Code:
$urlbase = substr( $matches[1], 0, 40 ); |
Done!
This is my second plugin… and by far my favorite. And a special thanks to ¥åßßå. Enjoy!
Name: BAE Social Bookmarks 1.1 - Tested on b2evolution 2.4.0-rc2
Description: This plugin will insert any and all your favorite social bookmark sites into your posts, old and new.
Fully Customizable: You choose what Social Bookmark sites to link to. You choose how they are displayed. You choose where they are displayed in the post using css.
Installation: Unzip or Urar BAE-SocialBookmarks.zip. Upload to your plugins folder. In your backoffice, activate the plugin Social Bookmarks. Now proceed to “Edit Plugin Settings".
Edit Plugin Settings: Here you’ll see the “Bookmarks Block". This is where you paste in all your favorite social bookmarks html. (pg 2 of this post) You can even wrap them in your own div class to customize the apearance and positioning. By default the rendering is set to ‘opt-out’, however if you select ‘Always’ your social bookmarks will show on all your old posts aswell! Hit save and you are done!
NEXT PAGE - B2EVO Social Bookmark HTML codes for this plugin….
Pages: 1 · 2