| Author |
Message |
mercman Regular


Joined: Nov 29, 2006 Posts: 64 Location: TN, USA
|
Posted:
Mon Apr 14, 2008 11:54 am |
|
Raven,
I have noticed that all of your news articles have the 'printer friendly' link and image under each news article. Very nice!
Mine (I'm using the new 2.20.xx distro) is only in an option block in the Comments section of the news module.
Can you show/tell me how to make this/these change/changes so I can add the printer friendly link/image as well as keep what's there now?
Or is this a major undertaking?
Thanks! |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Mon Apr 14, 2008 12:58 pm |
|
Your theme controls how news stories are displayed on the home page. You just need to modify the theme code to add those links and images. |
|
|
|
 |
mercman Regular


Joined: Nov 29, 2006 Posts: 64 Location: TN, USA
|
Posted:
Mon Apr 14, 2008 3:28 pm |
|
My theme is the same as this one, fisubice.
All I see in story_page.html & story_home.html is a link to '$posted' and '$morelink'...  |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Mon Apr 14, 2008 3:47 pm |
|
Right. You would need to modify those and/or theme.php to add the stuff you want.
I don't think Raven is running the stock fisubice on this site. |
|
|
|
 |
mercman Regular


Joined: Nov 29, 2006 Posts: 64 Location: TN, USA
|
Posted:
Mon Apr 14, 2008 6:51 pm |
|
Nope, I bet he's not either.  |
|
|
|
 |
mercman Regular


Joined: Nov 29, 2006 Posts: 64 Location: TN, USA
|
Posted:
Mon Apr 14, 2008 7:47 pm |
|
Ok Gremmie,
I'm going to suggest that Raven has had to edit the 'theme.php' file; not the html files of the theme.
Let me back up that claim with this:
If you look at the home page of this site, you see the printer friendly icon in '$posted' (whatever that may mean); This is the stuff under the article, between the brackets with separator pipes, yes?
I suggest that this is clearly an edit of the 'theme.php' file.
Now, I have gotten a printer friendly shortcut working under the '$posted' link by editing one of the theme's html files, but only on the 'read more' and 'comments' pages by adding this under the '$posted' link in 'story_page.html' (which doesn't gain me much, since these are the pages where the 'option' block is located).
| Code: |
<a href="modules.php?name=News&file=print&sid=$sid"><img src="images/print.gif" border="0" alt="Printer Friendly Page" title="Printer Friendly Page"> Print</a>
|
But when I do the same thing to the 'story_home.html' file, the link will not find an ID for the article.
Can you point me in the right direction and tell me what & where in the fisubice 'theme.php' file would I even begin to look for what needs to be changed to place this link in the '$posted' section under the article so it shows up on 'story_home.html'?
Thanks,
-Merc |
|
|
|
 |
|
|
|
|