Recent Topics

1 Feb 26, 2008 15:31    

My b2evolution Version: 1.10.x

Sorry about the preceding forum entry. An error on the keyboard. Errare humanum est. The preview button has disappeared.

We are building a site which will be split according to user groups. Each user group will have its own sub-domain as usergroup1.domain.com, usergroup2.domain.com. A user logs on to his own user group with login+password. No problem so far.

We now want to set up a system of blogs for each user group accessible to the user only when they have logged in to their own group. In order to standardise, as much as possible, we want to retain the login mechanism of B2E but render it transparent to the user. We were hoping to generate a call to the url http://blogs.domain.com/htsrv/login.php passing the appropriate parametres in the call string. Has anyone already done this and what problems could it pose further down the line.

As a supplementary point we want to restrict all the standard B2E functions that enable a user to have any access to his profile; the profile is set through our own control panel. We have identified at least two places where we have to intervene:

http://test.immomanager.info/leave_comments_logged.gif

and

http://test.immomanager.info/logged_name.gif

Could someone advise me as to the files to be changed to simply remove these two ringed displays.

Merci d'avance.

2 Mar 01, 2008 06:20

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!

3 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 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]


Form is loading...