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

Link Manager 3.0 Support Thread

Views: 486,742

Results 561 to 580 of 1,988
9 Sep 2007, 3:35 PM
#561
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

oxicottin:

Before captcha, I was goofing with it on my running site and noticed that I never recieved an email just the person submitting the link to me does. I can see it was submited in the admin section but that is it. Why an i suposed to get an email?

Thanks,
Chad

You should receive an e-mail that says:

A new link was submitted at SITE NAME. It is not yet approved. Please verify this link and activate.

9 Sep 2007, 3:45 PM
#562
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

No I never recieved one? I did a test entry again and the person asking gets an email but the admin doesnt? Thanks!

9 Sep 2007, 3:59 PM
#563
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

oxicottin:

No I never recieved one? I did a test entry again and the person asking gets an email but the admin doesnt? Thanks!

make sure the following section of code is in:
includes/modules/pages/links_submit/header_php.php

// build the message content
      $name = $links_contact_name;
      $email_text = sprintf(EMAIL_GREET_NONE, $name);
      $html_msg['EMAIL_GREETING'] = str_replace('\n','',$email_text);
      $email_text .= EMAIL_WELCOME;
	  $html_msg['EMAIL_WELCOME'] = str_replace('\n','',EMAIL_WELCOME);
      $email_text .= EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
	  $email_store_text = EMAIL_OWNER_TEXT . $links_title . "\n\n" . $links_url . "\n\n" . $links_description;
// Prepare HTML-portion of message
      $html_msg['EMAIL_MESSAGE_HTML'] =  str_replace('\n','',EMAIL_TEXT);
      $html_msg['CONTACT_US_OFFICE_FROM'] = OFFICE_FROM . ' ' . $name . '<br />' . OFFICE_EMAIL . '(' . $links_contact_email . ')';
      $html_msg['EXTRA_INFO'] = $extra_info['HTML'];

      zen_mail($name, $links_contact_email, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $html_msg, 'Link Exchange');

      zen_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_OWNER_SUBJECT, $email_store_text, $name, $links_contact_email, $html_msg, 'Link Exchange');
9 Sep 2007, 4:11 PM
#564
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Yep, This is what i have:

// build the message content
      $name = $links_contact_name;
      $email_text = sprintf(EMAIL_GREET_NONE, $name);
      $email_text .= EMAIL_WELCOME;
      $email_text .= EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
	  $email_store_text = EMAIL_OWNER_TEXT . $links_title . "\n\n" . $links_url . "\n\n" . $links_description;
// Prepare HTML-portion of message
      $html_msg['EMAIL_GREETING'] = str_replace('\n','',$email_text);
	  $html_msg['EMAIL_WELCOME'] = str_replace('\n','',EMAIL_WELCOME);
      $html_msg['EMAIL_MESSAGE_HTML'] =  str_replace('\n','',EMAIL_TEXT);
      $html_msg['CONTACT_US_OFFICE_FROM'] = OFFICE_FROM . ' ' . $name . '<br />' . OFFICE_EMAIL . '(' . $links_contact_email . ')';
      $html_msg['EXTRA_INFO'] = $extra_info['HTML'];

      zen_mail($name, $links_contact_email, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $html_msg, 'Link Exchange');

      zen_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_OWNER_SUBJECT, $email_store_text, $name, $links_contact_email, $html_msg, 'Link Exchange');
	  
      zen_redirect(zen_href_link(FILENAME_LINKS_SUBMIT, 'action=success'));
    }
}
  // links breadcrumb
9 Sep 2007, 5:25 PM
#565
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

oxicottin:

Yep, This is what i have:

// build the message content
$name = $links_contact_name;
$email_text = sprintf(EMAIL_GREET_NONE, $name);
$email_text .= EMAIL_WELCOME;
$email_text .= EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
$email_store_text = EMAIL_OWNER_TEXT . $links_title . "\n\n" . $links_url . "\n\n" . $links_description;
// Prepare HTML-portion of message
$html_msg['EMAIL_GREETING'] = str_replace('\n','',$email_text);
$html_msg['EMAIL_WELCOME'] = str_replace('\n','',EMAIL_WELCOME);
$html_msg['EMAIL_MESSAGE_HTML'] = str_replace('\n','',EMAIL_TEXT);
$html_msg['CONTACT_US_OFFICE_FROM'] = OFFICE_FROM . ' ' . $name . '<br />' . OFFICE_EMAIL . '(' . $links_contact_email . ')';
$html_msg['EXTRA_INFO'] = $extra_info['HTML'];

  zen_mail($name, $links_contact_email, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $html_msg, 'Link Exchange');

  zen_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_OWNER_SUBJECT, $email_store_text, $name, $links_contact_email, $html_msg, 'Link Exchange');
  
  zen_redirect(zen_href_link(FILENAME_LINKS_SUBMIT, 'action=success'));
}

}
// links breadcrumb


Double check your e-mail settings:

admin -> configuration -> e-mail options
9 Sep 2007, 9:17 PM
#566
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Clyde, I feel like a ######## now :blush: When the web host set up my Zencart they must have miss typed my email...... I was woundering why I never recieve an email......:wacko: thanks agian your a life saver!

9 Sep 2007, 9:59 PM
#567
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

oxicottin:

Clyde, I feel like a ######## now :blush: When the web host set up my Zencart they must have miss typed my email...... I was woundering why I never recieve an email......:wacko: thanks agian your a life saver!

Not at all

10 Sep 2007, 11:04 PM
#568
youniquephotos avatar

youniquephotos

New Zenner

Join Date:
Oct 2004
Posts:
40
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

clydejones:

Do you want to delete or just replace the image?

You're missing the links.css and links_submit.css stylesheets

Thank you for finding this and letting me know.
I have fixed this and have been trying to add the box at the bottom to add the image url by the person submitting. I followed the advice you gave oxycottin
"Add the necessary define statements for that field to:
includes/languages/english/extra_definitions/links_manager_defines.php

Add the code necessary to draw the field in:
includes/templates/YOUR_TEMPLATE/templates/tpl_links_submit_default.php"
and I am still unable to get the box to show up..

DAISIE

any advice?

Thank you for your time and assistance!

11 Sep 2007, 1:03 AM
#569
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

youniquephotos:

Thank you for finding this and letting me know.
I have fixed this and have been trying to add the box at the bottom to add the image url by the person submitting. I followed the advice you gave oxycottin
"Add the necessary define statements for that field to:
includes/languages/english/extra_definitions/links_manager_defines.php

Add the code necessary to draw the field in:
includes/templates/YOUR_TEMPLATE/templates/tpl_links_submit_default.php"
and I am still unable to get the box to show up..

DAISIE

any advice?

Thank you for your time and assistance!

Just unzip the attached and upload the includes folder to your server
[Attachment no longer available]

11 Sep 2007, 1:46 AM
#570
youniquephotos avatar

youniquephotos

New Zenner

Join Date:
Oct 2004
Posts:
40
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Thank you for sending this. I did as you instructed and I am still unable to see the box. Have I done something wrong?

Thank you,

11 Sep 2007, 3:11 AM
#571
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

youniquephotos:

Thank you for sending this. I did as you instructed and I am still unable to see the box. Have I done something wrong?

Thank you,

You're using the "classic" template correct?

11 Sep 2007, 3:19 AM
#572
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

clydejones:

You're using the "classic" template correct?

Try this:

Just unzip and upload the includes folder to your server

[Attachment no longer available]

11 Sep 2007, 3:48 AM
#573
youniquephotos avatar

youniquephotos

New Zenner

Join Date:
Oct 2004
Posts:
40
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

clydejones:

Try this:

Just unzip and upload the includes folder to your server

[Attachment no longer available]

You are a genious! That did it! :clap:

Many thanks!

11 Sep 2007, 3:51 AM
#574
jomaze avatar

jomaze

New Zenner

Join Date:
Aug 2007
Posts:
7
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

I've been reading through most of these posts and couldn't find the answer I need...I downloaded/uploaded all the files. I changed the "CUSTOM TEMPLATE" the name of the one I'm using (I was supposed to change every one of those to the name of my template, correct?)

So in my layout box controller, the links mgr is bolded and red and when I activate it, I get these errors on my website:

Warning: main(includes/templates/template_default/sideboxes/tpl_links_select.php) [function.main]: failed to open stream: No such file or directory in /home/theact/public_html/includes/modules/sideboxes/delta-864/links_box.php on line 38

Warning: main(includes/templates/template_default/sideboxes/tpl_links_select.php) [function.main]: failed to open stream: No such file or directory in /home/theact/public_html/includes/modules/sideboxes/delta-864/links_box.php on line 38

Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/sideboxes/tpl_links_select.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/theact/public_html/includes/modules/sideboxes/delta-864/links_box.php on line 38

ALSO---I'm not too sure how I was supposed to "run" the sql file. Where was I supposed to put it in order to run it?!?!?

Here's my website, though you probably don't need it since I don't have it turned on because of the errors. https://www.theactofmarriage.com

11 Sep 2007, 4:08 AM
#575
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

JoMaze:

I've been reading through most of these posts and couldn't find the answer I need...I downloaded/uploaded all the files. I changed the "CUSTOM TEMPLATE" the name of the one I'm using (I was supposed to change every one of those to the name of my template, correct?)

So in my layout box controller, the links mgr is bolded and red and when I activate it, I get these errors on my website:

Warning: main(includes/templates/template_default/sideboxes/tpl_links_select.php) [function.main]: failed to open stream: No such file or directory in /home/theact/public_html/includes/modules/sideboxes/delta-864/links_box.php on line 38

Warning: main(includes/templates/template_default/sideboxes/tpl_links_select.php) [function.main]: failed to open stream: No such file or directory in /home/theact/public_html/includes/modules/sideboxes/delta-864/links_box.php on line 38

Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/sideboxes/tpl_links_select.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/theact/public_html/includes/modules/sideboxes/delta-864/links_box.php on line 38

ALSO---I'm not too sure how I was supposed to "run" the sql file. Where was I supposed to put it in order to run it?!?!?

Here's my website, though you probably don't need it since I don't have it turned on because of the errors. https://www.theactofmarriage.com

These are the folders where you should change the name to delta-864

includes/languages/english/YOUR_TEMPLATE
includes/languages/english/extra_definitions/YOUR_TEMPLATE
includes/languages/english/html_includes/YOUR_TEMPLATE
includes/modules/YOUR_TEMPLATE
includes/modules/sideboxes/YOUR_TEMPLATE
includes/templates/YOUR_TEMPLATE

You copy the contents of the sql file and paste it into

admin -> tools -> install sql patches

click the send button

11 Sep 2007, 4:14 AM
#576
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

youniquephotos:

You are a genious! That did it! :clap:

Many thanks!

Glad its working

Some advice if I may...

You should really create your own custom template.

using the "classic" template will cause a lot of problems with any future updates since everything in that folder will be overwritten.

11 Sep 2007, 3:22 PM
#577
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

I just upgraded to the the 3.1.3 and just used the upgrade files and pasted the code for sql.

Now I get a error when I go in Admin - Extras- Links
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/xxxxx/public_html/andmin/links.php on line 164

What is wrong? Worked fine before upgrade.

11 Sep 2007, 4:21 PM
#578
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

mydanilo:

I just upgraded to the the 3.1.3 and just used the upgrade files and pasted the code for sql.

Now I get a error when I go in Admin - Extras- Links
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/xxxxx/public_html/andmin/links.php on line 164

What is wrong? Worked fine before upgrade.

Danilo,

3.1.3??????

can you post the code for admin/links.php (lines 122 through 166)

11 Sep 2007, 5:14 PM
#579
jomaze avatar

jomaze

New Zenner

Join Date:
Aug 2007
Posts:
7
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

clydejones:

These are the folders where you should change the name to delta-864

includes/languages/english/YOUR_TEMPLATE
includes/languages/english/extra_definitions/YOUR_TEMPLATE
includes/languages/english/html_includes/YOUR_TEMPLATE
includes/modules/YOUR_TEMPLATE
includes/modules/sideboxes/YOUR_TEMPLATE
includes/templates/YOUR_TEMPLATE

You copy the contents of the sql file and paste it into

admin -> tools -> install sql patches

click the send button

I had all these file names changed correctly and I sent the SQL as copy and paste and also the browse/select option. This was done yesterday before I started looking around here for help. So since these things are done....I'm really lost as to what my problem is. Do i need to do something with those tpl files since that's where my error was coming from?

11 Sep 2007, 5:16 PM
#580
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Linksmanager 3.1.3

Code:

      } else if($action == 'insert') {
        $sql_data_array['links_date_added'] = 'now()';
      }

      if ($action == 'update') {
        zen_db_perform(TABLE_LINKS, $sql_data_array, 'update', "links_id = '" . (int)$links_id . "'");
      } else if($action == 'insert') {
        zen_db_perform(TABLE_LINKS, $sql_data_array);

        $links_id = zen_db_insert_id();
      }

      $categories_query = "select link_categories_id from " . TABLE_LINK_CATEGORIES_DESCRIPTION . " where link_categories_name = '" . $links_category . "' and language_id = '" . $_SESSION['languages_id'] . "'";

      $categories = $db->Execute($categories_query);
      $link_categories_id = $categories->fields['link_categories_id'];

      if ($action == 'update') {
        $db->Execute("update " . TABLE_LINKS_TO_LINK_CATEGORIES . " set link_categories_id = '" . (int)$link_categories_id . "' where links_id = '" . (int)$links_id . "'");
      } else if($action == 'insert') {
        $db->Execute("insert into " . TABLE_LINKS_TO_LINK_CATEGORIES . " ( links_id, link_categories_id) values ('" . (int)$links_id . "', '" . (int)$link_categories_id . "')");
      }

      $sql_data_array = array('links_title' => $links_title,
                              'links_description' => $links_description);

      if ($action == 'update') {
        zen_db_perform(TABLE_LINKS_DESCRIPTION, $sql_data_array, 'update', "links_id = '" . (int)$links_id . "' and language_id = '" . $_SESSION['languages_id'] . "'");
      } else if($action == 'insert') {
        $insert_sql_data = array('links_id' => $links_id,
                                 'language_id' => $_SESSION['languages_id']);

        $sql_data_array = array_merge($sql_data_array, $insert_sql_data);
        zen_db_perform(TABLE_LINKS_DESCRIPTION, $sql_data_array);
      }

      if (isset($_POST['links_notify']) && ($_POST['links_notify'] == 'on')) {
        $email = sprintf(EMAIL_TEXT_STATUS_UPDATE, $links_contact_name, $links_status_array[$links_status]) . '<br />' . STORE_OWNER . '<br />' . STORE_NAME;

        zen_mail($links_contact_name, $links_contact_email, EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS');
      }

      zen_redirect(zen_href_link(FILENAME_LINKS, zen_get_all_get_params(array('lID', 'action')) . 'lID=' . $links_id));
    } else if ($error == true) {
      $lInfo = new objectInfo($_POST);