Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Classic Themes => Topic started by: bloc on April 09, 2005, 07:27:53 AM

Title: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: bloc on April 09, 2005, 07:27:53 AM
All files have been moved to the themes site:

http://themes.simplemachines.org/index.php?lemma=19
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: PopLife on April 09, 2005, 07:36:12 AM
Another great theme Bloc. I like this one very much.
Just a suggestion, maybe you could create versions which don't include the avatar in the header. I say this because it looks awkward to have a repeated avatar in MK Portal
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 09, 2005, 07:41:06 AM
I will look into it.
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: PopLife on April 09, 2005, 07:55:31 AM
Quote from: Bloc on April 09, 2005, 07:41:06 AM
I will look into it.
Cheers ;D
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: klumy on April 09, 2005, 08:13:31 AM
nice layout ;)
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: codenaught on April 09, 2005, 10:53:43 AM
Very nice theme. Has a nice taste in it.  :)
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: StormFire on April 09, 2005, 06:46:52 PM
ive removed the calendar file and it still displays as a list.... could it be my cache needs updating?
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 09, 2005, 06:52:01 PM
Probably. If the calendar.template.php is gone , the default one should be used.

If you have a link, I can check it.
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: StormFire on April 09, 2005, 07:01:45 PM
ive been told it works, just see if it takes a while for mine to work properly
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: The Conspirator on April 10, 2005, 12:32:34 AM
I try'd to add an arcade butten but it only shows this.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.theconspiratorsplace.hiya-host.com%2Fimages%2FClipboard01.png&hash=cf1ed228a11e64a640299ae8f5be88c608a51961)
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 10, 2005, 03:40:58 AM
What did you put in the boxes..and which ones?


EDIT:
I just realised..you might be trying to insert the button into the code..is that the case?

If it is, perhaps you could use the admin option of adding buttons instead?
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: The Conspirator on April 10, 2005, 04:27:43 AM
QuoteI just realised..you might be trying to insert the button into the code..is that the case?

Yeah. I copyed the code from another butten and changed some parts of it (e.g action=calendet to action=arcade)


  // The [calendar]!
        if ($context['allow_calendar'])
                echo $bef.'
                                <a href="', $scripturl, '?action=calendar">', strtoupper($txt['calendar24']), '</a></td>';

      // The [arcade]!
                echo $bef.'
                                <a href="', $scripturl, '?action=arcade">', strtoupper($txt['arcade']), '</a></td>';

        // If the user is a guest, show [login] and [register] buttons.
        if ($context['user']['is_guest'])


QuoteIf it is, perhaps you could use the admin option of adding buttons instead?
Huh?
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: A.M.A on April 10, 2005, 04:40:18 AM
Well done Bloc, as usual. Excellent job you did to the display.
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 10, 2005, 04:46:07 AM
If you go into admin section/current theme settings, inserting the link in buttonlink 1 box , and a label("arcade"?) in the buttonlink1 label box the button will show up automatically.

Quote from: The Conspirator on April 10, 2005, 04:27:43 AM


QuoteIf it is, perhaps you could use the admin option of adding buttons instead?
Huh?
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 10, 2005, 04:47:05 AM
Quote from: A.M.A on April 10, 2005, 04:40:18 AM
Well done Bloc, as usual. Excellent job you did to the display.

Thank you. :) Not sure everyone likes the calendar though, its more an experiment.
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: A.M.A on April 10, 2005, 04:55:48 AM
Oh .. how did I miss that. With lots of events/birthdays it will be perfect. Maybe reducing the font size a bit or dividing the weeks into blocks tow/three per a row.
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 10, 2005, 04:59:11 AM
Yeah, I thought of dividing it, but kept the current, since it would then look good in any width.

But it probably could benefit from 2 columns at least.
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: The Conspirator on April 10, 2005, 05:26:06 AM
Ok got it, thanks.
I like the theme, best one I've seen.
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 10, 2005, 05:27:52 AM
Thanks. :)
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: Oldiesmann on April 20, 2005, 10:26:43 AM
Looks good Bloc... I'm wondering how I missed this theme (I browse this section at least once a week to keep up with the themes)... :)
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: evolus on April 20, 2005, 01:35:47 PM
Nice CSS :)
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: Buzz on April 20, 2005, 01:51:27 PM
Love this theme.

I only have one tiny little gripe. (a miracle that I only have one...)

The icons for topics are a little hard to differentiate at high res. In particular the shadow on the sticky one is tough.

More color or shape differences would be great!

Buzz
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 20, 2005, 06:52:24 PM
Yeah, they are copies of the default/classic theme actually, I just toned them down a bit to suit the "atmosphere" of the theme. You could try to just exchange them with the originals if you like. ;)
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: mAiLmAn on April 21, 2005, 04:57:21 AM
best theme for me - but a little buggy if the board language is set to german. i think mostly caused by special character handling... the top menu and the "index" link show up crippled.
would someone be so helpful and check that out? i don't know where to look for... :(

thx! ;)
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 21, 2005, 04:59:52 AM
Do you have a link?
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: mAiLmAn on April 21, 2005, 05:01:32 AM
sure, sorry:

http://mailman.ma.funpic.de/PS/

dont care about the board name ;)

e: woosh! what a reply-time! :D
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: mAiLmAn on April 21, 2005, 05:41:24 AM
this is from my error log:



Filter hinzufügen: Zeige nur Fehlermeldungen dieses Mitgliedes mAiLmAn Heute um 11:40:20 AM
Filter hinzufügen: Zeige nur Fehlermeldungen dieser IP Adresse 85.74.23.194    Filter hinzufügen: Zeige nur Fehlermeldungen dieser Sitzung 0f7dae1ed7f8ca8b50d853db76cd2313
Filter hinzufügen: Zeige nur Fehlermeldungen dieser URL http://mailman.ma.funpic.de/PS/index.php?action=viewErrorLog
Filter hinzufügen: Zeige nur Fehlermeldungen mit der gleichen Nachricht
8: Undefined index: bl22-pm
Datei: /usr/export/www/vhosts/funnetwork/hosting/mailman/PS/Themes/default/Errors.template.php (eval?)
Zeile: 157

Filter hinzufügen: Zeige nur Fehlermeldungen dieses Mitgliedes mAiLmAn Heute um 11:40:20 AM
Filter hinzufügen: Zeige nur Fehlermeldungen dieser IP Adresse 85.74.23.194    Filter hinzufügen: Zeige nur Fehlermeldungen dieser Sitzung 0f7dae1ed7f8ca8b50d853db76cd2313
Filter hinzufügen: Zeige nur Fehlermeldungen dieser URL http://mailman.ma.funpic.de/PS/index.php?action=viewErrorLog
Filter hinzufügen: Zeige nur Fehlermeldungen mit der gleichen Nachricht
8: Undefined index: bl22-maintenance
Datei: /usr/export/www/vhosts/funnetwork/hosting/mailman/PS/Themes/default/Errors.template.php (eval?)
Zeile: 162

Filter hinzufügen: Zeige nur Fehlermeldungen dieses Mitgliedes mAiLmAn Heute um 11:40:20 AM
Filter hinzufügen: Zeige nur Fehlermeldungen dieser IP Adresse 85.74.23.194    Filter hinzufügen: Zeige nur Fehlermeldungen dieser Sitzung 0f7dae1ed7f8ca8b50d853db76cd2313
Filter hinzufügen: Zeige nur Fehlermeldungen dieser URL http://mailman.ma.funpic.de/PS/index.php?action=viewErrorLog
Filter hinzufügen: Zeige nur Fehlermeldungen mit der gleichen Nachricht
8: Undefined index: bl22-loggedin
Datei: /usr/export/www/vhosts/funnetwork/hosting/mailman/PS/Themes/default/Errors.template.php (eval?)
Zeile: 172

Filter hinzufügen: Zeige nur Fehlermeldungen dieses Mitgliedes mAiLmAn Heute um 11:40:20 AM
Filter hinzufügen: Zeige nur Fehlermeldungen dieser IP Adresse 85.74.23.194    Filter hinzufügen: Zeige nur Fehlermeldungen dieser Sitzung 0f7dae1ed7f8ca8b50d853db76cd2313
Filter hinzufügen: Zeige nur Fehlermeldungen dieser URL http://mailman.ma.funpic.de/PS/index.php?action=viewErrorLog
Filter hinzufügen: Zeige nur Fehlermeldungen mit der gleichen Nachricht
8: Undefined index: bl22-unread
Datei: /usr/export/www/vhosts/funnetwork/hosting/mailman/PS/Themes/default/Errors.template.php (eval?)
Zeile: 186

Filter hinzufügen: Zeige nur Fehlermeldungen dieses Mitgliedes mAiLmAn Heute um 11:40:20 AM
Filter hinzufügen: Zeige nur Fehlermeldungen dieser IP Adresse 85.74.23.194    Filter hinzufügen: Zeige nur Fehlermeldungen dieser Sitzung 0f7dae1ed7f8ca8b50d853db76cd2313
Filter hinzufügen: Zeige nur Fehlermeldungen dieser URL http://mailman.ma.funpic.de/PS/index.php?action=viewErrorLog
Filter hinzufügen: Zeige nur Fehlermeldungen mit der gleichen Nachricht
8: Undefined index: bl22-replies
Datei: /usr/export/www/vhosts/funnetwork/hosting/mailman/PS/Themes/default/Errors.template.php (eval?)
Zeile: 187
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 21, 2005, 10:25:45 AM
ah, I think you must define some text-strings meant for the theme..thats the "bl22-xxx" stuff you see in the log.

Try to open index.english.php in Themes/black22/languages and copy the bottom parts that start with "bl22-" over to your index.german.php file, and of course translating them if you want - to german.

Then the errors from that should disppear.
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: mAiLmAn on April 21, 2005, 04:19:47 PM
thanx
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: Buzz on April 22, 2005, 03:23:19 PM
Thanks, I may try exchanging the images.

BTW, I just noticed that the link to your site is broken in the version I downloaded 3 days ago...

it's blocozne instead of bloczone, might want to fix that! ;)

Thanks for the awesome work.
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 22, 2005, 04:38:15 PM
Already fixed in current version. But thanks for the heads up. :)
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: Thantos on April 25, 2005, 01:09:53 AM
Hey another great theme Bloc.  I'm trying to get it to work on the Beta version.
To make it work I added :
$GLOBALS['modSettings']['memberCount'] = isset($GLOBALS['modSettings']['memberCount']) ? $GLOBALS['modSettings']['memberCount'] : $GLOBALS['modSettings']['totalMembers'];

to the top of index.template.php because I was getting an undefined index error.

The main problem I'm having is the table itself seems a little off:

Link:  www.mikemill.org/board/?theme=3

Any ideas?
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 25, 2005, 04:54:09 AM
Try it on with some posts..I think it moves a little when there are no items in the "last post" column.

btw, the link you gave is not the Black22 theme, it showed some experimental theme of yours I reckon. :)
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: Thantos on April 25, 2005, 09:20:48 AM
Opps put the wrong domain down

www.mikemill.com/board/?theme=3

Ok putting in posts did clear it up
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 25, 2005, 11:59:44 AM
Yes. :) Its because I use several tables instead just new rows(for the layout I have there), so when its empty it gets squashed.

But most people don't have empty baords though. ;D
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: Thantos on April 25, 2005, 04:39:23 PM
Well I'm still creating it so :P
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: Isabella on April 25, 2005, 05:59:29 PM
i want that i did insatll it on my forum SMF  but wish to use that too in my Site to fit together  but i cant figure out how use them into php simple file
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on April 25, 2005, 06:22:50 PM
Its possible to use the code on other pages than the forum, but it means removing quite a bit of code I am afraid.
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: BlackMagicWoman on June 09, 2005, 07:17:23 AM
Missing thi text from first row : 0 (0)     : OFF     : 2d 12m     |   It's the PM, time in form etc. when run in finnish language, how to fix this?

BMW
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: bloc on June 09, 2005, 08:10:04 AM
You need to add these texts in the index.finnish.php file inside the "language" folder:
(and of course translate them if you want)

// texts from Black22 theme

$txt['bl22-pm']='PM';
$txt['bl22-maintenance']='MAINTENANCE';
$txt['bl22-unapproved']='UNAPPROVED';
$txt['bl22-loggedin']='LOGGED IN';
$txt['bl22-replies']='REPLIES';
$txt['bl22-unread']='UNREAD';
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: BlackMagicWoman on June 09, 2005, 10:44:22 AM
Thanks Bloc, worked fine  :)
Title: Re: [Theme] Black22 for SMF 1.0-1.0.2
Post by: modtang on June 27, 2005, 01:04:57 AM
This is the closest thing I can find to the Hardwired theme for Coppermine, so I'm using it (with a few tweaks). Very nice theme. Thanks. :)
Title: Enabling buttons
Post by: blazer380 on August 20, 2005, 04:02:17 PM
I currently have this theme (modified), and it doesn't display my buttons, just text/css.
How do I enable my buttons?

http://www.mp3ringtones4u.com/smf
Title: Re: [Theme] Black22 (SMF 1.0.5 / 1.1beta3)
Post by: bloc on August 20, 2005, 06:09:17 PM
It doesn't use buttons at all..it simply takes the texts and place them on top of a background graphic.
Title: Re: [Theme] Black22 (SMF 1.0.5 / 1.1beta3)
Post by: blazer380 on August 21, 2005, 04:43:26 AM
I got your theme to work with buttons.  ;) Just had to do some code modifying. Not too bad, but took couple of hours.
Thanks for the theme.

http://www.mp3ringtones4u.com/smf
Title: Re: [Theme] Black22 (SMF 1.0.5 / 1.1beta3)
Post by: bloc on August 21, 2005, 05:43:10 AM
That looks great! Seems those buttons blend in well. :)
Title: Re: [Theme] Black22 (SMF 1.0.5 / 1.1beta3)
Post by: blazer380 on August 21, 2005, 05:03:36 PM
Thank you, and yeah, took some work... it helps knowing CSS/design. I use the hardwired theme for my coppermine gallery, and your theme was the closest to match that. I just had to change some of the CSS to match it completely.

Here is a brief tutorial on how to replace text with buttons for this theme:

1) Open the file 'index.english.php' located in \smf\Themes\black22\languages

2) Find the text you want to replace with a button ( for example, $txt[34] = 'Login'; )
Here you want to replace the text 'Login' with a login  button. Write down $txt[34] and search for it in all the php files located in \smf\Themes\black22\languages folder.

3) There are 2 types of replacements you can make. I called them 'Periods' and 'Commas'
Example of 'Periods': You will see code that looks like this:
. $context['start'] . ';num_replies=' . $context['num_replies'] . '">' .  $txt[34]  . '</a></td>';

You will replace $txt[34] with this code:
'<img src="'. $settings['images_url']. '/english/login.gif" border="0" />'

Notice that both the original code and the insertion code have periods.


Example of 'Commas': You will see code that looks like this:
else window.location.href = this.href; return false;">',  $txt[34] , '</a></div></td>';

You will replace $txt[34] with this code:
'<img src="', $settings['images_url'], '/english/login.gif" border="0" />'


Some places in the code might say '$txt[400]', but there will not be a corresponding text for that number in the index.english.php, then you just do the same thing and just figure out what the button there should be and use the appropriate code.

If you get a parse error after making a substitution, then you used the wrong code. Like if you used 'periods', try using the 'commas' instead or vise versa.

Here's a screenshot of my current layout with buttons.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.supertekie.com%2Falex%2Flayout1.jpg&hash=34941b961506c5e7d19c570602a0257bc5ae65eb)
Title: Re: [Theme] Black22 (SMF 1.0.5 / 1.1beta3)
Post by: bloc on August 21, 2005, 07:55:35 PM
Although it might be done like this, its better to use the template files and change back to using image files. A major task I know, since it took some time to filter them out in the first place. :)
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC1)
Post by: bloc on October 07, 2005, 07:03:35 PM
Updated to work with SMF 1.1RC1
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC1)
Post by: dtm.exe on October 07, 2005, 07:17:14 PM
Bloc, your demo URL does not work.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC1)
Post by: bloc on October 07, 2005, 08:39:23 PM
Thanks Dan. Updated it. :) after the move its juggled. I need to update all themes with correct demo links really..
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC1)
Post by: dtm.exe on October 07, 2005, 08:39:53 PM
Quote from: Bloc on October 07, 2005, 08:39:23 PM
Thanks Dan. Updated it. :) after the move its juggled. I need to update all themes with correct demo links really..

No problem...yeah, works for me now.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC1)
Post by: julien on October 14, 2005, 11:19:35 AM
Very beauthifull theme!
I wil use it for my new forum (instead of phpbb)

Only  a few questions...
In dutch the first rule is not nice...
: 8 (0)     : OFF     : 2h 33m     |

How do I easyli ad a header and footer?

Thanks in advence!
The URL is: http://www.cadsite.be/smf/
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC1)
Post by: bloc on October 14, 2005, 08:05:29 PM
You are missing some language strings:

http://www.simplemachines.org/community/index.php?topic=32729.msg279928#msg279928

As for header/footer..the easiest way would be to look for <body> and </body> in index.tmplate of Black22, and just insert the html code there.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC1)
Post by: julien on October 16, 2005, 03:52:07 PM
Quote from: Bloc on October 14, 2005, 08:05:29 PM
You are missing some language strings:

http://www.simplemachines.org/community/index.php?topic=32729.msg279928#msg279928

As for header/footer..the easiest way would be to look for <body> and </body> in index.tmplate of Black22, and just insert the html code there.
Thanks, I'll look at ik tomorrow!  8)
BTW, really nice theme!

[edit]Thanks, I didn't made that modification, now everithing works perfect!
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC1)
Post by: RelingQ on October 23, 2005, 11:58:29 AM
 I got a problem. The Website, PM, Profile, and Email buttons arnt comming up, they just show as text.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC1)
Post by: bloc on October 23, 2005, 03:06:41 PM
Thats intentional.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC1)
Post by: Dennisronja on November 20, 2005, 07:08:11 PM
how about matching it with the pjirc chat
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC1)
Post by: bloc on November 21, 2005, 08:22:50 AM
You will need to add a button - "chat" - I reckon, but otherwise it should be ok. Just use the built-in button spots in "admin" / "current theme settings".
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: bloc on January 07, 2006, 07:17:43 PM
Updated for use with SMF1.1RC2. See first post for download link.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: David Boreanaz on March 25, 2006, 12:24:36 AM
Wow... my english is poor but only can say that this is fantastic...
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: Dennisronja on March 29, 2006, 03:04:05 PM
hi bloc ,
can u insert the chat link ,button and so on,4 the everywhere chat.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: 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.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: Dennisronja 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?
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: bloc 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.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: Crestafallen man 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.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: bloc 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?
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: daygo140 on July 18, 2006, 03:37:34 PM
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 words...how do I make the URL for the button use _blank?
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: Ryogen 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 Project PSP-RPG (http://boardsus.playstation.com/playstation/board/message?board.id=pspgames&message.id=303717)..which is pretty famed upcomming project for the PSP).

I hope you get this soon....or I'll email you.  ;)
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: bloc 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:
// 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.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: Ryogen on August 13, 2006, 03:45:13 PM
It works like a charm bro. Thanks!  ;)
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: kvanorsdel 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?
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: bloc 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.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: kvanorsdel 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.
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="http://www.madcity.org/"><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 (http://www.tinyportal.net/smf/index.php?action=forum;theme=4) 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?
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: bloc 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.
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: kvanorsdel 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
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
Title: Re: [Theme] Black22 (SMF 1.0.5 - 1.1RC2)
Post by: Deaks on January 10, 2008, 10:35:56 AM
topic now locked please refer to:

http://www.simplemachines.org/community/index.php?topic=77774.0