You are here:  » navigation not showing

Support Forum



navigation not showing

Submitted by Kiddyalley on Thu, 2011-07-14 16:31 in

hi

my pages only shows one page of results but then there is no navigation. i can still see the call for navigation.php but it is not working.

any ideas
{link saved}

thanks

Submitted by support on Thu, 2011-07-14 16:49

Hi Kiddyally,

There has been a fix documented regarding use of the external scripts (which you may be using as I see that you have have a higher level "blog" site) that involves modifying Price Tapestry to make sure that it uses a new database connection for each query, thus making sure that it does not overwrite the database connection of your external site.

This would have involved making a change to your includes/database.php at line 14 as follows:

    $link = @mysql_connect($config_databaseServer,$config_databaseUsername,$config_databasePassword,TRUE);

With this in place, navigation from the normal installation search won't actually work as the SELECT SQL_CALC_FOUND_ROWS query has to be made on the same SQL link as the actual search query.

To work around this, in your includes/database.php look for the following code at line 2:

  function database_querySelect($sql,&$rows)

...and REPLACE with:

  function database_querySelect($sql,&$rows,$new=TRUE)

Then, assuming the modification for external compatibility, the following code at line 14:

    $link = @mysql_connect($config_databaseServer,$config_databaseUsername,$config_databasePassword,TRUE);

...and REPLACE with:

    $link = @mysql_connect($config_databaseServer,$config_databaseUsername,$config_databasePassword,$new);

Finally, in your search.php, look for the following code around line 273:

    database_querySelect($sqlResultCount,$rowsResultCount);

...and REPLACE with:

    database_querySelect($sqlResultCount,$rowsResultCount,FALSE);

If the above is not the case, let me know and I'll investigate further...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by Kiddyalley on Thu, 2011-07-14 19:11

hi

excellent all working now

thanks

Submitted by Kiddyalley on Fri, 2011-07-15 21:28

Hi
i have the same issue where the ordering links are not showing

thanks

Submitted by support on Sat, 2011-07-16 07:51

Hi kiddyalley,

Is that on a site page or external page using one of the external scripts? If the latter, could you let me know what "calling code" (the PHP added to your external page) you are using and I'll take a look...

Cheers,
David.
--
PriceTapestry.com

Submitted by Kiddyalley on Sat, 2011-07-16 12:36

Hi

i am not using the external code. I build the wordpress temlate around the pricetapestr software

thanks

Submitted by support on Sat, 2011-07-16 12:51

Hi kiddyally,

The sort order links etc. are displayed by html/banner.php which is called in by this code at line 356 in search.php

  require("html/banner.php");

The $banner variable is set-up if there is a positive $resultCount so it should have started showing again once navigation was restored.

If you could double check that html/banner.php uploaded correctly (e.g. it's not a zero byte file because of a transient FTP problem) and if all looks OK if you could email me your

search.php
html/banner.php
includes/database.php

...together with a link to a page on your site showing the problem, i'll check it out for you...

Cheers,
David.
--
PriceTapestry.com