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

Link Manager 3.0 Support Thread

Views: 486,724

Results 1,441 to 1,460 of 1,988
14 Jul 2009, 4:21 PM
#1441
clydejones avatar

clydejones

Deceased

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

Link Manager 3.0 Support Thread

dmm2020:

Hi Clyde:

I have your Links Manager set up to not require reciprocal links on showcased websites powered by Arcadem Pro.

When I do this however, I get error:
Warning: file() [function.file]: Filename cannot be empty in[absolutepath to my directory]/[myadmin]/links.php on line 631

How can I turn that off when certain categories are selected? I want to enforce reciprocal links on all the rest.

If you are receiving this error when clicking the "check link" button

Then you will need to have some link information available even if its to your own site.

15 Jul 2009, 2:50 PM
#1442
jezjones29 avatar

jezjones29

New Zenner

Join Date:
Sep 2006
Posts:
22
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

I have a clean install, updated with all the latest patches, and installed the latest link manager.

When I try and add a link I get:

[Options]

Status:
Catchable fatal error: Object of class queryFactoryResult could not be converted to string in
###/store/admin/includes/functions/html_output.php on line 343

I have also turned on link count, but this doesn't work :-(

Any ideas?

15 Jul 2009, 3:07 PM
#1443
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

jezjones29:

I have a clean install, updated with all the latest patches, and installed the latest link manager.

When I try and add a link I get:

[Options]

Status:
Catchable fatal error: Object of class queryFactoryResult could not be converted to string in
###/store/admin/includes/functions/html_output.php on line 343

I have also turned on link count, but this doesn't work :-(

