X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Static page simulation. Search engine improvements (https://forum.x-cart.com/showthread.php?t=10128)

fernando 03-17-2005 07:33 PM

Quote:

Originally Posted by Moza
This is the code that I am using:


Please, use the latest version of the MOD:

http://forum.x-cart.com/viewtopic.php?p=80454#80454

Let me know how it went!

moza 03-17-2005 07:41 PM

Quote:

Originally Posted by fernando
Quote:

Originally Posted by Moza
This is the code that I am using:


Please, use the latest version of the MOD:

http://forum.x-cart.com/viewtopic.php?p=80454#80454

Let me know how it went!


Sorry, I forgot to say that I also used this code as well. There are 3 different version in this post and I tried all of them and same error on same line that I mentioned.

moza 03-17-2005 08:04 PM

Quote:

Originally Posted by mrbiggles
This is my code and it seems to work for me

Code:

<?php

require "./auth.php";
require $xcart_dir."/include/categories.php";

$qry = "SELECT * FROM " . $sql_tbl["products"] . " where forsale='Y' order by product";
$result = db_query($qry);

$products = array();

while ($result_row = db_fetch_array($result)) {
  $products[] = $result_row;
}

$smarty->assign("main","SEO_listing");
$smarty->assign("products",$products);
func_display("customer/home.tpl", $smarty);

?>


Regards Adam


I tried this code and got same error :
Code:

Parse error: parse error, unexpected T_VARIABLE in /Applications/MAMP/htdocs/test_001/xcart_412/customer/listing.php on line 12

fernando 03-17-2005 08:04 PM

Could you please copy your code and PM it to me? I'll take a look at it and let you know if I see something off.

moza 03-17-2005 08:16 PM

The only thing that I didn't use here is the change in .htaccess file, so I type the url like this:

http://localhost/test_001/xcart_412/customer/SEO_listing.php

Base on what you said it should work this way, but I get this ERROR:

Parse error: parse error, unexpected T_VARIABLE in /Applications/MAMP/htdocs/test_001/xcart_412/customer/SEO_listing.php on line 12

bluecat 06-27-2005 09:32 PM

Can anyone tell me if this works in 4.0.14? I had this working in v3 without problem. I finally got it going with this version; however, the page it generates has broken up images, and I noticied it adds two extra: -- in the url, but I'm not sure how to fix that. Any advice is greatly appreciated. Also, I used every possible combination on here, lol. Thanks.

nfc5382 03-12-2007 02:06 AM

Re: Static page simulation. Search engine improvements
 
Quote:

Originally Posted by Gijs
I don't know what a hidden link is :?: :oops:

In CSS you could do the following and ... I hope this is not what you call a hiddenlink :lol:
Code:

.HiddenUrl {
        COLOR: #fbf6ce; TEXT-DECORATION: none;
}
.HiddenUrl:link {
        COLOR: #fbf6ce; TEXT-DECORATION: none;
}
.HiddenUrl:visited {
        COLOR: #fbf6ce; TEXT-DECORATION: none;
}
.HiddenUrl:hover {
        COLOR: #fbf6ce; TEXT-DECORATION: none;
}
.HiddenUrl:active  {
        COLOR: #fbf6ce; TEXT-DECORATION: none;


Match COLOR to the background colour of where you put the hyperlink (f.e. in bottom.tpl)
When hoovering you'll notice the "hand cursor" showing up for the rest it will be invisible.

<a class="HiddenUrl" href="mycatalog.html>Catalog</a>


Careful!!!

See http://forum.x-cart.com/showthread.php?p=164373

Google will take a site down from their listing if using hidden text.


All times are GMT -8. The time now is 12:11 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.