News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Info:

Started by CMYKreative, October 19, 2012, 12:46:30 PM

Previous topic - Next topic

CMYKreative

This has been driving me nuts. Silly question, where and how can I remove the text "Info:" from all the 'notice/warning' screens that show up (see attached).

Thanks in advance.

Chris

[attachment cleanup by admin]

bytelord

Hello,

This is joomla system messages. Look inside  language/en-GB/en-GB.ini or create a language override for joomla.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

CMYKreative

Nope, I've checked all language files and it's not in there. It's hard-coded somewhere within the files but I can't spot where yet.

CMYKreative

I found this in administrator/components/com_virtuemart/helpers/config.php:

      }   else {
         //       $app ->enqueueMessage('Info: '.JText::_($publicdescr));
         $publicdescr = $lang->_($publicdescr);
         $app ->enqueueMessage(''.JText::_($publicdescr),'info');
         //       debug_print_backtrace();
      }

It references the JText but I can't find that anywhere . . .

bytelord

#4
That joomla system messages, the 'info' indicates what type of joomla system message will be used (info, warning, error).
Your template loads  <jdoc:include type="message" /> i suppose, check where is that exactly. Then vm uses vmdebug that call joomla system messages. So that's the way to "calibrate" them or override them.

Now, the best way to override system messages is by overriding its CSS ... if you want to hide info: , then do the follow:

#system-message > dt
{
display:none;
}

and will hide the title, so there is no info! :)

------------------------------------------------------

If you want messages general changes use


#system-message {
.. your styling

}
------------------------------------------------------

if you want to style the actual message then,

#system-message dd.message ul {
.. your styling
}

or

#system-message > .message > ul {
.. your styling

}

You have to place the above CSS inside your joomla template css, e.g. system.css or joomla.css or template.css or general.css ... depends what joomla template you are using!

Use firebug to find your css files that play role on that: http://forum.virtuemart.net/index.php?topic=102850.0

It's easy :)

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

bytelord

#5
Forgot to mention the inline info for some vm system information

\administrator\components\com_virtuemart\helpers\config.php (6 hits)
   Line 86:          $app ->enqueueMessage('Info: '.JText::_($publicdescr),'info');
   Line 122:             $app ->enqueueMessage('Info: '.JText::_($publicdescr),'info');
   Line 152:          $app ->enqueueMessage('Info: '.$publicdescr,'warning');

remove the Info, like:

\administrator\components\com_virtuemart\helpers\config.php (6 hits)
   Line 86:          $app ->enqueueMessage(JText::_($publicdescr),'info');
   Line 122:             $app ->enqueueMessage(JText::_($publicdescr),'info');
   Line 152:          $app ->enqueueMessage($publicdescr,'warning');


Some other messages are joomla system messages

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

CMYKreative

Thanks bytelord, it's the text in the config.php that I needed to remove.

Quick question . . . if changing things in the "administrator" area, can I create an "override" file in my template area for these admin files, same as I would do with anything in the 'components' area so that it doesn't get overwritten on updates? If so, how?

bytelord

Hi,

Never tried but you could make overrides on the admin templates if you copy them under administrator/templates/bluestork (or your template)/html/com_virtuemart/view_name/template_file.php and create the same way overrides as for the front.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

CMYKreative

Thanks, I'll give that a go :)

bytelord

Hi,

If is working, let us know :)

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

CMYKreative

We'll try it on the next project . . . this one has been dragging on for far too long sorting issues out with VM and I don't want to add any more to it at the moment :)