Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Header Tags Controller for Admin MS 2.2


Farrukh

Recommended Posts

Did I make a mistake or is this really true?

 

In admin "Categories / Products" should it not be possible to edit categories and subcategories?

I really did to do that.....

 

Header Tags Category Title

Header Tags Category Description

Header Tags Category Keywords

Header Tags Categories Description

 

all I see is the name of the fields - no edits???

 

Helle :huh:

Link to comment
Share on other sites

  • Replies 4.6k
  • Created
  • Last Reply

Top Posters In This Topic

Try this:

 

Change the "require" statements to "require_once" as so:

 

 require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php');

 

Thanks bkellum - just tried that - got the same "can't redeclare" error message...

 

Product Info is set to HTTA - HTDA - HTKA - HTPA

 

The page outputs the following (note the preceeding " - "):

 

<title> - Botanic Fanatic</title>

<meta name="Description" content=" - Botanic Fanatic:

 

Within the admin there are words defined for Title, desc etc for each product

 

The issue seems to be getting these words to display...

 

I'm sure that another contrib. is clashing with these two in some way... my full list of mods...

 

Ultimate SEO URLS http://www.oscommerce.com/community/contributions,2823

Australian Zones http://www.oscommerce.com/community/contributions,28

Anti Robot Registration http://www.oscommerce.com/community/contributions,1237

STS v4.3.2 with HTC v2.6.0 http://www.oscommerce.com/community/contributions,1524

Login Box Best http://www.oscommerce.com/community/contributions,2538

Dynamic Mopics http://www.oscommerce.com/community/contributions,1114

 

Brain wave - I've applied the "fix" in HTC 2.6.1 - which changes some instances of $updatedDP to $updatedDB in /admin/header_tags_fill_tags.php - it's not meant to be DP is it?

 

BTW Jack - I have followed the install instructions to the letter 3 times... You say to people - give me a detailed report of what's wrong - and when they do you tell them the same thing as you do when they don't... make up your mind dude :P

 

Thanks guys - I do appreciate your help :thumbsup:

Link to comment
Share on other sites

Reverting to the header_tags_fill_tags.php file as supplied with the STS with HTC contrib. has had no impact either way... so strike that brain wave LOL
If your includes/header_tags.php file's first eight lines are as so:

 

 

<?php
/*
 /catalog/includes/header_tags.php
 Add META TAGS and Modify TITLE
*/

require(DIR_WS_FUNCTIONS . 'clean_html_comments.php');
// If you get errors on the above line, use this line instead: require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php');
require(DIR_WS_LANGUAGES . $language . '/' . 'header_tags.php');

Remove the commented line completely:

 

 

// If you get errors on the above line, use this line instead: require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php');

So now your first eight lines of code should be as follows:

 

 

<?php
/*
 /catalog/includes/header_tags.php
 Add META TAGS and Modify TITLE
*/
require(DIR_WS_FUNCTIONS . 'clean_html_comments.php');
require(DIR_WS_LANGUAGES . $language . '/' . 'header_tags.php');
$tags_array = array();

The above edit may seem sily but it will remove any errors caused by empty spaces in the code. If you manually entered your code in the first place, try using the supplied includes/header_tags.php file that came with the contribution.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Hi to all,

I have installes the contribution b2b and have the following problem:

 

I have to do this:

In product_info.php (around line 104)

 

My line look like this:

<td class="pageHeading" valign="top"><?php echo $products_name; ?></td>

<!-- <td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td> -->

<td align="left" class="pageHeading"><?php echo $product_info_values['products_name']; ?></td>

<td align="right" class="tableHeading">

Change this
<td align="left" class="pageHeading"><?php echo $product_info_values['products_name']; ?></td>

to this

<td align="left"><h1><?php echo $product_info_values['products_name']; ?></h1></td>

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Did I make a mistake or is this really true?

 

In admin "Categories / Products" should it not be possible to edit categories and subcategories?

I really did to do that.....

 

Header Tags Category Title

Header Tags Category Description

Header Tags Category Keywords

Header Tags Categories Description

 

all I see is the name of the fields - no edits???

 

Helle :huh:

Click on a category and then on Edit. The Header Tags boxes are displayed there.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

BTW Jack - I have followed the install instructions to the letter 3 times... You say to people - give me a detailed report of what's wrong - and when they do you tell them the same thing as you do when they don't... make up your mind dude :P
I don't know what you mean by this. Do you have an example to illustrate it?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Well yes, yes I do...

 

Saying it just doesn't work is not helpful to anyone. If you would like help in finding the problem, you need to be more specific as to the problem. The Install_Readme_First.txt instructions tell you what to look for in each part of the installation. Where did yours fail?

 

Jack

 

[my orig post]

 

You have to set it up a certain way or it won't work. See the HTC and STS download in the STC contribution section.

 

Jack

 

I'm not trying to start a fight here - :P was designed to tell you it was a tongue in cheek comment from the outset...

 

B)

Link to comment
Share on other sites

I'm not offended - just curious. I still don't see the point though. The first response refers to instructions in the Header Tags documentation and is asking a question. The second is telling you to look in the documentation in the STS contribution. They seem totally different to me.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Change this
<td align="left" class="pageHeading"><?php echo $product_info_values['products_name']; ?></td>

to this

<td align="left"><h1><?php echo $product_info_values['products_name']; ?></h1></td>

 

Jack

 

 

Dear Jack,

Thank you for your help. It worked :lol:

Link to comment
Share on other sites

After reading all of this, ....is this meta tags controller contrib fully working?

I have a fully working site that processes order all day long and don't want it down.

I have over 3,000 products and several people online all the time.

 

Also there is 3 instructions once unzipped:

Install_ReadMe_First.txt

Install_Catalog.TXT

Install_Admin.TXT

...Is there a particular order or just do 1 or what??

 

I only have a few minor contribs done to my site.

Link to comment
Share on other sites

Yes, it is very stable and used in a large number of shops. As for the order, the one that says Install_ReadMe_First.txt, is probably a good choice.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I went to admin->Header Tags->Fill Tags, click on Fill All for

Categories, Manufacturers and Products and then click update.

done

and it does fill in information on the customers side for products = nice!

 

I installed it and double checked everything and it seems to work until..

 

When I am in the admin area and click on Catalog to edit or add items

I get this error in my explorer:

 

Parse error: syntax error, unexpected '}' in /public_html/catalog/admin/categories.php on line 687

 

Here is the code from the file:

684 </table></form>

685<!-- HTC BOC //-->

686<?php

687 } elseif ($action == 'new_product_preview') {

688 if (tep_not_null($HTTP_POST_VARS)) {

689 $pInfo = new objectInfo($HTTP_POST_VARS);

690 $products_name = $HTTP_POST_VARS['products_name'];

691 $products_description = $HTTP_POST_VARS['products_description'];

692 $products_head_title_tag = $HTTP_POST_VARS['products_head_title_tag'];

693 $products_head_desc_tag = $HTTP_POST_VARS['products_head_desc_tag'];

694 $products_head_keywords_tag = $HTTP_POST_VARS['products_head_keywords_tag'];

695 $products_url = $HTTP_POST_VARS['products_url'];

696 } else {

697 $product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_head_title_tag, pd.products_head_desc_tag, pd.products_head_keywords_tag, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "'");

698 $product = tep_db_fetch_array($product_query);

699 // HTC EOC

700 $pInfo = new objectInfo($product);

701 $products_image_name = $pInfo->products_image;

702 }

703 $form_action = (isset($HTTP_GET_VARS['pID'])) ? 'update_product' : 'insert_product';

 

 

What's wrong as I can't get into my products... ouch

Link to comment
Share on other sites

That kind of error doesn't necessarily pinpoint the line at fault. It does mean there is a mistake in your categories.php file though so you can compare yours to the included one to find the problem.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I uploaded the one from your files and all works fine now, thanks.

bravo!

 

Now I will have to redo the Ultimate SEO URLs contrib.

I wonder if that is causing a conflict with your Header tag contrib.

Link to comment
Share on other sites

It is in the install instructions for Ultimate SEO.

 

Jack

 

I downloaded it again and I looked all through the instructions.

Where do you see it in the instructions?

Please just explain to me waht I need to do.

Thank you.

Link to comment
Share on other sites

The instructions clearly state to insert code into the categories file (unless you have some partial package, I suppose). In any event, this is the thread for Header Tags. You need to ask in the Ultimate SEO support thread for help with that contribution.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The instructions clearly state to insert code into the categories file (unless you have some partial package, I suppose). In any event, this is the thread for Header Tags. You need to ask in the Ultimate SEO support thread for help with that contribution.

 

Jack

 

Hey Jack, obviously you are not following what I am saying.

 

I already had the SEO URL contrib installed for awhile and working fine, which includes modyfying categories.When I installed YOUR header tags controller contrib is when I starting getting the error.

I am trying to get your package to work flawlessly with my already installed SEO URL contrib.

 

If just use your categories file by itself it works fine

Or if I just use the SEO URL modified categories file it works fine

BUT if I add your Header tags modifications to the SEO URL category file then I get the error.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...