• » webSPELL.org - Free Content Management System
  • Language switch: English German
  • login



    » lost password?   » register now
  • About webSPELL

    webSPELL is a free Content Management System which was especially developed for the needs of esport related communities. Since a short while we are also offering an optimized and enhanced webSPELL version for the special requirements of non-profit organisations. The purpose of both systems is to offer a professional and free opportunity to create and administrate your own website in an easy and optimized way.

    » Learn more about webSPELL     » Download webSPELL now!
  • Advertisement

    Follow us

  • Sort:     printview
    Author
    Message
    webSPELL user
    141 Posts
    24.02.2012, 19:57 offline quote 

    Hallo ich hätte eine frage wie ich das machen kann: Bild

    read more Bild


    Habe zwar diesen Code im forum gefunden nur werden dann nicht nur die Einträge augeblendet?
    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    8.
    9.
    <?
    if($loggedin) { 
    echo \'

    hier dein html code

    \';
    }
    ?>

    Oder kann ich dies auch in der profile.html verwenden?

    mfg Bonta

    website: AFBE - Clan
    version: 4.2.3
    webSPELL newbie
    80 Posts
    24.02.2012, 23:32 email offline quote 

    geh in die profil.php und klammer einfach alle diese Informationen betreffen mit dem $loggedin ein, dann wird nur Information übermittelt, wenn man eingeloggt ist. Etwas dreckig, ohne Programmiererfahrung aber der einfachste weg
    webSPELL user
    141 Posts
    24.02.2012, 23:52 offline quote 

    dlite wrote:

    geh in die profil.php und klammer einfach alle diese Informationen betreffen mit dem $loggedin ein, dann wird nur Information übermittelt, wenn man eingeloggt ist. Etwas dreckig, ohne Programmiererfahrung aber der einfachste weg


    Ja das wußte ich ja nur dann ist so wie oben beschrieben oder sieh Bild
    read more Mehr Bild


    Will ja das die spalte ganz weg ist so wie im bild angezeichnet!
    read more profile.html


    Bitte kann mir wer weiterhelfen.
    webSPELL newbie
    80 Posts
    25.02.2012, 00:34 email offline quote 

    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    8.
    9.
    10.
    11.
    12.
    13.
    14.
    15.
    16.
    17.
    18.
    19.
    20.
    21.
    22.
    23.
    24.
    25.
    26.
    27.
    28.
    29.
    30.
    31.
    32.
    $ausgabe_information =  '
                   <tr>
                        <td bgcolor="$bg3"><img src="images/profile/icq.png" width="16" height="16" /> ICQ:</td>
                        <td bgcolor="$bg4">$icq</td>
                   </tr>
                   <tr>
                        <td bgcolor="$bg1"><img src="images/profile/skype.png" width="16" height="16" /> Skype:</td>
                        <td bgcolor="$bg2">$skype</td>
                   </tr>
                   <tr>
                        <td bgcolor="$bg3"><img src="images/profile/esl.png" width="16" height="16" /> ESL:</td>
                        <td bgcolor="$bg4">$esl</td>
                   </tr>
                   <tr>
                        <td bgcolor="$bg1"><img src="images/profile/bf3icon.png" width="16" height="16" /> Battlelog:</td>
                        <td bgcolor="$bg2">$bf3</td>
                   </tr>
                   <tr>
                        <td bgcolor="$bg3"><img src="images/profile/youtube.png" width="16" height="16" /> YouTube:</td>
                        <td bgcolor="$bg4">$yt_id</td>
                   </tr>
                   <tr>
                        <td bgcolor="$bg1"><img src="images/profile/googleplus.png" width="16" height="16" /> Google+:</td>
                        <td bgcolor="$bg2">$gplus</td>
                   </tr>
                   <tr>
                        <td width="35%" bgcolor="$bg3"><img src="images/profile/facebook.png" width="16" height="16" /> Facebook:</td>
                        <td width="65%" bgcolor="$bg4">$fb_id</td>
                   </tr>
    ';


    innerhalb des $isloggedin==1 und in die profile.html ein $ausgabe_profile anstatt dem oben genannten teil
    webSPELL user
    141 Posts
    25.02.2012, 07:30 offline quote 

    dlite wrote:

    innerhalb des $isloggedin==1 und in die profile.html ein $ausgabe_profile anstatt dem oben genannten teil

    danke, nur hab ich das leider nicht ganz verstanden!

    In die profile.html das?
    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    $ausgabe_information =  '
    <tr>
       <td bgcolor="$bg3"><img src="images/profile/icq.png" width="16" height="16" /> ICQ:</td>
       <td bgcolor="$bg4">$icq</td>
    </tr>
    ';


    und in die profile.php das?
    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    if($loggedin == 1) {
    echo $ausgabe_profile;

    if(preg_match($sem, $ds['icq'])) $icq = '<a href="http://www.icq.com/people/about_me.php?uin='.sprintf('%d', $ds['icq']).'" target="_blank"><img src="http://online.mirabilis.com/scripts/online.dll?icq='.sprintf('%d', $ds['icq']).'&amp;img=5" border="0" alt="icq" /></a>';
    else $icq='';

    }


    weil so sehe ich die tabellen immer noch.
    webSPELL newbie
    80 Posts
    25.02.2012, 12:00 email offline quote 

    genau andersrum zwinkern


    edit: eben nicht andersrum, das muss beides zusammen in profile.php

    in die profile.html kommt nur noch dann $ausgabe_information
    Moderator
    5320 Posts
    25.02.2012, 19:42 email offline quote 

    schöner bekommst du es hin wenn du einfach zwei templates baust. eins wird angezeigt wenn du eingeloggt bist, ansonsten halt das andere. wie du die die templates einbindest findest du ja bereits in der profile.php. für die abfrage ob eingeloggt oder nicht hast du ja bereits selber den richtigen codeschnipsel gepostet.
    webSPELL user
    141 Posts
    26.02.2012, 02:20 offline quote 

    dlite wrote:

    das muss beides zusammen in profile.php
    in die profile.html kommt nur noch dann $ausgabe_information


    Hat eigentlich wunderbar funktioniert bis auf das, das ich jetzt ein schwarzes feld im Profil hab wenn man eingelogt ist:
    read more Bild


    read more Profile.php


    bazic wrote:

    schöner bekommst du es hin wenn du einfach zwei templates baust. eins wird angezeigt wenn du eingeloggt bist, ansonsten halt das andere. wie du die die templates einbindest findest du ja bereits in der profile.php. für die abfrage ob eingeloggt oder nicht hast du ja bereits selber den richtigen codeschnipsel gepostet


    Das templates zu machen wäre für mich kein problem nur mit dem einbinden habe ich noch probleme.
    "wie du die templates einbindest findest du ja bereits in der profile.php" <- das ist mein problem!
    Moderator
    1708 Posts
    26.02.2012, 02:40 offline quote 

    Code:
    1.
    2.
    eval("\$profile = \"".gettemplate("profile")."\";");
              echo $profile;


    Das steht in der profile.php fast am ende.

    Das kannst du nun so modifizieren:

    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    8.
    9.
    10.
    if($loggedin) {
         eval("\$profile_loggedin = \"".gettemplate("profile_loggedin")."\";");
         echo $profile_loggedin;
    }

    else {
        eval("\$profile_notloggedin = \"".gettemplate("profile_notloggedin")."\";");
        echo $profile_notloggedin;
    }

    webSPELL user
    141 Posts
    26.02.2012, 04:42 offline quote 

    BlueaKaKev wrote:

    Code:
    1.
    2.
    eval("\$profile = \"".gettemplate("profile")."\";");
              echo $profile;


    Das steht in der profile.php fast am ende.

    Das kannst du nun so modifizieren:

    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    8.
    9.
    10.
    if($loggedin) {
         eval("\$profile_loggedin = \"".gettemplate("profile_loggedin")."\";");
         echo $profile_loggedin;
    }

    else {
        eval("\$profile_notloggedin = \"".gettemplate("profile_notloggedin")."\";");
        echo $profile_notloggedin;
    }



    Großen Dank smile hat wunderbar funktioniert!
    Danke an die anderen auch!

    mfg Bonta-kun
    Sort:     printview


    To start or to reply to a topic you have to be registered and logged in!

    register now
    login
  • » Support

    » Topics
    18.05.2013 - 14:40 - 35 Replies
    » Exklusiv Webseite zur Mie...
    Exklusiv Webseite zur Miete
    Last post: Maidzen
    Board: DE - Biete
    18.05.2013 - 14:40
    18.05.2013 - 14:00 - 0 Replies
    » [S] Tester für neuen Foru...
    [S] Tester für neuen ForumMod
    Last post: Argu
    Board: DE - Anfragen
    18.05.2013 - 14:00
    18.05.2013 - 12:21 - 1 Replies
    » Query failed
    Query failed
    Last post: LoRd
    Board: DE - Allgemeiner Support
    18.05.2013 - 12:21
    18.05.2013 - 09:36 - 3 Replies
    » benötige hilfe bei paar k...
    benötige hilfe bei paar kleinigkeiten
    Last post: immostar
    Board: DE - Technischer Support
    18.05.2013 - 09:36
    18.05.2013 - 03:33 - 4 Replies
    » [SELL] Gaming Website
    [SELL] Gaming Website
    Last post: hornyst
    Board: EN - Offers
    18.05.2013 - 03:33
    18.05.2013 - 00:32 - 6 Replies
    » Hide BBCODE Echo
    Hide BBCODE Echo
    Last post: dado2106
    Board: EN - Technical support
    18.05.2013 - 00:32
    17.05.2013 - 21:42 - 0 Replies
    » website help
    website help
    Last post: envy0024
    Board: EN - Technical support
    17.05.2013 - 21:42
    17.05.2013 - 21:03 - 1 Replies
    » Need Coder!
    Need Coder!
    Last post: iG.ShAdOw
    Board: EN - Requests
    17.05.2013 - 21:03
    17.05.2013 - 20:44 - 9 Replies
    » Query failed!
    Query failed!
    Last post: LoRd
    Board: DE - Allgemeiner Support
    17.05.2013 - 20:44
    17.05.2013 - 18:08 - 0 Replies
    » [4 SALE] Layouts (Gaming,...
    [4 SALE] Layouts (Gaming, Portfolio and more)
    Last post: Freestyler92
    Board: EN - Offers
    17.05.2013 - 18:08
    17.05.2013 - 18:06 - 0 Replies
    » Design Ausverkauf - alles...
    Design Ausverkauf - alles unter 70€
    Last post: Freestyler92
    Board: DE - Biete
    17.05.2013 - 18:06
    17.05.2013 - 10:56 - 6 Replies
    » [Biete] Template Designs
    [Biete] Template Designs
    Last post: Marceld
    Board: DE - Biete
    17.05.2013 - 10:56
    17.05.2013 - 10:41 - 7 Replies
    » register captcha
    register captcha
    Last post: nappel.ger
    Board: DE - Allgemeiner Support
    17.05.2013 - 10:41
    17.05.2013 - 09:56 - 3 Replies
    » Suche Designer GGL:Geld
    Suche Designer GGL:Geld
    Last post: Freestyler92
    Board: DE - Suche
    17.05.2013 - 09:56
    17.05.2013 - 00:13 - 0 Replies
    » News
    News
    Last post: dado2106
    Board: EN - Modifications
    17.05.2013 - 00:13
    16.05.2013 - 15:04 - 2 Replies
    » [V] mehrere Webspell Temp...
    [V] mehrere Webspell Templates und Designs
    Last post: Dynamic-Webmedia
    Board: DE - Biete
    16.05.2013 - 15:04
    16.05.2013 - 13:09 - 2 Replies
    » Content laden
    Content laden
    Last post: Helgon
    Board: DE - Anfragen
    16.05.2013 - 13:09
    16.05.2013 - 13:07 - 18 Replies
    » [B] Web, Print und Logode...
    [B] Web, Print und Logodesign
    Last post: Helgon
    Board: DE - Suche
    16.05.2013 - 13:07
    15.05.2013 - 22:50 - 2 Replies
    » Query failed: errorno=105...
    Query failed: errorno=1054
    Last post: Tw0Player
    Board: DE - Technischer Support
    15.05.2013 - 22:50
    15.05.2013 - 18:59 - 5 Replies
    » [S] Team/Clan Logos (Upda...
    [S] Team/Clan Logos (Update: 2 new Logos)
    Last post: neiD-
    Board: EN - Offers
    15.05.2013 - 18:59
    » Partners
    Bilderkiste.org Image Hosting
    k3rmit.org
    PascalMh.de


    » Blog
    28.03.2013 - derchris
    » Those damn spammers