HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[BUG REPORT] Including Attachments in User Comments System

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#39042 (In Topic #8754)
Joe
Avatar

Honoured member

...when using 3rd party forum software


I'm using SMF v1.1.4. I submitted a "bug report" via the Support Ticketing system and included an attachment. ocPortal uploads the attachment(s), but it doesn't use the correct BBcode to display the attachment on 3rd party forum scripts. As a matter of fact, I don't see how you'd be able to include an attachment from ocPortal into a 3rd party forum, so ocPortal would have to supply the actual link of the attachment rather than using BBcode "attachment" tags.

Some extra info: The bug report is emailed to ME, the website Admin, and I can see the attachment in the email. I would just say the heck with it, but there are other Admins that deal with these bug reports, and they aren't sent an email of any reports (only the webmaster gets them). So the only way they could possibly see any included attachments would be if ocPortal could display them on the forum correctly. :)


Also, the attachment isn't displayed inside the actual ticket either. :/

And one more thing: Are the subject titles supposed to say the ticketID? They should say "RE: TESTING" (same on the forum too - the topic title is the ticketID).


Last edit: by Joe

Back to the top
 
Posted
Rating:
#39043
Joe
Avatar

Honoured member

I don't expect you to remember back this far, Chris, but how many bugs have I reported in the past? :D

I could be mistaken, but I thought I read something on the site about that if you have submitted a number of bug reports, you're entitled to a free license. Any chance of this? :P

Back to the top
 
Posted
Rating:
#39067
Avatar

Hi,

(This is the reply to the first post)

There is a bug, because the ticket module shouldn't be providing an attachment option for non-OCF users. That's probably not what you want to hear, but the attachment system is very complex (due to how it has to handle things like view-permissions) and couldn't run across the site-forum bridge. To remove the attachment support change line 406 of site/pages/modules/ticket.php from:

Code

            list($attachments,$attach_size_field)=get_attachments();
to:

Code

            list($attachments,$attach_size_field)=(get_forum_type=='ocf')?get_attachments():array(NULL,NULL);

The topic titles aren't great. I have to admit the tickets did have to get a bit shoe-horned to make them fit into an unmodified forum system, and work with our forum-driver system. It is something we would like to improve. The ticket system was primarily done for our own website. Hence why it was not originally being distributed, and still is only available via a free addon.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#39080
Joe
Avatar

Honoured member

Thanks a lot Chris! :)

Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: