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

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
  #52  
Old 06-13-2003, 06:50 PM
kaotic's Avatar
kaotic kaotic is offline
 
Join Date: Mar 2003
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for posting again. This time, I'm sharing my store integration fix for your hack:

Instead of...
Quote:
// ###################### 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")."\");");
}
}
I use...
Quote:
// ###################### 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 forums 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 forums=forums+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")."\");");
}
}
... and it works perfectly. Great hack, wolfe!

Edit: Bahh!! Found another problem. For some reason, users can go ahead and fill out the form and create a subforum, whether they did or did not purchase the pass. Any ideas?
Reply With Quote
  #53  
Old 06-13-2003, 08:03 PM
kaotic's Avatar
kaotic kaotic is offline
 
Join Date: Mar 2003
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright then, I helped myself to a solution. I put all of the info in the "makeforum" template into the "store_buyuserforum_brought" and included the code in your php file in the store.php file.
Reply With Quote
  #54  
Old 06-14-2003, 06:47 PM
Hobbes's Avatar
Hobbes Hobbes is offline
 
Join Date: Dec 2002
Location: Cali
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it just me or is the zip wrong.....:s
Reply With Quote
  #55  
Old 06-15-2003, 12:47 AM
sebastian406 sebastian406 is offline
 
Join Date: Jan 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, it's not you. Hope he fixes it soon.
Reply With Quote
  #56  
Old 06-21-2003, 12:03 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i will be fixing this very soon sorry for the long wait but i have been very busy getting to terms with vB 3.0 code lol and making hacks for it
Reply With Quote
  #57  
Old 07-25-2003, 11:06 PM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool! that what i was looking for few days!

can possible in first post write all features that hack does!

If it not done, i want give you some ideas (may be some of them already made, but... ):

https://vborg.vbsupport.ru/showthrea...threadid=55494
Reply With Quote
  #58  
Old 07-26-2003, 12:43 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when i am allowed to release vB 3 hacks i will convert it to vb3.

untill then no more work will be done on this hack SORRY!
Reply With Quote
  #59  
Old 07-26-2003, 01:31 AM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wolf... i hope RC will be soon very useful hack - for me at least

keep cool
Reply With Quote
  #60  
Old 09-08-2003, 05:29 PM
Ravish Ravish is offline
 
Join Date: Sep 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Attachment: hit counter plus.zip
Its hit counter hack. Where can i download the vB User Add Forums?
Reply With Quote
  #61  
Old 09-16-2003, 03:48 PM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about version 2.3.2?

I would really like to see this completed for that version, or at least what was done. I really would like my users to have the ability to create their own forums.
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 06:22 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.04745 seconds
  • Memory Usage 2,303KB
  • 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