Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: islam2hamy on December 28, 2008, 11:44:24 AM

Title: Topic Title In The Center Under Linktree
Post by: islam2hamy on December 28, 2008, 11:44:24 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1572)
   
Topic Title In The Center Under Linktree
v1.5
  *Description:

         This mod allow you to show the Topic Title In The Center  Under Linktree.
         See the image.

         Enjoy.


*Last update :

          29/12/2008  :  bug fixed
          5/1/2009 : New Version 1.5 ( Special Thanks To Sabre™ (http://index.php?action=profile;u=108486) ;) )
           5/11/2010 : New Version 2.0 ( Special Thanks To forumuser (http://www.simplemachines.org/community/index.php?action=profile;u=210315)  (https://www.simplemachines.org/community/Smileys/default/wink.gif) )

   
My Mods (http://custom.simplemachines.org/mods/index.php?action=search;author=126024)
Title: Re: Topic Title In The Center Under Linktree
Post by: qtime on December 28, 2008, 12:03:08 PM
Let me the first to say thanks, working on my large forum.
Some features will be nice: scalable fonts and color chose in admin panel :)
Title: Re: Topic Title In The Center Under Linktree
Post by: Mick. on December 28, 2008, 12:05:14 PM
Will this mod show the board moderator as well?

"(Moderator: *******)Topic: any topic"
Title: Re: Topic Title In The Center Under Linktree
Post by: Mick. on December 28, 2008, 12:09:53 PM
It doesnt.  cool.  Thanx.
Title: Re: Topic Title In The Center Under Linktree
Post by: Mick. on December 28, 2008, 12:15:36 PM
It looks better without the  *~ ~*   ...so i removed it.

echo '
<div>', theme_linktree(), '</div>

<div style="text-align: center; color:#387cb3; font-size: 25pt;">
   *~ ', $context['subject'], ' ~*
</div>

';



end result:

echo '
<div>', theme_linktree(), '</div>

<div style="text-align: center; color:#387cb3; font-size: 25pt;">
    ', $context['subject'], '
</div>


Title: Re: Topic Title In The Center Under Linktree
Post by: Mick. on December 28, 2008, 11:24:25 PM
if you have a poll in your topics,you might want to resize the fonts to a smaller size.  The current font size 25 shows over the poll box.

echo '
<div>', theme_linktree(), '</div>

<div style="text-align: center; color:#387cb3; font-size: 25pt;">
   *~ ', $context['subject'], ' ~*
</div>

';



font-size: 25pt;">

maybe 20 or 15.
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on December 29, 2008, 03:51:27 AM
Quote from: qtime on December 28, 2008, 12:03:08 PM
Let me the first to say thanks, working on my large forum.
Some features will be nice: scalable fonts and color chose in admin panel :)

you are welcome.
thanks for the idea , i will search how to do that   ::)
if there is someone know how to do that please tell me .  :D

Quote from: BlueDevil on December 28, 2008, 12:05:14 PM
Will this mod show the board moderator as well?

"(Moderator: *******)Topic: any topic"

no

Quote from: BlueDevil on December 28, 2008, 12:09:53 PM
It doesnt.  cool.  Thanx.

you are welcome.  :D

Quote from: BlueDevil on December 28, 2008, 12:15:36 PM
It looks better without the  *~ ~*   ...so i removed it.

echo '
<div>', theme_linktree(), '</div>

<div style="text-align: center; color:#387cb3; font-size: 25pt;">
   *~ ', $context['subject'], ' ~*
</div>

';



end result:

echo '
<div>', theme_linktree(), '</div>

<div style="text-align: center; color:#387cb3; font-size: 25pt;">
    ', $context['subject'], '
</div>




as you wish.  ;D

Quote from: BlueDevil on December 28, 2008, 11:24:25 PM
if you have a poll in your topics,you might want to resize the fonts to a smaller size.  The current font size 25 shows over the poll box.

echo '
<div>', theme_linktree(), '</div>

<div style="text-align: center; color:#387cb3; font-size: 25pt;">
   *~ ', $context['subject'], ' ~*
</div>

';



font-size: 25pt;">

maybe 20 or 15.

i will thinking about that .


Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on December 29, 2008, 04:22:53 AM
Quote from: BlueDevil on December 28, 2008, 11:24:25 PM
if you have a poll in your topics,you might want to resize the fonts to a smaller size.  The current font size 25 shows over the poll box.

echo '
<div>', theme_linktree(), '</div>

<div style="text-align: center; color:#387cb3; font-size: 25pt;">
   *~ ', $context['subject'], ' ~*
</div>

';



font-size: 25pt;">

maybe 20 or 15.

fixed re download and install it
Title: Re: Topic Title In The Center Under Linktree
Post by: samozin on December 29, 2008, 02:11:32 PM
مبروك المود يا مان  موفق انشاء الله
Title: Re: Topic Title In The Center Under Linktree
Post by: JungleBunny on December 29, 2008, 04:50:54 PM
Thanks, nice Gimmick :D :D :D :D :D :D
Title: Re: Topic Title In The Center Under Linktree
Post by: D.S on December 29, 2008, 07:09:09 PM
wonderful mod, I like this idea ..
thank u mate ..
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on December 29, 2008, 10:52:01 PM
Quote from: samozin on December 29, 2008, 02:11:32 PM
مبروك المود يا مان  موفق انشاء الله

الله يبارك فيك الف شكر

Quote from: JungleBunny on December 29, 2008, 04:50:54 PM
Thanks, nice Gimmick :D :D :D :D :D :D

you are welcome . :D

Quote from: D.S on December 29, 2008, 07:09:09 PM
wonderful mod, I like this idea ..
thank u mate ..

you are welcome.
Title: Re: Topic Title In The Center Under Linktree
Post by: taha116 on December 30, 2008, 11:13:43 AM
This looks like a useful mod, especially because I am always looking to refresh the page and the link right there makes it easier, because sometimes if you follow an anchor link to a topic and you refresh it the page is not properly refreshed
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on December 30, 2008, 11:54:37 AM
 ;D you are welcome.
Title: Re: Topic Title In The Center Under Linktree
Post by: Sabre™ on January 04, 2009, 05:43:33 PM
Thanks mate, I like this very much. :D
Moved the color etc attributes to style.css, and got a lil carried away lol as you can see in attachment.

Thanks mate, adds a nice touch to the forum  :)
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on January 05, 2009, 01:57:04 AM
Quote from: Sabre™ on January 04, 2009, 05:43:33 PM
Thanks mate, I like this very much. :D
Moved the color etc attributes to style.css, and got a lil carried away lol as you can see in attachment.

Thanks mate, adds a nice touch to the forum  :)

lol it is very nice  ;D

Can you share the code with us please,
To make a Special Version.
Title: Re: Topic Title In The Center Under Linktree
Post by: Sabre™ on January 05, 2009, 02:17:47 AM
Oh of course mate.
You could improve the parts I cannot.

It is attached.
I renamed the folder so others wont get confused.
It is packaged, as I repackage all mods to suit my forum, before installing them.
Less manual edits that way ;)
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on January 05, 2009, 05:45:42 AM
Quote from: Sabre™ on January 05, 2009, 02:17:47 AM
Oh of course mate.
You could improve the parts I cannot.

It is attached.
I renamed the folder so others wont get confused.
It is packaged, as I repackage all mods to suit my forum, before installing them.
Less manual edits that way ;)

lol thank you it is very nice

i will add it  ;D
Title: Re: Topic Title In The Center Under Linktree
Post by: Sabre™ on January 05, 2009, 06:11:54 AM
lol
I've actually changed my code, as I thought it looked a little too plain.
I've only added catbg3 and changed a couple css values, so now it looks like the attached image.

<div>', theme_linktree(), '</div>
<tr class="catbg3">
<td valign="middle">
    <div class="lol"><b>', $context['subject'], '</b></div>
</td>
</tr>';


It rough and ugly coding mate, maybe you can clean it up?
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on January 05, 2009, 06:34:20 AM
Quote from: Sabre™ on January 05, 2009, 06:11:54 AM
lol
I've actually changed my code, as I thought it looked a little too plain.
I've only added catbg3 and changed a couple css values, so now it looks like the attached image.

<div>', theme_linktree(), '</div>
<tr class="catbg3">
<td valign="middle">
    <div class="lol"><b>', $context['subject'], '</b></div>
</td>
</tr>';


It rough and ugly coding mate, maybe you can clean it up?

what about that

Display.template.php

    echo '
<div>', theme_linktree(), '</div>
<tr class="catbg4">
<td valign="middle">
    <div class="lol"><b>', $context['subject'], '</b></div>
</td>
</tr>';


style.css

.catbg4
{
background: url(images/catbg.jpg) #88A6C0 repeat-x;
color: #ffffff;
padding: 1px;
margin: 10px auto;     
width: 500px; 
-moz-border-radius-bottomleft:15px;
-moz-border-radius-bottomright:15px;
-moz-border-radius-topleft:15px;
-moz-border-radius-topright:15px;   
}
Title: Re: Topic Title In The Center Under Linktree
Post by: Sabre™ on January 05, 2009, 06:44:15 AM
oops sorry, I was editing my post lol

[ previous post ]
Yes that looks very nice! 8)

With the moz-border-radius, you do not need 4 of them, I only added that incase others wanted to change each corner.
If they are all to be the same value, all you need is
moz-border-radius: 15px;

Also, the curved edges only work for FF, in other browsers, they are square

[ new post ]

Oh ok.  I dunno why that happened.

EDIT
hahaa you removed your post lol
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on January 05, 2009, 06:53:03 AM
hahaa lol ,

QuoteAlso, the curved edges only work for FF, in other browsers, they are square

:'(
Title: Re: Topic Title In The Center Under Linktree
Post by: Sabre™ on January 05, 2009, 07:05:31 AM
How did you curve your catbg?
I used your edit, and it displays without the curves.
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on January 05, 2009, 11:53:46 AM
don't forget to use (catbg4) not (catbg3)
Quoteecho '
<div>', theme_linktree(), '</div>
<tr class="catbg4">
<td valign="middle">
    <div class="lol"><b>', $context['subject'], '</b></div>
</td>
</tr>';
Title: Re: Topic Title In The Center Under Linktree
Post by: Sabre™ on January 05, 2009, 06:06:53 PM
Yeah it is!!
Brother, when it comes to copy n paste, I graduated with honours!! lol
I copied your code over. Looking at it I cannot see, as it is structured now, how it would wrap the catbg, but I am still learning, soo.....

Its no biggie though, I decided to leave it how it is so it maintains a balanced structure, and not something too far out.

Thanks for your mod mate, I like its function :)
Title: Re: Topic Title In The Center Under Linktree
Post by: taha116 on January 05, 2009, 07:44:25 PM
Yeah I think ive said this b4 its a great mod, but idd like to tadd that it helps to make the forums look more... vBulletin-ish wich is good... is there a mod that can sorta pull of the whole package to make things look more VBish? And if not then consider this a request for one
Title: Re: Topic Title In The Center Under Linktree
Post by: Sabre™ on January 05, 2009, 09:18:09 PM
Nope...
This is SMF...    Recognise beeeaaattcchh!!
lol  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.postsmile.net%2Fimg%2F19%2F1968.gif&hash=e09c53a51f6c7198f2712e032101b7fe003b05e8)
Sorry mate, Ive just been watchin some Dave Chappelle and couldnt resist lol
Anything is possible, and many mods(new n old) have leant in that direction.

I prefer the smf look.
If I want the look or feel of another software, then I'll use it and incorporate what I like from others. This is what is done anyways.

Since you seriously want this, then post it in the request section as not to hijack this thread.

Good luck :)
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on January 06, 2009, 02:46:38 AM
I am love vBulletin look , and it's mods ,
and i am also looking for know how to make SMF look like it , Check my mods (Welcome Back - Good Bye / Topic Title In The Center Under Linktree / .....)

SMF is the pest free forum  ;D
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on January 06, 2009, 02:49:34 AM
http://www.smfciyiz.biz/index.php/topic,6841.0.html

themes for smf  look like vBulletin
Title: Re: Topic Title In The Center Under Linktree
Post by: edi67 on February 18, 2009, 10:07:28 AM
when will be done for smf 2 RC1?
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on February 19, 2009, 01:00:16 AM
Quote from: edi67 on February 18, 2009, 10:07:28 AM
when will be done for smf 2 RC1?

i will try that next week.
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on November 05, 2010, 10:06:43 AM
Last update :

2010/11/5  -  update for 2.0 RC4
Title: Re: Topic Title In The Center Under Linktree
Post by: [Lucien] on January 26, 2011, 08:58:17 AM
Thanks, mod works great :)
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on February 07, 2011, 12:09:17 AM
you are welcome
Title: Re: Topic Title In The Center Under Linktree
Post by: islam2hamy on December 30, 2011, 11:43:56 PM
updated :)
Title: Re: Topic Title In The Center Under Linktree
Post by: mosravo on August 14, 2013, 12:44:59 PM

TO ADD BOARD DISCRIPTION BELOW YOUR LINK TREE DO THIS;
LOOK FOR THE them_linktree() function in the index.template.php file and add the $context['description'] as shown below.
most of the index.template.php is found in the themes folder in your smf folder.

function theme_linktree()
{
   global $context, $settings, $options;

   echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

   // Each tree item has a URL and name. Some may have extra_before and extra_after.
   foreach ($context['linktree'] as $link_num => $tree)
   {
      // Show something before the link?
      if (isset($tree['extra_before']))
         echo $tree['extra_before'];
         
      // Show the link, including a URL if it should have one.
      echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';

      // Show something after the link...?
      if (isset($tree['extra_after']))
         echo $tree['extra_after'];

      // Don't show a separator for the last one.
      if ($link_num != count($context['linktree']) - 1)
         echo '&nbsp;>&nbsp;';
   }

   echo '</div>';
   echo '<div style="text-align:left; color:#387cb3; font-size: 16pt;">'
   .$context['description']. '</div>';
}