Disable Front-end edit functionality?

Need help with the Administration of your Joomla! site? Pop your questions in here.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
User avatar
C0nw0nk
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 248
Joined: Tue Jun 15, 2010 1:12 am
Location: United Kingdom, London
Contact:

Re: Disable Front-end edit functionality?

Post by C0nw0nk » Wed Jun 30, 2010 8:07 pm

this topic is to disable them not enable. although it doesnt realy disable it just hides / removes the icons from your view

User avatar
SOAMJENA
Joomla! Ace
Joomla! Ace
Posts: 1274
Joined: Thu May 01, 2008 12:36 pm
Location: QubeSys Technologies Pvt. Ltd ,INDIA
Contact:

Re: Disable Front-end edit functionality?

Post by SOAMJENA » Fri Jul 02, 2010 4:57 am

works.Thanks..
Web Design, eCommerce and Software Development
Joomla Premium Extensions,Templates and Support Packages

rajugautam
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Wed Mar 10, 2010 7:55 am
Location: Kathmandu, Nepal
Contact:

Re: Disable Front-end edit functionality?

Post by rajugautam » Wed Jul 21, 2010 11:29 am

I don't know how the guys are accepting the solution just to hide the icon. Is this the real solution? Try putting a direct URL in the browser, that will show the edit form. So just hiding the icon is not the solution. I think we should wait till the Joomla 1.6 to have a full control over such things.
Raju Gautam

edsontomaz
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Sun Jun 27, 2010 10:33 pm

Re: Disable Front-end edit functionality?

Post by edsontomaz » Thu Jul 29, 2010 2:09 pm

rajugautam wrote:I don't know how the guys are accepting the solution just to hide the icon. Is this the real solution? Try putting a direct URL in the browser, that will show the edit form. So just hiding the icon is not the solution. I think we should wait till the Joomla 1.6 to have a full control over such things.
Hello, rajugautam

Unfortunatelly, I can't wait for the release of Joomla! 1.6. And if I allow the users of my site to edit their articles freely, I know by my experience that they are going to make a lot of mess.

At the beggining, I thought that giving users some options was a good thing, but they didin't agree with me. One user told me that the site was "hard to use" - because he couldn't understand a simple idea like sections and categories organization.

Maybe hiding the icons is not the "state of art solution", but right now it's the best solution with the available resources.

Best regards

Edson Tomaz

djacouma
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Thu Jun 17, 2010 1:49 pm

Re: Disable Front-end edit functionality?

Post by djacouma » Tue Aug 10, 2010 11:41 am

Does anyone know if this was addressed in 1.6? Stalling on upgrading sites, but this would motivate me!

speedRicer
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Aug 27, 2010 7:03 am

Re: Disable Front-end edit functionality?

Post by speedRicer » Fri Aug 27, 2010 7:07 am

The best way I have found to disable this function is to go into the template.css, or the equivalent, depending on the template, and add the "display:none;" attribute to the following class.

before:
.articletoolswrap{
background:#CCCCCC;
margin-bottom:24px;
padding:4px 0 0 0;
height:20px;
width:99%;
}

after:
.articletoolswrap{
display:none;
background:#CCCCCC;
margin-bottom:24px;
padding:4px 0 0 0;
height:20px;
width:99%;
}

Hope this helps. :D

fotoko
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Apr 09, 2009 2:54 am

Re: Disable Front-end edit functionality?

Post by fotoko » Tue Sep 28, 2010 10:27 pm

Would anyone think I was crazy if I suggested replacing the edit image (edit.png) with a smaller transparent image named edit.png? That way people wouldn't know you could edit the page unless they knew to hover around the area until the cursor changed.

tarasipika
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Sep 30, 2010 11:18 pm

Re: Disable Front-end edit functionality?

Post by tarasipika » Fri Oct 01, 2010 10:58 pm

On my installation I can see that from the front end the edit icon only appears depending on what the the permissions are set to for the user logging in.

I have not set up any unusual permissions on my site. From the front end, if I log in to see the pages for registered users using my admin name and password, I see the edit icon. If I try logging in under a user name that is not set to be an admin, then the edit button is gone.

Try looking at the user permissions for the people that should be allowed to edit pages from the front end. Site pull down menu/User Manager while in backend. Click on the users that you want to allow editing permission to, then change their group to editor if it's not set to that already. When testing, make sure you log out then back in again as it doesn't seem to change on the fly.

If that doesn't work, also check the article manager / global configuration settings (radio button for icons and the blacklist / whitelist settings)

stefaaaan
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Oct 21, 2010 2:16 pm

Re: Disable Front-end edit functionality?

Post by stefaaaan » Thu Oct 21, 2010 2:23 pm

Can someone tell me how to UNHIDE the edit button? My edit button doesnt appear with a template and appears when i use another tempate. So it has to do with my template..

Where in my template/css can i unhide my edit button so i can use the edit button?!

I only find this in my css:

/* edit button */
.contentpaneopen_edit
{
float: left;
}

someone help :(

bjassoc
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Feb 19, 2011 1:16 am

Re: Disable Front-end edit functionality?

Post by bjassoc » Sat Feb 19, 2011 1:38 am

I too lost the Edit icon on articles. It used to appear for authorized users but doesnt any more. I WANT my authors to be able to edit their articles but now the only way is from the back end. Any suggestions? Using v 1.5.20.

JerryBuilt
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Jun 10, 2007 1:22 pm
Location: UK

Re: Disable Front-end edit functionality?

Post by JerryBuilt » Fri Jun 03, 2011 6:37 pm

Croland and bendraper's suggestions worked for me - thanks guys

I just need to work out how to remove much of the functionality on the editor for frontend users.

User avatar
beededea
Joomla! Hero
Joomla! Hero
Posts: 2809
Joined: Wed Oct 31, 2007 3:48 pm
Location: Victorian England 1885

Re: Disable Front-end edit functionality?

Post by beededea » Mon Jun 06, 2011 8:55 pm

Which version of Joomla?
Yereverluvinunclebert
Steampunk widgets. Platforms of choice: Joomla 1.0/1.5, Joostina 1.2, OSCommerce
Site aims: Optimisation, Security and Solidity
http://widgets.yahoo.com/widgets/steamp ... k-calendar

radyhorse
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Apr 12, 2011 5:24 pm

Re: Disable Front-end edit functionality?

Post by radyhorse » Sat Jun 25, 2011 1:07 am

The hack above doesn't work for me. I think the file structure may have changed in 1.5. I still can't find any config option to handle this, but there is a CSS hack I use. So far, it seems to work fine. Open the template.css file for your template and add this:

table.contentpaneopen tr td span.hasTip a img {
display: none;
}

That effectively hides the Article Edit icon. It might inadvertently hide something important, but the tag chain seems to be pretty unique.
Thanks brianbush. It works perfectly.
Raffaele.

User avatar
offroadcouch
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Jul 21, 2011 11:27 pm

Re: Disable Front-end edit functionality?

Post by offroadcouch » Thu Jul 21, 2011 11:33 pm

Hey Team,

I'm running Joomla 1.6. I've disabled the front end editing using the following CSS style hack.

ul.actions, span.hasTip a:link, span.hasTip a:visited {
display:none;
}

ul.actions = The edit icon
span.hasTip a:link = The create new article option

User avatar
beededea
Joomla! Hero
Joomla! Hero
Posts: 2809
Joined: Wed Oct 31, 2007 3:48 pm
Location: Victorian England 1885

Re: Disable Front-end edit functionality?

Post by beededea » Thu Jul 21, 2011 11:46 pm

You do realise you are posting in entirely the wrong area? This is the Joomla 1.0 area. Please post elsewhere.
Yereverluvinunclebert
Steampunk widgets. Platforms of choice: Joomla 1.0/1.5, Joostina 1.2, OSCommerce
Site aims: Optimisation, Security and Solidity
http://widgets.yahoo.com/widgets/steamp ... k-calendar

newtechguy
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Wed Jan 14, 2009 8:19 pm

Re: Disable Front-end edit functionality?

Post by newtechguy » Tue Aug 16, 2011 6:52 pm

I found a much easier way to get around this. The front-end edit icon is named edit.png and is stored in /joomla/images/M_images/

I just created a new transparent image that is 1 pixel by 1 pixel, then I uploaded it to the server and placed it in the same folder. POOF.... gone. Yes I know that if someone was really good with their mouse and was able to click on it they could edit it but I have been unable to do it myself and I know where it is.

Works for me.

It's just rediculous that this is an issue with Joomla... I mean... what the heck?

jturvey
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Tue May 17, 2011 1:44 pm

Re: Disable Front-end edit functionality?

Post by jturvey » Thu Oct 06, 2011 2:09 pm

Okay...I've gone through each solution here and none seems to work for me. I have 1.5 and take a look at the following problem I have!
Sample Front Page.jpg
(Here's hoping you can see the picture I just uploaded).

This is driving me nuts!! In that big white block, you can see the Edit Article icon in the corner very faintly....I cannot get rid of this block making it near impossible to work on my site.

I've followed all methods of 'hiding' this icon....which works but creates a big black void over all of my content....so is not a viable solution.

Any ideas would be so appreciated it's not funny!!! :D

THX!
You do not have the required permissions to view the files attached to this post.

User avatar
beededea
Joomla! Hero
Joomla! Hero
Posts: 2809
Joined: Wed Oct 31, 2007 3:48 pm
Location: Victorian England 1885

Re: Disable Front-end edit functionality?

Post by beededea » Thu Oct 06, 2011 2:22 pm

@jturvey - You do realise you are posting in entirely the wrong area? This is the Joomla 1.0 area. Please post elsewhere.
Yereverluvinunclebert
Steampunk widgets. Platforms of choice: Joomla 1.0/1.5, Joostina 1.2, OSCommerce
Site aims: Optimisation, Security and Solidity
http://widgets.yahoo.com/widgets/steamp ... k-calendar

newtechguy
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Wed Jan 14, 2009 8:19 pm

Re: Disable Front-end edit functionality?

Post by newtechguy » Sat Oct 22, 2011 4:57 pm

Just to check, did you turn on the "Show Icons" option by setting it to "Show" instead of it's default setting of "Global"?

This option is only available only in newer versions of Joomla.

tuaftuaf
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue May 15, 2012 10:32 am

Re: Disable Front-end edit functionality?

Post by tuaftuaf » Tue May 15, 2012 10:44 am

Hi all,
After hiding an "Edit" icon by css, what is the best way to prevent a backdoor for edition by badguys.??

Thnx in advance

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24955
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Disable Front-end edit functionality?

Post by pe7er » Tue May 15, 2012 11:47 am

tuaftuaf wrote:After hiding an "Edit" icon by css, what is the best way to prevent a backdoor for edition by badguys.??
Hiding the edit button using CSS does not disable the front-end edit functionality!

I'd recommend upgrading to Joomla 2.5.
Joomla 2.5 has an extensive Access Control List (ACL) where you can define user roles,
and e.g. disable front-end editing.
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

bornil ++
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon May 28, 2012 9:05 pm

Re: Disable Front-end edit functionality?

Post by bornil ++ » Thu May 31, 2012 8:13 pm

My quick hack is If you go to line 631 of content.html.php and remove the following, the edit icon will no longer appear in the Front-end. After removing the link, no one should get the edit icon in the front-end

deeg1914
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Mar 13, 2013 5:32 pm

Re: Disable Front-end edit functionality?

Post by deeg1914 » Wed Mar 13, 2013 11:32 pm

FOR JOOMLA 2.5

I know this is an old thread but I was looking for a solution to this very problem and there was no help for it. I finally figured it out and wanted to share this with the community. The way I did it was to comment out the output line of the edit argument. It it located at:

joomla_root/components/com_contents/helpers/icon.php

Just comment out the output command

//$output = '<span class="hasTip" title="'.JText::_('COM_CONTENT_EDIT_ITEM').' :: '.$overlib.'">'.$button.'</span>';

and viola...no more edit button.

I hope this helps someone out because I was LOST for a couple days trying to figure it out.

ruthvika
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Dec 03, 2011 3:06 am

Re: Disable Front-end edit functionality?

Post by ruthvika » Wed May 08, 2013 7:42 pm

go to the article-> article permission -> public - >set everything to denied

BFITechnology
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Aug 04, 2013 9:03 pm

Re: Disable Front-end edit functionality?

Post by BFITechnology » Sun Aug 04, 2013 9:10 pm

In order to do this in Joomla 3.0 and Up (This probably work in earlier versions too) you must edit the default.php for both joomla and your joomla site template.

Here is the path for joomla

/components/com_content/views/article/tmpl/default.php

Comment out the div which contains the button as follows:
<!--<div class="btn-group pull-right">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <span class="icon-cog"></span> <span class="caret"></span> </a>
<?php // Note the actions class is deprecated. Use dropdown-menu instead. ?>
<ul class="dropdown-menu actions">
<?php if ($params->get('show_print_icon')) : ?>
<li class="print-icon"> <?php echo JHtml::_('icon.print_popup', $this->item, $params); ?> </li>
<?php endif; ?>
<?php if ($params->get('show_email_icon')) : ?>
<li class="email-icon"> <?php echo JHtml::_('icon.email', $this->item, $params); ?> </li>
<?php endif; ?>
<?php if ($canEdit) : ?>
<li class="edit-icon"> <?php echo JHtml::_('icon.edit', $this->item, $params); ?> </li>
<?php endif; ?>
</ul>
</div>-->


Now if you still see the icon you must also remove it from your template default.php because this file is overriding the the default.php file from above path resulting in ignoring your changes. To remove from your templates default.php go to:

{site_root}/templates/{your_template}/html/com_content/article/default.php

and do the same changes as above by commenting out the div which contains the button.

<!--<div class="btn-group pull-right">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <span class="icon-cog"></span> <span class="caret"></span> </a>
<?php // Note the actions class is deprecated. Use dropdown-menu instead. ?>
<ul class="dropdown-menu actions">
<?php if ($params->get('show_print_icon')) : ?>
<li class="print-icon"> <?php echo JHtml::_('icon.print_popup', $this->item, $params); ?> </li>
<?php endif; ?>
<?php if ($params->get('show_email_icon')) : ?>
<li class="email-icon"> <?php echo JHtml::_('icon.email', $this->item, $params); ?> </li>
<?php endif; ?>
<?php if ($canEdit) : ?>
<li class="edit-icon"> <?php echo JHtml::_('icon.edit', $this->item, $params); ?> </li>
<?php endif; ?>
</ul>
</div>-->
This should remove illegal changes being done and does not just hide the edit button but should disable the functionality as well.

edb
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Sep 14, 2008 7:38 am

Re: Disable Front-end edit functionality?

Post by edb » Wed Aug 28, 2013 8:05 am

just find in components/com_content/views/article/tmpl/default.php
$canEdit = $params->get('access-edit');
and comment it out
//$canEdit = $params->get('access-edit');

lara_19800
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Sun Sep 22, 2013 10:22 am

Re: Disable Front-end edit functionality?

Post by lara_19800 » Thu Oct 03, 2013 10:03 pm

The hack above doesn't work for me. I think the file structure may have changed in 1.5. I still can't find any config option to handle this, but there is a CSS hack I use. So far, it seems to work fine. Open the template.css file for your template and add this:

table.contentpaneopen tr td span.hasTip a img {
display: none;
}

That effectively hides the Article Edit icon. It might inadvertently hide something important, but the tag chain seems to be pretty unique.
Please read the Forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

Glendaleaz
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Oct 03, 2013 10:14 pm
Location: usa
Contact:

Re: Disable Front-end edit functionality?

Post by Glendaleaz » Thu Oct 03, 2013 10:23 pm

I want to stop individuals modifying content from the front part conclude. Is there a way of switching off this method? I've seen a handful of articles which display some code hacks - I'm just a little concerned that these hacks will vanish while Joomla is upgraded.

Thanks

smcclure
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Wed Sep 19, 2012 10:07 pm

Re: Disable Front-end edit functionality?

Post by smcclure » Sat Oct 05, 2013 3:01 am

A simple way is to find the following line (CNTL F) in your bootstrap.css file:

.btn-group > .btn:first-child {}

and add the following inside these brackets:

.btn-group > .btn:first-child
{
display: none;
}

edb
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Sep 14, 2008 7:38 am

Re: Disable Front-end edit functionality?

Post by edb » Sat Dec 14, 2013 1:17 am

lara_19800 wrote:The hack above doesn't work for me. I think the file structure may have changed in 1.5. I still can't find any config option to handle this, but there is a CSS hack I use. So far, it seems to work fine. Open the template.css file for your template and add this:

table.contentpaneopen tr td span.hasTip a img {
display: none;
}

That effectively hides the Article Edit icon. It might inadvertently hide something important, but the tag chain seems to be pretty unique.

the hack i put works up to current ver 3.2 . im not sure what u mean by ver 1.5 . if your actually using version 1.5 yea my hack probably doesn't work tho 1.5 is ancient version


Locked

Return to “Administration - 1.0.x”