TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,970
  • Latest: bynw
Stats
  • Total Posts: 196,061
  • Total Topics: 21,338
  • Online today: 234
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 130
  • Total: 130

TinyPortal v0.8.6

Started by Lesmond, February 05, 2006, 02:35:48 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

diegolyanky

Thanks for reply ...

Here is, I pasted much more than 10 lines ...

Quote

// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
        global $context, $settings, $options, $scripturl, $txt;

        // Show the [home] and [help] buttons.

        echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
        echo '<td><a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="Forum" style="margin: 0px 0;" border="0" />' : 'Forum'), '</a></td>';
       

        // How about the [search] button?
        if ($context['allow_search'])
                echo '<td><a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 0px 0;" border="0" />' : $txt[182]), '</a></td>';

        // Is the user allowed to administrate at all? ([admin])
        if ($context['allow_admin']){
                echo '<td><a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 0px 0;" border="0" />' : $txt[2]), '</a></td>';
         }
        // Edit Profile... [profile]
        if ($context['allow_edit_profile'])
                echo '<td><a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 0px 0;" border="0" />' : $txt[467]), '</a></td>';

        // The [calendar]!
        if ($context['allow_calendar'])
                echo '<td><a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 0px 0;" border="0" />' : $txt['calendar24']), '</a></td>';

        // If the user is a guest, show [login] and [register] buttons.
        if ($context['user']['is_guest'])
        {
                echo '<td><a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 0px 0;" border="0" />' : $txt[34]), '</a></td>';
                echo '<td><a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 0px 0;" border="0" />' : $txt[97]), '</a></td>';
        }
        // Otherwise, they might want to [logout]...
        else{
              echo '<td><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" style="margin: 0px 0;" border="0" />' : $txt[108]), '</a></td>';
              }

       // first button...is it on?
       if(isset($settings['custombutton1_use'])  && $settings['custombutton1_use']==true){
          // is it memberonly?
            if(isset($settings['custombutton1_member']) && $settings['custombutton1_member']==true){
                // it is, check if guest
                if($context['user']['is_logged']){
                   // member, check if its not empty...
                   if(isset($settings['custombutton1']) && !empty($settings['custombutton1']) && isset($settings['custombutton1_link']) && !empty($settings['custombutton1_link']))
                      echo '<td><a href="'. $settings['custombutton1_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton1'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
                }
            }
            else{
                   // guests too, check if its not empty...
                   if(isset($settings['custombutton1']) && !empty($settings['custombutton1']) && isset($settings['custombutton1_link']) && !empty($settings['custombutton1_link']))
                      echo '<td><a href="'. $settings['custombutton1_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton1'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
            }
       }
       // second button...is it on?
       if(isset($settings['custombutton2_use'])  && $settings['custombutton2_use']==true){
          // is it memberonly?
            if(isset($settings['custombutton2_member']) && $settings['custombutton2_member']==true){
                // it is, check if guest
                if($context['user']['is_logged']){
                   // member, check if its not empty...
                   if(isset($settings['custombutton2']) && !empty($settings['custombutton2']) && isset($settings['custombutton2_link']) && !empty($settings['custombutton2_link']))
                      echo '<td><a href="'. $settings['custombutton2_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton2'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
                }
            }
            else{
                   // guests too, check if its not empty...
                   if(isset($settings['custombutton2']) && !empty($settings['custombutton2']) && isset($settings['custombutton2_link']) && !empty($settings['custombutton2_link']))
                      echo '<td><a href="'. $settings['custombutton2_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton2'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
            }
       }
       // third button...is it on?
       if(isset($settings['custombutton3_use'])  && $settings['custombutton3_use']==true){
          // is it memberonly?
            if(isset($settings['custombutton3_member']) && $settings['custombutton3_member']==true){
                // it is, check if guest
                if($context['user']['is_logged']){
                   // member, check if its not empty...
                   if(isset($settings['custombutton3']) && !empty($settings['custombutton3']) && isset($settings['custombutton3_link']) && !empty($settings['custombutton3_link']))
                      echo '<td><a href="'. $settings['custombutton3_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton3'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
                }
            }
            else{
                   // guests too, check if its not empty...
                   if(isset($settings['custombutton3']) && !empty($settings['custombutton3']) && isset($settings['custombutton3_link']) && !empty($settings['custombutton3_link']))
                      echo '<td><a href="'. $settings['custombutton3_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton3'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
            }
       }


       echo '<td><img src="' . $settings['images_url'] . '/pod/'.$options['theme_color'].'/pod-rightbar.gif" alt="gfx" style="margin: 0px 0;" border="0" />';

}




IchBin

I am thinking that maybe the image is cached. Clear your cache, and then do a shift+refresh and see if you still see it.

bigsimon

I completely uninstaled SMF and TinyPortal.  I reinstalled SMF.  I used the Package Manager to upload and attempt to install TinyPortal.  I got the same PHP error again.  *sigh*

QuoteFatal error: packageinstall(): Failed opening required '/hsphere/local/home/bigsimon/simonproject.com/Packages/temp/./tp_install.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/bigsimon/simonproject.com/Sources/Packages.php on line 534

Sending login information to you, IchBinâââ,¬Å¾Ã,¢, soon as I get it set up.  Thanks!

dominik

i installed it with the packet-manager and no errors.
but when i try to go to the TP-Settings in den admin-panel, i get this error:

QuoteTable 'indymind.tportal_blocks' doesn't exist
Datei: /var/www/virtual/indymind.de/htdocs/forum/Sources/TPortalAdmin.php
Zeile: 685

diegolyanky

Quote from: IchBinÃ,â,,¢ on February 05, 2006, 06:43:22 PM
I am thinking that maybe the image is cached. Clear your cache, and then do a shift+refresh and see if you still see it.

I cleared all cookies and archives and nothing ... Admin button is showing yet ...

I don't understand why ... I think is showing only for one group ... but I don't find where to modify

Any suggestions ?

Thanks ! ;)

IchBin

I think you should check to see if any of those groups have admin permissions.

diegolyanky

YES ! ... I created an new user and I passed to that category ( member group called " Colaborador " ) and that new user now can see Admin button.  
Why ?
That group has not admin permissions and no moderates and nothing  :idiot2: ... Is just another group called of different way !
Where can I edit that ?

Maybe, am I an idiot, but I can't find where to edit that !  :(

pheasant_plucker

Help,
I'm in the middle of upgrading to rc2 and I'm getting this message Updating thumbnails... Unsuccessful!

This query:
SELECT ID_ATTACH, filename, attachmentType
FROM YaBB_attachments
WHERE ID_THUMB = 0
AND (RIGHT(filename, 4) IN ('.gif', '.jpg', '.png', '.bmp') OR RIGHT(filename, 5) = '.jpeg')
AND width = 0
AND height = 0;
Caused the error:
Unknown column 'attachmentType' in 'field list'

any ideas

Gerry

pcorn54

It certainly would be nice to download this since the wait has been so long. But when I click on the download button, it give me an error message "not allowed to access this section" and I notice I have been kicked back to login showing as a guest!

Whassup?

IchBin

Pheasant,

Something you should look for over at SMF. They support their product very well.

This website is proudly hosted on Crocweb Cloud Website Hosting.