vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   calendar on a non-vb page (https://vborg.vbsupport.ru/showthread.php?t=108706)

malfuncion 02-23-2006 03:42 PM

calendar on a non-vb page
 
ok guys.. first off i would like to say thanks for the wonderful forum. it has been a major help on all this, especially since i started coding in this language(not even sure what i code in lol) this year ;) ok now on to the ?...



ok we are running a forumsite, www.ok-speed.net and have a new portal page comin up soon. it can be seen @ www.ok-speed.net/newd.php as you can see from there it has a few goodies on it, but in particular i want to ask how to show events for a particular month. right now i have this code,



PHP Code:

        <?
        $events = $db->query("select * from event order by dateline_from desc limit 12");
        if ($db->num_rows($events))
         {
                while ($ev = $db->fetch_array($events))
                 {
                      $news=""; 
                 $new_date = vbdate('m-d-Y', $ev['dateline_from'], false, false);
                 $news .= "<B>".$new_date."</B>: ";
                 $news .= $ev['title']."<BR>";
          echo "<A class='text-9white' target='_new' HREF=\"/forums/calendar.php?do=getinfo&e=$ev[eventid]&day=$new_date&c=1\"><FONT SIZE=2 FACE=ARIAL>$news</FONT></A>";
                 }
         }
        ?>



like i said, that one only pulls the last posted event.. and orders them that way. what i need is for it to check what the current month is, then post the events for that month(not including birthdays). much appreciation in advance.

malfuncion 02-24-2006 05:45 PM

anyone?


All times are GMT. The time now is 11:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01237 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete