First Q :
How do i set the default sort order in a catagory for every user the same?
i want that its default is on update and descending
becuse now when you enter a catagory, the newest downloads are at the bottom of the page or if you have more downloads on a other page
so how do i do i change that?
seccond Q :
is it possible to add a download en thumbnail in posting_body.tpl
and then linking it to downloads.php?view=detail&id=xx
and if it is, where can i find a addon mod like that?
third Q :
how can i make it so you can upload thumbnail from URL?
forth Q :
the search engine from the download mod
intergrating with The search from a phpbb forum
is it possible and how should i do that?
Last Q :
Is it possible to see in viewtopic_body.tpl under the avatar how many uploads you have uploaded?
thx in advance
greetz Atmos
Couple of Questions or suggestions (COOL MOD BTW)
The default sort order can be changed in downloads.php
look at the default settings
Code: Alles auswählen
/*
* sorting downloads
*/
switch ($sort_by)
{
case 1:
$sql_sort_by = 'description';
break;
case 2:
$sql_sort_by = 'file_name';
break;
case 3:
$sql_sort_by = 'klicks';
break;
case 4:
$sql_sort_by = 'free';
break;
case 5:
$sql_sort_by = 'extern';
break;
case 6:
$sql_sort_by = 'file_size';
break;
case 7:
$sql_sort_by = 'change_time';
break;
case 8:
$sql_sort_by = 'rating';
break;
default:
$sql_sort_by = 'change_time';
}
switch ($order)
{
case 'ASC':
$sql_order = 'ASC';
break;
case 'DESC':
$sql_order = 'DESC';
break;
default:
$sql_order = 'DESC';
}
look at the default settings
1.: You've found the solution. Fine.
2.: I've no idea yet to replace this link with a possible thumb.
Regard that you can realy slow down the topic view because each post must be checked for download links and then you must check, if a thumbnail exists.
The script must run a match query extra per post and on a possible link match the script needs one sql query per download link to find a possible thumbnail. IMO not a practicable solution...
3.: The same reason as you better should not use this option on avatars, too: You will pull down the security level of your board. Upload a thumbnail for a download will check the file for possible exploits, link it can open a security leak for crackers!
So I'll not mod this option.
4.: It's not easy, because both searches are very different systems. And we don't plan to combine both into one form.
5.: Like point 2 you must run an extra sql query for each post to count the uploads for each poster. This will slow down the topic view, too.
2.: I've no idea yet to replace this link with a possible thumb.
Regard that you can realy slow down the topic view because each post must be checked for download links and then you must check, if a thumbnail exists.
The script must run a match query extra per post and on a possible link match the script needs one sql query per download link to find a possible thumbnail. IMO not a practicable solution...
3.: The same reason as you better should not use this option on avatars, too: You will pull down the security level of your board. Upload a thumbnail for a download will check the file for possible exploits, link it can open a security leak for crackers!
So I'll not mod this option.
4.: It's not easy, because both searches are very different systems. And we don't plan to combine both into one form.
5.: Like point 2 you must run an extra sql query for each post to count the uploads for each poster. This will slow down the topic view, too.
Again:
You can't upload thumbs from an url, because this will be a security leak.
Better you download the thumb and upload it to your own server.
And this method is faster while displaying the downlaod details, too.
I'll not code this in the MOD because of the named security reasons!
And on viewtopic:
Your questions will really slow down your topic views, if you will check each download link for an "possible" (not ever existing!) thumb on the post texts.
Better you will NOT use such codes. So sorry that I'll not helps here...
You can't upload thumbs from an url, because this will be a security leak.
Better you download the thumb and upload it to your own server.
And this method is faster while displaying the downlaod details, too.
I'll not code this in the MOD because of the named security reasons!
And on viewtopic:
Your questions will really slow down your topic views, if you will check each download link for an "possible" (not ever existing!) thumb on the post texts.
Better you will NOT use such codes. So sorry that I'll not helps here...