vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Diaries/Owned Forums (https://vborg.vbsupport.ru/showthread.php?t=101329)

Hoffi 11-21-2005 10:00 PM

Diaries/Owned Forums
 
Hi There!
Original from Andrew111888
German Version avaiable her: http://www.vbhacks-germany.com/forum...ead.php?t=2357

What this hack does
This hack will allow your members to create 'diaries' (the term my site uses)--forums that are "owned" by a member or group of members. The owner(s) will be able to add and delete other owners to their diary, and modify the title/description of their diary.


How it works
When a user would like to create a diary, they will visit /forumdir/diarycp.php and submit their application (username and description of their desired diary). To prevent abuse, the application will be moved to /forumdir/queue.php. An administrator can either deny or confirm the application. If denied, the application is removed from the diary_queue table. If it is confirmed, it is removed from the diary_queue table and created as a new forum.
For nearly all of this functions I use the build-In Class System to prevent Errors and use the Internal Error-Handling.
The file located at /forumdir/diarycp.php will include the statistics of an owner's diary(s), including post count, thread count, latest post, forum name, as well as the 'Edit Diary', 'Add Owner', and 'Delete Owner' functions.

AdminCP
In this brand New Version you can modify the possible Settings for the New Forums and the Moderator-Settings in the ACP in the vBulletin Options.
Attention: This Settings has only effect for new created Forums and/or Moderators/Owners.

You can Give each Usergroup additional Rights to see the DiaryCP, to create/edit Diaries and to Administrate Diaries.

Thug 11-22-2005 11:37 AM

u mind translating to english in the images so we can see abit more

Hoffi 11-22-2005 11:55 AM

Take a look in the old Thread. Andrew posted english Screenshots. In the ZIP-File (I just updated!) is a german and an english version.

Benj 11-22-2005 12:30 PM

looks cool. so ya recon i could use this as a kinda groups thing. where some one sets up a group (diary) and others can post in it. but the group (diary) owner can change the name / description and even edit the posts / threads inside of his/her group (diary)

is that correct ??

Yorixz 11-22-2005 01:05 PM

Hoffi, I love you! I've been waiting from the day you posted you were porting it for the release :)


Edit:

It seems to be working perfectly, only thing I'm missing is a place for the admins to have a list of all hosted forums so they can remove them aswell; I guess hard-deleting them by using the AdminCP isn't the best options.

Snake 11-22-2005 01:46 PM

Man that is sweeeeeeeeeet!

Thanks.

Vizionz 11-22-2005 01:55 PM

theres a problem with the delete diary link i will fix it in a sec but ya might want to look into it when you delete a diary it leads you to the domain name not the forums

say you have forums like this

www.yoursite.com/Forums/diarycp.php
then delete diary it will redirect you to
www.yoursite.com/diarycp.php instead

Vizionz 11-22-2005 02:04 PM

theres actually more problems then that. i deleted the diary which gave me a blank page because of wrong linking. then tried to create a new diary and got a mysql error

Database error in vBulletin 3.5.1:

diary_queue error

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 're a anime fan this is the group for you, whether you be old sc
Error Number : 1064
Date : Tuesday, November 22nd 2005 @ 09:57:31 AM
Script : newdiary.php?do=submit
Referrer : newdiary.php

nexialys 11-22-2005 03:49 PM

i'll take a look myself...

btw, i prefer the diary creation(usercp) to be in the usercp, but i will handle this for my own.

... love the idea!

Slave 11-22-2005 05:23 PM

Just tried this on my test forum ..

While, as an admin, I can create a diary no problem .. as a normal user I get a database error after I've clicked the "Save" button on the newdiary.php file ..

Anyone with a solution to this problem?

siriuxs 11-22-2005 05:24 PM

Hi, I have a problem. I have installed all correctly, but when I go www.mysite/forum/diary.php show message:
mondoforum, non hai i permessi per accedere a questa pagina. Questo pu? essere dovuto a vari motivi:

Quote:

Il tuo account potrebbe non avere sufficienti privilegi per accedere a questa pagina. Stai provando a modificare il messaggio di qualcun altro, accedere a caratteristiche amministrative o a qualche altro sistema riservato?
Se stai provando a scrivere un messaggio l'amministratore potrebbe aver disabilitato il tuo account o questo potrebbe essere in attesa di attivazione.
I'am administrator....:| It is impossible...:S

P.S. I'am Italian...;)

Slave 11-22-2005 05:26 PM

Quote:

Originally Posted by Slave
Just tried this on my test forum ..

While, as an admin, I can create a diary no problem .. as a normal user I get a database error after I've clicked the "Save" button on the newdiary.php file ..

Anyone with a solution to this problem?

Seems like I'm getting this due to having a ' in the title of the diary I was trying to create ..

Is this something that can be fixed? as I'm sure you'll get a lot of people wanting to call their diarys after their names ..

ie "Slave's Diary" etc ,..

Vizionz 11-22-2005 06:27 PM

i would fo liked this better if it was through the groups system. so users could create groups and then other users could join the groups and discuss what ever the group is about

nexialys 11-23-2005 12:51 AM

Quote:

Originally Posted by Vizionz
i would fo liked this better if it was through the groups system. so users could create groups and then other users could join the groups and discuss what ever the group is about

there are other hacks for this,.. i think this actual version have a purpose, i prefer it that way...

many sites for parenting would be very interested to have this, per example... so each family have it's own forum to display photos, etc...

maybe a password thingy to the forum manager for the users side would be good if not included... - did not install it yet! -

Hoffi 11-23-2005 12:03 PM

Some Problems fixed.
I've uploaded a new ZIP-File. just replace your diarycp.php and queue.php Files.

The Password thingy: You can set in the Settings if the created Forums can have a Password, and the Moderator-Rights to "change Password". So the internal Forum-System can be used for this.

nexialys 11-23-2005 12:57 PM

good then... Hoffi.

if you can update your first post with the updated data, this would help.. and have a version number on the file too...

thanks!

Vizionz 11-23-2005 02:01 PM

Quote:

Originally Posted by nexialys
there are other hacks for this,.. i think this actual version have a purpose, i prefer it that way...

Where Is one thats full proof solution.

only one i know of is amy's Hideways hack which isnt updated for 3.51

and that only allows one hideaway per user . so not even admins can create multible hideways.

and then the only thing besides that is for 3.07 unless you know something i dont ?

Holidazed 11-23-2005 02:53 PM

Hoffi, this looks awesome.

Question: In the "ACP|vBulletin Options|Diary control Panel - Moderator Options" area, there is a reference to the "Can see FPF" for the FPF hack. What is this hack?

Also, in the "ACP|vBulletin Options|Diary control Panel - Forum Options" area, there is a reference to a "Show Signature" hack by Hoffi. What is this hack?

Andrew111888 11-23-2005 02:56 PM

I'm sure Hoffi will fix all the bugs sooner or later :) (mine started out with a ton of bugs, too).

I still have an unfinished port of this on my computer but I don't really have the time to finish it so I figured a little hurt pride isn't worth more than the community enjoying the hack.

Hoffi 11-23-2005 04:43 PM

Quote:

Originally Posted by nexialys
if you can update your first post with the updated data, this would help.. and have a version number on the file too...

The ZIP is updated. Sorry, I forgot to increase the Versionsumber.
Quote:

Originally Posted by bitg
Question: In the "ACP|vBulletin Options|Diary control Panel - Moderator Options" area, there is a reference to the "Can see FPF" for the FPF hack. What is this hack?

The FPF Hack is still in Development. With that Hack Moderators cann create for their Forums (if the Forum allows that) to Create Profile-Fields only for the one special forum. Forum-Profile-Fields. Short: FPF. These Fields shown up in the Postbit only in the special Forum. This is a really new Feature I need for my Roleplaying Game Forum.
Quote:

Originally Posted by bitg
Also, in the "ACP|vBulletin Options|Diary control Panel - Forum Options" area, there is a reference to a "Show Signature" hack by Hoffi. What is this hack?

This is a really small PlugIn I released here.. You can turn off the Signature per Forum.
Located here: https://vborg.vbsupport.ru/showthrea...ight=signature

Yorixz 11-28-2005 05:11 PM

Hoffi, one question; will it cause any harm (data left in the db or so) if you just delete a subforum as admin or is there another (better) way to do so?

Hoffi 11-29-2005 05:24 AM

There ist no extra Data stored in the DB. So just do what you want in the AdminCP. The created Table is only for the requests and will be cleared during creation of a Forum.

tuanluu 12-01-2005 05:48 AM

I got this error when I try to create new diary.

Invalid SQL:
INSERT INTO diary_queue (title, description, owner, ownerid, date) VALUES ('Goku's Diary', 'I am testing daily diary', 'Goku', 3, 1133422813);

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Diary', 'I am testing daily diary', 'Goku', 3, 1133422813)' at line 1
Error Number : 1064
Date : Thursday, December 1st 2005 @ 01:40:13 AM

does compatable the new release of mysql and php?

Xtrato 12-04-2005 08:56 PM

I got that too is there a fix?

tuanluu 12-05-2005 04:30 AM

I am still waitting ... I thing the problem is that we are using the current release of php and mysql and this hack is not up to date yet?....

Xtrato 12-05-2005 10:43 PM

dont know but we cant use this hack without a fix haha

yack 12-06-2005 01:26 PM

Bugs:

1, diarycp.php -- the redirection problem.

line 244 and 288: change to
PHP Code:

header("Location: ".$vbulletin->options['bburl']."/diarycp.php"); 

2, line 150 wrong datatype error in some instance.

3, when delete owner, user can only delete itself. Only super administrator can manage all owners.

Some suggestions
1. First owner have the priority permission, that can delete other owners.
2. When applyed, user can choose which category the diary is under.
3. if possible, a icon image for each diary is great.
4. First owner can manage the templates.
5. owners can modify the permission of their diarys. can reply, can start a thread, can upload attachments, etc.
6. owners can manage the subscribtions

I really like this hack. Eagar for the new version.

Great Thanks.

Xtrato 12-10-2005 01:31 AM

any fixes from Coder ?

Hoffi 12-15-2005 06:36 AM

I'll update this week.

ReadOrDie 12-15-2005 09:29 AM

It's be much better if the screenshots weren't in german. :/

Xtrato 12-17-2005 12:40 AM

Quote:

Originally Posted by Hoffi
Take a look in the old Thread. Andrew posted english Screenshots. In the ZIP-File (I just updated!) is a german and an english version.

Quote:

Originally Posted by ReadOrDie
It's be much better if the screenshots weren't in german. :/

need to read the thread

Kyderoy 12-27-2005 07:15 PM

I just installed this mod and as the admin of the site I am getting this error when I try to create a new diary

Fixed....

Xtrato 01-01-2006 05:40 PM

it still wont let someone make a diary i just get sql errors

Yorixz 01-03-2006 04:44 PM

It seems to work nice, just one (quite big) bug appears:

When I confirm a request on my admin account it adds me as "owner" instead of the user who requested it so the forums are made practically useless.

Hopefully there will be a fix for this very soon (even though there hasn't been an update for about a month)

cd1986 04-30-2006 08:48 PM

Going to be using this mod on my forum soon, but was also find that when confirming a forum, the person who confirmed it would be set as the owner and not the true owner. To remedy this, open up queue.php

Code:

FIND

$moddata->set('username', htmlspecialchars_uni($vbulletin->userinfo['username']));

REPLACE WITH

$moddata->set('username', htmlspecialchars_uni($owner));

There was also a bug in the diary_main_modslist template:

Code:

REPLACE THE ENTIRE TEMPLATE WITH THE BELOW CODE

<a href="$vboptions[bburl]/member.php?u=$moderator[userid]">$moderator[username]</a>,


board.trash 04-30-2006 11:52 PM

Quote:

Originally Posted by cd1986
Going to be using this mod on my forum soon, but was also find that when confirming a forum, the person who confirmed it would be set as the owner and not the true owner. To remedy this, open up queue.php

Code:

FIND

$moddata->set('username', htmlspecialchars_uni($vbulletin->userinfo['username']));

REPLACE WITH

$moddata->set('username', htmlspecialchars_uni($owner));

There was also a bug in the diary_main_modslist template:

Code:

REPLACE THE ENTIRE TEMPLATE WITH THE BELOW CODE

<a href="$vboptions[bburl]/member.php?u=$moderator[userid]">$moderator[username]</a>,


Thx a lot, it works!

Nachtfalke 05-11-2006 03:53 AM

@ cd1986 : Nice one, that worked!

@ all: Is it possible to send out a mail to the board admin(s), when a new forum is requested? This would be a perfect addon since I do not check my queue.php every day.

Benj 05-19-2006 08:57 AM

options in the drop down in diarycp produces a blank page for me ????!?!?!??!

username12 05-25-2006 09:43 PM

Buggy. But ultimately works.


All times are GMT. The time now is 03:47 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01286 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (39)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete