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
Accepted Answer Pending Moderation
0
Votes
Undo
I think thats too much work for now, maybe i will look at this topic later again. For now I have use different colours even if it doesn't really look good. Thanks again for your help!
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
looking at the code it appears that you'd have to modify some fundamental queries to get the category name. Probably not the way to learn PHP!
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks for the answer. I already tried to modify the code the way it is described here but I couldn't find out the right variable. As far as I'm still a starter with php I tried to add $category but that doesn't work out. It always return a blank which is normal I think because $category is not defined. But what is the right variable? Thank you for your patience.
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
you'll have to follow Andy's lead and modify the code.
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hi All,

First of all, great component. Still have one problem. It was already mentioned on the first side of this thread. Is it possible to display the category of the event in the tooltip? Using different colours for the categorys is not really an option because of my template. Thanks in advance!
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Alan, thank you so much. That works wonderfully. And please pardon my ignorance of php...it´s on the list of languages to learn more about.

I am very grateful for all your help and your patience.

All the best

Andy.
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
The '.' (period) is the concatenation operator. You must use it between *each* element you want to connect. So, in your code, add another one after the '<br/>':

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


you can also get rid of the one at the end of the line (before the semicolon). The one at the front of the line is probably extra as well, but I can't be sure without seeing the line of code preceding.
  1. more than a month ago
  2. Help (jevents 1.4 for 1.0.x)
  3. # 7
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. # 8
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. # 9
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. # 10
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. # 11
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. # 12
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. # 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 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. # 15
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. # 16
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. # 17
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. # 18
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. # 19
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. # 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.