vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Owned Forums / Diaries for your members! (https://vborg.vbsupport.ru/showthread.php?t=92546)

Andrew111888 07-19-2005 10:00 PM

Owned Forums / Diaries for your members!
 
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.

Andrew111888 07-20-2005 07:31 AM

Screens:

Picture-1.jpg - DCP index

Picture-2.jpg - Edit Diary

Picture-3.jpg - Add Owner

Andrew111888 07-20-2005 07:32 AM

Picture-4.jpg - delete owner

Picture-5.jpg - queue for admin

Picture-6.jpg - queue for normal user

yinyang 07-20-2005 11:29 PM

wow, this is really cool. anyway you can make this for vB3.5?

Andrew111888 07-21-2005 02:27 AM

Whoops, found a small bug.

In the template diary_editdiary_addowner, change the following line:

Code:

<div class="smallfont"><a href="$vboptions[bburl]memberlist.php?do=search">Find Member</a></div>
to this (note the /):

Code:

<div class="smallfont"><a href="$vboptions[bburl]/memberlist.php?do=search">Find Member</a></div>
The zip has been updated with this fix :).

And once I install a test 3.5 forum and familiar myself with the structural differences, I will try and write this for that, too :).

Neutral Singh 07-21-2005 04:01 AM

Quote:

And once I install a test 3.5 forum and familiar myself with the structural differences, I will try and write this for that, too .
Oh I definitely want this in vB3.5.0 !!

Andrew111888 07-21-2005 05:08 AM

Depending on if I get my 3.5 test board up tomorrow, I'll try and port it then.

It requires very few changes to my files, no hooks/plugins, and as far as i know no template changes :).

webspider 07-21-2005 09:07 PM

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

Andrew111888 07-22-2005 02:53 AM

Can you explain where the path error is and what the problems you are having are (in detail)?

Skyline_GT 07-22-2005 05:02 AM

I am not clear what this do..
So it is like members can create sub forum for themselves?


All times are GMT. The time now is 03:19 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.01209 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete