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: mkportal  (Read 4175 times)

0 Members and 1 Guest are viewing this topic.

JJB22

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
mkportal
« on: August 30, 2007, 09:15:04 pm »

Hi, how can I (or is it even possible?) show random images on an mkportal?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: mkportal
« Reply #1 on: September 01, 2007, 09:18:45 am »

Hi, how can I (or is it even possible?) show random images on an mkportal?

I dunno, can you execute PHP inside mkportal?
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

JJB22

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: mkportal
« Reply #2 on: September 04, 2007, 01:31:28 pm »

Um, well, you can make "blocks" (http://www.gd-diskusjon.com - you know, one of those red boxes), and you can choose whether you want to create a html block or a php block. If i choose php i get this:

<?
/*
Skriv koden ved å legge til utgangsresultat inn i
variabelen $content som vist i følgende eksempel.
Du har tilgang til DB, alle globale variabler
og alle Portal and Forum funksjoner står til din disposisjon
*/

$nome = $ibforums->member['name'];
$content="Hi $nome";

?>


... which I don't know if you get since half of is in norwegian. (It says something like Write the code by adding something in the $content thingy as shown in the example. You have access to the DB, all global variables and all Portal and Forum functions are available.)  :-\  But anyway, if I delete all of that and put the cpmfetch code in there instead, the whole thing just disappears again when i save, and if I put the cpmfetch code inside the "$content="Hi $nome";" it just shows up as code when I save...
Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 15 queries.