Customizations Needed Please

Creating and modifying plugins.
rahulmunjal
Regular
Posts: 27
Joined: Thu May 05, 2005 6:44 am
Location: Bangalore, India

Customizations Needed Please

Post by rahulmunjal »

I need the following things to be linked for Projects and Users:

Each user should be assigned to one or more projects.

Only users having access to the project
Can view the blogs under the project
Can view the Project Tracker

Integration with Quicksearch to either
Display blogs from only the assigned projects, or
Deny access to blogs which are listed in the search but for which the user doesn’t have permissions

An option for Public/Private setting for Projects/Blogs

Public projects/blogs can be viewed by everyone
Private projects/blogs can be viewed only by users who have permissions


Please tell me if there's any plugin available for any of these features. Also, tell me if they are possible and how much effort will it take to perform all / some of these.

I appreciate the efforts of Garvin and other developers. They just take everything as challange and provide the solutions instantly !! :shock:

Serendipity team is the quickest amont all open source forums i've ever seen.... I heartly congratulate them on their success !!

Please let me know what of the above is possible and how. :twisted:

Thanks a lot and regards,
Rahul
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Customizations Needed Please

Post by garvinhicking »

Of which projects are you talking about? I don't understand what you want :)

Are you talking about the todolist plugin?

About public/private entries, look at the entryproperties plugin, there you can set permission restrictions.

And thanks for all your praise :-D

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rahulmunjal
Regular
Posts: 27
Joined: Thu May 05, 2005 6:44 am
Location: Bangalore, India

Customizations Needed Please

Post by rahulmunjal »

Yes Garvin...

I'm talking about Todo Plugin.
In that, i need more security because everybody should not be able to view the projects as well as project tracker (on the blog).

So, i needed that
Each user should be assigned to one or more projects.
Only users having access to the project
--Can view the blogs under the project
--Can view the Project Tracker

That would add to the security level.

Please tell me how to perform that. And the plugin that you told... i'll check it and let you know my satisfaction level as soon as possible
:)

Thanks a Lot and Regards,
Rahul
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Customizations Needed Please

Post by garvinhicking »

Ah, okay. Well I must admit that is really a bit overkill and not so commonly usable. You can talk to the author of the plugin, Steve Tonnessen, but I don't know if he has the free time to do it. Maybe offering a donation would help you to get this done, as it is very specific for your needs.

Of course if you know some PHP you can always extent the plugin on your own and share it with us! :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rahulmunjal
Regular
Posts: 27
Joined: Thu May 05, 2005 6:44 am
Location: Bangalore, India

Customizations Needed Please

Post by rahulmunjal »

Ok Thanks for your reply Garvin. I wont go for that feature if its tough to customize. I don't want to trouble you much.

Let's now make the case very simple. The thing that i want now would not consume much of your efforts and time. Just you have to tell what to change where in the file. And my purpose will be solved. Most probably, it deals with the session that you are maintaining. Actually, i dont have much idea of PHP. I work in JSP and a bit of ASP. But never tweaked PHP :(

Right now, what happens is that whwnever we open a blog by typing the URL in the address bar, it directly goes to blog Entries irrespective of whether the user is a guest or a registered author or administrator.

What i need is that anyone can only access my blog if he's logged in. I mean... as soon as he opens the BLOG, he should be redirected to the login page instead of the entry page. And he can only access the entry page if he's logged in.

Please take care of this requirement and let me know where all I have to change. And I know you won't disappoint me this time.... :roll:

Looking forward to see the tweaked code.... :D

Thanks a lot for your efforts !!!!
Regards,
Rahul
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Customizations Needed Please

Post by garvinhicking »

Well, the most easy way would be to use the entry properties plugin and mark every plugin as "can only be read by members".

Then non-members will see a blog without entries. Now all you have to do is insert a sidebar plugin to the left or right where users can login. There already is one sidebar plugin which shows that loginform. Then users can log in and will see all entries.

Another way would be to setup .htaccess / .htpasswd protection so that nobody can enter the blog without the credentials. But this means to maintain a seperate .htpasswd file.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rahulmunjal
Regular
Posts: 27
Joined: Thu May 05, 2005 6:44 am
Location: Bangalore, India

Customizations Needed Please

Post by rahulmunjal »

Another way would be to setup .htaccess / .htpasswd protection so that nobody can enter the blog without the credentials. But this means to maintain a seperate .htpasswd file.
How can we set up that? Please explain me this method too.......... :twisted:

Regards,
Rahul
rahulmunjal
Regular
Posts: 27
Joined: Thu May 05, 2005 6:44 am
Location: Bangalore, India

Authors Login Plugin not logging off...

Post by rahulmunjal »

I installed a plugin from the additional plugins as suggested by you.
But when i'l logging off from it, its not logging me off.

It's just refreshing the entries page but not actually logging me off.
Well, the most easy way would be to use the entry properties plugin and mark every plugin as "can only be read by members".
Also, how do we set the plugins to be only displayed to the registered users and not to the guests. Is there any way of that too? I'm not able to view the "can only be read by members" option. The drop down contains all the user names and 1 more entry "All Authors" but when i select all authors, its displayed even when guests view the things.

Please check that too.

Regards,
Rahul
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Authors Login Plugin not logging off...

Post by garvinhicking »

I've committed version 1.01 of the sidebar plugin which now performs the proper logout.

As for .htaccess / .htpasswd: Please google it up, it's webserv configuration and independent from Serendipity.

You can set plugins to be only displayed to registered users with the sidebarhider event plugin. You need to use Serendipity 0.9 though for that to work.

The "can only be read by members" option can be found in the Entry Creation panel when you have the plugin set. Which dropdown are you talking of? I only mean radioboxes in the entry creation panel, which is shown after you installed the "Extended entryproperties" plugin.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rahulmunjal
Regular
Posts: 27
Joined: Thu May 05, 2005 6:44 am
Location: Bangalore, India

Customizations Needed Please

Post by rahulmunjal »

Thanks a lot Garvin for providing the required functionalities.

Actually, the radio button contains 3 options only.....

Myself
Co-Authors
EveryOne

Here's the screen Shot for that......
Image



How can i get the option that u are talking about? Is there any modification in the functionality?

Can't i use sidebar hiding plugin with .8 beta6 ???
rahulmunjal
Regular
Posts: 27
Joined: Thu May 05, 2005 6:44 am
Location: Bangalore, India

Customizations Needed Please

Post by rahulmunjal »

1 more thing.......

can i get the login screen by default whenever i refer to the site instead of entries screen ?

What's the modification i need to do for that. ;)

Regards,
Rahul
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Customizations Needed Please

Post by garvinhicking »

"members" == "co-authors" :-)

You can get the login screen by default if you change your DirectoryIndex directive in your webserver to "serendipity_admin.php". But then the people will log into your admin interface and not to the blog itself.

The full login screen is only used to access the admin area.

Regards
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rahulmunjal
Regular
Posts: 27
Joined: Thu May 05, 2005 6:44 am
Location: Bangalore, India

Customizations Needed Please

Post by rahulmunjal »

Will this affect other applications running on my system mate?

And where can i get DirectoryIndex in the web server??? :cry:

It went over my head.......... :oops:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Customizations Needed Please

Post by garvinhicking »

.htaccess will only affect the directory where you put it into and its subdirectories, but not applications outside the directory.

DirectoryIndex can be found in your Apache httpd.conf file, in the VirtualHost section for your blog host.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rahulmunjal
Regular
Posts: 27
Joined: Thu May 05, 2005 6:44 am
Location: Bangalore, India

Customizations Needed Please

Post by rahulmunjal »

I dont have any VirtualHist set up for our blogs. Can i set it up now??
Can u paste here an example VirtualHost section of any blog host??

The LogOut function is running well. Great Work !! Thanks.

1 more thing....... i have abt 200 entries in my blog now. Manually changing every entry from visible to everyone to "visible only to co-authors" is too tiring and that would not be a good approach for software developers.

So, tel me the table and the fields where the value needs to be changed and to what it needs to be changed...........:P

If possible, frame the query itself...... :wink:

Please reply with these 2 things.
1. VirtualHost example / sample
2. Query

Regards,
Rahul
Post Reply