Author |
Message |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
 Style in matches not detected
I have tried to embed my style into the matches statement -> Found 8 items, showing 1 to 6. Last 2 Matches but have been very unsuccessful. Please advise...
_________________ *Believe me... I'm really trying hard!  *
|
Mon Jul 11, 05 7:03 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
I know you're trying hard....
What have you done to apply style to that area?
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Mon Jul 11, 05 7:10 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
Hi Scottcrew... Thanks for coming to my aid... as usual!
We have gone through this in another thread but it seems to get really confusing, hence I started this thread!
I have added $warn_message .= "\n<tr>\n <td align=center class=\"display\"><FONT $sc_search_nav_font>\n"; in my agora_html_lib.pl file (all I got is error message). I have changed tried to change the css class from class to element to ID but it doesn't work
_________________ *Believe me... I'm really trying hard!  *
|
Mon Jul 11, 05 7:26 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
What does your CSS file look like?
Can you post the URL to your store so we can see what is happening?
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Mon Jul 11, 05 8:47 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
Hi,
The latest version of my style sheet source is this->
display { color: blue; font-size: 10px; font-family: Verdana; text-decoration: none }
.normal { color: #000; font-size: 11px; font-family: Verdana; text-decoration: none }
Have tried .display but it doesnt work
My URL is http://www.nadioki.per.sg/store
_________________ *Believe me... I'm really trying hard!  *
|
Mon Jul 11, 05 11:42 pm |
|
 |
Dan
Guest
|
hell-o
your class shouldn't be causing the error. what does your error log in the store manager say?
also remove the following...
<FONT $sc_search_nav_font>
and the subsequent </font> tag from the table cell.
oh and if calling the "display" with class then "display" needs a dot in front of it in the css file...
.display { color: blue; font-size: 10px; font-family: Verdana; text-decoration: none }
regards,
dan
|
Tue Jul 12, 05 5:03 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Is the change applied to your store right now? I didn't see anything in the source code...
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Jul 12, 05 6:35 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
Dan.. it doesn't work.... I've got the following error message:
Error loading library ./library/agora_html_lib.pl:
syntax error at ./library/agora_html_lib.pl line 15, near "if ($sc_shall_i_log_accesses eq "" syntax error at ./library/agora_html_lib.pl line 50, near "'') " syntax error at ./library/agora_html_lib.pl line 53, near "}" Compilation failed in require at (eval 9) line 1.
scottcrew, can't have that script running as the site will not be able to load. I have just loaded the changes from Dan in there.
_________________ *Believe me... I'm really trying hard!  *
|
Tue Jul 12, 05 7:46 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
I am seeing that you still have stuff in your header file that shouldn't be there....
In particular:
Code:
<LINK REL=stylesheet HREF="http://www.nadioki.per.sg/store/style.css" TYPE="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<body leftmargin="0" topmargin="0">
For the proper placement of this info, please review the following threads:
http://www.agoraguide.com/faq/viewtopic.php?t=1156
http://www.agoraguide.com/faq/viewtopic.php?t=358
In a previous post you mentioned that you added the $warn_message. Did you actually add it or did you replace the original code. If you added it, where did you add it?
It just needs to be replaced...
Try using this:
Code:
$warn_message .= "\n<tr>\n <td align=center class=display><FONT $sc_search_nav_font>\n";
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Jul 12, 05 8:48 am |
 |
 |
Dan
Guest
|
hell-o
judging from the error log it looks like you messed up some curly braket(s) someplace. is this the only edit you've done to the html_lib.pl file? if so save a copy of what you have then upload a fresh copy. then begin making changes one by one and test for errors on each change. when you get to where you broke it then undo what you did and holler.
regards,
dan
|
Tue Jul 12, 05 10:18 am |
|
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
Hi Hi! I have tried both your methods and it works!
I think the problem lies with the html editor -> I did the whole process all over again using notepad instead of dreamweaver and it works.
Many thanks!
_________________ *Believe me... I'm really trying hard!  *
|
Wed Jul 13, 05 6:01 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Dreamweaver can cause problems by changing characters in a file...
I think that there was a thread about the proper way to set up Dreamweaver for use with AgoraCart....
Here it is....
http://www.agoraguide.com/faq/viewtopic.php?t=1569
Or you can just use a plain html editor or notepad....
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Jul 13, 05 8:18 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
That's a piece of really useful information! Thanks scottcrew!
_________________ *Believe me... I'm really trying hard!  *
|
Thu Jul 14, 05 6:31 am |
|
 |
|