osCommerce Community Support Forums: Links Manager For OSC v0.20 released - osCommerce Community Support Forums

Jump to content

Corporate Sponsor


  • (7 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Links Manager For OSC v0.20 released Rate Topic: -----

#1 User is offline   VJ Icon

  • Find Posts
  • Group: Community Member
  • Posts: 173
  • Joined: 22-March 03
  • Real Name:VJ

Posted 21 May 2003 - 05:42 PM

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.

http://www.oscommerc...y/contributions,1256

Please give it a try and send in your comments and suggestions. This is my first ever contribution for OSC. Hope I've done a fair enough job.

VJ

--
http://www.salehut.com
0

#2 User is offline   loxly Icon

  • Find Posts
  • Group: Community Member
  • Posts: 1,802
  • Joined: 31-December 02
  • Real Name:Search and Learn
  • Location:New York State

Posted 21 May 2003 - 05:46 PM

If it is the link program that is on your site this will be a great addition to many osc stores!
Deborah a.k.a. Loxly
Team Loxly
0

#3 User is offline   VJ Icon

  • Find Posts
  • Group: Community Member
  • Posts: 173
  • Joined: 22-March 03
  • Real Name:VJ

Posted 21 May 2003 - 06:06 PM

Yes, it is indeed the very same program.

VJ

--
http://www.salehut.com
0

#4 User is offline   Snowman Icon

  • Find Posts
  • Group: Community Member
  • Posts: 645
  • Joined: 09-September 02
  • Real Name:Banned
  • Location:Coleraine, VIC, Australia

Posted 22 May 2003 - 05:51 AM

What a great looking contribution :)

Just one question though..(i havent had a chance to install it yet)

how deep can the categories go?
0

#5 User is offline   jchasick Icon

  • Find Posts
  • Group: Community Member
  • Posts: 1,511
  • Joined: 12-September 02
  • Real Name:jeff
  • Location:California

Posted 22 May 2003 - 06:07 AM

now thats a cool contribution - like a mini portal system for your site

nice work!!
Reading is beneficial - Searching is enlightening
find answers at wiki.oscommerce.com/top
0

#6 User is offline   loxly Icon

  • Find Posts
  • Group: Community Member
  • Posts: 1,802
  • Joined: 31-December 02
  • Real Name:Search and Learn
  • Location:New York State

Posted 22 May 2003 - 06:17 AM

Adding it to the make osc it's own cms list.....

8)
Deborah a.k.a. Loxly
Team Loxly
0

#7 User is offline   VJ Icon

  • Find Posts
  • Group: Community Member
  • Posts: 173
  • Joined: 22-March 03
  • Real Name:VJ

Posted 22 May 2003 - 12:12 PM

Quote

how deep can the categories go?


Well, its just a single-level deep as of now. I thought multi-level categorization for links would be an overkill.

VJ

--
http://www.salehut.com
0

#8 User is offline   VJ Icon

  • Find Posts
  • Group: Community Member
  • Posts: 173
  • Joined: 22-March 03
  • Real Name:VJ

Posted 22 May 2003 - 12:18 PM

... and gee, thanks a lot for all your comments :D

VJ

--
http://www.salehut.com
0

#9 User is offline   Director of Projects Icon

  • Find Posts
  • Group: Community Member
  • Posts: 26
  • Joined: 12-April 03
  • Real Name:Peter McGuire
  • Location:West Germany

Posted 22 May 2003 - 01:25 PM

Very good contribution :D

I have the German translation ready by tomorrow could post it.

Did you ever think about, to allow some banners or buttons? Perhaps for a fee?

Once more, well done

Cheers
Technical support is how much a minute? Only one other industry charges $3.99 a minute to talk to you, and at least you get some degree of pleasure out of that!
0

#10 User is offline   mazza Icon

  • Find Posts
  • Group: Community Member
  • Posts: 222
  • Joined: 21-September 02
  • Real Name:Matti
  • Location:Finland

Posted 23 May 2003 - 01:15 AM

