Go Back   Mosets Community > Archives > Mosets Hot Property 1.0 > Discussions, Troubleshooting and Problems

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-05-2010, 07:00 AM
zandunga zandunga is offline
Member
 
Join Date: Dec 2009
Posts: 31
Default PDF extra page problem [SOLVED]

In Joomlamotor.com we find the solution to the problem of the extra page in the Hot Property's PDF generator. Watch the Joomlamotor.com DEMO

SOLUTION:

Go to Yoursite.com/components/com_hotproperty/views/properties

Open the view.pdf.php file and add the next code after-line 234

Code:
for ($i = 1; $i < count($row->Photo); $i++)
			{
            //Extra page problem solved by Jesús B. Zavala (Joomlamotor.com, Sitios Inteligentes)
                 $pdf->lastPage();
                 $pdf->Output();

             }
If you wish to improve the design of the PDF generator, write me a [email protected] to make a budget.

Do not forget to see the products we have in Joomlamotor.com for Hot Property.


Jesus B. Zavala
Joomlamotor.com

Last edited by zandunga; 08-05-2010 at 07:22 AM.
  #2  
Old 03-31-2011, 02:40 PM
philipmketley philipmketley is offline
Mosets'd
 
Join Date: Aug 2008
Posts: 68
Default

Hi there
This doesn't work for me.
Code:
for ($i = 1; $i < count($row->Photo); $i++)
			{
Is on line 203, when I add
Code:
 //Extra page problem solved by Jesús B. Zavala (Joomlamotor.com, Sitios Inteligentes)
                 $pdf->lastPage();
                 $pdf->Output();

             }
I get this error message

Quote:
Parse error: syntax error, unexpected '}' in /home/laperlae/public_html/components/com_hotproperty/views/properties/view.pdf.php on line 203
Any help greatly appreciated.
  #3  
Old 04-02-2011, 05:06 PM
gray gray is offline
Mosets'd
 
Join Date: Apr 2006
Posts: 901
Default

it means that there is an orphan '}' which does not relate to existing foreach, for of if statements. just review the code and eliminate extra or insert missing '}'
__________________
4HP: Slideshow Module New!
www.topcomhomes.com
  #4  
Old 04-02-2011, 05:18 PM
philipmketley philipmketley is offline
Mosets'd
 
Join Date: Aug 2008
Posts: 68
Default

OK - will have a look. Thanks for your reply.
  #5  
Old 11-30-2011, 08:46 PM
stickleback stickleback is offline
Mosets'd
 
Join Date: Sep 2009
Location: marbella, spain
Posts: 24
Default

//Extra page problem solved by Jesús B. Zavala (Joomlamotor.com, Sitios Inteligentes)
$pdf->lastPage();
$pdf->Output();

} <------ this is the offender!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra page in PDF zigs10 Hot Property 1.0 Tips and Tricks 6 03-31-2011 02:11 PM


All times are GMT +8. The time now is 04:12 AM.

Copyright © 2005-2010 Mosets Consulting

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.