HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Skip navigation

Side Search

Login / Search

[ Join | More ]
Posted 25 February 2010, 2:31 AM
#58480
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 02 March 2010, 12:52 AM
#58596
Avatar

Well-settled

Hello?

[OMA] Clawcity - If It Ain't You….Frag It!!!
LAN Of The Damned - Admin
Back to the top
 
Posted 02 March 2010, 5:05 AM
#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 02 March 2010, 6:33 AM
#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?

Prehistorics Illustrated
http://prehistoricsillustrated.com
Another ocPortal powered website &
The Fascinating World of Dinosaurs

& Prehistoric Creatures of all Kinds
Back to the top
 
Posted 02 March 2010, 9:30 AM
#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 02 March 2010, 4:00 PM
#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 02 March 2010, 4:34 PM
#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

Prehistorics Illustrated
http://prehistoricsillustrated.com
Another ocPortal powered website &
The Fascinating World of Dinosaurs

& Prehistoric Creatures of all Kinds
Back to the top
 
Posted 02 March 2010, 6:45 PM
#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 02 March 2010, 6:50 PM
#58622
Avatar

ocStaff (admin)

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.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter


If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted 22 March 2010, 10:52 AM
#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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract
Your name:
Your message: