Welcome to weSEO

Login

Welcome back, nice to see you again.

Register - it's free!

Comment, spread your love, communicate

Welcome back!

Nickname:

Password:

Lost your Password?

Create your new Account

Nickname:

Mailadress:

Easy "Read More" for webSPELL


Read More for webSPELL 4.2.* (tested with webSPELL 4.2.1*).
After you've completed this small Tutorial you will be able to cut your News wherever you want. A "Read More"-Link will appear, when you click on it you will see the complete News.

We will need to edit the news.php and news_comments.php - so here we go:

Open the news.php

Search for:

Code:
1.
2.
3.
$content = htmloutput($content);
$content = toggle($content, $ds['newsID']);
$headline = clearfromtags($headline);


Add below:

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>'; 


Now the news.php is ready to go, lets go on:

Open the news_comments.php

Search for:

Code:
1.
2.
$content = htmloutput($content);
$content = toggle($content, $ds['newsID']);


Add below:

Code:
1.
2.
3.
// Read More by weSEO.de / Pascalmh.de Visit: http://weseo.de/blog/read-more
$foo=explode('[break]', $content);
$content = $foo[0].''.$foo[1];


Thats it! The only thing you have to do now is adding
Code:
1.
[break]
into your News!

read more Changing the Read More appearance (optional)

Lovers

Avatar
Avatar
mr92 - 24.01.2010 - 17:58
nice to see that the tutorials (for which i feeded a year ago) are coming back (;

Avatar
Pascalmh - 24.01.2010 - 22:47
Thank you :) Next will be Sexylinks for News using .htaccess - so stay tuned!

Avatar
Battle - 25.01.2010 - 07:48
I've used this tutorial, but now when I click the news link (Read more) it show [break] on the full article.

Other than that, great read! You made it really simple for me to use, I come to this site very often.

Avatar
Pascalmh - 25.01.2010 - 09:32
Battle wrote:
it show [break] on the full article.
Have you also edited the news_comments.php?

eggzy - 25.01.2010 - 10:24
this is great ^^

Avatar
Battle - 25.01.2010 - 16:16
Pascalmh wrote:
[quote=Battle]it show [break] on the full article.
Have you also edited the news_comments.php?


Whoops! I never saved it, but I did it. Sorry for the over look, great work!

Avatar
chubiic - 26.01.2010 - 10:47
Thanks :)

Avatar
mr92 - 26.01.2010 - 17:11
as you can see these tutorial were and are some of the bests and most wanted! :p

WeMakeIT - 26.01.2010 - 23:24
nice tutorial ... looking forward to ur next one :)

Avatar
MarviN - 26.03.2010 - 19:55
Hi, i trying to use that break or some like this. I found the code, but i found 3 same lines in every archive.

The question is, i have to put de code below every line or just in one? First, Second ou Third?

Thanks for the attention.

Avatar
Pascalmh - 27.03.2010 - 15:02
The "Add below"-Part has to be added underneath the "Search for"-Part.

So if it says

Search for:
Code:
1.
2.
3.
a
b
c


Add below:
Code:
1.
2.
3.
d
e
f


The result has to look like this:
Code:
1.
2.
3.
4.
5.
6.
a
b
c
d
e
f

Avatar
MarviN - 13.04.2010 - 22:25
I gottt..
Thank you Pascal.
nice tuto as well..

Avatar
Far Cry 2 - 16.04.2010 - 00:09
-.

Avatar
chubiic - 29.04.2010 - 00:52
its imposibly to make max lenth???

Avatar
Pascalmh - 13.05.2010 - 17:02
There are Mods that give you the posibility to set a max length. The problem all these Mods have is that they don't care if a HTML/BBCode-Tag is closed or not.
That is why they can mess up your Site!

Avatar
Valentas - 02.08.2010 - 14:36
code doesnt work fine, breakes all sections on index

Avatar
Pascalmh - 02.08.2010 - 20:09
Valentas wrote:
code doesnt work fine, breakes all sections on index


Please check again if you did all Steps correctly and please provide a Link to your website.

Avatar
Valentas - 02.08.2010 - 22:49
yep, i did eveything as it showed here.
problem screenshot here
my website: www.figure05.com

thanks for try to help me :)

Avatar
Pascalmh - 03.08.2010 - 09:56
Seems like you've forget to close a <div>-tag...
Your news.html (http://www.figure05.com/templates/news.html) looks weird - check if all div's you open are properly closed.

Avatar
Valentas - 11.08.2010 - 14:11
yep, the problem seems to be on <div> . I just can't fix it :( if i make everything to look good on index, the sections breaks on full news and vice versa :/

Your comment
Name
E-Mail (used for Gravatar)
Homepage
No Avatar
Security Code