Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

[TESTING] Selectable Album Random Block
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Author Message
TazM

Beginner
Beginner


Joined: Jun 07, 2004
Posts: 1

PostPosted: Mon Jun 21, 2004 12:46 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: Re: [TESTING] Selectable Album Random Block  

Back to top
deimos

Beginner
Beginner


Joined: Nov 21, 2003
Posts: 1

PostPosted: Sat Aug 07, 2004 10:08 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
yeft

Beginner
Beginner


Joined: Sep 19, 2004
Posts: 4

PostPosted: Sun Sep 19, 2004 6:59 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6318
Location: Washington Township, NJ, USA

PostPosted: Mon Sep 20, 2004 6:58 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message Visit poster's website
yeft

Beginner
Beginner


Joined: Sep 19, 2004
Posts: 4

PostPosted: Mon Sep 20, 2004 2:54 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

thank you for answering!
i haven't gotten it to work ....but i'll see what i can change around
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6318
Location: Washington Township, NJ, USA

PostPosted: Mon Sep 20, 2004 2:57 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message Visit poster's website
yeft

Beginner
Beginner


Joined: Sep 19, 2004
Posts: 4

PostPosted: Tue Sep 21, 2004 6:18 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6318
Location: Washington Township, NJ, USA

PostPosted: Tue Sep 21, 2004 8:21 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

hmm...i believe the "normal" random block does the scrolling as well, without album selection.
Back to top
Offline View user's profile Send private message Visit poster's website
yeft

Beginner
Beginner


Joined: Sep 19, 2004
Posts: 4

PostPosted: Tue Sep 21, 2004 10:01 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
GJSchaller

User
User


Joined: Aug 04, 2004
Posts: 37
Location: Valhalla, NY, USA

PostPosted: Fri Apr 29, 2005 12:41 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6318
Location: Washington Township, NJ, USA

PostPosted: Fri Apr 29, 2005 12:51 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

try D.4. Fatal error: Call to undefined function: isalbumname() [nukedgallery.net]
Back to top
Offline View user's profile Send private message Visit poster's website
GJSchaller

User
User


Joined: Aug 04, 2004
Posts: 37
Location: Valhalla, NY, USA

PostPosted: Fri Apr 29, 2005 12:56 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6318
Location: Washington Township, NJ, USA

PostPosted: Fri Apr 29, 2005 1:01 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

you mean bottom right? Wink
Back to top
Offline View user's profile Send private message Visit poster's website
GJSchaller

User
User


Joined: Aug 04, 2004
Posts: 37
Location: Valhalla, NY, USA

PostPosted: Fri Apr 29, 2005 1:02 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

Er... yeah, that.

(Switches his gloves Wink)
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6318
Location: Washington Township, NJ, USA

PostPosted: Fri Apr 29, 2005 1:04 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next

 
Jump to:  
You cannot post new topics in this forum
You cannot 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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkSearch Engine OptimisationCompare VoIPSEO IndiaWeb Design Melbournemiami web designSEO IndiaLink BuildingPhoenix SEOPhoenix Web MarketingSEOManual Directory Submission Serviceflorida web design companyScottsdale Interior Designweb marketing servicesScottsdale SEOHome Appliances

7th year online! 2003-2010
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia