Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 04:36 am EST

Geeklog Forums

Convert your index page to Headlines

Page navigation


Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
I presume the index.php file I'm to change is at:
/trojanswimclub.ie/index.php
Does that sound correct?
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
yes, that sounds correct.
 Quote

Status: offline

ofey

Forum User
Full Member
Registered: 03/18/05
Posts: 213
Location:Dublin, Ireland
Oh I'm not the brightest Rolling Eyes
I edited index.thtml instead of index.php
All sorted now.
Thanks for your patience.
Those who say it can't be done, are usually interrupted by others doing it.
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Below you can find an updated version, for GL 1.3.11, of the hack that will enable you to list titles only on the front page. Original instructions in the first post in this topic.

1. firstly, you create a new template frontstorytext.thtml

with the following content
Text Formatted Code
<table width="100%" border="0" cellspacing="0" cellpadding="2">
        <tr>
                <td colspan="2" align="left" bgcolor="#e1e2e5"><span class="articleTitle"><a href="{site_url}/article.php?story={story_id}">{story_title}</a></span></td>
        </td>
        </tr>
</table>
 


2. next, open index.php

3. find: $display .= STORY_renderArticle($A,'y');

4. replace with: $display .= STORY_renderArticle( $A, 'y', 'frontstorytext.thtml' );

5. save, and you're good to go


Geeklog Polish Support Team
 Quote

jnuker

Anonymous
how can i add a short date to it, in dd/mm/yyyy format?

{story_date} returns long date, together with time...
 Quote

jnuker

Anonymous
Text Formatted Code
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="20%">{story_date}</td>
<td width="80%" align="left" bgcolor="#e1e2e5"><span class="articleTitle"><a href="{site_url}/article.php?story={story_id}">{story_title}</a></span></td>
</td>
</tr>
</table>
 


so if I used it like this, the date is "Friday, February 25 2005 @ 02:35 PM EST"

your hints are much appreciated
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The date is formatted according to the user's preferred date format (from their preferences) or according to $_CONF['date'] if they chose "system default" (or are not logged in).

bye, Dirk
 Quote

Ruchir

Anonymous
cheerful
:banana:

Thanks a lot, specially to robin. This was of great help to me. The geeklog forum rules Dirk.

Regards,
Ruchir
 Quote

Status: offline

eyecravedvd

Forum User
Full Member
Registered: 06/09/03
Posts: 152
I have an interesting dilemma when implementing this hack. It only converts the first story into a headline and all the rest show the normal story. Any advice?

Can be seen here

Cheers,

Shane
Shane | www.EyeCraveDVD.com
 Quote

Status: offline

eyecravedvd

Forum User
Full Member
Registered: 06/09/03
Posts: 152
Nevermind. There are 2 spots you must place it in index.php... fixed.
Shane | www.EyeCraveDVD.com
 Quote

Status: offline

Don

Forum User
Full Member
Registered: 06/09/04
Posts: 153
I'm bumping this because I'm searching for code that will do exactly this.

Any chance this will work in 1.4.1?

- Don
 Quote

Status: offline

Don

Forum User
Full Member
Registered: 06/09/04
Posts: 153
Is there a way to modify this to display links to files that have been uploaded via File Mangement?

- Don
 Quote

Page navigation

All times are EST. The time is now 04:36 am.

  • 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