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)

Marco van Herwaarden 07-20-2005 06:35 AM

Quote:

Originally Posted by Sovereign
Uhh, the install says that this is compliant with vB version 3.x.x, but I get

Code:

Fatal error: Call to undefined function: globalize() in /home/alliance/public_html/vb/hostingrequest.php on line 24
when attempting to use the test form....(I'm on 3.5)

I am afraid that this thread was posted before anybody had knowledge of the upcoming vB3.5.

I guess it should read that this hack will work on any vB3.0.x version.

csidlernet 07-20-2005 07:55 AM

preety cool. *installs*

Sovereign 07-20-2005 01:30 PM

I saw the same error in Erwin's POP3/IMAP hack, something with "globalize" being undefined....

Abe1 07-20-2005 01:43 PM

Quote:

Originally Posted by Sovereign
I saw the same error in Erwin's POP3/IMAP hack, something with "globalize" being undefined....

Because you installed this hack on a vb3.5 forum. This hack only works on a vb3.0 forum

Sovereign 07-20-2005 04:56 PM

Is there a way around that? And besides, the hack readme says for vB 3.x.x! (I know now that this was before any info on the actual 3.5 became availible, but I thought I'd give it a shot.)

Abe1 07-20-2005 07:03 PM

Quote:

Originally Posted by Sovereign
Is there a way around that? And besides, the hack readme says for vB 3.x.x! (I know now that this was before any info on the actual 3.5 became availible, but I thought I'd give it a shot.)

The only way around it wait for an update. I contacted the developer if he minds if I come out with an update for this but I didn't here back from him yet.

ZGeek 07-21-2005 03:55 AM

I have a weird problem I wonder if anyone can help. I converted my mail system so the form answers are emailed in HTML format. Unfortunately I sometimes get strange "!" marks appearing in the code. They are random and only appear in emails. The forms post perfectly in the forums.

Any ideas?

PKRWUD 07-21-2005 12:04 PM

I'm sorry if it's been covered, but I can't afford the time to read all 32 pages. I am trying to use this form for all replies to a specific thread. It's thread #18579 in forum #40. How do I set things up so that when someone hits the reply button in that thread, they are taken to the form?

Santhalas 07-23-2005 05:41 PM

Is this hack compatible with 3.0.7? I tried installing it exactly as it says in the instructions, but all I'm getting is a blank page...

Edit: Solved the problem on my own, actually. Thanks!

kvnband 07-25-2005 01:54 AM

For all those wanting moderation, I've got it for ya! The following code places the THREAD into moderation que. It appears to work flawlessly.

in form.php, find

Code:

                $DB_site->query("
                                UPDATE " . TABLE_PREFIX . "forum
                                SET replycount = replycount +  1,
                                threadcount = threadcount + 1,
                                lastpost = " . TIMENOW . ",
                                lastposter = '" . addslashes($bbuserinfo['username']) . "',
                                lastthread = '".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle',
                                lastthreadid = $thread[threadid]
                                WHERE forumid = $formforumid
                        ");

and delete it. Then find

Code:

                $post['postid'] = $DB_site->insert_id();
                $DB_site->query("
                                UPDATE " . TABLE_PREFIX . "thread
                                SET firstpostid = $post[postid]
                                WHERE threadid = $thread[threadid]
                        ");

AFTER, ADD

Code:

//Added By Kevin
//Add Thread To Moderation Que

                                $DB_site->query("
                        INSERT INTO " . TABLE_PREFIX . "moderation(threadid, postid, type)
                        VALUES
                                ($thread[threadid], $post[postid], 'thread')
                ");
               
//End Added By Kevin


Now, if the thread is in moderation que, you don't want it to show up as visible in your forums, do you? So, in

Code:

$DB_site->query("
                        INSERT INTO " . TABLE_PREFIX . "post
                                (threadid, title, username, userid, dateline, pagetext, allowsmilie,
                                showsignature, iconid, visible)
                        VALUES......addslashes($bbuserinfo['username']) . "', $bbuserinfo[userid], " . TIMENOW . ",
                                '" . addslashes($formsend) . "', 1, 1,
                                0, 1)
                ");

at the end there, instead of it being 1, 1, 0, 1, make it 1, 1, 0, 0. Then, right above there, change the numbers at the end of

Code:

$DB_site->query("
                                INSERT INTO " . TABLE_PREFIX . "thread(title, lastpost, forumid, open, replycount,
                                postusername, postuserid, lastposter, dateline, iconid, visible, attach)
                                VALUES
                                        (.... " . TIMENOW . ", $formforumid,
                                        0, 0, '" . addslashes($bbuserinfo['username']) . "', $bbuserinfo[userid],
                                        '" . addslashes($bbuserinfo['username']) . "', " . TIMENOW . ", 0, 1, 0)
                        ");

to 0, 0, 0.

I'm sorry if this is confusing...It probably is. But Just wanted to give everyone else a chance to add threads to the moderation que.

Kevin


All times are GMT. The time now is 11: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.01633 seconds
  • Memory Usage 1,756KB
  • 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
  • (6)bbcode_code_printable
  • (3)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
  • (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