The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Auto-Create Discussion Thread (when posting new thread) Details »» | |||||||||||||||||||||||||||
Auto-Create Discussion Thread (when posting new thread)
Developer Last Online: Jun 2009
___________
If you installed before 01/28/05, you should search through the added code to newthread.php and replace $vboptions[homeurl] with $vboptions[bburl]. There is one occurrence of this. ??????????? Discussion Threads Requested Here Estimated Time: ~5 minutes [Any questions? This thread only please ] What is it: Adds a button in the new thread creation that will auto-create a discussion thread. Useful for posting in a forum that is locked to normal users and gives them a place to discuss it. Options: Global ON/OFF, Start Forum, End Forum, Allow Discussion Thread creation by usergroup or user, text to addon to the original thread, text to add before or after Discussion Thread title, and starting text in the new Discussion Thread. (SEE IMAGES) Images: Possible Changes: using the vboptions instead of a seperate (kinda sloppy) page to set the values. I dislike vboptions, but anyone can feel free to do this! Also, multiple usergroups and users instead of just a single (not too hard) ANYONE IS FREE TO CHANGE THIS OR MAKE IT BETTER! // ###### INSTALLATION ###### Currently, I'm storing the data in a row on the adminutil table (it's kinda empty). You can run the attached file (discussion_maker_install.php) from your admin directory, or just run this vB query for initial setup: [sql]$DB_site->query("INSERT INTO ".TABLE_PREFIX."adminutil('title', 'text') VALUES ('discussion_maker', '0~0~0~999999~[Discuss this Announcement]~1~Discussion~unchecked~Please feel free to discuss! ')");[/sql] OR this SQL query (not tested) [sql]INSERT INTO YOUR_DB.adminutil ('title', 'text') VALUES ('discussion_maker', '0~0~0~999999~[Discuss this Announcement]~1~Discussion~unchecked~Please feel free to discuss! '); [/sql] // ###### SETUP ###### Place the attached file (discussion_maker.php) into your admin directory. ____________________ OPTIONAL: If you want a link to it from your admin panel; in your admin index.php find: PHP Code:
PHP Code:
In your newthread template, add "$discussion_maker" (without quotes) wherever you want it to show up in the template. (as long as it's inside the <form> tags) ???????????????????? In newthread.php, find: PHP Code:
PHP Code:
DONE! Make sure you configure the setup in discussion_maker.php. Tell me if there's any problems; it's possible I missed something in the instructions. This hack has been tested and does work~ Use at your own risk! (I'm not responsible, etc etc) Show Your Support
|
Comments |
#2
|
|||
|
|||
If you want to change what the button says, there are two things you need to change in the newthread.php (should probably have been one, but oh well ^^)
Find: PHP Code:
PHP Code:
Find: PHP Code:
???????????????????? If you don't want to add that large amount of code to your newthread.php, you can add this instead instead: PHP Code:
|
#3
|
|||
|
|||
hum.. this hack is amazing for me... THANKS Tekton for the idea !!
|
#4
|
||||
|
||||
Hi Tekton,
pretty cool. Thanks for writing a hack out of my suggestion. This thing is not clear to me: Quote:
I am looking forward to see your pseudo-UserCP and the HostingCP. I'll write you a PM about the last thing. Thanks man! |
#5
|
|||
|
|||
Hi. Basically I mean placing the last bit of code (the really long part) into a seperate php file and then just including it into the newthread.php with the 'require_once' function mentioned above. The code in the functions_discussion_maker.php is the same as listed in that last one (only change is that it's wrapped in php tags - <?php ?)
|
#6
|
||||
|
||||
Very great hack. Its working fine. Thanks man
|
#7
|
||||
|
||||
Hi,
there is a small bug in PHP Code:
PHP Code:
http://www.url.comshowthread.php There is a / missing and also the forum directory. For example: My board must have this link: http://www.url.com/forum/showthread.php I changed this: PHP Code:
PHP Code:
If another user has installed his board in http://www.url.com/board change the above /forum/ to /board/ |
#8
|
|||
|
|||
Ah, yeah sorry we use the base directory for all of our forums~ ^^;;
Replace $vboptions[homeurl] with $vboptions[bburl] |
#9
|
|||
|
|||
Quote:
maybe because of 3.0.7 ???? |
#10
|
||||
|
||||
Tekton could you create this also for vB 3.5?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|