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.


News block them question.

Login / Search

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

Community saint

On the screen shot I would like to put the avatar right where the gradient

box is.

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

bunnykins is the 'author', right?

If you look in the 'NEWS_PIECE_SUMMARY' template you'll see two chunks of code, one then the other:

Code

   {+START,IF_NON_EMPTY,{AUTHOR_URL}}
      <div class="newscat_img_author">
         {+START,IF_NON_EMPTY,{CATEGORY}}
            <img src="{IMG*}" title="{CATEGORY*}" alt="{CATEGORY*}" />
         {+END}
   
         <div class="news_by">
            {!BY_SIMPLE,<a href="{AUTHOR_URL*}" title="{!_AUTHOR,{AUTHOR*}}">{AUTHOR*}</a>}
         </div>
      </div>
   {+END}

Code

   {+START,IF_EMPTY,{AUTHOR_URL}}
      <div class="newscat_img_member">
         {+START,IF_NON_EMPTY,{$USERNAME*,{SUBMITTER}}}
            <div class="news_by">
               <a class="poster_member" href="{$MEMBER_PROFILE_LINK*,{SUBMITTER}}" title="{$USERNAME*,{SUBMITTER}}">{$USERNAME*,{SUBMITTER}}</a>
            </div>
         {+END}
   
         {+START,IF_NON_EMPTY,{CATEGORY}}
            <img src="{$AVATAR*,{SUBMITTER}}" title="{!AVATAR}" alt="{!AVATAR}" />
         {+END}
         
         {+START,IF,{$OCF}}
            <br /><br />
            {$OCF_RANK_IMAGE}
         {+END}
      </div>
   {+END}

Together this code basically says "If the authors module is installed, show what's inside the first block. If the authors module is not installed, show what's inside the second block.".

It so happens the second block almost does what you want already.

If you remove both blocks of code from the template and put this one back (it's based upon the second block), then it should work…

Code

   <div class="newscat_img_member">
      {+START,IF_NON_EMPTY,{$USERNAME*,{SUBMITTER}}}
         <div class="news_by">
            <a class="poster_member" href="{$MEMBER_PROFILE_LINK*,{SUBMITTER}}" title="{$USERNAME*,{SUBMITTER}}">{$USERNAME*,{SUBMITTER}}</a>
         </div>
      {+END}

      <img src="{$AVATAR*,{SUBMITTER}}" title="{!AVATAR}" alt="{!AVATAR}" />
      
      {+START,IF,{$OCF}}
         <br /><br />
         {$OCF_RANK_IMAGE}
      {+END}
   </div>


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

Community saint

Oh cool I like what you did to the editor in the admin zone it is much easier to use.
Thank ya much.

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

The Permission Tree Editor I assume :).


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

Community saint

No the template editor silly.  :lol:

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

Quick reply   Contract

Your name:
Your message: