Author Topic: Trennung der home.html ind eingeloggt und ausgeloggt  (Read 7030 times)

0 Members and 1 Guest are viewing this topic.

Offline Sir Sky-Walker

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Trennung der home.html ind eingeloggt und ausgeloggt
« on: January 26, 2007, 03:01:04 PM »
Hallo Leute,

ich will die "home.html" zu einrichten, das das bild für Besucher die nicht eingeloggt anders ist als für die die eingeloggt sind.

Hab schonmal bisschen rumprobiert mit den Codes:

{if user_loggedout}
Text für User die nicht eingeloggt sind!
{endif user_loggedin}


{if user_loggedin}
Text für User die eingeloggt sind!
{endif user_loggedin}

Es klappt auch fast wunderbar. Hab einfach die Statistiken, die Kategorien, die neusten Kommentare, ... mit dem Code für Eingeloggt umschlossen. Wird auch fast alles bei normalen nicht eingeloggten Besuchern nicht angezeigt, bis auf  kleine Sachen.

Undzwar :
- x Bilder in x Kategorien
- letzte Kommentare (nur die überschrift
- Seitenstatistik

Was mache ich falsch ?



Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Trennung der home.html ind eingeloggt und ausgeloggt
« Reply #1 on: January 26, 2007, 03:03:01 PM »
Poste doch mal die URL und ggf. dein Template....

Offline Sir Sky-Walker

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: Trennung der home.html ind eingeloggt und ausgeloggt
« Reply #2 on: January 26, 2007, 03:04:33 PM »
hier mal mein code:

Code: [Select]
{if user_loggedout}
 
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                          <td width="100%">&nbsp;</td>
                      </tr>
                      <tr>
                          <td width="100%">Test</td>
                      </tr>
                      <tr>
                          <td width="100%">&nbsp;</td>
                      </tr>
                      <tr>
                          <td width="100%">&nbsp;</td>
                      </tr>
                  </table>
 
 
{endif user_loggedout}
 
 
 
{if user_loggedin}  
 
 
 
 
 
 
 
 
 
<table width="100%" border="0" cellspacing="0" cellpadding="5">
                          <tr>
                            <td valign="top" class="head1">&nbsp;{lang_user_online}</td>
                          </tr>
                          <tr>
                            <td valign="top">{lang_user_online_detail}<br />
            {user_online_list}</td>
                          </tr>
                  </table>
                  <br><br>
                 
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td>
                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr>
                         
                          {if msg}<b>{msg}</b><br /><br />{endif msg}
                         
                            <td class="head1" valign="top" width="35%">{lang_new_images}</td>
                            <td valign="top" class="head1" align="right"><a href="{url_new_images}" class="head1">neue Bilder der letzten 14 Tagen</a></td>
                          </tr>
                        </table>                      </td>
                    </tr>
                    <tr>
                      <td>{new_images}</td>
                    </tr>
                  </table>
 
  <br><br />
 
  <table width="100%" border="0" cellspacing="0" cellpadding="5">
                          <tr>
                            <td valign="top" class="head1">{lang_categories}</td>
                          </tr>
                          <tr>
                            <td valign="top">{categories}</td>
                          </tr>
                  </table>
  <br />
                  {endif categories}{lang_site_stats}<br />

   <br><br>
           
                 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td colspan="5">
                        <table width="100%" border="0" cellspacing="0" cellpadding="5">
                          <tr>
                            <td class="head1" valign="top">{lang_last_comments}</td>
                          </tr>
                        </table>                      </td>
                    </tr>
                    <tr>
                      <td align="center" width="20%" height="20" valign="bottom"><b>Vorschau</b></td>
                      <td align="center" width="20%" height="20" valign="bottom"><b>Bildname</b></td>
                      <td align="center" width="20%" height="20" valign="bottom"><b>Kategorie</b></td>
                      <td align="center" width="20%" height="20" valign="bottom"><b>Autor</b></td>
                      <td align="center" width="20%" height="20" valign="bottom"><b>Kommentar</b></td>
                    </tr>
                    <tr>
                      <td width="100%" align="justify" colspan="5"><hr></td>
                    </tr>
                    <tr>
                      <td colspan="5">{last_comments}</td>
                    </tr>
                  </table>
                 
      <br><br />
                   


   <table width="100%" border="0" cellspacing="0" cellpadding="3" height="0" style="border-collapse: collapse" bordercolor="#111111">


        <tr>
    <td class="head1" valign="middle" background="{template_url}/images/top_bg.gif" colspan="5" height="20"><b>OlPi's Statistik</b></td>
    </tr>

        <tr>
    <td valign="top" colspan="2">
    <p align="center"><b>Site-Statistik</b></td>
    <td valign="top" colspan="2">
    <p align="center"><b>Anmeldung-Statistik</b></td>
    <td valign="top">
    <p align="center"><b>Besucher-Statistik</b></td>
    </tr>
        <tr>
<td align="center" height="3" valign="top" width="16%">
            <p align="left">
            {lang_total_images}<br>
            {lang_total_categories}<br>
            {lang_total_users}<br>
            {lang_total_hits}<br>
            {lang_total_downloads}<br>
            {lang_total_votes}<br>
            {lang_total_comments}<br></td>
<td align="center" height="3" valign="top" width="16%">
            <p align="left">
            <B>{total_images}</B><br>
            <B>{total_categories}</B><br>
            <B>{total_users}</B><br>
            <B>{total_hits}</B><br>
            <B>{total_downloads}</B><br>
            <B>{total_votes}</B><br>
            <B>{total_comments}</B><br></td>
<td align="center" height="2" valign="top" width="16%">
            <p align="left">{lang_today_new_users}<br>
            {lang_yesterday_new_users}<br>
            {lang_this_week_new_users}<br>
            {lang_last_week_new_users}<br>
            {lang_this_month_new_users}<br>
            {lang_last_month_new_users}<br>
            {lang_since_begin_new_users}<br></td>

<td align="center" height="2" valign="top" width="16%">
            <p align="left">
            <B>{today_new_users}</B><br>
            <B>{yesterday_new_users}</B><br>
            <B>{this_week_new_users}</B><br>
            <B>{last_week_new_users}</B><br>
            <B>{this_month_new_users}</B><br>
            <B>{last_month_new_users}</B><br>
            <B>{total_users}</B><br></td>

<td height="1" width="32%" valign="middle">
<center><?
@include("countmegood.php");
?></center>



                                                <br></td>


    </tr>
   </table>             
       {endif user_loggedin}           

                <p>{cp_link}</p>                </td>



Der Link
...
« Last Edit: January 26, 2007, 03:42:03 PM by Sir Sky-Walker »

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Trennung der home.html ind eingeloggt und ausgeloggt
« Reply #3 on: January 26, 2007, 03:06:54 PM »
URL?

Offline Sir Sky-Walker

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: Trennung der home.html ind eingeloggt und ausgeloggt
« Reply #4 on: January 26, 2007, 03:19:44 PM »
Link:

...
« Last Edit: January 26, 2007, 03:42:14 PM by Sir Sky-Walker »

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Trennung der home.html ind eingeloggt und ausgeloggt
« Reply #5 on: January 26, 2007, 03:24:54 PM »
Versuche es hiermit mit:

{if user_loggedout}
<!--
{endif user_loggedout}

Deinen Inhalt

{if user_loggedout}
-->
{endif user_loggedout}

Einfach zusätzlich zu dem schon vorhandenen Code einfügen, dann sollten die restlichen Sachen auch ausgeblendet werden... (o:

Keine schöne Lösung aber es sollte funzen...

Offline Sir Sky-Walker

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: Trennung der home.html ind eingeloggt und ausgeloggt
« Reply #6 on: January 26, 2007, 03:32:29 PM »
habs so gemacht.

Jetzt wird mein Testtext nicht mehr angezeigt. Und alles andere als ob ich nie ein zusatzcode eingefügt habe.

Siehe link
...

Und wenn ich eingeloggt bin ist nun alles verschoben. Aber richtig verschoben. Nebeneinander, untereinander!

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Trennung der home.html ind eingeloggt und ausgeloggt
« Reply #7 on: January 26, 2007, 03:35:46 PM »
Ich glaube wenn Du ein ganz wenig überlegst bekommst Du raus warum das so ist... (o:

Offline Sir Sky-Walker

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: Trennung der home.html ind eingeloggt und ausgeloggt
« Reply #8 on: January 26, 2007, 03:38:08 PM »
Ja habs schon gefunden. Funktioniert jetzt alles.

großes DANKE !!!

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Trennung der home.html ind eingeloggt und ausgeloggt
« Reply #9 on: January 26, 2007, 03:38:40 PM »
Super... (o: