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.


Side Search

Login / Search

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

Well-settled

Changing Side Search Layout

G'day. I recently added a side_search block to my site and i've noticed it has a big pile of empty space above and below the "More" link. I wanted to shrink it down, but side_search.php doesn't seem to contain this link. Which file do I need to edit?

Also my side_search and side_users_online blocks seem to be missing their right side borders, yet my image block is fine.

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
Posted
Rating:
#58596
Avatar

Well-settled

Hello?

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
Posted
Rating:
#58598
Avatar

Community saint

clawcity said

G'day. I recently added a side_search block to my site and i've noticed it has a big pile of empty space above and below the "More" link. I wanted to shrink it down, but side_search.php doesn't seem to contain this link. Which file do I need to edit?
The space is taken by the paragraph state of this class:

Code

<p class="button_panel">
</p> in a paragraph
Remove the <p> and the space will be reclaimed. It is most probably in a template, but I do not know which one.

clawcity said

Also my side_search and side_users_online blocks seem to be missing their right side borders, yet my image block is fine.
Somehow your standardbox_classic border is black: #272727
Modify both borders-bottom and right with the following code to get a blue border in global.css:

Code

.standardbox_classic {
background-color:#272727;
border-bottom:1px solid #072A66;
border-right:1px solid #072A66;
margin:0;
}
Hope this will help,
Jean:)


Last edit: by Jean
Back to the top
 
Posted
Rating:
#58600
Avatar

Community saint

clawcity said

Which file do I need to edit?
I didn't catch which file you are editing, Islander-aua?

oops, I see you said "but I do not know which one."

I looked in the templates (STYLE/THEMES/EDIT TEMPLATES) but saw no BLOCK_SIDE_SEARCH template. I wonder if it is in one of the SEARCH_* templates?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#58602
Avatar

Well-settled

Buggered if I know how the borders got set to that colour….thanks.

I do have a BLOCK_SIDE_SEARCH.tpl, and it is where the offending <p> was located. Changed it to <div> and voila!

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
Posted
Rating:
#58612
Avatar

Community saint

Glad you could find the template to edit.:thumbs:
For some reasons, I do not have a BLOCK_SIDE_SEARCH.tpl on my site.
I'll have to investigate this. I do not have a search block enabled on my main page, maybe it's why I never noticed.

Cheers!
Back to the top
 
Posted
Rating:
#58613
Avatar

Community saint

I did add the search block to my side panel a while ago but until this topic I never noticed the block is called MAIN SEARCH. I looked in STYLE and found template called BLOCK_MAIN_SEARCH.tpl.

I see that in the CSS the lines;

".proceed_button {
padding:15px 0;
text-align:center;
}"

If you reduce the padding to less than the default 15px and you will reduce the blank space on the Search Block.


Last edit: by friendly


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#58621
Avatar

Community saint

Thanks for this find friendly!:thumbs:
I'd prefer modifying the global.css also, rather than adjusting the template.
For some reasons, clawcity seems to have a different version of the search block.
:)
Back to the top
 
Posted
Rating:
#58622
Avatar

side_search was dropped at some point (4.2 I think, when we introduced better box styling adaptability), and newer versions just have main_search.


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

Well-settled

Yeah I'm running an old version  :$

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: