Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[Theme] Black22 (SMF 1.0.5 - 1.1RC2)

Started by bloc, April 09, 2005, 07:27:53 AM

Previous topic - Next topic

David Boreanaz

Wow... my english is poor but only can say that this is fantastic...
Portal Nipon [nofollow]
( SMF 1.1.1)


hi bloc ,
can u insert the chat link ,button and so on,4 the everywhere chat.


If you use "current theme settings" in Black22, there are already textboxes you can use, just insert a link and name for a button and it will show up on the main menu.


great thing sory , i hav´nt seen it . is it posible to insert these "insert field"to every theme?


No, they are per-theme specific. Although the routine can be copied to other themes , the values will not.

Crestafallen man

Hi, got one question!
"Users Online Today Mod", there's no that mod in this theme , can I put it somehow ?
And where?



You need to check the help file for the mod and apply the changes to BoardIndex.template.php of Black22.

Is it the mod from Fasan?


Quote from: Bloc on March 30, 2006, 03:49:24 AM
If you use "current theme settings" in Black22, there are already textboxes you can use, just insert a link and name for a button and it will show up on the main menu.

I created a button named "EMAIL" that goes to our webmail.  Looks and works great but I would like it to open in a new window/tab rather than take me away from the forum to check my email then I have to hit the back button to get back to the forum.

Another do I make the URL for the button use _blank?


Hey man I have an urgent problem with your template. It seems that the mod SMFShop 2.2 don't show up on members post. I really want you to at least fix it or give me instructions on to fix it (it seems like an easy solution to fix it for you...but I'm not in that catagory), becuase I LOVE this template and it matches with my site. I don't want to let it go becuase of this mod (which I really need for my [nonactive]..which is pretty famed upcomming project for the PSP).

I hope you get this soon....or I'll email you.  ;)


The mod needs 2 things to work in all themes - add a button and adding some code in topic view.

First you can use the extra buttons in Black22 and simply add one that says "Shop" or whatever, then add the link to the shop in it. The second you need to open Display.template of Black22 and find this:
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';

Then replace it with this code:
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';

            //BEGIN Shop MOD 0.2 Code
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />

            //I couldn't find where all these $message['member'][whatever] variables
            //are set, so I just send an extra database query to get the member's
            //money. Can someone tell me where (file and line) the $message variables
            //are set?
            global $ID_MEMBER, $db_prefix;

            $result_money = db_query("SELECT money
                                      FROM {$db_prefix}members
                                      WHERE ID_MEMBER = {$message['member']['id']}
                                      LIMIT 1", __FILE__, __LINE__);
            $row_money = mysql_fetch_array($result_money, MYSQL_ASSOC);

            echo $modSettings['shopCurrencyPrefix'].$row_money['money'].$modSettings['shopCurrencySuffix']."<br><br>";
            //END SHOP MOD

//BEGIN SMFShop MOD 1.31 (Build 7) CODE
echo "<a href='$scripturl?action=shop;do=invother2;member={$message['member']['username']}'>View Inventory</a><br>";
//END SMFShop MOD 1.31 code

//BEGIN SMFShop MOD New Version (Build 10) code
echo "<a href='$scripturl?action=shop;do=sendmoney;member={$message['member']['username']}'>Send Money to {$message['member']['name']}</a><br />";
//END SMFShop code

This is just right out the mod's code, so I can't verify it any further - I am not using it myself.



I'm trying to change the font colors in the headings and the role over links to be more in line with the colors on my main site.  when I try to do this in the admin>Current Theme's Settings>Edit Theme I get this message

This file cannot be saved because it is not writable! Please make sure the following file is 777 or has the proper permissions: .../Themes/Black22/style.css

Can I make changes in this window to see if I'm changing the right sections?

Also how can I move the users online up to the top inplace of the random news box?

And can I add my own logo to the top?
SMF 1.1.1 with TP v0.9.7


1. If you can't write to the style.css, use ftp instead and upload any changes. A bit harder, but that should at least work.

2. No, moving online users from bottom means moving that code from BoardIndex.template to index.template - but the online information is ONLY available on forum frontpage, not elsewhere. One possibility is using SSI.php..but thats rather more complex to setup.

3. Logo on the top can be way is too simply open index.template and search for <body>, then insert any <img> tag right after it.


I was able to move the users online up to the top of the forum and really like how it looks :) on this theme.

I was able to add the logo to the top of the page as well but would like it to link back to my home page in a new window and can't seem to get it to work.  this is what I have.
Quoteecho '<table width="100%" cellpadding="0" cellspacing="0" style="background-image: url('.$settings['images_url'].'/topbarmid.gif); background-repeat: repeat-x;"><tr><td class="forum_name" width="50%"><a href=" [nofollow]"><img align="center" src="'.$settings['images_url'].'/thumb_GreyLogo.jpg" alt="" />&nbsp;'.

I've also added a flashing mail gif to the IM
Quote//kvo081406 Show Flashy icon if user has new messages and it not a guest
if (!$context['user']['is_guest'] && $context['user']['unread_messages'])
      echo '
<a href="' . $scripturl . '?action=pm"><img src="' . $settings['images_url'] . '/newim.gif" border="0" />(' . $context['user']['unread_messages'] . ')</a> ' . $context['menu_separator'] . '';
Is there a way to remove the current (#) new messages and have it replaced with the above.

I would like to have a column along side the forum similar to your example;theme=4 [nofollow] so that I could add the Ultimate Shoutbox Mod and some of the stat boxes like you have but can't figure out how to keep the shoutbox fixed to the top just under the buttons?
SMF 1.1.1 with TP v0.9.7


To open a link in a new window, use <a target="_blank". To have a column along the side, find the main table and add a <td> to it, thats what I use on

For flash icon you could locate <a href="' . $scripturl . '?action=pm"> and simply exchange whats after it with the <img> tag pointing to newim.gif.


Bloc I've tried adding the column but each time I think I have it I get an error is this where I need to place something???
Quote// --></script>

       echo '<table align="center" width="', (isset($settings['forumwidth']) && !empty($settings['forumwidth'])) ? $settings['forumwidth'] : '85%' ,'" cellspacing="0" cellpadding="0" border="0"><tr><td style="width: 6px; background-image: url('.$settings['images_url'].'/leftback.gif); background-repeat: repeat-y;" valign="top"><img src="'.$settings['images_url'].'/leftback.gif" alt="" /></td>';
       echo '<td width="100%" style="background-color: #000000" valign="top">
                   <div style="width: 100%; background-color: #3E3C3C">';

This is what I have for the flashing gif
Quoteecho '<a href="', $scripturl, '?action=pm">'.$txt['bl22-pm'].': ', $context['user']['messages'], ' (', $context['user']['unread_messages']>0 ? '<span style="color: #ffa0a0;font-weight: bold;">'.$context['user']['unread_messages'].'</span>' : $context['user']['unread_messages'] ,')</a>';

//kvo081406 Show Flashy icon if user has new messages and it not a guest
if (!$context['user']['is_guest'] && $context['user']['unread_messages'])
      echo '
<a href="' . $scripturl . '?action=pm"><img src="' . $settings['images_url'] . '/newim.gif" border="0" />(' . $context['user']['unread_messages'] . ')</a> ' . $context['menu_separator'] . '';

What can I delete without messing everything up

Thanks for your help
SMF 1.1.1 with TP v0.9.7


Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life