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.


website root welcome start page???

Login / Search

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

Well-settled

That is it called?

friendly said

 You could use this in the CSS
#page_running_NAME_OF_YOUR_PAGE
Then add you style coding for the background image something like this
#page_running_NAME_OF_YOUR_PAGE {
background-image: url("{$IMG,BACKGROUND_IMAGE_NAME}");
background-repeat: repeat-x;
}
Just remember not to add the .jpg or .png where you add the "BACKGROUND_IMAGE_NAME"

I am currently using

#page_running_start {
background-image: url('http://proteamclan.com/logo/index.php'); ←– BTW I need caching for this anyone know a nice image rotator with cache ?
background-attachment:fixed;
}


as you can see on the site it displays in the root Professional Reconnaissance Organization & http://proteamclan.com/site/index.php?page=start

I like it to only display on the welcome page the above code also the images show up in the middle of   http://proteamclan.com/site/index.php?page=start and in the top area in the root "welcome/start page"

I can't use .re_body because of the warning in the global.css and because it also shows up on every page. #body_inner I can't use that because it too display the image center middle,

I have also used
#main_website
background-image: url('http://proteamclan.com/logo/index.php');
background-attachment:fixed;
}

This displays correctly but on very page.

What is needed for the images from here http://proteamclan.com/logo/index.php (Refresh to view a different image) to show up only on the root/welcome page or whatever its called. I seen no .css file for it whatever it is.

and my usual apologies for sounding like a moron  :)  
Thanks
Back to the top
 
Posted
Rating:
#63932
Avatar

Community saint

You could have two themes like Jean did for his Forest theme. Create a theme  for the welcome zone and then one for the site zone.


Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#63933
Avatar

Well-settled

I seen Jean beauty of a theme WOW.
I had thought that too another theme,but I was hoping for someone could shade some light on why it seems that the welcome page the one on the root the greeting page or what ever its called seems to have not .css for it. I could be wrong.
If I am right is it hard to add what I am trying?
Back to the top
 
Posted
Rating:
#63935
Avatar

Community saint

It uses global.css … but guess I'm not fully  aware of what you mean. lol

I have a javascript rotator script, btw. Not sure that it caches tho.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#63936
Avatar

Well-settled

I have tried just about very thing in the global.css well the places were it may handle the start/welcome page WHATEVER IT IS CALLED.

The following works but only as I stated above

#page_running_NAME_OF_YOUR_PAGE {
background-image: url("{$IMG,BACKGROUND_IMAGE_NAME}");
background-repeat: repeat-x;
}

I like it to work only on one page the first page.

javascript rotator script really why javascript??

Nevermind  Thanks

Back to the top
 
Posted
Rating:
#63937
Avatar

Community saint

Your above will work great if you do two themes… one for WELCOME zone (the entrance page WWW.YOURSITE.COM) and one for the SITE zone (everything else WWW.YOURSITE.COM/SITE).

Then, in your WELCOME zone you can use whatever rotator script (I just re-read your post and saw you want your background to refresh…I don't have a script for that. Mine that I use is for on the page itself…sorry) you find which can be put in your global.css or in your header.tpl.

Then in your SITE zone you can have your static background using the script you have above.

That is probably the easiest route to go. There's probably more coding you need to do if you want it in the same theme package… I don't know. I'm not a programmer.





Image Rotators you can peruse. ;)

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#63938
Avatar

Well-settled

The images do and are rotating on very load.
That's not the issue.
Thanks for your kind comments
Back to the top
 
Posted
Rating:
#63939
Avatar

Community saint

Ha, I didn't see that until now. I got the same image twice when I refreshed. Clever idea.

I say go with two themes then. Use what you have in your above scripting in the WELCOME ZONE theme global.css. And your static one in your SITE ZONE theme. You can use same colors, design, etc for both global.css files and no one will know you're using two themes.

Am looking forward to your progression on this as well. Looks like a unique concept.  :thumbs:

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#63940
Avatar

Well-settled

I am also no website master creator but you may want to look at this Hivelogic - The Cache Trick

so the issue you just informed me about the same two background images will not happen to me again. Happy reading

btw I don't want two themes, this issue if it is an issue needs fixing.
Back to the top
 
Posted
Rating:
#63941
Avatar

Community saint

Then what you want needs more bit of a coding to determine ZONAGE. Hopefully Chris, Jean, Fletch, or someone else can help ya with it. :thumbs:


Thanks for that link also!

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#63942
Avatar

Well-settled

LOL , what I want and need are two different things.

 I need a hand holding again  :$

Thanks
Back to the top
 
Posted
Rating:
#63943
Avatar

Community saint

Chris has held many hands.  :lol:

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#63960
Avatar

Community saint

Hi Violative!

The dual "Welcome/Site" pages still uses one common HEADER.tpl which triggers both start pages equally.

As you found out it is more difficult to address individual pages with a common HEADER and this is the reason why I chose a "two theme" solution, which also gave me two distinct headers to work with. But, if you would like to do it with only one theme, in my opinion the best way to selectively address this is to apply friendly's DIV part of the code directly to each page and not on the HEADER.tpl. But, coupled to this problem, you've also got to deal with the div elements common on both pages as well. Refer to the CSS map I did to illustrate the elements used in Header.tpl HERE. You will have to decide which of these elements to dump off the Header.tpl and unto individual pages instead. (main_website and body_inner should remain intact, but the rest of the elements can be moved according to your desired design)

HEADER.tpl div elements:

Code

<body class="re_body" id="main_website"id="body_inner">
<div class="global_top">
<div class="float_surrounder">
<img class="logo"/>
<div id="global_zones">
These pages can be edited here: Admin Zone->Content->Comcode pages

:start (welcome page)

site:start (site page)

Hoping these explanations can help you decide if you want to use a single theme or two. I'm not yet an expert at this, and this is based only on the need to create minimum changes to the tpl files, which can than be upgraded without much fear of breaking anything.

Looking forward to see what is starting to look like a killer theme.

Cheers,
Jean
Back to the top
 
Posted
Rating:
#63961
Avatar

Well-settled

Jean,

I will try with two themes and with only one, but I am seeing the logic for the two headers- mainly logo wise. My thinking was if I ever wanted to release a theme new people to OCP may and I think are used to dealing with only one theme.

  Thank you for your well written and well understood response,also many thanks for your forest theme and the tutorials you have assembled. Your responses are the best in these forums (no offense implied towards anyone) I understand what you are communicating.     
Back to the top
 
Posted
Rating:
#63963
Avatar

Community saint

Violative said

Jean,

I will try with two themes and with only one, but I am seeing the logic for the two headers- mainly logo wise. My thinking was if I ever wanted to release a theme new people to OCP may and I think are used to dealing with only one theme.

Thank you for your well written and well understood response,also many thanks for your forest theme and the tutorials you have assembled. Your responses are the best in these forums (no offense implied towards anyone) I understand what you are communicating.
Thanks for the good words, it is very much appreciated!

Yes, indeed, a dual theme is much more difficult to assemble by neophytes to ocPortal, especially if many redirects are needed. I am sure that your work and my work and the theming experience of many others here will eventually help shape the "Themeing" process by ocPortal.

Thanks:)
Back to the top
 
Posted
Rating:
#63974
Avatar

Well-settled

I've gone with the two themes option, I tried the one theme option ,but I could not get it to work for me.

Thanks for your help.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: