vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Calendar Events on NON vB Page (https://vborg.vbsupport.ru/showthread.php?t=35409)

Hamma 02-25-2002 12:11 AM

Calendar Events on NON vB Page
 
Is it possible to display the current days events on a non vB page? Id like to have a block at the top of my page that says whats going on for that particular day.

I did a search, but didnt see anything. Any ideas?

WebMasterAJ 03-08-2002 12:08 AM

Is this possible?

N!ck 03-08-2002 02:09 AM

i THINK this works ;) haven't tested it myself though

PHP Code:

<table border=0 cellpadding=0 cellspacing=0>
<tr><td><b>Event Name</b></td><td><b>Event Date</b></td></tr>
<?
require("./forums/global.php");
$events = $DB_site->query("SELECT eventid, eventdate, subject FROM calendar_events ORDER BY eventdate LIMIT 10");
while ($event = $DB_site->fetch_array($events)) {
 echo "<tr><td><a href=\"http://www.url.com/forums/calendar.php?s=&action=getinfo&eventid=" . $event['eventid'] . "\">" . $event['subject'] . "</a></td><td>" . $event['eventdate'] . "</td></tr>";
}
?>
</table>


WebMasterAJ 03-08-2002 01:24 PM

Excellent, however, they are displaying the first event last.

http://www.finheaven.com/boardvb2/calendar.php

How would I make it so the first event comes first?

Thanks for the help!

WebMasterAJ 03-17-2002 06:59 PM

Ok, I see what it is doing now.

Calendar

You see, its grabbing dates since the beginning. How can I make it grab from a curtain time frame?

Like, tell it to grab all dates within a week or month.

Thanks!

WebMasterAJ 03-17-2002 08:09 PM

Alright, I did a heavy search and found that this was already asked for and someone already made the hack... it was a REALLY long time ago, and the URL to the hack lead to the vbulletion.com site instead of .org. Anyways, I found what I was looking for.

Thanks for your time!

Logician 03-26-2002 12:10 PM

You can do it with WebTemplates Hack by creating a webquery for this query.

Besides by adding ASC or DESC after "ORDER BY eventdate" in Nicksauder's code, you can change the order of retrieved data.


All times are GMT. The time now is 08:59 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.01020 seconds
  • Memory Usage 1,721KB
  • 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
  • (7)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