block-random and PHPNuke driving me batty !

baloo
baloo's picture

Joined: 2002-09-09
Posts: 19
Posted: Fri, 2002-11-22 14:40

Ok, I really am going crazy here.

managed to hack a block to work but the links tried to fire up the gallery in the block so I hacked that away.

I just saw the demo Nuke Random block and it works perfectly.

Checked ALL the instructions again.

I have done everything, I think.

Only thing I might have got wrong is this:

Then create an HTML block containing the following url (change the text in red to be appropriate for your server:
http://your.server/modules.php?op=modload&name=your-gallery-name&file=index&include=block-random.php

How, exactly, does he wanted it created ? Has anyone completed this part yet and would like to share ?

Thanks

 
flasher

Joined: 2002-11-13
Posts: 33
Posted: Fri, 2002-11-22 15:48

Here is a working block for U.

http://inflightpicture.free.fr/HackRandom-Blocks.zip

Thanks to David.

 
TEXT

Joined: 2002-11-27
Posts: 8
Posted: Wed, 2002-11-27 04:10

thank you so much for the files. Easy to follow and I don't have to edit anything much. However, I was wondering how do I edit the style of that block. For example I use graphic background on all my blocks but somehow only this block it display a white background. Also could it possible not to have iframe and it still work? Thank You.

 
poppafrog
poppafrog's picture

Joined: 2002-11-26
Posts: 7
Posted: Wed, 2002-11-27 05:48

Just one question here....

Gallery works great....and I got the Random Block configured in phpNUKE. Permissions are set so everybody can view the galleries, but now all I get in the block is:

"There isn't content right now for this block."

Have over 100 photos so far.....

Any tips and fixes would be great!

ThanX :smile:

 
TEXT

Joined: 2002-11-27
Posts: 8
Posted: Wed, 2002-11-27 17:30

Just follow the steps in the zip file, but when it say create new block, if you don't want i frames just read the following instruction:
http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=708&4

if you lazy, then just create new block and add this line in the content.
http://your.server/modules.php?op=modload&name=your-gallery-name&file=index&include=block-random.php

Remember the filename should be none. and the title you can make anything you want.

 
flasher

Joined: 2002-11-13
Posts: 33
Posted: Thu, 2002-11-28 22:30

I tried the direct URL, it works directly in my browser, but when I put it in the content box of a new block, it just show me the url, instead of the target of the url, I really don't understand why ?

 
baloo
baloo's picture

Joined: 2002-09-09
Posts: 19
Posted: Sat, 2002-11-30 08:37
Quote:
thank you so much for the files. Easy to follow and I don't have to edit anything much. However, I was wondering how do I edit the style of that block. For example I use graphic background on all my blocks but somehow only this block it display a white background. Also could it possible not to have iframe and it still work? Thank You.

I'm "David" flasher reffered to. I also have the same problem of the block only displaying in white. It seems when it's used inside an Ifram it doesn't pull the CSS information the rest of the page does.

I'll keep trying to sort it out and let you know if I get anywhere. I'd still love to know if I can get the original random block and instructions working. I'd love to have the random block picture a clickable link to the album.

 
cyberclark

Joined: 2002-10-30
Posts: 8
Posted: Sun, 2002-12-01 17:01

Just to let you know you aren't the only one as well. I couldn't get the random block to work with Nuke 6.0 by using the standard instructions so I had to use the iframe process and while it works great that way it looks pretty ugly on darker themes because you are left with this big ugly white block. If you find a way to have it pull from the themes CSS I would be greatly appreciative as well!!!

Shoot if anyone just knows how to change the background from white to a bg file that would be a start because perhaps I could use if statements to do something like if $theme = chronicles background = whatever.gif and then set staements for each theme used on my site. Not as ideal as pulling the CSS info but hey if it works I won't complain :smile:

 
TEXT

Joined: 2002-11-27
Posts: 8
Posted: Tue, 2002-12-03 04:28
Quote:
Just follow the steps in the zip file, but when it say create new block, if you don't want i frames just read the following instruction:
http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=708&4

if you lazy, then just create new block and add this line in the content.
http://your.server/modules.php?op=modload&name=your-gallery-name&file=index&include=block-random.php

Remember the filename should be none. and the title you can make anything you want.

You guyz did not read carefully, I have figure out how to remove the iframe and it work. I have already post this in my previous post. Now I am posting it again.

 
flasher

Joined: 2002-11-13
Posts: 33
Posted: Tue, 2002-12-03 10:14
Quote:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* 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-Sample_Block1.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}

$content = "http://localhost/modules.php?op=modload&amp;name=gallerie_photos&amp;file=index&amp;include=block-random.php";

?>

Here is the content of my block using your method TEXT, but as a result in my bloc I only see

Quote:
http://localhost/modules.php?op=modload&amp;name=gallerie_photos&amp;file=index&amp;include=block-random.php

And not the target of the URL who know why I'm using PHP-NUKE 6, what version do you have TEXT ?

 
baloo
baloo's picture

Joined: 2002-09-09
Posts: 19
Posted: Tue, 2002-12-03 13:37

I have the same problem as above. Note i did change localhost to my server name and changed the module name back to the "gallery" default I use. All I get in the block is the URL.

 
flasher

Joined: 2002-11-13
Posts: 33
Posted: Fri, 2002-12-06 16:50

Who can get it working without Iframes ?

 
TEXT

Joined: 2002-11-27
Posts: 8
Posted: Sat, 2002-12-07 00:14

i use phpnuke 6.0 too, I don't know why it worked for me. I think it depend on the theme. When I switch theme, it did not worked for me either. So I only use the them subsilver. Hope it help. I just read someone has create a different method on making this work. So good luck.