• » 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 newbie
    15 Posts
    25.05.2011, 22:03 email offline quote 

    Hello people.

    We have this website, www.viborg-esport.dk - At the right sidebar, we have a advertisement from one of the sponsors. But they would like it to ONLY be designed on the "frontpage".

    Is this possible?

    They suggested this code:


    <?php
    if(is_front_page()){
    ?>
    INSERT YOUR WIDGET CODE HERE
    <?php
    }
    ?>

    I applied it, but then the whole sidebar on the right is screwed up. Can someone assist me on this matter, please?

    website: viborg-esport.dk
    version: 4.2.2
    webSPELL user
    440 Posts
    25.05.2011, 22:22 offline quote 

    Hi, try this one

    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    <?php
    if(!isset($site)){
    ?>
    INSERT YOUR WIDGET CODE HERE
    <?php
    }
    ?>
    webSPELL newbie
    15 Posts
    25.05.2011, 22:28 email offline quote 

    Hello Bisakun

    Thanks for the tip. But now the code doesn't show up at all. lächeln

    Any ideas why?
    webSPELL lover
    1022 Posts
    25.05.2011, 22:29 offline quote 

    Pazia wrote:

    Hello Bisakun

    Thanks for the tip. But now the code doesn't show up at all. lächeln

    Any ideas why?


    cause $site is normally always set. Try instead

    Code:
    1.
    if(!isset($_GET['site']) || $site == 'news')

    http://www.henningk.de | no support for addons etc. via PN or IM.
    webSPELL newbie
    15 Posts
    25.05.2011, 22:32 email offline quote 

    HenningK wrote:

    Pazia wrote:

    Hello Bisakun

    Thanks for the tip. But now the code doesn't show up at all. lächeln

    Any ideas why?


    cause $site is normally always set. Try instead

    Code:
    1.
    if(!isset($_GET['site']) || $site == 'news')


    HTTP-fejl 500 (Internal Server Error) unglücklich
    webSPELL user
    197 Posts
    25.05.2011, 22:38 email offline quote 

    Site is always set, if site isn't set by anything it get's set in the sourcecode, but the problem might be that it first get set in the include.

    Try this:

    Code:
    1.
    2.
    3.
    $site = htmlspecialchars($_GET['site']);
    if($site == 'news'){
    }


    webSPELL newbie
    15 Posts
    25.05.2011, 22:47 email offline quote 

    Schalla wrote:

    Site is always set, if site isn't set by anything it get's set in the sourcecode, but the problem might be that it first get set in the include.

    Try this:

    Code:
    1.
    2.
    3.
    $site = htmlspecialchars($_GET['site']);
    if($site == 'news'){
    }




    Yet another HTTP-fejl 500 (Internal Server Error) unglücklich(
    webSPELL user
    440 Posts
    26.05.2011, 00:27 offline quote 

    hi,

    post ur index.php

    cu

    ps.:
    Yes my first code was wrong, but the Code of henning should work:
    Code:
    1.
    if(!isset($_GET['site']) || $site == 'news')
    webSPELL newbie
    15 Posts
    28.05.2011, 00:40 email offline quote 

    <?php
    if(!isset($_GET['site']) || $site == 'news')
    include("*.php");
    ?>

    Inserted this code, and now it works. All content moved to *.php file. Thanks for the help all.
    Sort:     printview


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

    register now
    login
  • » Support

    » Topics
    20.05.2013 - 11:47 - 5 Replies
    » Suche Designer GGL:Geld
    Suche Designer GGL:Geld
    Last post: Dynamic-Webmedia
    Board: DE - Suche
    20.05.2013 - 11:47
    20.05.2013 - 11:20 - 2 Replies
    » login startseite
    login startseite
    Last post: Fr34k4z01d
    Board: DE - Technischer Support
    20.05.2013 - 11:20
    20.05.2013 - 10:52 - 3 Replies
    » [S] Tester für neuen Foru...
    [S] Tester für neuen ForumMod
    Last post: Ki1Lu
    Board: DE - Anfragen
    20.05.2013 - 10:52
    20.05.2013 - 04:06 - 3 Replies
    » forum anzeige erweitern
    forum anzeige erweitern
    Last post: Swordfish3000
    Board: DE - Allgemeiner Support
    20.05.2013 - 04:06
    20.05.2013 - 00:07 - 0 Replies
    » [S] Suche Programmierer
    [S] Suche Programmierer
    Last post: phoenix762
    Board: DE - Suche
    20.05.2013 - 00:07
    19.05.2013 - 03:55 - 8 Replies
    » Mein Forum
    Mein Forum
    Last post: Lordy4007
    Board: DE - Fragen zur Seite
    19.05.2013 - 03:55
    18.05.2013 - 19:58 - 36 Replies
    » Exklusiv Webseite zur Mie...
    Exklusiv Webseite zur Miete
    Last post: liQweb
    Board: DE - Biete
    18.05.2013 - 19:58
    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 - 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
    » Partners
    Bilderkiste.org Image Hosting
    k3rmit.org
    PascalMh.de


    » Blog
    28.03.2013 - derchris
    » Those damn spammers