- Posts: 3
- Thank you received: 0
Kunena 6.3.0 released
The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 and issues discovered during the last development stages of K 6.3
Question [Resolved] Issues with attachments not showing in K 1.7
- manityodthong
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- manityodthong
- Offline
- New Member
- Posts: 3
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I have discovered that before the actual post are displayed the 'this->attachments' has a count of more than 0 if there is an attachment. However once you get to the post the attachment array has a size of 0.
So when it gets to running displayAttachments, it always seems to think the this->attachments is empty.
Even if within display(..) message->attachments is not empty. Maybe this will help.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
In order to find out why text isn't showing up, you need to create another text topic and paste all text from the broken message into there. Then just edit the topic and remove a few lines until you find out what is causing this bug to happen.
Please Log in or Create an account to join the conversation.
Check into:
(frontend)/lib/kunena.parser.php and search for 'attachment' -- it should show you the code that renders attachments into the topic.
Also: do the attachments show up if you're not adding them into the message?
Please Log in or Create an account to join the conversation.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
First, here is a link so you can see what it looks like.
www.fragaholics.net/forum/30-general/249...nt-testing.html#2498
Keep in mind I do not know the inner workings of Kunena and the flow of information, so I am sure this is not what you would call a "perminant fix" but, it's a work around for me until a perminant solution is found, if one is found. This may just be related to my PHP/Apache, who knows.
funcs/view.php
Here I created a new message object from the msg object, I then set Attachments from the new object, without this it never sees that I have attachments.
These next two changes were with template files.
template/%templatefolder%/view/message.attachments.php
I check if there is an attachment because, if there is no attachment I want to run the original code over my modified code. I was running into an issue with the text not showing with an attachment so I had to display that as well. Again, I don't understand the functions within the Kunena backend so I 'guessed'.
Finally, again another template file I had to modify, I ran into an issue where the attachments started showing but if you typed some text with the attachment it wouldn't so it so this was the workaround for that.
template/%templatefolder%/view/message.contents.php
I know this isn't probably the best way to fix it, but it worked so maybe it will help figure out what the original or real problem is. Sorry about my bad PHP, I spend most my day writing C# and its been a few years since I wrote PHP.
Please Log in or Create an account to join the conversation.
- manityodthong
- Offline
- New Member
- Posts: 3
- Thank you received: 0
Please Log in or Create an account to join the conversation.