The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#12
|
|||
|
|||
anyone please! this is driving me mad, lol.
|
#13
|
|||
|
|||
Does anybody have a screenshot or demo page? I keep getting this error, no matter what I try.
Code:
Unable to add cookies, header already sent. File: /home/myusername/public_html/test.php Line: 10 |
#14
|
|||
|
|||
Here's a screen shot of the site I made this for. Maybe it'll help you.
|
#15
|
|||
|
|||
Quote:
You might also make sure that the calendar you're choosing is actually id 2...if you've made more than one in the past it might be a different number. |
#16
|
|||
|
|||
Quote:
|
#17
|
|||
|
|||
Quote:
Wbear, thanks a lot of the screenshot - that looks awesome! edit: Got home and still no luck. I get a lot of this Code:
$events = $db->query ("SELECT UNIX_TIMESTAMP() AS dateline, dateline_from, eventid, title FROM event WHERE calendarid = 1 AND dateline_from >= UNIX_TIMESTAMP() ORDER BY dateline_from LIMIT 10"); if ($db->num_rows($events)) { echo ""; while ($event = $db->fetch_array($events)) { #$timestring=$event[dateline_from],false,true,false,true; $dateevent= vbdate("M j, Y", $event[dateline_from],false,true,false,true); echo " "; } //} } else { echo " Upcoming Events (click here for full month) $dateevent $event[title] "; } echo " Upcoming Events No Events Upcoming Currently "; Code:
$events = $db->query ("SELECT UNIX_TIMESTAMP() AS dateline, dateline_from, eventid, title FROM event WHERE calendarid = 1 AND dateline_from >= UNIX_TIMESTAMP() ORDER BY dateline_from LIMIT 10"); if ($db->num_rows($events)) { echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"1\"> <tr> <td COLSPAN=2 align=\"center\" width=\"100%\" bgcolor=\"#FFFFFF\"><font face=\"arial, helvetica\" color=\"000000\"><b><a href='http://www.socaltrailriders.org/forum/calendar.php?c=1&do=displaymonth'>Upcoming Events <br>(click here for full month)</a></b></font></td> </tr> "; while ($event = $db->fetch_array($events)) { #$timestring=$event[dateline_from],false,true,false,true; $dateevent= vbdate("M j, Y", $event[dateline_from],false,true,false,true); echo " <tr> <td align=\"center\" width=\"80\" bgcolor=\"FFFFFF\"><font size=\"-1\" face=\"arial, helvetica\" color=\"000000\">$dateevent</font></td> <td align=\"left\" bgcolor=\"FFFFFF\" width=\"183\"><font size=\"-1\" face=\"arial, helvetica\"><b><a href='http://www.socaltrailriders.org/forum/calendar.php?do=getinfo&e=$event[eventid]&c=1'>$event[title]</a></b></font></td> </tr> <tr> <td colspan=\"2\" bgcolor=\"FFFFFF\"></td> </tr> "; } //} } else { echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"1\"> <tr> <td COLSPAN=2 align=\"center\" width=\"100%\" bgcolor=\"#FFFFFF\"><font class=\"heading\" face=\"arial, helvetica\" size=\"1\" color=\"000000\"><b><a href='http://www.socaltrailriders.org/forum/calendar.php?c=1&do=displaymonth'>Upcoming Events</a></b></font></td> </tr> <tr> <td COLSPAN=2 align=\"center\" width=\"100%\" bgcolor=\"#FFFFFF\"><font size=\"-1\" face=\"arial, helvetica\" color=\"000000\"><b>No Events Upcoming Currently</b></font></td> </tr> <tr> <td colspan=\"2\" bgcolor=\"FFFFFF\"></td> </tr> "; } echo "</table>"; $10 bucks to whoever helps me get this working. Wbear, what version of vBulletin are you using? I installed event forums mod btw, not sure if that matters. Thanks! |
#18
|
|||
|
|||
Quote:
The links to ID2 work just not the top code to display the events Code:
WHERE calendarid = 2 AND dateline_from >= UNIX_TIMESTAMP() |
#19
|
|||
|
|||
Quote:
Include the entire script on the test page (with <? and ?>, and change the paths in the top to your site. chdir("forum/"); require('./global.php'); chdir("../"); This switches to the forum directory, grabs the config file and switches back. Make sure the closing PHP tag is present as well. I'm using 3.5.2 on this, but had it working (with a small change) on 3.07/8. |
#20
|
|||
|
|||
Quote:
|
#21
|
|||
|
|||
Quote:
Code:
chdir("forum/"); require('./global.php'); chdir("../"); Code:
Invalid SQL: SELECT UNIX_TIMESTAMP() AS dateline, dateline_from, eventid, title FROM event WHERE calendarid = 1 AND dateline_from >= UNIX_TIMESTAMP() ORDER BY dateline_from LIMIT 10; MySQL Error : Table 'socaltra_vbforum.event' doesn't exist Error Number : 1146 Date : Wednesday, January 25th 2006 @ 02:14:42 PM Script : http://socaltrailriders.org/test.php Referrer : IP Address : 134.139.107.72 Username : Unregistered Classname : vb_database |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|