Results 1 to 10 of 1988

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Link Manager 3.0 Support Thread

    Quote Originally Posted by clydejones View Post
    Can you zip up the files you edited and post them.
    Quote Originally Posted by jezjones29 View Post
    [FONT=Arial]I could try. [/FONT]

    [FONT=Arial]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.[/FONT]

    [FONT=Arial]It also keeps a track of the clicks to stop cheating [/FONT]

    Code:
    [FONT=Arial]Database:[/FONT]
    [FONT=Arial]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;[/FONT]
     
    [FONT=Arial]header file:[/FONT]
     
    [FONT=Arial]elseif (isset($_GET['links_url'])) {[/FONT]
    [FONT=Arial]if (get_magic_quotes_gpc()) $_GET['links_url'] = stripslashes($_GET['links_url']);[/FONT]
    [FONT=Arial]$links_url = 'http://'.mysql_real_escape_string($_GET['links_url']);[/FONT]
    [FONT=Arial]zen_update_links_click_count($links_url); [/FONT]
    [FONT=Arial] }[/FONT]
     
     
    [FONT=Arial]Functions:[/FONT]
     
    [FONT=Arial]//REMOVE HTTPS[/FONT]
    [FONT=Arial]function remove_http($url = '')[/FONT]
    [FONT=Arial]{[/FONT]
    [FONT=Arial]return(str_replace(array('http://','https://'), '', $url));[/FONT]
    [FONT=Arial]}[/FONT]
    [FONT=Arial]// Return the links url[/FONT]
    [FONT=Arial] function zen_get_links_url($identifier) {[/FONT]
    [FONT=Arial] global $db;[/FONT]
    [FONT=Arial]   $link = $db->Execute("select links_id, links_url from " . TABLE_LINKS . " where links_id = '" . (int)$identifier . "'");[/FONT]
    [FONT=Arial]   $url = remove_http($link->fields['links_url']);[/FONT]
    [FONT=Arial]   $links_string = 'links?links_url='.$url;[/FONT]
    [FONT=Arial]   return $links_string;[/FONT]
    [FONT=Arial] }[/FONT]
    [FONT=Arial]////[/FONT]
     
    [FONT=Arial] function zen_update_links_click_count($links_url) {[/FONT]
    [FONT=Arial]    global $db;[/FONT]
    [FONT=Arial]   $url = 'http://www.yoursite.com';   [/FONT]
    [FONT=Arial]   $result = $db->Execute("select links_id, links_url from " . TABLE_LINKS . " where links_url = '" . $links_url . "'");[/FONT]
    [FONT=Arial]   if ($result->RecordCount() == 1) {[/FONT]
    [FONT=Arial]     $url = $links_url;      [/FONT]
    [FONT=Arial]     $id = $result ->fields['links_id'];      [/FONT]
    [FONT=Arial]     $IP = mysql_real_escape_string($_SERVER['REMOTE_ADDR']);      [/FONT]
    [FONT=Arial]     $time_diff = 3600*24*14;       [/FONT]
    [FONT=Arial]     $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."'");[/FONT]
     
    [FONT=Arial]     if ($test->fields['testval'] == 0) {[/FONT]
    [FONT=Arial]      $db->Execute("INSERT INTO " . TABLE_LINKS_CLICKS . " set ip_adr = '".$IP."', site_id = '".(int)$id."' ");[/FONT]
    [FONT=Arial]      $db->Execute("update " . TABLE_LINKS . " set links_clicked = links_clicked + 1 where links_id = '" . (int)$id . "'");[/FONT]
    [FONT=Arial]     }[/FONT]
    [FONT=Arial]    } [/FONT]
    [FONT=Arial]header("Location: $url");[/FONT]
    [FONT=Arial]exit;[/FONT]
    [FONT=Arial] }[/FONT]
     
    [FONT=Arial]define tag:[/FONT]
     
    define('TABLE_LINKS_CLICKS', DB_PREFIX . 'links_clicks');

    Would be nice if you could zip the files up and share with us on how you did that.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  2. #2
    Join Date
    Jul 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Link Manager 3.0 Support Thread

    Hi Clyde, please can you help.

    I installed Links Manager yesterday and am having the same problems as jwurster (#1447) had. Every time I try to add a link, link category etc. as soon as I click save or insert I'm returned to the main admin page with nothing added.

    I've installed the Links_manager_admin_fix.zip file and both html_output.php's. In #1448 you refer to the latest updated security patch, is this an additional file? - the link goes to an invalid thread.

    I've already uninstalled and reinstalled and am still having the same problem.

    Any ideas?

    Thanks,
    Al.

  3. #3
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Link Manager 3.0 Support Thread

    Quote Originally Posted by alvincentinio View Post
    Hi Clyde, please can you help.

    I installed Links Manager yesterday and am having the same problems as jwurster (#1447) had. Every time I try to add a link, link category etc. as soon as I click save or insert I'm returned to the main admin page with nothing added.

    I've installed the Links_manager_admin_fix.zip file and both html_output.php's. In #1448 you refer to the latest updated security patch, is this an additional file? - the link goes to an invalid thread.

    I've already uninstalled and reinstalled and am still having the same problem.

    Any ideas?

    Thanks,
    Al.
    The latest admin security patch can be found here:

    www.zen-cart.com/forum/showthread.php?t=130161

  4. #4
    Join Date
    Jul 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Link Manager 3.0 Support Thread

    Thanks, it seems to be working now.

    I'd already ran the security update in june so the only thing I changed was the html_output.php (the updated admin_html_output.php version was replaced with the security update html_output.php version). Not sure if this means anything.

    Thanks,
    Al.

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Link Manager 3.0 Support Thread

    Quote Originally Posted by alvincentinio View Post
    Thanks, it seems to be working now.

    I'd already ran the security update in june so the only thing I changed was the html_output.php (the updated admin_html_output.php version was replaced with the security update html_output.php version). Not sure if this means anything.

    Thanks,
    Al.
    That is correct the html_output.php in the security update is the one that should be used.

  6. #6
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

    Default Re: Link Manager 3.0 Support Thread

    This is a great mod! I just loaded.

    This is a very large post. I could not find information to issue I am having. Please refer to page if in post somewhere. I was not able to locate.

    I am having difficulties with admin/extras for links, link categories and link contacts. It just takes me to page not found for each one. I double checked to make sure all files were loaded. Wondering if it is in sql file. I did copy/paste. I was able to turn sidebox on and see admin/conf/links manager details.

    Thanks, Kim

  7. #7
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Link Manager 3.0 Support Thread

    Quote Originally Posted by kburner View Post
    This is a great mod! I just loaded.

    This is a very large post. I could not find information to issue I am having. Please refer to page if in post somewhere. I was not able to locate.

    I am having difficulties with admin/extras for links, link categories and link contacts. It just takes me to page not found for each one. I double checked to make sure all files were loaded. Wondering if it is in sql file. I did copy/paste. I was able to turn sidebox on and see admin/conf/links manager details.

    Thanks, Kim
    Make sure you've uploaded the following:

    admin/link_categories.php
    admin/links.php
    admin/links_contact.php
    admin/includes/boxes/extra_boxes/links_extras_dhtml.php
    admin/includes/extra_datafiles/links_manager.php
    admin/includes/functions/extra_functions/links_manager.php
    admin/includes/languages/english/links.php
    admin/includes/languages/english/link_categories.php
    admin/includes/languages/english/links_contact.php
    admin/includes/languages/english/extra_definitions/links.php

 

 

Similar Threads

  1. Testimonial Manager Support Thread
    By clydejones in forum All Other Contributions/Addons
    Replies: 1500
    Last Post: 4 Feb 2021, 04:12 PM
  2. v154 News Box Manager v2.0.0 [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 84
    Last Post: 19 Jan 2021, 04:17 PM
  3. Download File Manager Support Thread
    By balihr in forum All Other Contributions/Addons
    Replies: 24
    Last Post: 17 Aug 2017, 10:32 PM
  4. Poll Manager Support Thread
    By boudewijn in forum Addon Sideboxes
    Replies: 148
    Last Post: 27 Jan 2016, 09:53 AM
  5. Empty Cart Manager [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 26 May 2010, 10:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg