Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Feedback form Details »»
Feedback form
Version: , by Vinney Vinney is offline
Developer Last Online: Sep 2006 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-23-2002 Last Update: Never Installs: 0
 
No support by the author.

am trying to create a feedback from for my forum users.


http://forum.peugeot-gti.net/mail.php

i cant get the mailing part to work ... and send all the 'bits' of input.

What is the best way for me to do this ....

can anyone help.


this is wot i have

in my mail.php i have

PHP Code:
<?php
error_reporting
(7);

require(
'global.php');
chdir('/home/virtual/site5/fst/var/www/html/mailer/'); 
require (
"config.php") ;

eval(
"\$header = \"".gettemplate('header')."\";");
eval(
"\$headinclude = \"".gettemplate('headinclude')."\";");

$title="Peugeot GTi Autosport Forum -  Forum Account Validation";
eval(
"\$page = \"".gettemplate('mailer')."\";");

eval(
"dooutput(\"".gettemplate('engine')."\");");

?>

in my mailer template i have :

Code:
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
        <td width="100%"><img src="{imagesfolder}/vb_bullet.gif" alt="open forum" border="0" align="absmiddle">
        <normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt <a href="mail.php?s=$session[sessionhash]">Forum Account Validation</a></b></normalfont></td>
</tr>
</table>
<br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
    <td bgcolor="{categorybackcolor}" colspan="6">
        <normalfont color="{categoryfontcolor}"><b>
        Forum Account Validation</b></normalfont>
    </td>
</tr>
<tr>
    <td bgcolor="{firstaltcolor}" colspan="6"><smallfont>
<normalfont color="{categoryfontcolor}">
&nbsp;<p style="margin-top: 0; margin-bottom: 0">If you are a member of the PGAC 
    you are entitled to unrestricted access to the technical sections of the 
    forum. </p>
    <p style="margin-top: 0; margin-bottom: 0">To obtain full access you must 
    follow the instructions detailed below:-</p>
    <ol>
      <li>
      <p style="margin-top: 0; margin-bottom: 0">Create a forum account (if you do not have one) and remember your user name 
    and password <br>
    &nbsp;</li>
      <li>
      <p style="margin-top: 0; margin-bottom: 0">Add your membership number and expiry date to your forum profile. To access 
    your profile you must click the user cp link at the top of the page. <br>
    &nbsp;</li>
      <li>
      <p style="margin-top: 0; margin-bottom: 0">If you have joined online please follow the above instructions and quote the 
    last 5 digits of your online receipt and type 'joined online' in the expiry 
    date. <br>
    &nbsp;</li>
      <li>
      <p style="margin-top: 0; margin-bottom: 0">Members who join online must later return to their profile and add their 
    membership number / expiry date once received. <br>
&nbsp;</li>
    </ol>
    <p style="margin-top: 0; margin-bottom: 0">Once you have completed the relevant sections about please complete this 
    form which informs PGAC management that your account is ready for</p>
    <p style="margin-top: 0; margin-bottom: 0">&nbsp;validation. Please note 
    validation is usually completed within 48 hours.<br>
    </p>
    </p>
</normalfont>
</td>
</tr>
</table>
</table>
<br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
    <td bgcolor="{categorybackcolor}" colspan="6">
        <normalfont color="{categoryfontcolor}"><b>
        The Form</b></normalfont>
    </td>
</tr>
<tr>
    <td bgcolor="{firstaltcolor}" colspan="6"><smallfont>
<normalfont color="{categoryfontcolor}">
<p>
<form method=post action="mailer/mailer.php">
<div align="center">
  <center>
<table style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
<tr>
<td>Your name:
</td>
<td>
<input type="text" size="30" name="name">
</td>
</tr>
<tr>
<td>M/ship / Full Receipt No</td>
<td>
<input type="text" size="30" name="mship">
</td>
</tr>
<tr>
<td>Expiry Date ( If applicable)</td>
<td>
<input type="text" size="30" name="expiry">
</td>
</tr>
<tr>
<td>Have you just joined Online?</td>
<td>
<select name="online" size="1">
    <option>Yes</option>
    <option>No</option>
    </select>
</td>
</tr>
<tr>
<td>
Forum username</td>
<td>
<input type="text" size="30" name="username" value="$bbuserinfo[username]">
</td>
</tr>
<tr>
<td>
Your email address:
</td>
<td>
<input type="text" size="30" name="email">
</td>
</tr>
<tr>
<td>
<input type="hidden" size="30" name="subject" value="Forum Account Validation">
</tr>
<tr>
<td>
Your message:
</td>
<td>
<textarea name="message" rows=10 cols=50></textarea>
</td>
</tr>
</table>
  </center>
</div>
<p align="center">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Reset" value="Reset"></p>
</form>
</normalfont>
</td>
</tr>

and my mailer.php contains :

PHP Code:
<html>
<head>
<title>

<?php
require "config.php" ;
?>
</title>
</head>
<body>


<?php
$send 
mail($receiver,$subject,$message,$mship,"From: $email\r\n" .
"Reply-To: $email\r\n" .
"X-Mailer: PHP/" phpversion());
if (
$send=)
print 
"Your email has been send!" ;
else
print 
"Something went wrong, \"Houston, we've got a problem\" "
?>

</body>
</html>


Now i understand there is probably an easyer way of doing this.

If so ... how

Also i'd like it so only logged in forum users can use it.


Please help it would be much appricated.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-24-2002, 10:53 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

editing the report.php may help you better instead of coding it from the begining..
Reply With Quote
  #3  
Old 06-24-2002, 03:58 PM
Vinney Vinney is offline
 
Join Date: Nov 2001
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician
editing the report.php may help you better instead of coding it from the begining..
thanks for the pointer ... but wot i exactly need to do ..


i aint got a clue.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04465 seconds
  • Memory Usage 2,230KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete