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)

Clanshosting 11-30-2005 03:22 AM

This is a pretty dumb questoin, but when you say:

2 - Edit the main hook - the instructions are all inside the hook itself, in the top half. Follow the instructions carefully!

Where is this "main hook" ?

Abe1 11-30-2005 03:26 AM

Quote:

Originally Posted by Clanshosting
This is a pretty dumb questoin, but when you say:

2 - Edit the main hook - the instructions are all inside the hook itself, in the top half. Follow the instructions carefully!

Where is this "main hook" ?

There are 2 hooks for this hack. You can find them in admin cp -> Plugin System -> Plugin Manager

Clanshosting 11-30-2005 03:47 AM

Hi, thanks for your reply. Also, I go into edit templates -> form -> and I see:

////////////////////////////////////////////////////////////////////////////////////////////////////
//LONG TEXT AREA INPUT: QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$longquestion1 = "X.";
$longexplain1 = "X.";

$longquestion2 = "X?";
$longexplain2 = "X?";

(I added #2)

Now, at the top,

Code:

// Part 2
$normalanswer1 = $vbulletin->GPC['normalanswer1'];
$radioanswer1 = $vbulletin->GPC['radioanswer1'];
$radioanswer2 = $vbulletin->GPC['radioanswer2'];
$radioanswer3 = $vbulletin->GPC['radioanswer3'];
$radioanswer3other = $vbulletin->GPC['radioanswer3other'];
$answer1 = $vbulletin->GPC['answer1'];
$answer2 = $vbulletin->GPC['answer2'];
$answer3 = $vbulletin->GPC['answer3'];
$answer4 = $vbulletin->GPC['answer4'];
$answer5 = $vbulletin->GPC['answer5'];
$answer6 = $vbulletin->GPC['answer6'];
$answer7 = $vbulletin->GPC['answer7'];
$answer8 = $vbulletin->GPC['answer8'];
$dropdownanswer1 = $vbulletin->GPC['dropdownanswer1'];

There is no, like $$longquestion2 = $vbulletin .... etc.. you get the idea.

Is this correct?

Also, I see,

////////////////////////////////////////////////////////////////////////////////////////////////////
//NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$normalquestion1 = "test";

I dont really understand that, thanks.

RMS-Chef 11-30-2005 03:56 AM

Quote:

Originally Posted by Abe1
New version released. For now, the text editor only allows standard editor do to a problem. I will try to figure out how I can get the wysiwyg editor working.

Thanks Abe.

I have several very customized forms is use. What would be the best way to upgrade to gain the editor functionality without having to redo my forums and templates?

Clanshosting 11-30-2005 04:33 AM

Hm...

View:

http://forums.roxr.com/t4151-free-we...g-request.html

And:
http://forums.roxr.com/newthread.php?do=form

In my first link, you will see I went down 1 THROUGH 12.

YET, 10 and 11 just are gone. For no reason at all. I have checked my files over and over and I cannot find why.

Is it because it's 10, when there is already a 1? idk.

Clanshosting 11-30-2005 04:57 AM

k, I have now go to:
http://forums.roxr.com/t4155-free-we...g-request.html

But it just copies 12. I have actually gone down to the "dont edit this if you dont know what your doing" and failed, rofl.

Abe1 11-30-2005 11:48 AM

Quote:

Originally Posted by Clanshosting
k, I have now go to:
http://forums.roxr.com/t4155-free-we...g-request.html

But it just copies 12. I have actually gone down to the "dont edit this if you dont know what your doing" and failed, rofl.

It's hard to add more then one long answer now. It would requre a few differant edits in a few differant places.

Abe1 11-30-2005 11:49 AM

Quote:

Originally Posted by RMS-Chef
Thanks Abe.

I have several very customized forms is use. What would be the best way to upgrade to gain the editor functionality without having to redo my forums and templates?

There are about 5 differnt edits for this. I can't realy find them all. You can do a compare with the last version and try to find them.

ShadowOne 11-30-2005 12:39 PM

It Keeps Telling Me:
Invalid Forum specified. If you followed a valid link, please notify the administrator

RMS-Chef 11-30-2005 01:19 PM

Quote:

Originally Posted by Abe1
There are about 5 differnt edits for this. I can't realy find them all. You can do a compare with the last version and try to find them.

Thanks Abe, I will use BeyondCompare and do it that way.

Abe1 11-30-2005 02:05 PM

Quote:

Originally Posted by ShadowOne
It Keeps Telling Me:
Invalid Forum specified. If you followed a valid link, please notify the administrator

Do you have permissions to post new threads?

ShadowOne 11-30-2005 02:48 PM

Quote:

Originally Posted by Abe1
Do you have permissions to post new threads?

Yes.

Abe1 11-30-2005 03:18 PM

Quote:

Originally Posted by ShadowOne
Yes.

are you logged in? did the standard form work?

Clanshosting 11-30-2005 04:44 PM

When will you have time?
Also to answer ShadowOne's question, it's probably because you called the form something different and are still using

"/newthread.php?do=form (change "form" to the name of your form )"

Abe1 11-30-2005 04:46 PM

Quote:

Originally Posted by Clanshosting
When will you have time?
Also to answer ShadowOne's question, it's probably because you called the form something different and are still using

"/newthread.php?do=form (change "form" to the name of your form )"

To figger out how to add more then one vb message box to a form? I will see.

Clanshosting 11-30-2005 05:16 PM

Well, I could live with one I think if you dont have time.

ShadowOne 11-30-2005 06:02 PM

Quote:

Originally Posted by Clanshosting
When will you have time?
Also to answer ShadowOne's question, it's probably because you called the form something different and are still using

"/newthread.php?do=form (change "form" to the name of your form )"

I did i tryed both, form and then the new form name i made, and it gives me that....

Abe1 11-30-2005 08:27 PM

Quote:

Originally Posted by ShadowOne
I did i tryed both, form and then the new form name i made, and it gives me that....

Do you have another hack that uses the same hook location?

silurius 11-30-2005 10:45 PM

Abe, thanks for this update. I will start testing asap. Did you happen to address the sign a contract plugin collision issue?

Couple of suggestions: I would recommend including bug fixes in the first post, and I would suggest ordering your version updates in reverse order as I have seen other vB mod-makers do.

Can't wait to test this out!

Abe1 12-01-2005 01:53 AM

Quote:

Originally Posted by silurius
Abe, thanks for this update. I will start testing asap. Did you happen to address the sign a contract plugin collision issue?

Couple of suggestions: I would recommend including bug fixes in the first post, and I would suggest ordering your version updates in reverse order as I have seen other vB mod-makers do.

Can't wait to test this out!

I did not look at the 'sign-a contract'. How about ask him to figure out the problem :D

I didn't write a list of what i had done so I forgot everything to include some bug fixes in the post.

I like puting the most recent updates on the bottom.

murrtex 12-02-2005 06:13 PM

I installed and I click newthread.php?do=form and I fill and sent,but I can not read generic form topic because it says no permissions.that was the first question.and the second is;
I want to create a new form for aplication moderators what should I do?
thnx

silurius 12-02-2005 09:24 PM

Quote:

Originally Posted by Abe1
I did not look at the 'sign-a contract'. How about ask him to figure out the problem :D

Already did, and Amy hasn't had the chance to look into it as far as I can tell (just PM'd her).

