vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Form Hack (https://vborg.vbsupport.ru/showthread.php?t=126676)

rjordan 09-10-2007 07:33 PM

At the risk of sounding like an idiot, I have to ask this. To have multiple forms, you have to change the XML, rename it, and upload it? Is that correct? It is somewhat confusing the way it is described and I could not find a solid answer through the thread.

xandizitxu 09-11-2007 02:38 AM

Got it working! Sorry for the trouble thanks!

Deepdog009 09-11-2007 05:19 PM

PHP Code:

////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE WHETHER YOU WANT FORM TO BE POSTED IN A NEW THREAD, NEW POLL, REPLY TO EXISITING THREAD, PMed OR EMAILED
///////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum "1";

//FORUM TO POST NEW THREAD IN
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
if ($dropdownanswer2 == "Title here")
        {
            
$formforumid "11";
        }
if (
$dropdownanswer2 == "Title here 1")
        {
            
$formforumid "5";
        }
if (
$dropdownanswer2 == "Title here 2")
        {
            
$formforumid "17";
        }
if (
$dropdownanswer2 == "Title here 3")
        {
            
$formforumid "9";
        }
if (
$dropdownanswer2 == "Title here 4")
        {
            
$formforumid "32";
        }

//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll "0";
$polloption[1] = "Yes";
$polloption[2] = "No";
$polloption[3] = "Maybe";

//Make poll public - 1 = yes, 0 = no
$pollpublic "0";

//////////////////////////////////////////////////////////////////////////////////////////////////// 


POSTING 2 FORUMS ??????????????????????????????????

Many ways, but this may help U

xanthide 09-15-2007 12:25 PM

hey..
i have changed my newthread to
newthread.php?$session[sessionurl]do=form

but now i have a small prob..
what should i change this line to then?
$formforumid = "2";

Deepdog009 09-17-2007 09:57 PM

Quote:

Originally Posted by xanthide (Post 1339454)
hey..
i have changed my newthread to
newthread.php?$session[sessionurl]do=form

but now i have a small prob..
what should i change this line to then?
$formforumid = "2";


Not sure Xanthide,,, Im still learning on the PHP side of things with vBulletin...
Im more of a graphics guy,,, but I've been getting better with java and php,,, thank god...
:D

What are ya trying 2 do???

Ask ABE1

OneEyeSleepy 09-20-2007 06:33 PM

Sorry, I am a new user and already installed this Mod. I read your brief documentation but how do you use it? I can edit the form and save it into a text file, where do I put it into?

vien 09-21-2007 12:06 PM

You guys should be careful with this bug.

This happens with topics which are created by this hack.

When an user chooses option "Instant email notification" in "Default Thread Subscription Mode", then the moderators move those topics (that user subscribed) to moderator areas or somewhere that user can't access, but emails were still sent out to nofify that user about all the replied messages.

Sometimes the administrators and moderators discuss about that user in those topic are created by this hack, he/she also knows everything even he/she can't access to the area where the topics has been moved in.

Please advise.

Thanks.

MoJo Smirnoff 09-23-2007 11:06 PM

can someone please help me...i got the form all done...but i have no submit button. i guess i might have deleted the code on accident.. :o

can some please share the code for the submit button..and tell me exactly where i deleted it from lol

thanks!

alan92rttt 09-24-2007 01:46 PM

I have this hack working with only one issue.

I can't figure out how to make it only allow posts from selected user groups.

I tried modifying
PHP Code:

 if (!in_array($vbulletin->userinfo['usergroupid'], array(22))) print_no_permission(); 

I also tried adding
PHP Code:

$forumperms fetch_permissions($foruminfo['10']);
if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canpost']))
{
     
print_no_permission();


The 1st had no effect the second locked everyone out.

Stijndg 09-24-2007 03:07 PM

Good add-on i like it a lot :up:


All times are GMT. The time now is 08:12 AM.

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.01646 seconds
  • Memory Usage 1,754KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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