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.


Problem with adding Attachments in Forum

Login / Search

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

Well-settled

Here is a recent post on my board:

When I add the pictures to the the text in the forum, it adds it above the text. I have to manually move it below the text and as you noticed it came out really messed up on the vinyl spackle forum, and a little messed up in the trumpeter build.

Everytime I try to add an attachment to my post I carriage return a couple of times and then go to the bottom and add the attachment.  This is what I get:

Code



[attachment]new_1[/attachment]text

Ever seen this behaviour?  It was working properly up until a few weeks ago.  I believe that the way I am doing it, the post should look like this instead:

Code

text

[attachment]new_1[/attachment]

Thanks, as always.


ModelerX.com - Post your models in the gallery and chat about 'em in the forums.  Building the largest online community of modelers with your help.

Back to the top
 
Posted
Rating:
#31600
Avatar

Community saint

am not sure if I fully understand what is going on.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#31617
Avatar

Community saint

I think if yu choose 'island' that is the way it will appear - always. I believe you need to choose 'in-line' for it to appear where you want it to.

I've always found it to behave in the way you describe, so I've learned to live with it and haven't really given it too much thought.

But you're right.  I too expect it to appear where I last put my cursor. It just doesn't!

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
 
Posted
Rating:
#31619
Avatar

Community saint

Fletch said

I think if yu choose 'island' that is the way it will appear - always. I believe you need to choose 'in-line' for it to appear where you want it to.

I've always found it to behave in the way you describe, so I've learned to live with it and haven't really given it too much thought.

But you're right.  I too expect it to appear where I last put my cursor. It just doesn't!

Oh I misunderstood the first post ya I noticed that but a lot of systems do that so I am used to it.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#31639
Avatar

Hi,

We made some changes to fix problems between Internet Explorer and the Comcode editor. I think before those changes it may have pasted the attachment code at the bottom of the textarea.
Neither behaviour is correct – as you've identified, it should go where the cursor is.

I have now fixed this and it will be fixed in the next patch release.


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

Well-settled

Excellent!


ModelerX.com - Post your models in the gallery and chat about 'em in the forums.  Building the largest online community of modelers with your help.

Back to the top
 
Posted
Rating:
#31719
Avatar

Well-settled

Question… along these lines.  If I have made changes to my code, such as that in the "Post Today" that you helped me with, Chris, if I patch my copy is it going to overwrite my changes if they are not also in the patched version? :S I'm scared!


ModelerX.com - Post your models in the gallery and chat about 'em in the forums.  Building the largest online community of modelers with your help.

Back to the top
 
Posted
Rating:
#31721
Avatar

I'll explain this by your example. Save your changed sources/forum/ocf.php file as sources_custom/forum/ocf.php. This creates an override, safe from being replaced by a patch.

The only problem with this method is that other changes to that file released within patches cannot take effect.
It's best to either:
  • keep note of what you change, and reapply it each time you upgrade
  • (this is better) be familar using a 'diff' tool (such as WinDiff) that can compare files to find the differences. You can then manually make your overridden file consistent with changes made to the original.
We don't change every file in every patch though: you can check the last-modified time of the sources/forum/ocf.php file after making your patch to know if you have any potential problems.


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

Well-settled

 :thumbs:  Will do.  Thanks for the info.  If nothing else, I keep good backups.  :P


ModelerX.com - Post your models in the gallery and chat about 'em in the forums.  Building the largest online community of modelers with your help.

Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: