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)

nymyth 01-26-2007 07:38 PM

There is a conflict when trying to run this with FAVORITE SMILIES HACK.....when clicking on a new thread it says something about header information already passing.....after i disabled favorites hack this works fine......if anyone can get the both working please lemme know....THANKS

Peace

evotion 01-27-2007 01:33 PM

Great stuff....
In conjucjtion with the RSVP script its totally brilliant.

MJM 01-30-2007 09:02 AM

ragtek, which plugin would this be added to and would you be so kind as to provide instructions or should I ask at Advanced editing Mods plugin?

Quote:

Originally Posted by MJM (Post 1167624)
Yep, I disabled this plugin (below) and it works now.
However I can't live without Adv. Editing Options for Mods and Admins ( which is only applied to threads, not the calendar). :(

Quote:

Originally Posted by ragtek (Post 1167658)
put global $vbulletin in the plugin code
that it will work


gyankow 01-31-2007 07:45 PM

I was wounding if anyone knew how to run the Thread create portion of the vb forums stand alone? Editing and saving each event that was added before this was installed is a pain. I need a way to mass create all the accosiated threads by executing a script to create the thread part of the code product. Maybe check to see if event occurs int he next 30 days from today to prevent flooding. HELP please.

Evercraft 02-02-2007 02:17 PM

Hi all, I just want to apologise for the lack of updates on this. I've been very busy with work and other projects, and time for this project has unfortunatly been reduced to nil at present.

Unfortunatly I can't really say when I will be able to dedicate time to some of the requested features/issues, but when I do i'll be sure to let you know.

Swedie 02-04-2007 03:06 PM

I get two entries on the same showthread page.

http://www.sporthoj.com/forum/showthread.php?t=146213

How come?

MTVSlick 02-11-2007 07:06 AM

this mod set up fine, but when any members clicks on the new event button it say they do not have permission to view, but all setting ssay they do, anyone have any ideas on what to do here?

Mark,

thincom2000 02-12-2007 07:00 AM

They need to have permission to create calendar events.

Anyway, any other product would have been an immediate uninstall. However this rocks too much. Installing this mod pushed my showthread queries up from 12 to 43. I'm going to have to rewrite all your plugins tomorrow to get it to only use the original 12...

COBRAws 02-12-2007 09:35 PM

Zip updated with XSS flaw as per this post: https://vborg.vbsupport.ru/showpost....&postcount=218

Version 3.3.1 i guess

Lionel 02-12-2007 11:08 PM

Quote:

Originally Posted by Crazy Serb (Post 1122010)
speaking of which, I'm willing to pay $20 for someone to either integrate the "buy thread" mod or edit the buy thread mod for use with this script....

So Crazy Serb, how did you make out? I solved half the problem by intercepting all new events made from forum add event button, simply by executing the event forum redirect script after the buy event new_thread_start (made it number 6).

I am curious to know if you managed to control it via calendar add?

Lionel 02-12-2007 11:41 PM

In fact, it's even easier than I thought. We have the mapping in the vb options for event forum. Like 2:254 where 2 is the calendar id and 254 is the forum. So before adding an event in the calendar, if the calendar id matches the calendar id in the options, then we do a query for that forumid to see if it is active for buy thread. If it is, then we plugin an error telling them that this method is not allowed, that they should add the event from the forum and provide them a link to do so, since we have the forumid. And we let the buythread handle it with the method described in previous thread.

We would practically be disabling adding event directly from calendar.

thincom2000 02-13-2007 01:09 AM

Quote:

Originally Posted by COBRAws (Post 1181025)
Zip updated with XSS flaw as per this post: https://vborg.vbsupport.ru/showpost....&postcount=218

Version 3.3.1 i guess

I see absolutely no difference in the code for the plugin that addresses. Likewise I don't see any XSS issues. Then again maybe I had 3.3.1 installed and just can't tell because you didn't update the version number in the 3.3.1 product :confused:

COBRAws 02-13-2007 02:30 AM

Quote:

Originally Posted by thincom2000 (Post 1181145)
I see absolutely no difference in the code for the plugin that addresses. Likewise I don't see any XSS issues. Then again maybe I had 3.3.1 installed and just can't tell because you didn't update the version number in the 3.3.1 product :confused:

its now updated, sorry.

The code fix, is explained in the link posted in my reply.

Crazy Serb 02-13-2007 04:44 AM

Quote:

Originally Posted by Lionel (Post 1181103)
In fact, it's even easier than I thought. We have the mapping in the vb options for event forum. Like 2:254 where 2 is the calendar id and 254 is the forum. So before adding an event in the calendar, if the calendar id matches the calendar id in the options, then we do a query for that forumid to see if it is active for buy thread. If it is, then we plugin an error telling them that this method is not allowed, that they should add the event from the forum and provide them a link to do so, since we have the forumid. And we let the buythread handle it with the method described in previous thread.

We would practically be disabling adding event directly from calendar.

I gave up... (and if you do get it working, PLEASE let me know).

I went along a different route...

Created a 1-day long membership for people who wanted to post a thread (and they have 24 hours to post that thread), and then I created a year long membership for those who wanted the ability to post unlimited threads (for a higher price, of course), and that sort of took care of the problem...

thincom2000 02-14-2007 05:14 PM

It would be really nice if we could add attachments to events. Right now I have to do it manually in the database.

ragtek 02-14-2007 07:11 PM

yes that would be great
Quote:

Originally Posted by COBRAws (Post 1181025)
Zip updated with XSS flaw as per this post: https://vborg.vbsupport.ru/showpost....&postcount=218

Version 3.3.1 i guess

thx 4 release

thincom2000 02-14-2007 09:26 PM

Quote:

Originally Posted by thincom2000 (Post 1182558)
It would be really nice if we could add attachments to events. Right now I have to do it manually in the database.

I managed to pull this off on my installation for forum events. However it requires a lot of template edits as well as a file edit. Anyone interested?

Crazy Serb 02-15-2007 04:49 AM

post it... ;)

Lionel 02-15-2007 05:03 AM

Definitely interested

cavyspirit 02-18-2007 10:48 PM

I'm desparate to get this to show up on the forumhome page. Not sure how to get it right. Can anyone help?

You can see the difference on events displayed on the forumhome www.napadanceclub.com as compared to the events forum--which has repeating events: http://www.napadanceclub.com/forum/forumdisplay.php?f=6

thincom2000 02-19-2007 05:05 AM

In order to add attachments to your forum events (once the event is posted):

Create new plugin.

Product: Lv vB Event Forums
Title: Attachment Permissions
Hookname: showthread_post_start
Phpcode:
PHP Code:

$show['caneditattach'] = ($threadinfo['lv_vb_eventforums_eventid'] AND $forumperms $vbulletin->bf_ugp_forumpermissions['canpostattachment'] AND $vbulletin->userinfo['userid'] AND !empty($vbulletin->userinfo['attachmentextensions'])) ? true false


FILE EDIT: calendar.php

Find:
PHP Code:

        case 'edit':
        {
            
$_POST['do'] = 'edit';
        }
        break; 

Add underneath:
PHP Code:

        case 'attach':
        {
            
$eventpostid $db->query_first("
                SELECT firstpostid 
                FROM " 
TABLE_PREFIX "thread
                WHERE lv_vb_eventforums_eventid = 
$eventinfo[eventid]
            "
);

            
exec_header_redirect($vbulletin->options['bburl'] . '/editpost.php?p=' $eventpostid[firstpostid]);
        }
        break; 


TEMPLATE EDITS: editpost

Find:
Code:

<if condition="$show['deletepostoption']">
Add above:
Code:

<if condition="$attachments_only"><div style="visibility: hidden; position: absolute"></if>

Find:
Code:

$postpreview
Add underneath:
Code:

<if condition="$attachments_only"></div></if>

Find:
Code:

<form name="vbform" action="editpost.php?do=updatepost&amp;p=$postid" method="post"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])"</if>>
Add underneath:
Code:

<if condition="$attachments_only"><div style="visibility: hidden; position: absolute"></if>

Find:
Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">
                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newpost_options')"><img id="collapseimg_newpost_options" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_newpost_options].gif" alt="" border="0" /></a>

Add above:
Code:

<if condition="$attachments_only"></div></if>

Find:
Code:

<div class="panel">
                <div style="width:$stylevar[formwidth]" align="$stylevar[left]">

Add underneath:
Code:

<if condition="$attachments_only"><div style="visibility: hidden; position: absolute"></if>

Find:
Code:

$attachmentoption
Replace with:
Code:

<if condition="$attachments_only"></div></if>
       
                                $attachmentoption
                                               
<if condition="$attachments_only"><div style="visibility: hidden; position: absolute"></if>


Find:
Code:

</div>
                        </div>
                       
                        <div style="margin-top:$stylevar[cellpadding]px">
                                <input type="submit" class="button" name="sbutton" value="$vbphrase[save_changes]" accesskey="s" tabindex="1" />
                                <input type="submit" class="button" name="preview" value="$vbphrase[preview_changes]" accesskey="r" tabindex="1" />
<if condition="$attachments_only">

Replace with:
Code:

                                <if condition="$attachments_only"></div></if>

                                </div>
                        </div>
                       
                        <div style="margin-top:$stylevar[cellpadding]px">
                                <input type="submit" class="button" name="sbutton" value="$vbphrase[save_changes]" accesskey="s" tabindex="1" />
<if condition="$attachments_only"><div style="visibility: hidden; position: absolute"></if>
                                <input type="submit" class="button" name="preview" value="$vbphrase[preview_changes]" accesskey="r" tabindex="1" />
<if condition="$attachments_only"></div></if>


TEMPLATE EDITS: calendar_showeventsbit

Find:
Code:

<div>$eventinfo[event]</div>
Add underneath:
Code:

                <if condition="$show['attachments']">
<br />
                <!-- attachments -->
                        <div style="padding:$stylevar[cellpadding]px">
                       
                        <if condition="$show['thumbnailattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_thumbnails]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $eventinfo[thumbnailattachments]
                                        </div>
                                </fieldset>
                        </if>
               
                        <if condition="$show['imageattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $eventinfo[imageattachments]
                                        </div>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['imageattachmentlink']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $eventinfo[imageattachmentlinks]
                                        </table>
                                        </fieldset>
                        </if>
                       
                        <if condition="$show['otherattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_files]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $eventinfo[otherattachments]
                                        </table>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['moderatedattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attachments_pending_approval]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $eventinfo[moderatedattachments]
                                        </table>
                                </fieldset>               
                        </if>
                       
                        </div>
                <!-- / attachments -->
</if>


Find:
Code:

<if condition="$show['caneditevent']">
                                                <option value="edit">:: &nbsp; $vbphrase[edit_event]</option>
                                        </if>

Add underneath:
Code:

<if condition="$show['caneditattach']">
<option value="attach">:: &nbsp; Edit Attachments</option>
</if>


I think that's everything I did. In order to add attachments at the same time you create the event a LOT more edits were necessary and I didn't have the patience for it. Adding them after creation was good enough for me.

stwilson 02-20-2007 01:15 AM

Quote:

Originally Posted by thincom2000 (Post 1182558)
It would be really nice if we could add attachments to events. Right now I have to do it manually in the database.

I second that!!! That would be a nice feature add.

bugzy 02-23-2007 07:07 AM

Quote:

Originally Posted by mrjbs (Post 1125105)
I have the same problem...no new event button. The button will show if the <if></if> is removed. But then it will show in all of the forums. Is there a different if statement that could be used to choose the forum that it will show up in?

i have the same issue

the New Events wont show up after following the instructions

thincom2000 02-28-2007 12:11 AM

There's a setting for this:

Show the New Event button on the thread list.
Setting this to no will change the New Thread button to forward the user to the add event form.

Setting this to yes will add a New Event button, ONLY if you have also added the necessary template modification in FORUMDISPLAY. See the installation instructions for more information.

Is it set to yes?

stwilson 02-28-2007 03:20 AM

Quote:

Originally Posted by bugzy (Post 1188883)
i have the same issue

the New Events wont show up after following the instructions

I can only get it to show in mine if I have the Summary of events set to yes. I have updated the template to allow it to show but it does not....even when the setting is set to Yes, while the Summary option is set to no.

thincom2000 02-28-2007 10:12 AM

Quote:

Originally Posted by stwilson (Post 1192418)
I can only get it to show in mine if I have the Summary of events set to yes. I have updated the template to allow it to show but it does not....even when the setting is set to Yes, while the Summary option is set to no.

This is because the plugin for forumdisplay_complete that sets $show['neweventlink'] to true uses the condition:
PHP Code:

if(($lv_vb_eventforums_showSummaryThisThread) && ($lv_vb_eventforums_thisCalendar 0)) 

I am thinking then that what you were experiencing was intentional on the coder's behalf.

objectuser 03-03-2007 10:56 PM

I was trying to change the display of the thread title in the forum display and accomplished that. I updated it by updating the product-lv_vb_eventforums_v3_3.xml file and installing it with "Allow Overwrite" set to Yes.

After my update, the thread title is showing up twice in the thread view (if that's the right term). I've attached an image of what is going on.

If anyone can tell me what went wrong and how to fix it, I would certainly appreciate it. I tested this change on my test forum, but didn't notice the duplication until I had applied it to my live forum. :o

thincom2000 03-04-2007 02:12 AM

Check your postbit_display_start hook for Hide the first post on Event Threads. It seems like the first post is not being hidden, and since it's still the firstpostid, would be still be using the showeventsbit template over the regular postbit.

objectuser 03-04-2007 02:55 AM

Quote:

Originally Posted by thincom2000 (Post 1195214)
Check your postbit_display_start hook for Hide the first post on Event Threads. It seems like the first post is not being hidden, and since it's still the firstpostid, would be still be using the showeventsbit template over the regular postbit.

Thanks for the response.

Okay, I found the hook and it's active. I tried rolling back the software in my test forum and it still shows double.

Looking at the content now.

Update: it's definitely getting in that inner condition that does: $this->templatename = '';
Update 2: somehow, Display Event Details on Thread Page/showthread_complete got turned on, while the event attendance/event forum integration actually turns it off. So I'm not sure how I messed it up, but it seems fine now.

thincom2000, thanks for getting me started on this.

thincom2000 03-04-2007 06:04 PM

You had two copies of the showthread_complete plugin? I thought the integration removes the original too, but I'm glad you solved it.

dizzy100 03-07-2007 07:15 AM

I love this hack and it works perfectly.

However can i set the date different in the forum message events and upcoming events ? Im from the UK and we use dd/mm/yy instead of mm/dd/yy and its causing some users confusion. Better still would be to use real dates say 23 March 2007 etc

Also is there a way to clean up the upcoming events block. We likely have 10 or so events in a day and it looks messy all being on the one line.

Any help on either of these appreciated.

Quantnet 03-07-2007 08:33 AM

Quote:

Originally Posted by thincom2000 (Post 1185780)
I think that's everything I did. In order to add attachments at the same time you create the event a LOT more edits were necessary and I didn't have the patience for it. Adding them after creation was good enough for me.

Can i have a demo ? I'm thinking of adding this too.
thanks

Quantnet 03-08-2007 04:14 AM

This event mod requires almost 60 queries from the server. Not sure why

Here is a link, look at the bottom where I have vbMicrostat installed
http://www.quantnet.org/forum/showthread.php?t=955

ravencr 03-08-2007 05:42 AM

Does anyone know if I could incorporate this hack with the form hack here:

https://vborg.vbsupport.ru/showthread.php?t=126676

Instead of people being able to post whatever they wanted in the new event, I'd like to use a form instead so every event is uniform and allows people to search for certain characteristics within an event.

Chris

thincom2000 03-09-2007 06:30 PM

Quote:

Originally Posted by Quantnet.org (Post 1198538)
This event mod requires almost 60 queries from the server. Not sure why

I noticed this also. To get around it, I ended up re-coding & hardcoding a number of the plugins. Now my showthread queries are 14. I still need to work on forumdisplay which is still about 7 queries above normal (right now 24 as opposed to 17).

Quantnet 03-10-2007 06:50 AM

Quote:

Originally Posted by thincom2000 (Post 1199679)
I noticed this also. To get around it, I ended up re-coding & hardcoding a number of the plugins. Now my showthread queries are 14. I still need to work on forumdisplay which is still about 7 queries above normal (right now 24 as opposed to 17).

Awesome, after i disable this and the related mod, i end up have 14 queries. It seems they call lot of duplicate rsvp plugin,

I think the author need to optimize his code.
please share your fix.
thanks

Lionel 03-10-2007 07:28 AM

Quote:

Originally Posted by Quantnet.org (Post 1200009)
Awesome, after i disable this and the related mod, i end up have 14 queries. It seems they call lot of duplicate rsvp plugin,

I think the author need to optimize his code.
please share your fix.
thanks

which is the related mod? Are you referring to similar threads?

Quantnet 03-10-2007 11:49 AM

this and Farcaster's Event Attendance & Event Forums Add-On. Not sure which one calls the rsvp plugin but they are related and you have to disable both of them,

bugzy 03-13-2007 07:25 PM

Quote:

Originally Posted by :Judge: (Post 1078989)
Yep I have the same problem here I am unable to delete from the forum area.

When I try delete from Thread Options I recieve the following error:
Invalid Event specified. If you followed a valid link, please notify the administrator

When I try to delete from forum display "Moderation" I recieve this following error (Please note with soft or Physically remove)
Code:

Fatal error: Existing data passed is not an array
Called set_existing in /home/cecilcountyx.com/forums/includes/class_dm_threadpost.php(1289) : eval()'d code on line 32
Called eval in /home/cecilcountyx.com/forums/includes/class_dm_threadpost.php on line 1289
Called delete in /home/cecilcountyx.com/forums/inlinemod.php on line 662
in /includes/class_dm.php on line 235


anyone figure out why deleting doesnt work

dotJoel 03-17-2007 08:31 PM

Anyone know if this is limited to one forum ? Or can I set the IDs to multiple forums ?

Regards,

Joel


All times are GMT. The time now is 12:49 PM.

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.02203 seconds
  • Memory Usage 1,899KB
  • 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
  • (19)bbcode_code_printable
  • (4)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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