Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Follow us on Facebook
Follow us on Google+
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
Hi! Its me, Ankur Thakur! Smile
 
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:

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]<?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']."'");
}
}
?>[/syntaxhighlighter]

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
Last change in news Modifications and Requests 3 22-04-2014 10:51
Removal of Admin Pwd requirement Modifications and Requests 10 09-04-2014 14:06
Website and Host Change Post Your Site 6 01-04-2014 06:42
How to change fonts? Themes Support 10 31-03-2014 08:59
Locale updates and downloads Locales Forum 14 31-03-2014 03:36
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 fromVenue