PDA

View Full Version : Creating own pages, Changing background and table color?


EricKonieczny
19th of June 2005 (Sun), 21:44
I know about creating my own pages and have the header still on my page that I have created.

I am adding a few other pages, About Me, Services, Order and others.

I know how to edit the global header, but what is stumping me is where I edit the background color and the Table Color.


Here is my new page I am trying to edit :

http://www.ekreating.com/gallery/buy.php

I am trying to match this page, to the rest of my site using Dark 1 style, the dark Gray.


I have looked at the style sheet dark gray1, and see this code

// GENERAL: page background color
$s_back_color = ee_hexcolorshifter("484848","1.06");

or is there more code I need to edit also. I know the basic "bgcolor= ", does not work beacuse of the color shift.


Where do I insert the code in my new page . I think I need to do it for Page properities and for table properties.

Help is appreciated.

MMCM
20th of June 2005 (Mon), 04:36
If you just want to know what the result of the color shifter is: "4c4c4c" :-)

How to: 0x48 = 72; 72*1.06=76.32; 76 = 0x4c

Or just take a look at the generated page source of you gallery ;-)

Looking at your gallery leads me to a different question: Why do you display your images by using Flash? With my Norton Internet Security settings, I have to confirm every Active X usage, which is very annoying.
The JPGs behind are still unproteced, and disabling the right mouse click can be done much more simple ;-)

EricKonieczny
20th of June 2005 (Mon), 08:33
If you just want to know what the result of the color shifter is: "4c4c4c" :-)

How to: 0x48 = 72; 72*1.06=76.32; 76 = 0x4c

Or just take a look at the generated page source of you gallery ;-)

Looking at your gallery leads me to a different question: Why do you display your images by using Flash? With my Norton Internet Security settings, I have to confirm every Active X usage, which is very annoying.
The JPGs behind are still unproteced, and disabling the right mouse click can be done much more simple ;-)


As for the Color Shift, so If I enter 4c4c4c into the the HTML code I will get an accurate color for the background and Table color?

I know HTML , I just don't know PHP .

As for the Flash, it helps protect the images for the basic user. I have them watermarked for a reason, but images still get used without permission. I know, any image that is online can be downloaded, screen captured, etc, But any protection is better than none.

Pekka, any clarification on the color shift code?

MMCM
20th of June 2005 (Mon), 11:53
The hexcolorshifter helps to create you lighter and darker variations of a base color, by multiplying each R, G, B part of it by the given second argument. So if you decide to change the base color, all the other depending colors will change accordingly.
Calling it with a constant argument, like in your example is not that useful, a better way would be to specify a variable, which you can define and change somewhere else.

In your case "4c4c4c" is the background color of the your gallery page.

Look at the following code (generated by index.php on your site):
BODY {
background: #4C4C4C;
color: #cccccc;
font-family: verdana,helvetica,sans-serif;
background-image : none;
background-color : #4C4C4C;
scrollbar-face-color: #5B5B5B;
scrollbar-shadow-color: #353535;
scrollbar-highlight-color: #6A6A6A;
scrollbar-3dlight-color: #626262;
scrollbar-darkshadow-color: #262626;
scrollbar-track-color: #797979;
scrollbar-arrow-color: #EBC475;
}

I can't help you where to insert the code into buy.php, since I can see only the result generated by that code :-)

ranjan
22nd of June 2005 (Wed), 12:53
Eric,
just wanted to know how can we use images done with flash in EE, do u upload SWF files to the server & if so how do you generate thumbnails, also how do we display that white border frame around the images.

I am looking for an option to host our site using EE so just curious to know.

Regards
Ranjan

Pekka
22nd of June 2005 (Wed), 13:40
EE uses one filename for each photo, so basically you upload a small JPEG which gives the filename (EXIF AND IPTC if needed) and then you upload SWF file next to it with same filename.

EE knows the filename for a photo you open, and then it checks for viewerstyle rules, e.g. PTcrypt viewerstyle in EE 1.5 RC4 uses extension conversion code.

So, using SWF files in EE 1.5 needs a custom viewerstyle file and a "extension converter" and "trigger" code in photo.php to load it.

In next EE version this all is done with much more ease and flexibility: you can define viewerstyle php template in Viewerstyle Editor, set extension etc., add variables to it
(to control the viewerstyle, e.g. "fov" or "repeat") and then just tag photo's size path(s) to use that viewerstyle, each with customized variable values if needed. That system should handle any file format and any viewer.

The white frame comes from style selection for the exhibition. Style "White" in 1.5RC4 looks like this: http://photography-on-the.net/gallery/photo.php?photo=854&u=54-68

