The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
In 3.0.x, I used this code to pull calendar events...it no longer works in 3.5....Any ideas? I have several pages on my site broken for this same reason I suspect. Just not sure what changed :
PHP Code:
JC |
#2
|
|||
|
|||
![]()
$DB_ is now $db_
|
#3
|
|||
|
|||
![]()
I think changing $DB_site->query to $db->query_read will do it.
|
#4
|
|||
|
|||
![]()
Hmm, that didn't seem to do it....Thanks for the suggestions though!
JC |
#5
|
||||
|
||||
![]() Code:
<? $events = $db->query("select * from event order by dateline DESC limit 3"); if ($db->num_rows($events)) { while ($ev = $db->fetch_array($events)) { $news=""; $new_date = vbdate('m-d-Y', $ev['dateline'], false, false); $news .= "<B>".$new_date."</B><BR>"; $news .= $ev['title']."<BR>"; echo "<A class='text-9white' HREF=\"calendar.php?do=getinfo&e=$ev[eventid]&day=$new_date&c=1\">$news</A>"; } } ?> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|