Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Owned Forums / Diaries for your members! Details »»
Owned Forums / Diaries for your members!
Version: 1.0.1, by Andrew111888 Andrew111888 is offline
Developer Last Online: Apr 2011 Show Printable Version Email this Page

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.

Comments
  #12  
Old 07-22-2005, 10:32 AM
webspider webspider is offline
 
Join Date: Jun 2003
Location: Canada
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webspider
I'm getting a small path error. The nav at the top left is off of wack. Any idea how to fix that? Further tesing has more problems. I had to look at my VB version and I'm using 3.0.7 and this hack you wrote for 3.0.5 so I'm assuming that is where the problem lies.

Go Back MyForums > Diary Control Panel
Reload this Page
Sure
1) The path error; when I open e.g. /diarycp/newdiary.php instead of seeing the file folder and forum name top left I see "Go Back myForum > Diary Control Panel Reload this Page New Diary and no image. When I click on those links I get the path /board/diarycp/diarycp/index.php instead of /board/diarycp/index.php.

2) I did a test diary and while it did post to the forums table the parentid was wrong. I'm going to try this again today.
Reply With Quote
  #13  
Old 07-22-2005, 03:40 PM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will take a look! It Seems that this is a Heck I planned a while ago, but never Coded it.
Reply With Quote
  #14  
Old 07-22-2005, 04:32 PM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webspider
Sure
1) The path error; when I open e.g. /diarycp/newdiary.php instead of seeing the file folder and forum name top left I see "Go Back myForum > Diary Control Panel Reload this Page New Diary and no image. When I click on those links I get the path /board/diarycp/diarycp/index.php instead of /board/diarycp/index.php.

2) I did a test diary and while it did post to the forums table the parentid was wrong. I'm going to try this again today.
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)

in which case diaries (forum) is the parent, so $prefs['parentid'] should be set to 141. This is how mine are set up anyway.

Can you screenshot this problem? As yet, I have been unable to replicate in 3.0.5... it works fine for me.

And yes Skyline_GT, they can basically create their own forums. The readme says what the permissions are set to.
Reply With Quote
  #15  
Old 07-22-2005, 04:44 PM
webspider webspider is offline
 
Join Date: Jun 2003
Location: Canada
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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)

in which case diaries (forum) is the parent, so $prefs['parentid'] should be set to 141. This is how mine are set up anyway.

Can you screenshot this problem? As yet, I have been unable to replicate in 3.0.5... it works fine for me.
My Diary category is 36 and sub would run 37, 38 etc. Are you saying that you must have
1) category
2) forum
3) diaries off forum?

Or can I have diaries off the category?
Reply With Quote
  #16  
Old 07-22-2005, 08:20 PM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Du you have an Idea how I the "diary" Owner can Add Users that can use this Forum, without being Owner (Mod)?

The optimum would be, if a Secondary Usergroup could be added with specific Rights and the Diary Owner is the Usergroupleader.
Reply With Quote
  #17  
Old 07-22-2005, 08:47 PM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You mean that only the original owner can add new users to it?

@webspider: try it the way I have mine set up (Diary, Category, Diary Forum, Diaries are sub-forum of Diary Forum) and see if the problem persists.

Also, the reason it says "Go Back" etc is because you don't have the two navimages uploaded, so it's showing the alternate text for them.
Reply With Quote
  #18  
Old 07-22-2005, 09:37 PM
webspider webspider is offline
 
Join Date: Jun 2003
Location: Canada
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andrew111888
You mean that only the original owner can add new users to it?

@webspider: try it the way I have mine set up (Diary, Category, Diary Forum, Diaries are sub-forum of Diary Forum) and see if the problem persists.

Also, the reason it says "Go Back" etc is because you don't have the two navimages uploaded, so it's showing the alternate text for them.
The image paths are wrong. The way you have it coded you need two image folders plus the path to the Control Panel etc are wrong. Its simply you're not using the default VB root.

/board/diarycp/diarycp/index.php
/board/diarycp/images/misc/navbits_start.gif
Reply With Quote
  #19  
Old 07-23-2005, 02:22 AM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, I figured out why mine doesn't have that problem.

In the StyleVars section of your Style Options, all of my paths include the full URL to my forum (http://www.boardurl.com/forum/images/). That should fix it.
Reply With Quote
  #20  
Old 07-23-2005, 06:24 AM
Skyline_GT Skyline_GT is offline
 
Join Date: May 2003
Location: Vancouver, BC
Posts: 482
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

answer my question??
Reply With Quote
  #21  
Old 07-23-2005, 06:49 AM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andrew111888
You mean that only the original owner can add new users to it?
I mean that tehre exits two kind of users who can use this Form. The owner(s) and Invited Users.

Let my try to explain for what I want to use it.
Im my Roleplaying Board Users can start Board-RPG's. Till now I always create Usergroups, Forums and rights by Hand, Game for Game. And we now have about 30 (active) Games and about one or two new a Month.

So this is a great beginning for a Hack I thought about.

A Place where a User can ask for a Game.
If I ack this, a board will be created with the User as a Mod in there. The Usergroup of this User (I call hin Gamemaster) changed to a special Gamemaster-Group. (Secondary group).

Now there must be a System that the Gamemaster can add Players to this Game, but the Players should not have Mod-Rights in this Forum. If I add a second Owner with your Hack, the Owner gets Mod-Status. So, a Solution could be, that a Usergroup will be created with the Forum. I'll see this Weekend what is neccesary for this and I will try to implement this, if it is OK for you.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05384 seconds
  • Memory Usage 2,317KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete