Jump to content

Shows the product name in the title bar.


Recommended Posts

  • 3 weeks later...

Hey All

I started To Monkey With this Mod. I wanted the category name to be displayed in the title bar for what ever catagory they are veiwing then change to the product they click on.

Your Keywords are only displayed on the home page

So This Is What I Added To This Excellent Mod By franck~

Open Your title.php if you allready download the Mod if not download it, then just copy paste this code over the whole title.php File

Add Your Keywords And Up Load

*REMEMBER* Always Back Up Your Files Before Changing Them

<?php

/*************************************************************************** 

*	File Info: title.php 

*	Purpose:   Display the product name in the title bar (Or a choosen keyword when it's not a product page) 

*	Created by Francois Aleta alias Franck~ http://www.francoisaleta.org

*	Updated:   NOV/24/2003 

***************************************************************************

*	CubeCart:

*	Developer: Alistar Brookbanks (Brooky.com) 

*	Copyright: (C)2003 http://www.brooky.com

*	Copyright: (C)2003 http://www.cubecart.com

*	This program is not "free" software and restrictions apply! 

*	Further Info: http://www.cubecart.com/license.php

*	Contact [email protected] if any conditions are not clear. 

*

*	Licensees holding valid "CubeCart Licence Number" may edit

*	the (powered by CubeCart) from browser title and "Powered by CubeCart"

*	and "(c) Brooky.com" from the web page footer.

*

*	This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING

*	THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR

*	PURPOSE. This and all others in the download package can only be

*	redistributed with written permission from Alistair Brookbanks!

*

*	The "CubeCart License" is available to purchase at

*	https://secure.cubecart.com/

*	For pricing please contact us via e-mail at [email protected] 

***************************************************************************/



session_start();



// Check To See If Cat selected

if($cat_id > 0)

{

$catname=stripslashes($catname);/// Remove the slashes so that "Joe\'s radio" becomes "Joe's radio"

echo "$catname";

}



	else

{

  

// make sure a product exists and has been selected

	if(empty($product))

  {

  	echo "Your Keywords Here";

  }

	else

  {

  	$select_prod = mysql_query( "SELECT * FROM ".$prefix."store_inventory WHERE product='$product'");

  	$totalrows = mysql_num_rows($select_prod);



  	if($totalrows==0)

    {

    	echo"Your Keywords Here";

    }



	// display the title

	if($totalrows!==0)

  {

  	while ($row = mysql_fetch_array($select_prod))

    {

    	$title = $row["title"];

    }

$title=stripslashes($title);/// Remove the slashes so that "Joe\'s radio" becomes "Joe's radio"

echo"$title";

}

}

}

?>

If everyone Preferes This Version Then I Will Inform Brooky To Change The Download To This

Let Me Know What You Guys Think

You Can Check it Out Here:

faerynicethings.com

Please Do Not Make Fake Purchases This Is A Live Store

wildbill :D

Link to comment
Share on other sites

  • 1 month later...
Guest Gregori

This is a great mod!

But I wanted to add more written content to my shop, to be indexed by the spiders, as they seem to disregard meta tags now days.

This mod adds a textfield right under the store logo. The text is only 1px high and is almost inviseble but will alway be seen by spiders. It contains the product title (when such exist), followed by whatever text you want the spiders to find.

I don´t use meta tags at all, trying to force spiders to grab this text instead.

This is what I have done

To admin/style.css I added this (adjust color to your shop´s bakground):

.infotext {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 1px;

color: #FFFFFF;

}

In header.inc.php i changed this:

<td align='left' height="80" width="100%" background="<?echo"$site_url/";?>images/store_logo_bg.jpg"><a href="<?echo"$site_url/index.php";?>"><img src="<?echo"$site_url/";?>images/store_logo.gif" alt="<?echo"$la_powered_by_cc";?>" border="0"></a></td>




to this:




<td align='left' class="infotext" height="80" width="100%" background="<?echo"$site_url/";?>images/store_logo_bg.jpg"><a href="<?echo"$site_url/index.php";?>"><img src="<?echo"$site_url/";?>images/store_logo.gif" alt="<?echo"$la_powered_by_cc";?>" border="0"></a><br><?php include("title.php");?> always at the best price at Shop.not. We provide the best in, keyword, another keyword, more keywords and som more keywords.</td>

Link to comment
Share on other sites

  • 4 months later...
Guest xyncro©

... :rolly:

is it possible to apply this somewere else on the page, lets say emmediatelly under the header.inc.php file or somewhere at top or bottom of the index.php file???

or is it only possible to apply this meta search text in the header.inc.php file???

check this topic

i can't apply this in a normal way according the install notes because my header.inc.php file is modified

