collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 532
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Block um Sprachen auszuwählen  (Read 5211 times)

0 Members and 1 Guest are viewing this topic.

Offline Tom

  • Semi Newbie
  • *
  • Posts: 26
  • Gender: Male
  • SMF Version: 1.1.10
  • SP Version: 2.3
Block um Sprachen auszuwählen
« on: September 22, 2009, 06:27:29 AM »
Hallo zusammen,

ich habe in meinem Forum die Möglichkeit deutsche oder englische Sprache auszuwählen. Leider weiß ich nicht wie ich im Portal einen ähnlichen Block einbauen kann. Im Forum nutze ich "Language Drop". Vielleicht hilft euch das ja weiter.

Danke für eure Mühe,

Tom
SMF 1.1.13  /   Simple Portal 2.3.3

Offline Please delete this Profile

  • Semi Newbie
  • *
  • Posts: 17
  • Gender: Male
  • Please delete this Profile
    • Please delete this profile
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Block um Sprachen auszuwählen
« Reply #1 on: September 25, 2009, 04:32:29 PM »

in einen PHP-Block dies einfügen:
Code: [Select]
// Generate the Language Drop Down..
function template_language_select()
{
global $context, $txt, $scripturl;

// Do the Function...
languageDrop();

// Hopefully We always have something to show for ourselves.
if (!empty ($context['languages']))
{
echo '
<form action="" method="post" class="smalltext" style="float: right;">
<select id="language_select" name="language" onchange="this.form.submit()" class="smalltext">';
foreach ($context['languages'] as $language)
echo '
<option value="', $language['filename'], '"', isset($context['user']['language']) && $context['user']['language'] == $language['filename'] ? ' selected="selected"' : '', '>', $language['name'], '</option>';
echo '
</select><input type="hidden" name="changelang" value="1" />&nbsp;<noscript><input type="submit" value="', $txt['quick_mod_go'], '" /></noscript></form>';
}
// No languages we can find!
elseif (empty ($context['languages']))
echo 'LanguageDrop: ' . $txt[398];
// If this occurs we are in trouble.
else
echo 'LanguageDrop: ' . $txt[106];
}
{
echo '
<table width="100%" cellpadding="2" cellspacing="0">
<tr>
<td  valign="top">';
template_language_select();
echo '
</td></table>';
}
« Last Edit: September 25, 2009, 04:49:51 PM by Chamäleon »
Please delete this profile

Offline Tom

  • Semi Newbie
  • *
  • Posts: 26
  • Gender: Male
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Block um Sprachen auszuwählen
« Reply #2 on: September 26, 2009, 09:26:05 AM »
Hi Chamäleon   ;D

das klappt bei dir ? Bei mir leider nicht ...

Gruß,

Tom

SMF 1.1.13  /   Simple Portal 2.3.3

Offline Please delete this Profile

  • Semi Newbie
  • *
  • Posts: 17
  • Gender: Male
  • Please delete this Profile
    • Please delete this profile
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Block um Sprachen auszuwählen
« Reply #3 on: September 26, 2009, 09:34:21 AM »
ja

was klappt den bei dir nicht?

Deine Fehlermeldung ist ja so aussagekräftg!
Please delete this profile

Offline Tom

  • Semi Newbie
  • *
  • Posts: 26
  • Gender: Male
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Block um Sprachen auszuwählen
« Reply #4 on: September 26, 2009, 11:28:17 AM »
Sorry ...


Fatal error: Cannot redeclare template_language_select() (previously declared in /homepages/43/d17630871/htdocs/Tautz-Forum/Sources/Load.php(1776) : eval()'d code:688) in /homepages/43/d17630871/htdocs/Tautz-Forum/Sources/PortalBlocks.php(3409) : eval()'d code on line 2
SMF 1.1.13  /   Simple Portal 2.3.3

Offline Please delete this Profile

  • Semi Newbie
  • *
  • Posts: 17
  • Gender: Male
  • Please delete this Profile
    • Please delete this profile
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Block um Sprachen auszuwählen
« Reply #5 on: September 26, 2009, 01:06:00 PM »
dann ist die Modifikation nicht korrekt installiert
lade sie mal im Parser und kontrolliere die Load.php
auch auf doppelte Einträge

denn Code für den Block auch komplett übernommen?
keine Klammer(die letzte unten) vergessen?

du siehst  ja bei mir, das es funktioniert (habs mal aktiviert)
Please delete this profile

Offline Tom

  • Semi Newbie
  • *
  • Posts: 26
  • Gender: Male
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: Block um Sprachen auszuwählen
« Reply #6 on: September 27, 2009, 05:11:04 AM »
Jo, hast recht. Bei mir fehlt ein Eintrag.
Wenn ich den, wie es im Parser steht, einfüge, läuft das Forum nicht mehr 8)

Ich laß alles wie es ist.

Danke für deine Hilfe.

Gruß,

Tom
SMF 1.1.13  /   Simple Portal 2.3.3