Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 88
7 members and 81 guests
asrapxl, bearmchdressesr, danansceclasqe6, gratoiduat5kmes, lnkmastes, watcy5gerp, whasst3xniisabs
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
Old
  (#21 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
02-24-2003, 09:20 AM

Ciro,

Look back at my post on page one
http://www.nukemods.com/modules.php?...ic&p=2176#2176

Make sure you have the code under your function themesidebox() paste correctly.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
THAAAAAAAAAAAAANKZZZZZZZZZ
Old
  (#22 (permalink))
Junior Member
 
Status: Offline
Posts: 4
Join Date: Feb 2003
Location: The Netherlands
THAAAAAAAAAAAAANKZZZZZZZZZ - 02-24-2003, 03:08 PM

Well... tnx again mikem!

:!: I inserted the "extra lines" BEFORE the "function-line"... ops:
Code:
function themesidebox($title, $content) {
It's working fine now! Argh, a perfect example of someone NOT reading everything right....

Sorry & many thanks again!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
HELP PROBLEM WITH GALLERY BLOCK
Old
  (#23 (permalink))
dds
Junior Member
 
Status: Offline
Posts: 14
Join Date: Feb 2003
HELP PROBLEM WITH GALLERY BLOCK - 03-04-2003, 10:45 PM

l too am having problems with the gallery block l did exaclty what l read here and l still cant get it to work

I pasted this just above this in theme.php
just above this line
Quote:
function themesidebox($title, $content) {
Quote:
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);
}

and then l did the safe to include in the index.php of gallery in modules

Quote:
$safe_to_include =
array(
"add_comment.php",
"add_photos.php",
"album_permissions.php",
"block-random.php",
then l went in to admin then clicked blocks and where it says content l added this

and still no go instead l get the block that shows up displaying the url inside of it what am l doing wrong .... ?
ops: ops:
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#24 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
03-05-2003, 09:00 AM

Quote:
I pasted this just above this in theme.php
just above this line
Quote:
function themesidebox($title, $content) {
uh not ABOVE that line, below it.

like this I posted before
Code:
/************************************************************/ 
/* Function themesidebox()                                  */ 
/*                                                          */ 
/* Control look of your blocks. Just simple.                */ 
/************************************************************/ 

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/Chronicles/blocks.html"; 
    $thefile = implode("", file($tmpl_file)); 
    $thefile = addslashes($thefile); 
    $thefile = "\$r_file=\"".$thefile."\";"; 
    eval($thefile); 
    print $r_file; 
}
mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
No good
Old
  (#25 (permalink))
dds
Junior Member
 
Status: Offline
Posts: 14
Join Date: Feb 2003
No good - 03-05-2003, 07:42 PM

Thanks Mikem for your help but l still cant seem to get it to work when l put it in it shot my them all over the place and still shows the url to my site with the full path to the module block-random.php in the box instead and l did it exactly under that line like you showed l guess lm to dumb to figure this one out just not sure what lm doing wrong .. :roll: instead its giving me this new error which is this

Warning: fopen(http://www.mysite.com/modules.php?op...ock-random.php) [function.fopen]: failed to create stream: HTTP request failed!  in /home/sites/site59/web/themes/mysite/theme.php on line 195

Warning: fread(): supplied argument is not a valid stream resource in /home/sites/site59/web/themes/mysite/theme.php on line 196

Warning: fclose(): supplied argument is not a valid stream resource in /home/sites/site59/web/themes/mysite/theme.php on line 197


and online 197 is this

fclose ($fp);

No idea what to do know ...
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: No good
Old
  (#26 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
Re: No good - 03-05-2003, 08:16 PM

Quote:
Originally Posted by dds
Warning: fopen(http://www.mysite.com/modules.php?op...ock-random.php) [function.fopen]: failed to create stream: HTTP request failed!  in /home/sites/site59/web/themes/mysite/theme.php on line 195

Warning: fread(): supplied argument is not a valid stream resource in /home/sites/site59/web/themes/mysite/theme.php on line 196

Warning: fclose(): supplied argument is not a valid stream resource in /home/sites/site59/web/themes/mysite/theme.php on line 197


and online 197 is this

fclose ($fp);

No idea what to do know ...
I still think you might have the code in your theme.php wrong.

The error you got there indicates your theme.php file is "jacked-up", for lack of a better term. Replace it with the original theme.php.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#27 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
03-05-2003, 08:27 PM

can you send me your entire theme.php file so I can look at it?

spam@fauxpas.org

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Thanks Mikem
Old
  (#28 (permalink))
dds
Junior Member
 
Status: Offline
Posts: 14
Join Date: Feb 2003
Thanks Mikem - 03-05-2003, 09:32 PM

Thanks Mikem l just sent it to you a few minutes ago l really appreciat your help l cant figure this out at all .

dds
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#29 (permalink))
Junior Member
 
Status: Offline
Posts: 18
Join Date: Mar 2003
Location: Chiang Rai, Thailand
03-11-2003, 02:46 AM

Att: Mikem

I have this problem as well; from all posts I understand that to get this random pic block worked the gallery folder must not be renamed.

But sorry, I have to rename them since I categorized each gallery to the specific name as you may see from here http://www.orientours.com. In this case, I won't have a chance to get the random pic worked in the homepage.

So, is there any other posibilities or guide to modify the block random to apply with different renamed-folders?

Tks & brgds
songkran
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#30 (permalink))
Junior Member
 
Status: Offline
Posts: 18
Join Date: Mar 2003
Location: Chiang Rai, Thailand
03-16-2003, 10:07 PM

Att: Mikem

Further to my previous, I've create another gallery and let the folder remain as "gallery". It works well with the random-block at http://www.orientours.com.

Thanks
Songkran
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems in IE 7 Snotrocket Open topics 7 07-27-2007 05:00 PM
problems from 6.0 to 7.5 turpentyne Nuke 7.x - General 12 04-12-2005 07:31 PM
sql problems evilsmiley Nuke 7.x - Themes 1 03-25-2005 05:28 PM
Some problems Pain Purged Topics 3 04-27-2003 03:23 PM
Problems with index.php HELP ME! darkdan Purged Topics 7 01-01-2003 09:28 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31