Any ideas?

  1. I checking on this issue.

  2. Link count does not work. Somewhere in this thread (very early on, is an explanation for this. I just don't remember exactly where.
    Just set this option to 0 in admin -> configuration -> testimonial manager

19 Jul 2009, 4:55 AM
#1444
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

jezjones29:

I have a clean install, updated with all the latest patches, and installed the latest link manager.

When I try and add a link I get:

[Options]

Status:
Catchable fatal error: Object of class queryFactoryResult could not be converted to string in
###/store/admin/includes/functions/html_output.php on line 343

The attached should fix this error:
Just unzip the file and upload the links.php file to your admin folder.

Attachment #6128

19 Jul 2009, 8:19 PM
#1445
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Link Manager 3.0 Support Thread

jezjones29:

I have a clean install, updated with all the latest patches, and installed the latest link manager.

When I try and add a link I get:

[Options]

Status:
Catchable fatal error: Object of class queryFactoryResult could not be converted to string in
###/store/admin/includes/functions/html_output.php on line 343

I have also turned on link count, but this doesn't work :-(

Any ideas?

clydejones:

The attached should fix this error:
Just unzip the file and upload the links.php file to your admin folder.

Attachment #6128

Hi Clyde, I had that problem to. I uploaded the file you provided and it fix it. Thank a lot

22 Jul 2009, 11:46 AM
#1446
jezjones29 avatar

jezjones29

New Zenner

Join Date:
Sep 2006
Posts:
22
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Thank you - that fixed it. Now all we need it the click count fixed :clap:

22 Jul 2009, 5:38 PM
#1447
jwurster avatar

jwurster

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

I had an issue with the drop-down Status box not appearing when I went to add a link. I downloaded the html_output files (both) and that corrected the display. Then I developed the problem with not being able to edit or add a new link, just sends me back to the admin. I also cannot change anything now in the Links Manager admin.

So, I added the link.php mod. Still no go.

The security patches have also been applied.

Can you please help? I'm sure I'm still doing something stupid.

The site is not open yet but you can see it here. If you need anything else, please let me know.

A zen-cart newbie user,
jim

22 Jul 2009, 5:56 PM
#1448
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

jwurster:

I had an issue with the drop-down Status box not appearing when I went to add a link. I downloaded the html_output files (both) and that corrected the display. Then I developed the problem with not being able to edit or add a new link, just sends me back to the admin. I also cannot change anything now in the Links Manager admin.

So, I added the link.php mod. Still no go.

The security patches have also been applied.

Can you please help? I'm sure I'm still doing something stupid.

The site is not open yet but you can see it here. If you need anything else, please let me know.

A zen-cart newbie user,
jim

Make sure you have downloaded the latest updated security patch

22 Jul 2009, 6:18 PM
#1449
jwurster avatar

jwurster

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Yes, I already have that.

22 Jul 2009, 6:25 PM
#1450
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

jwurster:

Yes, I already have that.

I downloaded the html_output files (both)

That will only correct the issue on the catalog side but it will mess up the admin side.

You need to install the (admin) html_output.php file from the latest security patch.

Do that and I believe that this issue will be resolved.

22 Jul 2009, 8:59 PM
#1451
jwurster avatar

jwurster

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

clydejones:

I downloaded the html_output files (both)

That will only correct the issue on the catalog side but it will mess up the admin side.

You need to install the (admin) html_output.php file from the latest security patch.

Do that and I believe that this issue will be resolved.

The just uploaded that file and it allowed me to edit the Links Manager options. However, I still cannot edit a link or add a new one.

22 Jul 2009, 9:06 PM
#1452
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

jwurster:

The just uploaded that file and it allowed me to edit the Links Manager options. However, I still cannot edit a link or add a new one.

now install the links_manager admin_fix from this post 1444

22 Jul 2009, 9:42 PM
#1453
jwurster avatar

jwurster

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

clydejones:

now install the links_manager admin_fix from this post 1444

I uploaded that file. I can still edit the Links Manager options. I can add a new link, but can't change the Status. What dumb thing did I do now?

Thank you for your patience.

22 Jul 2009, 9:57 PM
#1454
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

jwurster:

I uploaded that file. I can still edit the Links Manager options. I can add a new link, but can't change the Status. What dumb thing did I do now?

Thank you for your patience.

There are three ways to change the status.

On the admin links page you have green and yellow icons (clicking these icons changes the status.

on the edit page you can change the status by selecting it from the dropdown selector at the bottom of the page

on the add page you can change the status by selecting it from the dropdown selector at the bottom of the page

22 Jul 2009, 10:15 PM
#1455
jwurster avatar

jwurster

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

clydejones:

There are three ways to change the status.

On the admin links page you have green and yellow icons (clicking these icons changes the status.

on the edit page you can change the status by selecting it from the dropdown selector at the bottom of the page

on the add page you can change the status by selecting it from the dropdown selector at the bottom of the page

Thank you. Clicking the color icons works. As long as one works, I'm happy :clap:

29 Jul 2009, 10:41 AM
#1456
jezjones29 avatar

jezjones29

New Zenner

Join Date:
Sep 2006
Posts:
22
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

clydejones:

  1. Link count does not work. Somewhere in this thread (very early on, is an explanation for this. I just don't remember exactly where.
    Just set this option to 0 in admin -> configuration -> testimonial manager

Is there any way to get the click count to work?
I can't find the post you wrote about.

29 Jul 2009, 4:38 PM
#1457
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

jezjones29:

Is there any way to get the click count to work?
I can't find the post you wrote about.

Sorry not at present.

29 Jul 2009, 5:44 PM
#1458
jezjones29 avatar

jezjones29

New Zenner

Join Date:
Sep 2006
Posts:
22
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

it's ok. Got it working now. It was missing a table, a function and some other code.

29 Jul 2009, 5:54 PM
#1459
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

jezjones29:

it's ok. Got it working now. It was missing a table, a function and some other code.

Wanna share your solution! others might benefit.

29 Jul 2009, 6:04 PM
#1460
jezjones29 avatar

jezjones29

New Zenner

Join Date:
Sep 2006
Posts:
22
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

I could try.

I didn't make any notes, and this is a complete hack! Maybe you could help me clean it up? I looks like it works on my site, so I'm happy.

It also keeps a track of the clicks to stop cheating :flex:

Database:
CREATE TABLE `links_clicks` ( `site_id` int(11) NOT NULL, `click_time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `ip_adr` varchar(30) NOT NULL, KEY `site_id` (`site_id`) ) ENGINE=MyISAM;
 
header file:
 
elseif (isset($_GET['links_url'])) {
if (get_magic_quotes_gpc()) $_GET['links_url'] = stripslashes($_GET['links_url']);
$links_url = 'http://'.mysql_real_escape_string($_GET['links_url']);
zen_update_links_click_count($links_url); 
 }
 
 
Functions:
 
//REMOVE HTTPS
function remove_http($url = '')
{
return(str_replace(array('http://','https://'), '', $url));
}
// Return the links url
 function zen_get_links_url($identifier) {
 global $db;
   $link = $db->Execute("select links_id, links_url from " . TABLE_LINKS . " where links_id = '" . (int)$identifier . "'");
   $url = remove_http($link->fields['links_url']);
   $links_string = 'links?links_url='.$url;
   return $links_string;
 }
////
 
 function zen_update_links_click_count($links_url) {
    global $db;
   $url = 'http://www.yoursite.com';   
   $result = $db->Execute("select links_id, links_url from " . TABLE_LINKS . " where links_url = '" . $links_url . "'");
   if ($result->RecordCount() == 1) {
     $url = $links_url;      
     $id = $result ->fields['links_id'];      
     $IP = mysql_real_escape_string($_SERVER['REMOTE_ADDR']);      
     $time_diff = 3600*24*14;       
     $test = $db->Execute("select COUNT(*) AS testval from " . TABLE_LINKS_CLICKS . " where ip_adr = '".$IP."' AND click_time+".$time_diff." > NOW() AND site_id = '".$id."'");
 
     if ($test->fields['testval'] == 0) {
      $db->Execute("INSERT INTO " . TABLE_LINKS_CLICKS . " set ip_adr = '".$IP."', site_id = '".(int)$id."' ");
      $db->Execute("update " . TABLE_LINKS . " set links_clicked = links_clicked + 1 where links_id = '" . (int)$id . "'");
     }
    } 
header("Location: $url");
exit;
 }
 
define tag:
 
define('TABLE_LINKS_CLICKS', DB_PREFIX . 'links_clicks');