vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   FORM to THREAD/ FORUM/ POLL/ PM/ EMAIL - CUSTOMIZABLE FORMS - Mod Apps, Orders, News. (https://vborg.vbsupport.ru/showthread.php?t=66082)

Abe1 09-12-2004 02:37 PM

Quote:

Originally Posted by Michael2
What would I need to do to get the thread title to be the answer from the first question? I'm using it for recipes, the first question is the recipe name, I want that to be the thread title.

This should do to:
Find
PHP Code:

'".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle'

E=Replace with:
PHP Code:

'$answer1'

Repeat this step as meny times as you can. I think it's about 5 or 6 times.
Quote:

Originally Posted by Michael2
Is there any way to use BB code? When I try putting it in the formanswers template I get an error when trying to save it. I want the questions to be in bold so that they stand out from the answers.

You can you BB code in the form_answer. Just make sur there is a space right before the '[' of the BB code if you are putting it right after a varible.
Quote:

Originally Posted by Michael2
This is an awesome hack, thanks!

Agreed.

Also, make sure you use my hack (look a few posts earlier) if you want the form to count as a post.

Ymeaga1n 09-12-2004 08:35 PM

Erwin it appears you have some extra code at the bottom of the form template that throws it off

PHP Code:

<p align="center">
<
input type="submit" value="Submit" name="submit" style="font-family: Verdana; font-size: 10pt" class="button"
<
input type="reset" value="Reset" name="reset" style="font-family: Verdana; font-size: 10pt" class="button">
</
p></td></tr>
</
table>
</
td>
</
tr>
</
table>

</
form>

$footer
</body>
</
html

the extra </td></tr></table> was throwing off how my page looked on the bottom because it was closing my table speficed in my header template. Hope you have a chance to edit it.

y2krazy 09-12-2004 11:34 PM

Quote:

Originally Posted by y2krazy
Is there a way to make a form that is created to be required by any new registration before they can do anything else? Such as a form that posts an introduction thread in a specified forum when someone registers, and it will be a requirement before said new member can do anything on the entire forum(almost like a "second" registration page). Maybe a re-direct once the registration goes through or something to the form before anything else can take place. Let me know if this can be done, or is even possible. Thanks!

Still looking for some help here guys. A simple yes or no will do... ;)

Abe1 09-13-2004 06:30 PM

Quote:

Originally Posted by y2krazy
Still looking for some help here guys. A simple yes or no will do... ;)

There is a way. But, it would take too long to explain. Basicly, make new users only see a link to the form. And all new users need one post and they change groups.

y2krazy 09-14-2004 04:17 PM

Quote:

Originally Posted by Abe1
There is a way. But, it would take too long to explain. Basicly, make new users only see a link to the form. And all new users need one post and they change groups.

Now, if only I had the time to do that... ;)

I can see it's not difficult, but I just need the time for it. I could just add an if/else statement so that they see a huge link to the form if they have < 1 post(if conditional), and if they have done the form, then they will see the normal forums view(else conditional). Thanks for the tip! ^^

Amavisca 09-16-2004 03:32 PM

Can I use this hack with the Article hack? I just want people to post articles in a specific format. How can I do that? Thanks a lot

mtha 09-19-2004 07:55 AM

Line 250 need to be fixed.

switch between lastposter and lastthread

change

PHP Code:

    if ($formreply == "1") {
     
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$formreplythreadid','".addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle','".addslashes($bbuserinfo[username])."','$bbuserinfo[userid]','".time()."','" addslashes($formsend) . "','1','1','0','0','1')");
 
$DB_site->query("UPDATE thread SET replycount = replycount + 1, lastpost = " TIMENOW ", lastposter = '".addslashes($bbuserinfo[username])."' WHERE threadid = $formreplythreadid"); 
                       
$DB_site->query("
                              UPDATE " 
TABLE_PREFIX "forum
                              SET replycount = replycount + 1,
                              lastpost = " 
TIMENOW ",
                              lastposter = '" 
addslashes($bbuserinfo['username']) . $formtitle',
                              lastthread = '"
.addslashes(htmlspecialchars($bbuserinfo[username]))."',
                              lastthreadid = 
$formreplythreadid
                              WHERE forumid = 
$formreplyforumid
                         "
);
 
$forum[forumid] = $formreplyforumid;
     } 

to

PHP Code:

    if ($formreply == "1") {
      
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$formreplythreadid','".addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle','".addslashes($bbuserinfo[username])."','$bbuserinfo[userid]','".time()."','" addslashes($formsend) . "','1','1','0','0','1')");
      
$DB_site->query("UPDATE thread SET replycount = replycount + 1, lastpost = " TIMENOW ", lastposter = '".addslashes($bbuserinfo[username])."' WHERE threadid = $formreplythreadid"); 
                      
$DB_site->query("
                                UPDATE " 
TABLE_PREFIX "forum
                                SET replycount = replycount +  1,
                                lastpost = " 
TIMENOW ",
                                lastposter = '"
.addslashes($bbuserinfo['username']) . "',
                                lastthread = '"
.addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle',
                                lastthreadid = 
$formreplythreadid
                                WHERE forumid = 
$formreplyforumid
                        "
);
$forum[forumid] = $formreplyforumid;
    } 


Erwin 09-19-2004 11:48 PM

Fixed my ZIP mtha - thanks.

Marcus Lau 09-21-2004 05:41 PM

Alright, PTL!!! That is awesome!!!! Thank God for you!!!

venomx 09-22-2004 03:15 AM

I have it set to PM me when someone fills out the form. Works great but something is wrong because I do not get an email saying I have a new PM....


All times are GMT. The time now is 09:58 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.01444 seconds
  • Memory Usage 1,785KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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