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.


Redesigning Layout of Gallery Index

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#39019 (In Topic #8752)
Joe
Avatar

Honoured member

Having some trouble...

Las Venturas Roleplay/Cops/Robbers - Gallery: Root

The link above is the main gallery index (obviously). The rows are wrapped in something like:

Code

{+START,BOX}BLAH{+END}

I want to change that to something like:

Code

<div class="medborder medborder_box staff_actions">

…which is basically a quote box. So instead of using the internal boxes, I want to wrap everything in a quote. According to the caching in FTP, GALLERY_FLOW_MODE_PAGE.tpl controls the layout of the index. However I can't seem to find a BOX symbol in this file so I can change it.

Any suggestions?

Back to the top
 
Posted
Rating:
#39020
Joe
Avatar

Honoured member

Ooops - I suppose this could be under "theming"? :P

Back to the top
 
Posted
Rating:
#39027
Avatar

You're in the right file - look more closely ;).


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:
#39041
Joe
Avatar

Honoured member

Code

{TITLE}

{+START,IF_NON_EMPTY,{DESCRIPTION}}
   <div class="medborder medborder_box staff_actions">
       <span class="control_functions">Description:</span> {DESCRIPTION}
   </div>
{+END}

{CHILDREN}

{BROWSE}

{+START,IF_NON_EMPTY,{MEMBER_DETAILS}}
   <br />
   {MEMBER_DETAILS}
{+END}

<br /><br />

{ENTRIES}
{+START,IF_EMPTY,{CHILDREN}{ENTRIES}}
   <p class="nothing_here">
      {!NO_ENTRIES}
   </p>
{+END}

<br />

<br class="float_passer" />

<br />
<br />

{$,Load up the staff actions template to display staff actions uniformly (we relay our parameters to it)...}
{+START,INCLUDE,STAFF_ACTIONS}
   1_URL={IMAGE_URL*}
   1_TITLE={!ADD_IMAGE}
   2_URL={VIDEO_URL*}
   2_TITLE={!ADD_VIDEO}
   3_URL={$FIND_SCRIPT,download_gallery}?cat={CAT*}{$KEEP*,0,1}
   3_TITLE={!DOWNLOAD_GALLERY_CONTENTS}
   4_URL={EDIT_URL*}
   4_TITLE={!EDIT_GALLERY}
{+END}
<br /><br /><br /><br /><br /><br />

I don't suppose you could point it out? How about for the Enterprise Support Ticketing module? I don't see an instance of the BOX symbol in SUPPORT_TICKET_PAGE.tpl

Back to the top
 
Posted
Rating:
#39044
Avatar

That's a modified copy of the file - the original has it near the top.
I'm not sure about support tickets, I'd have to look through (too many templates for me to remember off by heart I'm afraid ;)).


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:
#39045
Joe
Avatar

Honoured member

Original:

Code

{TITLE}

{+START,IF_NON_EMPTY,{DESCRIPTION}}
   {+START,BOX}
      {DESCRIPTION}
   {+END}
{+END}
<br />

{CHILDREN}

{BROWSE}

{+START,IF_NON_EMPTY,{MEMBER_DETAILS}}
   <br />
   {MEMBER_DETAILS}
{+END}

<br /><br />

<!--
{+START,IF_NON_EMPTY,{CURRENT_ENTRY}}
   <div class="gallery_media_expose">
      {CURRENT_ENTRY}
   </div>
   <br />
{+END}
-->

{ENTRIES}
{+START,IF_EMPTY,{CHILDREN}{ENTRIES}}
   <p class="nothing_here">
      {!NO_ENTRIES}
   </p>
{+END}

<br />

<div>
   <div class="ratings" style="float: right">
      {RATING_DETAILS}
   </div>
   <br class="float_passer" />
   <div>
      {COMMENT_DETAILS}
   </div>
</div>

<br class="float_passer" />

<br />
<br />

{$,Load up the staff actions template to display staff actions uniformly (we relay our parameters to it)...}
{+START,INCLUDE,STAFF_ACTIONS}
   1_URL={IMAGE_URL*}
   1_TITLE={!ADD_IMAGE}
   2_URL={VIDEO_URL*}
   2_TITLE={!ADD_VIDEO}
   3_URL={$FIND_SCRIPT,download_gallery}?cat={CAT*}{$KEEP*,0,1}
   3_TITLE={!DOWNLOAD_GALLERY_CONTENTS}
   4_URL={EDIT_URL*}
   4_TITLE={!EDIT_GALLERY}
{+END}


BUT, I already replaced this. It only changed a page in the gallery, not the root of the gallery though. If it's not in the modified file, that means the BOX shouldn't be there, but it is. :P

Back to the top
 
Posted
Rating:
#39061
Avatar

If the root gallery isn't set to be in 'flow mode', then it'll be using the GALLERY_PAGE template.


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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: