![]() |
for my website i use this
Code:
<?php i find this works just as well |
MamboCube: This actually worked on my CMS site, but it dosent display correctly. Its not in order and it will display old and out of date events. Is there a way to add a date and then order it from latest to oldest and have it remove the old events? I played around with it a bit but couldnt get it to work right with my limited knowledge. Thanks
|
have u put in this bit?:
Code:
order by dateline DESC LIMIT 10 |
If you want it to list it with the date, and not show events which have already passed, use this code
Code:
|
I have tried both of those options.
dateline dosent display in the correct order nor does dateline_from or to or really any other filds I tried. |
works for me... http://www.eternalbeats.net/home2.php
using the code i just pasted |
Quote:
|
no prob
if you wanna see it in action use http://www.eternalbeats.net/home.php now, i updated also if someone could help with code to retrive the custom fields, that would be dope |
Final workin Code also for 3.6
sorry for my poor english PHP Code:
LIMIT 10 say "show 10 dates" and is changebel |
I was looking for a way to display the calendar events from a specific calendar on certain sub-forums. I looked and looked and tried dozens of "working code" examples, but could NOT get anything to work properly.
I found the previous example code to be very close, but I kept having problems with the date, so I made a couple of modifications to get it to work the way I wanted. The following example will display the Calendar ID 3 events if the Forum ID is 3. This is done with two modifcations. A modification to the forumdisplay.php code and a modification to the ForumDisplay Template. I also set the number of event days to 45 because I have it set to '0' in the vb options. forumdisplay.php PHP Code:
I use the same events format as the one used for index.php and have inserted it into the forumdisplay template. ForumDisplay Template PHP Code:
This modification was installed on a board using 3.6.5. |
All times are GMT. The time now is 09:06 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|