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)

pipin 12-19-2005 09:14 AM

Similar thing like Spinball:

Wondering if i cant add the threadid in the form call like do=form&threadid=123766 to post the answers in that thread.
any change that i can adjust it to it and a hint - if possible - how?

Abe1 12-19-2005 12:04 PM

Quote:

Originally Posted by pipin
Similar thing like Spinball:

Wondering if i cant add the threadid in the form call like do=form&threadid=123766 to post the answers in that thread.
any change that i can adjust it to it and a hint - if possible - how?

In the URL have $t=

In the plugin, have the threadid equal $threadinfo[threadid]

Abe1 12-19-2005 12:43 PM

Version 3.3: (12/19/2005)
  • [FIXED] Guests can now post using the forms to make a thread or post. They cannot send a PM though.
  • [ADDED] Paypal link so you can make a donation for this hack.

pipin 12-19-2005 01:55 PM

Quote:

Originally Posted by Abe1
In the URL have $t=

In the plugin, have the threadid equal $threadinfo[threadid]

so i do this:

Code:

//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum = "0";


//ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no
$formreply = "1";

//EXISTING THREAD ID FOR FORM TO REPLY IN
$formreplythreadid = $threadinfo[threadid];


Opening the form with
http://www.xx
.xxx/vbulletin//newthread.php?do=form&$t=84

causes
Warnung
: Cannot use a scalar value as an array in /includes/functions_newpost.php (Zeile 258)

setting $formreplythreadid = "84"; works

Abe1 12-19-2005 01:57 PM

Quote:

Originally Posted by pipin
so i do this:

Code:

//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum = "0";


//ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no
$formreply = "1";

//EXISTING THREAD ID FOR FORM TO REPLY IN
$formreplythreadid = $threadinfo[threadid];


Opening the form with
http://www.xx
.xxx/vbulletin//newthread.php?do=form&$t=84

causes
Warnung
: Cannot use a scalar value as an array in /includes/functions_newpost.php (Zeile 258)

setting $formreplythreadid = "84"; works

Link should be:
http://www.xx.xxx/vbulletin//newthread.php?do=form&t=84

pipin 12-19-2005 02:01 PM

Quote:

Originally Posted by Abe1


still the same:

Warnung: Cannot use a scalar value as an array in /includes/functions_newpost.php (Zeile 258)

Quote:

Datenbankfehler in vBulletin 3.5.2:

Invalid SQL:
SELECT postid FROM post WHERE threadid= ORDER BY dateline LIMIT 1;

MySQL-Fehler : You have an error in your SQL syntax near 'ORDER BY dateline LIMIT 1' at line 1
Fehler-Nr. : 1064

Noonster 12-19-2005 04:58 PM

[ADDED] Paypal link so you can make a donation for this hack.

^^ I cant seem to find that or how to do it :( - Any ideas??

Abe1 12-19-2005 05:57 PM

Quote:

Originally Posted by Noonster
[ADDED] Paypal link so you can make a donation for this hack.

^^ I cant seem to find that or how to do it :( - Any ideas??

It's at the bottom of my first listing.

Stachel 12-19-2005 06:17 PM

Thanks for this Abe1 !

Stachel

Spinball 12-19-2005 08:13 PM

Quote:

Originally Posted by pipin
still the same:

Warnung: Cannot use a scalar value as an array in /includes/functions_newpost.php (Zeile 258)

That's the same kind of error I'm getting.


All times are GMT. The time now is 12:44 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.01629 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
  • (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