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)

R.Caldwell 10-04-2006 06:18 PM

I'm still hoping someone can help with the drop down menu for which forum to post to.

I can offer pay for ANYONE who can help me. Support for this is pretty much no-existent.

dieselpowered 10-04-2006 09:04 PM

Quote:

Originally Posted by R.Caldwell
I'm still hoping someone can help with the drop down menu for which forum to post to.

I can offer pay for ANYONE who can help me. Support for this is pretty much no-existent.

I wish I could help you...I am still trying to see if there is a way to link the new thread button in a specific forum to the form...thinking it may not be possible. I am trying to force members who are posting in a specific forum to have to use the form for the start of the thread.

d3fuse 10-04-2006 10:22 PM

That would have to deal with an if statement that checks the forumdisplay number, I would assume. I'll try to locate something and see if it works as I am looking for the same thing. Also, thanks for the template names. Just what I needed!

dieselpowered 10-04-2006 10:26 PM

Quote:

Originally Posted by d3fuse
That would have to deal with an if statement that checks the forumdisplay number, I would assume. I'll try to locate something and see if it works as I am looking for the same thing. Also, thanks for the template names. Just what I needed!

Ya if you find something please let me know.

Glad I could help with the template names :)

d3fuse 10-04-2006 10:43 PM

Try this:

Code:

<if condition="$forum[forumid]=='x'">
new thread button for form application code
</else>
normal new thread button
</if>


Replace x with the forum ID. I have not tested it yet, but will do so once I finish an event my guild is doing.

dieselpowered 10-04-2006 11:13 PM

Quote:

Originally Posted by d3fuse
Try this:

Code:

<if condition="$forum[forumid]=='x'">
new thread button for form application code
</else>
normal new thread button
</if>


Replace x with the forum ID. I have not tested it yet, but will do so once I finish an event my guild is doing.

Hmmm what code are we wrapping that around?

d3fuse 10-04-2006 11:27 PM

Well, that script did not work for me, but the following did work below. Basically, the colored text is for the form application link and the black text is for the normal new thread button. Change XX to the forum where the form is in. I cannot remember the ELSE tag which I believe is simple. I'm too tired right now.

Find <!-- controls above thread list --> in FORUMDISPLAY.

Code:

<if condition="$foruminfo[forumid] == XX">
<!-- controls above thread list -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
        <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?do=formname" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
        <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls above thread list -->
</if>


<if condition="$foruminfo[forumid] <> XX">
<!-- controls above thread list -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
        <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>
        <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls above thread list -->
</if>


dieselpowered 10-05-2006 01:04 AM

Well I am not sure...I am not very good with the if then else stuff.

Without the else, does it make it so all NEW THREAD buttons link to the form?

d3fuse 10-05-2006 01:54 AM

What I have done was use two IF statements. The first IF statement checks to see if the forum is meant for the form. If it is, it displays the newthread button to the form page. The second IF statement checks to see if the forum is NOT meant for the form. If it is not, it displays the regular new thread button.

Shazz 10-05-2006 01:57 AM

Quote:

Originally Posted by d3fuse
What I have done was use two IF statements. The first IF statement checks to see if the forum is meant for the form. If it is, it displays the newthread button to the form page. The second IF statement checks to see if the forum is NOT meant for the form. If it is not, it displays the regular new thread button.

2 plugins for this?


All times are GMT. The time now is 01:11 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.02066 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
  • (3)bbcode_code_printable
  • (4)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