EricKonieczny
22nd of June 2005 (Wed), 14:41
Eric,
just wanted to know how can we use images done with flash in EE, do u upload SWF files to the server & if so how do you generate thumbnails, also how do we display that white border frame around the images.

I am looking for an option to host our site using EE so just curious to know.

Regards
Ranjan


My current EE website , does not have any special coding done to it. All the functions you see, are built in options from the back end editor.

There is an option to display all photos as regular jpgs, or in the internal Flash viewer, like I use, for extra added security.

As mentioned also the White border , is an option in one of the styles that is predefined . You can update and make you own styles, it will just take some PHP coding.

As for your customization with Dreamweaver, here is a quick rundown of your list

1. Yes, but with soem PHP and HTML coding.

2. not sure

3. Yes , you can specify

4. Yes

5. Yes , but you will have do soem of your own Coding

6. Logos can be added to style pages, from questions # 1

7. You can specify if you want Search, Sort, and other parameters for each exhibition,

8. I don't think so right now, but there is a new version to be released very soon. Check with Pekka

9. Not sure.

10. You should be able to turn hotlinking on and off from your sever backend software. CPanel etc does this. Specigy which sites are not allowed to hot link

11. Yes this is an internal function. I use PSCS for my watermarking because I like the flexability more.

ranjan
22nd of June 2005 (Wed), 21:03
Thanks Eric,
did'nt know about the internal flash viewer, seems EE has a lot to offer but one needs to dig deep inside it, I will explore it further.

Regards
Ranjan

wkitty42
23rd of June 2005 (Thu), 21:52
Thanks Eric,
did'nt know about the internal flash viewer, seems EE has a lot to offer but one needs to dig deep inside it, I will explore it further.
actually, what's needed is an user/administrator manual... pekka says that this will be available "when it is ready" (in so many words)... hopefully he's been able to do something while working on the next release... hopefully it is also something that can be printed easily so that one can have a hardcopy to read/peruse while working in EE or when one is "in the throne room" ;)

ranjan
23rd of June 2005 (Thu), 23:17
Sure that will give EE a better user experience, inspite of knowing There is an option to display all photos as regular jpgs, or in the internal Flash viewer.

Itried but could not locate this feature under any of sub menu, may be I have been careless but I could not locate this at all.

Can anyone tell me under which menu do we have this option.

Ranjan

EricKonieczny
24th of June 2005 (Fri), 12:07
Sure that will give EE a better user experience, inspite of knowing There is an option to display all photos as regular jpgs, or in the internal Flash viewer.

Itried but could not locate this feature under any of sub menu, may be I have been careless but I could not locate this at all.

Can anyone tell me under which menu do we have this option.

Ranjan


It is under the MISC settings, and all the way torwards the bottom is the Global Settings area.

Viewer for plain images - use the menu to pick

Vanilla viewer- Default , is the normal used for displaying .jpgs


Or choose the View in FLASH - for the Flash option



It is all there in EE, but it just takes time to learn everyhting. I am really looking forward to the new version, and getting my Paypal functions working.

ranjan
24th of June 2005 (Fri), 12:32
Thanks Eric, finally found that, I also got to know that EE can use PT viewer for panorama display.................thats amazing.

So do you simply upload images & the thumbnails are created as usual & they are displayed using flash since that is choosen as viewer?

EE has lot to offer only if one knows what it offers, we surely need a manual with screen shots & an Index file to search. I know Pekka alone handles all the development & its quite difficults for him to do all jobs that effeciently.

Hope some experienced user can help build a help manual.

Ranjan

Pekka
24th of June 2005 (Fri), 16:20
There is no point writing manual based on EE 1.5RC4, the next version has so many new features. I will write a SIMPLE and CONCISE manual for next EE.

Support for any media type is, as have written here in forum, has been reworked in next EE. It gives easy way to add ANY media type to EE, and use different viewers with utmost flexibility regarding misc amount of configuration variables they need and alterations to each photo size using them. So that you do not think that I just talk, here is a brief explanation how it works in upcoming EE:



1. Viewerstyle template is created by me or anyone who knows the html and PHP variables are added to it. These variables define all parameters you need to control the viewer.

http://photography-on-the.net/ee/new/viewerstyle.jpg



2. Viewerstyle editor holds the variables and default values to them. These steps do not need daily attention.

http://photography-on-the.net/ee/new/viewerstyle_editor.jpg



3. In photo editor's size path section you select the viewerstyle for the size path and if needed change the variable values to suit the surrect need (else defaults are used)

http://photography-on-the.net/ee/new/photo_editor.jpg



When visitor selects the size, viewerstyle template is loaded and filled with variable data - in this case you see Windows Media Player embedded, loaded with currect photo filename (.wmv extension):

http://photography-on-the.net/ee/new/photo_page.jpg