Page 3 of 3 FirstFirst 123
Results 41 to 53 of 53

Thread: [Module] [3.8.1] Upcoming Events - Standalone version

  1. #41
    Junior Member
    Join Date
    Oct 2009
    Posts
    1

    Thumbs up

    Thanks, i dont know what is but i probe it

  2. #42
    Senior Citizen eJM's Avatar
    Join Date
    Jul 2006
    Location
    teh Ether
    Posts
    322

    Default

    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>
    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.

    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.

  3. #43

    Default

    That code forces a background color change.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  4. #44
    Senior Citizen eJM's Avatar
    Join Date
    Jul 2006
    Location
    teh Ether
    Posts
    322

    Default

    Quote Originally Posted by Tom M View Post
    That code forces a background color change.
    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>
    adv_portal_todaysevents template:
    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>
    And I used a custom module shell:
    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>
    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.

    Thanks for a great module and for your continued support of it.

    Jim
    Attached Images Attached Images
    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.

  5. #45
    Huntsville Car Scene.com
    Join Date
    Sep 2004
    Location
    HSV
    Posts
    276

    Default

    Very clean! Nice modifications!

  6. #46
    Sitemaster JohnBee's Avatar
    Join Date
    Oct 2004
    Posts
    177

    Default

    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

  7. #47

    Default

    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.

  8. #48
    Junior Member
    Join Date
    Oct 2006
    Posts
    16

    Default

    Installed, Thank you!!

  9. #49

    Default

    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?

  10. #50

    Default

    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.

  11. #51

    Default

    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.

  12. #52

    Default

    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.

  13. #53
    Junior Member
    Join Date
    Nov 2010
    Posts
    25

    Default

    Thanks so much for this great mod Tom,

    Regards.
    Last edited by A.Chakery; 08-03-2011 at 10:23 PM.

Page 3 of 3 FirstFirst 123

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Module] Upcoming Events - Standalone Version
    By Tom M in forum Add-On Modules (version 3.x & 2.x)
    Replies: 382
    Last Post: 07-30-2012, 02:52 PM
  2. [Module] Upcoming Events - Modified Version + Custom Eventfields
    By academyofsocialarts in forum Add-On Modules (version 3.x & 2.x)
    Replies: 12
    Last Post: 05-14-2008, 08:44 PM
  3. [Module] Upcoming Events - Standalone Version
    By Tom M in forum Add-On Modules (version 3.x & 2.x)
    Replies: 131
    Last Post: 09-06-2007, 05:45 PM
  4. [Module] Upcoming Events
    By James Goddard in forum Add-On Modules (version 3.x & 2.x)
    Replies: 91
    Last Post: 09-03-2006, 11:45 PM
  5. module: upcoming events
    By alekone in forum Add-On Modules & Modifications
    Replies: 7
    Last Post: 11-02-2005, 05:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •