Zen Cart Logo
Forums / Addon Sideboxes / Link Manager 3.0 Support Thread

Link Manager 3.0 Support Thread

Views: 486,754

Results 1,021 to 1,040 of 1,988
11 Jun 2008, 1:15 PM
#1021
tigerbalm avatar

tigerbalm

New Zenner

Join Date:
Jan 2006
Posts:
15
Plugin Contributions:
0

Link Manager 3.0 Support Thread

Hey Clyde

Forget that last post - I just found the answer in a previous post - turns out it was a php5.2 thing.

Anyway - like I said - top contribution - thanks mate!

:o)

tigerbalm:

Hi Clyde

First of all - many thanks for your efforts.

I have just installed the Link Manager - latest version.

I have created categories back end but I am unable to create links within these categories. I can get the page to fill in the new link details but at the bottom wher I should submit - it says under options:

Status:
Catchable fatal error: Object of class queryFactoryResult could not be converted to string in /home/*****/public_html/shop/admin/includes/functions/html_output.php on line 333

using Database: MySQL 4.1.22-standard
PHP 5.2.5

Have you any idea what this problem might be?

ta

:o)

19 Jun 2008, 2:52 PM
#1022
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Hi Clyde

I just found out that when I approved a new link, it didn't show up. I then manually added a new link in the admin and approved it. However it still didn't show up. You previously helped me import a long list of links from phplinks. I can see all these links. Please advise. Thanks.

19 Jun 2008, 4:03 PM
#1023
clydejones avatar

clydejones

Deceased

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

Re: Link Manager 3.0 Support Thread

dealbyethan.com:

Hi Clyde

I just found out that when I approved a new link, it didn't show up. I then manually added a new link in the admin and approved it. However it still didn't show up. You previously helped me import a long list of links from phplinks. I can see all these links. Please advise. Thanks.

Make sure that the category(ies) those particular links belong to is/are also activated.

admin -> extras -> link categories click the green button on the category you wish to activate.

19 Jun 2008, 4:07 PM
#1024
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Hi,

Thanks for your quick response. The category is activated. But the newly added link is still not showing up.

19 Jun 2008, 4:17 PM
#1025
clydejones avatar

clydejones

Deceased

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

Re: Link Manager 3.0 Support Thread

dealbyethan.com:

Hi,

Thanks for your quick response. The category is activated. But the newly added link is still not showing up.

I can see three active categories on your links page.

Accommodation & Travel
Shopping
Society & Community

if your new links are in any of these categories they should show up after approval.

If they are in a different category (one that is not activated) then they won't show up until the category is activated.

19 Jun 2008, 4:30 PM
#1026
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

I added a new link in Accommodation & Travel and approved it, but when I go to the links page, it didn't show up. Very strange. What could cause this to happen?

19 Jun 2008, 4:38 PM
#1027
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

I tried changing the newly added link to the second category, it didn't show up. I changed it to the third category, it did show up. But this is the wrong category. What's going on?

19 Jun 2008, 4:49 PM
#1028
clydejones avatar

clydejones

Deceased

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

Re: Link Manager 3.0 Support Thread

dealbyethan.com:

I tried changing the newly added link to the second category, it didn't show up. I changed it to the third category, it did show up. But this is the wrong category. What's going on?

What link am I looking for?

I see 19 links in the third category (all on one page)

I see 27 links in the first category (on two pages)

I see 172 links in the second category (on 9 pages)

19 Jun 2008, 4:56 PM
#1029
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Title: ###### Hotel
URL: http://www.gaypedia.com/
Category: Accommodation & Travel
Description: GayPedia.com: Optimum information for

hotels and ############## hotels, when you

are looking for a complete visit for ######
or ############## entertainment places

I have put it back to the desired category but it does not show up.

19 Jun 2008, 5:46 PM
#1030
clydejones avatar

clydejones

Deceased

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

Re: Link Manager 3.0 Support Thread

dealbyethan.com:

Title: ###### Hotel
URL: http://www.gaypedia.com/
Category: Accommodation & Travel
Description: GayPedia.com: Optimum information for

hotels and ############## hotels, when you

are looking for a complete visit for ######
or ############## entertainment places

I have put it back to the desired category but it does not show up.

Try this and see if it makes a difference:

just unzip the file and upload the entire admin folder to your server.

[Attachment no longer available]

20 Jun 2008, 6:20 AM
#1031
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

I uploaded the file into the admin folder. But nothing has changed. I still can't add and show a link.

20 Jun 2008, 6:52 AM
#1032
clydejones avatar

clydejones

Deceased

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

Re: Link Manager 3.0 Support Thread

dealbyethan.com:

I uploaded the file into the admin folder. But nothing has changed. I still can't add and show a link.

check your PM

1 Jul 2008, 6:03 AM
#1033
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Is there a way to set the number of links to be listed per page? I would like to limit it to 5 or so per page to decrease load time.

Thanks!!!

1 Jul 2008, 6:23 AM
#1034
clydejones avatar

clydejones

Deceased

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

Re: Link Manager 3.0 Support Thread

MeltDown:

Is there a way to set the number of links to be listed per page? I would like to limit it to 5 or so per page to decrease load time.

Thanks!!!

it is set up to display the maximum number of results which is set in

admin -> configuration -> maximum values -> Search Results Per Page

The default value for this setting in Zen Cart is 20.

To make the change you are looking for would require modifying the configuration settings in admin -> configuration -> links manager as well as rewriting several lines of code in the links manager files.

1 Jul 2008, 11:46 AM
#1035
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

clydejones:

it is set up to display the maximum number of results which is set in

admin -> configuration -> maximum values -> Search Results Per Page

The default value for this setting in Zen Cart is 20.

To make the change you are looking for would require modifying the configuration settings in admin -> configuration -> links manager as well as rewriting several lines of code in the links manager files.

Thanks Clyde - No need to do anything drastic such as rewriting, this piece of advice did the trick: admin -> configuration -> maximum values -> Search Results Per Page

2 Jul 2008, 3:22 PM
#1036
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Clyde, I have modified this mod to be used to upload recipes. No images are necessary for the recipes, so can you tell me how to turn off the message stack error "Warning: no file uploaded"? See here http://www.ncwheatmontanacoop.com/order/index.php?main_page=links_submit
I got rid of the default banner message but can't figure out how to get rid of the other one.

Also, is there a way for the recipes to keep their formatting without me having to go into the admin and format it with HTML? It's all coming out one big blob of text with no line breaks. Our recipe submitters don't all know HTML.

Thanks!

2 Jul 2008, 4:53 PM
#1037
clydejones avatar

clydejones

Deceased

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

Re: Link Manager 3.0 Support Thread

Doodlebuckets:

Clyde, I have modified this mod to be used to upload recipes. No images are necessary for the recipes, so can you tell me how to turn off the message stack error "Warning: no file uploaded"? See here http://www.ncwheatmontanacoop.com/order/index.php?main_page=links_submit
I got rid of the default banner message but can't figure out how to get rid of the other one.

Also, is there a way for the recipes to keep their formatting without me having to go into the admin and format it with HTML? It's all coming out one big blob of text with no line breaks. Our recipe submitters don't all know HTML.

Thanks!

Amy,

I'm not sure which files you've modified (and/or whether you changed the names of the files) but I can give you a general outline of what you need to do based on the original Link Manager file names and locations.

first you'll need to modify includes/modules/pages/links_submit/header_php.php

at about line 14 delete/comment out the following line of code:

require(DIR_WS_CLASSES . 'upload.php');

Next delete the folllowing section of code beginning at around line 81 - 98

// BOF Upload an image when form field is filled in by user		 
       if ($links_image = new upload('links_image_url')) {
          $links_image->set_destination(DIR_WS_IMAGES . LINK_IMAGE_DIRECTORY);
          if ($links_image->parse() && $links_image->save()) {
            $links_image_name = LINK_IMAGE_DIRECTORY . $links_image->filename;
          }
           if ($links_image->filename != '') {
            $db->Execute("update " . TABLE_LINKS . "
                          set links_image_url = '" . $links_image_name . "'
                          where links_id = '" . (int)$links_id . "'");
		  }else { // Use default image if form field is left blank
		             $links_image_name = LINK_IMAGE_DIRECTORY . DEFAULT_LINK_IMAGE;
             $db->Execute("update " . TABLE_LINKS . "
                         set links_image_url = '" . $links_image_name . "'
                          where links_id = '" . (int)$links_id . "'");
				$messageStack->add_session('header', WARNING_DEFAULT_FILE_UPLOADED, 'success');			  
           }
		}

save the file and upload to your server.

Next open includes/modules/YOUR_TEMPLATE/link_listing.php

Find the following section of code at around line 73 - 76

           if (DISPLAY_LINK_DESCRIPTION_AS_LINK == 'true') {
            $lc_text = '<a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_title'] . '</a><br /><a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_description'] . '</a>';
             } else {
           $lc_text = '<a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_title'] . '</a><br />' . $listing_query->fields['links_description']; }

replace this section with the following code:

           if (DISPLAY_LINK_DESCRIPTION_AS_LINK == 'true') {
            $lc_text = '<a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_title'] . '</a><br /><a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . nl2br($listing_query->fields['links_description']) . '</a>';
             } else {
           $lc_text = '<a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_title'] . '</a><br />' . nl2br($listing_query->fields['links_description']); }

Save the file and upload to your server.

Let me know if you need additional assistance.

2 Jul 2008, 5:24 PM
#1038
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Clyde, I did not change any file name! I didn't want to work that hard and I probably would have broken it! Your fix worked perfectly. I am going to tinker with the display page and see if I can get it to look like I need it to. I'll let you know if I booger any thing up or need some help :o) Thanks! Your influence is far and wide :D

clydejones:

Amy,

I'm not sure which files you've modified (and/or whether you changed the names of the files) but I can give you a general outline of what you need to do based on the original Link Manager file names and locations.

first you'll need to modify includes/modules/pages/links_submit/header_php.php

at about line 14 delete/comment out the following line of code:

require(DIR_WS_CLASSES . 'upload.php');

> ```
// BOF Upload an image when form field is filled in by user         
       if ($links_image = new upload('links_image_url')) {
          $links_image->set_destination(DIR_WS_IMAGES . LINK_IMAGE_DIRECTORY);
          if ($links_image->parse() && $links_image->save()) {
            $links_image_name = LINK_IMAGE_DIRECTORY . $links_image->filename;
          }
           if ($links_image->filename != '') {
            $db->Execute("update " . TABLE_LINKS . "
                          set links_image_url = '" . $links_image_name . "'
                          where links_id = '" . (int)$links_id . "'");
          }else { // Use default image if form field is left blank
                     $links_image_name = LINK_IMAGE_DIRECTORY . DEFAULT_LINK_IMAGE;
             $db->Execute("update " . TABLE_LINKS . "
                         set links_image_url = '" . $links_image_name . "'
                          where links_id = '" . (int)$links_id . "'");
                $messageStack->add_session('header', WARNING_DEFAULT_FILE_UPLOADED, 'success');              
           }
        }
```save the file and upload to your server.
> 
> Next open includes/modules/YOUR_TEMPLATE/link_listing.php
> 
> Find the following section of code at around line 73 - 76 
> 
> ```
           if (DISPLAY_LINK_DESCRIPTION_AS_LINK == 'true') {
            $lc_text = '<a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_title'] . '</a><br /><a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_description'] . '</a>';
             } else {
           $lc_text = '<a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_title'] . '</a><br />' . $listing_query->fields['links_description']; }
```replace this section with the following code:
> ```
           if (DISPLAY_LINK_DESCRIPTION_AS_LINK == 'true') {
            $lc_text = '<a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_title'] . '</a><br /><a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . nl2br($listing_query->fields['links_description']) . '</a>';
             } else {
           $lc_text = '<a href="' . zen_get_links_url($listing_query->fields['links_id']) . '" target="_blank">' . $listing_query->fields['links_title'] . '</a><br />' . nl2br($listing_query->fields['links_description']); }
```Save the file and upload to your server.
> 
> Let me know if you need additional assistance.
2 Jul 2008, 5:34 PM
#1039
clydejones avatar

clydejones

Deceased

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

Re: Link Manager 3.0 Support Thread

Doodlebuckets:

Clyde, I did not change any file name! I didn't want to work that hard and I probably would have broken it! Your fix worked perfectly. I am going to tinker with the display page and see if I can get it to look like I need it to. I'll let you know if I booger any thing up or need some help :o) Thanks! Your influence is far and wide :D

By display page I'm guessing you mean the page with the categories/images

I'd suggest that you make the images all the same size height x width (i.e. the default for links manager for category images is 80 x 80) doin this will insure that all the images line up correctly and you shouldn't get the gaps that are showing up now.

Just a suggestion.

2 Jul 2008, 8:08 PM
#1040
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

clydejones:

By display page I'm guessing you mean the page with the categories/images

I'd suggest that you make the images all the same size height x width (i.e. the default for links manager for category images is 80 x 80) doin this will insure that all the images line up correctly and you shouldn't get the gaps that are showing up now.

Just a suggestion.

Yep, that's next on my list. I have tried to get the page to display as I want it to, but I don't know how to get what I need, so if you could teach me how that would be great!

http://www.ncwheatmontanacoop.com/order/index.php?lPath=2&main_page=links

For the above page (and all others eventually), I would like where it says "Recipes" in bold, just above "Our Members' tried and true recipes!", I want it to say the category title...in this case, "Yeast Breads".

Next, I need for the titles to be non-clickable, larger font, and in bold. Also, the line at the top of the page, if that could show up between each Recipe to separate them, that would be great.

I have gone around and around with this, but this is a part of code that I don't yet understand. I know this is not a Links Manager application, but I sure appreciate your help! Maybe when it's all done, you could upload it as another contrib...