SMFHacks.com

Downloads System Pro => Support => Topic started by: jacci on December 10, 2010, 05:36:42 pm

Title: [SOLVED] Upgraded and lost button
Post by: jacci on December 10, 2010, 05:36:42 pm
Just ran smf upgrade to rc4 and i can't get the downloads button to display in any theme any more.

the code i had in sources/subs.php was

Code: [Select]
// [Downloads] button
'downloads' => array(
'title' => $txt['Sheets'],
'href' => $scripturl . '?action=downloads',
'show' => $context['allow_downloads_view'],
'icon' => '',
),


but it doesn't seem to be working anymore,  and is no longer in subs at all

I also ran upgrade to latest downloads pro, but problem persists.

Title: Re: Upgraded and lost button
Post by: SMFHacks on December 10, 2010, 05:50:23 pm
Have you modified your Subs.php to include that menu code?

If you did not uninstall before you upgraded to RC4. Then the downloads system will think it is still installed and will not add the button when you attempt to upgrade downloads pro.

Options are to uninstall the downloads pro all versions or modify the files manually to add support.

If you modified manually be sure to clear the cache in SMF under Admin -> Forum Maintenance.
Title: Re: Upgraded and lost button
Post by: jacci on December 10, 2010, 06:05:30 pm
I figured it out, they have changed the $context to AllowedTo format
all is good now.

i sort of upgraded everything ass-backwards and have created some issues for myself

thanks