Quote:
Originally Posted by TeknoSounds
Hey Jelle, I'm trying to edit a few things to get things to show up the way I want, but running into a few troubles. First, on the memberinfo tab for Downloads, I'm trying to add the category to the info displayed, but cat.name doesn't show anything. Is there anything I need to do to pull this variable?
Second, on the Latest Files and Top Files, I'm trying to add "by file.author" in a smaller line underneath the title of the download, but I can't begin to see where the stats info is pulled/compiled from/at so that I could add this.
|
It's not that easy as that information isn't available. The database query isn't loading that.
For the first one, you need to edit the profile tab plugin and add a JOIN statement to the query to get the category table in. For the second one, you need to edit the queries in class_downloads2.php (update_latest_files() and update_popular_files() functions).
Quote:
Originally Posted by asj
Your server is running safe mode. You MUST manually create a folder named dl_tmp under your downloads folder. Be sure to change the permissions to 777. :down:
|
The notification sounds clear to me? It's there to help you and it goes away when you fixed it
Quote:
Originally Posted by vbbforfree
My error

|
Quote:
Originally Posted by redfox2010
do i have to change postbit? or what?
i can do manually 
tnx
|
That's not a DownloadsII issue, but a Post Thank You Hack issue. The thank stats are right before the download stats and they start it because of some invalid HTML.
A workaround placing the download stats before the thank you ones:
AdminCP -> Plugins & Products -> Plugin Manager -> "DownloadsII: Set Postbit Template Hook" -> Execution Order -> 4 -> Save
Quote:
Originally Posted by mattpist
is it possible to add an "add new file" button to the main page instead of just the category pages? thanks!
|
Edit the
downloads2_main template and add it where you want:
HTML Code:
<vb:if condition="$show['addnewfile']">
<a class="newcontent_textcontrol" href="downloads.php?{vb:raw session.sessionurl}do=add&cat={vb:raw cat.id}" rel="nofollow"><span>+</span> {vb:rawphrase dl2_add_new_file}</a>
</vb:if>