change header
Moderator: Thorsten
-
- Posts: 15
- Joined: Sun Oct 31, 2004 12:04 pm
change header
Hi,
I am a new user of phpMyFAQ.
I have few questions and answers added.
How do i add my own header and footer.
Thanks
I am a new user of phpMyFAQ.
I have few questions and answers added.
How do i add my own header and footer.
Thanks
Hi,
just edit the template index.tpl and the css file style.css in the directory /template.
bye
Thorsten
just edit the template index.tpl and the css file style.css in the directory /template.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 15
- Joined: Sun Oct 31, 2004 12:04 pm
header in pdf generation
Thanks for the info, actually i wanted to add the header in the pdf generated..
can you guide me.
can you guide me.
Hi,
this is a little bit complicated. What do you want to add in the header?
bye
Thorsten
this is a little bit complicated. What do you want to add in the header?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 15
- Joined: Sun Oct 31, 2004 12:04 pm
header
Well,
I wanted to add my name in the document generated :) and also curiuos to learn.
Another question i had was, when i generate the pdf, each page has only one question and answer. How to disable auto page break.
I have tried putting
$pdf->SetAutoPageBreak(false, 0); in pdf.php this does not work ?
help on this ...
I wanted to add my name in the document generated :) and also curiuos to learn.
Another question i had was, when i generate the pdf, each page has only one question and answer. How to disable auto page break.
I have tried putting
$pdf->SetAutoPageBreak(false, 0); in pdf.php this does not work ?
help on this ...
Hi,
your name is added in the footer when it's saved in the configuration. The fact that every question and answer has its own page is based on the table of contents.
bye
Thorsten
your name is added in the footer when it's saved in the configuration. The fact that every question and answer has its own page is based on the table of contents.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 15
- Joined: Sun Oct 31, 2004 12:04 pm
header in pdf generation
How about adding my own text in the header in the pdf generated above the standard question that is printed
Hi,
you can add your own text by changing the function Header() in the file admin/expoirt.main.php. How this is done is described here: http://www.fpdf.org/en/tutorial/tuto2.htm
bye
Thorsten
you can add your own text by changing the function Header() in the file admin/expoirt.main.php. How this is done is described here: http://www.fpdf.org/en/tutorial/tuto2.htm
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 15
- Joined: Sun Oct 31, 2004 12:04 pm
header in pdf generation
That worked :)
Thanks,
Tushar
Thanks,
Tushar
Where to place logo file
Hi!
I have read your thread about how to add a logo to the PDF output.
I have altered the header function admin/export.main.php to add a logo (see below).
It doesn't work for me.
Where does the logo file have to reside? Is there anything wrong about the code?
function Header() {
global $rubrik, $thema, $tree;
$title = stripslashes($tree->categoryName[$rubrik]["name"]).": ".stripslashes($thema);
//Logo
$this->Image('idea4con.jpg',10,8,33);
$this->SetFont("Arial", "B", 14);
$this->SetDrawColor(182,195,203);
$this->SetFillColor(239,239,239);
$this->SetTextColor(0,0,0);
$this->SetLineWidth(1);
$this->MultiCell(0, 6, $title, 1, 1, "C", 1);
$this->Ln(8);
$this->Bookmark(makeShorterText($thema, 5));
}
I have read your thread about how to add a logo to the PDF output.
I have altered the header function admin/export.main.php to add a logo (see below).
It doesn't work for me.
Where does the logo file have to reside? Is there anything wrong about the code?
function Header() {
global $rubrik, $thema, $tree;
$title = stripslashes($tree->categoryName[$rubrik]["name"]).": ".stripslashes($thema);
//Logo
$this->Image('idea4con.jpg',10,8,33);
$this->SetFont("Arial", "B", 14);
$this->SetDrawColor(182,195,203);
$this->SetFillColor(239,239,239);
$this->SetTextColor(0,0,0);
$this->SetLineWidth(1);
$this->MultiCell(0, 6, $title, 1, 1, "C", 1);
$this->Ln(8);
$this->Bookmark(makeShorterText($thema, 5));
}