Make header MOD |
Post Reply | Page 12> |
Author | |||
Stephen09
Newbie Joined: 19-May-2012 Status: Offline Points: 0 |
Post Options
Thanks(0)
Posted: 19-May-2012 at 2:16pm |
||
Hi I just bought Product Cart BTO and I have seen people who have headers on each category that are like a css background with the text typed over it like in this sites case:
I have seen a post that they tried it and I am not a asp guy I do more php ect. so I out of my zone in moding the code. So if anyone could help me mod the configprdcode page or anything that could make this possible any help would be appreciated. (i noted on this sites code they made the category name appear in a div that has an id that the css targets to put the background picture in) Thanks , Stephen T.
|
|||
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
||
Hello Steve,
One point you should be aware of is that Maingear is a fairly heavily altered code base which has been worked on by multiple dev teams over the years, so while that is certainly an example of what can be done, that particular site has seen a lot of coding hours go into it.
Regardless, what's been done in this regard is fairly simple so long as one is familiar wtih ASP. If you look at category images in a site such as www.sportco.com, each is presented in the stock form as a surface image. In Maingear, what they did was alter the ASP so that the dynamic image reference pulled from the database was referenced as a background. I take it you already discovered that.
As for why this was done, or why you need it, I'm unclear about that and somewhat curious. I'm not seeing what Chris and the guys over at MG achieved by this strategy, so rather than focussing on why they did it, perhaps you could share what you are trying to accomplish? If you have a backaground are you then going to set HTML text over it?
Trying to coach you as to how to do this via the forum might be difficult as it will be largely dependent upon the precise layout you seek to achieve. However, if you scroll down in viewcategories.asp, just below the H1 tag, you will find a section titled "Show large category image". It is in that area that you would begin editing your page if you want to experiment with such a change. Just keep a backup copy you can revert to if things go poorly.
|
|||
Stephen09
Newbie Joined: 19-May-2012 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
||
I am trying to make it so its less boring by adding a image on the top of each section I am not familiar with asp but I am sure I can learn a few things. All I want is the ability to have an image above the section of choices so like the section of cases it would just have a cases header just to make the look and feel better. like as shown in a diferent post:
or something just to make it less plain. Thanks for your response, Stephen
|
|||
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
||
ok, now I understand that you are referring to the BTO categories within the configurator section. I was misled by looking at the background image at the very top of the maingear page. Now I see your point.
And you have yet again turned to a site that is heavily altered. Dino has been around for quite a while and has been pretty extensively tweaked.
At a high level I feel certain that you will have to make edits to the BTO configuration stuff in the admin so that the appropriate images which you want to associate with each such category can be edited. Then you need to work your way through ConfigurePrdCode.asp and locate the section that displays those title bars, apply logic changes and probably CSS class changes in order to show these images on the front end.
|
|||
Guests
Guest |
Post Options
Thanks(0)
|
||
At a simple level, you could find the following in /pc/ConfigurePrdCode.asp:
and change that to, for example:
Or maybe:
where you'd have a set background image for all of them and then have the configuration category text displayed on top. That should give you enough hook to hang your hat on to make it look less plain.
|
|||
Stephen09
Newbie Joined: 19-May-2012 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
||
I tried what you said which if i could get that to work It would be excatly what I wanted but every change i make in the code doesn't matter i added a div it wasn't in the page its like it was strped away or reset when loaded????? I even added a div and made an id and put css but that did not show either.
Edited by Stephen09 - 19-May-2012 at 11:00pm |
|||
Stephen09
Newbie Joined: 19-May-2012 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
||
I am 17 and how much would it cost to just have this placed (a header image-all the same image like what was said just have the text on top just restyled as bigger and white) in as you can imagine it took a while to save to get this program.
I have spent hours on this and IDK I did :
and made the :<td colspan="4"> have a class and tried to make it styled in CSS and every time I look at the code when on my site it looks like i did nothing I have no idea why i double checked to see if i uploaded it right and I re-downloaded it from my site and its all there in the code.
|
|||
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
||
Drop me your contact information at http://www.greybearddesign.com/contact.asp
If possible, I would like to see a mockup of the site design you are working on.
|
|||
Guests
Guest |
Post Options
Thanks(0)
|
||
PM me from the forum and I'll get you sorted out.
|
|||
Guests
Guest |
Post Options
Thanks(0)
|
||
Hamish,
I hope you'll pick up on this. Stephen simply needed simple markup hooks to hang his CSS on. I really think EI should change the markup here to facilitate that and to make PC more designer-friendly. There are several places this heading is called for under various contexts in the ConfigurePrdCode.asp file. It would be much nicer for designers if the markup were more accessible. Rather than variations on
something more like:
Once I showed Stephen where these instances were in the code, he modified it as I describe above and wad ducky happy with the look of his BTO confige pages. Honestly, the markup should be more friendly for designers here, IMHO. Edited by Sean@WMS - 31-May-2012 at 4:49am |
|||
Post Reply | Page 12> |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |