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)

Mepher 10-10-2005 12:30 PM

PHP Code:

 $foruminfo verify_id('forum'901); 

Im assuming thats what you meant. 9 being the id of the other forum I wanted to post it to.

Quote:

Fatal error: Only variables can be passed by reference in /home/heroesfa/public_html/newthread.php(68) : eval()'d code on line 254
Thats the error im getting.

plubius 10-10-2005 01:24 PM

Could someone post exactly what you need to do to make more than one form? I know you need to copy the hook and change the name of the form in the first line of the code, but what about the line of code that deals with the templates.

Quote:

////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS
////////////////////////////////////////////////////////////////////////////////////////////////////

// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
What goes here?

If my new form has modapp in the first line what would I put here?

silurius 10-10-2005 03:37 PM

Quote:

Originally Posted by Abe1
Quote:

Originally Posted by silurius
...I seemed to have done something wrong and my forums will not load up the form no matter what. This is even after uninstalling the product, making sure it was not listed in product/plugin/styles, clearing my cache and reinstalling it again.

"Sorry! This forum is not accepting new posts." <- get this on DEFAULT installation now

What could I be missing?

It means the settings for the forum you want to post the thread in, dont allow you to post.

You sure there couldn't be another cause? I re-checked the permissions for the forum in question, and the form is definitely pointing to that.

Mepher 10-10-2005 05:00 PM

I got it working. Added the lines you said and changed $formforumid to $formforumid2 and just added that variable. Works great.

Is there an easy way to get a forum id? I assumed the ids just went in numerical order but they are ordered by when they were created. Had to do some quessing to get my the forumid right. Even though its listed last it was created before many others so the id numbers are strange. Maybe its just something im not seeing.

RMS-Chef 10-10-2005 06:26 PM

Quote:

Originally Posted by Mepher
I got it working. Added the lines you said and changed $formforumid to $formforumid2 and just added that variable. Works great.

Is there an easy way to get a forum id? I assumed the ids just went in numerical order but they are ordered by when they were created. Had to do some quessing to get my the forumid right. Even though its listed last it was created before many others so the id numbers are strange. Maybe its just something im not seeing.

Just hover your mouse over the forum in question and look at your browser status bar for the link.....or click the forum and look at the URL.

You will see:
Code:

?f={FORUMID#}
{FORUMID#} = the forum id

Mepher 10-10-2005 07:02 PM

Lol thanks RMS-Chef, now I feel like a total idiot =) I don't know why I didn't just think of that in the first place. I was kinda expecting it to display the forum ids in the Forum Management. /shrug.

silurius 10-10-2005 07:51 PM

So anyone have any idea I might be getting "Sorry! This forum is not accepting new posts." when the forum in question has no posting restrictions whatsoever?

WNxWakko 10-10-2005 11:32 PM

How can I make the Questions Bold or colored when its submitted into the thread?

RMS-Chef 10-11-2005 12:44 AM

Quote:

Originally Posted by WNxWakko
How can I make the Questions Bold or colored when its submitted into the thread?

You can use vBcode in your answer template.
There is one thing mentioned above, make sure there is a space after the last opening tag and before the first closing tag. Otherwise I think you get an error when you try to save the template.

An example taken from one of my answer templates:

HTML Code:

[center][u][b][size=5] $subjecttitleans [/size][/b][/u][/center]

$longanswer1

[center] _____________________________________________ [/center]

[b] $subjectdate [/b]: $subjectdateans
[b] $subjectlocation [/b]: $subjectlocationans
[b] $filesize [/b]: $filesizeans
[b] $fileruntime [/b]: $fileruntimeans
[b] $fileformat [/b]: $fileformatans

[center] _____________________________________________

[u][b][size=5] $longquestion2 [/size][/b][/u][/center]

$longanswer2

[center] _____________________________________________

[u][b][size=5] $longquestion3 [/size][/b][/u][/center]

$longanswer3


silurius 10-11-2005 12:55 AM

Quote:

Originally Posted by silurius
So anyone have any idea I might be getting "Sorry! This forum is not accepting new posts." when the forum in question has no posting restrictions whatsoever?

Er...anyone...?


All times are GMT. The time now is 08:13 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.03079 seconds
  • Memory Usage 1,752KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (7)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