forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: sm3287 on October 18, 2007, 05:40:31 am

Title: Work with toendaCMS
Post by: sm3287 on October 18, 2007, 05:40:31 am
Hello, i just found cpmFetch it works nicely but i just cant figure out how to get it just on my main page. If you look at my site www.gfxtown.com its where i want it to be BUT its like that on every page..click links, contact... I tried inserting the code threw toenda in my news post using edit html source it changes the code to this "cpm_viewLastAddedMedia(2,5); $objCpm->cpm_close(); ?>". The way I'm doing it right now is i edited the index.php, the part "<? include(_CONTENT); ?>" is every thing on my site thats in the middle. If i put the code before  <? include(_CONTENT); ?> the pictures will show up under my image header if i put it after they show up where they are now. If any one can help me out id appreciate it, id really like to use this feature  but em stumped how to incorporate it on my site. Using toendaCMS_1.5.6_Yokohama_Stable

Code: [Select]
<div class="contentbox">
<? include(_CONTENT); ?>
<?php
  
include "./gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(2,5);
  
$objCpm->cpm_close();
?>

</div>