Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Work with toendaCMS  (Read 3657 times)

0 Members and 1 Guest are viewing this topic.

sm3287

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Work with toendaCMS
« 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>
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.