vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   FORM TO FORUM/ THREAD/ PM/ EMAIL - CUSTOMIZABLE FORMS for Mod Apps, Orders, News (https://vborg.vbsupport.ru/showthread.php?t=53269)

proxyMX 07-12-2003 04:44 AM

yeah sorry, it was late, i was on my period, wait im a guy, i cant use that excuse...eeek!

Anyways, ive finally figured out the problem, a few bad named variables. How simple. Doh.

And i was wondering if there was anyway to make it so when a user submits the form, that the thread is named after a selected submitted field?

Erwin 07-12-2003 04:48 AM

Yes, can be done.

In form1.php (or whatever you've called it),

FIND:

PHP Code:

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

Replace with:

PHP Code:

$answer1 

Or whatever the variable is. :)

Remember, do the above THREE TIMES - you need to change the title three times in the code.

retsell 07-12-2003 04:50 AM

the file is in the same dir.

Erwin 07-12-2003 04:52 AM

I can't explain it, retsell - I suggest re-installing the hack to see if it works - it does work, but I don't know why you are getting that server error.

proxyMX 07-12-2003 04:53 AM

thanks erwin
keep making brilliant hacks, dont listen to crackpots on methadone like me.

retsell 07-12-2003 04:54 AM

Quote:

Today at 06:40 AM Erwin said this in Post #148
Put the form1.php file in the same directory as your forums.

It cannot find the nopermission function ie. cannot find your global.php


They're together.

[Why did you post the whole PHP file in this post? What's the point of that? - Erwin]

retsell 07-12-2003 04:56 AM

Quote:

Today at 06:52 AM Erwin said this in Post #154
I can't explain it, retsell - I suggest re-installing the hack to see if it works - it does work, but I don't know why you are getting that mysql error.

it's a mysql error?

Erwin 07-12-2003 05:01 AM

It's an undefined function error - the gettemplate function could not be found. Makes no sense.

Also, there is no point reposting the whole PHP file out like that for unlicensed users to copy and use. They can't see [php] tag code, but you reposted the whole file in normal text. What was the point of that?

Anyway, like I said, reinstall the hack following the instructions exactly.

proxyMX 07-12-2003 05:06 AM

Ret, its probobly something simple like mines, check all the names of all the templates and the files and then check all the variables and make sure they all match up!

Talisman 07-12-2003 05:25 AM

Geez, you guys can sure cover a lot of ground while I'm away.

Erwin, that $bbuser-thing worked brilliantly. Thanks for telling me it needed to be defined as a variable in the php file.

Don't know why the forum/thread post counts don't update when the submitted form posts as a reply. When I click the update counters links in the ACP, everything shows up like normal. Wonder what's wrong with that.

I saw a few pages back that we can check to make sure the member has the minimum post count required before the form submits.... I'll use that for our moderator app.

We'd also want the form to check the member's join date. We don't want new members joining one day and applying to become a moderator a day later. We'd rather make them wait two weeks or a month and also make sure they've made 10 or 25 posts before they can apply.


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