• » 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:      «  1 2 printview


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

    register now
    login
    Author
    Message
    webSPELL newbie
    70 Posts
    25.04.2012, 13:54 email offline quote 

    PUSH!

    FIXED!
    webSPELL user
    126 Posts
    20.02.2012, 12:41 email offline quote 

    Pascalmh wrote:

    I would liek to know the same lächeln www.iplaynetwork.co.uk/league -> I would like the 'Readmore' to appear on the same line as 'no comments' on the far right.


    Pascalmh wrote:

    http://weseo.de/blog/read-more


    Instead of doing this:
    Code:
    1.
    2.
    3.
    4.
    /* Read More by weSEO.de / Pascalmh.de
     http://weseo.de/blog/read-more */
    $foo=explode('[break]', $content);
    $content = $foo[0].'<a href="index.php?site=news_comments&newsID='.$newsID.'">Read More</a>';


    Do this:
    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    /* Read More by weSEO.de / Pascalmh.de
     http://weseo.de/blog/read-more */
    $foo=explode('[break]', $content);
    $content = $foo[0];
    $readmorelink = '';
    if($content!=$foo[0]) $readmorelink = '<a href="index.php?site=news_comments&newsID='.$newsID.'">Read More</a>';


    Last line checks if you used [break] in your news, if so $readmorelink is set.
    What you've got to do is add $readmorelink into your templates/news.html


    Thanks for the reply, but like the original poster, I want my news posts to automatically break after X amount of characters rather than having to manually type [break] in the middle of every news post.

    I have therefore used the code provided by Nanny to achieve this:

    if(mb_strlen($content)>200) {
    $content=mb_substr($content, 0, 200);
    $content.='...';
    }
    Administrator
    Member of webSPELL e.V.
    3068 Posts
    20.02.2012, 11:40 offline quote 

    I would liek to know the same lächeln www.iplaynetwork.co.uk/league -> I would like the 'Readmore' to appear on the same line as 'no comments' on the far right.


    Pascalmh wrote:

    http://weseo.de/blog/read-more


    Instead of doing this:
    Code:
    1.
    2.
    3.
    4.
    /* Read More by weSEO.de / Pascalmh.de
     http://weseo.de/blog/read-more */
    $foo=explode('[break]', $content);
    $content = $foo[0].'<a href="index.php?site=news_comments&newsID='.$newsID.'">Read More</a>';


    Do this:
    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    /* Read More by weSEO.de / Pascalmh.de
     http://weseo.de/blog/read-more */
    $foo=explode('[break]', $content);
    $content = $foo[0];
    $readmorelink = '';
    if($content!=$foo[0]) $readmorelink = '<a href="index.php?site=news_comments&newsID='.$newsID.'">Read More</a>';


    Last line checks if you used [break] in your news, if so $readmorelink is set.
    What you've got to do is add $readmorelink into your templates/news.html
    webSPELL user
    126 Posts
    20.02.2012, 10:58 email offline quote 

    BUMP!
    webSPELL user
    126 Posts
    17.02.2012, 23:50 email offline quote 

    DeBeer wrote:

    How can i give my read more button a position?


    I would liek to know the same lächeln www.iplaynetwork.co.uk/league -> I would like the 'Readmore' to appear on the same line as 'no comments' on the far right.
    Administrator
    Member of webSPELL e.V.
    3068 Posts
    18.01.2012, 22:33 offline quote 

    webSPELL newbie
    70 Posts
    18.01.2012, 20:03 email offline quote 

    How can i give my read more button a position?
    Moderator
    1709 Posts
    18.01.2012, 19:45 offline quote 

    DeBeer wrote:

    Its done but i see the link..

    if(mb_strlen($content)>200) {
    $content=mb_substr($content, 0, 200);
    $content.='index.php?site=news_comments&newsID=$newsID';
    }

    No readmore button....
    http://templates.revengeofsoldiers.nl


    If you have a Image for the Readmore button try this:
    Code:
    1.
    2.
    3.
    4.
     if(mb_strlen($content)>200) {
                $content=mb_substr($content, 0, 200);
                $content.='<a href="index.php?site=news_comments&newsID='.$ds['newsID'].'"><img src="lintotheimage" alt="" border="0" /></a>';
            }


    but if you have not a image, use this:

    Code:
    1.
    2.
    3.
    4.
     if(mb_strlen($content)>200) {
                $content=mb_substr($content, 0, 200);
                $content.='<a href="index.php?site=news_comments&newsID='.$ds['newsID'].'">Readmore</a>';
            }

    webSPELL newbie
    70 Posts
    18.01.2012, 19:24 email offline quote 

    Its done but i see the link..

    if(mb_strlen($content)>200) {
    $content=mb_substr($content, 0, 200);
    $content.='index.php?site=news_comments&newsID=$newsID';
    }

    No readmore button....
    http://templates.revengeofsoldiers.nl
    webSPELL user
    410 Posts
    18.01.2012, 16:58 offline quote 

    Under both

    $download = Book.exe
    if "brain.exe" no FileExists then $download
    EndIf

    If $download = fail then gtfo
    Sort:      «  1 2 printview


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

    register now
    login
  • » Support

    » Topics
    22.05.2013 - 15:28 - 2 Replies
    » Slider Links Bitte um Hil...
    Slider Links Bitte um Hilfe
    Last post: LethalTrade2013
    Board: DE - Allgemein
    22.05.2013 - 15:28
    22.05.2013 - 14:54 - 2 Replies
    » adminlogin auf allypage f...
    adminlogin auf allypage funktioniert nicht mehr. bitte um hilfe
    Last post: blackmoonstah
    Board: DE - Technischer Support
    22.05.2013 - 14:54
    22.05.2013 - 14:41 - 4 Replies
    » Content laden
    Content laden
    Last post: bazic
    Board: DE - Anfragen
    22.05.2013 - 14:41
    22.05.2013 - 09:57 - 0 Replies
    » [4SALE] eSport Design/Tem...
    [4SALE] eSport Design/Template
    Last post: LeG3nDz
    Board: EN - Offers
    22.05.2013 - 09:57
    22.05.2013 - 09:24 - 1 Replies
    » Updatefunktion?
    Updatefunktion?
    Last post: Sysix
    Board: DE - Vorschläge
    22.05.2013 - 09:24
    22.05.2013 - 00:47 - 5 Replies
    » msql datenbank transfer
    msql datenbank transfer
    Last post: pgene
    Board: DE - Technischer Support
    22.05.2013 - 00:47
    22.05.2013 - 00:03 - 9 Replies
    » Mein Forum
    Mein Forum
    Last post: Lordy4007
    Board: DE - Fragen zur Seite
    22.05.2013 - 00:03
    21.05.2013 - 22:43 - 5 Replies
    » forum anzeige erweitern
    forum anzeige erweitern
    Last post: Swordfish3000
    Board: DE - Allgemeiner Support
    21.05.2013 - 22:43
    21.05.2013 - 20:12 - 3 Replies
    » When the update?
    When the update?
    Last post: Argu
    Board: EN - General
    21.05.2013 - 20:12
    21.05.2013 - 19:43 - 9 Replies
    » login startseite
    login startseite
    Last post: Argu
    Board: DE - Technischer Support
    21.05.2013 - 19:43
    21.05.2013 - 13:18 - 7 Replies
    » [Biete] Template Designs
    [Biete] Template Designs
    Last post: Marceld
    Board: DE - Biete
    21.05.2013 - 13:18
    21.05.2013 - 05:15 - 0 Replies
    » Need Designer for Logo/Te...
    Need Designer for Logo/Template
    Last post: Kody
    Board: EN - General
    21.05.2013 - 05:15
    21.05.2013 - 05:13 - 0 Replies
    » Looking for Designers/Cod...
    Looking for Designers/Coders (paid)
    Last post: Kody
    Board: EN - Requests
    21.05.2013 - 05:13
    20.05.2013 - 21:11 - 12 Replies
    » High Quality Website
    High Quality Website
    Last post: Dansjostedt
    Board: EN - Offers
    20.05.2013 - 21:11
    20.05.2013 - 18:27 - 4 Replies
    » [S] Tester für neuen Foru...
    [S] Tester für neuen ForumMod
    Last post: Argu
    Board: DE - Anfragen
    20.05.2013 - 18:27
    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 - 00:07 - 0 Replies
    » [S] Suche Programmierer
    [S] Suche Programmierer
    Last post: phoenix762
    Board: DE - Suche
    20.05.2013 - 00:07
    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
    » Partners
    Bilderkiste.org Image Hosting
    k3rmit.org
    PascalMh.de


    » Blog
    28.03.2013 - derchris
    » Those damn spammers