By Gabriel Michael on Monday, 16 December 2013
Posted in General Issues
Replies 14
Likes 0
Views 578
Votes 0
Hi,

I'm looking at replacing an ungly Web Wiz forum to the sexy EasyDiscuss and it almost ticks all the boxes. What I need (and I'm hoping that this exists already) is a location field under the name, different to the current Location Tab - to quickly identify where users are from. ( See attachment )

I understand this might be a substantial change to the layout and the backend as well. But it doesn't hurt to ask. Hopefully more people will find this useful.
Hello Gabriel,

You're welcome
I have modified this 2 file
JoomlaFolder\components\com_easydiscuss\themes\YourThemeFile\author.name.php
[b]LINE 25


<?php if( $post->user->nickname) { echo $post->user->nickname; } ?>


AND

JoomlaFolder/templates/rt_paradigm/css/rt_paradigm-custom.css[/b]
THE CODE ADDED AT BOTTOM

div#discuss-wrapper .discuss-user .discuss-user-name {
max-height: 100% !important;
}


Hmm, actually that is not possible to change the color, because the name field actually is using same CSS class with the "Location" -> http://screencast.com/t/92eeho15n
Hope you understand.
·
Wednesday, 15 January 2014 01:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gabriel,

Thanks for interesting our Easydiscuss product.
Yes, actually it is possible to hack it, but there got a word limit to show out properly.
You can manually hack this code from your file JoomlaFolder\components\com_easydiscuss\themes\YourThemeFile\author.name.php

<?php echo $post->getOwner()->name; ?>
<?php } ?>

<?php } ?>

Replace with

<?php echo $post->getOwner()->name; ?>
<?php } ?>

<?php if( $post->user->location ) { echo $post->user->location; } ?>
<?php } ?>

Hope this help.
·
Monday, 16 December 2013 20:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Arlex thanks for taking time to answer my question.

I'm not a wiz with the code but from what I understand it will display the user location from the Location tab under your profile.
That work perfectly if the location would be just the city. But if the user sets the location as a full address will it display the whole address?

As an example under the Location tab the address could look something like: 7 Ashfield Road, Salisbury, Wiltshire SP2, UK - and that would be an overkill.

My actual thought was to have a separate text field where user could type the city manually when they edit their profile - perhaps under the biography tab??

As a side note (and thinking that might be too much) what is the Nickname used for and could I change that into the field I'm looking for?
·
Tuesday, 17 December 2013 02:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gabriel,

Sorry for late reply to this,
Yes, you're right, example : if the user address is " 7 Ashfield Road, Salisbury, Wiltshire SP2, ", then it will display a few word "7 Ashfield" in that area, because that field have a limited space. Actually the Easydiscuss do not have this option to let user manually to fill in the location in their biography tab, because the search current location engine already replaced, so the user no need to manually type their location their profile.

Based on your suggestion, you can do that the nick name field replace to location, but that nick name field will make another user misleading on this, because they're do not know that location field actually is nick name. And that nick name actually the purpose is validate the user profile field and some of the checking from database.

<?php if( $post->user->nickname) { echo $post->user->nickname; } ?>

If you tried above code in your site hit some of the error that mean that is not work perfectly.
Hope this help.
·
Tuesday, 17 December 2013 11:48
·
0 Likes
·
0 Votes
·
0 Comments
·
This didn't work.

and I don't see why we need this field and where else is it used...
·
Monday, 13 January 2014 23:46
·
0 Likes
·
0 Votes
·
0 Comments
·
i like your idea,
would be a nice feature for ED & EB too
·
Tuesday, 14 January 2014 00:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gabriel,

Sorry for late reply to this,
I provided that code is just replace the parameter to show nickname field -> http://screencast.com/t/K8n2FuwUHJh | http://screencast.com/t/Yiw6ZdxI45Ii
I have mentioned of my previous reply, that nick name actually the purpose is validate the user profile field and some of the checking from database.
And we also not encourage you to change this.

===========================================================================================================================
Hello n00bster ,

Thanks for heading up of this, actually we're not consider of this, because some of the user also have their own privacy and not all the location name is look like a few character can display properly in the small space of user column. Hope you understand.
·
Tuesday, 14 January 2014 14:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Sorry I did try but for some reason it didn't work. I shall try again. But still if you do not recommend this change perhaps I should not do it.
As awesome as the extension is - without this feature, I would not use it, as it will create confusion amongst our network.

Do you guys do custom work and is this something that you would consider undertaking? Or perhaps it's a feature that you might implement in future versions ( in the next 4 months) ?
·
Tuesday, 14 January 2014 18:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gabriel,

Is it possible provide us with your Joomla backend and FTP access so we can try to replace the code and see how it goes?
Actually you would like your user column to be something like this right ? see my screenshot : http://screencast.com/t/Yiw6ZdxI45Ii
We normally do not provide customizations as outlined in our support policy http://stackideas.com/support .
But we will consider with this idea.
·
Tuesday, 14 January 2014 22:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes Arlex that's exactly what I need.
I've added the login info.

Thank you so much Arlex for this.
·
Tuesday, 14 January 2014 22:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gabriel,

The reason why you replace that code in your file that result doesn't work is because the CSS code max-height : 38px; for control if some of user name is too long then it won't display full name in that column , now i help you set to max-height : 100% !important;, so you can see the result from your site now -> http://screencast.com/t/y3rT5EHGuD
Is it the column style not good ?
·
Wednesday, 15 January 2014 00:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Arlex that is brilliant. Thank you so much.

Can you please tell me which file you've modified so I can make a backup in case a future update might overwrite the file?

I don't want to take any more of your time you've already gone beyond the call of duty, but if you could tell me if it's possible to style the City line with a different colour so it stands out.

Again thank you so much!
·
Wednesday, 15 January 2014 00:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Arlex!

This small hack allows me to continue using this amazing extension. Now I don't have to ask for a refund!
·
Wednesday, 15 January 2014 02:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Gabriel,

You're welcome, I'm apologize that can't make it full satisfactory for you.
Have a nice day.
·
Wednesday, 15 January 2014 11:11
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post