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