Version: 1.0.1, by Andrew111888
Developer Last Online: Apr 2011
Version: 3.0.5
Rating:
Released: 07-19-2005
Last Update: 08-16-2005
Installs: 9
DB Changes Template Edits
Additional Files
No support by the author.
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/newdiary.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.
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.
This is only tested on 3.0.5, but I don't see why it wouldn't work on any 3.0.x install. If it doesn't work on 3.0.7 please tell me and I will update my post. Estimated install time is 5 minutes.
This hack will add one table (diary_queue.php), and you need to add 11 templates. You don't need to modify any vB files.
See readme.html for more info .
Version 1.0.1 released July 28, 2005 and Zip updated! Read below for details all who have installed this hack!
Version 1.0.1 should resolve all known bugs.
The following bugs should be fixed:
All files will be uploaded to the forum directory, not to a separate directory within the forum directory.
prefs.php is now known as diarycpprefs.php
The diary index is now /forum/diarycp.php.
The incorrect file paths (including image paths, navbar paths, etc.) have been resolved.
All MySQL queries now have a table prefix.
Minor template bugs have been corrected, including placing the title tags after $headinclude variable to go along with the XSS issue with Internet Explorer 6 that has been corrected in vBulletin 3.0.8. If you have already installed this hack, you will need to change the following templates to place the $headinclude value before the title tag:
DIARY
diary_editdiary_addowner
diary_editdiary_deleteowner
diary_editdiary_editdiary
diary_newdiary_main
diary_newdiary_ty
diary_queue_main
To upgrade, correct the above templates and delete the /diarycp/ directory, then follow step 2 of the installation guide minus uploading install.php.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally Posted by Andrew111888
Did you set $prefs['parentid'] to the forum you wanted to be the parent in prefs.php?
You may have done this...
Diaries (category, id 140)
-- Diaries (forum id 141)
---- Diary 1 (subforum of Diaries forum, id 142)
I just did more tests and everytime I add a new forum the parentid gets set to 142. It looks to me like either the pref.php is not being used or you have hard coded 142 into your code.
This is from my pref.php
// Set the ParentID of the forum that your diaries will be a child of
@Hoffi: You're welcome to attempt to implement it . If you do succeed and release it as an add-on, please tell me so that I can include the add-on link in my readme.html file .
@webspider: Indeed, when I was testing my code I left 142 hardcoded in queue.php and forgot to updated. I have since updated queue with the proper variable as well as tested it and it appears to be working fine; I have attached queue.php to this post for you to download . Here's to hoping you have no more bugs from my hack! :P
To everyone that has installed this hack already:
1) Please download queue.php from this post and upload it over your current one to fix a bug.
2) If your logo or navbits icons are not showing up properly, please do this (from the updated readme.html:
@Hoffi: You're welcome to attempt to implement it . If you do succeed and release it as an add-on, please tell me so that I can include the add-on link in my readme.html file .
@webspider: Indeed, when I was testing my code I left 142 hardcoded in queue.php and forgot to updated. I have since updated queue with the proper variable as well as tested it and it appears to be working fine; I have attached queue.php to this post for you to download . Here's to hoping you have no more bugs from my hack! :P
To everyone that has installed this hack already:
1) Please download queue.php from this post and upload it over your current one to fix a bug.
2) If your logo or navbits icons are not showing up properly, please do this (from the updated readme.html:
In Admin CP -> Styles & Templates -> Style Manager -> (desired style) StyleVars, you will need to hardcode the URL for "Title Image" and "Miscellaneous Images Folder". Example: instead of /images/misc it would be http://www.siteurl.com/yourforums/images/misc to make sure your logo and navbit images will work correctly.
To everyone that has yet to install this hack:
Original zip updated .
I'll give this a try next week when I have more time. I still don't think that using the full URL will solve the path problem but I'll give it a try. Thanks for your effort.
I'll give this a try next week when I have more time. I still don't think that using the full URL will solve the path problem but I'll give it a try. Thanks for your effort.
I changed my image paths and they now show correctly however the link paths are all still incorrect as stated earlier. If I hard code the index.php, newdiary.php etc with the correct path it works fine. I'm sure there is a var that can be used to correct this for all users.
$navbits = array("/board/diarycp/index.php"
I did a test forum today and now the parentid is correct. THANKS
I tried to fix the URL error that you needed to hardcode by putting $vboptions['bburl'] in the navbit link, but on my installation that made it http://www.blah.net/forum/http://www...rycp/index.php but I will keep looking for a solution.
Just put a link anywhere on your site to $vboptions[bburl]/diarycp/ and that should work for others to access it.
I tried to fix the URL error that you needed to hardcode by putting $vboptions['bburl'] in the navbit link, but on my installation that made it http://www.blah.net/forum/http://www...rycp/index.php but I will keep looking for a solution.
You need to define somewhere where the board root is. Changing the $navbits arrayto $navbits = array("index.php" => fixed part of the problem. But the the main nav link does not bring me back to the board root.