Hopefully one of you can find the time in the near term, as these would both be extremely useful to have.

Thanks again for the update - as I said, I will let you know when I've tested.

apdcanari 12-03-2005 06:47 AM

Hello,

I have a problem with this hack.

I cannot create new subjects. As regards answering in a given message, Ca functions. But not for the creation again in a given forum. It gives me has each invalid time URL.

Thank you,

Cédric :ermm:

SlimWicked 12-03-2005 07:20 PM

wow! This seems like a GREAT Hack..Now this is the one question I can't seem to find the answer to. Lets say I have a mp3 post forum and a form to submit info on the mp3. Now when someone enters the mp3 forum, were do I go or how do I edit the "Post a topic or start new thread button" so that is points to the

hxxp://www.mysite.com/newthread.php?do=Mp3Post

I just can't seem to figure this one out. Sorry if this is a dumb question. :ermm:

Abe1 12-03-2005 10:32 PM

Quote:

Originally Posted by SlimWicked
wow! This seems like a GREAT Hack..Now this is the one question I can't seem to find the answer to. Lets say I have a mp3 post forum and a form to submit info on the mp3. Now when someone enters the mp3 forum, were do I go or how do I edit the "Post a topic or start new thread button" so that is points to the

hxxp://www.mysite.com/newthread.php?do=Mp3Post

I just can't seem to figure this one out. Sorry if this is a dumb question. :ermm:

Make a like some were to it. You can also creat a sub-form with the link.

SlimWicked 12-04-2005 12:18 AM

Quote:

Originally Posted by Abe1
Make a like some were to it. You can also creat a sub-form with the link.


