| Author |
Message |
Guest

|
Posted:
Sun Feb 09, 2003 10:37 am |
  |
Random block for 'Gallery' does not work on PHPNuke-6 even when you follow the instructions given in 'Gallery' site. Nothing shows up, not even any error message. I have seen others reporting this on the 'Gallery' forum. But I understand 'Gallery' team is not interested very much in develpoing or fixing the block.
This is a very useful block as many of us use 'gallery'. I wonder if the great guys at NukeCops will do us a favour by making this block workable. |
|
|
 |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Sun Feb 09, 2003 10:40 am |
  |
|
   |
 |
Guest

|
Posted:
Sun Feb 09, 2003 11:00 am |
  |
Could you please let me know where did you download the lock and instruction from. There seems to be more than one versions. Yes it is working fine on your site. Thanks. |
|
|
 |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Sun Feb 09, 2003 11:08 am |
  |
You can get it from http://www.nukemods.com
They have it in their downloads section. Don't need to register I don't think
A few people that have downloaded it from there still can't get it to work though. I have tested it on three other sites and it works for me everytime.
mikem |
|
|
   |
 |
Guest

|
Posted:
Sun Feb 09, 2003 12:17 pm |
  |
Thanks. I have downloaded again and installed following the instructions including the addition of the lines in the theme.php. I have put the URL in a html block as follows:
<a href=http://www.assamchronicle.com/modules.php?op=modload&name=gallery&file=index&include=block-random.php</a>
But nothing shows up!! There must be a reason why it does not work in some sites. Hope to have some expert comments. |
|
|
 |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Sun Feb 09, 2003 1:08 pm |
  |
| Anonymous wrote: |
<a href=http://www.assamchronicle.com/modules.php?op=modload&name=gallery&file=index&include=block-random.php</a>
|
Your a href tag is ill-formed. In addition, you are creating just a hyperlink to be clicked in your block. That won't randomly show anything but a link. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Sun Feb 09, 2003 1:10 pm |
  |
Make sure you got that code correctly posted in your theme.php
Here is what my function sidebox in my theme.php looks like.
| Code: |
function themesidebox($title, $content) {
if (@file_exists($content)) {
$fp = fopen ($content, "r");
$content = fread($fp, filesize($content));
fclose ($fp);
$content = "?>$content<?";
$content = eval($content);
} else if (eregi("^http", $content)) {
$fp = fopen ($content, "r");
$content = fread($fp, 65535);
fclose ($fp);
}
$tmpl_file = "themes/DarkBlue/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
} |
Also, make sure in the gallery file that is specified in the readme, that allow for random block line is added.
Also, the text you paste in your New block is not a link. You only need to put this
| Code: |
| http://www.assamchronicle.com/modules.php?op=modload&name=gallery&file=index&include=block-random.php |
no a href.
mikem |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Sun Feb 09, 2003 1:15 pm |
  |
Such a faux pas post.  |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
Guest

|
Posted:
Mon Feb 10, 2003 10:12 am |
  |
Thank you so much. I got it working. The problem was that I did not put the code in theme.php file at proper place. Your example of theme.php file really helped. |
|
|
 |
 |
|
|