Advertisement:

Author Topic: Link Tree  (Read 51805 times)

Offline SeMaForo

  • Semi-Newbie
  • *
  • Posts: 60
  • Gender: Female
  • Siempre que ocurre igual pasa lo mismo
Re: Link Tree
« Reply #40 on: November 19, 2009, 06:55:01 AM »
Sorry Cyclon,my english is really poor...
When the board displays, i see two times my new linktree, one at he top, before the posts, and a second one just after the posts. Two times then. Is it possible to change that and force the linktree to appear just one time?, for instance only at the top?
Thanks very much
Una frase no se gana a un pueblo, ni con un disfrazarse de poeta.

Offline Informatics

  • Full Member
  • ***
  • Posts: 454
  • Gender: Male
  • SMF Explorer
    • Forum Informatika
Re: Link Tree
« Reply #41 on: November 19, 2009, 08:33:51 PM »
My mother language is not English either :D

Can you show me the sample site of you. Thanx.

You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id


Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Link Tree
« Reply #42 on: February 02, 2010, 02:30:09 AM »
is it going to be updated for RC2
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline Informatics

  • Full Member
  • ***
  • Posts: 454
  • Gender: Male
  • SMF Explorer
    • Forum Informatika
Re: Link Tree
« Reply #43 on: February 02, 2010, 03:52:38 AM »
^ i'm not sure can do this stuff anymore.... maybe somebody else want to develope it.

Thanx.

You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id


Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Link Tree
« Reply #44 on: February 02, 2010, 03:53:49 AM »
first of all very nicely written n easy to understand mod ... i played alot with it in my site

did it myself .... if  u allow i can post some of the changes i made

here's my site link if anyone wanna see how it looks...

www.freakygurus.com

thanx once again
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline Informatics

  • Full Member
  • ***
  • Posts: 454
  • Gender: Male
  • SMF Explorer
    • Forum Informatika
Re: Link Tree
« Reply #45 on: February 02, 2010, 04:39:05 AM »
You can show your creativity here, maybe someone want to adapt it.
Thanx and what a nice forum you have :) .

You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id


Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Link Tree
« Reply #46 on: February 02, 2010, 05:19:22 AM »
sure ...here we go..

Find
Code: [Select]
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{

Replace:
Code: [Select]
echo '<img src="' . $settings['default_images_url'] . '/nav_inline_start.gif" alt="linktree" class="midimage" border="0" />&nbsp;';
// Each tree item has a URL and name.  Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{

Find:
Code: [Select]
// Don't show a separator for the last one (RTL mode)
if ($link_num != count($context['linktree']) - 1 && $context['right_to_left'])
echo '&#171;&nbsp;';

Add After
Code: [Select]
// Show the | | |-[] Folders.

if ($link_num > 0)

echo '<img src="' . $settings['default_images_url'] . '/icons/folder_open2.gif" alt="+" border="0" />&nbsp; ';
      

Find:
Code: [Select]
// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] .'</span>';

Replace:
Code: [Select]
// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && (isset($tree['url']) && $link_num != count($context['linktree']) - 1) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] .'</span>';

Find:
Code: [Select]
// Don't show a separator for the last one.
Replace:
Code: [Select]
if ($link_num == count($context['linktree']) - 2)
        echo '<br /><img src="' . $settings['default_images_url'] . '/nav_inline_end.gif" alt="linktree" class="midimage" border="0" />&nbsp;';

// Don't show a separator for the last one.

Thanx for the comment on site  :D

if possible can u pack these codes into mod,as i dont know how to make a mod.
It'll help people to install ur beautiful mod more easily.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline Informatics

  • Full Member
  • ***
  • Posts: 454
  • Gender: Male
  • SMF Explorer
    • Forum Informatika
Re: Link Tree
« Reply #47 on: February 02, 2010, 05:35:46 AM »
Nice share. I'll figure it later. Thanx.

You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id


Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Link Tree
« Reply #48 on: February 02, 2010, 07:06:26 AM »
Sorry Cyclon,my english is really poor...
When the board displays, i see two times my new linktree, one at he top, before the posts, and a second one just after the posts. Two times then. Is it possible to change that and force the linktree to appear just one time?, for instance only at the top?
Thanks very much

so u want to remove linktree from the bottom ...

ru asking for RC2 ??
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: Link Tree
« Reply #49 on: February 04, 2010, 05:05:02 AM »
i also added some more functionality to linktree .... like

the very first folder image  ---- if u click on it , it will reload the page

the connecting folder image below it --- if u click it , it will take u one step back,i.e the position u were

if anyone wanna see u can see here >> www.freakygurus.com :D
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline fullmoonya

  • Jr. Member
  • **
  • Posts: 189
    • my forum
Re: Link Tree
« Reply #50 on: March 17, 2012, 07:13:39 AM »
could somebody update this for smf2.0.2?..
do not mark my topic solve unless it is REALLY SOLVED.
my forum

Visit My Blog:
Google SEO Share

Offline BaghdadGhost

  • Jr. Member
  • **
  • Posts: 386
  • Gender: Male
Re: Link Tree
« Reply #51 on: August 11, 2012, 05:19:10 AM »
could somebody update this for smf2.0.2?..

I second this request if possible.

thanks