-
AuthorPosts
-
August 5, 2016 at 11:55 pm #957375
Does anyone know how to remove the New button at the bottom of an Article List page? I think I am getting hacked through the New button. Strange jpegs are being uploaded to my Image root directory. I’m hoping I can stop the hack if they don’t have the New button.
Thank you.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 6, 2016 at 2:13 am #957390Hi
This button seems custom button added in in the php files of category list .
You need to remove the button from same files to remove it .August 6, 2016 at 4:07 am #957438If I remove it in the php file, then my Registered Publishers won’t be able to make new articles.
Is there a way to remove it only from Public view?
Every time I deny the Public "create" permissions, it locks my Publisher "create" and I can’t unlock it to "allow" create permissions.
-
Pankaj Sharma Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 6, 2016 at 4:50 am #957441Hi
No its custom button and Joomla ACL not work on it , You change the lInk to a menu Link and then apply the ACL on menu item .August 6, 2016 at 5:04 am #957442Okay, this is what I will do:
- I will make a template over-ride and remove the New button in the category list php file.
- I will use the Joomla ACL on an Article Create menu item.
Thank you.
August 8, 2016 at 11:04 pm #958079Hello,
I changed the Joomla ACL on the Article Create menu item.I am having trouble removing the "Submit New Article" button in the Category list.
Here’s the code that I think I have to remove from the default_articles.php in com_content/category.
<?php // Code to add a link to submit an article. ?>
<?php if ($this->category->getParams()->get(‘access-create’)) : ?>
<?php echo JHtml::_(‘icon.create’, $this->category, $this->category->params); ?>
<?php endif; ?>I found the php page = templates/purityiii/html/com_content/category/default_articles.php
I made a copy of the default_articles.php page and renamed it default_articles -20160806.php.I removed the code for the button.
I thought that the Category list page would show without the button, but it still shows up.
Can you please tell me the steps for the override? This is the first time I have tried to do this.
Thank you. sw
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 9, 2016 at 2:08 am #958115Hi
As i understand you added the custom code in the core Joomla layout files ?
If you added the button code their you need to remove it so it will not comes on site .
Beside you can post the site temp super user details , i will check the issue on site if its from template files .August 9, 2016 at 2:32 am #958138This reply has been marked as private.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 9, 2016 at 2:56 am #958147Hi
its not from the Joomla too , you added the code somewhere in default files
I tested Purity III package and there is no button : http://prntscr.com/c3cjem
I also noticed you have overrides in the template that may creating the button
Path /html/com_content/categories/default_items.php file
and here the code of button in this file :<span class="badge badge-info tip hasTooltip" title="<?php echo JHtml::tooltipText('COM_CONTENT_NUM_ITEMS'); ?>"> <?php echo $item->numitems; ?> </span>
Hope its clear now !
August 9, 2016 at 3:40 am #958160This reply has been marked as private. -
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)This topic contains 9 replies, has 2 voices, and was last updated by selbywinkler 8 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum