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.


Pictures not displaying

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#92085 (In Topic #18483)
Avatar

Honoured member

Hi everyone!

I dropped of the radar a bit due to flood related homelessness...the novelty of living in a hotel immediatly wore off so i'm using my blog to distract me :)

Anyway, i think i've mentioned this before and cant remember or find the solution.

I had a guest blogger submit a blog post directly. I did some editing and added some pictures. When i publish the articles, there is no trace of the pictures. However when i open it up for editing, the images are displaying in the WYSIWYG editor.

I'm having the problem with both URL sourced pictures, and attachment sourced pictures.

Im using v8.1.3 and have had this problem for quite a while. I thought this might be a permissions related issue so have checked the permissions for by 'Guest Blogger' usergroup and cant see any reason why pictures would display in this manner.

Any ideas?
Back to the top
 
Posted
Rating:
#92086
Avatar

Honoured member

oh and when i preview it, the pictures are working. So it only happens when published.

Edit: Viewed in both IE and Firefox...still not displaying.


Last edit: by Ollie8557
Back to the top
 
Posted
Rating:
#92088
Avatar

Hi,

I can't look at this in the next few days as I'm buried in paper work to do, but a couple of things would help:
  1. If you can open the WYSIWYG editors HTML view (under the <> icon) and copy&paste the HTML into a .txt file and send it to me.
  2. If you can work out exactly how to reproduce the problem, e.g. in a Jing screencast.


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:
#92089
Avatar

I dropped of the radar a bit due to flood related homelessness

I hope this isn't too bad :S.


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
Item has a rating of 5 (Liked by sholzy)  
Rating:
#92189
Avatar

Okay, I've tried to reverse engineer this given the report. Jing would have helped a lot, but I think I have found it anyway.

I think somehow your images ended up with relative URLs, that only worked from certain directories. I'm not sure how, maybe only some browsers do this (the WYSIWYG is partly controlled by the web browser itself). E.g. if IE did it, the problem would be 'saved' and show up then on other browsers too, even when editing on the other browsers.

I'm attaching a fix that makes the WYSIWYG convert relative URLs to absolute URLs upon submission, even when Comcode conversion is disabled.

THESE CHANGES ARE FOR V9 NOT V8

Attachment
sources/comcode_from_html.php
» Download: comcode_from_html.php (49 Kb, 101 downloads so far)

Attachment
themes/default/templates/WYSIWYG_SETTINGS.tpl
» Download: WYSIWYG_SETTINGS.tpl (3 Kb, 97 downloads so far)


Until you upgrade to v9, I'd suggest just manually fixing the URLs. Look at the HTML source view and make sure it goes <img src="http://example.com/data/attachment.php" /> instead of e.g. <img src="data/attachment.php" /> or <img src="../data/attachment.php" />.


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
Item has a rating of 5 (Liked by FletchLiked by JeanLiked by sholzy)  
Rating:
#92190
Avatar

What the heck, v8 fix too…

Attachment
» Download: comcode_from_html.php (49 Kb, 96 downloads so far)
Attachment
» Download: JAVASCRIPT_EDITING.tpl (30 Kb, 101 downloads so far)


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:
#92198
Avatar

Community saint

Chris Graham said

What the heck, v8 fix too…

 :lol:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: