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

Link Manager 3.0 Support Thread

Views: 486,750

Results 1,261 to 1,280 of 1,988
24 Jan 2009, 5:51 PM
#1261
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

myworld20091:

hi, how do i show the link manager sidebox only on product pages ?

both product info pages and product listing pages or just the product info pages?

25 Jan 2009, 2:57 AM
#1262
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

clydejones:

both product info pages and product listing pages or just the product info pages?

oh sorry,
actually i want the links manager sidebox to show on links page and links submit page only,

and i dont want the sidebox displaying a dropdown list, i want it to be like the product categories showing on the left sidebox.

how do i make it done?

25 Jan 2009, 4:04 AM
#1263
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

myworld20091:

oh sorry,
actually i want the links manager sidebox to show on links page and links submit page only,

and i dont want the sidebox displaying a dropdown list, i want it to be like the product categories showing on the left sidebox.

how do i make it done?

  1. unzip the attached file and upload to your server:
    includes/modules/sideboxes/YOUR_TEMPLATE/links_box.php

[Attachment no longer available]

  1. you can have either a scrollbox or a dropdown list

settings are available in admin -> configuration -> links manager -> Links List - Scroll Box Size/Style

25 Jan 2009, 2:47 PM
#1264
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

thanks Clyde, it works great !

i have another question, now the form background color is white and the form text is black, how do i change those colors ? i cant change them in links.css and lins_submit.css

25 Jan 2009, 4:43 PM
#1265
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

myworld20091:

thanks Clyde, it works great !

i have another question, now the form background color is white and the form text is black, how do i change those colors ? i cant change them in links.css and lins_submit.css

add a background-color declaration to the fieldset in links_submit.css as indicated by the highlighted portion
You can change the color of the label by changing the color declaration

fieldset {
float: left;
clear: left;
width: 100%;
margin: 0 0 1.5em 0;
padding: 0;
background:#eee; /make this any color you wish/
}

label {
float: left;
width: 11em;
margin-right: 1em;
color: #000;
font-weight: bold;
}

25 Jan 2009, 9:56 PM
#1266
doodlebuckets avatar

doodlebuckets

Totally Zenned

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

Re: Link Manager 3.0 Support Thread

Clyde, if I wanted to hardcode the sidebox to go to link category pages that have been created by a program I have instead of pulling everything from Links Manager Database, how would I go about altering the code in the sidebox file? I have already made the proper declarations in my language file. I just need to know how to do the code for my pages and to keep them in the scrollbox like there is currently.

Dunno if my request makes sense! Please let me know if I need to elaborate. Thanks!

25 Jan 2009, 11:50 PM
#1267
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, if I wanted to hardcode the sidebox to go to link category pages that have been created by a program I have instead of pulling everything from Links Manager Database, how would I go about altering the code in the sidebox file? I have already made the proper declarations in my language file. I just need to know how to do the code for my pages and to keep them in the scrollbox like there is currently.

Dunno if my request makes sense! Please let me know if I need to elaborate. Thanks!

Amy,

