1
hal9008
print.php is not working in cbb 3.08
  • 2008/3/25 15:48

  • hal9008

  • Just popping in

  • Posts: 8

  • Since: 2008/3/25


Hello. After all, excuse me for my bad english.

I want to build a new pda.php that shows the lasts forum threads and other improvements. I was working on that and I build something like this

http://www.flopy.es/modules/pda/

But I found a big trouble. In the original pda.php, when I click in a link of the news, i jump to the page "print.php" of the module "news" that shows you the new that you want. I was doing the same with forums, but I see that the print.php of cbb is no working properly. I saw this in a lot of pages (esxoops and xoops.org included). For example...

https://xoops.org/modules/newbb/print.php?form=1&topic_id=63453&forum=27&order=ASC&start=0

http://www.esxoops.com/modules/newbb/print.php?form=1&topic_id=5570&forum=9&order=ASC&start=0

http://www.flopy.es/modules/newbb/print.php?form=1&topic_id=59&forum=1&order=ASC&start=0

In all the pages, I only see the cbb logo and not the thread.

¿Anybody knows the problem in print.php of cbb? ¿Can it be solved changing anything on the code (I don't found anything)? there is another print.php with a solve of this problem?

PD: When I solve this problem (I hope anybody can help me), I will publish this module.

Thanks.

2
hal9008
Re: print.php is not working in cbb 3.08
  • 2008/3/27 21:52

  • hal9008

  • Just popping in

  • Posts: 8

  • Since: 2008/3/25


no ideas about this yet?

I'm still needing help for "revive" print.php in cbb.

3
hal9008
Re: print.php is not working in cbb 3.08
  • 2008/4/9 11:32

  • hal9008

  • Just popping in

  • Posts: 8

  • Since: 2008/3/25


ideas about this??? I'm still in trouble with print.php of cbb

4
PinMaster
Re: print.php is not working in cbb 3.08
  • 2008/4/20 9:27

  • PinMaster

  • Just popping in

  • Posts: 5

  • Since: 2005/1/29


Here is my patch: Correctif CBB 3.08

Edit the file "print.php", go to line 115-118:
$postsArray $topic_handler->getAllPosts($forumtopic);
    foreach (
$postsArray as $post) {
        if(!
$post->getVar('approved'))    continue;
        
$post_data $post_handler->getPostForPrint($post);


Replace with:
$postsArray $topic_handler->getAllPosts($forumtopic"ASC"1000);
    foreach (
$postsArray as $eachpost) {
        if(!
$eachpost->getVar('approved'))    continue;
        
$post_data $eachpost->getPostBody();

5
hal9008
Re: print.php is not working in cbb 3.08
  • 2008/4/21 14:46

  • hal9008

  • Just popping in

  • Posts: 8

  • Since: 2008/3/25


Hey!!! IT WORKS GREAT in CBB 3.08!!!

See the effects in my forum

http://www.flopy.es/modules/newbb/print.php?form=1&topic_id=47&forum=2&order=ASC&start=0

I will upload the file to my web to make it avaliable for everybody who wants to solve the problem. You can download the file from this link.

http://www.flopy.es/uploads/print.zip

Thank you very much!!

6
hal9008
Re: print.php is not working in cbb 3.08
  • 2008/4/23 9:26

  • hal9008

  • Just popping in

  • Posts: 8

  • Since: 2008/3/25


Still remaining a bug in the file. The date of the posts is wrong, but the rest of the file works fine.

Login

Who's Online

279 user(s) are online (239 user(s) are browsing Support Forums)


Members: 0


Guests: 279


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits