mkportal mkportal
 

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

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