The Moon Phases and Scrolling Forum Posts
Written on 02/22/06 at 01:34:38 EST by abujamiylah
Jack, I came across information about your site from the web-app.org site. I was reading the way you got the code to work for the search engines.
I noticed two things.
1. A picture of the moon is current phase. I have a script (java I believe) that I used on a regular html site. Would you share with me how you got the script you have in your site? I would definitely like to include that in mine.
2. You have in one of your right side blocks a scrolling message with the latest forum topics. I would like to learn how to do that as well.
thanks

Other messages in this Thread:
 
 Re: The Moon Phases and Scrolling Forum Posts
Written on 02/22/06 at 03:11:02 EST by Jack Deth
Well, first for the Current Moon Phase Block.

This is actually a plugin...
So you can toss this into your plugins.pl file in the right spot for where you want it to display.


code:
##########################################################################
## PHP-NUKE: Moon Phase block ##
## =========================== ##
##    ##
## Copyright (c) 2003 by David Moulton    ##
## http://www.themoultons.net ##
##    ##
## This program is free software. You can redistribute it and/or modify ##
## it under the terms of the GNU General Public License as published by ##
## the Free Software Foundation; either version 2 of the License. ##
##########################################################################
# PORTED OVER TO WEB-APP Active Web Protal by: KagariseFamily.com ##
##########################################################################
boxheader("Current Moon Phase");
print "<tr><td align=\"center\"><img src=\"http://tycho.usno.navy.mil/cgi-bin/phase.gif\" alt=\"Current Moon Phase\"></td></tr>";
boxfooter();



As you can see, this was a PHP Nuke Block edited for use in Web-App by KagariseFamily.com

Now for the Scrolling Latest Forums Block.

I thought there was a post here somewhere on how to do that...  guess its on some other sites...

The block is the standard latest forums block with a simple scrolling marquee add-on by, guess who again???
Yes, kagarisefamily.com

Here is the code, this also goes into the plugins.pl whereever you want it to show up.


code:
boxheader("Forum Posts");
print qq~<tr><td><MARQUEE behavior="scroll" align= "center" direction= "up" height="200" scrollamount= "2" scrolldelay= "40" onmouseover='this.stop()' onmouseout='this.start()'><small>~;
     latestforumposts();
     if (@myforumnum) {
     for ($myflcounter = 0; $myflcounter < @myforumnum && $myflcounter < 5; $myflcounter++) {
     print qq~$myforumdata{$myforumnum[$myflcounter]}<br>~;
     }
     }
print qq~</td></tr></marquee></small>~;
boxfooter();



see in the code the "$myflcounter < 5;" ???

change that 5 to however many latest forum posts you want to load up in the block...

 Re: The Moon Phases and Scrolling Forum Posts
Written on 02/24/06 at 15:22:02 EST by abujamiylah
All right!
Thanks to you and kagarisefamily.com It works fine.

 Re: The Moon Phases and Scrolling Forum Posts
Written on 02/25/06 at 18:22:21 EST by Jack Deth
No Problem, Enjoy the code...

If you look around you will find alot of information on this site that can help you get a better web-app experience.


Forums and Comments Brought to you by: www.2xlnt.com - WA
The comments are owned by the poster. We aren't responsible for its content.