[Plugin] UserBlog - former Autoblog plugin
Goto page 1, 2, 3 ... 10, 11, 12  Next
 
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions
View previous topic :: View next topic  
Author Message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sun Jun 15, 2008 13:58    Post subject: [Plugin] UserBlog - former Autoblog plugin Reply with quote

This plugin creates a new blog when user clicks a link in their profile page.
Blog short name and category will have the same name as login.

The plugin has several options built in:
You can choose if you want to use stub files or not, with or without extension, if you want to store stub files in separate directories or all in a subdirectory.
You can also decide if you want to give users administration rights and own media folder on registration or not, and set the default descriptions and default skin for the new user's blogs and much more.


Download v2.2.0

This plugin works in b2evo 2.x and 3.x versions only.

Quote:
Changelog:
v2.2.0 - 13.10.2008
* New: Option to auto create a blog upon user registration (users must accept "Terms and conditions" in order to get a blog)
* Fixed: error "undefined index text"

v2.1.0 - 01.09.2008
* New: It's finally possible to rename Userblog group
* Added directory permissions check
* Fixed some bugs


How to use:
Quote:
- Right after you installed the plugin you can go to Global settings and select userblog group in "Group for new users".
- Enable user registration on the same tab "New users can register".

Then you may want to check how it works. Log out and register as a new user. When you validate your new account go to the profile page and click "Create my blog" link. You'll get your personal blog just like all other users who will register on your site.

If everything is working well you can go to plugin settings and change whatever you want

_________________
Russian b2evolution | Download


Last edited by sam2kb on Wed Aug 05, 2009 21:05; edited 13 times in total
Back to top
View user's profile Send private message Visit poster's website
alexandrehaguiar
New Poster
New Poster

Joined: 18 Jun 2008
Posts: 1
add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Wed Jun 18, 2008 14:57    Post subject: Reply with quote

There is any way to set a user blog quota and config the blog name before create?
Back to top
View user's profile Send private message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Wed Jun 18, 2008 21:15    Post subject: Reply with quote

What is quota for you? Only Userblog group users can create a blog, only one blog per user, and you can disable blog creation in any time and continue using the plugin.

Are you talking about blog name displaying in urls? You can give your own blog names if you hack the code, it's pretty easy, but don't forget that blog name must be unique. Tell me what exactly do you need.

_________________
Russian b2evolution | Download


Last edited by sam2kb on Sat Jun 21, 2008 17:08; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
surajit.kar
New Poster
New Poster

Joined: 21 Jun 2008
Posts: 2
add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sat Jun 21, 2008 15:16    Post subject: Error on the instalation Reply with quote

Hi Sam,

once i have installed the plugin and the click on it its askin for this file "_autoblog.plugin.php"

then if place that file on to the plugin's folder then it gives error for the skin part Sad i have download the lated version of the b2evolution ..

Please help me out

Surajit Kar
surajit.kar@gmail.com
Back to top
View user's profile Send private message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sat Jun 21, 2008 15:42    Post subject: Reply with quote

Are you using b2evo-2.4.2?
Are you sure that you are trying to install Userblog plugin, not Autoblog?

Delete Userblog group, uninstall old plugin delete /plugins/userblog_plugin folder, then download a fresh copy of Userblog plugin and install it.

_________________
Russian b2evolution | Download


Last edited by sam2kb on Mon Sep 01, 2008 17:27; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
surajit.kar
New Poster
New Poster

Joined: 21 Jun 2008
Posts: 2
add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sun Jun 22, 2008 6:54    Post subject: Thank you Reply with quote

Thank you.

All done..

I reinstalled b2e..

Thanks a ton
Back to top
View user's profile Send private message
phanatic
New Poster
New Poster

Joined: 24 Oct 2005
Posts: 10
Reputation: 3Reputation: 3 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Thu Jul 03, 2008 10:45    Post subject: Plugin does not function as expected Reply with quote

Well, I don't know what to say. I synced the user group with the plugin settings, re-installed the plugin, enabled everything, installing on a fresh 2.4.2 installation, and it does not create a blog at all.

After user registration (but before e-mail validation):

Registered plugin IDs: 12
get_by_ID(): Instantiate Plugin (ID 12).
Loading plugins table data.
register(): userblog_plugin, ID: 12, priority: 60, classfile_path: [C:/wamp/www/b2evolution/blogs/plugins/userblog_plugin/_userblog.plugin.php]
Loading plugin class file: userblog_plugin
Calling userblog_plugin(#12)->AfterUserInsert( )
Loading plugin events.
get_by_ID(): Instantiate Plugin (ID 12).
Loading plugins table data.
register(): userblog_plugin, ID: 12, priority: 60, classfile_path: [C:/wamp/www/b2evolution/blogs/plugins/userblog_plugin/_userblog.plugin.php]
Calling userblog_plugin(#12)->GetDefaultSettings( )
Trigger event AppendUserRegistrTransact (first false)
No registered plugins.
Trigger event AfterUserRegistration
No registered plugins.




After clicking on "my profile" (when the blog should be created)

Trigger event AfterLoginRegisteredUser
Registered plugin IDs: 12
get_by_ID(): Instantiate Plugin (ID 12).
Loading plugins table data.
register(): userblog_plugin, ID: 12, priority: 60, classfile_path: [C:/wamp/www/b2evolution/blogs/plugins/userblog_plugin/_userblog.plugin.php]
Loading plugin class file: userblog_plugin
Calling userblog_plugin(#12)->AfterLoginRegisteredUser( )
Trigger event CacheObjects (first true)
No registered plugins.
Trigger event CacheObjects (first true)
No registered plugins.
Trigger event AdminAfterMenuInit
Registered plugin IDs: 12
Calling userblog_plugin(#12)->AdminAfterMenuInit( )
Trigger event PluginUserSettingsEditAction
No registered plugins.
Trigger event AdminEndHtmlHead
No registered plugins.
Trigger event AdminBeginPayload
No registered plugins.
Back to top
View user's profile Send private message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Thu Jul 03, 2008 10:49    Post subject: Reply with quote

Did you make Userblog group the default one for new users before you register a new user?

User Settings -> Default group for new users

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
phanatic
New Poster
New Poster

Joined: 24 Oct 2005
Posts: 10
Reputation: 3Reputation: 3 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Fri Jul 04, 2008 2:56    Post subject: Reply with quote

Yes. All users are being registered to the same group that is set-up in the plugin. I re-installed the plugin after making sure all of this was in-sync.

Very strange...
Back to top
View user's profile Send private message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Fri Jul 04, 2008 3:21    Post subject: Reply with quote

Do you see something similar on Users tab after you edited inc/users/views/_user_list.view.php ?


_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
¥åßßå
Blonde Bimbo

Joined: 07 Jan 2005
Posts: 6579
Reputation: 29.5Reputation: 29.5Reputation: 29.5 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 115

PostPosted: Fri Jul 04, 2008 3:23    Post subject: Reply with quote

Hi sam2kb,
this may be an error in logic. In AfterLoginRegisteredUser() you check if you're on profile page ( $disp ) or admin profile page ( $ctrl ), if not then you do nothing.

However that function is *only* called when a user logs in, so unless they hit one of those two pages on login then no blog will be created Wink

You may wish to change your check to SkinBeginHtmlHead() && AdminEndHtmlHead() instead

¥

_________________
I may have opened the door but you entered of your own free will
normal life wrote:
yabba_hh: I think, I type, I read what I type, I think "fuck, what was I thinking when I typed that?!"
tuxnus: that's two more thoughts than I give you credit for
Back to top
View user's profile Send private message Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Fri Jul 04, 2008 3:28    Post subject: Reply with quote

Thanks ¥åßßå

But this plugin doesn't create a blog right after user registration. User must click "Create my blog" link in their profile, so he has to be logged in.

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
phanatic
New Poster
New Poster

Joined: 24 Oct 2005
Posts: 10
Reputation: 3Reputation: 3 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Fri Jul 04, 2008 3:28    Post subject: Reply with quote

hhmmmm that's an interesting idea... I do NOT see the "create blog" link, although I do see the column header for it.

Also, I do not see a "create blog" link in the "my profile" tab when I login as the newly created user. I just re-installed b2evo and installed the plugin fresh, and it performed the same way.
Back to top
View user's profile Send private message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Fri Jul 04, 2008 3:32    Post subject: Reply with quote

Try to add a new user from backoffice, you probably *moved* that user from other group, but it has to be registered in Userblog group.
_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
¥åßßå
Blonde Bimbo

Joined: 07 Jan 2005
Posts: 6579
Reputation: 29.5Reputation: 29.5Reputation: 29.5 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 115

PostPosted: Fri Jul 04, 2008 3:36    Post subject: Reply with quote

Hi Sam,

I realise that, but the link will *only* be shown if the user logs in to the profile page, if they login to any other admin page ( dashboard is default ) then they won't get to see the link *even* if they then visit their profile.

try adding this and reloading the plugin :

PHP:
function SkinBeginHtmlHead()
{
  return 
$this->AfterLoginRegisteredUser();
}
function 
AdminEndHtmlHead()
{
  return 
$this->AfterLoginRegisteredUser();


¥

_________________
I may have opened the door but you entered of your own free will
normal life wrote:
yabba_hh: I think, I type, I read what I type, I think "fuck, what was I thinking when I typed that?!"
tuxnus: that's two more thoughts than I give you credit for
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions All times are GMT - 5 Hours
Goto page 1, 2, 3 ... 10, 11, 12  Next
Page 1 of 12


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board