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)

RMS-Chef 09-25-2007 05:27 AM

Been using this since the first stages of it's creation. Great mod Abe.
My question concerns conditionals. I have not had any luck using them in the answer template.

What I would like to do is to use the:
Code:

<if condition="!is_member_of($bbuserinfo, X)">
$longanswer
</else>
Please PM thread creator for details.
</if>

To wrap around one of the forms answers so that only members of said usergroup and view the wrapped content and others will see the notice. When I implement this, is just does not display the content at all. I know this is due to the fact the HTML is not allowed in post content but is there any workaround that anyone can think of for this? I have tried enabling HTML in a specific forum as well as for my admin group yet it still will not display anything.

74corvette 10-03-2007 05:05 PM

Maybe some of you experienced coders can help me. I'm using this mod on my forum and have changed the thread title to include one of the variables, $normalanswer1 so that the title reflects the answer. My question how can I add another variable ($radioanswer1) to that ? Heres the code:

$newpost['title'] =& $normalanswer1;

I have tried $normalanswer1.$radioanswer1, but that did do it. Quotes dont work either.

Signed,

PHP newbie

cellarius 10-05-2007 03:08 PM

Quote:

Originally Posted by dutchbb (Post 1198086)
Of course I've edited the plugin and there is a valid ID. It always worked, I have used it for months without problems now suddenly it stopped working. I submit the review and it just isn't posted. This is the URL when the form is submitted: /showthread.php?t=

I know, it's been quite some time since this issue was raised, but I encounter exactly the same problem. My form was up and running for months, and with the installation of vbseo this error occurred. I'd be happy if anyone had suggestions...

Edit: The example-form supplied with the hack does not work, either. It seems to be a problem with $newpost[threadid] - the variable seems to be empty.

wolfe 10-05-2007 10:48 PM

m8 is there any way of you making this mod so when a form is posted its posted in its own fields in the database like the title and message is instead of adding to the message box. and when the post is edited it loads the same form as it was originaly posted by. also remove the message box for set forums so its just the extra form fields only and not the original message box. would really appreciate this. thx :P

cellarius 10-06-2007 12:56 PM

OK, it does'nt seem to be an vbseo-issue; problem stays if vbseo is deactivated. I deinstalled and reinstalled the mod and set up the standard form as follows:
PHP Code:

//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum "1";

//FORUM TO POST NEW THREAD IN
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
$formforumid "17";

...

$redirectoption "2"

No other changes whatsoever. When I try to submit a form, it spawns a "no thread specified"-error, and indeed, no forum id is specified at all ("showthread.php?t="). I would be very happy if somebody could give me a hint on what's going wrong here...

URL to he form is http://www.roma-antiqua.de/forum/newthread.php?do=form
The form is trying to post to a testing ground forum to which I gave guest posting permission for the moment.

I'd happily provide any other information needed.

cellarius 10-07-2007 08:29 AM

Problem solved: Adv. Editing Options for Mods and Admins is not compatible with Abe's hack. After deactivation everything seems to be running smoothly again.

wolfe 10-07-2007 11:34 AM

m8 is there any way of you making this mod so when a form is posted its posted in its own fields in the database like the title and message is instead of adding to the message box. and when the post is edited it loads the same form as it was originaly posted by. also remove the message box for set forums so its just the extra form fields only and not the original message box. would really appreciate this. thx :P

Deepdog009 10-07-2007 04:02 PM

Quote:

Originally Posted by OneEyeSleepy (Post 1343318)
Sorry, I am a new user and already installed this Mod. I read your brief documentation but how do you use it? I can edit the form and save it into a text file, where do I put it into?

OneEyeSleepy I like your name because I never sleep with both eyes closed :)

Dont ask why...

Link below and proceeding posts may help U...

https://vborg.vbsupport.ru/showpost....&postcount=511

************************************************** **

Vien I dont think that BUG is a major issue cause ABE1 ain't posted about it...

I haven't had time 2 look into it,,, but all seems well with all my clients using forms on boards...


************************************************** **

Quote:

Originally Posted by MoJo Smirnoff (Post 1345507)
can someone please help me...i got the form all done...but i have no submit button. i guess i might have deleted the code on accident.. :o

can some please share the code for the submit button..and tell me exactly where i deleted it from lol

thanks!

Upload your form plugin and templates in .txt format and I will fix 4 ya...


************************************************** **

Alan92rttt I believe there was another poster asking the same question and we found there is a vbulletin issue causing that with this hack...

I forget which poster,,, but its back a few pages...

************************************************** **

RMS-Chef that is a cool add-to,,, I will look into it if time permits...

Im more of a graphics and java guy,,, php coding gives me a headache and takes time -$ :D

I will post l8ter about it if time permits...

************************************************** **

74corvette its possible,,, but U will need to make changes 2 plugin code... ASK ABE1

************************************************** **

Quote:

Originally Posted by wolfe (Post 1354727)
m8 is there any way of you making this mod so when a form is posted its posted in its own fields in the database like the title and message is instead of adding to the message box. and when the post is edited it loads the same form as it was originaly posted by. also remove the message box for set forums so its just the extra form fields only and not the original message box. would really appreciate this. thx :P

Another poster asked the same question in earlier posts...
What U ask will need some major updates by ABE1 or Add-on mod???


************************************************** **

Quote:

Originally Posted by cellarius (Post 1354650)
Problem solved: Adv. Editing Options for Mods and Admins is not compatible with Abe's hack. After deactivation everything seems to be running smoothly again.

Yeap PERMISSION mods seem 2 be giving other mods some minor issues...

wolfe 10-07-2007 05:39 PM

Quote:

Originally Posted by Deepdog009 (Post 1354841)

Another poster asked the same question in earlier posts...
What U ask will need some major updates by ABE1 or Add-on mod???

m8 i started on it on my own but just cant seem to get it right. i have added radio buttons to this form so people can pick what forum ti post it in with the value being the forum id. example

O Announcements O General Chat

they can choose which one to post it into :P i just need to make the form have its own database field for every question that i add. so it can be re edited in the same form it was posted in :P

laura66a 10-14-2007 03:20 PM

Hi. This works great and I have been able to create my own form.

One question I have is: When someone is in the form, the Whois Online display says "Creating Thread". Is there way to change this so that the form name is displayed?

Thanks.


All times are GMT. The time now is 10:28 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.02002 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
  • (1)bbcode_code_printable
  • (1)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
  • (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