• » 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


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

    register now
    login
    Author
    Message
    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
    Moderator
    1721 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, 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
    5348 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 newbie
    84 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
    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
    84 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
    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
    84 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, 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
    Sort:     printview


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

    register now
    login
  • » Support

    » Topics
    20.06.2013 - 03:45 - 4 Replies
    » Event dates only go up to...
    Event dates only go up to 2009!
    Last post: janet1989
    Board: EN - General support
    20.06.2013 - 03:45
    20.06.2013 - 03:44 - 1 Replies
    » Biete Webprogrammierung /...
    Biete Webprogrammierung / Anpassungen etc. an
    Last post: janet1989
    Board: DE - Suche
    20.06.2013 - 03:44
    20.06.2013 - 03:42 - 5 Replies
    » Origin
    Origin
    Last post: janet1989
    Board: EN - Requests
    20.06.2013 - 03:42
    20.06.2013 - 03:42 - 3 Replies
    » After getting permissions...
    After getting permissions right I can't install
    Last post: janet1989
    Board: EN - General support
    20.06.2013 - 03:42
    20.06.2013 - 01:59 - 0 Replies
    » [4SALE] EXCLUSIVE WEBSITE
    [4SALE] EXCLUSIVE WEBSITE
    Last post: hornyst
    Board: EN - Offers
    20.06.2013 - 01:59
    20.06.2013 - 01:58 - 5 Replies
    » PHP Code wird als Text au...
    PHP Code wird als Text ausgegeben
    Last post: janfolio
    Board: DE - Allgemeiner Support
    20.06.2013 - 01:58
    19.06.2013 - 19:22 - 5 Replies
    » Bewertungs-CMS gesucht!
    Bewertungs-CMS gesucht!
    Last post: Schalla
    Board: DE - Suche
    19.06.2013 - 19:22
    19.06.2013 - 02:59 - 10 Replies
    » [SELL] Gaming Website - E...
    [SELL] Gaming Website - EXCLUSIVE WEBSITE
    Last post: hornyst
    Board: EN - Offers
    19.06.2013 - 02:59
    18.06.2013 - 23:10 - 1 Replies
    » [S] Aufträge Web- und Pri...
    [S] Aufträge Web- und Printdesign
    Last post: neiD-
    Board: DE - Suche
    18.06.2013 - 23:10
    18.06.2013 - 12:30 - 9 Replies
    » Querry Failed Error no 10...
    Querry Failed Error no 1054
    Last post: LoRd
    Board: EN - Technical support
    18.06.2013 - 12:30
    18.06.2013 - 09:43 - 13 Replies
    » webSPELL Bootstrap (respo...
    webSPELL Bootstrap (responsible)
    Last post: sKy-e.belst
    Board: EN - General
    18.06.2013 - 09:43
    18.06.2013 - 01:11 - 1 Replies
    » how can i transform back ...
    how can i transform back to old my website ?
    Last post: Schalla
    Board: EN - Technical support
    18.06.2013 - 01:11
    17.06.2013 - 20:50 - 3 Replies
    » Suche Coder !
    Suche Coder !
    Last post: naki
    Board: DE - Suche
    17.06.2013 - 20:50
    17.06.2013 - 12:48 - 0 Replies
    » [4SALE] Custom team websi...
    [4SALE] Custom team website
    Last post: element-
    Board: EN - Offers
    17.06.2013 - 12:48
    16.06.2013 - 21:21 - 3 Replies
    » update webspell problem
    update webspell problem
    Last post: RUSSHEL
    Board: EN - General support
    16.06.2013 - 21:21
    16.06.2013 - 20:42 - 0 Replies
    » "Make sure you have cooki...
    "Make sure you have cookies enabled" During Login
    Last post: Sasquatch
    Board: EN - General support
    16.06.2013 - 20:42
    16.06.2013 - 16:22 - 8 Replies
    » Farbe von "Dein Profil wu...
    Farbe von "Dein Profil wurde aktualisiert. Du wirst weitergeleitet" ändern!
    Last post: Cali-go
    Board: DE - Allgemeiner Support
    16.06.2013 - 16:22
    16.06.2013 - 16:19 - 2 Replies
    » Sehr erfahrener Programmi...
    Sehr erfahrener Programmierer gesucht (Community,Clanpage)
    Last post: StufF
    Board: DE - Suche
    16.06.2013 - 16:19
    15.06.2013 - 22:39 - 0 Replies
    » portfolio/agency for sale
    portfolio/agency for sale
    Last post: Thoomii
    Board: DE - Biete
    15.06.2013 - 22:39
    15.06.2013 - 16:39 - 2 Replies
    » [4SALE] eSport Design/Tem...
    [4SALE] eSport Design/Template
    Last post: LeG3nDz
    Board: EN - Offers
    15.06.2013 - 16:39
    » Partners
    Bilderkiste.org Image Hosting
    k3rmit.org
    PascalMh.de


    » Blog
    28.03.2013 - derchris
    » Those damn spammers