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)

xOzzie 01-12-2006 09:35 AM

I had this working OK on my forum (very nice hack, btw!).

As I was fooling around with it on my test forum, I uninstalled it using the Manage Products area of the admincp, then reinstalled the same .xml product.

However, now when I try to navigate to /newthread/php?do=form I get
Code:

Invalid Forum specified. If you followed a valid link, please notify the administrator
and a parsing error at the top of the page
Code:

Parse error: parse error, unexpected '\"' in /home/mysite/public_html/forums/newthread.php(68) : eval()'d code on line 89
I've checked and rechecked everything I can think of and still can't get it working again despite multiple attempts to upload and overwrite. Again this is the identical .xml file that I had working fine but now won't function. Any ideas?

/edit - uploading the original package works so I must have inadvertently created an error in my modified file. :(

puertoblack2003 01-13-2006 01:27 AM

Quote:

Originally Posted by xOzzie
I had this working OK on my forum (very nice hack, btw!).

As I was fooling around with it on my test forum, I uninstalled it using the Manage Products area of the admincp, then reinstalled the same .xml product.

However, now when I try to navigate to /newthread/php?do=form I get
Code:

Invalid Forum specified. If you followed a valid link, please notify the administrator
and a parsing error at the top of the page
Code:

Parse error: parse error, unexpected '\"' in /home/mysite/public_html/forums/newthread.php(68) : eval()'d code on line 89
I've checked and rechecked everything I can think of and still can't get it working again despite multiple attempts to upload and overwrite. Again this is the identical .xml file that I had working fine but now won't function. Any ideas?

/edit - uploading the original package works so I must have inadvertently created an error in my modified file. :(






i'm having the same issue but on fresh install any fix or can anybody look a the script.

D.Ilyin 01-13-2006 04:35 AM

Quote:

Originally Posted by nievesidenshop
i'm having the same issue but on fresh install any fix or can anybody look a the script.

1.
Code:

$formname = Staff Application;
to
Code:

$formname = "Staff_Application";
Variables can't have spaces!!!
2.
Code:

// Name of the main template
$maintemplate = Puerto [BluePoison];
// Name of the answer template
$answertemplate = Puerto [BluePoison];

$maintemplate and $answertemplate - should be diference!!!! And whithout spaces!
3.
Code:

$formforumid = 96;
Check that you have this forum ID!
4.
Code:

$formtitle = Staff Application;
$posttitle = Staff Application;
$formpurpose = The.......
$normalquestion1 = Can you........

......
and so.....

the same as first
5.
Code:

if ($_REQUEST['action'] == '')
{
  $_REQUEST['action'] = "form";
}

red - you form name! so it must be "Staff_Application"
6.
Code:

eval('$formsend = "' . fetch_template("$answertemplate") . '";');
must be your template name
7.
Code:

if ($_REQUEST['action'] == 'form')
{
                          // set message box width to usercp size

the same as 5.
8.
Code:

eval('print_output("' . fetch_template("$maintemplate") . '");');
the same sa 6

--------------------------------------------------------------
hmmmmm..... try to fix it :)

D.Ilyin 01-13-2006 04:38 AM

Quote:

Originally Posted by xOzzie
I had this working OK on my forum (very nice hack, btw!).

As I was fooling around with it on my test forum, I uninstalled it using the Manage Products area of the admincp, then reinstalled the same .xml product.

However, now when I try to navigate to /newthread/php?do=form I get
Code:

Invalid Forum specified. If you followed a valid link, please notify the administrator
and a parsing error at the top of the page
Code:

Parse error: parse error, unexpected '\"' in /home/mysite/public_html/forums/newthread.php(68) : eval()'d code on line 89
I've checked and rechecked everything I can think of and still can't get it working again despite multiple attempts to upload and overwrite. Again this is the identical .xml file that I had working fine but now won't function. Any ideas?

/edit - uploading the original package works so I must have inadvertently created an error in my modified file. :(

try find answers in my post above and than if errors still be, attach you *.xml

HaMaDa4eVeR 01-13-2006 09:41 AM

Quote:

Originally Posted by HaMaDa4eVeR
Hello
I got this error message :
Parse error: parse error, unexpected T_STRING in

and when I try to open newthread.php?do=form I will get this error



althouth everything is right and I changed the formforumid to the my specified forum id ?????

I'm still Facing this proplem !

steven s 01-13-2006 09:46 AM

Quote:

Originally Posted by HaMaDa4eVeR
I'm still Facing this proplem !

Having the wrong forum name would just give you 'Invalid Forum specified. If you followed a valid link, please notify the administrator'.

When you edited the form script, did it compile correctly, no errors?

xOzzie 01-13-2006 10:14 AM

Quote:

Originally Posted by D.Ilyin
try find answers in my post above and than if errors still be, attach you *.xml

Thanks for the response. I just re-modified a working 'original' .xml file and all is well. I believe I must have induced an error as I was modifying the file.

puertoblack2003 01-13-2006 10:32 AM

Quote:

Originally Posted by D.Ilyin
1.
Code:

$formname = Staff Application;
to
Code:

$formname = "Staff_Application";
Variables can't have spaces!!!
2.
Code:

// Name of the main template
$maintemplate = Puerto [BluePoison];
// Name of the answer template
$answertemplate = Puerto [BluePoison];

$maintemplate and $answertemplate - should be diference!!!! And whithout spaces!
3.
Code:

$formforumid = 96;
Check that you have this forum ID!
4.
Code:

$formtitle = Staff Application;
$posttitle = Staff Application;
$formpurpose = The.......
$normalquestion1 = Can you........

......
and so.....

the same as first
5.
Code:

if ($_REQUEST['action'] == '')
{
  $_REQUEST['action'] = "form";
}

red - you form name! so it must be "Staff_Application"
6.
Code:

eval('$formsend = "' . fetch_template("$answertemplate") . '";');
must be your template name
7.
Code:

if ($_REQUEST['action'] == 'form')
{
                          // set message box width to usercp size

the same as 5.
8.
Code:

eval('print_output("' . fetch_template("$maintemplate") . '");');
the same sa 6

--------------------------------------------------------------
hmmmmm..... try to fix it :)




Thank you sir for your time :rolleyes: i will tried that when i get home..will keep you posted :ermm:

jilly 01-13-2006 02:10 PM

My moderator form goes to a private moderator board, and all the posts are coming through as 'moderated', even though the forum is not set that way - the forums settings say 'no' to all the moderation questions.. and the people submitting the forms are NOT on moderated status.. Any ideas?

puertoblack2003 01-13-2006 08:41 PM

Quote:

Originally Posted by D.Ilyin
1.
Code:

$formname = Staff Application;
to
Code:

$formname = "Staff_Application";
Variables can't have spaces!!!
2.
Code:

// Name of the main template
$maintemplate = Puerto [BluePoison];
// Name of the answer template
$answertemplate = Puerto [BluePoison];

$maintemplate and $answertemplate - should be diference!!!! And whithout spaces!
3.
Code:

$formforumid = 96;
Check that you have this forum ID!
4.
Code:

$formtitle = Staff Application;
$posttitle = Staff Application;
$formpurpose = The.......
$normalquestion1 = Can you........

......
and so.....

the same as first
5.
Code:

if ($_REQUEST['action'] == '')
{
  $_REQUEST['action'] = "form";
}

red - you form name! so it must be "Staff_Application"
6.
Code:

eval('$formsend = "' . fetch_template("$answertemplate") . '";');
must be your template name
7.
Code:

if ($_REQUEST['action'] == 'form')
{
                          // set message box width to usercp size

the same as 5.
8.
Code:

eval('print_output("' . fetch_template("$maintemplate") . '");');
the same sa 6

--------------------------------------------------------------
hmmmmm..... try to fix it :)





ok did everything possible to get it right but no luck now i hav ethis error message...

PHP Code:

Parse errorparse errorunexpected T_CONSTANT_ENCAPSED_STRING in /home/.debit/puertoblack2003/puertotech.com/newthread.php(68) : eval()'d code on line 9 

next step please :ermm:


All times are GMT. The time now is 02:52 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.02363 seconds
  • Memory Usage 1,775KB
  • 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
  • (33)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)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