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)

Stryker412 08-19-2008 07:06 PM

Quote:

Originally Posted by skulldred (Post 1602509)
Hi all

i have a question about the creation of a new thread.

PHP Code:

PHP Code:

//FORUM TO POST NEW THREAD IN
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
$formforumid "1"

When i set $formforumid = "1"; to //$formforumid = "1"; and open the link
how descript with do=form&f=1 nothing happens after saving. I receive the message box that all is ok but when i have a look no new thread. Have you an idea why this happen? I see in the info text that i have to set the variable but also when i open the form with the link?

Thanks for your help

If you set it to //$formforumid = "1" you are cancelling out that line, so effectively it's not posting it at all. You have to go into your admincp and look at your forum manager from there determine what the forumid is and set that line to the corresponding # and it will post within that forum.

skulldred 08-19-2008 07:21 PM

ok that's clear but whats with this: You can have a drop down menu or in the link like do=form&f=1. I think that mean i can give the forumID information over the link? On this way i have to create only one form and not for each Forum one...

Stryker412 08-19-2008 07:32 PM

Not really sure what that is, maybe the others can chime in.

farplane dragon 08-20-2008 02:06 AM

alright, I'm getting a bit frustrated here. It seems that no matter what I do, I just can't get this to work, I'm getting two errors.

Code:

Parse error: syntax error, unexpected T_STRING in /home/.earthworms/archaicstudios/archaicstudios.net/testvb/testforums/newthread.php(74) : eval()'d code on line 190
and

Code:

Invalid Forum specified. If you followed a valid link, please notify the administrator
If I didn't have so much patience, I'd have given up on this so called "easy" hack. Yeah, easy if you don't change anything but the text, but after that, it just seems to complicate itself. Can someone give me a hand with this?

ccplim 08-20-2008 03:52 AM

No offence on this but before we start pouring out the solutions, you might want to had another good look at the codes in your plugin again.

I had a look at it and discovered a few missing items like ", ; and :. :)

Quote:

Originally Posted by farplane dragon (Post 1602762)
alright, I'm getting a bit frustrated here. It seems that no matter what I do, I just can't get this to work, I'm getting two errors.

Code:

Parse error: syntax error, unexpected T_STRING in /home/.earthworms/archaicstudios/archaicstudios.net/testvb/testforums/newthread.php(74) : eval()'d code on line 190
and

Code:

Invalid Forum specified. If you followed a valid link, please notify the administrator
If I didn't have so much patience, I'd have given up on this so called "easy" hack. Yeah, easy if you don't change anything but the text, but after that, it just seems to complicate itself. Can someone give me a hand with this?


skulldred 08-20-2008 09:42 AM

Nobody knows the way over do=form&f=1? It makes a lot easier with this form... Or is there a way to to take the address in to a variable? Or is there alredy a variable? So i can take the informations from the address...

[H]Dazz 08-20-2008 11:01 AM

Does anyone know if this works with 3.7.x?

farplane dragon 08-20-2008 11:02 AM

Quote:

Originally Posted by ccplim (Post 1602810)
No offence on this but before we start pouring out the solutions, you might want to had another good look at the codes in your plugin again.

I had a look at it and discovered a few missing items like ", ; and :. :)

That's because I'm not a coder, it's not that I haven't looked over my code, it's that I have no idea where stuff is missing. I've done a little bit of code editing in the past, but nothing like I've had to do with this.

edit: I went through the 3 forms again, I fixed some of the variables on the answer form, and found some missing ; on the hook, but I have no idea if anything is wrong with the template or what else is missing. Just to note, I haven't edited the imported xml file if that makes a difference.

BlueBulletRL 08-20-2008 12:21 PM

Hey I'm trying to get this to work with cyb advanced permissions based on post count and I'm having trouble. Anyone have any idea why? I've tried changing the execution order and it did not work. Still lets me post.

ccplim 08-20-2008 01:22 PM

Quote:

Originally Posted by farplane dragon (Post 1602988)
That's because I'm not a coder, it's not that I haven't looked over my code, it's that I have no idea where stuff is missing. I've done a little bit of code editing in the past, but nothing like I've had to do with this.

edit: I went through the 3 forms again, I fixed some of the variables on the answer form, and found some missing ; on the hook, but I have no idea if anything is wrong with the template or what else is missing. Just to note, I haven't edited the imported xml file if that makes a difference.

Frankly speaking, when I posted the previous reply, I haven't even open up your form and formanswers template and look at their contents yet.

I am also not a coder myself but it is through this mod that I started to have more ideas on php, html, and javascripts.

Anyway, I have re-attached your plugin that I have edited. I have not tested it on my test site yet but I believed it should work (unless I happened to miss out any spot due to my tired eyes).

Good luck.


All times are GMT. The time now is 11:07 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.03743 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_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