View Full Version : Diaries/Owned Forums
Hoffi
11-21-2005, 10:00 PM
Hi There!
Original from Andrew111888 (https://vborg.vbsupport.ru/showthread.php?t=92546)
German Version avaiable her: http://www.vbhacks-germany.com/forum/showthread.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.
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.
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:
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
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
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 aboutthere 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
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
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.
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.
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/showthread.php?t=93737&highlight=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
Bugs:
1, diarycp.php -- the redirection problem.
line 244 and 288: change to 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
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.
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
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:
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
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
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:
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.
options in the drop down in diarycp produces a blank page for me ????!?!?!??!
username12
05-25-2006, 09:43 PM
Buggy. But ultimately works.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.