Quote:
Originally Posted by Alfa1
How can I edit the text that is displayed on forum home stats? I want to add a link to the file archive.
|
You should edit the Links and Downloads Manager - Patch forumhome stats plugin that is attached to the forumhome_complete hook. Find the lines:
Code:
$template_hook['forumhome_wgo_stats'] .= "
<div>
$vbphrase[ldm_links_database] $vbphrase[ldm_categories]: $totalcats, $vbphrase[ldm_entries]: $totallinks$totalspace, $vbphrase[ldm_comments]: $totalcomments
</div>
";
and change it to (e.g.)
Code:
$template_hook['forumhome_wgo_stats'] .= "
<div>
<a href='".LINKS_SCRIPT."'>$vbphrase[ldm_links_database]</a> $vbphrase[ldm_categories]: $totalcats, $vbphrase[ldm_entries]: $totallinks$totalspace, $vbphrase[ldm_comments]: $totalcomments
</div>
";
Quote:
Originally Posted by Alfa1
I have 3 different main categories in my LDM: documents, video and audio. Is it possible to display the forum home stats for each of these main categories?
|
I deliberately avoided giving this plugin many features, because it requires loading all the LDM code base and can involve carrying out quite heavy database queries, which will increase the cost of viewing the forum home. So the answer to your question is "yes in principle" but I would be reluctant to make this an easy/reliable feature of the plugin.
Quote:
Originally Posted by Alfa1
Is it possible to use patch-forumhome-newlinks or another function to display latest new files on /search.php?do=getnew ?
|
Not currently. Again, I have tried to keep integration with other parts of vb limited, so as to keep down the cost of running (and maintaining

) LDM.