Remove "Image","Pagebreak" and "Read More" Icons

Everything to do with Joomla! 1.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Locked
big_rich
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Sat Jul 03, 2010 11:35 am
Contact:

Remove "Image","Pagebreak" and "Read More" Icons

Post by big_rich » Fri Mar 18, 2011 6:58 pm

How can I remove the Image, Pagebreak and read more buttons which appear below the editor in the "submit an article" window ?

I had hoped that I'd be able to remove these when I changed from TinyMCE to JCE but it seems that I can't coz theyre still ther like with Tiny MCE.

I guess I need to do a template override but I'm not sure which file.

Thanks for your help

User avatar
OOmNezar
Joomla! Ace
Joomla! Ace
Posts: 1870
Joined: Mon Sep 07, 2009 3:18 am

Re: Remove "Image","Pagebreak" and "Read More" Icons

Post by OOmNezar » Fri Mar 18, 2011 8:23 pm

Not yet tested !!!
If using Khepri Templates as administrator template. but try at /administrator/templates/khepri/css/general.css & general_rtl.css(if use right to left direction).

Code: Select all

.button2-left .image 		{ background: url(../images/j_button2_image.png) 100% 0 no-repeat; }
.button2-left .readmore 	{ background: url(../images/j_button2_readmore.png) 100% 0 no-repeat; }
.button2-left .pagebreak 	{ background: url(../images/j_button2_pagebreak.png) 100% 0 no-repeat; }
.button2-left .blank	 	{ background: url(../images/j_button2_blank.png) 100% 0 no-repeat; }
add attribute display:none or visibility:hidden;
coffee & smoke just fine
OOm Nezar

big_rich
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Sat Jul 03, 2010 11:35 am
Contact:

Re: Remove "Image","Pagebreak" and "Read More" Icons

Post by big_rich » Sun Mar 20, 2011 11:29 am

Thanks,

That solution does remove the buttons and gives the result I was looking for.

But if possible I was hoping to remove the icons totaly rather than hide them with css. Do you know where I would need to do that ?

Sorry if I sound ungrateful, I do apreciate the fact that you've taken the time to help out.

User avatar
OOmNezar
Joomla! Ace
Joomla! Ace
Posts: 1870
Joined: Mon Sep 07, 2009 3:18 am

Re: Remove "Image","Pagebreak" and "Read More" Icons

Post by OOmNezar » Sun Mar 20, 2011 11:35 am

What is your default template in administrator ?
coffee & smoke just fine
OOm Nezar

User avatar
OOmNezar
Joomla! Ace
Joomla! Ace
Posts: 1870
Joined: Mon Sep 07, 2009 3:18 am

Re: Remove "Image","Pagebreak" and "Read More" Icons

Post by OOmNezar » Sun Mar 20, 2011 11:57 am

look at /plugins/editors/tinyMCE.php
search this line :

Code: Select all

...
if(!empty($buttons))
		{
			$results = $this->_subject->getButtons($name, $buttons);

			/*
			 * This will allow plugins to attach buttons or change the behavior on the fly using AJAX
			 */
			$return .= "\n<div id=\"editor-xtd-buttons\">\n";
			foreach ($results as $button)
			{
				/*
				 * Results should be an object
				 */
				if ( $button->get('name') )
				{
					$modal		= ($button->get('modal')) ? 'class="modal-button"' : null;
					$href		= ($button->get('link')) ? 'href="'.JURI::base().$button->get('link').'"' : null;
                    $onclick	= ($button->get('onclick')) ? 'onclick="'.$button->get('onclick').'"' : 'onclick="IeCursorFix(); return false;"';
					$return .= "<div class=\"button2-left\"><div class=\"".$button->get('name')."\"><a ".$modal." title=\"".$button->get('text')."\" ".$href." ".$onclick." rel=\"".$button->get('options')."\">".$button->get('text')."</a></div></div>\n";
				}
			}
			$return .= "</div>\n";
		}

		return $return;

make some filter in there
coffee & smoke just fine
OOm Nezar

big_rich
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Sat Jul 03, 2010 11:35 am
Contact:

Re: Remove "Image","Pagebreak" and "Read More" Icons

Post by big_rich » Sun Mar 20, 2011 2:46 pm

Thanks, I can see that this is a little more complicated than I had hoped - I guess thats why you initialy suggested the css approach - right ??

I'll have a look at that file this afternoon and see if I can make any progress.

User avatar
OOmNezar
Joomla! Ace
Joomla! Ace
Posts: 1870
Joined: Mon Sep 07, 2009 3:18 am

Re: Remove "Image","Pagebreak" and "Read More" Icons

Post by OOmNezar » Sun Mar 20, 2011 3:02 pm

Good Luck !
coffee & smoke just fine
OOm Nezar

Jeff Seabrook
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Wed Mar 01, 2006 3:17 am
Location: Orlando, FL
Contact:

Re: Remove "Image","Pagebreak" and "Read More" Icons

Post by Jeff Seabrook » Thu Mar 31, 2011 11:04 pm

Extensions > Plugin Manager > Editor Button - Readmore (disable) (disable read more button for editors) - the others are there too...no need to hack code for that.
Jeff Seabrook
Location: Orlando, FL
Owner: http://www.bmwsport.net

big_rich
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Sat Jul 03, 2010 11:35 am
Contact:

SOLVED - Remove "Image","Pagebreak" and "Read More" Icons

Post by big_rich » Wed Apr 06, 2011 11:27 am

Thanks ! I'd totaly overlooked the fact that they are plugins :-[


Locked

Return to “Templates for Joomla! 1.5”