vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Calendar Enhancements - Calendar Search and Download (https://vborg.vbsupport.ru/showthread.php?t=238771)

Turbe 03-29-2010 05:05 PM

You have two v1.06b in your changelog ;)

gorman 03-30-2010 03:44 PM

How can I disable e-mail showing in the pdf and icalendar downloads? I'm using the send mail feature of vbulletin and don't want the email address of users clearly shown.

Thanks for the awesome mod, just what I was looking for.

HCGB 03-30-2010 05:50 PM

Quote:

Originally Posted by gorman (Post 2012924)
How can I disable e-mail showing in the pdf and icalendar downloads? I'm using the send mail feature of vbulletin and don't want the email address of users clearly shown.

If the event poster has email disabled in their settings then they won't show in the PDF or iCal files.

I've also modified the code (download v1.07b again) to check the email sending permissions of the current user - if they are not allowed to send email then it won't appear in the files.

gorman 03-31-2010 03:20 PM

Thanks for the answer. But I'm using the mail sender inside vB because I do not want to publish user's email in the clear. The PDF does just that.

Even if users accept emails, on my forums they are sent emails by the internal module. Other users do not have access to their addresses (unless the person replies to the e-mail, but that's fine obviously).

HCGB 03-31-2010 04:56 PM

Quote:

Originally Posted by gorman (Post 2013526)
Thanks for the answer. But I'm using the mail sender inside vB because I do not want to publish user's email in the clear. The PDF does just that.

Even if users accept emails, on my forums they are sent emails by the internal module. Other users do not have access to their addresses (unless the person replies to the e-mail, but that's fine obviously).

Extracting text from a PDF is a torturous process - it's a fairly secure format. If you want to disable email addresses completely from PDF's then you will need to edit the PHP file calsearch.php

Around line 484 delete the red text:
Code:

$data[] = array(htmlspecialchars_uni(strip_bbcode(fetch_trimmed_title(strip_quotes($event['title']), 100), false, true)) . ($recurint ? " ($period - $recurint )" : ''),
str_replace(array("\n","\r"), ' ' ,htmlspecialchars_uni(strip_bbcode(fetch_trimmed_title(strip_quotes($event['event']), 600), false, true))),
date($vbulletin->options['dateformat'],$event['dateline_from']) . ($event['dateline_to']=='' ? '' : ' - ' . date($vbulletin->options['dateformat'],$event['dateline_to'])),
(!empty($event['email'])) ? $event['email'] : ''
 );

OR - if you want to disable PDF downloads altogether then, rather than edit the PHP file, edit the calsearch_result template and delete the red line:
Code:

<span style="float:right;">
{vb:rawphrase save}:&nbsp;
<input type="submit" class="button" align="right" name="do" value="i{vb:rawphrase calendar}" tabindex="7" />
<input type="submit" class="button" align="right" name="do" value="PDF {vb:rawphrase calendar}" tabindex="8" />
</span>


philswallow 04-02-2010 01:31 PM

Great, I think this will be useful.

claystation 04-02-2010 05:00 PM

Any thought on having the start date today's date by the end of the year their are going to be a lot of events display on calsearch.php that already past.

HCGB 04-03-2010 08:28 AM

Quote:

Originally Posted by claystation (Post 2014730)
Any thought on having the start date today's date by the end of the year their are going to be a lot of events display on calsearch.php that already past.

Good point - I've added a month selection option to the start and end year which should solve this (or at least reduce it by 12 :)).

teflonchest 04-14-2010 09:26 PM

will there be support for 4.0.3? got this:


This product is not compatible with version 4.0.3 of vBulletin. (Compatible starting with 4.0.2 / Incompatible with 4.0.3 and greater)


Edit: changed the xml to 4.0.4max and got this error when trying to search events:


Database error in vBulletin 4.0.3:

Invalid SQL:

SELECT
event.title,eventid,event,event.dateline,event.rec urring, event.recuroption,
user.username,user.userid,
calendar.title as caltitle,calendar.calendarid,
IF(event.dst<>'0', event.dateline_from + ( * 3600), event.dateline_from + ( * 3600)) as dateline_from,
IF(event.dateline_to<>'0',
IF(event.dst<>'0', event.dateline_to + ( * 3600), event.dateline_to + ( * 3600))
,'0')
AS dateline_to,
IF(
('1') AND
(user.options & '256')
,user.email, '') AS email
FROM
event AS event
LEFT JOIN user AS user ON (event.userid = user.userid)
LEFT JOIN calendar AS calendar ON (calendar.calendarid = event.calendarid)
WHERE
event.visible = 1
AND event.calendarid IN ('1')
AND(
(
((event.dateline_from <= 2145852000) AND (event.dateline_from >= 1270098000))
OR ((event.dateline_to <= 2145852000) AND (event.dateline_to >= 1270098000))
)
OR
( event.recurring<>0
AND ((event.dateline_to >= 1270098000) AND (event.dateline_from <= 2145852000))
)
)

ORDER BY recurring DESC, dateline_from ASC
LIMIT 0, 25;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* 3600), event.dateline_from + ( * 3600)) as dateline_from,
IF(event.datelin' at line 5
Error Number : 1064
Request Date : Wednesday, April 14th 2010 @ 05:35:13 PM
Error Date : Wednesday, April 14th 2010 @ 05:35:13 PM
Script :
Referrer :
IP Address :
Username : admin
Classname : vB_Database
MySQL Version : 5.0.89-community

claystation 04-14-2010 09:43 PM

1.08b is working for me on 4.03 it was installed though on 4.02. and still works after the upgrade.


All times are GMT. The time now is 04:29 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.01088 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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