Looks real nice. Too bad it is not multilingual so we cannot use it :(

Heres the sql-plan if you are planning to add this feature:

# Links Manager for OSC v0.2



#

# Table structure for table `exchange_links_categories`

#



CREATE TABLE exchange_links_categories (

  link_category_id int(11) NOT NULL auto_increment,

  link_category_contact varchar(96) NOT NULL default '',

  link_category_email varchar(96) NOT NULL default '',

  link_category_rating int(11) default NULL,

  link_category_date datetime NOT NULL default '0000-00-00 00:00:00',

  link_category_status int(1) NOT NULL default '1',

  PRIMARY KEY  (link_category_id)

) TYPE=MyISAM;

# --------------------------------------------------------



#

# Table structure for table `exchange_links_categories_description`

#



CREATE TABLE exchange_links_categories_description (

  link_category_id int(11) NOT NULL auto_increment,

  link_category_name varchar(64) NOT NULL default '',

  language_id int(11) NOT NULL default '0',

  link_category_description text,

  PRIMARY KEY  (link_category_id)

) TYPE=MyISAM;



#

# Table structure for table `exchange_links_links`

#



CREATE TABLE exchange_links_links (

  link_category_id int(11) NOT NULL default '0',

  link_id int(11) NOT NULL auto_increment,

  link_url varchar(255) NOT NULL default '',

  link_contact varchar(96) NOT NULL default '',

  link_email varchar(96) NOT NULL default '',

  link_reciprocal varchar(255) NOT NULL default '',

  link_rating int(11) default NULL,

  link_date datetime NOT NULL default '0000-00-00 00:00:00',

  link_status int(1) NOT NULL default '1',

  PRIMARY KEY  (link_id,link_category_id)

) TYPE=MyISAM;



#

# Table structure for table `exchange_links_links_description `

#



CREATE TABLE exchange_links_links_description (

  language_id int(11) NOT NULL default '0',

  link_id int(11) NOT NULL auto_increment,

  link_title varchar(255) NOT NULL default '',

  link_description text,

  PRIMARY KEY  (link_id,link_category_id)

) TYPE=MyISAM;

"Use no way as way, have no limitation as limitation." - Bruce Lee
0

#11 User is offline   VJ Icon

  • Find Posts
  • Group: Community Member
  • Posts: 173
  • Joined: 22-March 03
  • Real Name:VJ

Posted 24 May 2003 - 11:37 AM

Quote

Looks real nice. Too bad it is not multilingual so we cannot use it


Thanks for your comments :-)

Well, its a shame I didn't give too much thought about making the mod multi-lingual. I might go for it in the next version, though.

Meanwhile, why don't you go ahead and give it a shot. That DB plan looks great :-).

VJ

--
http://www.salehut.com
0

#12 User is offline   loxly Icon

  • Find Posts
  • Group: Community Member
  • Posts: 1,802
  • Joined: 31-December 02
  • Real Name:Search and Learn
  • Location:New York State

Posted 24 May 2003 - 04:13 PM

Quote

Quote

Looks real nice. Too bad it is not multilingual so we cannot use it


Thanks for your comments :-)

Well, its a shame I didn't give too much thought about making the mod multi-lingual. I might go for it in the next version, though.

Meanwhile, why don't you go ahead and give it a shot. That DB plan looks great :-).

VJ

--
http://www.salehut.com


Exactly what I was thinking, if someone knows how to change the code, why not go ahead and do it and send it to the author instead of making a negative post.

This attitude that contributions, that are made by volunteers, that are free for you to use, need to fit everyone in the world's needs is very discouraging.

If you have a suggestion, make it.

If you know how to fix it, fix it.

If you have a demand, forget it.
Deborah a.k.a. Loxly
Team Loxly
0

#13 User is offline   mazza Icon

  • Find Posts
  • Group: Community Member
  • Posts: 222
  • Joined: 21-September 02
  • Real Name:Matti
  • Location:Finland

Posted 24 May 2003 - 05:09 PM

Hmm... Maybe I should have used "unfortunately" instead of "too bad". My apologies if it sounded too negative. That was not my intention as this is one of those rare contributions that has potential to be useful to alot of shops.

However the missing feature does limit its potential to shops with one language.

I would be more than happy to help with the coding as far as I can.
"Use no way as way, have no limitation as limitation." - Bruce Lee
0

#14 User is offline   loxly Icon

  • Find Posts
  • Group: Community Member
  • Posts: 1,802
  • Joined: 31-December 02
  • Real Name:Search and Learn
  • Location:New York State

Posted 24 May 2003 - 06:48 PM

:) Thanks for clarifying and I apologize for snapping. There is a lot of "demanding" instead of offering and asking going on these days and I made an assumption due to the tone of the note.

What a difference a word makes....
Deborah a.k.a. Loxly
Team Loxly
0

#15 User is offline   allandk Icon

  • Find Posts
  • Group: Community Member
  • Posts: 16
  • Joined: 16-May 03
  • Real Name:Allan
  • Location:Denmark

Posted 25 May 2003 - 10:21 AM

Hi VJ,

A great script :D I have 2 questions..

1. I cannot get it to show the category decriptions, what do I need to change ?

2. I have done danish language files, if anyone is interested..

Regards Allan
0

#16 User is offline   VJ Icon

  • Find Posts
  • Group: Community Member
  • Posts: 173
  • Joined: 22-March 03
  • Real Name:VJ

Posted 25 May 2003 - 11:33 AM

Thanks for your compliments, Allan. :)

As regards display of category description, you can find the code that displays category information in /catalog/exchange_links.php,

at around line 95,

    echo '                <td align="left" class="smallText" style="width: ' . $width . '" valign="top"><br> &raquo; <a href="' . tep_href_link(FILENAME_EXCHANGE_LINKS, 'lPath=' . $link_category_data['link_category_id']) . '" class="subCatLinks">' . $link_category_data['link_category_name'] . '</a>&nbsp;(' . $link_count . ')</td>' . "n";


Just add the category description variable $link_category_data['link_category_description'] somewhere in the above code segment.

HTH,
VJ

--
http://www.salehut.com
Sorry, away again. Email/PM me.
0

#17 User is offline   allandk Icon

  • Find Posts
  • Group: Community Member
  • Posts: 16
  • Joined: 16-May 03
  • Real Name:Allan
  • Location:Denmark

Posted 25 May 2003 - 01:25 PM

Hi VJ,

I must be doing it wrong. I keep getting parse error ?

regards Allan
0

#18 User is offline   VJ Icon

  • Find Posts
  • Group: Community Member
  • Posts: 173
  • Joined: 22-March 03
  • Real Name:VJ

Posted 25 May 2003 - 05:13 PM

Hi Allan,

Can you please post the code segment you've changed and the segment where you get errors. Its kind of hard to speculate without much to look at.

VJ
Sorry, away again. Email/PM me.
0

#19 User is offline   allandk Icon

  • Find Posts
  • Group: Community Member
  • Posts: 16
  • Joined: 16-May 03
  • Real Name:Allan
  • Location:Denmark

Posted 25 May 2003 - 06:48 PM

sorry I uploaded the original file again.. :oops: so it's gone
0

#20 User is offline   allandk Icon

  • Find Posts
  • Group: Community Member
  • Posts: 16
  • Joined: 16-May 03
  • Real Name:Allan
  • Location:Denmark

Posted 25 May 2003 - 10:10 PM

i keep trying.. promise not to laugh at me, i'm new at this

    $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';

    echo '                <td align="left" class="smallText" style="width: ' . $width . '" valign="top"><br> &raquo; <a href="' . tep_href_link(FILENAME_EXCHANGE_LINKS, 'lPath=' . $link_category_data['link_category_id']) . <br> . $link_category_data['link_category_description'].'" class="subCatLinks">' . $link_category_data['link_category_name'] . '</a>&nbsp;(' . $link_count . ')</td>' . "n";

    if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != tep_db_num_rows($link_category_query))) {

      echo '              </tr>' . "n";

      echo '              <tr>' . "n";

    }

}
?>
0

  • (7 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic