| Author |
Message |
TazM
Beginner


Joined: Jun 07, 2004 Posts: 1
|
Posted: Mon Jun 21, 2004 12:46 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
Quote: › replace ALL references to: isalbumname() to: getalbumname()
That fixed me up and it is running really quite nicely for me now. This even after I could not get the previous block versions to work very well and/or work at all.
Thanx slackbladder for your helping the others has helped me also. |
|
| Back to top |
|
|
AdBot
|
| Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
|
|
|
| Back to top |
|
 |
deimos
Beginner


Joined: Nov 21, 2003 Posts: 1
|
Posted: Sat Aug 07, 2004 10:08 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
I've been using Random Block v2 and it was working fine. I copied over the parameters to the Selectable Random Block and then made all the changes suggested in the thread and i got:
Code: › Parse error: parse error in /home/httpd/******/blocks/NG-RandomPhotoSelectTest_functions.php on line 101
Warning: Wrong parameter count for fgets() in /home/httpd/******/blocks/block-NG-RandomPhotoSelectTest.php on line 88
Fatal error: Call to undefined function: createadminlist() in /home/httpd/******/blocks/block-NG-RandomPhotoSelectTest.php on line 111
Uh, not sure went wrong here. Is there going to be an updated download so that we don't mistakes modifying code? Thanks! |
|
| Back to top |
|
|
yeft
Beginner


Joined: Sep 19, 2004 Posts: 4
|
Posted: Sun Sep 19, 2004 6:59 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
Hey, I'm new here, but i have a question which is probably pretty easy to answer...
how do i use this random block outside of phpnuke (i like the scrolling and haven't found it anywhere else for it, but my site runs on mambo not phpnuke) and if you dont want to answer this thats cool just dont flame me cause i use mambo please |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Mon Sep 20, 2004 6:58 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
it shouldn't be too hard to modify for use outside of PHPNuke. PHPNuke uses the "return $content;" line to tell the main parser what the content of the block is. $content is populated with the HTML code throughout the block. All you'd have to do is find the equivalent return variable in Mambo and make sure everything is properly formatted.
If you wanted to use it in a static HTML page, you'd replace all of the "$content .= " with "echo ". |
|
| Back to top |
|
|
yeft
Beginner


Joined: Sep 19, 2004 Posts: 4
|
Posted: Mon Sep 20, 2004 2:54 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
thank you for answering!
i haven't gotten it to work ....but i'll see what i can change around |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Mon Sep 20, 2004 2:57 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
no problem.
if i can get enough takers, i will expand this site to include more than just phpNuke. there haven't been any people w/ postnuke knowledge who have come forward yet. it would be nice to have a single point for Gallery and CMS integration...so if anyone out there reading this has knowledge in postnuke,mambo, geeklog, etc...let me know. |
|
| Back to top |
|
|
yeft
Beginner


Joined: Sep 19, 2004 Posts: 4
|
Posted: Tue Sep 21, 2004 6:18 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
Is there an easy way just to implement this part of the code
Code: › else if ($selector=="RANDOM"){
if($horozontal == 0) {
if($scroll) {
echo "<marquee loop=\"infinite\" direction=\"up\" behavior=\"scroll\" align=\"center\" scrollamount= \"2\" scrolldelay=\"60\" height=\"220\" onmouseover='this.stop()' onmouseout='this.start()'>";
}
for($i=0;$i<$number_of_pix;$i++) {
echoget_photo(0,$scaleTo);
if($number_of_pix >1) {
echo "<br>";
}
}
if($scroll) {
echo"<p><p><p></marquee>";
}
}
else {
echo "<table border=\"0\"><tr>";
for($i=0;$i<$number_of_pix;$i++) {
echo"<td>".get_photo(0,$scaleTo)."</td>";
}
echo"</tr></table>";
}
}
into the block-random.php file in gallery so when my mambo calls this it just does the scroll automatically ? the scroll is basically all i'm looking for right now, i can figure out album select later.....
thanks |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Tue Sep 21, 2004 8:21 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
| hmm...i believe the "normal" random block does the scrolling as well, without album selection. |
|
| Back to top |
|
|
yeft
Beginner


Joined: Sep 19, 2004 Posts: 4
|
Posted: Tue Sep 21, 2004 10:01 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
the gallery block-random i'm almost 100% positive doesnt have scrolling...if thats what your talking about
but if you were talking about the other random block V2 thing...i have used that one...but i can't get it to scroll, all i can get it to do is show a random image just as gallery's own does.. |
|
| Back to top |
|
|
GJSchaller
User


Joined: Aug 04, 2004 Posts: 37 Location: Valhalla, NY, USA
|
Posted: Fri Apr 29, 2005 12:41 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
I'm running into an issue where the block simply doens't show - no error, nothing - when I do a View Source, the code for the block just isn't there (it ends the page abrupty, as if the PHP is returning nothing to the browser and it can't continue).
I have it viewable to Admins only now as a way to test it until it's working, but it's happening for normal users when it's enabled. I do have the normal, regular Random Photo block working fine.
I'm using Nuke 7.5, Galery 1.5, and Sentinel 2.2.0, if that helps. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
|
| Back to top |
|
|
GJSchaller
User


Joined: Aug 04, 2004 Posts: 37 Location: Valhalla, NY, USA
|
Posted: Fri Apr 29, 2005 12:56 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
Yah - tried that, no luck.
The odd part is that there is no errror at all, just... nothing.
I'll re-enable it for all visitors, to show what I mean:
http://www.knightrealms.com/index.php
It should be on the bottom left, under Total Hits. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Fri Apr 29, 2005 1:01 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
you mean bottom right?  |
|
| Back to top |
|
|
GJSchaller
User


Joined: Aug 04, 2004 Posts: 37 Location: Valhalla, NY, USA
|
Posted: Fri Apr 29, 2005 1:02 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
Er... yeah, that.
(Switches his gloves ) |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Fri Apr 29, 2005 1:04 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
at the top of the block file, after the opening php declaration, add:
PHP: › <?php error_reporting(E_ALL); ?>
make the block admin-viewable only, again, and post any messages. |
|
| Back to top |
|
|
|
|
|
|
|