You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 46 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Random Gallery Block [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Guest







PostPosted: Sun Feb 09, 2003 10:37 am Reply with quoteBack to top

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.
Find all posts by Anonymous
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Sun Feb 09, 2003 10:40 am Reply with quoteBack to top

I seem to have gotten it to work over at my site here
http://www.fauxpas.org

mikem
Find all posts by mikemView user's profileSend private message
Guest







PostPosted: Sun Feb 09, 2003 11:00 am Reply with quoteBack to top

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.
Find all posts by Anonymous
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Sun Feb 09, 2003 11:08 am Reply with quoteBack to top

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 Confused
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
Find all posts by mikemView user's profileSend private message
Guest







PostPosted: Sun Feb 09, 2003 12:17 pm Reply with quoteBack to top

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.
Find all posts by Anonymous
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Feb 09, 2003 1:08 pm Reply with quoteBack to top

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]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Sun Feb 09, 2003 1:10 pm Reply with quoteBack to top

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
Find all posts by mikemView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Feb 09, 2003 1:15 pm Reply with quoteBack to top

mikem wrote:
I seem to have gotten it to work over at my site here
http://www.fauxpas.org

mikem
Such a faux pas post. Wink

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Guest







PostPosted: Mon Feb 10, 2003 10:12 am Reply with quoteBack to top

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.
Find all posts by Anonymous
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.273 Seconds - 169 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::