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.


Inserting images in text

Login / Search

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

Community saint

Me again... :(

I have been having a bit of a hunt thru your documentation trying to find the answer - to no avail so far…

Throughout your own documentation and guides, you frequently have images posted that does not actually break the flow of the text…

/docs/pg/tut_intro/index.php

is an example. When I insert any image, it immediately bcomes part of the line and leaves a wide gap in the text line spacing, whereas your images down the right hand side do not seem to have effected the text spacing of the lines to their left.

Is it done using OCP?? (It is what I call text wrap - not sure if people know or use that expression or if it is the correct expression even:P).
 

 





Back to the top
 
Posted
Rating:
#32107
Avatar

I believe it is the "exp_thumb" tag. Its operators are listed in the documentation/tutorials.


Like ocPortal on Facebook:
Back to the top
 
Posted
Rating:
#32110
Avatar

Also version 3.2 will have an attachment type for doing this.


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

Community saint

What program is used to generate the docs so that I know where these attachments times will be used.

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

The documentation is hand-typed in Comcode. It doesn't use attachments, because it has to run independent of any database records, and attachments exist within the database.


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

Community saint

ah I have not used the comcode page from the sounds of it its like the add on for IPB called custom page.
So how is this new attachment system going to work?
Is it going to be a flat file system but work just like the other attachment system?

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

There is no new attachment system involved here. We have simply added two new attachment types alongside the existing 'island', 'inline' and 'download' types.

The original question here relates to functionality used in documentation, but this has existed since version 2.5. That functionality is not the attachment system.


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

Community saint

I side-stepped the 'problem' (mainly because I couldn't find how to make that aspect work), by building my own CSS properties for placing my images. I then tagged it on to the bottom of global.css and it works fine for me . . .!

Code

/* Terry's add-on image placement codes */

.img_left {
   float: left;
   margin-right: 20px;
   margin-bottom: 6px;
   }
   
.img_right {
   float: right;
   margin-left: 20px;
   margin-bottom: 6px;
   }
   
.clear {
   clear: both;
   }

/* end of Terry's add-on image placement codes */

Give it a try. It may just give you an extra string to your bow while you're hunting around for the other ocPortal codes!

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

Community saint



Umm, will try that - thanks Terry. (Have a rough idea what do to get that in - sure I will be fine as I am exploring OCP deeper and deeper)

I worked out how to do it using HTML with WYSIWYG disabled in the comcode editor. The problem with that is if you reenable it is seems to change the format when you next save it and the text then drops to one line beside and the rest below, so I find I am doing a lot more comcode work in HTML (not a bad thing I guess…).

 





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

Quick reply   Contract

Your name:
Your message: