Zen Cart Logo
Forums / Addon Sideboxes / Link exchange sidebox and page-text customization

Link exchange sidebox and page-text customization

Locked

Views: 4,848

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
12 Jul 2008, 3:23 PM
#1
moksha avatar

moksha

New Zenner

Join Date:
Apr 2008
Posts:
73
Plugin Contributions:
0

Link exchange sidebox and page-text customization

Hello,

I've created a new thread 'cause can't find much info on this.
I've recently activated the "links" sidebox for links exchange. It works fine but have noticed a few problems with the text definitions and with the popup help boxes on the submission and link pages:

  1. Here: http://www.thequintessence.biz/index.php?main_page=links_submit

I found this line in my includes/languages/english/links_submit.php:

define('TEXT_MAIN', 'Please fill out the following form to submit your website.')

but the text doesn't appear on the page. Do you know why?
Then, on the same page, when clicking on the popup help link, the box that appears has a black background and no text in it (even if defined in my links_submit.php). Where can I fix this?

  1. Here: http://www.thequintessence.biz/index.php?main_page=links

I'd like to add an explanatory text at the top of the page. How can I do this?

  1. Admin>extras>link categories. I've added a description to each of my categories but none of them appear when I click on the category links on my site. Why is this?

Sorry if I've listed so many problems, but thought it would be best to include them all in the same post to this forum seeing they are related.

Thanx for any help!

12 Jul 2008, 7:11 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Link exchange sidebox and page-text customization

moksha:

Hello,

I've created a new thread 'cause can't find much info on this.
I've recently activated the "links" sidebox for links exchange. It works fine but have noticed a few problems with the text definitions and with the popup help boxes on the submission and link pages:

  1. Here: http://www.thequintessence.biz/index.php?main_page=links_submit

I found this line in my includes/languages/english/links_submit.php:

define('TEXT_MAIN', 'Please fill out the following form to submit your website.')

but the text doesn't appear on the page. Do you know why?
Then, on the same page, when clicking on the popup help link, the box that appears has a black background and no text in it (even if defined in my links_submit.php). Where can I fix this?

  1. Here: http://www.thequintessence.biz/index.php?main_page=links

I'd like to add an explanatory text at the top of the page. How can I do this?

  1. Admin>extras>link categories. I've added a description to each of my categories but none of them appear when I click on the category links on my site. Why is this?

Sorry if I've listed so many problems, but thought it would be best to include them all in the same post to this forum seeing they are related.

Thanx for any help!

It appears that you are not using the most recent version of Links Manager (3.4.0)

The problems you are experiencing have been addressed in this latest version.

13 Jul 2008, 12:14 AM
#3
moksha avatar

moksha

New Zenner

Join Date:
Apr 2008
Posts:
73
Plugin Contributions:
0

Re: Link exchange sidebox and page-text customization

Thanx for your reply! Ok, have downloaded the last version. But I've never used the sql patches tool before... how do I copy the code in the sql file, can't seem to open it... can I upload the sql file in the box below the query field?
After running the sql file must I upload via FTP all the files included in the links manager folder or only those related to YOUR TEMPLATE?
What a learning curve...

13 Jul 2008, 12:23 AM
#4
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Link exchange sidebox and page-text customization

moksha:

Thanx for your reply! Ok, have downloaded the last version. But I've never used the sql patches tool before... how do I copy the code in the sql file, can't seem to open it... can I upload the sql file in the box below the query field?
After running the sql file must I upload via FTP all the files included in the links manager folder or only those related to YOUR TEMPLATE?
What a learning curve...

You can open the sql file with any text editor.

You should upload ALL files and folders included

Open the zip file

run the included sql patch using the Zen-Cart Sql Patches tool
(admin -> tools -> install sql patches)
For best results, cut-and-paste the code into the query field and press 'Send'.

Before uploading change the YOUR_TEMPLATE directories to match the name of your custom directory.

includes/languages/english/YOUR_TEMPLATE
includes/languages/english/extra_definitions/YOUR_TEMPLATE
includes/languages/english/html_includes/YOUR_TEMPLATE
includes/modules/YOUR_TEMPLATE
includes/modules/sideboxes/YOUR_TEMPLATE
includes/templates/YOUR_TEMPLATE/

The files are arranged in the same structure as Zen Cart so you can FTP the admin and includes directories to your server.

13 Jul 2008, 1:55 AM
#5
moksha avatar

moksha

New Zenner

Join Date:
Apr 2008
Posts:
73
Plugin Contributions:
0

Re: Link exchange sidebox and page-text customization

Thanx clydejones, now I can read the file (sometimes I just can't get to the obvious!). I'll try upgrading now... cross fingers for me!
Thanx again!! :))

15 Jul 2008, 1:38 AM
#6
moksha avatar

moksha

New Zenner

Join Date:
Apr 2008
Posts:
73
Plugin Contributions:
0

Re: Link exchange sidebox and page-text customization

I made such an idiotic mistake... I first made the "uninstall" sql patch run (don't ask me why)!! After doing this I ran the "upgrade" sql patch and uploaded all the files included in the upgrade folder... but when refreshing my site's page half of the site was obviously gone! So I restored my backup file and everything went back into place... except for the category links... when clicking on them from the links box now I get this message:

"1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
in:
[select count(l.links_id) as total from links_description ld, links l, links_to_link_categories l2lc where l.links_status = '2' and l.links_id = l2lc.links_id and ld.links_id = l2lc.links_id and ld.language_id = '1' and l2lc.link_categories_id = '2'order by ]"

Running the uninstall sql patch first must have deleted something necessary for the upgrading process... I think. How can I fix this?

HELP!! :(

http://www.thequintessence.biz/index.php?lPath=2&main_page=links

(MySQL server version: 5.0.51a; Zen Cart version: 1.3.8... don't know if this can help...)

15 Jul 2008, 2:57 AM
#7
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Link exchange sidebox and page-text customization

moksha:

I made such an idiotic mistake... I first made the "uninstall" sql patch run (don't ask me why)!! After doing this I ran the "upgrade" sql patch and uploaded all the files included in the upgrade folder... but when refreshing my site's page half of the site was obviously gone! So I restored my backup file and everything went back into place... except for the category links... when clicking on them from the links box now I get this message:

"1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
in:
[select count(l.links_id) as total from links_description ld, links l, links_to_link_categories l2lc where l.links_status = '2' and l.links_id = l2lc.links_id and ld.links_id = l2lc.links_id and ld.language_id = '1' and l2lc.link_categories_id = '2'order by ]"

Running the uninstall sql patch first must have deleted something necessary for the upgrading process... I think. How can I fix this?

HELP!! :(

http://www.thequintessence.biz/index.php?lPath=2&main_page=links

(MySQL server version: 5.0.51a; Zen Cart version: 1.3.8... don't know if this can help...)

Uninstall does exactly what it says - it will uninstall everything.

Since you restored a backup

Open the upgrade folder and run the update_links_manager.sql

15 Jul 2008, 3:23 AM
#8
moksha avatar

moksha

New Zenner

Join Date:
Apr 2008
Posts:
73
Plugin Contributions:
0

Re: Link exchange sidebox and page-text customization

It works! I knew you could fix this. You're great!!
Thanx SO MUCH!

15 Jul 2008, 11:40 AM
#9
moksha avatar

moksha

New Zenner

Join Date:
Apr 2008
Posts:
73
Plugin Contributions:
0

Re: Link exchange sidebox and page-text customization

Ok, have added a few descriptions on the links pages now... but here:

http://www.thequintessence.biz/index.php?main_page=links_submit

... the whole info box has disaligned the right side of my site, I think it's too wide. Where can I change the box size and the font style? (I'm using comic sans).

Then, in the links help popup box the black background is still there and you can't read the text. Must I add some code in my stylesheet to fix this?

Also, here:

http://www.thequintessence.biz/index.php?main_page=links

... the category links aren't properly aligned. Don't have a clue what to do here.

Thanx for any suggestion! :)

15 Jul 2008, 12:58 PM
#10
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Link exchange sidebox and page-text customization

moksha:

Ok, have added a few descriptions on the links pages now... but here:

http://www.thequintessence.biz/index.php?main_page=links_submit

... the whole info box has disaligned the right side of my site, I think it's too wide. Where can I change the box size and the font style? (I'm using comic sans).

Then, in the links help popup box the black background is still there and you can't read the text. Must I add some code in my stylesheet to fix this?

Also, here:

http://www.thequintessence.biz/index.php?main_page=links

... the category links aren't properly aligned. Don't have a clue what to do here.

Thanx for any suggestion! :)

I checked the links you mentioned in (FF, Opera, Safari, and IE7) and didn't notice any misalignment(s)

To change the font style, open the links.css and links_submit.css stylesheets and make your necessary edits.

15 Jul 2008, 10:52 PM
#11
moksha avatar

moksha

New Zenner

Join Date:
Apr 2008
Posts:
73
Plugin Contributions:
0

Re: Link exchange sidebox and page-text customization

Strange, 'cause I also use IE7 and can see the misalignments... haven't you noticed the right sideboxes falling out a little from the main body on the "Links submission" page (https://web52.secure-secure.co.uk/thequintessence.biz/index.php?main_page=links_submit&zenid=c0ea2bc656f57f784f18e08f2ccd982f%29? I can see this right under my "who's online" box and on top of the "currencies" box...

Also, on the "View All Links" page (http://www.thequintessence.biz/index.php?main_page=links&zenid=c0ea2bc656f57f784f18e08f2ccd982f), the link "eShops" should be under "Blogs"; "Information" under "Clothes and Costumes"; and "Services" under "Directories"... they seem to appear one after the other but as if missing a step...

What can I do for that black background in the "Links Help" popup boxes, clyde?

Thanx for the css tip, I've changed the font style... it's looking good :)

15 Jul 2008, 11:15 PM
#12
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Link exchange sidebox and page-text customization

Here are two print screen views of the two pages in question.

Maybe try clearing your browser cache and refreshing the page(s)

[Attachment no longer available]

[Attachment no longer available]

16 Jul 2008, 3:12 PM
#13
moksha avatar

moksha

New Zenner

Join Date:
Apr 2008
Posts:
73
Plugin Contributions:
0

Re: Link exchange sidebox and page-text customization

Yes, it was the browser cache alright. Now both pages are displaying ok. I've also solved the popup black background problem, just added this code in my stylesheet:

#popupLinksHelp {
background-color: #ffffff;
}

Thanx for supporting me, clydejones!! :)

10 Aug 2008, 8:09 PM
#14
ooakllc avatar

ooakllc

New Zenner

Join Date:
Feb 2008
Location:
L.I., N.Y.
Posts:
47
Plugin Contributions:
0

Re: Link exchange sidebox and page-text customization

Trying to install links manager and have the following problems:
-downloaded all files after renaming, checked and they appear to be in correct locations.
-(copied the sql file begining here, is this ok? SET @configuration_group_id=0;
I did not copy the ###.. at the begining). Then installed using "install sql patches". Got a 1064 error line 1, below:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
in:
[INSERT INTO zen_configuration VALUES (NULL, 'Links Box - Display View All Links', 'BOX_DISPLAY_VIEW_ALL_LINKS', 'true', 'Display View All Links on Links Sidebox', @configuration_group_id, 1, NULL, now(), NULL, 'zen_cfg_select_option(array(NULL, ''true'', ''false''), '), (NULL, 'Links Box - Display Submit Link', 'BOX_DISPLAY_SUBMIT_LINK', 'true', 'Display Submit Link on Sidebox', @configuration_group_id, 2, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Display Description As Link', 'DISPLAY_LINK_DESCRIPTION_AS_LINK', 'false', 'Display the links description as a link', @configuration_group_id, 3, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Enable Click Count', 'ENABLE_LINKS_COUNT', 'true', 'Enable links click count.', @configuration_group_id, 4, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Submit Link - Require Reciprocal Page', 'SUBMIT_LINK_REQUIRE_RECIPROCAL', 'true', 'Require Reciprocal Page on Links Submit', @configuration_group_id, 5, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Display Link Banner Image', 'LINK_LIST_IMAGE', '1', 'Do you want to display the Link Banner Image?', @configuration_group_id, 6, NULL, now(), NULL, NULL), (NULL, 'Display Link Description', 'LINK_LIST_DESCRIPTION', '2', 'Do you want to display the Link Description?', @configuration_group_id, 7, NULL, now(), NULL, NULL), (NULL, 'Display Link Click Count', 'LINK_LIST_COUNT', '3', 'Do you want to display the Link Click Count?', @configuration_group_id, 8, NULL, now(), NULL, NULL), (NULL, 'Link Title Minimum Length', 'ENTRY_LINKS_TITLE_MIN_LENGTH', '2', 'Minimum length of link title.', @configuration_group_id, 9, NULL, now(), NULL, NULL), (NULL, 'Link URL Minimum Length', 'ENTRY_LINKS_URL_MIN_LENGTH', '10', 'Minimum length of link URL.', @configuration_group_id, 10, NULL, now(), NULL, NULL), (NULL, 'Link Description Minimum Length', 'ENTRY_LINKS_DESCRIPTION_MIN_LENGTH', '10', 'Minimum length of link description.', @configuration_group_id, 11, NULL, now(), NULL, NULL), (NULL, 'Link Contact Name Minimum Length', 'ENTRY_LINKS_CONTACT_NAME_MIN_LENGTH', '2', 'Minimum length of link contact name.', @configuration_group_id, 12, NULL, now(), NULL, NULL), (NULL, 'Links Check Phrase', 'LINKS_CHECK_PHRASE', 'yoursitename', 'Phrase to look for, when you perform a link check.', @configuration_group_id, 13, NULL, now(), NULL, NULL), (NULL, 'Links List - Scroll Box Size/Style', 'MAX_LINKS_LIST', '3', 'Number of link category names to be displayed in the scroll box window. Setting this to 1 or 0 will display a dropdown list', @configuration_group_id, 14, NULL, now(), NULL, NULL), (NULL, 'Length of Link Categories Name', 'MAX_DISPLAY_LINK_NAME_LEN', '20', 'Used in links box; maximum length of link category name to display. Longer names will be truncated.', @configuration_group_id, 15, NULL, now(), NULL, NULL), (NULL, 'Select Links Sort Order', 'DEFINE_SORT_ORDER', '1', 'Define the sort order of the links
1= Sort by Title
2= Sort by Date (Newest to Oldest)
3= Sort by number of clicks (highest to lowest)', @configuration_group_id, 16, NULL, now(), NULL, 'zen_cfg_select_option(array(''1'', ''2'', ''3''),'), (NULL, 'Number of Link Categories Per Row - Default is 3', 'MAX_LINK_CATEGORIES_ROW', '3', 'Used to display Link Categories per row.
Default is 3', @configuration_group_id, 17, NULL, now(), NULL, NULL), (NULL, 'Link Category Image Directory', 'LINK_CATEGORY_IMAGE_DIRECTORY', 'link_category/', 'Set the Directory for the Category Image', @configuration_group_id, 18, NULL, now(), NULL, NULL), (NULL, 'Image - Link Category Height', 'LINK_CATEGORY_IMAGE_HEIGHT', '80', 'The pixel width of Link Category images', @configuration_group_id, 19, NULL, now(), NULL, NULL), (NULL, 'Image - Link Category Width', 'LINK_CATEGORY_IMAGE_WIDTH', '80', 'The pixel width of Link Category images', @configuration_group_id, 20, NULL, now(), NULL, NULL), (NULL, 'Link Image Directory', 'LINK_IMAGE_DIRECTORY', 'links_image/', 'Set the Directory for the Link Image', @configuration_group_id, 21, NULL, now(), NULL, NULL), (NULL, 'Image - Link Image Width', 'LINK_IMAGE_WIDTH', '150', 'The pixel width of Link images', @configuration_group_id, 22, NULL, now(), NULL, NULL), (NULL, 'Image - Link Image Height', 'LINK_IMAGE_HEIGHT', '30', 'The pixel height of Link images', @configuration_group_id, 23, NULL, now(), NULL, NULL), (NULL, 'Default Link Image', 'DEFAULT_LINK_IMAGE', 'links_default.jpg', 'Set the Default Link Image', @configuration_group_id, 24, NULL, now(), NULL, NULL), (NULL,'Only registered customers may submit a Link', 'REGISTERED_LINK', 'false', 'Only registered customers may submit a Link', @configuration_group_id, 25, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),'), ;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Result-
-There is a links manager under config. in my Admin panel.

-Under extras -> links I get :
1146 Table 'xxxxxx_zc1.zen_links' doesn't exist
in:
[select count(*) as total from zen_links l left join zen_links_description ld on l.links_id = ld.links_id where ld.language_id = '1']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

-Under extras->links catagories I get:
1146 Table 'xxxxxx_zc1.zen_link_categories' doesn't exist
in:
[select count(*) as total from zen_link_categories lc left join zen_link_categories_description lcd on lc.link_categories_id = lcd.link_categories_id where lcd.language_id = '1']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

-Under extras->links contact I get:
1146 Table 'xxxxxx_zc1.zen_links' doesn't exist
in:
[select distinct links_contact_email, links_contact_name from zen_links order by links_contact_name]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Best I can tell I did everything correctly. Any advice appreciated.
Thanks in advance OOAK

10 Aug 2008, 8:30 PM
#15
ooakllc avatar

ooakllc

New Zenner

Join Date:
Feb 2008
Location:
L.I., N.Y.
Posts:
47
Plugin Contributions:
0

Re: Link exchange sidebox and page-text customization

ooakllc:

Trying to install links manager and have the following problems:
-downloaded all files after renaming, checked and they appear to be in correct locations.
-(copied the sql file begining here, is this ok? SET @configuration_group_id=0;
I did not copy the ###.. at the begining). Then installed using "install sql patches". Got a 1064 error line 1, below:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
in:
[INSERT INTO zen_configuration VALUES (NULL, 'Links Box - Display View All Links', 'BOX_DISPLAY_VIEW_ALL_LINKS', 'true', 'Display View All Links on Links Sidebox', @configuration_group_id, 1, NULL, now(), NULL, 'zen_cfg_select_option(array(NULL, ''true'', ''false''), '), (NULL, 'Links Box - Display Submit Link', 'BOX_DISPLAY_SUBMIT_LINK', 'true', 'Display Submit Link on Sidebox', @configuration_group_id, 2, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Display Description As Link', 'DISPLAY_LINK_DESCRIPTION_AS_LINK', 'false', 'Display the links description as a link', @configuration_group_id, 3, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Enable Click Count', 'ENABLE_LINKS_COUNT', 'true', 'Enable links click count.', @configuration_group_id, 4, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Submit Link - Require Reciprocal Page', 'SUBMIT_LINK_REQUIRE_RECIPROCAL', 'true', 'Require Reciprocal Page on Links Submit', @configuration_group_id, 5, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), '), (NULL, 'Display Link Banner Image', 'LINK_LIST_IMAGE', '1', 'Do you want to display the Link Banner Image?', @configuration_group_id, 6, NULL, now(), NULL, NULL), (NULL, 'Display Link Description', 'LINK_LIST_DESCRIPTION', '2', 'Do you want to display the Link Description?', @configuration_group_id, 7, NULL, now(), NULL, NULL), (NULL, 'Display Link Click Count', 'LINK_LIST_COUNT', '3', 'Do you want to display the Link Click Count?', @configuration_group_id, 8, NULL, now(), NULL, NULL), (NULL, 'Link Title Minimum Length', 'ENTRY_LINKS_TITLE_MIN_LENGTH', '2', 'Minimum length of link title.', @configuration_group_id, 9, NULL, now(), NULL, NULL), (NULL, 'Link URL Minimum Length', 'ENTRY_LINKS_URL_MIN_LENGTH', '10', 'Minimum length of link URL.', @configuration_group_id, 10, NULL, now(), NULL, NULL), (NULL, 'Link Description Minimum Length', 'ENTRY_LINKS_DESCRIPTION_MIN_LENGTH', '10', 'Minimum length of link description.', @configuration_group_id, 11, NULL, now(), NULL, NULL), (NULL, 'Link Contact Name Minimum Length', 'ENTRY_LINKS_CONTACT_NAME_MIN_LENGTH', '2', 'Minimum length of link contact name.', @configuration_group_id, 12, NULL, now(), NULL, NULL), (NULL, 'Links Check Phrase', 'LINKS_CHECK_PHRASE', 'yoursitename', 'Phrase to look for, when you perform a link check.', @configuration_group_id, 13, NULL, now(), NULL, NULL), (NULL, 'Links List - Scroll Box Size/Style', 'MAX_LINKS_LIST', '3', 'Number of link category names to be displayed in the scroll box window. Setting this to 1 or 0 will display a dropdown list', @configuration_group_id, 14, NULL, now(), NULL, NULL), (NULL, 'Length of Link Categories Name', 'MAX_DISPLAY_LINK_NAME_LEN', '20', 'Used in links box; maximum length of link category name to display. Longer names will be truncated.', @configuration_group_id, 15, NULL, now(), NULL, NULL), (NULL, 'Select Links Sort Order', 'DEFINE_SORT_ORDER', '1', 'Define the sort order of the links
1= Sort by Title
2= Sort by Date (Newest to Oldest)
3= Sort by number of clicks (highest to lowest)', @configuration_group_id, 16, NULL, now(), NULL, 'zen_cfg_select_option(array(''1'', ''2'', ''3''),'), (NULL, 'Number of Link Categories Per Row - Default is 3', 'MAX_LINK_CATEGORIES_ROW', '3', 'Used to display Link Categories per row.
Default is 3', @configuration_group_id, 17, NULL, now(), NULL, NULL), (NULL, 'Link Category Image Directory', 'LINK_CATEGORY_IMAGE_DIRECTORY', 'link_category/', 'Set the Directory for the Category Image', @configuration_group_id, 18, NULL, now(), NULL, NULL), (NULL, 'Image - Link Category Height', 'LINK_CATEGORY_IMAGE_HEIGHT', '80', 'The pixel width of Link Category images', @configuration_group_id, 19, NULL, now(), NULL, NULL), (NULL, 'Image - Link Category Width', 'LINK_CATEGORY_IMAGE_WIDTH', '80', 'The pixel width of Link Category images', @configuration_group_id, 20, NULL, now(), NULL, NULL), (NULL, 'Link Image Directory', 'LINK_IMAGE_DIRECTORY', 'links_image/', 'Set the Directory for the Link Image', @configuration_group_id, 21, NULL, now(), NULL, NULL), (NULL, 'Image - Link Image Width', 'LINK_IMAGE_WIDTH', '150', 'The pixel width of Link images', @configuration_group_id, 22, NULL, now(), NULL, NULL), (NULL, 'Image - Link Image Height', 'LINK_IMAGE_HEIGHT', '30', 'The pixel height of Link images', @configuration_group_id, 23, NULL, now(), NULL, NULL), (NULL, 'Default Link Image', 'DEFAULT_LINK_IMAGE', 'links_default.jpg', 'Set the Default Link Image', @configuration_group_id, 24, NULL, now(), NULL, NULL), (NULL,'Only registered customers may submit a Link', 'REGISTERED_LINK', 'false', 'Only registered customers may submit a Link', @configuration_group_id, 25, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),'), ;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Result-
-There is a links manager under config. in my Admin panel.

-Under extras -> links I get :
1146 Table 'xxxxxx_zc1.zen_links' doesn't exist
in:
[select count(*) as total from zen_links l left join zen_links_description ld on l.links_id = ld.links_id where ld.language_id = '1']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

-Under extras->links catagories I get:
1146 Table 'xxxxxx_zc1.zen_link_categories' doesn't exist
in:
[select count(*) as total from zen_link_categories lc left join zen_link_categories_description lcd on lc.link_categories_id = lcd.link_categories_id where lcd.language_id = '1']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

-Under extras->links contact I get:
1146 Table 'xxxxxx_zc1.zen_links' doesn't exist
in:
[select distinct links_contact_email, links_contact_name from zen_links order by links_contact_name]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Best I can tell I did everything correctly. Any advice appreciated.
Thanks in advance OOAK

Please disregard the 1064 error, line 1 in above post. Found a fix in the forum post #95 thanks.

the remaining problems still exist---the tables don't exist. could still use some help with this.
Thanks

10 Aug 2008, 11:42 PM
#16
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Link exchange sidebox and page-text customization

ooakllc:

Please disregard the 1064 error, line 1 in above post. Found a fix in the forum post #95 thanks.

the remaining problems still exist---the tables don't exist. could still use some help with this.
Thanks

Run the following sql patch using the Zen-Cart Sql Patches tool
(admin -> tools -> install sql patches)
copy-and-paste the code into the query field and press 'Send'.

DROP TABLE IF EXISTS `links`;
CREATE TABLE links (
  `links_id` int(11) NOT NULL auto_increment,
  `links_url` varchar(255) default NULL,
  `links_reciprocal_url` varchar(255) default NULL,
  `links_image_url` varchar(255) default NULL,
  `links_contact_name` varchar(64) default NULL,
  `links_contact_email` varchar(96) default NULL,
  `links_date_added` datetime NOT NULL default '0000-00-00 00:00:00',
  `links_last_modified` datetime default NULL,
  `links_status` tinyint(1) NOT NULL default '1',
  `links_clicked` int(11) NOT NULL default '0',
  `links_rating` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`links_id`),
  KEY `idx_links_date_added` (`links_date_added`)
) TYPE=MyISAM ;

INSERT INTO `links` VALUES (1, 'http://mysticmountainnaturals.com/testsite', 'http://mysticmountainnaturals.com/testsite', 'links_image/testsite.jpg', 'Clyde Jones', '[email protected]', now(), NULL, 2, 0, 0);

DROP TABLE IF EXISTS `links_description`;
CREATE TABLE `links_description` (
  `links_id` int(11) NOT NULL auto_increment,
  `language_id` int(11) NOT NULL default '1',
  `links_title` varchar(64) NOT NULL default '',
  `links_description` text,
  PRIMARY KEY  (`links_id`,`language_id`),
  KEY `links_title` (`links_title`)
) ENGINE=MyISAM ;

INSERT INTO `links_description` VALUES (1, 1, 'Clyde\'s Test Site', 'Zen Cart™ concepts & modifications');

DROP TABLE IF EXISTS `links_status`;
CREATE TABLE `links_status` (
  `links_status_id` int(11) NOT NULL default '0',
  `language_id` int(11) NOT NULL default '1',
  `links_status_name` varchar(32) NOT NULL default '',
  PRIMARY KEY  (`links_status_id`,`language_id`),
  KEY `idx_links_status_name` (`links_status_name`)
) ENGINE=MyISAM;

INSERT INTO `links_status` VALUES (1, 1, 'Pending');
INSERT INTO `links_status` VALUES (2, 1, 'Approved');
INSERT INTO `links_status` VALUES (3, 1, 'Disabled');

DROP TABLE IF EXISTS `links_to_link_categories`;
CREATE TABLE `links_to_link_categories` (
  `links_id` int(11) NOT NULL auto_increment,
  `link_categories_id` int(11) NOT NULL default '0',
  PRIMARY KEY  (`links_id`,`link_categories_id`)
) ENGINE=MyISAM;

INSERT INTO `links_to_link_categories` VALUES (1, 1);

DROP TABLE IF EXISTS `link_categories`;
CREATE TABLE `link_categories` (
  `link_categories_id` int(11) NOT NULL auto_increment,
  `link_categories_image` varchar(64) default NULL,
  `link_categories_sort_order` int(3) default NULL,
  `link_categories_date_added` datetime default NULL,
  `link_categories_last_modified` datetime default NULL,
  `link_categories_status` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`link_categories_id`),
  KEY `idx_link_categories_date_added` (`link_categories_date_added`)
) ENGINE=MyISAM;

INSERT INTO `link_categories` VALUES (1, 'link_category/zencart.png', 1, now(), NULL, 1);

DROP TABLE IF EXISTS `link_categories_description`;
CREATE TABLE `link_categories_description` (
  `link_categories_id` int(11) NOT NULL default '1',
  `language_id` int(11) NOT NULL default '1',
  `link_categories_name` varchar(40) NOT NULL default '',
  `link_categories_description` text,
  PRIMARY KEY  (`link_categories_id`,`language_id`),
  KEY `idx_link_categories_name` (`link_categories_name`)
) ENGINE=MyISAM;

INSERT INTO `link_categories_description` VALUES (1, 1, 'Zen-Cart Development', '');
11 Aug 2008, 12:24 AM
#17
ooakllc avatar

ooakllc

New Zenner

Join Date:
Feb 2008
Location:
L.I., N.Y.
Posts:
47
Plugin Contributions:
0

Re: Link exchange sidebox and page-text customization

I know it's not magic but.....all the tables are now present under "extras" as per your new sql patch.

If you will, could you briefly tell me what I did incorrectly?
Many thanks Clyde for your mod and your unending help at zen cart.
OOAK:smile:

11 Aug 2008, 4:42 AM
#18
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Link exchange sidebox and page-text customization

ooakllc:

I know it's not magic but.....all the tables are now present under "extras" as per your new sql patch.

If you will, could you briefly tell me what I did incorrectly?
Many thanks Clyde for your mod and your unending help at zen cart.
OOAK:smile:

I'm not sure what happened but I'm guessing that after you got the first error and then found the fix that you didn't check the rest of the original sql statement which also contains the information for the creation of the tables.

11 Aug 2008, 2:15 PM
#19
ooakllc avatar

ooakllc

New Zenner

Join Date:
Feb 2008
Location:
L.I., N.Y.
Posts:
47
Plugin Contributions:
0

Re: Link exchange sidebox and page-text customization

Your right I didn't check the sql file after the first fix.
Thank you for your help, all works and I'm looking forward to utilizing this feature.
OOAK

2 Oct 2009, 6:49 AM
#20
dfmc avatar

dfmc

New Zenner

Join Date:
Mar 2008
Posts:
29
Plugin Contributions:
0

Re: Link exchange sidebox and page-text customization

clydejones:

Run the following sql patch using the Zen-Cart Sql Patches tool
(admin -> tools -> install sql patches)
copy-and-paste the code into the query field and press 'Send'.

DROP TABLE IF EXISTS links;
CREATE TABLE links (
links_id int(11) NOT NULL auto_increment,
links_url varchar(255) default NULL,
links_reciprocal_url varchar(255) default NULL,
links_image_url varchar(255) default NULL,
links_contact_name varchar(64) default NULL,
links_contact_email varchar(96) default NULL,
links_date_added datetime NOT NULL default '0000-00-00 00:00:00',
links_last_modified datetime default NULL,
links_status tinyint(1) NOT NULL default '1',
links_clicked int(11) NOT NULL default '0',
links_rating tinyint(1) NOT NULL default '0',
PRIMARY KEY (links_id),
KEY idx_links_date_added (links_date_added)
) TYPE=MyISAM ;

INSERT INTO links VALUES (1, 'http://mysticmountainnaturals.com/testsite', 'http://mysticmountainnaturals.com/testsite', 'links_image/testsite.jpg', 'Clyde Jones', 'clydejones##########################', now(), NULL, 2, 0, 0);

DROP TABLE IF EXISTS links_description;
CREATE TABLE links_description (
links_id int(11) NOT NULL auto_increment,
language_id int(11) NOT NULL default '1',
links_title varchar(64) NOT NULL default '',
links_description text,
PRIMARY KEY (links_id,language_id),
KEY links_title (links_title)
) ENGINE=MyISAM ;

INSERT INTO links_description VALUES (1, 1, 'Clyde's Test Site', 'Zen Cart™ concepts & modifications');

DROP TABLE IF EXISTS links_status;
CREATE TABLE links_status (
links_status_id int(11) NOT NULL default '0',
language_id int(11) NOT NULL default '1',
links_status_name varchar(32) NOT NULL default '',
PRIMARY KEY (links_status_id,language_id),
KEY idx_links_status_name (links_status_name)
) ENGINE=MyISAM;

INSERT INTO links_status VALUES (1, 1, 'Pending');
INSERT INTO links_status VALUES (2, 1, 'Approved');
INSERT INTO links_status VALUES (3, 1, 'Disabled');

DROP TABLE IF EXISTS links_to_link_categories;
CREATE TABLE links_to_link_categories (
links_id int(11) NOT NULL auto_increment,
link_categories_id int(11) NOT NULL default '0',
PRIMARY KEY (links_id,link_categories_id)
) ENGINE=MyISAM;

INSERT INTO links_to_link_categories VALUES (1, 1);

DROP TABLE IF EXISTS link_categories;
CREATE TABLE link_categories (
link_categories_id int(11) NOT NULL auto_increment,
link_categories_image varchar(64) default NULL,
link_categories_sort_order int(3) default NULL,
link_categories_date_added datetime default NULL,
link_categories_last_modified datetime default NULL,
link_categories_status tinyint(1) NOT NULL default '0',
PRIMARY KEY (link_categories_id),
KEY idx_link_categories_date_added (link_categories_date_added)
) ENGINE=MyISAM;

INSERT INTO link_categories VALUES (1, 'link_category/zencart.png', 1, now(), NULL, 1);

DROP TABLE IF EXISTS link_categories_description;
CREATE TABLE link_categories_description (
link_categories_id int(11) NOT NULL default '1',
language_id int(11) NOT NULL default '1',
link_categories_name varchar(40) NOT NULL default '',
link_categories_description text,
PRIMARY KEY (link_categories_id,language_id),
KEY idx_link_categories_name (link_categories_name)
) ENGINE=MyISAM;

INSERT INTO link_categories_description VALUES (1, 1, 'Zen-Cart Development', '');

 
I had similar issues when I installed this mod (v3-5-1) from the "New Install" files.  I'm quite happy to report, the fix above did the trick and I can now get to the Links & Link Categories under the admin > Extras tab now and it all seems to be working just dandy.
 
Thanks for all of your hard work and help with getting things running smoothly!  I do appreciate it!