Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Wed Jan 24, 2007 3:03 pm Reply with quote

"Your Inbox is 90% full"for example. Who knows which of the files create this display in private messages ?

I´m using SubSilver and the display isn´t correct anymore.
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Jan 24, 2007 4:08 pm Reply with quote

Susann wrote:
"Your Inbox is 90% full"for example. Who knows which of the files create this display in private messages ?

I´m using SubSilver and the display isn´t correct anymore.


The language definition ( $lang['Inbox_size'] = 'Your Inbox is %d%% full'; // eg. Your Inbox is 50% full ) is in modules/Forums/language/lang_*/lang_main. The code is in modules/Forums/privmsg.php:

Code:
//

// Output data for inbox status
//
if ( $folder != 'outbox' )
{
   $inbox_limit_pct = ( $board_config['max_' . $folder . '_privmsgs'] > 0 ) ? round(( $pm_all_total / $board_config['max_' . $folder . '_privmsgs'] ) * 100) : 100;
   $inbox_limit_img_length = ( $board_config['max_' . $folder . '_privmsgs'] > 0 ) ? round(( $pm_all_total / $board_config['max_' . $folder . '_privmsgs'] ) * $board_config['privmsg_graphic_length']) : $board_config['privmsg_graphic_length'];
   $inbox_limit_remain = ( $board_config['max_' . $folder . '_privmsgs'] > 0 ) ? $board_config['max_' . $folder . '_privmsgs'] - $pm_all_total : 0;

   $template->assign_block_vars('switch_box_size_notice', array());

   switch( $folder )
   {
      case 'inbox':
         $l_box_size_status = sprintf($lang['Inbox_size'], $inbox_limit_pct);
         break;
      case 'sentbox':
         $l_box_size_status = sprintf($lang['Sentbox_size'], $inbox_limit_pct);
         break;
      case 'savebox':
         $l_box_size_status = sprintf($lang['Savebox_size'], $inbox_limit_pct);
         break;
      default:
         $l_box_size_status = '';
         break;
   }
}
else
{
   $inbox_limit_img_length = $inbox_limit_pct = $l_box_size_status = '';
}
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Wed Jan 24, 2007 4:13 pm Reply with quote

ok here we go...

the text itself is in... in /modules/forums/language/lang_english

in private messages index.php we have :

on line 2052 :

$l_box_size_status = sprintf($lang['Inbox_size'], $inbox_limit_pct);

and we have it in forums/privmsg.php :
$l_box_size_status = sprintf($lang['Inbox_size'], $inbox_limit_pct);


[edit] lol..sorry raven ,i was posting the same here but went downstairs for a few minutes,added last line and and hit submit....
you were faster...... Laughing
 
View user's profile Send private message
Susann







PostPosted: Wed Jan 24, 2007 4:51 pm Reply with quote

Thanks ! Smile
 
Raven







PostPosted: Wed Jan 24, 2007 5:03 pm Reply with quote

hitwalker wrote:
[edit] lol..sorry raven ,i was posting the same here but went downstairs for a few minutes,added last line and and hit submit....
you were faster...... Laughing


speedtype killing me
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©