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.


Wrong url when using attachments

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#100179 (In Topic #19663)

Honoured member

intersting wrong location

I just know it's something I've done.  Seems like I'm always breaking something these days.lol

The attachment function has started insterting the same url no matter what file is uploaded.  This started after beginning to use the file media library.  When creating an article, clicking on attachments, selecting the file to upload, filling in the caption info, then clicking "use" results in the following code being instered no matter what I've tried. The caption is always correct, but it inserts the same image path.

Code

[attachment_safe description="Me and David Faith in 1977" type="inline" thumb="1" thumb_url="uploads/filedump/Animations/3d_text_3.gif"]new_1[/attachment_safe]

Code

[attachment_safe description="A front view of my Yamaha MSP3 Monitors" type="inline" thumb="1" thumb_url="uploads/filedump/Animations/3d_text_3.gif"]new_1[/attachment_safe]

Back to the top
 
Posted
Rating:
#100181
Avatar

I just know it's something I've done.  Seems like I'm always breaking something these days.lol

Not at all… you can blame me.

This was an issue with the accessibility option to disable the tree list. It was not putting an "unset" option on the thumbnail choice, so was always selecting the first thumbnail there.

I have deployed a fix for you.


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:
#100189

Honoured member

Thanks Chris.  It is actually one of my users having the issue, and I believe he's using the WYSIWYG editor if that makes a difference.  I've not used the attachment feature my self opting to upload my images via ftp and type the path by hand.  I just received the following message from the same user.  Do I need to just turn off the accessibility features and would that make it work correctly?

Code

From: Stan Anderson
Sent: Thursday, September 12, 2013 10:53 AM
To: 'Chip McCain'
Subject: RE: Thursday pre-noon

Okay.
I just pre-posted the blog article and when I initially added an image it entered as "[attachment_safe type="inline" thumb="1"]new_1[/attachment_safe]'

But when I went back after previewing it is was entered as <a href="http://chipandtracy.com/data/attachment.php?id=498" rel="lightbox" target="_blank" title=" (this link will open in a new window)"><img alt="" class="attachment_img" src="http://chipandtracy.com/data/attachment.php?id=498&amp;thumb=1" / /></a><br />
And I had to manually change it back to "[attachment_safe type="inline" thumb="1"]new_1[/attachment_safe]"

Stan
Back to the top
 
Posted
Rating:
#100191
Avatar

That sounds like he might have been looking on the HTML source view of the WYSIWYG editor for some reason. It will change itself to HTML when you preview, so that the WYSIWYG editor can be used to customise it fully.


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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: