vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Calendar Enhancements - vB Event Forums (https://vborg.vbsupport.ru/showthread.php?t=123416)

ludachris 10-21-2009 06:41 PM

Quote:

Originally Posted by DolphinEcho (Post 1902655)
Anyone know how to sort this out.
As you maybe able to see from the screenshot the Event has pushed down the vBadvanced menu on the left and gone full width.

How can I get it to come back into line so the vBadvanced it by the side of it.

http://img39.imageshack.us/img39/7671/imageps.jpg

Change your setting in the vb events options "Use template variable for Event Details" to yes so that you place the $lv_vb_eventforums_eventdetails variable in your showthread template (under the $poll variable) - because right now it's showing up at the end of your navbar template. That should fix your alignment.

SamirDarji 10-22-2009 05:37 AM

Quote:

Originally Posted by ludachris (Post 1903332)
Any idea how to make multiple "new event" links in the forums to include all 3 event types (single day, ranged, recurring)? I don't want my users to be limited to only being able to post one type of event.

I imagine it has to do with modifying the "Redirect NEW THREAD link to NEW EVENT form" plugin somehow. I just can't picture how to do it.

I've thought about how to do this, but just haven't done it yet. It can be done just in templates.

In template FORUMDISPLAY you have the code for the newthread button. I was going to put in an if statement to check if it is an event forum, and if so display the dropdown box for 'Add New Event' from the calendar template instead of the newthread.gif.

In fact, after looking at this methodology and the one by the author for the 'new event' button option. You can use the new event option in the settings and place this code instead of the one listed by the author:
Code:

<if condition="$show['neweventlink']">&nbsp;<a href="newthread.php?$session[sessionurl]do=newevent&amp;f=$foruminfo[forumid]" rel="nofollow"><div class="vbmenu_popup" id="add_event_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$vbphrase[add_new_event]</td>
        </tr>
        <tr>
                <td class="vbmenu_option">
                        <img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[single_all_day_event]" border="0" />
                        <a href="calendar.php?$session[sessionurl]do=add&amp;type=single&amp;c=$calendarinfo[calendarid]">$vbphrase[single_all_day_event]</a>
                </td>
        </tr>
        <tr>
                <td class="vbmenu_option">
                        <img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[ranged_event]" border="0" />
                        <a href="calendar.php?$session[sessionurl]do=add&amp;c=$calendarinfo[calendarid]">$vbphrase[ranged_event]</a>
                </td>
        </tr>
        <tr>
                <td class="vbmenu_option">
                        <img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[recurring_event]" border="0" />
                        <a href="calendar.php?$session[sessionurl]do=add&amp;type=recur&amp;c=$calendarinfo[calendarid]">$vbphrase[recurring_event]</a>
                </td>
        </tr>
        </table>
</div>
</a></if>

I haven't tested this at all, so try it out and set what happens. It's only a template change so you can easily change it back. Be sure to set the option in the event forum options to use the 'new event' button instead of the 'new thread' one.

SamirDarji 10-22-2009 05:52 AM

Something is wrong in the html I posted, but it gives the general idea. I don't have time to work on it right now.

ludachris 10-22-2009 02:09 PM

Quote:

Originally Posted by SamirDarji (Post 1903551)
I've thought about how to do this, but just haven't done it yet. It can be done just in templates.

In template FORUMDISPLAY you have the code for the newthread button. I was going to put in an if statement to check if it is an event forum, and if so display the dropdown box for 'Add New Event' from the calendar template instead of the newthread.gif.

In fact, after looking at this methodology and the one by the author for the 'new event' button option. You can use the new event option in the settings and place this code instead of the one listed by the author:
Code:

<if condition="$show['neweventlink']">&nbsp;<a href="newthread.php?$session[sessionurl]do=newevent&amp;f=$foruminfo[forumid]" rel="nofollow"><div class="vbmenu_popup" id="add_event_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$vbphrase[add_new_event]</td>
        </tr>
        <tr>
                <td class="vbmenu_option">
                        <img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[single_all_day_event]" border="0" />
                        <a href="calendar.php?$session[sessionurl]do=add&amp;type=single&amp;c=$calendarinfo[calendarid]">$vbphrase[single_all_day_event]</a>
                </td>
        </tr>
        <tr>
                <td class="vbmenu_option">
                        <img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[ranged_event]" border="0" />
                        <a href="calendar.php?$session[sessionurl]do=add&amp;c=$calendarinfo[calendarid]">$vbphrase[ranged_event]</a>
                </td>
        </tr>
        <tr>
                <td class="vbmenu_option">
                        <img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[recurring_event]" border="0" />
                        <a href="calendar.php?$session[sessionurl]do=add&amp;type=recur&amp;c=$calendarinfo[calendarid]">$vbphrase[recurring_event]</a>
                </td>
        </tr>
        </table>
</div>
</a></if>

I haven't tested this at all, so try it out and set what happens. It's only a template change so you can easily change it back. Be sure to set the option in the event forum options to use the 'new event' button instead of the 'new thread' one.

The problem is, the original hack html code doesn't list the calendarID, it's in the plugin (where the calendar and forum is mapped). So the new event button only references the forumID. I tried getting the calendarID to print on the page to see if it would work without success. The plugin needs to be edited, it can't be done through html alone.

SamirDarji 10-24-2009 04:30 AM

Hmmm...I see what you're saying. It's a dirty solution, but you could hard code the calendar ID if you only have one event forum. Or if you have multiple, use an if statement that checks what the forum ID is and then puts the appropriate calendar ID. I'm going to see if I can work on this tonight. I can't sleep.

SamirDarji 10-24-2009 06:14 AM

I got something working, but without the javascript menus. I had to hardcode not only the calendar ID, but the phrases for the add event menu. It works, but looks terrible. I'll have to work on it more later.

SVTCobraLTD 11-02-2009 04:10 PM

THis working on 3.8.4?

chiver 11-02-2009 07:55 PM

Quote:

Originally Posted by SVTCobraLTD (Post 1909458)
THis working on 3.8.4?

i have it working fine out of the box on 3.8.4 pl1

Bluefin221 11-20-2009 03:05 AM

This mod has become an integral part of my forum infact one of the busiest sections is my event forums, I really hope something can be sorted with it for vb4 as I would hate to lose this mod.

zapiy 11-23-2009 07:55 PM

Any managed to get the button to work on VB 3.8.4?


All times are GMT. The time now is 09:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01554 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete