phpBB Forum

It is currently Wed 23. May 2012, 10:19

All times are UTC + 1 hour

Forum rules


Hello dearest user and welcome to our EQDKP-Plus support forum.

Please read the following rules and terms before posting anything! Failure in doing so will result in being ignored or being banned. Posting in our boards means you have read, understood and accepted those rules.

English Board Rules – Click here



Post new topic Reply to topic  [ 7 posts ] 
Author Message
Offline
 Post subject: loading a php file into page_header.html
PostPosted: Sat 29. Oct 2011, 15:51 

Joined: Sat 29. Oct 2011, 15:36
Posts: 3
I'v made a template and style to match my Joomla guild site, but I am having trouble loading a php script file into the page_header.html file. I use cpmfetch to display 3 random pics on my header. I know my php script works fine because I can load it on a blank html file just fine.

Code:
<!--#include virtual="/cpmfetchtest.php" -->

That is the code i'm using to load the php file.

I just want to know if it should be possible to do this some other way, or if it's not going to work at all with EQDKP Plus.

Thanks for you help.



Top
 Profile  
 
Online
 Post subject: Re: loading a php file into page_header.html
PostPosted: Sat 29. Oct 2011, 16:06 
Core-Developer
User avatar

Joined: Fri 15. May 2009, 19:32
Posts: 3458
Use
Code:
<!-- INCLUDE cpmfetchtest.php -->

and put the cpmfetchtest.php-File into the folder of your template.


Greetings, GodMod
---
Schreibt mir nie unaufgefordert PNs! - Never write me unrequested PMs!

Support my work:Image



Top
 Profile  
 
Offline
 Post subject: Re: loading a php file into page_header.html
PostPosted: Sat 29. Oct 2011, 16:37 

Joined: Sat 29. Oct 2011, 15:36
Posts: 3
Code:
<!-- INCLUDE cpmfetchtest.php -->


Only loads the file's data as text, are there any changes i need to make to the php file?

Code:
<?php
  include_once "./real/dir/list/removed/cpmfetch.php";
  $objCpm = new cpm("./real/dir/list/removed/cpmfetch_config.php");
  $options = array(
   "imagesize" => "int",
     "imageheight" => "150",
     "imagewidth" => "250"
  );
  $objCpm->cpm_viewRandomMediaFrom("album=1",1, 3, $options);
  $objCpm->cpm_close();
?>



Top
 Profile  
 
Online
 Post subject: Re: loading a php file into page_header.html
PostPosted: Sat 29. Oct 2011, 16:39 
Core-Developer
User avatar

Joined: Fri 15. May 2009, 19:32
Posts: 3458
The template-include is only for HTML. You must change your script so it returns HTML.


Greetings, GodMod
---
Schreibt mir nie unaufgefordert PNs! - Never write me unrequested PMs!

Support my work:Image



Top
 Profile  
 
Offline
 Post subject: Re: loading a php file into page_header.html
PostPosted: Sat 29. Oct 2011, 16:54 

Joined: Sat 29. Oct 2011, 15:36
Posts: 3
Ok thanks for your help. I guess thats the only way.

I had the Apache Handlers set to run php data in HTML files but something about the way EQDKP Plus displays the page_header.html file does not allow it to work.



Top
 Profile  
 
Online
 Post subject: Re: loading a php file into page_header.html
PostPosted: Sat 29. Oct 2011, 17:06 
Core-Developer
User avatar

Joined: Fri 15. May 2009, 19:32
Posts: 3458
php in EQdkp Template-files won't work.


Greetings, GodMod
---
Schreibt mir nie unaufgefordert PNs! - Never write me unrequested PMs!

Support my work:Image



Top
 Profile  
 
Offline
 Post subject: Portal
PostPosted: Mon 19. Dec 2011, 18:15 

Joined: Mon 19. Dec 2011, 18:12
Posts: 2
Hey i have a little question.
How can i take my portal in the middle like you that is not stretching when it is on an bigger screen can you help me??



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

(C) The EQdkp-Plus Developer Team
EQdkp Plus Template by Ramon Kaes