TROOZERS talking joomla!

Currently updating all components and mambots to Joomla 1.0.x, these will be available soon.

 
Home arrow Joomla arrow Hacks arrow PDF mosviewonly hack
Spacer
spacer
Talking Joomla Spacer Spacer
Troozers
PDF mosviewonly hack
Monday, 14 June 2004

hack iconA user has highlighted an issue with me, that I didn't even think of, with the generation of a pdf view of your article.  Unfortunately when you click on the PDF icon within Mambo, it generates the story in a seperate way from the normal article generation method.

The result of this means that when a user clicks on the PDF icon, they would see the whole page, including all the tags, plus the text in between them.

Good news however.  With some pointers from a core developer, Phil Taylor, I have been able to resolve this by hacking two core mambo files.  These hacks basically include the mosviewonly functionality within pdf.php (the pdf generation script), and a small change to index2.php to allow pdf.php to become aware of the viewing users group membership.

Before including these changes, make sure you are running Mambo 4.5 (1.0.7), and don't have the MambelFish component installed -- I believe this component makes changes to one of the files I have updated.

I have included the hacks within the mosviewonly for 4.5 or mosviewonly for 4.5.1 file, with some instructions, so please update your installation if you have already installed.

Enjoy ;-)

 
< Prev
Spacer
Latest News
Partner Sites
jh design! banner

 RocketTheme Banner

Projects Completed
Amazon Ad
Bottom
Copyright © 2006, Andy Stewart. All Rights Reserved. Joomla! design by jh! design
Spacer Footer