Loading...
 
Features / Usability

Features / Usability


Problems with Program dynamic content

posts: 4

hello all,

iam using tikiwiki for the first time and i wanna migrate our old portalsite to it..

we are running some little newsticker scripts and i wanted to add them as an dynamic block (module)

but if i make a dynamic content programm like:



it want be executed...

the html source of my wiki shows it exaclty like i wrote it above.. without executing the php.

what do i have to do ?

pls help..

thank u,
mucner

posts: 4

ok here is what i want to be executed...

Copy to clipboard
function heisenewsHTML() { $cmd = "/usr/bin/perl /home/www/hamlet/www.pilgerer.de/cgi-bin/heisenews/heisenews.cgi > /home/www/hamlet/www.pilgerer.de/cgi-bin/heisenews/data/heisenews.php"; exec($cmd); } heisenewsHTML(); include("/home/www/hamlet/www.pilgerer.de/cgi-bin/heisenews/data/heisenews.php");

i cutted the php start and end tags cause otherwise it wont be displayed in forum


posts: 224 Ireland

That will not work. Dynamic content doesn't mean that you can put custom code in the field. To suit your needs I think you will have to create a 'custom user module' yourself (in the /modules directory) and assign like it like any other user modules to a location on your screen.

Regards,

Pat.


posts: 4

first of all thanks a bunch...
now i made a custom mod_heise.php in /modules with the content of my first post, but nothing happend... after looking arround in the directories i found ... /template/modules and made a second file /template/modules/mod_heise.tpl in it with this content...
\\
\\
\\ {tr}Heise Newsticker{/tr}
\\
\\
\\
\\

now iam able to assign the heise modules in the modules and tried to force it on the right menubar..
but the newsticker is displayed above the rest of the site. http://www.pilgerer.de/tiki/ how is modules.tpl and modules.php inacting. can someone pls give me a little turtorial or link on how to create custom module.
thank u a lot.


posts: 224 Ireland

The module assignment may not be the problem. What kind of HTML does the newsticker generate. Maybe the output of the newsticker itself is 'forcing' it to the top of the page.

Regards,

Patrick.