forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: bvu007 on November 19, 2007, 11:51:50 pm

Title: About me plugin
Post by: bvu007 on November 19, 2007, 11:51:50 pm
Hi,
I'd like to see a new plugin titled "About me"  that opens a form with the users (i.e. gallery owner) biographical information, contact adress, location, phone nr. etc. The new form can optional show a picture of the gallery owner.
You access the new form from the main menu by clicking on the menuitem "About me".

Maybe you can add additional fields for entering usefull links, recommended by gallery owner.

All the relevant informations should be stored in the database and can be modified in the users profile only, which should be
enhanced by the new fields.

Thanks
Bodo

Title: Re: About me plugin
Post by: Joachim Müller on November 20, 2007, 08:28:35 am
No plugin needed. Just create a custom php page named aboutme.php (within your coppermine root) with this content:
Code: [Select]
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
pageheader($lang_banning_php['title']);
?>

Your custom content here
<?php
pagefooter
();
ob_end_flush();
?>
Add a link to this custom page to your coppermine navigation and you're fine.
Title: Re: About me plugin
Post by: François Keller on November 20, 2007, 08:42:10 am
humm, not sure it's what bvu007 mean's
I think he will a "about_me" page for each user who has his album in the user albums categorie
Title: Re: About me plugin
Post by: Joachim Müller on November 20, 2007, 08:49:04 am
A plugin like that would require a huge amount of custom coding, with additional database fields, corresponding queries and forms, an admin backend config screen and so on. Way beyond what you can expect from free support.
The thread starter originally posted this in the feature requests board. Not a valid feature request, that's why the thread got moved here.
Title: Re: About me plugin
Post by: bvu007 on November 20, 2007, 08:13:04 pm
Well the About-me plugin could be designed in a similar method like the "contact me" plugin.

However the About-me form should then only show the administrators information like Occupation, Biography,  Interests which can be entered in the administrators profile.
All these fields are allready in the database and are never  used anywhere else in the gallery, as far as I see.

I like to suggest to add some more usefull fields to the users profile in the future, e.g phone number usefull links to add these to the About-me form.

The form might be usefull to those who run coppermine gallery as their personal photo-gallery without letting other users to login an create a profile.
So the informations in a About-me form should onyl come from the administrators profile.


Thanks for your attention.
Bodo


Title: Re: About me plugin
Post by: just_some_guy on November 20, 2007, 08:18:11 pm
Look into the use of custom fields in user profiles. There is even a longer entry form which you could turn into an "about me" section.
Title: Re: About me plugin
Post by: Joachim Müller on November 21, 2007, 08:15:06 am
Looks like you only want to display the information about the admin / site owner and nobody else. Do as I suggested initially then: create aboutme.php and add all the information you want to see there.