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)

Abe1 08-24-2005 01:53 AM

Quote:

Originally Posted by RMS-Chef
Not really sure about product stuff.
What would I need to do in order to upgrade with my three custom forms?

The templates dont realy need to be changed. Their basicly the same just with the XHTML rules.

Here are the plug in edits:

Find:
PHP Code:

$formtitle "Generic Form"

Add after:
PHP Code:

////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$posttitle "$formtitle"

Find (2 times):
PHP Code:

$newpost['title'] =& $formtitle

Replace with:
PHP Code:

$newpost['title'] =& $posttitle;
        
$newpost['parseurl'] = '1';
        
$newpost['emailupdate'] = '9999';

        if (
$vbulletin->userinfo['signature'] != '')
        {
            
$newpost['signature'] = '1';
        }
        else
        {
            
$newpost['signature'] = '0';
        } 


Find:
PHP Code:

$question $formtitle

Replace with:
PHP Code:

$question $posttitle


Find:
PHP Code:

$vbulletin->GPC['title'] =& $formtitle

Replace with:
PHP Code:

$vbulletin->GPC['title'] =& $posttitle


Find:
PHP Code:

vbmail($formemailaddress$formtitle$formsend); 

Replace with:
PHP Code:

vbmail($formemailaddress$posttitle$formsend); 


RMS-Chef 08-24-2005 02:28 AM

Thanks. I had completly rewritten everything above the actual script code so all I needed was the URL parse issue fixed.

All I did was add the:
Code:

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

twice under the "$newpost['title'] =" area and that fixed it.
It is now able to parse URLs and email addresses fine.
Thanks again Abe1!

Abe1 08-24-2005 02:31 AM

Quote:

Originally Posted by RMS-Chef
Thanks. I had completly rewritten everything above the actual script code so all I needed was the URL parse issue fixed.

All I did was add the:
Code:

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

twice under the "$newpost['title'] =" area and that fixed it.
It is now able to parse URLs and email addresses fine.
Thanks again Abe1!

Doing this fixes 3 things, posts get parsed, you dont subscribe to threads, and signatures show if you have one.

BTW, you can call me Abe. The username was taken when I came.

RMS-Chef 08-24-2005 02:43 AM

Quote:

Originally Posted by Abe1
BTW, you can call me Abe. The username was taken when I came.

Will do Abe, now give me a paypal address so I can donate some coinage for all your help! I not going to pay your rent or anything but you will be able to get some lunch or a couple packs of smokes...lol

Abe1 08-24-2005 02:44 AM

Quote:

Originally Posted by RMS-Chef
Will do Abe, now give me a paypal address so I can donate some coinage for all your help!

I work for free here. No need to pay me.

mooj 08-24-2005 08:08 AM

Um .. could you please ...

https://vborg.vbsupport.ru/showpost....3&postcount=44

:)

Abe1 08-24-2005 10:04 AM

Quote:

Originally Posted by mooj

A counter on how many users used a form? Sorry, not being added.

RMS-Chef 08-24-2005 07:11 PM

Well Abe, although this is working great for me, my users are never fully satisfied...lol

Again, not sure if it's possible or how involved it would be but they are looking to integrate the vB editing options/buttons (like the standard editor or WYSIWYG editor) for the "LONGQUESTION" fields.

Just thought I would throw that out there to see what you think.

Thanks.

Sovereign 08-24-2005 07:15 PM

Is there a "form requires moderation" setting? Because I had a form submitted today and vB wanted to moderate it even though all usergroups have no moderation.

Abe1 08-24-2005 07:18 PM

Quote:

Originally Posted by RMS-Chef
Well Abe, although this is working great for me, my users are never fully satisfied...lol

Again, not sure if it's possible or how involved it would be but they are looking to integrate the vB editing options/buttons (like the standard editor or WYSIWYG editor) for the "LONGQUESTION" fields.

Just thought I would throw that out there to see what you think.

Thanks.

You guys want a lot. I'll have to look into that.


All times are GMT. The time now is 11:11 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.03719 seconds
  • Memory Usage 1,763KB
  • 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
  • (2)bbcode_code_printable
  • (10)bbcode_php_printable
  • (6)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