Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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
  #32  
Old 07-27-2005, 08:49 AM
MikaK's Avatar
MikaK MikaK is offline
 
Join Date: Nov 2004
Location: Helsinki, Finland
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I?ve also encountered a few "bugs". I have installed this on a vB 3.0.3 board.

Quite many tableprefixes are still needed, otherwise creating sql errors. Hardcoded those to my best skill...

Navbar is messed when viewing any pages in diarycp
  • popup functionalities are gone
  • any links point to .../forum/diarycp/... instead of .../forum/...
Style problem: gradients I use for "tcat" and "thead" doesn?t show properly. I have the images/misc and others hardcoded as advised.

Last Post threads listed at index.php point to .../forumshowthread.php?t=12221 instead of .../forum/showthread.php?t=12221

About changing user permissions:
I think, I Got this one nailed. For anyone interested: I Changed editdiary.php row 71 and queue.php row 67 to values 1048831 (the last value added). This adds the capability to moderate posts and attachments.

Regs,
-M
Reply With Quote
  #33  
Old 07-28-2005, 09:52 PM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think tonight or tomorrow I'm going to rewrite this so that it stays in the /forum/ directory to avoid all of these directory issues.

As far as I know all queries use prefix tables as this is the first bug of this nature, but I will review this as well when I rewrite the hack a bit so that it goes in /forum/.

I will update my zip either today or tomorrow as mentioned with the "new" hack.
Reply With Quote
  #34  
Old 07-28-2005, 11:32 PM
f-a_org's Avatar
f-a_org f-a_org is offline
 
Join Date: Nov 2002
Location: FL
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Am I the only person, who has blank pages when I visit them ?
I just installed, them and all the diarycp pages are blank...
Reply With Quote
  #35  
Old 07-29-2005, 02:23 AM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.0.1 of the Diary CP / Owned Forums is out that resolves all known bugs as well as addresses the 3.0.8 XSS issue in IE6.

It is highly recommended that you upgrade. Please see the original post for more details, changes, bug fixes, and the new zip.
Reply With Quote
  #36  
Old 07-29-2005, 06:03 AM
MikaK's Avatar
MikaK MikaK is offline
 
Join Date: Nov 2004
Location: Helsinki, Finland
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andrew111888
Version 1.0.1 of the Diary CP / Owned Forums is out that resolves all known bugs as well as addresses the 3.0.8 XSS issue in IE6.

It is highly recommended that you upgrade. Please see the original post for more details, changes, bug fixes, and the new zip.
Thanks forthe update,Andrew -and thanks for crediting me in your new install instructions!

Unfortunately here are still some issues I have encountered with my vB 303 installation:

TABLE PREFIXES I STILL NEEDED TO ADD
diarycp.php row 38 needed checking
My working row with my added scll prefixes looks like

$modsinfo = $DB_site->query("SELECT DISTINCT scllmoderator.userid, sclluser.username FROM " . TABLE_PREFIX . "moderator, sclluser WHERE scllmoderator.userid = sclluser.userid AND scllmoderator.forumid = ".$ownerdata['forumid']."");

Note: I haven?t tested this all too extensively, so there might be more. Further, I am not sure whether the above is totally correct. It works for my board.

TEMPLATE BUGFIX diary_main_forumlist
needs a / at ...$vboptions[bburl]showthread.php... around row 10

<div class="smallfont"><a href="$vboptions[bburl]/showthread.php?t=$forumdata[lastthreadid]"><strong>$forumdata[lastthread]</strong></a></div>

Note: I haven?t tested this all too extensively, so there might be more. Here again:Works for me.

NOT YET FIXED
DIARY CONTROL PANEL diarycp.php
Lists only the last blog added by a member.

Regs,
-Mika
Reply With Quote
  #37  
Old 07-29-2005, 05:54 PM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe I have now resolved all of those bugs.

Please download the attached files to correct the diarycp.php and editdiary.php table prefix issues, as well as to fix only the latest diary being displayed on diarycp.php.

Main zip updated.
Reply With Quote
  #38  
Old 07-29-2005, 06:01 PM
webspider webspider is offline
 
Join Date: Jun 2003
Location: Canada
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andrew111888
I believe I have now resolved all of those bugs.

Please download the attached files to correct the diarycp.php and editdiary.php table prefix issues, as well as to fix only the latest diary being displayed on diarycp.php.

Main zip updated.
Are you going to be coding this hack for 3.5? There are so many improvements I have found myself getting ready to flip over to the new board.
Reply With Quote
  #39  
Old 07-29-2005, 08:41 PM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As soon as I can get my 3.5 test board up and running it shouldn't be too hard to port over.

But alas, I'm having a cookie problem on my 3.5 board (most likely from my main 3.0.5 board) and I've been too busy to look into it.
Reply With Quote
  #40  
Old 07-29-2005, 09:29 PM
webspider webspider is offline
 
Join Date: Jun 2003
Location: Canada
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had a cookie problem as well, ended up using IE to access one and Firefox to access the other.
Reply With Quote
  #41  
Old 07-30-2005, 04:34 AM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mine does this:

"Please log in."

I log in.

"Thank you for logging in."

"Please log in."

I log in.

"Thank you for logging in."

and so fourth.
Reply With Quote
Reply

Thread Tools

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 04:08 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.04601 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
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
  • (2)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
  • (4)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_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