Community Add-Ons
Links Manager For OSC v0.20
for osCommerce Online Merchant v2.2
This program enables display and management of a categorized list of links to other websites. You can add/edit/delete/enable/disable links and categories from the admin interface.
It also includes a link submit form, where users can submit links and request you to add them to your list.
This add-on was developed and tested on OSC v2.2 MS1 release.
Legend:
Download
Report
This contribution has been repleaced by the version at http://www.oscommerce.com/community/contributions,5272
I added a place where I can place my website's banner link on the page that gives my website information. I thought that this was fair since other people can add their banner to my link exchange.
I took the last fixes and put them to one version...
updated readme file, put the "German Translation, 'Our Link-Information' in OSC Config, Reorder Pics" together with further versions and added the beginning of a spanish translation...
made some changes to translation.
Took me some hours...
I tested it and it is working fine....
I would like to exchange links with german shops:
www.artesanias.de
live shop, don't use it for tests!
If LINKS_RECIPROCAL_REQUIRED is False then links_reciprocal_url will be empty. The current query will flag all the reciprocal URLs as duplicates. Fixed with the indicated changes to links_submit.php.
I noticed after doing an update, that there was a missing database option and has been missing from a few versions.
Run this extra MySql statement to get control over the categories diplayed per row.
INSERT INTO `configuration` VALUES (2140, 'Categories To List Per Row', 'MAX_DISPLAY_CATEGORIES_PER_ROW', '3', 'How many Link categories to list per row', 6502, 20, '2006-12-10 15:10:49', '2003-07-19 00:52:14', NULL, NULL);
Hopefully this will get re-included in future full updates,
No files included here,just the above.
Cheers
This is a fix for the catalog/links.php where the first line in a categorie is in the english language instead of the user language!
If you are running PHP5 and/or MySQL 5 you may be getting warning messages in your links.php file in the ADMIN section after pushing new link.
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /admin/links.php on line ---
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /admin/links.php on line ---
Warning: reset() [function.reset]: Passed variable is not an array or object in /admin/includes/classes/object_info.php on line --
Warning: Variable passed to each() is not an array or object in /admin/includes/classes/object_info.php on line --
or something similar.
To fix this problem access you /catalog/admin/links.php file.
FIND: The following lines of code.
Depending on your version the line numbers are different.
$category = tep_db_fetch_array($categories_query);
$lInfo_array = array_merge($links, $category);
$lInfo = new objectInfo($lInfo_array);
}
}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
CHANGE THIS:
$lInfo_array = array_merge($links, $category);
TO THIS:
$lInfo_array = array_merge((array)$links, (array)$category);
WALAA!!
I found this posted by AndreiG!
See this contribution in action at
http://www.obazaar.com
http://www.intimatesdirect.com
My web host is using MySql v4.0.25 - The 'ON DUPLICATE KEY UPDATE' Sql syntax is not available in versions of MySql prior to 4.1.0. This version should work with all MySql versions 4.0.25 and higher...
2 Changes:
Modifications to the SQL query to support older versions of MySql (Versions prior to 4.1.0).
Added to the Featured Links drop down, the links Experation date (simple display) next to the name of the featured link.
This zip only contains an instructional text file with the required changes. Only one file is changed for this catalogadmininks_featured.php I included this file as well.
NOT A COMPLETE PACKAGE
- DeathAdder
German Translation, 'Our Link-Information' in OSC Config, Reorder Pics
This Files includes (it's not the complete contibution):
- Added a German Translation
- The 'Our Link-Information'
Link: My home Page
Link Description: My home page sells the best products you can imagine.
URL: http://www.myhomepage.com
can be defined in the OSC-Configuration:
Admin -> Configuration -> Links - Infobox Config
- To reorder the Link-Listing I removed the 'Asc' / 'Desc' Strings
and used Up/Down-Pictures
- Bugfix: Links Manager also needs TABLE_LINKS_STATUS in admin,
changed: adminincludesdatabase_tables.php
- CoolMenu Display added in
links_submit.php
links_setup.php
links.php
Changed Files:
--------------
adminincludesdatabase_tables.php
- Bugfix: Links Manager also needs TABLE_LINKS_STATUS in admin
adminincludeslanguagesenglishimagesbuttonsic_down.gif
adminincludeslanguagesenglishimagesbuttonsic_up.gif
- Changed: Up & Down Arrow
adminincludeslanguagesgerman.php
adminincludeslanguagesgermanimagesbuttonsbutton_check_link.gif
adminincludeslanguagesgermanimagesbuttonsbutton_check_links.gif
adminincludeslanguagesgermanimagesbuttonsbutton_continue.gif
adminincludeslanguagesgermanimagesbuttonsbutton_new_link.gif
adminincludeslanguagesgermanimagesbuttonsic_down.gif
adminincludeslanguagesgermanimagesbuttonsic_up.gif
adminincludeslanguagesgermanlink_categories.php
adminincludeslanguagesgermanlinks.php
adminincludeslanguagesgermanlinks_check.php
adminincludeslanguagesgermanlinks_contact.php
adminincludeslanguagesgermanlinks_featured.php
adminincludeslanguagesgermanlinks_status.php
- Added: All the Admin-German translation files
adminlinks.php
- Changed: tom 001: Replaced Sort Strings 'desc' and 'asc' by pictures
includeslanguagesenglishlinks.php
- Added: tom 001: All Strings should translated...
includeslanguagesenglishlinks_submit.php
- Added: tom 001: Configuration Strings are now in the OSC-Configuration
includeslanguagesgerman.php
includeslanguagesgermanimagesbuttonsbutton_categories.gif
includeslanguagesgermanimagesbuttonsbutton_submit_link.gif
includeslanguagesgermanlinks.php
includeslanguagesgermanlinks_submit.php
includeslanguagesgermanlinks_submit_success.php
- Added: All the German translation files
links.php
- Added: tom 001: CoolMenu Display added
- Changed: tom 002: All Strings should translated...
links_setup.php
- Changed: tom 001: all Text should be translated...
links_submit.php
- Added: tom 001: CoolMenu Display added
- Changed: tom 002: No '*' [Input required] in the top-left corner of the Form
- Changed: tom 003: New Link Formular: Changed partitioning of the space
- Changed: tom 004: all Text should be translated...
Installation:
-------------
- To fix the Bug with the missing TABLE_LINKS_STATUS in admin
Merge:
adminincludesdatabase_tables.php
- To get the 'Our Link-Information' - Configuration into the
OSC Configuration,
Execute the SQL:
Add Links Manager ToConfig.sql
Replace:
includeslanguagesenglishlinks_submit.php
- To translate the Link Status Description to German,
execute the SQL:
Chang Link Status Strings.sql
OR, if it's your 1st installation of this contribution,
replace links_setup.php
- To install the German Files,
Copy:
adminincludeslanguagesgermanimagesbuttonsbutton_check_link.gif
adminincludeslanguagesgermanimagesbuttonsbutton_check_links.gif
adminincludeslanguagesgermanimagesbuttonsbutton_continue.gif
adminincludeslanguagesgermanimagesbuttonsbutton_new_link.gif
adminincludeslanguagesgermanimagesbuttonsic_down.gif
adminincludeslanguagesgermanimagesbuttonsic_up.gif
adminincludeslanguagesgermanlink_categories.php
adminincludeslanguagesgermanlinks.php
adminincludeslanguagesgermanlinks_check.php
adminincludeslanguagesgermanlinks_contact.php
adminincludeslanguagesgermanlinks_featured.php
adminincludeslanguagesgermanlinks_status.php
includeslanguagesgermanimagesbuttonsbutton_categories.gif
includeslanguagesgermanimagesbuttonsbutton_submit_link.gif
includeslanguagesgermanlinks.php
includeslanguagesgermanlinks_submit.php
includeslanguagesgermanlinks_submit_success.php
Merge:
adminincludeslanguagesgerman.php
includeslanguagesgerman.php
- To have Up/Down-Pictures to reorder the Link-Listing
also in english:
Copy:
adminincludeslanguagesenglishimagesbuttonsic_down.gif
adminincludeslanguagesenglishimagesbuttonsic_up.gif
Merge:
adminlinks.php
- To have less english strings in the shop,
Replace or Merge:
includeslanguagesenglishlinks.php
links.php
links_submit.php
- If you don't have CoolMenu installed,
Remove the two lines:
<!-- tom 001: CoolMenu Display added: -->
<?php if (COOLMENU_DISPLAY == 'true') { echo '<script language="javascript" src="includes/includes.js"></script>'; } ?>
in - links.php
- links_submit.php
28.7.2006
Thomas Schittli
Changes: - Fixed mistake in the update_changes_v_1.10_to_1.13.txt file.
- Added the links_db_update.php file. This will remove all of the settings in the configuration table and replace them with a new set. This will allow for quicker and easier updates. The
downside is that you will need to go through the settings and set them the way you want. It won't cause the loss of any links though so it is safe to run.
- Added the Link Satus to the Links Status display window
- Added code to the curl script, links_check.php, so that it emails the site owner if their link cannot be found. It also marks their link as Disabled.
- Changed code in admin/links_featured.php to be compatible with previous versions of mysql.
- Changed code in admin/links_status.php to make url a clickable link.
This is a full version.
The support thread can be found at:
http://forums.oscommerce.com/index.php?act=ST&f=7&t=60678
- Added option to make reciprocal links an option.
- Added a link to the page in the message sent when a link exchange is approved. The code adds the link in the Ultimate SEO format. This shouldn't cause a problem for those sites that don't use that contribution but if it does, this part of the code will need to be disabled or changed.
- Added options link edit for disabled links. The customer will be notified if the link was denied due to a bad link or bad content, depending on the setting.
- Added the code to display text for the various links pages, under the title. The text for the Links Submit page needs to be edited to fit your site.
- Added option to check for duplicate links when a new link is submitted on the links submit page.
- Added a Suggest A Category option on the Link Submit page.
- Added code on Link Submit page to automatically verify the submitted link.
- Added default icon image code back in. Many people don't use these but some do and it is standard practice to include the code.
- Added option to switch the display from standard to vertical in admin->configuration->Links.
- Added code to allow links of any language to be displayed no matter what language is selected (only works for English, German, Spanish and French and only if the default order is in place).
- Added option to check the reciprocal link when the Edit is clicked in admin. This will slow down the loading of the edit page a little so disable this option if that is a problem.
- Added Visit Reciprocal Link link to the links edit page in admin to allow for a quick check of the site.
- Added a last checked status page so the status of the links can be seen at a glance. The table is updated any time a link is checked.
- Added a script that can be ran as a cron job to check the scripts automatically. The last checked status will be adjusted accordingly.
- Added error checking/display code in admin/links.php for when a new link is created.
- Changed code for email sent when a link is submitted to provide more details.
- Changed default status of notify customer to on in link edit window.
- Changed the check phase to allow for more than one phase to be used.
- Changed Featured Links code to allow for more featured links and allow them to be shown for a certain length of time.
- Fixed bug in All Links check code. The last link was not being checked.
- Fixed the Maximum description size code. It wasn't working as it should.
- Rearranged configuration settings and added color to sections to make the options easier to find. This will only apply to new installs.
This is a full version.
The support thread can be found at:
http://forums.oscommerce.com/index.php?act=ST&f=7&t=60678
Updated v1.12 to be compatible with Ultimate SEO URLs v2.2 to allow SEO compatible HTML link directory pages in the form: http://www.yourdomain.com/directory-name-links-##. Where ## is the directory category number.
Download Ultimate SEO URLs v2.2 at
http://www.oscommerce.com/community/contributions,2823
This contribution will run in non SEO mode without the addition of Ultimate SEO URLs v2.2 (Original Ultimate SEO Programming credit to Chemo for an outstanding contribution).
In addition to SEO compatibility, Links Manager V1.2 includes "featured random link", mini-navigation link below page heading title, and SEO optimized page heading title.
View this contribution with SEO live at http://www.nventa.com/links.php
Add link box to show a random website !
Last Update: 2006-03-03 by Ö. Karatag www.karatag.de
Changes: Changed code in catalog/links.php to display Column Link Click Count only if enabled
Changed code in catalog/includes/modules/link_listing.php to display Image to Link only if added
Changed code in catalog/links.php to display Image to Category only if added
Add German Language files
Merge English, German and Spanish version to one package. (sorry to chinese users, my chinese is not so good ;-))
Se ha traducido esta contribucion al español
LinksManager_V_1.09_Chinese.zip
- Changed code in catalog/links.php to display Approved and Waiting links
- Added an optional file in modules which displays the links vertically instead of in a table
- Problem with multiple languages fixed
This contribution is just a file to remplace in includes/modules/link_listing.php. This file makes it possible to use logos in flash or image.
This is not full package, just file link_listing.php for catalog/includes/modules/link_listing.php
Added option to allow opening links in new page or not
Changed code to display link count beside the category name and the description below it
Added Waiting option to links in admin. If Waiting is selected, a recipricol link is not required.
Changed code to display category count correctly.
This is a full release.
Fixed problem with links_setup.php file
Fixed problem with fiiles having an extra space causing headers already sent message
This is a full installation.
hatte einige Fehler und wurden behoben.
- Added Find image to search string
- Moved link count to beside the category name
instead of below it
- Added setting in admin to control the showing
of category images
- Added setting in admin to show link titles as
links
- Added code to check all links at one time
- Added code to disable errors on failed opens.
Should get rid of an existing bug.
Added categories count
Moe search string to submit bar
Added Search function to each link page
Added Sort function to display in admin
Added Categories button to reach link categories page from the individual link pages
Sorry, use this file for below enhancent!
Do not use below file!!
(bothered by my woman again at the wrong *^ time!)
This is my updated catalog/links.php (only) file with Jacks search box addition, I made the search box inside the bottom "submit link bar". Changed the search picture (button) to that of the small search box image. Also made the search results appear (centered & classed) more like the osC page theme.
-- hopefully we can get this contrib rolling again!
- Added a drop down list to control which type of link is displayed (pending, disabled or allowed)
- Added option to set the number of links displayed in admin
Added a search function for the shop side. Does not include last two patches. See support thread for details at
http://forums.oscommerce.com/index.php?showtopic=97493&st=40
This is the Spanish language interface for the Links Manager for OSC v0.20 contribution. Many thanks to Gustavo Camacho :-).
You will first have to download and setup Links Manager for OSC v0.20 Links Manager for osC v1.01 & Links Manager for osC v1.02, before installing this language pack.
This patch add "multi-language support in categories and links"
This is an addon that allows the list of links to be printed. This archive does not contain any files other than those needed for this add-on. If you need to install Links Manager, download the main contribution and then add this if desired.
This release includes 3 minor bugfixes, in the following files,
/catalog/admin/link_categories.php
/catalog/includes/functions/links.php
/catalog/admin/includes/functions/links.php
This new version is almost entirely written from scratch, to include newer features.
IMPORTANT: This contribution was developed for, and tested on OSC v2.2MS2. I haven't tested it on previous OSC releases, so please take care when you install it in pre-MS2 OSC versions. In any case, please BACKUP your programs!!!
Features include,
* multi-language support
* spider friendly links click count
* links/link category images support
* split page views for links
* link partners contact options
* integrated links checker (thanks to Greame Conkie)
* admin configuration options
* "semi-automated" install ;-)
* notification on link status change and more...
You can see this program in action in my demo store at, http://www.vjdom.com.
And, Thanks to the OSC team and all those wonderful helpful folks at the OSC forums!!!
I made some modifications to the original, added some functions and added English and German language files.
It does not provide a means to have links in multi languages, but for the admin interface only.
It also allows to exchange reciprocal links via email. See the file for more information. It works fine on my site and hope you can enjoy it.
As always: Use at your own risk!
This is the German language interface for the Links Manager for OSC v0.20 contribution. Many thanks to Werner Bleckwendt :-).
You will first have to download and setup Links Manager for OSC v0.20 before installing this language pack.
This includes a bug fix for the admin interface.
There has been a bug which prevented editing of categories in the admin interface. Many thanks to crshNbrn for reporting it :).
Please refer readme.txt for further details.
This program enables display and management of a categorized list of links to other websites. You can add/edit/delete/enable/disable links and categories from the admin interface.
It also includes a link submit form, where users can submit links and request you to add them to your list.
This add-on was developed and tested on OSC v2.2 MS1 release.
You can see this program in action at, http://www.salehut.com
