News:

Wondering if this will always be free?  See why free is better.

Main Menu

Download System

Started by SMFHacks.com Team, October 31, 2007, 06:55:37 PM

Previous topic - Next topic

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

PaulKet

There seems to be a missing image which should appear next to the word "Downloads" in the main menu (SMF 2.1 beta 2). When I inspect the element with Firefox all I'm seeing is:


<a class="active" href="http://myforum.com/index.php?action=downloads">
<img src="http://myforum.com/Themes/default/images/" alt="">Downloads</a>


How can I fix this so an image appears?

vbgamer45

Haven't tested it with SMF 2.1 beta 2 yet.
Is that the default theme or a custom theme?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

PaulKet

Quote from: vbgamer45 on November 14, 2015, 05:58:56 PM
Is that the default theme or a custom theme?

It's the default theme.

If I type in a image file name while I'm inspecting the element (after Themes/default/images/) the image will appear in the menu next to the word "Downloads".

wintstar

Incorrect permissions from other modification "smfclassifieds_manage"

DownloadSystem Version 2.5a

Downloads.php and Downloads2.php
Code (php) Select
function Downloads_CustomDelete()
{
    global $db_prefix;

    // Check Permission
    isAllowedTo('smfclassifieds_manage');
Regards Stephan

,,In order for the possible to come into being, the impossible must be attempted again and again."
Hermann Hesse (1877-1962)

My HomepageMy Board - My Atelier

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

SMFHacks.com Team

Update
2.5.1
!Fixed wrong permission for custom field delete
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Black Tiger

What is the best way to upgrade from Downloads System 2.0 to 2.5.1? Is that like uninstalling, uploading the new files and installing again?
Do I need to delete any of the old files?
Greetings, Black Tiger

vbgamer45

If you can yes otherwise install over old version
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Black Tiger

I can uninstall and then overwrite. As long as I don't loose the downloads and stats it's oke by me.:)
So it should work fine then this way. Thank you!
Greetings, Black Tiger

wintstar

I want to create a responsive theme.  @vbgamer45, could you please tell me exactly for what is this function?
$g_manage

I want to create a Theme without table tag.
Regards Stephan

,,In order for the possible to come into being, the impossible must be attempted again and again."
Hermann Hesse (1877-1962)

My HomepageMy Board - My Atelier

vbgamer45

Used for permission control
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

wintstar

Thanks, but how can I implement this as a div tag?

<td colspan="',($g_manage ? '6' : '4'), '">
Regards Stephan

,,In order for the possible to come into being, the impossible must be attempted again and again."
Hermann Hesse (1877-1962)

My HomepageMy Board - My Atelier

Illori

if $g_manage then 6 if not 4 columns it is short hand for an if statement.

wintstar

Is that correct?

Code (php) Select
                            if (($subcats_linktree != '') && ($g_manage != '6'))
                            {
                            echo '
                                <dl>
                                    <dd>&nbsp;<span class="smalltext">',($subcats_linktree != '' ? '<b>' . $txt['downloads_sub_cats'] . '</b>' . $subcats_linktree : ''),'</span></dd>
                                </dl>';
                            }
                            elseif (($subcats_linktree != '') && ($g_manage != '4'))
                            {
                            echo '
                                <dl>
                                    <dd>&nbsp;<span class="smalltext">',($subcats_linktree != '' ? '<b>' . $txt['downloads_sub_cats'] . '</b>' . $subcats_linktree : ''),'</span></dd>
                                </dl>';
                            }
Regards Stephan

,,In order for the possible to come into being, the impossible must be attempted again and again."
Hermann Hesse (1877-1962)

My HomepageMy Board - My Atelier

vbgamer45

Not sure in your case the code for the display looks exatly the same so no point in use the  && ($g_manage != '4')) and && ($g_manage != '6'))
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

wintstar

Was my first thought was that I could leave it out for the view.  Was not sure. It's all just how many rows are displayed, depending on the permission.
Regards Stephan

,,In order for the possible to come into being, the impossible must be attempted again and again."
Hermann Hesse (1877-1962)

My HomepageMy Board - My Atelier

Kindred

the logic in your statetement doesn't make sense, wintstar....

it's not supposed to be "if $g_manage = 4"
it is
IF $g_manage (= anything other than 0) THEN 4 columns ELSE 6 columns
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

wintstar

Yes, now I understand it. But this does not make sense for the div tag. Then you could leave out this function, or not?
Regards Stephan

,,In order for the possible to come into being, the impossible must be attempted again and again."
Hermann Hesse (1877-1962)

My HomepageMy Board - My Atelier

Kindred

well, look at the columns which are added if $g_manage is populated....   those columns would have the same sort of conditional using DIVs - you just don't have to specify the colspan in the header.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: