jemproject / JEM-Project

JEM - an Event Manager for Joomla
https://www.joomlaeventmanager.net
GNU General Public License v3.0
25 stars 37 forks source link

Link to contact ? #101

Closed jojo12 closed 11 years ago

jojo12 commented 11 years ago

Hi, I've seen this new contact. But it's only the name no link to this contact nor contactform, even when I use cb no link to the profile. Is this an error? Is this possible to insert? Would be nice. With link to the contact it's possible that even not joomla registered persons can easy contact for attending events.

JKoelman commented 11 years ago

@jojo12 it's totally correct that you're seeing only a name for now.. actually it's email, name, telephone. have to sort out what the minimal info should be for the contact (detail view). And indeed it would be nice to add a contactform to it or a link for full details. perhaps the emailform thing first. // just have to find out how to do that :).

jojo12 commented 11 years ago

@JKoelman
If the contactperson is a joomla contact, then would be the best to link to that. Because there is just a contactform. If not (I don't now if this is often, then would be fine to insert a link which opens an email to this person) I think this is possilbe with jce.

jojo12 commented 11 years ago

wrong button, persists open

JKoelman commented 11 years ago

did take a quick look and it seems the form can be called with index.php?option=com_contact&view=contact&id=, but maybe it's nicer to make/integrate it with a view of JEM.

JKoelman commented 11 years ago

@jojo12 will take a look at this issue this weekend. As you are using CB i'll try that too, something like link to profile when CB is enabled, and will take a look at the contactform.

JKoelman commented 11 years ago

It seems to be a bit difficult. The link for the contactform (com_contact) can easily be linked to the username and doing so it will lead to the contactform. so far no problem. But that form has a different style then the JEM component, so not that nice. // about the CB profile; a contact is not directly an user so there are some issues.

JKoelman commented 11 years ago

clipboard01 clipboard02

jojo12 commented 11 years ago

I think we are inside of joomla, so joomla contactform are ok for me (or better than none). JEM is an extension of joomla. The other way could be to link the email (like that it opens in an emailprogram but I would like to hide the emailaddress to avoid spam.

JKoelman commented 11 years ago

@jojo12 i can see the point about hiding the emailaddress // Maybe i'm thinking to difficult but perhaps it's possible to create our own mailform so it's looking fine in the style. So not a link to the contactform (with al lot of details of the contact) but just a basic mailform where you don't see the mailadress.

Will try an ajax popup-form like: http://www.freshdesignweb.com/15example-ajax-contact-form-with-php-tutorials.html

jojo12 commented 11 years ago

not to forget (better a bad contact form than none)

JKoelman commented 11 years ago

a contactform would indeed be nice :)

jojo12 commented 11 years ago

Could the contactperson be as default the person which was submitting the event? If you want an other contact you can choose.

JKoelman commented 11 years ago

Think that's going to be a hard one,. // just thinking: you can specify a name of the creator/submitter easily, but it's something seperate as the contacts. we can retrieve the emailadress too, but more info has to be done by the contacts. you can add a linked user to the contacts but think we need an extra check or something to it (not sure how to at the moment)

diesl commented 11 years ago

Just my 2 cents here:

If the contactperson is a joomla contact, then would be the best to link to that. Because there is just a contactform.

Totally agree. Why invent the wheel twice? The contact page is just the perfect solution.

But that form has a different style then the JEM component, so not that nice.

I think JEM has to adapt more to the Joomla style, that's the problem. Not the other way round ;)

I think we are inside of joomla, so joomla contactform are ok for me (or better than none). JEM is an extension of joomla. The other way could be to link the email (like that it opens in an emailprogram but I would like to hide the emailaddress to avoid spam.

Email addresses are protected by JS, but another point is: Some people don't want their Joomla user email address to be visible to the world. The contact email address can be a different one.

JKoelman commented 11 years ago

@Diesl you're right JEM should adapt more to the Joomla style..

jojo12 commented 11 years ago

Why is this: in earlier version I exchanged in view/details/tmp/default.php: contact_exch

like that I had a link to the contact

now I tried to do the same. But now I don't get this link. What's wrong?

JKoelman commented 11 years ago

i think you need a href statement to create a link,. not sure what you're trying to do but should it point to a profile or something like that?.

jojo12 commented 11 years ago

sorry it's the problem that I don't know how to show here code. see in previous post the image

I want to link to joomla contact (form)

(it does't need it, but if someone like me wants it, he would know how to do that). For me it's enough the joomla contact form, even if it's not the same design.

diesl commented 11 years ago

sorry it's the problem that I don't know how to show here code.

Take a look at the link right above the comments field that says Comments are parsed with GitHub Flavored Markdown

I don't get your problem with the link, too, by the way.

jojo12 commented 11 years ago

@diesl you write: "Take a look at the link right above the comments field that says Comments are parsed with GitHub Flavored Markdown" I don't understand or find something like that. Perhaps it's my lack of english.

I would like to have a link from contact in details to the joomla contactform. some weeks ago I made it like written and then I had this. Now I tried again with this (I mean the same) and now I have only the name of the contact (and phone number if I want)

For me (and perhaps some others too) it would be nice to have this link. But I think, this is not for integration in the 1.9.1 package, this can be a hack, we can describe in forum.

I hope, you can understand now, thanks ;-)

jojo12 commented 11 years ago

@JKoelman: could it be that this is the same problem like #273 ?

JKoelman commented 11 years ago

@jojo12 it's a different issue as that one had to with an xml file.. In your case it's the front but will take a look.

// Something else: am also thinking of adding the column email-address in the attendee-view (front) back but with a switch option in the menu-link.

JKoelman commented 11 years ago

did try it and this code seems to be working correctly

<?php // echo $this->escape($this->row->conname); echo "<a href='".JRoute::_('index.php?option=com_contact&view=contact&id='.$this->row->conid)."'>".$this->escape($this->row->conname)."</a>"; ?>

if it ain't working then check if there is a contactid in the events-table and if the contact does exist.

JKoelman commented 11 years ago

(whoops ticked the wrong button)