vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB User Add Forums 1.0 (https://vborg.vbsupport.ru/showthread.php?t=54050)

wolfe 06-10-2003 09:31 PM

i am working on implementing all of the above will get back to you all

narulure 06-10-2003 09:43 PM

O_O this hack would take up lots of database......if you have lots of members :p

wolfe 06-10-2003 10:39 PM

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.

The General 06-11-2003 11:46 AM

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

supernut 06-11-2003 02:01 PM

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

supernut 06-12-2003 11:27 AM

now we know that VB3 beta is out friday, any idea if you will convert it sooner then later to run on 3 ?

csidlernet 06-13-2003 06:11 AM

This is one to be installed :P

kaotic 06-13-2003 01:56 PM

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

wolfe 06-13-2003 02:11 PM

thanx d00d fixed updated zip :D

kaotic 06-13-2003 02:13 PM

One more problem. :D 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.

kaotic 06-13-2003 06:50 PM

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. :p 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?

kaotic 06-13-2003 08:03 PM

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. :D

Hobbes 06-14-2003 06:47 PM

is it just me or is the zip wrong.....:s

sebastian406 06-15-2003 12:47 AM

No, it's not you. Hope he fixes it soon.

wolfe 06-21-2003 12:03 AM

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 ;)

M.C. 07-25-2003 11:06 PM

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

wolfe 07-26-2003 12:43 AM

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!

M.C. 07-26-2003 01:31 AM

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

keep cool

Ravish 09-08-2003 05:29 PM

Attachment: hit counter plus.zip
Its hit counter hack. Where can i download the vB User Add Forums?

TheComputerGuy 09-16-2003 03:48 PM

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.

wolfe 09-16-2003 08:09 PM

Quote:

Originally Posted by TheComputerGuy
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.

d00d i was really planning on making for vB 3 only with loads of new admin settings etc because of the advanced code on vb3 and the if conditions in the templates would make it alot better...

Once again Sorry!

dniMTheory 09-16-2003 09:38 PM

I had this hack made for me a long time ago. It worked wth lesane's store hack.

All the bought forums go under one catergory with the buyer as the moderator. They dont get to select styles or anything like that. The style is the users default. No HTML is allowed.

wolfe 09-16-2003 09:55 PM

Quote:

Originally Posted by dniMTheory
I had this hack made for me a long time ago. It worked wth lesane's store hack.

All the bought forums go under one catergory with the buyer as the moderator. They dont get to select styles or anything like that. The style is the users default. No HTML is allowed.

d00d if you had this hack made for you ages ago i never saw it released so i made one when it was requested as of all new hacks there was many bugs but not long after vB 3 came out so i moved onto the new code which is alot better and had alot of new features so now i can make this hack better than ever with the option to add a forum in your usercp and it will only allow you to add one forum and or as many as you select in the admin options. there will be loads of options in the admin cp settings where you will be able to have FULL control of the hack... when i get some time i will start work on it and i will give it to a selected few from this thread to beta test it for me which i will also be doing and then i will fix all bugs and then and only then will i release it and when the Store hack is converted over i will then make an addon for the new Store hack.

if you want to suggest any other features you want me to add to the vB 3 version of this hack then please PM me or reply to this thread.

Island Ace 09-20-2003 11:44 AM

We would like to help test this as well.

Thanks for working on this.

IA

M.C. 09-22-2003 09:42 AM

waiting with patient

MindTrix 11-22-2003 01:23 PM

**twiddles fingers"" Meh wants vb2 version **crys** :p

fengshui-123 12-06-2003 09:49 AM

Quote:

Originally Posted by wolfe
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..

Hi, I need this hack on vb3.0. What do you mean by
"CONSTRUCTION STOPPED READY FOR vB3.0.0 RC1 HACK RELEASE"?
Where can I get the mod for vb3.0?

fengshui-123 12-06-2003 09:51 AM

sorry, deleted double entry.

MindTrix 12-06-2003 09:56 AM

Basically the Author of this hack has stopped working on this until vB3 RC1 is released.

So as soon as RC1 becomes available the author will continue working on it, and then it will be released for RC1

fengshui-123 12-06-2003 10:02 AM

Thanks MindTrix. Hope it will come out "tomorrow".

wolfe 01-03-2004 12:26 AM

right i have started work on this hack again and i will be adding all the Text needed into the phase table so it will all be hard coded text and it will have options for everything on this hack where possible it will be finished in 2-3 Weeks @ the latest maybe on Sunday when i aint doing nothing i will do most of the work on it like making the templates and adding the phrases and getting the install script correct please bare with me... thanx

Flare 01-13-2004 06:34 PM

Quote:

Originally Posted by wolfe
right i have started work on this hack again and i will be adding all the Text needed into the phase table so it will all be hard coded text and it will have options for everything on this hack where possible it will be finished in 2-3 Weeks @ the latest maybe on Sunday when i aint doing nothing i will do most of the work on it like making the templates and adding the phrases and getting the install script correct please bare with me... thanx

If you need any help with this, let me know...

One request I have is the abilityto limit the number of forums a given usergroup can create per user. IE - if you belong to a user group that can create forums, each user can create X number of forums.

Additionally, I hope this is as modular as possible. I really wish there was a robust plugin system for vb3 :( Hacking and re-hacking the vb files themselves gets pretty old.

MilleniumClock 01-14-2004 01:26 AM

wtf, where is the ZIP Download file for the vb 2 version, i cant find it in this thread anywhere :-/ ????

supernut 02-23-2004 11:12 AM

Quote:

Originally Posted by wolfe
right i have started work on this hack again and i will be adding all the Text needed into the phase table so it will all be hard coded text and it will have options for everything on this hack where possible it will be finished in 2-3 Weeks @ the latest maybe on Sunday when i aint doing nothing i will do most of the work on it like making the templates and adding the phrases and getting the install script correct please bare with me... thanx


any news on this Hack and how long it may be before its available to us ?

trainer 03-25-2004 02:39 PM

any updates on this?

wolfe 03-25-2004 02:51 PM

well i am about 3 quaters through it and i don't see any reason why i should release it now i see a hack release vb hosts hack where people can add forums etc and modify them thats basicly my hack... where users can add edit remove there own forum under a certain cat.

supernut 03-25-2004 04:42 PM

i wish, its been a month since my last post asking for an update, i hope it soon

wolfe 03-25-2004 08:46 PM

did you read my post carfully and closely ?

trainer 03-25-2004 11:49 PM

Quote:

Originally Posted by wolfe
did you read my post carfully and closely ?


it doesn't look like that other hack si going forward

supernut 06-07-2004 06:34 PM

as VBHosting was banned and your one was released without a problem for VB2, will you be converting it to VB3 ?

i really would like to offer my members the option to create and moderate there own Forums without me having to manually create them ?


All times are GMT. The time now is 07:49 PM.

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.01398 seconds
  • Memory Usage 1,858KB
  • 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
  • (4)bbcode_php_printable
  • (11)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
  • (40)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