4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Indian on September 25, 2002, 09:22:01 PM
-
Hier ist code fÜr ein Block mit random.php in PhpNuke :
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2001 by Francisco Burzi (fbc@mandrakesoft.com) */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-4Images_Block.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
ob_start();
include 'random.php';
$content .= ob_get_contents().$content;
ob_end_clean();
?>
Das arbeitet zusammen mit random.php " http://www.4homepages.de/forum/viewtopic.php?t=1020 "
Ich habe getestet mit Phpnuke 6.0
demo : http://polhost.net
-
Cool! Das hab ich gesucht!
Wo liegt dann die random.php? Im /blocks Verzeichnis?
demo : http://polhost.net
-
Nein . Da wo ist index.php in Phpnuke .
-
Nein . Da wo ist index.php in Phpnuke .
Danke Dir! Jetzt gehts...
Gruesse
Gregor
-
Hello !
Es funkzioniert bei mir! Aber Problem, dass ist in original Size :oops:
Wie kann ich mache, dass nur thumbnail size gezeigt :?:
Rwinke
http://csillagda.linuxforum.hu/4images
-
Hier ist random.txt von meine Seite : http://polhost.net/rendom.txt .
-
Danke, danke, danke :D
Es funkzioniert sehr Prima! Und mit PHPNuke 5.6 es lauft auch in meinem Site
http://csillagda.linuxforum.hu
Ich mochte nochmal bedanken
Rwinke
-
Hi - Could someone translate this for me?
I have random.php in my gallery directory
http://www.ukscrappers.co.uk/gallery/random.php
it won't work in the root directory.
I've tried copying the code shown into a new block in my php-nuke admin screen, but I am just getting a blank block. Do I need to put it somewhere else?
Bev
-
ok - i've got this to work. for others trying it. the code needs to go in a file called block_randomwhatever.php in the blocks directory. then you can select that file via the admin screen
Bev
-
Hello,
Could you please help me here. I am running PHPNUke Version 6 and have followed the instructions as per above, that is, saved the random.php file as block-Random_Image.php and uploaded it to my "blocks" folder.
I have then gone into my Nuke Control panel and added a new block - which is "Random Image". The only problem is that the random image is being displayed outside of the block??... and the block itself shows the "Random Image" title with "There isn't content right now for this block"
Did I forget to do something? Should I be including this file somewhere else?
I have read the posts on this and I do not understand German...
Any help would be appreciated.
Many thanks
Lolla
-
Hallo!
Random.php is not block. You must have a root directory. 4images-block find You in first message from Indian. You must this upload a block directory
rwinke
http://csillagda.linuxforum.hu