Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4219
Latest: Toddie
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 42829
Total Topics: 7462
Most Online Today: 66
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 58
Total: 59

Author Topic: Problem with Download system  (Read 4520 times)

0 Members and 1 Guest are viewing this topic.

Offline calranthe

  • Member
  • *
  • Posts: 3
    • View Profile
Problem with Download system
« on: July 12, 2008, 01:08:49 am »
I am pretty sure im just missing something but i've tried to get this to work myself three times from fresh.

I'm manually installing Download system 1.0.4 onto SMF 1.1.5.

What works?

In the admin section the Download configuration menu works fine (left hand side)

But niether me nor anyone else can see the top menu for downloads

This is what I see



Now this is my code from my Index.template.php

Code: [Select]
// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'managegames', 'arcadesettings', 'arcadecategory', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('downloads', 'gallery','search', 'arcade', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

Code: [Select]
// the [Downloads System] button
if ($context['allow_downloads_view'])
    echo ($current_action == 'downloads' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
        <td valign="top" class="maintab_' , $current_action == 'downloads' ? 'active_back' : 'back' , '">
          <a href="', $scripturl, '?action=downloads">' , $txt['downloads_menu'] , '</a>
        </td>' , $current_action == 'downloads' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';



No errors are coming up im just a little confused but thats normal.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16247
    • View Profile
Re: Problem with Download system
« Reply #1 on: July 12, 2008, 10:07:09 am »
You need to also do the updates in the themes/default/languages/modifications.*.php files

Then the text will appear.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline calranthe

  • Member
  • *
  • Posts: 3
    • View Profile
Re: Problem with Download system
« Reply #2 on: July 12, 2008, 10:29:13 am »
Thankyou for the reply I thought i'd already done that.

In modifications.english.php
I have

Code: [Select]
// Begin Download System Text Strings $txt['downloads_menu'] = 'Downloads';
$txt['downloads_admin'] = 'Downloads Configuration';
// Permissions
$txt['permissiongroup_downloads'] = 'Downloads System';
$txt['permissionname_downloads_view'] = 'View Downloads';
$txt['permissionhelp_downloads_view'] = 'Allows the user to view the Downloads';
$txt['cannot_downloads_view'] = 'You are not allowed to view the Downloads';
$txt['permissionname_downloads_add'] = 'Add Download';
$txt['permissionhelp_downloads_add'] = 'Allows the user to add a download.';
$txt['cannot_downloads_add'] = 'You are not allowed to add a download.';
$txt['permissionname_downloads_edit'] = 'Edit own Download';
$txt['permissionhelp_downloads_edit'] = 'Allows the user to edit their own download.';
$txt['cannot_downloads_edit'] = 'You are not allowed to edit that download';
$txt['permissionname_downloads_delete'] = 'Delete own Download';
$txt['permissionhelp_downloads_delete'] = 'Allows the user to delete their own download.';
$txt['cannot_downloads_delete'] = 'You are not allowed to delete that download.';
$txt['permissionname_downloads_ratefile'] = 'Rate Downloads';
$txt['permissionhelp_downloads_ratefile'] = 'Allows the user to rate a file.';
$txt['cannot_downloads_ratefile'] = 'You are not allowed to rate that file.';
$txt['permissionname_downloads_editcomment'] = 'Edit own Comment';
$txt['permissionhelp_downloads_editcomment'] = 'Allows the user to edit their own comments.';
$txt['cannot_downloads_editcomment'] = 'You are not allowed to edit that comment.';
$txt['permissionname_downloads_comment'] = 'Leave Comments';
$txt['permissionhelp_downloads_comment'] = 'Allows the user to leave comments on a download.';
$txt['cannot_downloads_comment'] = 'You are not allowed to leave comments.';
$txt['permissionname_downloads_report'] = 'Report Pictures/Comments';
$txt['permissionhelp_downloads_report'] = 'Allows the user to report downloads and comments.';
$txt['cannot_downloads_report'] = 'You are not allowed to report content.';
$txt['permissionname_downloads_autocomment'] = 'Auto Approve Comments';
$txt['permissionhelp_downloads_autocomment'] = 'Comments do not need to wait for approval.';
$txt['permissionname_downloads_autoapprove'] = 'Auto Approve Downloads';
$txt['permissionhelp_downloads_autoapprove'] = 'Downloads do not need to wait for approval.';
$txt['permissionname_downloads_manage'] = 'Admin Download System';
$txt['permissionhelp_downloads_manage'] = 'Allows the user to add/delete/edit all catagories. Delete Comments, Delete Downloads, Approve Downloads';
$txt['cannot_downloads_manage'] = 'You are not allowed to manage the downloads.';
// END Download System Text Strings

In Modifications.english-utf8.php
Code: [Select]
// Begin Download System Text Strings
$txt['downloads_menu'] = 'Downloads'; $txt['downloads_admin'] = 'Downloads Configuration';
// Permissions
$txt['permissiongroup_downloads'] = 'Downloads System';
$txt['permissionname_downloads_view'] = 'View Downloads';
$txt['permissionhelp_downloads_view'] = 'Allows the user to view the Downloads';
$txt['cannot_downloads_view'] = 'You are not allowed to view the Downloads';
$txt['permissionname_downloads_add'] = 'Add Download';
$txt['permissionhelp_downloads_add'] = 'Allows the user to add a download.';
$txt['cannot_downloads_add'] = 'You are not allowed to add a download.';
$txt['permissionname_downloads_edit'] = 'Edit own Download';
$txt['permissionhelp_downloads_edit'] = 'Allows the user to edit their own download.';
$txt['cannot_downloads_edit'] = 'You are not allowed to edit that download';
$txt['permissionname_downloads_delete'] = 'Delete own Download';
$txt['permissionhelp_downloads_delete'] = 'Allows the user to delete their own download.';
$txt['cannot_downloads_delete'] = 'You are not allowed to delete that download.';
$txt['permissionname_downloads_ratefile'] = 'Rate Downloads';
$txt['permissionhelp_downloads_ratefile'] = 'Allows the user to rate a file.';
$txt['cannot_downloads_ratefile'] = 'You are not allowed to rate that file.';
$txt['permissionname_downloads_editcomment'] = 'Edit own Comment';
$txt['permissionhelp_downloads_editcomment'] = 'Allows the user to edit their own comments.';
$txt['cannot_downloads_editcomment'] = 'You are not allowed to edit that comment.';
$txt['permissionname_downloads_comment'] = 'Leave Comments';
$txt['permissionhelp_downloads_comment'] = 'Allows the user to leave comments on a download.';
$txt['cannot_downloads_comment'] = 'You are not allowed to leave comments.';
$txt['permissionname_downloads_report'] = 'Report Pictures/Comments';
$txt['permissionhelp_downloads_report'] = 'Allows the user to report downloads and comments.';
$txt['cannot_downloads_report'] = 'You are not allowed to report content.';
$txt['permissionname_downloads_autocomment'] = 'Auto Approve Comments';
$txt['permissionhelp_downloads_autocomment'] = 'Comments do not need to wait for approval.';
$txt['permissionname_downloads_autoapprove'] = 'Auto Approve Downloads';
$txt['permissionhelp_downloads_autoapprove'] = 'Downloads do not need to wait for approval.';
$txt['permissionname_downloads_manage'] = 'Admin Download System';
$txt['permissionhelp_downloads_manage'] = 'Allows the user to add/delete/edit all catagories. Delete Comments, Delete Downloads, Approve Downloads';
$txt['cannot_downloads_manage'] = 'You are not allowed to manage the downloads.';
// END Download System Text Strings

I've also checked all the rest of my files i know im missing something :(

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16247
    • View Profile
Re: Problem with Download system
« Reply #3 on: July 12, 2008, 10:53:07 am »
You see this line
Code: [Select]
// Begin Download System Text Strings $txt['downloads_menu'] = 'Downloads';
It should be this
Code: [Select]
// Begin Download System Text Strings
$txt['downloads_menu'] = 'Downloads';
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline calranthe

  • Member
  • *
  • Posts: 3
    • View Profile
Re: Problem with Download system
« Reply #4 on: July 13, 2008, 01:21:11 am »
*hits head on the keyboard because if I hit my head on my lcd monitor the monitor comes worse off*
Thankyou soo much

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
9696 Views
Last post December 23, 2007, 05:01:54 pm
by rtyug
1 Replies
4127 Views
Last post February 07, 2008, 09:59:50 pm
by rtyug
2 Replies
5353 Views
Last post May 03, 2008, 06:54:48 pm
by Bec
6 Replies
5312 Views
Last post March 31, 2009, 10:43:35 am
by baxman
9 Replies
8499 Views
Last post May 06, 2010, 04:02:21 am
by giannis_athens

+- Recent Topics

[Mod]GDPR Helper by SMFHacks
Today at 01:50:14 pm

RSS Feed Poster Database Error by SMFHacks
May 22, 2023, 06:26:18 pm

Errors With Older Version. by Ken.
May 09, 2023, 05:35:40 pm

Pretty Urls SEO Pro by SMFHacks
May 06, 2023, 03:30:11 pm

New Post Image Upload Error by Mike66
April 28, 2023, 07:30:28 am

Copyright Removal Key by SMFHacks
April 03, 2023, 02:44:28 pm

Converting from Aeva Media by sudhakar
April 02, 2023, 11:09:54 am

Using SMF's Built-in Search Algorithm by shuban
March 27, 2023, 09:15:10 am

Permissions query by davejo
March 26, 2023, 04:43:48 am

prettyurls - TroubleShooting.wiki by SMFHacks
March 25, 2023, 01:49:35 pm

Powered by EzPortal