![]() |
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:
FILE EDIT: calendar.php Find: PHP Code:
PHP Code:
TEMPLATE EDITS: editpost Find: Code:
<if condition="$show['deletepostoption']"> Code:
<if condition="$attachments_only"><div style="visibility: hidden; position: absolute"></if> Find: Code:
$postpreview Code:
<if condition="$attachments_only"></div></if> Find: Code:
<form name="vbform" action="editpost.php?do=updatepost&p=$postid" method="post"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])"</if>> 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"> Code:
<if condition="$attachments_only"></div></if> Find: Code:
<div class="panel"> Code:
<if condition="$attachments_only"><div style="visibility: hidden; position: absolute"></if> Find: Code:
$attachmentoption Code:
<if condition="$attachments_only"></div></if> Find: Code:
</div> Code:
<if condition="$attachments_only"></div></if> TEMPLATE EDITS: calendar_showeventsbit Find: Code:
<div>$eventinfo[event]</div> Code:
<if condition="$show['attachments']"> Find: Code:
<if condition="$show['caneditevent']"> Code:
<if condition="$show['caneditattach']"> 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. |
Quote:
|
Quote:
the New Events wont show up after following the instructions |
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? |
Quote:
|
Quote:
PHP Code:
|
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 |
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.
|
Quote:
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. |
You had two copies of the showthread_complete plugin? I thought the integration removes the original too, but I'm glad you solved it.
|
All times are GMT. The time now is 01:58 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|