- Posts: 11
- Thank you received: 3
Kunena 6.1.0 Released
The Kunena team has announce the arrival of Kunena 6.1.0 [K 6.1.0] which is now available for download as a native Joomla extension for J! 4.3.x & J! 4.2.x. This version addresses most of the issues that were discovered in K 6.0 and issues discovered during the development stages of K 6.0
The information given in this category is intended to guide users who want to use JomSocial with Kunena and, mostly, was written by Kunena users. The information here is not necessarily accurate, up-to-date nor is it intended to replace the support given by the developers of JomSocial.
If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.
Question Jomsocial "guest male avatar" points to the wrong directory path (but femaie avatar path is correct)
I have a problem in displaying JomSocial's default male guest avatar within the Kunena forums.
The default female guest avatar displays fine by pointing to:
/components/com_community/assets/user-Female.png
The default male guest avatar does not display because its PATH is WRONG pointing to:
/home/www/html/subs/travel/components/com_community/assets/user-Male.png
(that path doesn't exist)
I don't know why the paths can be different. As mentioned, the "female" path is correct. But shouldn't the PATH should be the same for both avatars?
Does anyone know where the "male" path is stored? If it in a database table or template, I can easy change that. But I haven't had any luck finding it so far.
Any ideas?
Thanks. -- Rik
PS: The configuration report link is generating an error message.
Please Log in or Create an account to join the conversation.
whats the error on the report
Please Log in or Create an account to join the conversation.
810 wrote: plugins/kunena/kunena_community/avatar.php line +- 67
Thanks for the lead. I checked out the avatar.php file but I don't see anything that differentiates between male and female avatars. Those must be passed parameters specific to the user that are set before applying those parameters to the avatar.php file.
Would you know where the directory paths are set for each gender?
whats the error on the report
Sorry, the error I mentioned refers to the Kunena.org configuration report link at the top of this page which, when clicked on, generates an error message on the Kunena.org site indicating: "Woops. Looks like this page doesn’t exist."
Thanks. -- Rik
Please Log in or Create an account to join the conversation.
I edited the plugins/kunena/community/avatar.php file indicated above by "810" as follows:
WAS: $avatar = str_replace(JUri::root(true), '', COMMUNITY_PATH_ASSETS) . "user-Male.png";
NOW: $avatar = "http://www.[domain].com/en/components/com_community/assets/user-Male.png";
The above works. But does anyone know how to fix this other than editing the avatar.php as I did above.
Thanks. -- Rik
PS: The report function is working now ....
Database collation check: The collation of your table fields are correct
Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Disabled |
This message contains confidential informationhtaccess: Exists | PHP environment: Max execution time: 300 seconds | Max execution memory: 1512M | Max file upload: 300M
Kunena menu details:
Warning: Spoiler!
ID Name Menutype Link Path In trash 2947 Forums top view=home&defaultmenu=2948 community/forums No 2948 Index top view=category&layout=list&catid=0 community/forums/index No 2949 Recent Topics top view=topics&mode=replies community/forums/recent No 2950 New Topic top view=topic&layout=create community/forums/newtopic No 2951 No Replies top view=topics&mode=noreplies community/forums/noreplies No 2952 My Topics top view=topics&layout=user&mode=default community/forums/mylatest No 2953 Profile top view=user community/forums/profile No 2954 Help top view=misc community/forums/help No 2955 Search top view=search community/forums/search No 2957 Moderate top view=topics&layout=posts&mode=unapproved community/forums/moderate No 3055 Forum mainmenu Itemid=3288 kunena-2016-01-08 No 3288 Forum kunenamenu view=home&defaultmenu=3290 forum No 3289 Index kunenamenu view=category&layout=list forum/index No 3290 Recent Topics kunenamenu view=topics&mode=replies forum/recent No 3291 New Topic kunenamenu view=topic&layout=create forum/newtopic No 3292 No Replies kunenamenu view=topics&mode=noreplies forum/noreplies No 3293 My Topics kunenamenu view=topics&layout=user&mode=default forum/mylatest No 3294 Profile kunenamenu view=user forum/profile No 3295 Help kunenamenu view=misc forum/help No 3296 Search kunenamenu view=search forum/search No
Joomla default template details : Socialize | author: JomSocial | version: 2.0 | creationdate: Mar 12 2015
Kunena default template details : Crypsisb3 | author: Kunena Team | version: 5.0.3 | creationdate: 2016-10-23
Kunena version detailed: Kunena 5.0.3 | 2016-10-23 [ Dibatag ]
| Kunena detailed configuration:| Kunena integration settings:Warning: Spoiler!
Kunena config settings: board_offline 0 enablerss 1 threads_per_page 20 messages_per_page 6 messages_per_page_search 15 showhistory 1 historylimit 6 shownew 0 disemoticons 0 template crypsisb3 showannouncement 1 avataroncat 0 catimagepath category_images showchildcaticon 1 rtewidth 450 rteheight 300 enableforumjump 1 reportmsg 1 username 1 askemail 0 showemail 0 showuserstats 1 showkarma 0 useredit 1 useredittime 0 useredittimegrace 600 editmarkup 1 allowsubscriptions 1 subscriptionschecked 1 allowfavorites 1 maxsubject 180 maxsig 0 regonly 0 pubwrite 0 floodprotection 15 mailmod 0 mailadmin 0 captcha 0 mailfull 1 allowavatarupload 0 allowavatargallery 0 avatarquality 75 avatarsize 1024 imageheight 800 imagewidth 800 imagesize 150 filetypes txt,rtf,pdf,zip,tar.gz,tgz,tar.bz2 filesize 120 showranking 1 rankimages 1 userlist_rows 30 userlist_online 1 userlist_avatar 1 userlist_posts 1 userlist_karma 0 userlist_email 0 userlist_joindate 1 userlist_lastvisitdate 1 userlist_userhits 0 latestcategory 0 showstats 0 showwhoisonline 0 showgenstats 1 showpopuserstats 0 popusercount 5 showpopsubjectstats 0 popsubjectcount 5 showspoilertag 1 showvideotag 1 showebaytag 0 trimlongurls 0 trimlongurlsfront 40 trimlongurlsback 20 autoembedyoutube 1 autoembedebay 0 ebaylanguagecode en-us sessiontimeout 1800 highlightcode 0 rss_type topic rss_timelimit month rss_limit 100 rss_included_categories rss_excluded_categories rss_specification rss2.0 rss_allow_html 1 rss_author_format name rss_author_in_title 1 rss_word_count 0 rss_old_titles 1 rss_cache 900 defaultpage recent default_sort asc sef 1 showimgforguest 1 showfileforguest 1 pollnboptions 4 pollallowvoteone 1 pollenabled 1 poppollscount 5 showpoppollstats 1 polltimebtvotes 00:15:00 pollnbvotesbyuser 100 pollresultsuserslist 1 maxpersotext 50 ordering_system replyid post_dateformat ago post_dateformat_hover datetime hide_ip 1 imagetypes jpg,jpeg,gif,png checkmimetypes 1 imagemimetypes image/jpeg,image/jpg,image/gif,image/png imagequality 50 thumbheight 32 thumbwidth 32 hideuserprofileinfo put_empty boxghostmessage 0 userdeletetmessage 0 latestcategory_in 1 topicicons 0 debug 0 catsautosubscribed 0 showbannedreason 1 showthankyou 1 showpopthankyoustats 1 popthankscount 5 mod_see_deleted 0 bbcode_img_secure text listcat_show_moderators 0 lightbox 1 show_list_time 720 show_session_type 0 show_session_starttime 0 userlist_allowed 1 userlist_count_users 1 enable_threaded_layouts 0 category_subscriptions post topic_subscriptions every pubprofile 1 thankyou_max 10 email_recipient_count 0 email_recipient_privacy bcc captcha_post_limit 0 image_upload registered file_upload registered topic_layout flat time_to_create_page 1 show_imgfiles_manage_profile 1 hold_newusers_posts 10 hold_guest_posts 1 attachment_limit 8 pickup_category 0 article_display intro send_emails 1 fallback_english 1 cache 1 cache_time 180 iptracking 1 rss_feedburner_url autolink 1 access_component 0 statslink_allowed 0 superadmin_userlist 0 legacy_urls 0 attachment_protection 0 categoryicons 1 avatarresizemethod 1 avatarcrop 0 user_report 1 searchtime 365 teaser 0 ebay_language 0 twitter_consumer_key twitter_consumer_secret allow_change_subject 1 max_links 6 read_only 0 ratingenabled 0 url_subject_topic 0 log_moderation 0 attach_start 0 attach_end 14 google_map_api_key attachment_utf8 1 autoembedsoundcloud 1 emailheader /media/kunena/email/hero-wide.png user_status 1 keywords 0 userkeywords 0 userlist_name 0 usernamechange 0 version_check 1 | Joomla! detailed language files installed:Warning: Spoiler!Kunena - AlphaUserPoints Disabled
Kunena - AltaUserPoints Disabled
Kunena - Community Builder Disabled
Kunena - Easyblog Disabled
Kunena - Easyprofile Disabled
Kunena - Easysocial Disabled
Kunena - Gravatar Disabled
Kunena - JomSocial Enabled: access=1 login=1 activity=1 avatar=1 profile=1 private=1 activity_points_limit=150
Kunena - Joomla Enabled: access=1 login=0
Kunena - Kunena Enabled: avatar=1 profile=1
Kunena - UddeIM Disabled
Warning: Spoiler!
Joomla! languages installed: en-GB English (en-GB) en-US English (USA)
Third-party components: Jomsocial 4.2.5
Third-party SEF components: None
Plugins: None
Modules: Kunena Latest 5.0.1
Please Log in or Create an account to join the conversation.
You see the avatar from jomsocial. If no account on jomsocial, like guest post. Then a user avatar is showed. It isn't be invented to how it as gender avatar.
Please Log in or Create an account to join the conversation.
810 wrote: the male user, is only for guest users. not to show the female/male gender.
You see the avatar from jomsocial. If no account on jomsocial, like guest post. Then a user avatar is showed. It isn't be invented to how it as gender avatar.
I understand that and have no problem with what gender the avatar is.
My problem is that the path to the guest avatar is not valid and therefore the male avatar is not displaying at all.
Therefore, I had to hard code the url into the avatar.php file. Essentially, it is trying to use the absolute server path instead of the relative server path to create the correct url:
avatar.php absolute path: /home/www/html/subs/travel/en/plugins/kunena/community/
relative path -> (Joomla home)/plugins/kunena/community/
Any idea where to fix that (i.e. correct the server path to a relative server path) outside of editing the avatar.php file?
Thanks again. -- Rik
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thanks again. -- Rik
Please Log in or Create an account to join the conversation.
$avatar = str_replace(JPATH_SITE, '', COMMUNITY_PATH_ASSETS) . "user-Male.png";
For some reason, JUri::base(true) and JUri::root(true) fail to come back with the document root in that code. I didn't look too closely at it since I could tell what it was *trying* to do. Evidently COMMUNITY_PATH_ASSETS (which is the Jomsocial constant) sometimes includes the document root which doesn't do any good when trying to generate an URL. That str_replace was simply failing to nuke the docroot from the path.
I don't know if JPATH_SITE is deprecated by now but that works in Joomla 3.6.5. I didn't try it in 3.7.x.
Just documenting this in case someone bumps into this specific error. I see that this is pretty old but I just had to fix this now.
Thanks
K
PS - I'm hoping that Jomsocial sent the Kunena team a valid subscription by now...
Please Log in or Create an account to join the conversation.