Hacked: com_content - Allows you to delete items in frontend (Updatd for 1.0.12)

Your code modifications and patches you want to share with others.
Locked
Haxor
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Jan 10, 2006 4:51 pm

Hacked: com_content - Allows you to delete items in frontend (Updatd for 1.0.12)

Post by Haxor » Fri Feb 03, 2006 12:59 am

Just wanna share...

Hacked com_content from the latest Joomla version. This hack allows you to delete items on the frontend, since i don't want my site moderators to be looking at the backend.  ;D

All hacked portions are commented for your convenience. I also changed the edit icon placement since i want it aligned with the titles for a cleaner look. A javascript alert is integrated on the delete link, for a confirmation if you really want to delete the item (e.g. Are you sure?) and a post confirmation (e.g. Successfully deleted..).

BACKUP! BACKUP! BACKUP!
You do not have the required permissions to view the files attached to this post.
Last edited by Haxor on Sun Jun 17, 2007 6:12 pm, edited 1 time in total.

Brians
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Mar 24, 2006 6:22 am

Re: Hacked: com_content - Allows you to delete items on frontend

Post by Brians » Fri Mar 24, 2006 6:29 am

Thanks for this hack. Very useful - well done.

Mr. Magic City
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Sat Apr 15, 2006 5:47 pm

Re: Hacked: com_content - Allows you to delete items on frontend

Post by Mr. Magic City » Wed Apr 26, 2006 1:03 pm

Excellent Hack. Thanks for the hard work. Two thumbs way up!

User avatar
addmachina
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Wed Sep 21, 2005 3:56 am
Contact:

Re: Hacked: com_content - Allows you to delete items on frontend

Post by addmachina » Tue Jun 13, 2006 5:59 am

Haxor wrote: Just wanna share...

Hacked com_content from the latest Joomla version. This hack allows you to delete items on the frontend, since i don't want my site moderators to be looking at the backend.  ;D

All hacked portions are commented for your convenience. I also changed the edit icon placement since i want it aligned with the titles for a cleaner look. A javascript alert is integrated on the delete link, for a confirmation if you really want to delete the item (e.g. Are you sure?) and a post confirmation (e.g. Successfully deleted..).
great
http://www.theoldpath.tv - Watch Online TV Broadcast 24/7
http://www.angdatingdaan.org - Bible Exposition Online

vectordez
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Fri Feb 10, 2006 11:50 am

Re: Hacked: com_content - Allows you to delete items on frontend

Post by vectordez » Mon Jun 19, 2006 1:45 pm

It works perfectly but when I've installed Opensef, it changed the link of the delete button...
Any idea...

Thanks

User avatar
kenmcd
Joomla! Champion
Joomla! Champion
Posts: 5672
Joined: Thu Aug 18, 2005 2:09 am
Location: California
Contact:

Re: Hacked: com_content - Allows you to delete items on frontend

Post by kenmcd » Mon Jun 19, 2006 2:12 pm

OpenSEF fix here:
http://www.open-sef.org/component/optio ... /,#msg6801

Will be in next release.
██ LibreTraining

User avatar
Predator
Joomla! Ace
Joomla! Ace
Posts: 1827
Joined: Wed Aug 17, 2005 10:12 pm
Location: Germany-Bad Abbach
Contact:

Re: Hacked: com_content - Allows you to delete items on frontend

Post by Predator » Mon Jun 19, 2006 2:12 pm

vectordez wrote: It works perfectly but when I've installed Opensef, it changed the link of the delete button...
Any idea...

Thanks
Try this:

http://www.open-sef.org/component/optio ... g6801/#new

P.S. you where just some second faster :D
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D

stig_n
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Nov 09, 2006 10:13 am

Re: Hacked: com_content - Allows you to delete items on frontend

Post by stig_n » Thu Nov 09, 2006 10:24 am

How do you use this hack?

Should i owewrite ordinary files, or?

mvh

User avatar
allankayak
Joomla! Intern
Joomla! Intern
Posts: 55
Joined: Wed Nov 01, 2006 12:40 pm
Contact:

Re: Hacked: com_content - Allows you to delete items on frontend

Post by allankayak » Wed Nov 22, 2006 4:23 pm

HUmm, I have tried this hack,  but it does not seem to work.

I am useing 1.011 and my content plugin.

It just seems to remove the normal edit option from the tile bar?

Any clues cus this is really what I am after

User avatar
allankayak
Joomla! Intern
Joomla! Intern
Posts: 55
Joined: Wed Nov 01, 2006 12:40 pm
Contact:

Re: Hacked: com_content - Allows you to delete items on frontend

Post by allankayak » Mon Nov 27, 2006 10:02 am

Hi there, still no joy getting this hack to work, it is just what I need,  to let contributers delete their items, but not do much else.

This is my setup

Thanks

 
Joomla! Register Globals Emulation: ON
Register Globals: ON
Magic Quotes: ON
Safe Mode: OFF
File Uploads: ON
Session auto start: OFF
Session save path: /tmp
Short Open Tags: ON
Output Buffering: OFF
Open basedir: none
Display Errors: ON
XML enabled: Yes
Zlib enabled: Yes
Disabled Functions: none
Configuration File:

Haxor
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Jan 10, 2006 4:51 pm

Re: Hacked: com_content - Allows you to delete items on frontend

Post by Haxor » Tue Jan 02, 2007 9:36 am

Hi everyone. Thanks for appreciating this hack. If you can't get this working, please check the version... i posted this hack almost a year ago FEB 02, 2006 so it's not surprising if it doesn't work on you. I'll check the new version for possible better hacks.

g-c
Joomla! Intern
Joomla! Intern
Posts: 87
Joined: Sun Feb 11, 2007 2:34 pm

Re: Hacked: com_content - Allows you to delete items on frontend

Post by g-c » Wed Mar 21, 2007 7:36 pm

Hi, great thing, but better show us the code-lines which was changed in com_content, because if someone got other hacks done in his com_content

User avatar
chouxpastry2002
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 230
Joined: Tue Oct 31, 2006 11:12 am
Contact:

Re: Hacked: com_content - Allows you to delete items on frontend

Post by chouxpastry2002 » Tue Jun 12, 2007 3:01 pm

too good hack buddy i want your help on hackin one more thing in com_content can you please help ?
Follow me on Twitter : @chouxpastry2002
Submit your Joomla themes: http://www.duothemes.com
Tutorials On Web - Free web design tutorials: http://www.tutorialonweb.com

Haxor
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Tue Jan 10, 2006 4:51 pm

Re: Hacked: com_content - Allows you to delete items in frontend (Updatd for 1.0

Post by Haxor » Sun Jun 17, 2007 6:24 pm

update for the latest stable joomla version (not the beta). 1.0.12

Naredhel
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Aug 03, 2009 2:32 pm

Re: Hacked: com_content - Allows you to delete items in frontend

Post by Naredhel » Wed Sep 30, 2009 10:33 am

Hello Haxor

Did you have a look at the hack for Joomla! 1.5.X? I investigated the feasibility of a similar hack yesterday on Joomla! 1.5. Now, some people advocate that hacking Joomla! core is a bad idea (compatibility and updating, portability, security). I tend to agree with it in principle.

I came across a plugin hack hack that would load a custom com_content component but it does not quite work (http://community.joomla.org/blogs/commu ... -html.html)

At the moment I go for a template override (though I think it does not make sense from a logical point of view - this is a "template" override system - from a cross template point of view - no every one works with one template-). I thought calling an instance of com_trash from the admin side could be a secure approach. However, com_trash comes with security and if I bypass it, I'm better off creating a custom com_trash on the site side or just go for pure sql in the override.

Do you have any views on that?
Does anyone have ideas on that?

Thank you


Locked

Return to “Core Hacks and Patches”