Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
Xbox Leaderboards 7
Cookiebar Panel 72
AD Gallery 151
SyntaxHighlighte... 63
Newsletters v4.03 168
Facebook Like Box 204
Newsletters v4.02 79
Metro 236
Facebook Connect 215
Shoutbox Panel 185
Redactor for PHP... 127
MI Floating Side... 132
Facebook Login/R... 180
Avatar Studio v2.03 215
Relationship Sta... 123
Popular Addons
iTheme2 5910
Arise 5870
User Control v1.23 4682
Event Calendar 4133
Photowidget panel 3923
Radio-Theme red2... 3395
Highslide Gallery 3361
CSS/JavaScript D... 3277
Facebook Connect... 3056
Dynamic Menu 2947
Slideshow Lightb... 2770
L-AMANT 2689
Enigma 2671
2Dark 2625
Black 2619
View Thread
Who is here? 1 guest(s)
 Print Thread
How admin can change/delete Downloads ?
edmunds
Cannot find anything in Admin Panel. There is an Add Download screen and at the bottom of the screen there is a rather weird screen named Current Downloads, where I can see all the Download categories however no functions/menus are related with them.

Plz advise. In case no ideas, please give me an idea, how to delete the stuff from database.

Thanks in advance,
E.

Merged on Mar 02 2012 at 15:40:59:
Come on, guys...am I the only one to use Downloads ?
Edited by edmunds on 02-03-2012 15:40
 
Ankur
Please do not bump the thread.

You can simply add the Download Categories first in Admin Panel --> Content Admin --> Download Categories and then add Downloads y going to Admin Panel --> Content Admin --> Downloads
 
http://ankurthakur.in/
edmunds
Ankur wrote:

Please do not bump the thread.

You can simply add the Download Categories first in Admin Panel --> Content Admin --> Download Categories and then add Downloads y going to Admin Panel --> Content Admin --> Downloads


I have NO problems whatsoever ADDING downloads. I have problems EDITING and DELETING downloads.
 
Moregelen
Are you using the current version of phpFusion? If so, if you go to your content admin page, then click Download, at the very bottom there should be a list of the current downloads available, along with Edit and Delete links.

If you absolutely have to kill those downloads and you can't, you could manually drop the data with either a bit of code in a custom page:

<?php
$result = dbquery("SELECT download_file, download_image, download_image_thumb FROM ".DB_DOWNLOADS."");
if (dbrows($result)) {
while($data = dbarray($result)) {
if (!empty($data['download_file']) && file_exists(DOWNLOADS.$data['download_file'])) {
@unlink(DOWNLOADS.$data['download_file']);
}
if (!empty($data['download_image']) && file_exists(DOWNLOADS."images/".$data['download_image'])) {
@unlink(DOWNLOADS."images/".$data['download_image']);
}
if (!empty($data['download_image_thumb']) && file_exists(DOWNLOADS."images/".$data['download_image_thumb'])) {
@unlink(DOWNLOADS."images/".$data['download_image_thumb']);
}
$result = dbquery("DELETE FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['download_id']."'");
}
}
?>


That will delete all the downloads you have up.. and if you wanted to delete only certain downloads you could add a
WHERE download_id IN (1,2,3,4)
at the end of the query, and change 1,2,3,4 to a comma separated list of your download ids.

This is just a bit of a hack job though. Are you getting any errors or anything while trying to delete downloads? Need a bit more than

Cannot find anything in Admin Panel. There is an Add Download screen and at the bottom of the screen there is a rather weird screen named Current Downloads, where I can see all the Download categories however no functions/menus are related with them.


to help. It sounds like you don't see the Edit/Download links, but surely phpFusion is reporting some kind of error if that is the case?

[img]http://unlockedpotential.net/screenshot_downloads_options.png[/img] is not a valid Image.
Edited by Moregelen on 04-03-2012 18:00
Oooooh.. is that what Deep Corruption does? Ooopsie...
.. so, how do I heal without Holy Radiance spam anyway? I forgot...
 
http://unlockedpotential.net
edmunds
Thanks, mate! Nothing can stand against SQL and I am not afraid to use it ! Smile

I am using version v7.02.04 and I have got the answer to my problems. The problem I have is associated with Modern10 theme I use in my forum.

The thing is - other themes show the download categories list and there is a plus sign at the right. If you press it, you get your downloads list.

But not with Modern10. I guess the theme authors have missed some implementation details. If you will switch to the Modern10 theme and try to edit/delete downloads you will get my point.

Great thanks!
Edmunds
 
Moregelen
I went and looked, and it didn't show my test download; I viewed the source and the download was in fact there, but with a style='display:none;'. Odd that! I added another download just to see, and suddenly its visible! Very weird behavior; I'll take a poke into the code to see if I can't figure out what this thing is doing.

Merged on Mar 05 2012 at 16:00:12:
For some reason I can't actually reproduce the affect where they aren't showing up; after adding the second download it is working just fine for me now.
Edited by Moregelen on 05-03-2012 21:00
Oooooh.. is that what Deep Corruption does? Ooopsie...
.. so, how do I heal without Holy Radiance spam anyway? I forgot...
 
http://unlockedpotential.net
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
[v7.02.07] Delete Unactivated Account Suspected Bugs and Errors 2 19-06-2013 08:08
Fusion Defender - (original: : Optional admin password) Roadmap 8 16-06-2013 02:02
Limit need for Admin password Roadmap 1 07-06-2013 20:19
can't accesss admin panel System Administration 4 05-06-2013 08:04
A new admin interface Roadmap 10 31-05-2013 06:35
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue