I think this is in the right place if not please excuse me and move to wherever it should be :)
I am trying to intergrate my site header and footer created in Xara Xtreme Pro 5 into a back end web hosting script (WHMCS), having a bit of trouble, here is what I have done so far:
On a new page in XXP5 I have pasted my header and navbar exported it then opened the generated html in Expression Web 3, not made any changes here at all just copied it into the header.tl fil in WHMCS where I "think" it should go, uploaded the file to the relevant place, and also the header_htm_files to root of the install.
THe header and nav bar are displaying perfectly but in the complete wrong place actually in the middle of the page, also it has disabled all of the WHMCS internal links, I have studied the code now since 7am lol now have a migrane and blurred vision, it must be something simple but just cant see it.
The link to the page I am talking about is:
Code:
http://clientarea.99quidwebsites.co.uk/index.php
Could some of your more knowledgable people have a look and tell me what I have done wrong? Pretty please?
It is now driving me insane and I could kick myself because I should know how to fix this I just cant see the problem.
As usual thanks in advance for any help
WHMCS support have offered to fix it for $37 ro something which is fine but I really want to know where I have gone wrong I should know, paying them to fix it isn't going to solve anything apart from making it show correctly..........
Thanks in advance
Chris :)
18 February 2010, 07:53 AM
ChrisBro
Re: Intergrating Xara code into back end script?
:'(:'(:'(:'(
Can anyone help me with this? Otherwise I am going to have to really simplify my header to just a static jpg losing my navbar and all other functionality which I really dont want to do :(
Even the folks on the WHMCS forum cant offer an answer
Thanks in advance
Chris
18 February 2010, 08:13 AM
steve.ledger
Re: Intergrating Xara code into back end script?
All I can think of it that you are injecting Xara exported DIV's with their positioning co-ords into a WHMCS html template file (header.tl) which has positioning tags of it's own and thus a muddle of code is the result.
I know that member Rabbie uses WHMCS, perhaps he might spot this thread.
18 February 2010, 08:50 AM
ChrisBro
Re: Intergrating Xara code into back end script?
Quote:
Originally Posted by sledger
All I can think of it that you are injecting Xara exported DIV's with their positioning co-ords into a WHMCS html template file (header.tl) which has positioning tags of it's own and thus a muddle of code is the result.
I know that member Rabbie uses WHMCS, perhaps he might spot this thread.
Hi Sledger
Thanks for coiming in on thisw one, that does seem to be the issue someone on the WHMCS forum just got back with this as well:
Quote:
You need to make sure that you are putting the header content in the header.tpl which is located in /templates/portal/.
Anyway, you seem to be doing right, however the problem is in your HTML. After having a little look on your website, I noticed that you use height etc.
You should never use height or top etc, then it's pretty obvious why it's in the middle of the control panel. Remove those and you'll have it working.
Off to timker now if Rabbie does see this and want to chime in please feel free :)
Thanks again Sledger
Chris
18 February 2010, 10:39 AM
steve.ledger
Re: Intergrating Xara code into back end script?
I think what has happened is that when you created the banner/navbar in Xtreme - you just drew it on the page anywhere thinking that once you exported it to HTML you could just plant that block of code into the header.tpl under the <body> and it would work.
Problem is, Xara will write the positioning CSS relative to the position on the page in Xtreme where you created it. So all the positioning CSS for each img is relative to the original Xara page position of your wysiwyg work which appears to start at about 150 pixels from the top of the page..
(By the way, you also introduced a second <body tag - which is wrong to do)
I had a look at the source code for your site which probably wont show much as the actual code is rendered into html to be displayed on the page (obviously).
Anyhoo, here are some things that I think could be wrong:
and enter everything manually (without using Xara).
There have been many changes made to the template but not in the right way basically.
Sorry Chris I honestly wish I could help more but the best advice I can give would be to start from the template and then work your way up manually, change by change.
18 February 2010, 11:03 AM
steve.ledger
2 Attachment(s)
Re: Intergrating Xara code into back end script?
Chris I made the changes to your source code in Opera, which I can use to reload your page working from the browserscache.
I still think it best you start off right as mentioned in my previous post.
18 February 2010, 02:18 PM
ChrisBro
Re: Intergrating Xara code into back end script?
Sledger
What can I say apart from you are the man and thanks so much for figuring this out for me really I appreciate it loads have spent another day messing with this and had just about lost the will to live when I checked here and seen your fantastic work on this WOW is all I can say and of course I really appreciate your time and energy in helping me with this, needless to say if there is ever anything I can do for you just let me know ;)
I have uploaded your code from the text file and indeed everything in the header is now where it should be with mouse overs and everything all working I am so pleased, I haven't felt quite so useless as I did this afternoon for a long time and you have made me smile :)
1 last problem then this intergration is finally done, on your video it displays perfect but in my live environment I can now see 2 lots of page contents, looking at it in Firefox the 1st part of the content none of the links work but in the 2nd part underneath it, it is all perfect also if you click on say server status you can still see the 2 columns of links that shouldn't be there then the actual server status page content is below this so my last question is how can I remove the 1st lot of content but leave the second that should be there, sorry haven't explained that very well if you dont mind have a look and you will see ehat I mean:
Code:
http://clientarea.99quidwebsites.co.uk
Once agin thanks thanks thanks thanks you are a star and 1 of the many reasons why I love this forum :)
Chris
18 February 2010, 02:21 PM
ChrisBro
Re: Intergrating Xara code into back end script?
Quote:
Originally Posted by rabbie
Hi Chris,
I had a look at the source code for your site which probably wont show much as the actual code is rendered into html to be displayed on the page (obviously).
Anyhoo, here are some things that I think could be wrong:
Which is the Xara positioning I think sledger is refering to.
To be completely honest, it may be worth the $37 to WHMCS to fix it up because the alternative is to manually correct the template:
and enter everything manually (without using Xara).
There have been many changes made to the template but not in the right way basically.
Sorry Chris I honestly wish I could help more but the best advice I can give would be to start from the template and then work your way up manually, change by change.
Hi Rabbie
Thanks for chiming in on this I appreciate it, this has been driving me mad like you wouldn't believe and the WHMCS forum have been less than helpful TBH they are usually quite good but not on this occassion.
I appreciate your input
thanks again
Chris
18 February 2010, 03:37 PM
ChrisBro
1 Attachment(s)
Re: Intergrating Xara code into back end script?
Hello
UPDATE
Ok have got it displaying 1 lot of php generated content by taking your html for the header and my navbar and copying it into the .tpl file so it no looks like this:
(had to include attatchment code to long for post)
In ff it has lost the WHMCS navbar and none of the WHMCS links work in IE it has lost the WHMCS nav bar BUT the WHMCS link all work.
This is the closest I have got so really grateful any ideas on how to solve this last part of the problem?
Really need to brush up on my raw html skill this has been a nightmare thank god its my own use and not for a client.
oops my bad sledger did put it in the right place and I messed it up fiddling :(
WIll move it now thanks for pointing that out :)
18 February 2010, 04:44 PM
Drwyd
Re: Intergrating Xara code into back end script?
Also image tag not closed properly - line 50 I think
18 February 2010, 04:48 PM
ChrisBro
Re: Intergrating Xara code into back end script?
OK have moved that back to where it should be :)
Still the same however :(
Thanks
Chris
18 February 2010, 04:57 PM
ChrisBro
Re: Intergrating Xara code into back end script?
Quote:
Originally Posted by Drwyd
Also image tag not closed properly - line 50 I think
I cant see that, my head and eyes are now well and truly gone now though I have looked at this code so much over the last 2 days lol, cant see any open tags 10 lines either side of line 50?
ALso you know it works perfectly in IE just problems in FF
Gonna check Chrome
Chris
18 February 2010, 05:00 PM
ChrisBro
Re: Intergrating Xara code into back end script?
Same in CHrome as FF so to re-cap lol
FF: No WHMCS navbar and WHMCS link wont work
Chrome: No WHMCS navbar and WHMCS links wont work
IE: No WHMCS navbar but WHMCS links work fine
This was located towards the bottom and was part of the original file for replacing with a normal static jpg header images, when I deleted it the whole page moved up underneath my header and navbar so I am assuming the WHMCS navbar is there but cant be seen as my navbar and header have been placed "over" instead of "above"
Still dont have a clue!
Chris
PS have put the above line of code back in for the moment.
18 February 2010, 05:11 PM
Drwyd
Re: Intergrating Xara code into back end script?
Hi Chris
Corrected img code is <img src="http://www.99quidwebsites.co.uk/livehelp/image.php?id=04" width="128" height="42" border="0" alt="LiveZilla Live Help" />
Also spotted empty DIV <div id="livezilla_tracking" style="display:none"></div> should it be enclosing the javascript below it ?
still scanning for errors, will let you know if I spot any more
Drwyd
18 February 2010, 05:18 PM
ChrisBro
Re: Intergrating Xara code into back end script?
Quote:
Originally Posted by Drwyd
Hi Chris
Corrected img code is <img src="http://www.99quidwebsites.co.uk/livehelp/image.php?id=04" width="128" height="42" border="0" alt="LiveZilla Live Help" />
Also spotted empty DIV <div id="livezilla_tracking" style="display:none"></div> should it be enclosing the javascript below it ?
still scanning for errors, will let you know if I spot any more
Drwyd
Hi
Thanks for your time in this I do appreciate it :)
Sorted the image tag, the div tag I "think" is right looking at the others, this code was generated by Livezilla so "presumming" it to be correct however the image one wasn't.
This is my main problem at the moment I am not great with raw HTML really need to spend sometime brushing theses skills up
Made the change still no change on the page.
Chris
18 February 2010, 05:32 PM
Drwyd
Re: Intergrating Xara code into back end script?
Also <img src="images/clientarea.gif" border="0" hspace="5" align="absmiddle" alt="" />
should be top middle bottom left or right.
hmm, I am suspicious of that empty div, it maybe worth temporarily deleting that JavaScript code to see what effect it has.
18 February 2010, 05:40 PM
ChrisBro
Re: Intergrating Xara code into back end script?
Quote:
Originally Posted by Drwyd
Also <img src="images/clientarea.gif" border="0" hspace="5" align="absmiddle" alt="" />
should be top middle bottom left or right.
hmm, I am suspicious of that empty div, it maybe worth temporarily deleting that JavaScript code to see what effect it has.
Hello
I have taken the LiveZilla thing out completely for the moment and it hasn't made any difference at all, just dont understand it at all its bound to be something simple but dam I just cant find it gonna have to alugh or Im gonna cry lol
Change the
Quote:
height: 700px; and rect(0px, 760px, 700px, 0px);
to
Quote:
height: 150px; and rect(0px, 760px, 150px, 0px);
Sledger was right and even after hime telling me I still missed it god I need soem glasses!!! Seems it was all down to the way I put the header and navbar together on the XARA page ie in the middle instead of positioned at the top!!!!! I am an idiot!!
Sledger and Drywd thankyouuuuuuuuuuuu again
Chris
18 February 2010, 06:46 PM
Drwyd
Re: Intergrating Xara code into back end script?
:D glad you got it all sorted
Tested it in FF, IE, Opera, Safari, and Chrome - all working OK
Time for a cool one <:-P
18 February 2010, 07:00 PM
Drwyd
Re: Intergrating Xara code into back end script?
Actually that rings a bell, IE does not like "clip", something to do with the separating commas. Trust IE to do things different. :rolleyes:
Something to watch out for.
18 February 2010, 07:19 PM
ChrisBro
Re: Intergrating Xara code into back end script?
dohhhhhhh same problem now with the footer it seems to be those 2 lines the "clip" thats causing all the problems what exactly do they do? Now after inserting the footer none of the links on the whole page work?
Chris
18 February 2010, 08:19 PM
Drwyd
Re: Intergrating Xara code into back end script?
That might not be the problem, what I have seen is an extra <html> tag in your code, there should only be one on any page. Same with the <body> tag.
Hi Drwyd couldn't get it too work all sorts of problems still loll how hard can this be ha ha ha feel a bit better today with fresh eyes :)
Have simplified the footer now got everything working the way it should just 1 problem I need to move it up tried everything I know and it wont play ball with me, there is quite a space between the bottom of the WHMCS content and the actual footer.
Still playing so will update soon
Chris
PS Thanks again sorry it took me so long to reply I had to close my lappie last night otherwise it was going in the bin lmao!!
19 February 2010, 10:49 AM
Drwyd
Re: Intergrating Xara code into back end script?
That will be the heights in the 2 lines at the start of the div
All sorted now just wanted to say a BIG thank you to Sledger & Drwyd hope I can return the favour sometime soon :)
Chris
20 February 2010, 03:25 PM
Drwyd
Re: Intergrating Xara code into back end script?
Hi Chris
Sorry to be the bringer of bad news after you have worked so hard :( but there are a few problems still to address. I tested your site in the main 5 browsers and the results are as follows:-
Firefox - All OK.
IE - Links at the top do not work. (rollovers OK)
Safari - Rollovers not working.
Chrome - Back button jumps back 2 links instead of 1.
Opera - All OK.
Some of these problems may be caused by invalid HTML forcing quirks mode.
Drwyd
20 February 2010, 04:16 PM
Drwyd
Re: Intergrating Xara code into back end script?
I've been thinking (stand well back I'm not insured) there may be another way of achieving your objective.
What were the primary reasons for doing things this way. And would an iframe within a Xara generated page do the same job ? essentially embedding your back-end code into Xara rather than the other way around.
20 February 2010, 07:35 PM
steve.ledger
Re: Intergrating Xara code into back end script?
I get the same thing happening in IE8 (but right-click button and Open Link works fine though)
Chrome (5.0.322) and Safari (4.0.4) work fine for me.
20 February 2010, 11:19 PM
Drwyd
Re: Intergrating Xara code into back end script?
Very odd.
I am on Safari 3.0.4(PC) and chrome 4.0.249.89(PC) are you on Mac ?
20 February 2010, 11:42 PM
steve.ledger
Re: Intergrating Xara code into back end script?
Nope.
21 February 2010, 07:27 AM
ChrisBro
1 Attachment(s)
Re: Intergrating Xara code into back end script?
Quote:
Originally Posted by Drwyd
Hi Chris
Sorry to be the bringer of bad news after you have worked so hard :( but there are a few problems still to address. I tested your site in the main 5 browsers and the results are as follows:-
Firefox - All OK.
IE - Links at the top do not work. (rollovers OK)
Safari - Rollovers not working.
Chrome - Back button jumps back 2 links instead of 1.
Opera - All OK.
Some of these problems may be caused by invalid HTML forcing quirks mode.
Drwyd
Hi Drwyd
Dohh how did I miss that :(
Chris
21 February 2010, 07:59 AM
ChrisBro
Re: Intergrating Xara code into back end script?
Right have checked it out cnat believe that what a pain!
The rollover problem I will put to one side for the moment and hope that by fixing the other issues that in turn might sort itselft out, same with Chrome clicking back 2 pages instead of one, so the "main" issue I suppose seen as most people use the dam thing is IE, as Sledger said if you right click on the navbar and select open link it works so I can only think that the error is somewhere in the navbar html, when you view source code in IE it does highlight a part of it, but it is xara code so have no idea really what it does: