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)

attroll 11-22-2007 01:35 AM

Quote:

Originally Posted by jheigl (Post 1386632)
I am having a lot of trouble customizing this to what I need. Can the coder or anyone else for that matter make it to what I need please? I will give you exactly what I need if anyone is willing to do it for me. Thanks!

If it is not a lot I will look at it for you and see if I have time to do this. Let me know what you want it to do. Like I said if it is not a lot to do then I will try when I have free time.

snakeair 11-22-2007 02:55 AM

I searched but not good enough cause i am still lost on this. How can i make it when the form is used after user submits it... the title $posttitle is the title of the thread. I get this default message everytime i create a thread. :(

If you need more info, please PM me or post here. It's getting late out for me.

attroll 11-22-2007 06:25 AM

Quote:

Originally Posted by snakeair (Post 1387285)
I searched but not good enough cause i am still lost on this. How can i make it when the form is used after user submits it... the title $posttitle is the title of the thread. I get this default message everytime i create a thread. :(

If you need more info, please PM me or post here. It's getting late out for me.

It is in this thread a couple of times. You can start reading here https://vborg.vbsupport.ru/showthrea...81#post1368881.

Mazinger 11-22-2007 10:59 AM

That's too complicated - I failed to customize fields. :(

snakeair 11-22-2007 11:02 AM

Quote:

Originally Posted by attroll (Post 1387360)
It is in this thread a couple of times. You can start reading here https://vborg.vbsupport.ru/showthrea...81#post1368881.


Thanks for that link. I just managed to get everything working the way i want it to. (Well untill i create another form.. lol)

Have a great holiday and time for me to get on the road.

firstrebel 11-22-2007 04:43 PM

This is a very good hack, but I need to pass on this warning. Do not create too many different forms, they will kill the server.

We have our own server, quite a good one, and this evening the server load hit 40.

I have been using this hack to make separate forms for our car sales forum, a total of about 30, one for each model of Volvo car. I noticed that as I created each new plugin the server response got slower. It was not until I disabled all the forms plugins that the server load went back to normal.

Bob

CMF 11-22-2007 06:02 PM

Quote:

Originally Posted by Brundlefly (Post 1386834)
I'm using this hack for the exact same purpose in one of our applications. The way probably around your issue is to form the post title in a way that corresponds to the poll options. The poll title will be the same as the post title. It seems fluid in the way i've done it, example provided;
Quote:

Post title = "Membership request from CMF - Sponsored by Brundlefly"
Poll option1 = "Yes, I support granting membership"
Poll option 2 - "No, I do not supporting granting membership"


Good thinking, thanks :rolleyes:

Brundlefly 11-24-2007 02:31 PM

I was looking for a way to set the timelimit a poll, using this hack should run. Forgive me if I missed it in previous posts. I've come up with a way to do this for each form hack that is running. All of the below changes are accomplished in the hook.

after
Code:

$pollpublic = "1";
add
Code:

//Time in days after posting poll shall close
$polltimeout = 10;

Where 10 is the number of days you choose to end the poll

after
Code:

$poll->set('public',        $pollpublic);
add
Code:

$poll->set('timeout',        $polltimeout);
If you have a Default Poll Timeout set on all created polls, the above changes will overide that setting.

I really hope I didn't recreate what already had been figured out.

zmmmzz 11-24-2007 09:16 PM

will this hack work on 3.7?

attroll 11-24-2007 11:52 PM

3.7 is not out yet so I don't know how anyone can answer your question yet.


All times are GMT. The time now is 10:19 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.02285 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (5)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