vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forms Hack (https://vborg.vbsupport.ru/showthread.php?t=93970)

Michael_Tree 05-25-2006 02:53 PM

how do i edit the main hook?

Sarcoth 05-26-2006 12:35 PM

I made my own redirect option. It is working just fine and redirects to the proper page. I need it to do a little more though and not quite sure how to do it yet.

Code:

if ($redirectoption == "5")
    {
    $vbulletin->url = '../index.php?' . $vbulletin->session->vars['sessionurl'] . "page=HOME";
    eval(print_standard_redirect('redirect_postthanks'));
    exit();
    }

I tried to play around with the code by adding another "IF...ELSE" statement and that gave me an error. Abe, can you or someone else assist me.

I'm trying to have this do one of two things. If someone provides the correct answer to $answer1, the user will be added to a usergroup with the ID = 14 and then they'll be redirected to the congrats page. If someone provides an incorrect answer, they will be redirected to a "Sorry, try again" page instead.

Thanks for keeping this hack updated. It is definitely one of my favorites.

-Sarcoth

upnorth 05-26-2006 06:37 PM

Does this work with version 3.5.4?

Abe1 05-26-2006 08:19 PM

Quote:

Originally Posted by upnorth
Does this work with version 3.5.4?

Yes.

grecostimpy 05-27-2006 08:24 PM

For some reason my users are receiving subscription emails from the form results thread even though it is in a private forum. How can I prevent this?

I noticed this in the plugin:

Code:

if ($vbulletin->userinfo['autosubscribe'] != -1)
            {
                $newpost['emailupdate'] = $vbulletin->userinfo['autosubscribe'];
            }
            else
            {
                $newpost['emailupdate'] = 9999;
            }

Can I get rid of this? Any thoughts? They really should not be subscribed/notified of these posts.

Thanks

Abe1 05-28-2006 12:53 AM

Quote:

Originally Posted by grecostimpy
For some reason my users are receiving subscription emails from the form results thread even though it is in a private forum. How can I prevent this?

I noticed this in the plugin:

Code:

if ($vbulletin->userinfo['autosubscribe'] != -1)
            {
                $newpost['emailupdate'] = $vbulletin->userinfo['autosubscribe'];
            }
            else
            {
                $newpost['emailupdate'] = 9999;
            }

Can I get rid of this? Any thoughts? They really should not be subscribed/notified of these posts.

Thanks

Delete this whole thing and just leave this:

$newpost['emailupdate'] = 9999;

serhat_kk 05-29-2006 01:15 PM

I'd like to create a thread. But when I submit the form, I obtain the preview screen and the thread isn't created. What could be the problem ?

Abe1 05-29-2006 02:52 PM

Quote:

Originally Posted by serhat_kk
I'd like to create a thread. But when I submit the form, I obtain the preview screen and the thread isn't created. What could be the problem ?

You may have edited the word "Submit".

rylord 05-29-2006 03:52 PM

I am also looking for the option to add an attachment while submitting the form. Hopefully, the creator of this mod will provide us with the answer to this.

I believe, but haven't tested it yet, that instead of having the final input option on the form as:

1. $vbtextquestion = "Please write down a paragraph about how you like this forum.";

and

2. $vbtextexplain = "For example, what makes this forum different from all other forums?";

We might be able to switch that to what the regular forums are using when a forum user submits a regular forum message. I say this because when you click on submit within a forum area, it comes up with the same looking text editor box, but has the "paper clip" attachment option so the user then has the ability to upload an attachment.

If I knew what this vbbox was called, I could try it out. I don't know enough about vbulletin yet to test it out.

My question then is...instead of using:

$vbtextquestion =
$vbtextexplain =

What would it be for the regular message posting area to come up?

Here is the form I modified so far for my website (see the attached jpeg picture):

Quote:

Originally Posted by Cebby
I have the same question - searched through all 58 pages and didn't see a reply.

This will be a great addition to my forum (will have forms for recipe input and restaurant reviews). For the recipe inout I'd like to have the option of adding attachments (pics) to the post.

Any ideas for those trying to figure this out - will open doors for more types of forms I'd think.


upnorth 05-29-2006 05:18 PM

I noticed that the subject of the created thread is the name of the form. Is there any easy way to allow the user to enter the subject?


All times are GMT. The time now is 04:22 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.02085 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (4)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