Home arrow Forum hack PDF button in order to download self-created PDF ?
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 05:30:08 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  General Discussion
| |-+  General Discussion (Moderator: -Wolverine)
| | |-+  hack PDF button in order to download self-created PDF ?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: hack PDF button in order to download self-created PDF ?  (Read 638 times)
kk
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
hack PDF button in order to download self-created PDF ?
« on: November 03, 2006, 08:56:22 AM »

hello everybody...
just wrote my first post, quite long, all data gone...  Angry
so, the short version:
joomla great! using it since 2 weeks now, need help with:

trying to hack the pdf button so it doesnt create a pdf of the content
but allows me to download my own created pdf for this content, something like:

if i am in SectionA:CategoryC:Content02
click on pdf-icon -> download CategoryC.pdf which i store in root/downloads/

if i am in SectionC:CategoryA:Content01
click on pdf-icon -> download CategoryA.pdf which i store in root/downloads/

...so it always downloads the pdf with the name of the actual category!

tried to do it by myself... too complicated, my PHP is not that good...
tried to edit index2.php this way:

Code:
if ( $do_pdf == 1 ){

// displays Section & Category, but i need only Category !
$myCat = HTML_content::Section_Category( $row, $params );
$myFile = $mosConfig_absolute_path .'/downloads/'.$myCat.'.pdf';

...and then somehow load $myFile into this window

// original code:
 //include $mosConfig_absolute_path .'/includes/pdf.php';
 //exit();
}

how can i call the HTML_content class which is in content.html.php from index2.php Huh

or is there any other way?

my head is smoking...
i was trying the net, the forum...

could anyone please have a look at it?
thanks for any help or idea in advance!!!

best regards,
deeno

Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login