• Welcome to Simple Machines Community Forum. Please login or sign up.
October 24, 2021, 01:54:48 PM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


TinyPortal

Started by lurkalot, February 12, 2005, 04:43:00 AM

Previous topic - Next topic

IchBin™

October 18, 2010, 10:37:04 AM #820 Last Edit: October 18, 2010, 10:49:47 AM by IchBin™
Typically the modification parse error is tied to a server permission. Hard to say what it is, but make sure all your files are writable by the web server.

@flutter,
I'm not quite sure what you mean by some of your questions, so I'll answer as best I can.
1. You can add as many .rar files as you want. You can assign any files to be a part of another download.
2. Are you talking about the description? You can put text/html in the editor for downloads if that is what you are asking.
3. All 3 files for what? Install? No, you only need the latest one.

@Welsh,
The avatars will need to be removed from the shoutbox code.
http://www.tinyportal.co.uk/index.php?topic=32252.msg259097#msg259097
IchBin™        TinyPortal

flutter

Thanks for the first two, that's exactly what I wanted to know and it's what we're looking for.  I had downloads system pro and we could only have one .rar or .zip attachment but could choose the amount of images.  This suits our needs better .  Also we couldn't use html in the download post, so this is great news

When I say 3 files, I mean.  When you look at the download page there are three files at the top right of the page, I'm not sure what I need.  One of them is a sql file so wasn't sure if I need it. 

!RFAN

theme changer is not working properly

link to my site is in signature... whats wrong here??

agridoc

Did you select in Settings some themes for theme changer?
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF - Greeklish to Greek mod
Δeν αφιερώνω χρόνο για μηνύματα σε greeklish.

!RFAN

from my smf theme settings??? yes i did... i have selected all the available themes... is there any option in tiny portal settings?

agridoc

Go to block edit for theme changer and select THERE the themes that you want.
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF - Greeklish to Greek mod
Δeν αφιερώνω χρόνο για μηνύματα σε greeklish.

!RFAN

thanks :)
its working now...

IchBin™

@flutter,

You only need the latest version for TP 1 RC1. The sql file is only for a manual install if necessary.
IchBin™        TinyPortal

flutter

Ok, I've installed this and so far so good.  What I am wondering is if there's a way to move the downloads button from floating around down the side, to being in the actual menu tree.  I am willing to do the actual work myself if someone can tell me how to do it, e.g. which file and what to change.  I can even make the button myself.  I just need to be able to place it.

The downloads are an integral part of the site and we need them to be a bit more prominent and easy to find

IchBin™

If you open the index.template.php and go towards the bottom you'll find the function template_menu() section where the buttons are all created. Assuming you're using SMF1.x you can just copy one of the other buttons and change the link and text to work for the downloads button.
IchBin™        TinyPortal

flutter

October 19, 2010, 10:13:57 AM #830 Last Edit: October 19, 2010, 10:26:16 AM by flutter
Thanks for that.  I can do that no problem.

So I just make the image and create a  to the download area.

Have you any idea how I get the other downloads button to disappear without closing down the download area?  I mean the button that is there in the middle of the page, can I turn that off somehow?  Where would the code be for that and I can remove it if I have to?

appreciate the help

Here's what I have so far

// Show the [downloads] button.
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=href="http://www.name of site.co.uk/index.php?action=tpmod;dl">', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'downloads' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';




Do I have to put the text in somewhere for the button or will this work?  It just goes on to maintab and that's blank so can't add any text.   

IchBin™

Replace $txt[103] with $txt['tp-downloads']

The other button? I'm assuming you're talking about the one in the block you talked about above? You just turn off the sitemap block.
IchBin™        TinyPortal

flutter

October 19, 2010, 12:59:50 PM #832 Last Edit: October 19, 2010, 01:15:26 PM by flutter
I thought it would be the txt bit where it says 103.  I'll do that now.

I didn't know there was sitemap block, I'll need to look for that.

Basically I could just add another button for articles too then and just put tp-articles in. 

I'll have a go, this is a nice mod but just needs tweaked for our purposes

Thanks again for the help, you're a star

It didn't work, I replaced the index.template and the button doesn't show.  I'd have preferred it to be in that main nav but it's looking like I'll have to do a new navbar somewhere in an html block or something.  :(

Here's the block I used

        // Show the [downloads] button.
    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=href="http://www.prettysims.co.uk/index.php?action=tpmod;dl"></a>', $scripturl, '">' , $txt['tp-downloads'] , '
                </td>' , $current_action == 'downloads' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';           


Do I maybe have to put it somewhere else too?  Maybe it's because I haven't found the site map block yet

IchBin™

I'm guessing you're using a custom theme? Do the other buttons have the same type of code? Post some code from the other buttons around your code so I can compare.

The sitemap is setup up as a default block. To edit blocks you just go into the manage blocks section and toggle on/off the block if you don't want it on.
IchBin™        TinyPortal

flutter

 I don't have that block on so it can't be that, I don't think it's a default one.  Or is it maybe the search box?  I did view the sourse code and it mentions the sitemap under the block I have for ads, the only thing under there is the seach box.  I'll try putting that off.

I'm only on the default theme right now as it's a test site, so it isn't that

This is what's all around it

    // Show the [home] button.
    echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
                    <a href="', $scripturl, '">' , $txt[103] , '</a>
                </td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

        // Show the [downloads] button.
    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=href="http://www.prettysims.co.uk/index.php?action=tpmod;dl"></a>', $scripturl, '">' , $txt['tp-downloads'] , '
                </td>' , $current_action == 'downloads' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';           
   
    // Show the [help] button.
    echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
                    <a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
                </td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // How about the [search] button?
    if ($context['allow_search'])
        echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
                    <a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
                </td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // Is the user allowed to administrate at all? ([admin])
    if ($context['allow_admin'])
        echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
                    <a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
                </td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

    // Edit Profile... [profile]
    if ($context['allow_edit_profile'])
        echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
                    <a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
                </td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


I'd see the point if it was showing but not working

IchBin™

bah, sorry I didn't see your problem. Now that I look a little closer I see it. Change this line:
<a href=href="http://www.prettysims.co.uk/index.php?action=tpmod;dl"></a>', $scripturl, '">' , $txt['tp-downloads'] , '

To this:
<a href=href="http://www.prettysims.co.uk/index.php?action=tpmod;dl">' , $txt['tp-downloads'] , '</a>

If you can't figure out the sitemap problem I'll probably have to look at your site to see what you're talking about then. PM me a link and a login if you need to.
IchBin™        TinyPortal

flutter

October 19, 2010, 01:52:49 PM #836 Last Edit: October 19, 2010, 02:05:20 PM by flutter
I'd appreciate your input, it's not a working site, it's in maintenance mode so I'll send you a pm.

I just noticed this mod doesn't allow for comments in the downloads and we need that as people sometimes have issues.  I tried a test download. :(

Made the changes you suggested and still nothing, must be the sitemap thing

IchBin™

You're right there are no comments for downloads. There is however a feature to create a topic for a download in which the download will have a link to the topic so it can be commented on.
IchBin™        TinyPortal

flutter

October 19, 2010, 04:50:48 PM #838 Last Edit: October 19, 2010, 05:10:09 PM by flutter
That would be too much for our members.  I wonder if it can be added.

The buttons still didn't work even after you removing the site map

Masterd

I have problem with the userbox block. It don't shows my avatar correctly.

Advertisement: