Thread: Major Additions - DownloadsII
View Single Post
  #732  
Old 05-16-2010, 09:51 AM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TeknoSounds View Post
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 View Post
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 View Post
My error
Quote:
Originally Posted by redfox2010 View Post
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 View Post
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&amp;cat={vb:raw cat.id}" rel="nofollow"><span>+</span> {vb:rawphrase dl2_add_new_file}</a>
		</vb:if>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01071 seconds
  • Memory Usage 1,782KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete