Page 1 of 2 12 LastLast
Results 1 to 10 of 1988

Hybrid View

  1. #1

    Default 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!

  2. #2
    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 Doodlebuckets View Post
    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
    Code:
      $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
    Code:
      $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.

  3. #3
    Join Date
    May 2005
    Location
    England
    Posts
    740
    Plugin Contributions
    0

    Default 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

  4. #4

    Default Re: Link Manager 3.0 Support Thread

    [quote=clydejones;675220]
    Code:
      $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 Code:
    $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
    Code:
      $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?

  5. #5
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default 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????

  6. #6
    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 CharInLasVegas View Post
    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.

  7. #7
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: Link Manager 3.0 Support Thread

    Quote Originally Posted by clydejones View Post
    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.

  8. #8
    Join Date
    Nov 2005
    Posts
    77
    Plugin Contributions
    0

    Default Re: Link Manager 3.0 Support Thread

    Quote Originally Posted by clydejones View Post
    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.
    I am having the same problem and have narrowed it down to the sidebox. When the LINKS sidebox is turned ON the lightbox will not work, but when the sidebox is turned OFF it works OK. Any ideas on how to fix this?

  9. #9
    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 HeathenMagic View Post
    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.

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

    Default 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]
    Quote Originally Posted by clydejones View Post
    Code:
      $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 Code:
    $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
    Code:
      $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?

 

 
Page 1 of 2 12 LastLast

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