REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mybb2pdf v1.0
#1
License is attached inside extras folder by using this software you agree to the terms of that license.

Mod Name: Mybb2PDF
Mod Author: Jesse Labrocca
Mod Website: http://www.MybbCentral.com
Mod Version: 1.0
Mod Mybb Compatibility: 1.4x
Mod File Edits: None
Mod Description: This will add the ability to export threads as PDF's.


Installation

1. Upload the file from the zip

root/mybb2pdf.php
root/mybb2pdf/ (all files)
root/images/pdf.gif

2. Alter your templates to add link to export, change text to suit your needs.

Template Name: showthread

After:
<li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
Add:
<li class="pdf"><a href="mybb2pdf.php?tid={$tid}">Export as PDF</a></li>


3. Alter the CSS for your theme to add the pdf class.

Edit showthread.css in your theme in advanced mode

Add this:

ul.thread_tools li.pdf {
background: url(images/pdf.gif) no-repeat 0px 0px;
}


I guess that's it. Enjoy.

DEMO: http://www.hackforums.net


Attached Files
.zip   mybb2pdf_v1.zip (Size: 24.59 KB / Downloads: 321)
#2
weeee first downloader xD

Great! This will be useful to many! Big Grin
#3
Thanks Smile
This plugin is great.
#4
Great job Smile
Thanks Jesse.
#5
"FPDF error: Some data has already been output, can't send PDF file"


what>?
#6
Can you give me a link to the thread? And is it all threads or just one? Did you edit anything?
#7
I haven't edit anything, Its on every post,

http://warez-spot.org/forum/showthread.php?tid=129

The only thing i did is place it over "show printable version" and not under it... But im sure that cant be it!!
#8
Hmm...can you reupload the original file again? You may have some characters on the top of the php file that would cause this. Not sure really. It could be a conflict with another plugin.

Anyone else experiencing this issue?
#9
Works fine here Smile
German Translator. Probleme mit MybbCentral Plugins? Kontaktiert mich.
[Image: mybbaddonssignatur.gif]
#10
Fine for me too.


Forum Jump:


Users browsing this thread: 1 Guest(s)