1. chipmonger
  2. Help (jevents 1.4 for 1.0.x)
  3. Tuesday, 04 March 2008
Currently the tooltip displays the Event, From Date, To Date, Time, and Single Event/Multiday Event. How can I edit the text displayed in the tooltip? I would like to change the Single Event/Multiday Event line and instead display the Location field.

Thanks,

Ken McCord
geraint
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
You need to modify a file called components/com_events/com_calendar_cell.php
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
i try to change this on events_calendar_cell.php. i try to add contact_info in my tooltip but it doesn't work. can please tell me what's wrong?

here is my code

// The one overlay popup window defined for multi-day events.  Any number of different overlay windows
// can be defined here and used according to the event's repeat type, length, whatever. Note that the
// definition of the overlib function call arguments is ( html_window_contents, extra optional paramenters ... )
// 'extra parameters' includes things like window positioning, display delays, window caption, etc.
// Documentation on the javascript overlib library can be found at: http://www.bosrup.com/web/overlib/
// or here for additional plugins (like shadow): http://overlib.boughner.us/ [mic]

// check this speeds up that thing [mic]
if($publish_inform_title ){
$tmp_time_info = '';
if( $stop_publish == $start_publish ){
if($start_time != $stop_time){
$tmp_time_info = '<br />' . $start_time . ' - ' . $stop_time;
}
$publish_inform_overlay = '<table border="0" height="100%">'
. '<tr><td nowrap="nowrap">' . $start_date
. $tmp_time_info
;
} else {
if($start_time != $stop_time){
$tmp_time_info = '<br /><b>' . _CAL_LANG_TIME . ':</b>' . $start_time . '-' . $stop_time;
}
$publish_inform_overlay = '<table border="0" width="100%" height="100%">'
. '<tr><td><b>' . _CAL_LANG_FROM . ':</b>' . $start_date . ''
. '<br /><b>' . _CAL_LANG_TO . ':</b>' . $stop_date
. $tmp_time_info. $contact_info ;
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
replace [color=#FF0000:2njqkks0]$contact_info[/color:2njqkks0] by [color=#00BF00:2njqkks0]$rows[$i]->contact_info[/color:2njqkks0]
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
similarly, can you tell me in which variable the location info is stored?? thanks..
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
$rows[$i]->adresse_info
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
thanks.. it worked!!
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Hi

Can anyone tell me how to display the category in the tooltip ?
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
The variable name "adresse_info" does not work for me. Is it spelled correctly?

Many thanks for a wonderful component.

Andy
Science File
http://www.sciencefile.org
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Does anyone have an idea how to replace rows with the end date and the time of the event with the text from the description?

Thanks in advance.

Rali
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
@andy - yes the name is spelled correctly - what does your code look like?

@rali - what have you tried? the code is fairly straight forward, it would be helpful to know where you're hung up.
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
Alan - many thanks for your reply. I must have been having some sort of senior moment, because it's working fine now!! :D

However, I have another couple of questions. How would I put the location info on a new line in the tooltip, possibly with the preceding caption "Location:" in bold like the other field titles? I have tried the php \n (newline) character but it seems to be being ignored. At the moment the tooltip is concatenating the location info straight after the time info without a space, which looks awful.

And how can I add the location info to the tooltip for *all* events, not just the multiday ones?

I should be very grateful for any help with these questions.

Kind regards

Andy
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 11
Accepted Answer Pending Moderation
0
Votes
Undo
remember you're generating HTML with your PHP. HMTL ignores newlines. if you want a line break you need to output a <br/> tag.

regarding your second question - see the comments starting on line 124 of events_calendar_cell.php. That should get you started.
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 12
Accepted Answer Pending Moderation
0
Votes
Undo
Many thanks for all your help Alan. I shall look into it.

Kind regards

Andy
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 13
Accepted Answer Pending Moderation
0
Votes
Undo
I posted a solution that worked for me (Joomla 1.0.x with v1.4.2) below. You can use this for Extra Info, Contact & Location and follow principle for others.

[url:19q2h40n]http://www.jevents.net/forum/viewtopic.php?f=6&;t=1006&p=2974&hilit=arfon#p2974[/url:19q2h40n]

Best regards
Arfon
North Wales
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 14
Accepted Answer Pending Moderation
0
Votes
Undo
Many thanks Arfon....I shall look into that.

Kind regards

Andy.
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 15
Accepted Answer Pending Moderation
0
Votes
Undo
OK....having displayed the location info in the tooltip with:

. $tmp_time_info. $rows[$i]->adresse_info;

...can anybody help me out by telling me exactly how I can insert a line break in this line of code to make the location info appear on a new line in the tooltip? Apologies for this, but php is not my first language.

Thanks a lot

Andy
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 16
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Andy

I'm no php expert but.....

You know where I have something like . '<hr />'

Then if you use . '<br />'

you should get a new line and you can use multiples if you wish i.e. . '<br />'. '<br />'. '<br />'

Cheers
Arfon
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 17
Accepted Answer Pending Moderation
0
Votes
Undo
Cheers Arfon! I will give that a whirl.....

Many thanks

Andy.
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 18
Accepted Answer Pending Moderation
0
Votes
Undo
right. To be clear concatenate the '<br/>' to your line of code (or where ever you want the line break)


. $tmp_time_info. $rows[$i]->adresse_info . '<br/>';
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 19
Accepted Answer Pending Moderation
0
Votes
Undo
Ok, thanks Alan.

What I want to do is this:

. $tmp_time_info. '<br/>' $rows[$i]->adresse_info . ;

in other words put the break between the time info and the location info, to make the latter start on a new line......

...but I am getting errors.... <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very Sad" /><!-- s:cry: -->

Regards

Andy
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 20
  • Page :
  • 1
  • 2


There are no replies made for this post yet.
Be one of the first to reply to this post!

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.