Thanks Abe for the info. I saw on another forum (can't remember which one exactly) that uses your form hack and on there "post new thread" button was the link to there form. I was just wondering how do you or if you can do that.

Abe1 12-04-2005 12:29 AM

Quote:

Originally Posted by SlimWicked
Thanks Abe for the info. I saw on another forum (can't remember which one exactly) that uses your form hack and on there "post new thread" button was the link to there form. I was just wondering how do you or if you can do that.

It's a little hard to to do that. I like the idea and may eventualy create a hack that can do that.

Skyline_GT 12-04-2005 01:28 AM

How come I got this error??

Warning: Division by zero in /includes/functions.php(4300) : eval()'d code on line 10

Abe1 12-04-2005 01:29 AM

Quote:

Originally Posted by Skyline_GT
How come I got this error??

Warning: Division by zero in /includes/functions.php(4300) : eval()'d code on line 10

I've got no clue.

Skyline_GT 12-04-2005 01:35 AM

I rename my $formname to mod_application

and when I try to go http://www.gamerzplanet.net/forums/n...od_application

Abe1 12-04-2005 01:37 AM

Quote:

Originally Posted by Skyline_GT
I rename my $formname to mod_application

and when I try to go http://www.gamerzplanet.net/forums/n...od_application

Can you PM me a test username and pass?

RMS-Chef 12-04-2005 05:29 AM

Quote:

Originally Posted by SlimWicked
wow! This seems like a GREAT Hack..Now this is the one question I can't seem to find the answer to. Lets say I have a mp3 post forum and a form to submit info on the mp3. Now when someone enters the mp3 forum, were do I go or how do I edit the "Post a topic or start new thread button" so that is points to the

hxxp://www.mysite.com/newthread.php?do=Mp3Post

I just can't seem to figure this one out. Sorry if this is a dumb question. :ermm:

This is pretty easy. I searched for the post where I found the info but came up dry. I think I found it on vbulletin.com and it explained it better than I am about to.

Template is FORUMDISPLAY

Find this section of the default code:
Code:

        <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
Now if you just have one forum where you want the New Thread button to go to a specific form intead of the regular editor, replace the above code with the code below.
Code:

        <td class="smallfont"><if condition="$show['newthreadlink']"><a href="<if condition="$foruminfo['forumid'] == XX">newthread.php?do=formXX<else />newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]</if>" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
Make sure to replace XX in the $foruminfo['forumid'] == XX to the forum ID number of the forum you want this to happen in.
And change formXX to the name of your forum (in your case Mp3Post) that you want to be taken to when the button is clicked in that forum,


Now if you have more than one forum with more than one form you can do that too. Say you have your MP3 forum and a different movie forum, each with a different form you want it to go to when you click the New Thread button you just simply add more conditionals and closing if statements.

So for two of them you could use:
Code:

        <td class="smallfont"><if condition="$show['newthreadlink']"><a href="<if condition="$foruminfo['forumid'] == XX">newthread.php?do=formXX<else /><if condition="$foruminfo['forumid'] == YY">newthread.php?do=formYY<else />newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]</if></if>" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
Now when you are in forum XX and click the New Thread button you will be taken to the forum formXX and when you are in forum YY and click the New Thread button you will instead be taken to formYY. Of course as with the first modifaction, you are are in any forum other than the one or two you are replacing, you will be taken to the normal new thread editor.

To do this with three or more different forums, just add:
Code:

<if condition="$foruminfo['forumid'] == XX">newthread.php?do=formXX<else />
in the appropriate spot and another closing:
Code:

</if>
before
Code:

" rel="nofollow">
for each new forum that you want the New Thread button's behavior to change.


I hope this is what you were asking for and I also hope I explained it well enough for you. Good Luck!

Skyline_GT 12-04-2005 06:33 AM

Quote:

Originally Posted by Abe1
Can you PM me a test username and pass?

test what? It doesn't require member to viwe that.

Abe1 12-04-2005 12:18 PM

Quote:

Originally Posted by Skyline_GT
test what? It doesn't require member to viwe that.

i got a no permissions page when I clicked on it.

KFrancesco 12-04-2005 01:20 PM

Hello,

I have a little problem with this hack, the title of all post generated are fixed (var $posttitle = "$formtitle"), how can I make to choose the title to the user?

Thank you

RMS-Chef 12-04-2005 02:13 PM

Quote:

Originally Posted by KFrancesco
Hello,

I have a little problem with this hack, the title of all post generated are fixed (var $posttitle = "$formtitle"), how can I make to choose the title to the user?


Thank you

Check posts #35 & #42 in this thread.

apdcanari 12-04-2005 02:54 PM

Hello,

I have an error.

Can you help me, please ?

Thanks,

Cédric :ermm:

apdcanari 12-04-2005 03:30 PM

Re,

The error is here.

forumid = 0

How change this ?

Thanks,

Cédric :ermm:

KFrancesco 12-04-2005 03:39 PM

Quote:

Originally Posted by RMS-Chef
Check posts #35 & #42 in this thread.

Perfect, how can I make to remove the variable "$question1" from the post but not to form?

Martyjp 12-04-2005 09:10 PM

Since upgrading long answers no longer show up, any ideas?


All times are GMT. The time now is 01:07 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.02153 seconds
  • Memory Usage 1,850KB
  • 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
  • (7)bbcode_code_printable
  • (23)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
  • (40)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