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)

lazytown 07-19-2007 12:25 PM

<a href="https://vborg.vbsupport.ru/member.php?u=72648" target="_blank">Deepdog009</a> - thanks for your help, that fixed the invisible guest problem (turning off captcha for new guest posts -- which we don't allow in any of our forums anyways).

Now I have a second problem (I've seen it mentioned a long time ago). When a guest uses the contact us form that is posted in a thread, it becomes a thread that requires moderator approval. Other mods have gotten around this type of problem by assigning a user account to the mod that posts (like auto-bans or duplicate account reports). Has anyone solved this problem for this mod?

Thanks
-vissa

StudMuffin21 07-19-2007 04:57 PM

Quote:

Originally Posted by TheMilkCarton (Post 1295598)
Without looking too far into it, I'd say there is a slim chance that your form templates are causing it.

Attached is the copy of the form hack code.

NOTE: After the problem is fixed, I will try and remember to delete these attachments.

Deepdog009 07-19-2007 10:29 PM

Quote:

Originally Posted by StudMuffin21 (Post 1295851)
Attached is the copy of the form hack code.

NOTE: After the problem is fixed, I will try and remember to delete these attachments.

StudMuffin21 I think Milk Carton shedded some light on your issue...

sorry, but been busy and forgot 2 stop by here the last few dias. I forgot what your issue was?

I will download files and post about it soon as i can:)...

StudMuffin21 07-20-2007 02:26 AM

Deepdon009 and MilkCarton,

I changed the coding so it now reads correctly as you had suggested (previously that portion was not correct); however, I am still getting the same problem.

On the form, all questions and blank spaces show up. When submitting the form, only the answers for questions 1, 2, 3, and 10 are displayed. I've gone over the code again a few times today and don't know what I have overlooked.

TheMilkCarton 07-20-2007 03:32 AM

Quote:

Originally Posted by StudMuffin21 (Post 1296205)
Deepdon009 and MilkCarton,

I changed the coding so it now reads correctly as you had suggested (previously that portion was not correct); however, I am still getting the same problem.

On the form, all questions and blank spaces show up. When submitting the form, only the answers for questions 1, 2, 3, and 10 are displayed. I've gone over the code again a few times today and don't know what I have overlooked.

Ummm... The $answers 4-8 and $longanswers 2-3 are commented out in the TXT file you uploaded.

You need to remove the // from each line.

And there is no question 10? unless you mean longanswer1

StudMuffin21 07-20-2007 06:05 AM

If I remove the // marks, I get these errors:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/cobaltli/public_html/newthread.php(71) : eval()'d code on line 638

and

Invalid thread specified

Yes, by question 10, 11 and 12, I mean the long answers.

Deepdog009 07-20-2007 07:13 PM

Quote:

Originally Posted by StudMuffin21 (Post 1295851)
Attached is the copy of the form hack code.

NOTE: After the problem is fixed, I will try and remember to delete these attachments.


Ok, corrected a bit of code and its ALIVE;)


Studdmuffin21, I like yo name,,, N-E ways yo issue was with here...>>>

HTML Code:

////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS AND WANT TO USE A DIFFERENT LOOKING TEMPLATE
////////////////////////////////////////////////////////////////////////////////////////////////////

// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////

Change 2 match your form {{{CLA}}} ...
The other form already is using those titles...
When U create new forms, U must create all new info {{{names}}} for main template, answers template and plugin form name must be different from the rest of your forms...

ABE1 has this in hook, if your new forms dont work always double check new names of all templates and plugin info. If U get PARSE errors then its a code issue, somewhere U may have added something by mistake or using the wrong code characters.

HTML Code:

////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS AND WANT TO USE A DIFFERENT LOOKING TEMPLATE
////////////////////////////////////////////////////////////////////////////////////////////////////

// Name of the main template
$maintemplate = "studmuffin21";
// Name of the answer template
$answertemplate = "studmuffin21answers";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////


Everything else was looking outta sight:D

StudMuffin21 07-20-2007 08:14 PM

lol..yeah that name has a story behind it. Some really good lookin girl gave it to me a long time ago as a call sign when I couldn't come up with one for a laser tag game. haha...I just had to keep it.

Anyway, ok so here is what I did. As you suggested, I created two new templates. One named "form1" and the other "formanswers1" I then edited the code to read the exact name of those templates as you suggested in your post (only instead of using studmuffin21, I used form1).

I feel so stupid cause I still am getting the same problem. And that is not all of the answers show up when the form is submitted.

I've gone over the templates and hack several times again but did not see any problems, though keep in mind I am not a coder.

Should I try to uninstall and delete everything and reinstall it? Would that make a difference? Or is there something I am missing still?

And by the way, thank you very much for your continued efforts to help me resolve this problem. I do much appreciate it :D

Fireproof 07-20-2007 09:08 PM

Hey guys,

This Form Hack is just what I need to create a standardized "Product Review" form for my forums. Unfortunately, despite my efforts, I can't get it to work. I'm far from a coder and know nothing about php or xml anyway, so that doesn't surprise me, LOL.

The proposal: I've mocked up what i want my form to look like. Does anyone want to configure this hack for me for a few bucks?

Deepdog009 07-21-2007 12:02 AM

Quote:

Originally Posted by StudMuffin21 (Post 1296864)
lol..yeah that name has a story behind it. Some really good lookin girl gave it to me a long time ago as a call sign when I couldn't come up with one for a laser tag game. haha...I just had to keep it.

Anyway, ok so here is what I did. As you suggested, I created two new templates. One named "form1" and the other "formanswers1" I then edited the code to read the exact name of those templates as you suggested in your post (only instead of using studmuffin21, I used form1).

I feel so stupid cause I still am getting the same problem. And that is not all of the answers show up when the form is submitted.

I've gone over the templates and hack several times again but did not see any problems, though keep in mind I am not a coder.

Should I try to uninstall and delete everything and reinstall it? Would that make a difference? Or is there something I am missing still?

And by the way, thank you very much for your continued efforts to help me resolve this problem. I do much appreciate it :D

Sorry, misunderstood your Question...
Looking at your form preview and I-C your problem...
Give me a moment and I shall resolve... :o


All times are GMT. The time now is 04:08 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.01930 seconds
  • Memory Usage 1,759KB
  • 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_html_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