News:

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

BlackMagicWoman


modtang

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. :)

blazer380

I currently have this theme (modified), and it doesn't display my buttons, just text/css.
How do I enable my buttons?

hxxp:www.mp3ringtones4u.com/smf [nonactive]

bloc

It doesn't use buttons at all..it simply takes the texts and place them on top of a background graphic.

blazer380

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.

hxxp:www.mp3ringtones4u.com/smf [nonactive]

bloc

That looks great! Seems those buttons blend in well. :)

blazer380

#46
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.

bloc

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. :)

bloc


dtm.exe


bloc

Thanks Dan. Updated it. :) after the move its juggled. I need to update all themes with correct demo links really..

dtm.exe

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.

julien

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/

bloc

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.

julien

#54
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!

RelingQ

 I got a problem. The Website, PM, Profile, and Email buttons arnt comming up, they just show as text.


Dennisronja

how about matching it with the pjirc chat

bloc

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".

bloc

Updated for use with SMF1.1RC2. See first post for download link.

Advertisement: