Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
Add Videos & Photos to Calendar Events Linked to Threads Details »»
Add Videos & Photos to Calendar Events Linked to Threads
Version: 1.00, by schlottkej schlottkej is offline
Developer Last Online: Jun 2011 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.x Rating:
Released: 07-31-2010 Last Update: Never Installs: 4
DB Changes Uses Plugins Template Edits Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

I couldn't come up with a short, descriptive name for this that was catchy but here is what this does:

The end user can link events from the calendar to an active thread or auto-generate a new thread and then add videos from Youtube and photos from your albums.

The plugin also provides a sponsor box that can be edited to include adsense or other advertisements.

Notes:
  • I am unable to get screen shots because I no longer use this product, but I thought someone would be able to help with that.
  • This code can be reused and I hope it is.

Important vBulletin 4.0 Notice
I am giving this code to the community and would like someone to convert it to 4.0.x

Installation:
1) File Edits:
-----------

In file admincp/admincalendar.php
Find:
print_yes_no_row($vbphrase['allow_smilies'], 'options[allowsmilies]', $calendar['allowsmilies']);
Add after:
print_forum_chooser($vbphrase['autothreadforumid'], 'calendar[autothreadforumid]', $calendar['autothreadforumid'], $vbphrase['none']);




2) Template edits:
---------------

calendar_showeventsbit
Find:
<div>$eventinfo[event]</div>
Replace with:
<table style="width:100%;" cellpadding="$stylevar[cellpadding]" border="0">
<tr>
<td valign="top" colspan="2" style="width:50%;">$eventinfo[event]</td>
<td valign="top" colspan="2" style="width:50%;">$results</td>
<td valign="top" colspan="2"><if condition="$results || $videos || $photos"><div style="width:200px;height:120px;border:1px solid #000000;">Sponsor Box...</div></if></td>
</tr>
<tr>
<td valign="top" colspan="3" style="width:50%;">$videos</td>
<td valign="top" colspan="3" style="width:50%;">$photos</td>
</tr>
</table>
Find:
</form>
Add after:
$discussion
Find:
<td class="tcat">$eventinfo[title]</td>
Replace with:
<td class="tcat"><if condition="THIS_SCRIPT=='showthread'">$vbphrase[linked_event]: </if><a href="calendar.php?do=getinfo&e=$eventinfo[eventid]">$eventinfo[title]</a></td>


calendar_edit
Find:
$disablesmiliesoption
Add after:
<label for="cb_makethread"><input type="checkbox" name="makethread" value="1" id="cb_makethread" tabindex="1" checked="checked" />$vbphrase[auto_generate_discussion_thread]</label>

album_picture_upload and album_edit
Find the last occurrence of:
<input type="hidden" name="s" value="$session[sessionhash]" />
Add after:
<input type="hidden" name="eventid" value="$eventid" />

SHOWTHREAD
Find:
$poll
Add after:
$event

newthread
Find:
<input type="hidden" name="posthash" value="$posthash" />
Add after:
<input type="hidden" name="eventid" value="$eventid" />


3) Upload kce-newthread.php to forums/includes/cron

Download Now

File Type: xml product-krofh_calendarevents-secondary.xml (63.0 KB, 24 views)
File Type: php kce-newthread.php (1.8 KB, 26 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-04-2010, 12:14 AM
BigJohnny's Avatar
BigJohnny BigJohnny is offline
 
Join Date: Jun 2006
Location: Canada
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no one has used this? I'm kind of interested but I still don't fully understand what it does.
Reply With Quote
  #3  
Old 10-04-2010, 07:01 AM
nitl300 nitl300 is offline
 
Join Date: Aug 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ty
Reply With Quote
  #4  
Old 10-22-2010, 03:12 AM
realwx realwx is offline
 
Join Date: Jun 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you're missing a file:

Quote:
Warning: require_once([path]/includes/functions_kce.php) [function.require-once]: failed to open stream: No such file or directory in [path]/calendar.php(1020) : eval()'d code on line 4

Fatal error: require_once() [function.require]: Failed opening required '/forum/includes/functions_kce.php' (include_path='.:/lsphp5/lib/php') in /forum/calendar.php(1020) : eval()'d code on line 4
Reply With Quote
  #5  
Old 11-29-2010, 10:21 PM
Uberguilds Uberguilds is offline
 
Join Date: Jun 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wru

/forum/includes/functions_kce.php
Reply With Quote
  #6  
Old 02-18-2011, 10:01 PM
Antidepresiv Antidepresiv is offline
 
Join Date: Dec 2010
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

schlottkej , this mod would practicly be awesome, if it would be available for 4.x, so i will post a req to get this mode recoded for 4.x, and this way, i'm askind any1 who can do this, please do it, because this mod recoded would serve so many communities, that i cant even imagine a community, that wouldn't use it. Thanks again.
Reply With Quote
Reply

Thread Tools

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


All times are GMT. The time now is 11:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04897 seconds
  • Memory Usage 2,263KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (2)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete