Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...
Author Message
mercman
Regular
Regular


Joined: Nov 29, 2006
Posts: 64
Location: TN, USA

PostPosted: Mon Apr 14, 2008 11:54 am Reply with quote

Raven,
I have noticed that all of your news articles have the 'printer friendly' link and image under each news article. Very nice! Smile
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!

_________________
-Merc 
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Mon Apr 14, 2008 12:58 pm Reply with quote

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.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
mercman
PostPosted: Mon Apr 14, 2008 3:28 pm Reply with quote

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'... Confused
 
Gremmie
PostPosted: Mon Apr 14, 2008 3:47 pm Reply with quote

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
PostPosted: Mon Apr 14, 2008 6:51 pm Reply with quote

Nope, I bet he's not either. Very Happy
 
mercman
PostPosted: Mon Apr 14, 2008 7:47 pm Reply with quote

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
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©