![]() |
|
#41
|
|||
|
|||
|
Thanks, i dont know what is but i probe it
|
|
#42
|
||||
|
||||
|
Tom, I hope you're still following this module topic. I've just added the module and am doing a little customizing to the way it looks. I am wondering what this conditional actually does:
Code:
<if condition="exec_switch_bg()"></if> Thanks, Jim
__________________
If my post was helpful to you, or made you or ,please take the time to register at my forum and ask a question you've always wanted to know about floors. The Floor Pro Community |
|
#43
|
|||
|
|||
|
That code forces a background color change.
__________________
Tom Morris Porsche Boxster discussion forum. Today's Conservative discussion forum. |
|
#44
|
||||
|
||||
|
Thanks for the quick answer, Tom. I guess it wasn't needed in my case because I removed it with no ill effect. I wanted to have a module that was less busy - reduce the lines from borders and such and all one color background. I also wanted to add the calendar.gif image and make the whole thing look very similar to the standard vBulletin events module at the bottom of FORUMHOME. Provides continuity throughout the site and doesn't confuse the members - especially older ones like myself.
![]() Pictures below are your module (L) and vB's. I changed the template code some too. adv_portal_upcomingevents template: Code:
<if condition="$show[upcomingevents] OR (!$show[upcomingevents] AND $show[noevents])">
<if condition="$show[upcomingevents]">
<tr>
<td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="The Floor Pro Calendar" border="0" /></a></td>
<td class="alt1" width="100%">$upcomingevents</td>
</tr>
<else />
<tr>
<td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="The Floor Pro Calendar" border="0" /></a></td>
<td class="alt1" width="100%" align="center">
<span class="smallfont">No events scheduled in the next $show[upcomingdays] days.</span>
</td>
</tr>
</if>
</if>
Code:
<div class="smallfont">
<if condition="!$show[showeventtype]">
<span class="alignright">$eventdates</span><strong>$callink</strong>
<else />
<span class="alignright">$eventdate</span><strong>$daysevents</strong>
</if>
</div>
Code:
<div style="padding-bottom:$vba_style[portal_vspace]px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2"><h2 class="thread">What's Going On in The Floor Pro Industry</h2></td>
</tr>
</thead>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" /></a>
<h3 class="thread">Upcoming Events for the next $show[upcomingdays] days.</h3>
</td>
</tr>
</tbody>
<tbody id="collapseobj_module_$mods[collapse]" style="$modcollapse">
<if condition="$show['tablerow']">
<tr>
<td class="bgclass">$modulehtml</td>
</tr>
<else />
$modulehtml
</if>
</tbody>
</table>
</div>
Thanks for a great module and for your continued support of it. Jim
__________________
If my post was helpful to you, or made you or ,please take the time to register at my forum and ask a question you've always wanted to know about floors. The Floor Pro Community |
|
#45
|
|||
|
|||
|
Very clean! Nice modifications!
|
|
#46
|
||||
|
||||
|
GREAT MODULE BTW!
Once quick question... Say I wanted two separate date styles in the same module... How would I go about doing that? ![]() I'm 90% sure it would be done in the upcomingevents.php file, but I'm at a loss as to how to make a variable with the proper date format code in it. Any help would be greatly appreciated. JB |
|
#47
|
|||
|
|||
|
Yes, you would need to modify the php file but also the template. The date codes are just the standard date() formats so you can look those up in one of the many online php manuals.
__________________
Tom Morris Porsche Boxster discussion forum. Today's Conservative discussion forum. |
|
#48
|
|||
|
|||
|
Installed, Thank you!!
|
|
#49
|
|||
|
|||
|
I'm trying to set this up to show staff vacations in my forum sidebar.
Only staff should be allowed to see it. I have created a Staff calender only my staff usergroups can see. I have added this module to the sidebar. It shows upcoming events when i set it to the simple calendar or to the default calendar, but it does not show events when I set it to the Staff calendar. Any idea where to look or what to do? |
|
#50
|
|||
|
|||
|
What I would suggest is to set the permissions on the module to only show for Staff members. Other than that I would guess that it is related to a permissions issue somewhere along the way.
Although the module makes use of testing the permissions, it is relying on the fact that all of the other permission related items are working correctly. This is something I never tested extensively as the code is pretty much a duplicate from other locations in the vb/vba php files.
__________________
Tom Morris Porsche Boxster discussion forum. Today's Conservative discussion forum. |
|
#51
|
|||
|
|||
|
It must be a issue with permissions not being passed correctly then. I have checked the permissions for both the module and the calendar, but I will not work.
|
|
#52
|
|||
|
|||
|
I'll be happy to take a look at things if you wish. Feel free to send me a PM with login info if you would like the help.
__________________
Tom Morris Porsche Boxster discussion forum. Today's Conservative discussion forum. |
|
#53
|
|||
|
|||
|
Thanks so much for this great mod Tom,
Regards. Last edited by A.Chakery; 08-03-2011 at 10:23 PM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Module] Upcoming Events - Standalone Version | Tom M | Add-On Modules (version 3.x & 2.x) | 382 | 07-30-2012 02:52 PM |
| [Module] Upcoming Events - Modified Version + Custom Eventfields | academyofsocialarts | Add-On Modules (version 3.x & 2.x) | 12 | 05-14-2008 08:44 PM |
| [Module] Upcoming Events - Standalone Version | Tom M | Add-On Modules (version 3.x & 2.x) | 131 | 09-06-2007 05:45 PM |
| [Module] Upcoming Events | James Goddard | Add-On Modules (version 3.x & 2.x) | 91 | 09-03-2006 11:45 PM |
| module: upcoming events | alekone | Add-On Modules & Modifications | 7 | 11-02-2005 05:30 PM |