.... :lol:

----------------------------------------------------------------------------------------------

mini_forum_logo.gifwww.e-netton.net - mer för pengarna

Link to comment
Share on other sites

  • 7 months later...
Guest lilithfiend

Hey All

I started To Monkey With this Mod. I wanted the category name to be displayed in the title bar for what ever catagory they are veiwing then change to the product they click on.

Your Keywords are only displayed on the home page

So This Is What I Added To This Excellent Mod By franck~

Open Your title.php if you allready download the Mod if not download it, then just copy paste this code over the whole title.php File

Add Your Keywords And Up Load

*REMEMBER* Always Back Up Your Files Before Changing Them

<?php

/*************************************************************************** 

*	File Info: title.php 

*	Purpose:   Display the product name in the title bar (Or a choosen keyword when it's not a product page) 

*	Created by Francois Aleta alias Franck~ http://www.francoisaleta.org

*	Updated:   NOV/24/2003 

***************************************************************************

*	CubeCart:

*	Developer: Alistar Brookbanks (Brooky.com) 

*	Copyright: (C)2003 http://www.brooky.com

*	Copyright: (C)2003 http://www.cubecart.com

*	This program is not "free" software and restrictions apply! 

*	Further Info: http://www.cubecart.com/license.php

*	Contact [email protected] if any conditions are not clear. 

*

*	Licensees holding valid "CubeCart Licence Number" may edit

*	the (powered by CubeCart) from browser title and "Powered by CubeCart"

*	and "(c) Brooky.com" from the web page footer.

*

*	This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING

*	THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR

*	PURPOSE. This and all others in the download package can only be

*	redistributed with written permission from Alistair Brookbanks!

*

*	The "CubeCart License" is available to purchase at

*	https://secure.cubecart.com/

*	For pricing please contact us via e-mail at [email protected] 

***************************************************************************/



session_start();



// Check To See If Cat selected

if($cat_id > 0)

{

$catname=stripslashes($catname);/// Remove the slashes so that "Joe\'s radio" becomes "Joe's radio"

echo "$catname";

}



	else

{

  

// make sure a product exists and has been selected

	if(empty($product))

  {

  	echo "Your Keywords Here";

  }

	else

  {

  	$select_prod = mysql_query( "SELECT * FROM ".$prefix."store_inventory WHERE product='$product'");

  	$totalrows = mysql_num_rows($select_prod);



  	if($totalrows==0)

    {

    	echo"Your Keywords Here";

    }



	// display the title

	if($totalrows!==0)

  {

  	while ($row = mysql_fetch_array($select_prod))

    {

    	$title = $row["title"];

    }

$title=stripslashes($title);/// Remove the slashes so that "Joe\'s radio" becomes "Joe's radio"

echo"$title";

}

}

}

?>

If everyone Preferes This Version Then I Will Inform Brooky To Change The Download To This

Let Me Know What You Guys Think

You Can Check it Out Here:

faerynicethings.com

Please Do Not Make Fake Purchases This Is A Live Store

wildbill :blink:

hey wildbill,

i used your version but it seems that there is a tiny problem.

on the index page, there is the left side box with the categories, right? When I click on any category, the title bar doesn't show the category name. The category name only shows when I click on the category image on the index page.

What's the problem?? Could you please help? Thanks in advance!

Link to comment
Share on other sites

  • 2 weeks later...
Guest Allansamson

i used your version but it seems that there is a tiny problem.

on the index page, there is the left side box with the categories, right? When I click on any category, the title bar doesn't show the category name. The category name only shows when I click on the category image on the index page.

Then it shows the url of the category......and that is just something i do not want. :P

My shop has no address-bar at all, because I think there is no need for my custumors to know the addresses of all my shop-files. :w00t:

a fix?

Link to comment
Share on other sites

Guest Allansamson

And maybe a strange question.........

Now this mod changed the title-bar, it also lost the text "powered by CubeCart". :w00t:

Is that allowed? :P

Allan

Link to comment
Share on other sites

Guest resejonte

I would really like a fix to this problem as well. When you navigate through the right table you will not get the real title. Google is indexing the "wrong categorie"

Would really appriciate a solution to this problem.

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

title_mod.zip. The link to this download is broken. Is there another link or does anyone have a copy of the file they can send me. I'm about to eat my own arm in frustration. (will post link to video later) ;)

Link to comment
Share on other sites

title_mod.zip. The link to this download is broken. Is there another link or does anyone have a copy of the file they can send me. I'm about to eat my own arm in frustration. (will post link to video later) ;)

Please make sure you read the whole thread....

Get the Title_Mod here

Mobie

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...