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

Reply
 
Thread Tools
vB User Add Forums 1.0 Details »»
vB User Add Forums 1.0
Version: 1.00, by wolfe wolfe is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 06-08-2003 Last Update: Never Installs: 16
Supported
 

CONSTRUCTION STOPPED READY FOR vB3.0.0 RC1 HACK RELEASE.


Features Going To Be In The vB3 Version Of This Hack.

Administrators Settings:
  • On / Off Master Switch. (yes / no)
  • Inactive Reason. (textarea)
  • Allow Usage By Usergroupid. (input box)
  • Disallow Usage By Userid. (input box)
  • Individual Allowence Of Forum Settings. (yes / no's)
  • Allow Forum Creator To Be Moderator (yes / no)
  • Show Forum Added In User Profile (yes / no)
  • Make Forum Under Chosen Categorie (yes / no)
  • If Above Is YES Categorie ID (input box)
Plenty more to come but thats all for now still alot to add..

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 06-10-2003, 09:31 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i am working on implementing all of the above will get back to you all
Reply With Quote
  #43  
Old 06-10-2003, 09:43 PM
narulure's Avatar
narulure narulure is offline
 
Join Date: Jan 2003
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

O_O this hack would take up lots of database......if you have lots of members
Reply With Quote
  #44  
Old 06-10-2003, 10:39 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well upto now i have sorted it so the query is somethign like this

PHP Code:

SELECT forumid
,title,allowposting
FROM forum
WHERE forumid
='$parforumid'
AND title='$parforumtitle' 
$parforumid = (user selected forumid in the admin options)
$parforumtitle = (user selected forum title in the admin options)

i have also sorted the store intergration out here it is

First run this query

PHP Code:

INSERT INTO 
`store` (`id`,`action`,`title`,`costs`,`sold`,`imgurl`,`description`,`ok`,`quantity`) VALUES (NULL,'userforum','Buy a Create your own forum pass.','15000','0','images/buyforum.gif','With this action you can buy a create your own forum pass','Y','0'); 

then in store.php find:

PHP Code:

?>
 
and above add the following

PHP Code:

// ###################### User Buy & Create Own Forum #######################
if ($action=="userforum") {

  
$stores $DB_site->query_first("SELECT * FROM store WHERE action='userforum'");
  
$storeid $stores[id];
  
$cost $stores[costs];
  
$need $points $cost;
  
  
$users $DB_site->query_first("SELECT userforum FROM user WHERE userid='$bbuserinfo[userid]'");
  
$forums $users[userforum];
  
$forumsallow $users[userforum]+1;

if (
$forums==1) { 
   
$unote="Forum"
} else { 
   
$unote="Forum's"


if (
$forumsallow==1) { 
  
$anote="Forum"
} else { 
  
$anote="Forum's";
}  
  
if (
$cost>$points) {
  eval(
"standarderror(\"".gettemplate('store_error')."\");");
}

  eval(
"dooutput(\"".gettemplate("store_buyuserforum_verify")."\");");
}

// ###################### Start User Buy & Create Own Forum #######################
if ($action=="buyuserforum") {

if (
$cost>$points) {
  eval(
"standarderror(\"".gettemplate('store_error')."\");");
} else {

  
$forumsbuy=$DB_site->query("UPDATE user SET storep=storep-$cost WHERE userid='$bbuserinfo[userid]'");
  
$changestoresold=$DB_site->query("UPDATE store SET sold=sold+1 WHERE id=$storeid");
  
$changeuserforums=$DB_site->query("UPDATE user SET userforum=userforum+1 WHERE userid='$bbuserinfo[userid]'");

  
$moneycheck $DB_site->query_first("SELECT storep FROM user WHERE userid='$bbuserinfo[userid]'");
  
$money $moneycheck[storep];

eval(
"dooutput(\"".gettemplate("store_buyuserforum_brought")."\");");
  }

then add the following templates in the txt file


NOTE: You will have to have the new version of this hack installed to get the full benifits of this store intergration.
Reply With Quote
  #45  
Old 06-11-2003, 11:46 AM
The General's Avatar
The General The General is offline
 
Join Date: Aug 2002
Location: Netherlands
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool hack!

Is it also possible for the creator of the forum to make it a private forum AND give access to individual users?

I guess that's too much to ask, but hey! I can always try. =D
Reply With Quote
  #46  
Old 06-11-2003, 02:01 PM
supernut supernut is offline
 
Join Date: Nov 2001
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i hope its converted for version 3vb, i will install it then, i cannot wait for all the options ot be added and converted for 3
Reply With Quote
  #47  
Old 06-12-2003, 11:27 AM
supernut supernut is offline
 
Join Date: Nov 2001
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now we know that VB3 beta is out friday, any idea if you will convert it sooner then later to run on 3 ?
Reply With Quote
  #48  
Old 06-13-2003, 06:11 AM
csidlernet csidlernet is offline
 
Join Date: Apr 2003
Location: sydney
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is one to be installed :P
Reply With Quote
  #49  
Old 06-13-2003, 01:56 PM
kaotic's Avatar
kaotic kaotic is offline
 
Join Date: Mar 2003
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, found a small problem. The second query = bad.

Quote:
ALTER TABLE `forums` ADD `addedby` char( 50 ) NOT NULL
Should be changed to:

Quote:
ALTER TABLE `forum` ADD `addedby` char( 50 ) NOT NULL
Reply With Quote
  #50  
Old 06-13-2003, 02:11 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx d00d fixed updated zip
Reply With Quote
  #51  
Old 06-13-2003, 02:13 PM
kaotic's Avatar
kaotic kaotic is offline
 
Join Date: Mar 2003
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One more problem. With the store integration update, I get the following error when I try to purchase a forum (the very first screen after clicking the buy button):
Quote:
Database error in vBulletin 2.3.0:

Invalid SQL: SELECT userforum FROM user WHERE userid='102'
mysql error: Unknown column 'userforum' in 'field list'

mysql error number: 1054

Date: Friday 13th of June 2003 08:12:29 AM
Script: http://www.mykewlsecretsite.com/foru...tion=userforum
Referer: http://forums.mykewlsecretsite.com/store.php
Notes: I did run the query, I edited store.php, and I'm running the latest version of this hack.

I'm sure I can find a solution on my own, I just thought you should know.
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 09:04 PM.


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.04583 seconds
  • Memory Usage 2,329KB
  • 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
  • (4)bbcode_php
  • (3)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