Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Links Manager (was Link Manager 2)
#51
I've looked here and even in my sites directory and for the life of me I can't locate the directory where the links data is stored.

Anyone know where I can look for the data????

Thanks

Gene
Reply
#52
(2015-06-17, 04:12:18)elubben Wrote: I've looked here and even in my sites directory and for the life of me I can't locate the directory where the links data is stored.

Anyone know where I can look for the data????

Thanks

Gene

Most plugins store their data (as advised) in the data/other/ directory. In Link Manager's case, it is there too.
Link category data is stored in link_categories.xml & links are stored in links.xml in that directory.
Reply
#53
(2015-06-17, 05:01:59)Tyblitz Wrote:
(2015-06-17, 04:12:18)elubben Wrote: I've looked here and even in my sites directory and for the life of me I can't locate the directory where the links data is stored.

Anyone know where I can look for the data????

Thanks

Gene

Most plugins store their data (as advised) in the data/other/ directory. In Link Manager's case, it is there too.
Link category data is stored in link_categories.xml & links are stored in links.xml in that directory.

Thanks Tyblitz...  Was going crazy looking for a directory to sort the xml files....
Reply
#54
So far this plug-in is working great, BUT I'm starting to have some concerns on the amount of data that can be saved and parsed???

I have over 200+ links which are being placed into one file....how safe is that?

Maybe for the next re-write, you could have it save a page for each category link links00 for cat0, links01 for cat 1 etc.

I'm not a programmer and know very little if anything about php.

Gene
Reply
#55
I think that one file is safe enought, it's not accessible directly from browser..

btw. "amount of data" .. I saw that each time I print array or xml object of links, I see many recursions, so it will need some optimizations there too Smile
Reply
#56
(2015-06-19, 01:21:37)morvy Wrote: I think that one file is safe enought, it's not accessible directly from browser..

btw. "amount of data" .. I saw that each time I print array or xml object of links, I see many recursions, so it will need some optimizations there too Smile

As I add more video links, it does seem to become more sluggish on loading the "add Link" screen.  I'll keep my eye on it for now.
Reply
#57
Just wondering if there's a way to change how the links are added to the links admin page. Currently, the newest link is amended to the bottom of the list and you need to pan down to review. IF it was added to the top of the list, it would be right there for you to review.

Just a thought!

Gene
Reply
#58
Would it be possible to get the following layout out of links manager?

Code:
<h3>Catagory_name_0</H3>
<ul>
<li> Catagory_name_0_link 1</li>
<li> Catagory_name_0_link 2</li>
</ul>

<h3>Catagory_name_1</H3>

<ul>
<li> Catagory_name_1_link 1</li>
<li> Catagory_name_1_link 2</li>
</ul>


etc, ect, ect,

This way you would get a page with all link but with catagory name and below the links for that catagory.
Reply
#59
..just read first post

(% link_category:1 %)
(% links:1 %)
Reply
#60
(2015-08-11, 20:31:40)morvy Wrote: ..just read first post

(% link_category:1 %)
(% links:1 %)

i know these settings, but then i have to do it for each catagory what i was looking for is to have one place holder to show all links but do what you described. for instance (%all_links_per_catagory%)
Reply
#61
ah OK, so you want it to do everything automatically ..
so maybe you can try to read category xml file and count number of categories and then just make a loop to list name + links, or customize it totally with parsing of html output
Reply
#62
@morvy that would work, though I prefer to use the existing functions on the plugin object.
@Simplicitie First follow the instructions in my previous post in this thread (copy the function).
After that you can add the following code in functions.php

PHP Code:
function get_all_category_links($categories) 
{
 
 $result '';
 
 foreach ($categories as $cat)
 
   $result .= output_category(return_category_name($cat), return_links_raw($cat));
 
 echo $result;
}

/* here you can define your output */
function output_category($category$items null) {
  $template '';
  if (count($items) > 0) {
    $template .= '<h3>' $category '</h3>';
    $template .= '<ul>';
    foreach ($items as $item) 
      $template 
.= '<li>' $item '</li>';
    $template .= '</ul>';
  }
  return $template;


Add the following code at the end in the function lm_filter in functions.php (starts at line 87):
PHP Code:
/* (% link_categories:id[,id,..] %) */
  $content preg_replace_callback('/\(%\s*all_category_links:((\d+,*)+)\s*%\)/',
     function($matches) {
    $categories explode(','$matches[1]);
    $result '';
    foreach ($categories as $cat) {
      $id intval($cat);
      if (return_category_name($id))
        $result .= output_category(return_category_name($id) , return_links_raw($id));
    }
    return $result;
     }, $content); 

Now in your pages you can do (% all_category_links:1,2,3 %), and in PHP <?php get_all_category_links(array(1,2,3)); ?>
Reply
#63
different displays for the same list

I have just installed links manager and like it however I have a couple of things I would like to do for which I do not see an option.

I want to have different displays for the same list

I have created categories and their relevant links. These are in the side bar. No problem with that.

i have also created a category page into which I want to put the category list. No problem there either but what I want is to have the list that is on the page to also show the description - but not show the description in the sidebar.

Is this possible, has anyone done this or something similar to put me on the right track, please?

Alternatively, I would like to have images on the page instead of text but still have text links in the sidebar, is that possible?

thanks
I'm no Einstein, nor do I profess to be. Just saying what I would try in the circumstances.
Reply
#64
yes, we did it, just read this thread Wink you need to parse the output or change functions a little bit, then you can create multiple "Components" and use them in template, so one list can be shown in different ways
Reply
#65
If you have a https site, you might want to edit line 51 of links_manager.php :

PHP Code:
register_script('jquery-validate''http://ajax.aspnetcdn.com/ajax/jquery.validate/1.10.0/jquery.validate.min.js''1.10.0'); 

And change the http into https:

PHP Code:
register_script('jquery-validate''https://ajax.aspnetcdn.com/ajax/jquery.validate/1.10.0/jquery.validate.min.js''1.10.0'); 

So that the filebrowser works correctly.
Reply
#66
Ok I checked and didn't see this problem...

All my links are like this:

Full Mind ControlCreated By Celebrity Hypnotist Steve G. Jones, "full Mind Control" Will Give You The Power To Control Your Mind And Influence Others.

These should be a space between the red link and the black descriptive text..

Thanks
Gene!
Reply
#67
You could for example add following css code to your template (style.css):
Code:
a.lm-link { padding-right: 1em; }

You can use a.lm-link for styling the links and span.lm-link-desc for styling the link description.

You could use <div class="linksmanager">...</div> around the (% links %) code to get standard included styling
( see file links_manager/css/links_manager_links.css )
Reply
#68
(2019-05-08, 06:40:28)datiswous Wrote: You could for example add following css code to your template (style.css):
Code:
a.lm-link { padding-right: 1em; }

You can use a.lm-link for styling the links and span.lm-link-desc for styling the link description.

You could use <div class="linksmanager">...</div> around the (% links %) code to get standard included styling
( see file links_manager/css/links_manager_links.css )

I'll give the css code a try.

Thanks Again datiswous
Reply
#69
(2019-05-09, 02:11:54)elubben Wrote:
(2019-05-08, 06:40:28)datiswous Wrote: You could for example add following css code to your template (style.css):
Code:
a.lm-link { padding-right: 1em; }

You can use a.lm-link for styling the links and span.lm-link-desc for styling the link description.

You could use <div class="linksmanager">...</div> around the (% links %) code to get standard included styling
( see file links_manager/css/links_manager_links.css )

I'll give the css code a try.

Thanks Again datiswous

Tried that, placed it on line 24 of style css with no effect.
Reply
#70
Edit the file link_html.php (in plugins/links_manager/template/) and in line 13 insert a space (or whatever) just before <span class="lm-link-desc">...
Reply
#71
(2019-05-09, 02:37:33)Carlos Wrote: Edit the file link_html.php (in plugins/links_manager/template/) and in line 13 insert a space (or whatever) just before <span class="lm-link-desc">...

Thanks Carlos, I'll give it a shot!
Reply
#72
I think you should just place it at the bottom of your stylesheet. Also flush cash afterwards.
Reply
#73
(2019-05-09, 08:41:59)datiswous Wrote: I think you should just place it at the bottom of your stylesheet. Also flush cash afterwards.

Tried everything, no avail...
Reply
#74
Found my goof up, used <span class="lm-link-desc"> that was on line 15, not 13. Once I found it and changed it on line 13, it worked great.
Reply




Users browsing this thread: 1 Guest(s)