Work with toendaCMS Work with toendaCMS
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Work with toendaCMS

Started by sm3287, October 18, 2007, 05:40:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sm3287

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

<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>