Here's the code that creates the array for the the sidebox: (includes/modules/sideboxes/YOUR_TEMPLATE/link_listing.php

  $links_query= ("select lc.link_categories_id, lc.link_categories_sort_order, lcd.link_categories_id, lcd.link_categories_name from " . TABLE_LINK_CATEGORIES . " lc, " . TABLE_LINK_CATEGORIES_DESCRIPTION . " lcd where lc.link_categories_status = '1' and lc.link_categories_id = lcd.link_categories_id and lcd.language_id = '" . (int)$_SESSION['languages_id'] . "' order by lc.link_categories_sort_order, lcd.link_categories_name");
  $links = $db->Execute($links_query);
  if ($links->RecordCount()>0) {
    $number_of_rows = $links->RecordCount()+1;
    $links_array = array();
    if ($_GET['link_categories_id'] == '' ) {
    } else {
      $links_array[] = array('id' => '', 'text' => PULL_DOWN_LINKS_MANAGER);
    }
    while (!$links->EOF) {
      $link_categories_name = ((strlen($links->fields['link_categories_name']) > MAX_DISPLAY_LINK_NAME_LEN) ? substr($links->fields['link_categories_name'], 0, MAX_DISPLAY_LINK_NAME_LEN) . '..' : $links->fields['link_categories_name']);
      $links_array[] = array('id' => $links->fields['link_categories_id'],
                                       'text' => $link_categories_name);
      $links->MoveNext();
    }

You'd have to create (hard code) the array without pulling any information from the database.

This is the code that creates the the scrollbox: (includes/templates/YOUR_TEMPLATE/sideboxes/tpl_links_select.php

  $content .= zen_draw_pull_down_menu('lPath', $links_array, (isset($_GET['lPath']) ? $_GET['lPath'] : ''), 'onchange="this.form.submit();" size="' . MAX_LINKS_LIST . '" style="width: 90%; margin: auto;"') . zen_hide_session_id();

Hope this helpful.

26 Jan 2009, 4:01 PM
#1268
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
730
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Hello Clyde,

I just recently upgraded to the latest version, and encountered a division by zero error pertaining to tpl_links_default.php (lines 25 and 27). And the configuration link was empty also.

So I just ran the upgrade script through the host PHPMyadmin, and got the configuration menu working. But now, the links pages themselves are empty store side, but as they were admin side. Not sure if I have messed something up, I appreciate any help with this.

Regards,

Heathenmagic

26 Jan 2009, 6:41 PM
#1269
doodlebuckets avatar

doodlebuckets

Totally Zenned

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

Re: Link Manager 3.0 Support Thread

[quote=clydejones;675220]

  $links_query= ("select lc.link_categories_id, lc.link_categories_sort_order, lcd.link_categories_id, lcd.link_categories_name from " . TABLE_LINK_CATEGORIES . " lc, " . TABLE_LINK_CATEGORIES_DESCRIPTION . " lcd where lc.link_categories_status = '1' and lc.link_categories_id = lcd.link_categories_id and lcd.language_id = '" . (int)$_SESSION['languages_id'] . "' order by lc.link_categories_sort_order, lcd.link_categories_name");
  $links = $db->Execute($links_query);
  if ($links->RecordCount()>0) {
    $number_of_rows = $links->RecordCount()+1;
    $links_array = array();
    if ($_GET['link_categories_id'] == '' ) {
    } else {
      $links_array[] = array('id' => '', 'text' => PULL_DOWN_LINKS_MANAGER);
    }
    while (!$links->EOF) {
      $link_categories_name = ((strlen($links->fields['link_categories_name']) > MAX_DISPLAY_LINK_NAME_LEN) ? substr($links->fields['link_categories_name'], 0, MAX_DISPLAY_LINK_NAME_LEN) . '..' : $links->fields['link_categories_name']);
      $links_array[] = array('id' => $links->fields['link_categories_id'],
                                       'text' => $link_categories_name);
      $links->MoveNext();
    }

You'd have to create (hard code) the array without pulling any information from the database.

Right...do I put something like ```php
$content .= '<br /><a href="http://babygiftbasketsplace.com/store/birth-announcements.htm">' . BOX_INFORMATION_LINKS_CATEGORY1 . '</a>';

 
**and where do I insert that in my code? I have fiddled and fiddled with it and can't figure out how to get it to work. **
----------
 
This is the code that creates the the scrollbox: (includes/templates/YOUR_TEMPLATE/sideboxes/tpl_links_select.php

$content .= zen_draw_pull_down_menu('lPath', $links_array, (isset($_GET['lPath']) ? $_GET['lPath'] : ''), 'onchange="this.form.submit();" size="' . MAX_LINKS_LIST . '" style="width: 90%; margin: auto;"') . zen_hide_session_id();

 
**Do I enter in my hardcoded links somewhere within this code?**
26 Jan 2009, 7:06 PM
#1270
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

I just installed this and Lightbox stopped working. Are they incompatible? I searched through the thread for any references and there was one but it didn't give any info.

Do I need to reinstall Lightbox or use Slimbox instead????

26 Jan 2009, 7:17 PM
#1271
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

I think your best bet would be to do something like the information sidebox:
in includes/modules/sideboxes/YOUR_template/links_box.php
put something like:

$links[] = <a href="http://babygiftbasketsplace.com/store/birth-announcements.htm">' . BOX_INFORMATION_LINKS_CATEGORY1 . '</a>';

Do this for each of your pages

Then in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_links_select.php

You'd have to alter/edit it so you'd have something like
$content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
for ($i=0; $i<sizeof($links); $i++) {
$content .= '<li>' . $links[$i] . '</li>' . "\n";
}
$content .= '</ul>' . "\n";

You'll lose the scrollbox however.

[QUOTE=Doodlebuckets;675530]> clydejones:

$links_query= ("select lc.link_categories_id, lc.link_categories_sort_order, lcd.link_categories_id, lcd.link_categories_name from " . TABLE_LINK_CATEGORIES . " lc, " . TABLE_LINK_CATEGORIES_DESCRIPTION . " lcd where lc.link_categories_status = '1' and lc.link_categories_id = lcd.link_categories_id and lcd.language_id = '" . (int)$_SESSION['languages_id'] . "' order by lc.link_categories_sort_order, lcd.link_categories_name");
$links = $db->Execute($links_query);
if ($links->RecordCount()>0) {
$number_of_rows = $links->RecordCount()+1;
$links_array = array();
if ($_GET['link_categories_id'] == '' ) {
} else {
$links_array[] = array('id' => '', 'text' => PULL_DOWN_LINKS_MANAGER);
}
while (!$links->EOF) {
$link_categories_name = ((strlen($links->fields['link_categories_name']) > MAX_DISPLAY_LINK_NAME_LEN) ? substr($links->fields['link_categories_name'], 0, MAX_DISPLAY_LINK_NAME_LEN) . '..' : $links->fields['link_categories_name']);
$links_array[] = array('id' => $links->fields['link_categories_id'],
'text' => $link_categories_name);
$links->MoveNext();
}

>  
> You'd have to create (hard code) the array without pulling any information from the database. 
>  
> **Right...do I put something like** ```php
$content .= '<br /><a href="http://babygiftbasketsplace.com/store/birth-announcements.htm">' . BOX_INFORMATION_LINKS_CATEGORY1 . '</a>';

**and where do I insert that in my code? I have fiddled and fiddled with it and can't figure out how to get it to work. **

This is the code that creates the the scrollbox: (includes/templates/YOUR_TEMPLATE/sideboxes/tpl_links_select.php

$content .= zen_draw_pull_down_menu('lPath', $links_array, (isset($_GET['lPath']) ? $_GET['lPath'] : ''), 'onchange="this.form.submit();" size="' . MAX_LINKS_LIST . '" style="width: 90%; margin: auto;"') . zen_hide_session_id();

>  
> **Do I enter in my hardcoded links somewhere within this code?**
26 Jan 2009, 7:23 PM
#1272
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

CharInLasVegas:

I just installed this and Lightbox stopped working. Are they incompatible? I searched through the thread for any references and there was one but it didn't give any info.

Do I need to reinstall Lightbox or use Slimbox instead????

As far as I know there should be no problems running these together.
Links Manager uses its own images so should not interfere with the operation of either of the other mods.

You might want to check the support thread(s) for lightbox and Slimbox.

26 Jan 2009, 7:27 PM
#1273
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

clydejones:

As far as I know there should be no problems running these together.
Links Manager uses its own images so should not interfere with the operation of either of the other mods.

You might want to check the support thread(s) for lightbox and Slimbox.

Ok, thanks Clyde.

26 Jan 2009, 7:28 PM
#1274
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

HeathenMagic:

Hello Clyde,

I just recently upgraded to the latest version, and encountered a division by zero error pertaining to tpl_links_default.php (lines 25 and 27). And the configuration link was empty also.

So I just ran the upgrade script through the host PHPMyadmin, and got the configuration menu working. But now, the links pages themselves are empty store side, but as they were admin side. Not sure if I have messed something up, I appreciate any help with this.

Regards,

Heathenmagic

Without actually looking at the database or your admin panel, its hard to say what the problem may be.

I've upgraded at least 3 or 4 sites without problem. You can always PM me if necessary.

26 Jan 2009, 7:59 PM
#1275
doodlebuckets avatar

doodlebuckets

Totally Zenned

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

Re: Link Manager 3.0 Support Thread

[quote=clydejones;675548]I think your best bet would be to do something like the information sidebox:
in includes/modules/sideboxes/YOUR_template/links_box.php
put something like:

$links[] = <a href="http://babygiftbasketsplace.com/store/birth-announcements.htm">' . BOX_INFORMATION_LINKS_CATEGORY1 . '</a>';

Do this for each of your pages

Then in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_links_select.php

You'd have to alter/edit it so you'd have something like
$content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
for ($i=0; $i<sizeof($links); $i++) {
$content .= '<li>' . $links[$i] . '</li>' . "\n";
}
$content .= '</ul>' . "\n";

You'll lose the scrollbox however.

Dang, I was hoping to keep the scrollbox. I can do it otherwise, just wanted the nice effect :D

26 Jan 2009, 8:35 PM
#1276
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

[QUOTE=Doodlebuckets;675576]> clydejones:

I think your best bet would be to do something like the information sidebox:
in includes/modules/sideboxes/YOUR_template/links_box.php
put something like:

$links[] = <a href="http://babygiftbasketsplace.com/store/birth-announcements.htm">' . BOX_INFORMATION_LINKS_CATEGORY1 . '</a>';

Do this for each of your pages

Then in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_links_select.php

You'd have to alter/edit it so you'd have something like
$content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
for ($i=0; $i<sizeof($links); $i++) {
$content .= '<li>' . $links[$i] . '</li>' . "\n";
}
$content .= '</ul>' . "\n";

You'll lose the scrollbox however.

Dang, I was hoping to keep the scrollbox. I can do it otherwise, just wanted the nice effect :D

Instead of using the inline styling for the ul declaration you could add an ID to your stylesheet.css and do your styling by adding a border and a background color.

#linksboxContent ul {
margin: 0;
padding: 0;
list-style-type: none;
border-style: ridge;
background: #000;
}
You can see an example of this styling here Its for the information sidebox (scroll down until you come to the information box) but the technique would apply to your links box.

27 Jan 2009, 2:36 AM
#1277
doodlebuckets avatar

doodlebuckets

Totally Zenned

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

Re: Link Manager 3.0 Support Thread

Thanks, Clyde...I'll give it a go!

27 Jan 2009, 6:12 AM
#1278
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

hi Clyde, for my links page and links_submit page, i'd like to show the links sidebox and my two blank sidebox only, i don't need the other sidebox, how do i get this?

27 Jan 2009, 6:17 AM
#1279
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

myworld20091:

hi Clyde, for my links page and links_submit page, i'd like to show the links sidebox and my two blank sidebox only, i don't need the other sidebox, how do i get this?

Use the same type of conditional statement(s) I provided to you in the other sideboxes.
Check this article in the tutorial/FAQ section

6 Feb 2009, 10:52 AM
#1280
mariuskem avatar

mariuskem

New Zenner

Join Date:
Jan 2009
Posts:
29
Plugin Contributions:
0

Re: Link Manager 3.0 Support Thread

Hello Clyde

I just installed your module but don't know how all the links are not found into the category they were submitted. When I click a category I can only see the following message:

This content is located in the file at: /languages/english/html_includes/YOUR_TEMPLATE/define_links.php

You can quickly edit this content via Admin->Tools->Define Pages Editor, and select define_links from the pulldown.

..and no links there. You can test the error here: http://www.mybestcanvas.info
Click on the "painters" category. There should be 2 links ....but can't find them...even I make sure they are active.

Can you help me please?

Thanks