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)

rip9001 01-02-2006 04:48 AM

hey, installed it works great

1 question: What do i have to do to get this form to come up when sombody tries to create a new thread in a certain section (eg. forumid: 55)

I had a look through both forumdisplay.php and newthread.php but im still kind of a newb at this

Oreamnos 01-02-2006 05:02 AM

You might have to create a new style and then change the link to newthread.php to something like this: forum/newthread.php?do=newthread&f=55&do=form

Nikke 01-02-2006 11:16 AM

How do I create double templates for two different types of forms? I did manage to do the plugin part where you had to copy the plugin, but how will I get two different templates?

ChrisBaktis 01-02-2006 12:47 PM

Quote:

Originally Posted by rip9001
hey, installed it works great

1 question: What do i have to do to get this form to come up when sombody tries to create a new thread in a certain section (eg. forumid: 55)

I had a look through both forumdisplay.php and newthread.php but im still kind of a newb at this

I do this on my site.....you will need to change to locations in the FORUMDISPLAY template....

This appears in two spots....im nost sure on your style but you will see what I have changed and you should be able to find it in your template...

Code:

<td class="smallfont"><if condition="$show['newthreadlink']  and $foruminfo[forumid] <> '36'"><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 /><a href="http://rustysoaptraders.com/forums/newthread.php?do=tradeform"><font size="2">Post A Trade</font></a></if></td>
What this code above does is leave the 'New Thread' link in all the forums except my forum number 36...if it is forum 36 then 'Post A Trade' link shows up and when that is clicked it goes to my form.

Make sure you keep a copy of the original template in case you make an error. Hope this helps.

*** of course I didnt see the Add-On that may do this same thing.

Abe1 01-02-2006 12:48 PM

Quote:

Originally Posted by rip9001
hey, installed it works great

1 question: What do i have to do to get this form to come up when sombody tries to create a new thread in a certain section (eg. forumid: 55)

I had a look through both forumdisplay.php and newthread.php but im still kind of a newb at this

Hack has been made already. Look at the add-ons to this hack.

Abe1 01-02-2006 12:49 PM

Quote:

Originally Posted by Oreamnos
great looking plugin.

one question: is it possible to insert the form submitted by the user into a specific forum DEPENDING on what drop down box option is selected?

Example:
1. I have 3 forums: Canada, America & Mexico

2. The user selects 'America' from the drop down box.

3. The user's post is posted in the 'America' forum.

I hope that make sense.

Is this possible?

Thanks
eric

Yes, it's possable. No, I dont have to time to write it right now. Something to do with the values of a drop down menu.

HaMaDa4eVeR 01-02-2006 04:03 PM

Hello
I got this error message :
Parse error: parse error, unexpected T_STRING in
Quote:

/home/xXx/public_html/vb/newthread.php(68) : eval()'d code on line 3
and when I try to open newthread.php?do=form I will get this error

Quote:

Invalid forum specified. If you followed a valid link, please notify the administrator
althouth everything is right and I changed the formforumid to the my specified forum id ?????

wrang 01-02-2006 04:14 PM

Is it possible to have a attachment in this form hack. if so how do i do

HaMaDa4eVeR 01-02-2006 04:20 PM

Hello
I got this error message when i do new post :

Quote:

Parse error: parse error, unexpected T_STRING in

and when I try to open newthread.php?do=form I will get this error

Quote:

Invalid forum specified. If you followed a valid link, please notify the administrator

althouth everything is right and I changed the formforumid to the my specified forum id ?????

sully02 01-02-2006 05:08 PM

I am getting a similar error, except mine is a T_CONSTANT_ENCAPSED_STRING, and it's on line 29 instead of line 3.
Quote:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/sportsd/public_html/forums/newthread.php(68) : eval()'d code on line 29
I didn't make any PHP code edits, so I'm trying to figure out exactly where I messed up.


All times are GMT. The time now is 04:34 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.01972 seconds
  • Memory Usage 1,746KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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