mkportal mkportal
 

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]

Main Menu

mkportal

Started by JJB22, August 30, 2007, 09:15:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JJB22

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

vuud

Quote from: JJB22 on August 30, 2007, 09:15:04 PM
Hi, how can I (or is it even possible?) show random images on an mkportal?

I dunno, can you execute PHP inside mkportal?
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

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