Forums / Basic Configuration / Sidebox Table & Image Problem

Sidebox Table & Image Problem

Locked

Started by anaesthesiac on 22 Nov 2009, 8:07 PM · Views: 3,551

Results 21 to 31 of 31
This thread is locked. New replies are disabled.
23 Nov 2009, 11:05 AM
#21
anaesthesiac avatar

anaesthesiac

New Zenner

Join Date:
Sep 2009
Location:
Gold Coast, Australia
Posts:
40
Plugin Contributions:
0

Sidebox Table & Image Problem

I know this is probably getting tiring but i CANNOT for the life of me locate where the "Who's Online" text for the sideboxes is contained. I've been through every page i'd normally look at, and even in the english.php where i managed to change all the other headers i could not find it.

I've checked whos_online.php, tpl_whos_online.php, english.php and even used the developers toolkit to scan but all i found was a whosonlineHead tag that i couldn't physically locate.

any help would be appreciated.

• w w w . s t u d i o p a r o x y s m . c o m • audio | pen & ink | digital
• w w w . a n a e s t h e s i a c . c o m • music, no genre, no authority, no order

23 Nov 2009, 3:13 PM
#23
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Sidebox Table & Image Problem

To change any output text, you can use admin > Tools > Developers Toolkit and paste it in the upper left box, select all files and search. Among the results will be the file and line number where it is defined.

24 Nov 2009, 3:43 PM
#24
anaesthesiac avatar

anaesthesiac

New Zenner

Join Date:
Sep 2009
Location:
Gold Coast, Australia
Posts:
40
Plugin Contributions:
0

Re: Sidebox Table & Image Problem

I'm having one last issue. I've added an image to be the background for the header searchbox, but cannot for the life of me get the input field/search button to sit within the image.

any ideas?

• w w w . s t u d i o p a r o x y s m . c o m • audio | pen & ink | digital
• w w w . a n a e s t h e s i a c . c o m • music, no genre, no authority, no order

25 Nov 2009, 1:54 AM
#26
anaesthesiac avatar

anaesthesiac

New Zenner

Join Date:
Sep 2009
Location:
Gold Coast, Australia
Posts:
40
Plugin Contributions:
0

Re: Sidebox Table & Image Problem

Thanks again bud, worked a treat. I've added a 1px border on the Input, Select & TextArea fields in the CSS file, but with the Hidden Input types generated on the page it gives a thicker border to the left of the Header Search and the Currency Box.

I used Firebug to inspect the elements, thats the only way i realised. How do i get the border to ignore the hidden input fields?

cheers

• w w w . s t u d i o p a r o x y s m . c o m • audio | pen & ink | digital
• w w w . a n a e s t h e s i a c . c o m • music, no genre, no authority, no order

25 Nov 2009, 5:08 AM
#27
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Sidebox Table & Image Problem

