PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

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!
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


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

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

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.
View user's profile Send private message
mercman
Regular
Regular


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

PostPosted: Mon Apr 14, 2008 3:28 pm Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


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

PostPosted: Mon Apr 14, 2008 3:47 pm Reply with quote Back to top

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.
View user's profile Send private message
mercman
Regular
Regular


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

PostPosted: Mon Apr 14, 2008 6:51 pm Reply with quote Back to top

Nope, I bet he's not either. Very Happy
View user's profile Send private message Visit poster's website
mercman
Regular
Regular


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

PostPosted: Mon Apr 14, 2008 7:47 pm Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum