vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Contact Us Email Feedback Form (with IP address & status of sender) (https://vborg.vbsupport.ru/showthread.php?t=41791)

Tungsten 08-02-2002 07:06 PM

For what it's worth... I am having the same problem as Boofo. :confused:

Unknown553 08-02-2002 07:06 PM

Quote:

Originally posted by Erwin
Unknown553 - this hack is totally based on your great work, so all credit goes to you! :) All I did was stand on the shoulders of giants. :D Thanks for letting me share this with others.
But unfortunately your hack is getting the same bug as mine. I think my code is corrupt or something :cross-eyed:

freeshares1 08-02-2002 08:45 PM

This is great, I use it for a slightly different use (for people claiming cashback on my site) working example at http://www.gamblingforums.net/vbport...ms/contact.php

Erwin 08-03-2002 02:52 AM

Quote:

Originally posted by freeshares1
This is great, I use it for a slightly different use (for people claiming cashback on my site) working example at http://www.gamblingforums.net/vbport...ms/contact.php
Nice modification of the hack, freeshares1. :)

Boofo, can you post a screenshot of the error you get? I would like to see if I can work out why you have that bug. The contact form works fine on my site.

SuB_ZeR0 08-03-2002 03:12 AM

Can it be setup so that only registered users can use this function? I don't want unkown ppl spamming my inbox. I want to provide help to my members only. Thanks.

Erwin 08-03-2002 03:17 AM

To only allow registered members to use this:

In contact.php, find:

PHP Code:


if ($action == 'compose') { 

ABOVE it, add:

PHP Code:


if ($bbuserinfo[userid]) { 

Then find:

PHP Code:


?>
 

ABOVE it, add:

PHP Code:


} else {
    eval(
"dooutput(\"".gettemplate('contact_error')."\");");


Edit the contact_error template to include "you need to be registered to use our contact form" or something like that. Should work.

Erwin 08-03-2002 03:19 AM

Boofo, I went to your site and clicked on your "Contact Us" link. You're right, it goes straight to the error template.

http://www.bearfacts2.com/forum/contact.php

Very weird... It works for other members though... it has to be the way your forum is setup...

Boofo 08-03-2002 03:33 AM

Sorry, but it foesn't work for Tungsten, either, so it can't just be my setup. :)

Quote:

Originally posted by Erwin
Boofo, I went to your site and clicked on your "Contact Us" link. You're right, it goes straight to the error template.

http://www.bearfacts2.com/forum/contact.php

Very weird... It works for other members though... it has to be the way your forum is setup...


SuB_ZeR0 08-03-2002 03:37 AM

Erwin>> Thanks for the prompt reply ... I'll try it tonight.

Erwin 08-03-2002 03:39 AM

I suspect it may be your PHP version. What version does your server use?

It probably is the "if (!isset($action))" command that your site is having a problem with - since it doesn't recognise this line, it automatically goes to "action=send" and because you haven't filled out any fields yet, you go to the error message as not all fields are entered.

This can be avoided by dividing the contact.php to 2 files, and not use the action variable... but that doesn't really make sense, since other vb files surely use the same variable too.


All times are GMT. The time now is 01:46 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.01535 seconds
  • Memory Usage 1,744KB
  • 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
  • (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