Since the inputs follow in sequence, you can use these rules to hide navMainSearch input borders generally and display them on the third and following inputs:```
#navMainSearch input {border: none;}
#navMainSearch input+input+input {border: 1px solid #aabbcc;}

25 Nov 2009, 1:21 PM
#28
anaesthesiac avatar

anaesthesiac

New Zenner

Join Date:
Sep 2009
Location:
Gold Coast, Australia
Posts:
40
Plugin Contributions:
0

Re: Sidebox Table & Image Problem

Thank you infinitely for your time and patience, you've helped me get to where i needed to be. I'm starting to understand the stylesheet a tiny bit more, it's so flexible, this really is a fantastic system, for it's flexibility and functionality.

I have three final questions regarding this site, and then i will finally get off your back! :P

#1: I want the content of the main page to be a couple lines lower than it is, i tried the old <br /> code in a few pages and while it works for content pages it won't work for the main page.

#2: Just like how i've added images to border the sideboxes, i want to add images to border the content for the EZpages/Info Pages/ Search results etc. Is this done the same way, ie: in the style sheet with a top, middle and bottom image?

and finally

#3: i was using the "getlastmod()" code for the head-titles "Last Update: dd/mm/yyyy", but it's grabbing an outdated static date which i assume to be the install date. How can i make this the date of the LATEST page/item/anything thats been edited.

once again i thank you for your help.

:bigups:

• w w w . s t u d i o p a r o x y s m . c o m • audio | pen & ink | digital
• w w w . a n a e s t h e s i a c . c o m • music, no genre, no authority, no order

25 Nov 2009, 1:22 PM
#29
anaesthesiac avatar

anaesthesiac

New Zenner

Join Date:
Sep 2009
Location:
Gold Coast, Australia
Posts:
40
Plugin Contributions:
0

Re: Sidebox Table & Image Problem

And please, send me a link to your banner for your Future Relics website, i'll include it in my main wide-banner rotation permanently for all the help you've given me.

cheers

:smile:

• w w w . s t u d i o p a r o x y s m . c o m • audio | pen & ink | digital
• w w w . a n a e s t h e s i a c . c o m • music, no genre, no authority, no order

25 Nov 2009, 3:18 PM
#30
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Sidebox Table & Image Problem

1: You will need to give the div that holds the homepage center content an id so it can be addressed in the stylesheet. Actually, if you used define_main_page.php to hold the homepage content, there would already be a div id to use (#indexDefaultMainContent {margin-top: 2.0em}). You apparently put the homepage content in its own <td> in tpl_main_page.php.

2: The principle will be the same. Do you want the border around the entire center column content, or around selected portions of it? Some center column elements may have enough components already, while some (like centerboxes) may need another wrapper div. If you want the whole center content bordered in one box, you probably need to add a couple of wrapper divs in tpl_main_page.php just inside the <td valign="top"> that holds the whole center, perhaps something like```php

<td valign="top"> <div id="centerTop"> <div id="centerBottom"> ... </div> </div> </td> ``` You may want to locate the wrapper divs elsewhere inside that cell, as there are a number of elements like banners and breadcrumbs that you might want outside of the box. Just be careful not to overlap element opening and closing tags.

You can put the box top and bottom bg images in the relevant divs with padding to clear the bg; all pages will have a .centerColumn class on the main content div that can hold the straight side borders.
This is what outputs the main content:```php

<?php /** * prepares and displays center column * */ require($body_code); ?>
This will apply to all pages, so if you don't want the homepage to get the same box, you can specify```
#indexHomeBody #centerTop {background: none;}
#indexHomeBody .centerColumn {background: none;}
#indexHomeBody #centerBottom {background: none;}
```More tweaks will undoubtedly be needed, but that is the gist of it.

3: This is probably going to require a bunch of custom PHP coding. Since there are many files that work together to display any one page, you don't necessarily want to tell the latest file date, as that might not be relevant to the content. You would probably want to get the $current_page_base to tell what type of page you are on, look up the last-modified date in the relevant table in the database, and handle that for output. Sounds like more trouble than it's worth unless you are a whiz with PHP and MySQL.

Thanks for the banner offer! I'll pm later.
27 Nov 2009, 12:52 AM
#31
anaesthesiac avatar

anaesthesiac

New Zenner

Join Date:
Sep 2009
Location:
Gold Coast, Australia
Posts:
40
Plugin Contributions:
0

Re: Sidebox Table & Image Problem

Thank you so much for that detailed explanation, i think i'm going to have to attack it slowly, and all-in-all i think i'll ditch the "Last update" feature.

The content images i wanted would border ALL information in the Main Content area... if that's what it's called. Kinda like a big version of the sideboxes but in the middle.

I'll be attacking this over the weekend and hopefully i'll get it all sorted! Once again cheers for taking the time to explain this all. And don't forget to send me that banner link.

cheers

:bigups:

• w w w . s t u d i o p a r o x y s m . c o m • audio | pen & ink | digital
• w w w . a n a e s t h e s i a c . c o m • music, no genre, no authority, no order