Advertisement:

Author Topic: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)  (Read 79837 times)

Offline David Boreanaz

  • Semi-Newbie
  • *
  • Posts: 21
  • Gender: Male
  • Geki! Teikoku Kageki-dan!!!
    • Portal Nipon
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #60 on: March 25, 2006, 12:24:36 AM »
Wow... my english is poor but only can say that this is fantastic...
Portal Nipon [nofollow]
( SMF 1.1.1)

Offline Dennisronja

  • Semi-Newbie
  • *
  • Posts: 91
  • Gender: Male
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #61 on: March 29, 2006, 03:04:05 PM »
hi bloc ,
can u insert the chat link ,button and so on,4 the everywhere chat.

bloc

  • Guest
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #62 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.

Offline Dennisronja

  • Semi-Newbie
  • *
  • Posts: 91
  • Gender: Male
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #63 on: March 30, 2006, 05:32:26 PM »
ahhh
great thing sory , i havĀ“nt seen it . is it posible to insert these "insert field"to every theme?

bloc

  • Guest
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #64 on: March 30, 2006, 07:22:53 PM »
No, they are per-theme specific. Although the routine can be copied to other themes , the values will not.

Offline Crestafallen man

  • Newbie
  • *
  • Posts: 1
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #65 on: April 10, 2006, 05:49:55 AM »
Hi, got one question!
"Users Online Today Mod", there's no that mod in this theme , can I put it somehow ?
And where?

Tnx.

bloc

  • Guest
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #66 on: April 10, 2006, 03:31:43 PM »
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?

Offline daygo140

  • Semi-Newbie
  • *
  • Posts: 21
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #67 on: July 18, 2006, 03:37:34 PM »
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 words...how do I make the URL for the button use _blank?

Offline Ryogen

  • Newbie
  • *
  • Posts: 5
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #68 on: August 12, 2006, 10:24:29 PM »
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 hxxp:boardsus.playstation.com/playstation/board/message?board.id=pspgames&message.id=303717 [nonactive]..which is pretty famed upcomming project for the PSP).

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

bloc

  • Guest
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #69 on: August 13, 2006, 03:28:37 AM »
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:
Code: [Select]
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';

Then replace it with this code:
Code: [Select]
// 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.

Offline Ryogen

  • Newbie
  • *
  • Posts: 5
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #70 on: August 13, 2006, 03:45:13 PM »
It works like a charm bro. Thanks!  ;)

Offline kvanorsdel

  • Semi-Newbie
  • *
  • Posts: 13
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #71 on: August 13, 2006, 04:57:03 PM »
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?
« Last Edit: August 13, 2006, 05:01:13 PM by kvanorsdel »
SMF 1.1.1 with TP v0.9.7

bloc

  • Guest
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #72 on: August 13, 2006, 05:57:27 PM »
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 added..one way is too simply open index.template and search for <body>, then insert any <img> tag right after it.

Offline kvanorsdel

  • Semi-Newbie
  • *
  • Posts: 13
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #73 on: August 14, 2006, 11:40:59 AM »
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.
Quote
echo '<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="http://www.madcity.org/ [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 examplehttp://www.tinyportal.net/smf/index.php?action=forum;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?
« Last Edit: August 15, 2006, 12:27:21 AM by kvanorsdel »
SMF 1.1.1 with TP v0.9.7

bloc

  • Guest
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #74 on: August 15, 2006, 04:26:08 AM »
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 tinyportal.net.

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.

Offline kvanorsdel

  • Semi-Newbie
  • *
  • Posts: 13
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #75 on: August 15, 2006, 04:32:32 PM »
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>
</head>
<body>';


       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
Quote
echo '<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

Offline Deaks

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,158
  • Gender: Male
Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
« Reply #76 on: January 10, 2008, 10:35:56 AM »