Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 67
1 members and 66 guests
sebastianrenfred
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas Electric Choice

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
problems with GalleryBlock
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 77
Join Date: Oct 2002
Location: USA
problems with GalleryBlock - 01-04-2003, 09:36 PM

I just grabbed the galleryblock from this site...im reading through the readme and I understand most of the directions except these 2 parts:


3.In your theme.php
##You must modify the themesidebox() function of each theme where you want to use this block.
##You need to add the following code at the top of the themesidebox() function:
##This ALL goes above everything else in the sidebox function in your theme.php

Code:
 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); 
        }
ok...upon opening up theme.php I found this:

************************************************** **********/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************** **********/

function themesidebox($title, $content) {
$tmpl_file = "themes/subSystem/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}


- My 1st question is, where do I implement the code ( in the code box ) into the "themesidebox() function?

The 2nd ( well 3rd really ) part that confused me is this direction:

"Then create an HTML block in Nuke Admin containing the following url (change the text "www.yoursite.com" to be appropriate for your website:
http://www.yoursite.com/modules.php?...ock-random.php
Save and activate your new block in Nuke Admin."

-What exactly do I do? Thanks in advance for any help!

-dan 8O
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Junior Member
 
Status: Offline
Posts: 20
Join Date: Nov 2002
01-04-2003, 10:51 PM

Dan,

I had the same trouble as well.. and MikeM was gracious enough to spend sometime at my site trying to help me.. he did mention to me when he could find sometime he would rewrite the readme file.. Right now the guys are very busy with the themes trying to incorporate them into the new version of phpnuke 6.5 that may be released soon !

Hope this helps

Crush
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
01-04-2003, 10:57 PM

Thanks for the info. I'll cool my jets and wait then. Don't just paste that url into a new block though, because I tried it and it produced a block that covered my page. Wide block! I can usually figure things like this through, but not this time. And the code placed above like the read said produced errors.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 20
Join Date: Nov 2002
01-04-2003, 11:10 PM

I had the same issue with the wide block as well..

Martin did you put the block-gallery file in the blocks or in the gallery module? I misread MikeM readme file and once I put it in the correct dir (gallery dir) the wide block disppeared.. but we still failed to get mine running!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
01-04-2003, 11:18 PM

I tried it both ways. When I put it in the blocks directory and activated the block I no longer had a way to get to admin to deactivate it, luckily I deleted the file and admin came back. When I put it in the gallery folder nothing at all happened.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
01-05-2003, 01:09 PM

Read #1 in the readme. Teh block-random.php goes in your modules/gallery folder.

One thing I noticed. I do not think the block will work if you have renamed your gallery from the original name. I also think it is case-sensitive
gallery does not = Gallery


DARKDAN,

Exactly how you posted your themesidebox function for your theme.php with the added code is how it needs to be, then the rest of the stuff under the themesidebox function after the pasted code.

As for MAKING the block. You simply copy the code at the end of the readme, changing yoursite.com to your web address. Then paste it in the text box below where you creqte a new blcok. Do not make it a link.

Also, make sure you rmodules/gallery/index.php has the safe to include with block-random.php listed there.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
01-05-2003, 01:14 PM

Mikem I pasted the code in my theme.php and emediately got errors. Is this because the gallery is named my_gallery?

Edit-a-bit: OK I get the idea, I need to work on my spellinging.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
01-05-2003, 01:56 PM

Quote:
Originally Posted by Martin
Mikem I pasted the code in my theme.php and emediately got errors. Is this because the gallery is named my_gallery?
that's possibel..

I will admit, when I first tried to use this block, I had a lot of trouble with it..The same as all of you..
That is why I wrote up that readme to help others.

It is wierd though. I have sent that same block with the readme to a few other people and they have installed it with no problems AT ALL. Yet it's giving us fits.

hmm...back to the drawing board I guess.

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

DARKDAN

Sorry I msread your poat.

Your function themesidebox should look liek this with the pasted code

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;
}
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Junior Member
 
Status: Offline
Posts: 1
Join Date: Jan 2003
01-05-2003, 03:00 PM

Its all working fine for me.

Id like to ask how to target specific galleries or perhaps a sub gallery. I havent looked through your forum to see if this has been discussed, I apologize. The only thing I can think of is to install a seperate gallery and rename it and put everything you dont want seen in that galllery? Or, perhaps edit the php script?
   
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 04:00 PM
problems from 6.0 to 7.5 turpentyne Nuke 7.x - General 12 04-12-2005 06:31 PM
sql problems evilsmiley Nuke 7.x - Themes 1 03-25-2005 04:28 PM
Some problems Pain Purged Topics 3 04-27-2003 02:23 PM
Problems with index.php HELP ME! darkdan Purged Topics 7 01-01-2003 08: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