Welcome to Geeklog, Anonymous Saturday, November 23 2024 @ 05:37 pm EST
Geeklog Forums
Remove story intro text
Status: offline
jason559
Forum User
Regular Poster
Registered: 03/31/03
Posts: 83
I posted this question at one time, but since I\'ve done an upgrade I need help with this again. I\'d like to have the story body and intro text not listed on the index page (or any story category page).
I want only the story title to be a link to the full-page story page.
Any help is greatly apprecaited...
Jason
10
7
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You may want to check out the list of theme variables that are available in the story templates.
bye, Dirk
8
9
Quote
arthur@riseup.net
Anonymous
I banged my head against this as well. I ended up doing this:
in article.php i added this code:
$story_template->set_var('article_story_bodytext', stripslashes ($A['bodytext']));
$story_template->set_var( 'article_story_title', stripslashes( $A['title'] ));
$story_template->set_var( 'article_story_introtext', stripslashes( $A['introtext'] ));
this gives me the following vars in my article.thtml
{article_story_title}
{article_story_introtext}
{article_story_bodytext}
i would be willing to modify article.php to pass on a full set of template vars so you don't get stuck with {formatted_article} which passes the display- this means that you can have one display for topics and index, but a different display for articles. Personally, i want this.
in article.php i added this code:
$story_template->set_var('article_story_bodytext', stripslashes ($A['bodytext']));
$story_template->set_var( 'article_story_title', stripslashes( $A['title'] ));
$story_template->set_var( 'article_story_introtext', stripslashes( $A['introtext'] ));
this gives me the following vars in my article.thtml
{article_story_title}
{article_story_introtext}
{article_story_bodytext}
i would be willing to modify article.php to pass on a full set of template vars so you don't get stuck with {formatted_article} which passes the display- this means that you can have one display for topics and index, but a different display for articles. Personally, i want this.
7
10
Quote
Guy
Anonymous
Line 445 creates the varia story_introtext. It merges the Intro with the body text.
$article->set_var( 'story_introtext', stripslashes( $A['introtext'] ). '
' . stripslashes( $A['bodytext'] ));
Changing for this remove the intro. But in the article, but i'm not sure if this creates problems elsewhere...
$article->set_var( 'story_introtext', stripslashes( $A['bodytext'] ));
$article->set_var( 'story_introtext', stripslashes( $A['introtext'] ). '
' . stripslashes( $A['bodytext'] ));
Changing for this remove the intro. But in the article, but i'm not sure if this creates problems elsewhere...
$article->set_var( 'story_introtext', stripslashes( $A['bodytext'] ));
12
13
Quote
Guy
Anonymous
Quote by Guy: Line 445 creates the varia story_introtext. It merges the Intro with the body text.
I forgot to mention that this is found in the lib_common.php file under "function COM_article"
9
10
Quote
Status: offline
thedailycynic
Forum User
Junior
Registered: 09/12/04
Posts: 17
So what was the final verdict with the hack?
I tried to follow all of this I want to do the same thing. Just have the titles of the stories on the front page (index.php) and have the headline / title a link to the actual article.
If anyone could help that would be great.
Music News Washington DC
Graphic Design Virginia
Record Label Washington DC
Active Sports Wear
I tried to follow all of this I want to do the same thing. Just have the titles of the stories on the front page (index.php) and have the headline / title a link to the actual article.
If anyone could help that would be great.
Music News Washington DC
Graphic Design Virginia
Record Label Washington DC
Active Sports Wear
9
8
Quote
Status: offline
jason559
Forum User
Regular Poster
Registered: 03/31/03
Posts: 83
I don't know what the final resolution is to only display the title on the homepage and have it link to the main story. I had it working and then I just upgraded to the latest geeklog version and now I can't remember how I got it to work...
Can anyone help me?
Can anyone help me?
9
8
Quote
Status: offline
Porkchop
Forum User
Newbie
Registered: 05/16/05
Posts: 4
Just a bump... I would love to know how to do this... the Intro text is just... annoying.. I dont want it to be required to submit a story and I dont want it listed on the front page
.:.Porkchop.:.
www.squalidlittlehobo.com
.:.Porkchop.:.
www.squalidlittlehobo.com
8
8
Quote
Status: offline
Robin
Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by Porkchop:the Intro text is just... annoying.. I dont want it to be required to submit a story and I dont want it listed on the front page
I see two things here.
First of all, good news, there is no introtext requirement upon story submission. Check e.g. here.
Now listing introtext on the front page is a completely different story. A solution for this was posted here
Geeklog Polish Support Team
10
10
Quote
All times are EST. The time is now 05:37 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content