Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
Contact the Webmasters of RCFContact   Invite a friend to Join usRecommend   Chat in IRCChat   EZ Template Change OptionEZStyle   Listen to Internet Radio while you browse...iRadio   See your private message.Login for PMs   Important LinksLinks
Member Website LinksWeb Links   Play/View our GamesGames   Register.Register
calendar_open_closeCalendar 
Privet Message mod needed
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Privet Message mod needed
PostPosted: 09/06/2006 8:18 PM Reply with quote
Hummingbird
supersuineg
Hummingbird
Posts 2
Word Cnt. 493
BDay Jan 2
Sign Capricorn
Joined: Jan 07, 2006
Local time: 11:04 AM
usaCa.gif
Privet Message mod needed
Hi all I’m looking for a mod for the PM subject line. As you know phpbb won’t let a pm send with out a subject line. Here’s what I did, I went in to the privmsg.php and took out the line
$privmsg_subject = trim(strip_tags($HTTP_POST_VARS['subject']));
       if ( empty($privmsg_subject) )
       {
           $error = TRUE;
           $error_msg .= ( ( !empty($error_msg) ) ? '
' : '' ) . $lang['Empty_subject'];
       }

Not a wise thing to do, no code no subject line, it will send the pm, however with out the line there’s nothing to click on so you can’t open the pm. My bad, I meant well, this leaves me with what I wanted to do in the first place and that is to put the date and time for in the subject line as the default subject line.
That way if my users do not wish to put a subject the forum will just put the date/time and send the dang thing on its marry way. I could not find a mod on php.com or phpbbhacks.com not even on google.
Not all hope is lost though because I know if there is a mod out there you guys and girls will have it, if not the wonderful people here at RoseBud can make it. (Or tell me how)  
Lots of Love
Super
Back to Top
View user's profile Find all posts by supersuineg Send private message  
Re: Privet Message mod needed
PostPosted: 09/07/2006 1:34 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,678
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 7:04 AM
Location: St Pete, FL
peace.gif
You could try this:

OPEN
privmsg.php

FIND
Code:
      if ( empty($privmsg_subject) )
      {
         $error = TRUE;
         $error_msg .= ( ( !empty($error_msg) ) ? '<br />' : '' ) . $lang['Empty_subject'];
      }

REPLACE WITH
Code:
      if ( empty($privmsg_subject) )
      {
            $privmsg_subject = $post_date;
      }

Save and upload to your main_test folder.  Make sure to make a backup of the file before overwriting it...

Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group
  ImageShack  
  Putfile  
  TinyURL  
  CommonDreams  
  Log in  

Page generation time: 0.0981s (PHP: 79% - SQL: 21%) - SQL queries: 37 - GZIP enabled - Debug on