1 davidinparis Feb 26, 2008 15:31
3 davidinparis Mar 02, 2008 23:04
Many thanks EdB for your information. I shall work it through in the next few days and come back when I've advanced somewhat.
Look forward to talking to you again.
Merci bien.
4 davidinparis Mar 10, 2008 18:20
The information provided by EdB was spot on and enabled us to make the changes we wanted. Many thanks EdB. Just in case others want the do the same operation I am giving the modifications we made along with the display results.
Sorry to take the questions in reverse order. Simply numbered the diagrammes that way.
We modified the toolbar as below removing two menu items the user login, item 1, and the B2E menu, item 2.
Line 54:
<?php
/* this line commented out. inhibits showing login name.
user_profile_link( '<strong>', '</strong>', '%s '.get_icon('dropdown') );
*/
?>
We used the same approach to inhibit the display of the B2Evolution menu on the left of the toolbar item 2 by commenting out the following lines:
Line 110:
<?php
/*
echo '<a href="'.$home_url.'">b2evolution '.get_icon('dropdown').'</a>';
// Note: if <strong></strong> is inside of the link, rollover fails in IE7
*/
?>
http://blogs.immomanager.info/toolbar_no_name.jpg (alt+p)
The login name is displayed in the comments zone by code in the file skins/_item_comment_form.inc.php line 100 (approx). The following line was simply commented out and we seemed to get (more or less) the desired result shown item 3 below.
if( is_logged_in() )
{ // User is logged in:
/* all these lines commented out
$Form->begin_fieldset();
$Form->info_field( T_('User'), '<strong>'.$current_User>get_preferred_name().'</strong>'
.' '.get_user_profile_link( ' [', ']', T_('Edit profile') ) );
$Form->end_fieldset();
*/
}
else
http://blogs.immomanager.info/comment_no_name.jpg (alt+p)
There should be no undesirable side effects since the changes only inhibit the display of content on the page and, apparently, make no changes to any logic.
We still have the problem of automatic login to B2Evolution from our own system. Access to parts of our web site is only through a login+password. Once logged in the users have access to information relevant to their "user group". We want them to have access to the "private" blogs relevant to their user group and to no other blogs. We do not wish to modify any of the logic behind B2E nor the data base used by B2E. We expect to have no problem in synchronising the B2E data base with our data base. The problem is we do not fully understand the logic employed in the login.php file of B2E so are uncertain as to how to pass the user name and password from our side to B2E; can we do this in the query string used to call the login page? When it has been done we shall post the php code into this forum.
[/img][img]
Hi davidinparis!
The first bit is findable in skins/_item_comment_form.inc.php around line 100 in my copy of it, which I think is pretty much un-hacked. The second is probably in skins/_toolbar.inc.php but I've no idea where. Oh and depending on your skin you might find that you have skins/yourskin/the_important_file and if so then that is the file you will need to edit.
Hope it helps!