vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > vBa CMPS v3.x & 2.x > Add-On Modules (version 3.x & 2.x)

Reply
 
Thread Tools Display Modes
  #41  
Old 10-04-2009, 02:14 AM
Dark Neo Dark Neo is offline
Junior Member
 
Join Date: Oct 2009
Posts: 1
Thumbs up

Thanks, i dont know what is but i probe it
Reply With Quote
  #42  
Old 06-10-2010, 12:30 AM
eJM's Avatar
eJM eJM is offline
Senior Citizen
 
Join Date: Jul 2006
Location: teh Ether
Posts: 321
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.
The Floor Pro Community
Reply With Quote
  #43  
Old 06-10-2010, 07:32 AM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default

That code forces a background color change.
__________________
Tom Morris
Porsche Boxster discussion forum.
Today's Conservative discussion forum.
Reply With Quote
  #44  
Old 06-10-2010, 03:02 PM
eJM's Avatar
eJM eJM is offline
Senior Citizen
 
Join Date: Jul 2006
Location: teh Ether
Posts: 321
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
File Type: jpg upcoming-events-module.jpg (70.8 KB, 19 views)
File Type: jpg upcoming-events-vb.jpg (50.0 KB, 16 views)
__________________
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
Reply With Quote
  #45  
Old 06-10-2010, 04:41 PM
Samir Samir is offline
Huntsville Car Scene.com
 
Join Date: Sep 2004
Location: HSV
Posts: 276
Default

Very clean! Nice modifications!
Reply With Quote
  #46  
Old 06-21-2010, 11:53 PM
JohnBee's Avatar
JohnBee JohnBee is offline
Sitemaster
 
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
Reply With Quote
  #47  
Old 06-22-2010, 08:10 AM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
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.
Reply With Quote
  #48  
Old 07-06-2010, 03:42 PM
John102774 John102774 is offline
Junior Member
 
Join Date: Oct 2006
Posts: 17
Default

Installed, Thank you!!
Reply With Quote
  #49  
Old 07-20-2010, 08:21 PM
Alfa1 Alfa1 is offline
Senior Member
 
Join Date: Dec 2005
Posts: 144
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?
Reply With Quote
  #50  
Old 07-20-2010, 08:49 PM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
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.
Reply With Quote
  #51  
Old 07-21-2010, 09:40 PM
Alfa1 Alfa1 is offline
Senior Member
 
Join Date: Dec 2005
Posts: 144
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.
Reply With Quote
  #52  
Old 07-21-2010, 10:43 PM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
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.
Reply With Quote
  #53  
Old 08-03-2011, 10:12 PM
A.Chakery A.Chakery is offline
Junior Member
 
Join Date: Nov 2010
Posts: 24
Default

Thanks so much for this great mod Tom,

Regards.

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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 02:36 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.