Thanks, i dont know what is but i probe it
Thanks, i dont know what is but i probe it
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:
I have removed it and don't see any change. But I also changed the background of the listed events to alt1 instead of the default bgclass. I'm not sure if that's part of the conditional.Code:<if condition="exec_switch_bg()"></if>
Pictures below are your module (L) and vB's.
I changed the template code some too.
adv_portal_todaysevents 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>
And I used a custom module shell: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>
You'll notice there are head tags in use (<h2> and <h3>) to attract search spiders to relevant content. Since mine is a niche forum, our calendar has some good content I'd like to get indexed. I'm trying to find out now how to get rid of the nofollow attributes vBulletin has set up in event links.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.
Very clean! Nice modifications!
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.
Installed, Thank you!!
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?
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.
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.
Thanks so much for this great mod Tom,
Last edited by A.Chakery; 08-03-2011 at 10:23 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)