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)

Wired1 09-15-2006 09:05 PM

Quote:

Originally Posted by Abe1
Look at my sig. I have a hack that lets you edit the "new thread" link.

sorry, I'm not seeing the link you mean.

Wongod 09-15-2006 09:07 PM

I just installed the hack but the attachments part of the form is failing. I found that it's failing this check: if ($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostattachment'] AND $vbulletin->userinfo['userid'] AND !empty($vbulletin->userinfo['attachmentextensions']))

What do I need to configure in order to make that statement true? I am able to post attachments in a regular "newthread" so it seems that it should be configured correctly as far as that goes...

Abe1 09-15-2006 09:34 PM

Quote:

Originally Posted by Wired1
sorry, I'm not seeing the link you mean.

https://vborg.vbsupport.ru/showthread.php?t=102923

Abe1 09-15-2006 09:34 PM

Quote:

Originally Posted by Wongod
I just installed the hack but the attachments part of the form is failing. I found that it's failing this check: if ($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostattachment'] AND $vbulletin->userinfo['userid'] AND !empty($vbulletin->userinfo['attachmentextensions']))

What do I need to configure in order to make that statement true? I am able to post attachments in a regular "newthread" so it seems that it should be configured correctly as far as that goes...

I'll have a look at the code.

Wired1 09-15-2006 09:35 PM

I see it now (was only looking under vB 3.6), however it's not what I'm looking for. I definitely want users to create threads and posts, but then once an admin has approved it (just a verbal OK in the thread, no need to check it in any fashion), they can hit a button and it will open a new form up and preferably pre-fill it out with the post or thread ID. There's some other stuff I'd want to pre-load, but that's something I'll have to modify on my own.

camuca 09-16-2006 03:50 AM

Hi, this is a very good work.

How would I implement a drop down box that would show list of the forums and allow user to post the form to.

//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.
$formforumid = "5";

It will be something like $formforumid = Dropdown code that shows all the forums which are then converted to ids, I guess

Any suggestions how this can be implemented

Wired1 09-16-2006 04:59 AM

Quote:

Originally Posted by FSFwebmaster
Can anyone help me out wit this code?

May want to be more specific as to what you actually need help with.

bandare 09-16-2006 11:24 AM

is there a demo anywhere to see please?

Spinball 09-16-2006 04:24 PM

Quote:

Originally Posted by Abe1
There are 2 template edits to make the attachements work. Make sure you did both. You can also test it by clicking 'preview'.

I put the attachment text into the form template.
Which other template, please? (I looked at formanswers but there is no sign of the attachment in there).

FSFwebmaster 09-16-2006 06:09 PM

need help adding more questions to the default number of questions?


All times are GMT. The time now is 04:44 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.01823 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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