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)

Abe1 12-16-2005 11:54 AM

Quote:

Originally Posted by utw-Mephisto
Just a question for understanding, to change the actuall look of the created form I need to modify the template ?

Yes.

BiReL41r 12-16-2005 07:51 PM

Wow, yet another great hack. Best hack for applications to a website.

dsotmoon 12-17-2005 07:06 PM

wow, how have i missed this all this time, will install today, thanks

silurius 12-17-2005 07:48 PM

Abe did you post a PayPal link? I'd like to tip as this has been a great help to my project.

Abe1 12-17-2005 09:44 PM

Quote:

Originally Posted by silurius
Abe did you post a PayPal link? I'd like to tip as this has been a great help to my project.

Thanx alot, it would be appreciated. I just posted a link in the main post.

cclaerhout 12-18-2005 12:51 PM

Quote:

Originally Posted by Abe1
Thanx alot, it would be appreciated. I just posted a link in the main post.

Thanks for this great hack.
I have just a little question

When i'm connected as a guest and try to submit the form :
email sending is working
pm sending is not working
opening a new thread in a specified forum is not working.

But all theses tree functions are working if i'm connected as a member.

I've given guests the ability to "open" new threads in the specified forum (but they still can't see the forum), but it still doesn't work.

And i don't know why PM sending by a guest don't work.

Where did i make a mistake ? ;)

Abe1 12-18-2005 03:09 PM

Quote:

Originally Posted by cclaerhout
Thanks for this great hack.
I have just a little question

When i'm connected as a guest and try to submit the form :
email sending is working
pm sending is not working
opening a new thread in a specified forum is not working.

But all theses tree functions are working if i'm connected as a member.

I've given guests the ability to "open" new threads in the specified forum (but they still can't see the forum), but it still doesn't work.

And i don't know why PM sending by a guest don't work.

Where did i make a mistake ? ;)

I never realy did tests with Guests. I will soon try to by pass all the vb permissions but still use their functions so everything goes smoothly.

Guests can't send PM's as far as I know.

Spinball 12-18-2005 05:06 PM

Apologies, Abe (and others), but I need a bit of help, please.
I want to call the form with a passed forum number.
I have put the variable in thus:
PHP Code:

// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'advert_type' => TYPE_STR,
'advert_title' => TYPE_STR,
'location' => TYPE_STR,
'confirmation' => TYPE_STR,
'f' => TYPE_STR
));

// Part 2
$advert_type $vbulletin->GPC['advert_type'];
$advert_title $vbulletin->GPC['advert_title'];
$location $vbulletin->GPC['location'];
$confirmation $vbulletin->GPC['confirmation'];
$f $vbulletin->GPC['f']; 

and
PHP Code:

$formforumid $f;
if (
strlen($formforumid) == 0) {
   
$errormessage $vbulletin->userinfo['username'] . ", Fatal Error - please contact admin and tell them the formforumid variable was blank when trying to create a new classified advert.  Thanks!";
   eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
   exit();


Yet when I call the script thus:
http://www.avforums.com/forums/newth...eds_form&f=115
I get the error message.
If I hard code the forum number in, it works perfectly.
Why is $f null?
Thanks in advance.

Abe1 12-18-2005 05:51 PM

Quote:

Originally Posted by Spinball
Apologies, Abe (and others), but I need a bit of help, please.
I want to call the form with a passed forum number.
I have put the variable in thus:
PHP Code:

// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'advert_type' => TYPE_STR,
'advert_title' => TYPE_STR,
'location' => TYPE_STR,
'confirmation' => TYPE_STR,
'f' => TYPE_STR
));

// Part 2
$advert_type $vbulletin->GPC['advert_type'];
$advert_title $vbulletin->GPC['advert_title'];
$location $vbulletin->GPC['location'];
$confirmation $vbulletin->GPC['confirmation'];
$f $vbulletin->GPC['f']; 

and
PHP Code:

$formforumid $f;
if (
strlen($formforumid) == 0) {
   
$errormessage $vbulletin->userinfo['username'] . ", Fatal Error - please contact admin and tell them the formforumid variable was blank when trying to create a new classified advert.  Thanks!";
   eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
   exit();


Yet when I call the script thus:
http://www.avforums.com/forums/newth...eds_form&f=115
I get the error message.
If I hard code the forum number in, it works perfectly.
Why is $f null?
Thanks in advance.

You can't use 'f'. It is reserved for a fourmid.

cclaerhout 12-18-2005 05:55 PM

Quote:

Originally Posted by Abe1
You can't use 'f'. It is reserved for a fourmid.

Thanks for your answer Abe1. I'm waiting after your tests :)


All times are GMT. The time now is 11:09 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.01900 seconds
  • Memory Usage 1,766KB
  • 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_php_printable
  • (6)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