Welcome, Guest. Please Login or Register.
November 17, 2024, 11:33:31 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  no name, email, anything Php script help « previous next »
Pages: [1] Reply Ignore Print
Author Topic: no name, email, anything Php script help  (Read 648 times)
cfranz
Noobie
*
Posts: 4


705th Elite

no name, email, anything Php script help
« on: May 29, 2003, 05:58:24 PM »
Reply with quote

Need PHP code to . . .
Im looking for when someone want to leave a message they don't have to do ANYTHING, just type a message and click post.
Guest is ON . . . They don't need to register, don't have to enter a name or email address to post, just type their lonely pathetic thoughts out and they click post, vola' they're message is up.

Please help a bass player, who wants to kill his guitar player, cuz his friends are so crappity smacking lazy they can't enter a name or email, or they so drunk they can't remember their name or email LOL.

Chris (www.shiftby3.com) *bass*
Logged
Metho
Sr. Member
****
Posts: 342


I'm a llama!

Re:no name, email, anything Php script help
« Reply #1 on: May 29, 2003, 06:03:31 PM »
Reply with quote

Not really sure if this is exactly what you're looking for, but two suggestions. If guest posting is on you could look into the quick reply mod, which just has box at the bottom of the thread where they reply like that. Of course, you can't start topics with it. That's at:http://www.yabbse.org/community/index.php?board=158;action=display;threadid=11379

Or, if you just want quick little talk between people maybe the shoutbox would work for you. That's at:http://www.yabbse.org/community/index.php?board=158;action=display;threadid=22454

Hope this helps,

Methonis
Logged

cfranz
Noobie
*
Posts: 4


705th Elite

Re:no name, email, anything Php script help
« Reply #2 on: May 29, 2003, 06:30:46 PM »
Reply with quote

Thanks, but really i want anyone who comes to our board to be able to post a message reply to a message start a new topic without have to put in a name or email.
any other suggestions on how to remove the check from the code in ? file
Logged
Aquilo
The Black Llama
Sr. Member
****
Posts: 416


Would'nt you like to be a llama too?

WWW
Re:no name, email, anything Php script help
« Reply #3 on: May 30, 2003, 06:38:41 AM »
Reply with quote

in Post.php you will find two(2) places like this:

   $name_field = ($realname == '' ? '
      <tr>
         <td align="right">
            <font size="2"><b>' . $txt[68] . ':</b></font>
         </td>
         <td>
            <font size="2"><input type="text" name="name" size="25" /></font>
         </td>
      </tr>' : '');

   $email_field = ($realemail == '' ? '
      <tr>
         <td align="right">
            <font size="2"><b>' . $txt[69] . ':</b></font>
         </td>
         <td>
            <font size="2"><input type="text" name="email" size="25" /></font>
         </td>
      </tr>' : '');


this can be edited to any thing becouse if the user is registered it's not going to show up at all, so you could edit it to something like:


   $name_field = ($realname == '' ? '
      <tr>
         <td align="right">
            <font size="2"><b>' . $txt[68] . ':</b></font>
         </td>
         <td>
            <font size="2"><input type="text" name="name" size="25" value="' . $username . '" /></font>
         </td>
      </tr>' : '');

   $email_field = ($realemail == '' ? '
      <tr>
         <td align="right">
            <font size="2"><b>' . $txt[69] . ':</b></font>
         </td>
         <td>
            <font size="2"><input type="text" name="email" size="25" value="' . $username . '@yoursite.com" /></font>
         </td>
      </tr>' : '');



hope this help!
Aquilo
Logged

[td][/td]
[td]
[/td][td][/td][/table]
cfranz
Noobie
*
Posts: 4


705th Elite

Re:no name, email, anything Php script help
« Reply #4 on: May 30, 2003, 11:42:17 PM »
Reply with quote

FIGURED IT OUT.

Just delete
   // If poster is a Guest then evaluate the legality of name and email
   if ($username == 'Guest')
   {
      $name = trim($name);
      if ($name == '' || $name == '_' || $name == ' ')
         fatal_error($txt[75]);

      if (strlen($name) > 25)
         fatal_error($txt[568]);

      if ($email == '')
         fatal_error($txt[76]);

      if (!preg_match("/^[0-9A-Za-z@\._\-]+$/", $email))
         fatal_error($txt[243]);
   }

   if (!empty($threadid) && !is_numeric($threadid))
      fatal_error($txt[337]);


No name or email or registration required.

THANK EVERYONE
« Last Edit: May 30, 2003, 11:48:13 PM by cfranz » Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  no name, email, anything Php script help « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.031 seconds with 21 queries.