vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   FORM to THREAD/ FORUM/ POLL/ PM/ EMAIL - CUSTOMIZABLE FORMS - Mod Apps, Orders, News. (https://vborg.vbsupport.ru/showthread.php?t=66082)

Erwin 08-25-2004 03:46 AM

Quote:

Originally Posted by mOdEtWo
Nope, prefix is "vb3". Name is "forum".

Strange thing, "post a new thread" works, but not "reply to a thread". My post table is there, hehe. ;)

Although your prefix is 'vb3' for some reason the code is looking for the post table with the prefix 'forums' - look at your error message:

Quote:

mysql error: Table 'forums.post' doesn't exist
It should say 'vb3.post' not 'forums.post' shouldn't it?

Isaiah33 08-25-2004 04:01 AM

Erwin.... I want to know if you can a part where guest can apply to get into the board. And with the poll option we select yes they shall get a email that says they got accept and gives a random password or a password they selcted. And if the voters say no they get a email that he got decilned. but it doesnt send email untill the poll gets enough votes or admin auto matic selects a button that accepts with out reaching the # of required yes.

mfowler70 08-25-2004 01:04 PM

Works great!

Erwin 08-26-2004 12:25 AM

Quote:

Originally Posted by Isaiah33
Erwin.... I want to know if you can a part where guest can apply to get into the board. And with the poll option we select yes they shall get a email that says they got accept and gives a random password or a password they selcted. And if the voters say no they get a email that he got decilned. but it doesnt send email untill the poll gets enough votes or admin auto matic selects a button that accepts with out reaching the # of required yes.

Anything is possible with coding. :) But that's a totally different and very customized feature you're asking for - not hard to do, but I won't be doing it.

Isaiah33 08-26-2004 08:02 AM

theres no way you can do becuase i suck being a coder and i know i wouldn't be able to.

oldford 08-27-2004 02:08 AM

Quote:

Originally Posted by oldford
I thought that was to insert one form result into two different forums at the same time? Maybe I'm wrong?

All I'm talking about is the redirect code when you click on "New Thread". I have different form.php files for each forum. I just need the redirect to understand that if it's forumid 123 then clicking on "New Thread" should redirect to form123.php. And if it's forumid 456 it should go to form456.php

Does anyone else have any thoughts on this code? PKRWUD seemed pretty close, but I still got errors. Thanks!

PKRWUD 08-27-2004 03:54 AM

Quote:

Originally Posted by Virulent1
nvm all set

I'm sorry, I've been away from my Mac for a few days. I just looked at the code I posted for you, and for the first time saw all those "+" signs. That's what I get for re-writing it for you in a text app instead of BBEdit! My bad. I'm glad you got it figured out!

:)

alqadir 08-27-2004 09:57 PM

Quote:

Originally Posted by PKRWUD
This is how I did it...

In Forumdisplay template, find:
Code:

<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]">
And replace it with:
Code:

<a href="<if condition="$foruminfo['forumid'] == xx">form.php<else />newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]</if>">
Except you would sustitute your forum ID where it says xx. Works excellent.

can i send variables in the form.php. ie. if i made a link that said
<a href="form.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]">

Can I access the forumid variable inside the form.php?
Will the form.php call work?

I am essentially trying to override the newthread.php.

Thanks for all your help so far.

SnowBot 08-28-2004 03:01 AM

If i choose this option in the form.php file

Quote:

//REDIRECT OPTIONS:
// 0 - thank you message
How can i add the navbar and a link back to the forum? Like a " Click Here to return to the forum"

Thanks

Snowy

PKRWUD 08-28-2004 03:16 AM

Quote:

Originally Posted by SnowBot
If i choose this option in the form.php file



How can i add the navbar and a link back to the forum? Like a " Click Here to return to the forum"

Thanks

Snowy


Add $navbar directly underneath $header in the Form template.


All times are GMT. The time now is 03:20 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.01397 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)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
  • (2)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