(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fdev.nsf.mher.org%2FThemes%2FBlackDay%2Fimages%2Fthumbnail.gif&hash=1dea47e7a1c354cca793ac59a815f128cba3a58b)
My Second Theme. As you can tell by the name and thumb it is a dark black theme.
It uses Andrea's Black Mini buttons so if you want your language, then see here:
http://www.simplemachines.org/community/index.php?topic=6981.0
Live Demo (http://dev.nsf.mher.org/index.php?action=forum;theme=4)
Download (SMF 1.0.5) (http://dev.nsf.mher.org/Downloads/SMF%20Themes/BlackDay(SMF1.0.5).zip)
Download (SMF 1.1) (http://dev.nsf.mher.org/Downloads/SMF%20Themes/BlackDay(SMF1.1).zip)
Game & Shop Buttons (http://www.simplemachines.org/community/index.php?topic=37870.0)
Enjoy :D
much like the theme I made from another template on my forums (www.mansionofmetal.com/forum). A few things I dont like about your theme is the text font in the header and the font colour on things like calender. otherwise good start.
Thanks for your comments.
I personally like the text at the top the way it is, because it is the same size as the rest of the forum.
I'll try fixing the calendar though ;)
Calendar has been changed. Zip updated :)
Good work! I love dark themes ;)
Ooooo.... I like this a lot.. Good work.
Thanks JewelCG and forsakenlad.
I'm a bit sick of black themes, but great job nonetheless
Cool ;)
Hey Nesianstyles,
By far the one of the best themes avaible. Really love it.
Thanks,
Michael
Thanks mfresi, klumy and giba_choo.
I've found a small bug in BoardIndex.template.php
This has been fixed and the zip has been updated
Good theme. Since it uses andreas buttons it would be nice to include a copyright smf black buttons, or w/e she named it to Andrea in the copyrights.
Thanks, I'll put some credit in next time I modify it ;)
Nice dark theme. :)
Updated once again. Added credit for andera's buttons and fixed another small bug
Hopefully this will be the last ;)
This is a pretty cool theme, but I have a few requests/questions...
1) How do I get rid of the "My Community" text at the top of the page.
2) How do I make the font size smaller for the User Info, News Box and Key Stats boxes, so that it's the same size as the rest of the font throughout the forum? I played around with the CSS file, but everytime I make a change it seems to effect the rest of the forum.
Thanks!
Open themes/BlackDay/inde.template.php
Remove
// This part is the logo and forum name. You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';
Find
echo '<td width="100%" valign="top" class="windowbg2" style="font-family: verdana, arial, sans-serif;">';
Replace with
echo '<td width="100%" valign="top" class="windowbg2" style="font-size: small; font-family: verdana, arial, sans-serif;">';
Find
<td class="windowbg2" width="100%">',
Replace with
<td class="windowbg2" width="100%" style="font-size: small">',
Find
<td class="windowbg2" width="100%"><b>',
Replace with
<td class="windowbg2" width="100%" style="font-size: small"><b>',
Theme has been updated again.
A few small fixes and tweaks have been done to make it look nicer.
Most noticable ones are quotes and the boxes at the top.
thanks for the great link . really great.and very nice to see
thanks
hello any one know how to remove User Info & ket status in Black day theme
pls help me
Quote from: Rajasingh on June 17, 2005, 11:13:09 PM
hello any one know how to remove User Info & ket status in Black day theme
pls help me
Post merged with the appropriate topic.
-Dan The Man
How do I add my logo to the top?
to replace the name?
find
', $context['forum_name'], '
replace with
<img src="', $settings['images_url'], '/yo image.gif" border="0">
after uploading the logo to your images folder under "BlackDay"
You misspelled Andrea's name for the button credits. Should be 'Andrea', not 'Andera'.
is there any chance that this theme will be updated to 1.1 beta 3?
How do I change the font color in the News Fader... it's currently black on black... kinda hard to read! :D
Open BoardIndex.template.php and change:
<div id="smfFadeScroller" style="width: 90%; padding: 2px; color: #000000;"><b>', $context['news_lines'][0], '</b></div>
To:
<div id="smfFadeScroller" style="width: 90%; padding: 2px; color: #FFFFFF;"><b>', $context['news_lines'][0], '</b></div>
Ahh, thanks for updating the template, I have several users who will be glad to see this back!
Quote from: nesianstyles on August 02, 2005, 04:20:37 AM
Open BoardIndex.template.php and change:
<div id="smfFadeScroller" style="width: 90%; padding: 2px; color: #000000;"><b>', $context['news_lines'][0], '</b></div>
To:
<div id="smfFadeScroller" style="width: 90%; padding: 2px; color: #FFFFFF;"><b>', $context['news_lines'][0], '</b></div>
Thanks Nesian! This is a great theme. One more quick change I'd like to make but not sure how. On the news fader the word 'News' is not in bold, how would I make that bold? Also, I'm assuming where I would change the font style is also where I would change what it says, i.e. MySite News...
When I click on "Show unread posts since last visit" it shows all the posts that have been replied to already, which is working just fine. However, in the default and other themes it would have an icon to the far right of the thread, where if you clicked on it you would be taken to the very last post. In this theme that is not present. Why isn't it or am I missing something here?
Also, how do I change the overall width of the forum? I would like it to be 800 pixels wide if possible.
Thanks.
Click on the New button?
And wowzer open BoardIndex.template.php and change:
<tr class="titlebg" align="center">
<td>', $txt[102], '</td>
</tr>
to
<tr class="titlebg" align="center">
<td><b>', $txt[102], '</b></td>
</tr>
Another newsfader question...
When I load the main page to the forum, the first news item appears in the newsfader box, then disappears and the next item that fades in is the same exact news item, then that disappears and the second news item fades in. Is there any way for that first item to not repeat twice at the beginning of the newsfader cycle?
this is nothing to do with the theme.
You probably have a duplicate news item
I was looking for such a dark theme and your's actually exactly the one I was searching for. Neet images (thx to Andrea), great composition of the layout and not too much graphic stuff there. And dark (grey, black).
Maybe I only would modify the color of links to a darker orange/yellow to have more contrast also, but thanks a lot for your awsome work!
Thankyou for your comments.
Fell free to do some modifications to the css.
I never was very good at very dark themes. So I apreciate how well you got the contrasting shades Nesian. I like. :)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv338%2Ffearthetoothfairy%2FMWOA.jpg&hash=0f5a060af7da92f86cd53fa0293ec87d8655a52f)
I dont know what it is....but something about the color scheme makes it so.....flawless. It's like the perfect mixture of grays and blacks.
Quote from: jasidog on August 11, 2005, 04:43:22 PM
I never was very good at very dark themes. So I apreciate how well you got the contrasting shades Nesian. I like. :)
Thanks jasidog, I've always been a fan of your themes.
And thanks Tippmaster. I like the small hat on the walrus!
Quote from: nesianstyles on August 06, 2005, 05:10:37 AM
this is nothing to do with the theme.
You probably have a duplicate news item
no duplicate news items....
it still has absolutely nothing to do with the theme
Quote from: Tippmaster on August 13, 2005, 11:41:38 AM
it still has absolutely nothing to do with the theme
probably a browser issue at this point...
I am sure there's a reason why the chat portion of the software does not show up under this theme...can I ask what it is?
Quote from: NineseveN on August 17, 2005, 06:15:07 PM
I am sure there's a reason why the chat portion of the software does not show up under this theme...can I ask what it is?
huh? Chat portion? What are you talking about?
You need to manually install mods on new themes.
Okay, I've installed the Spiders mod and can see the option to activate this via the admin board and have checked the appropriate boxes, but do not see the spider heading under my users online section?
Is this just because I'm not online when my site is getting crawled or do I need to mod another .php page?
I know I'm being crawled because I'm all over google and I know I'm online enough that I should see the spiders on my site.
Please let me know.
Thx.
Quote from: wowzer on September 05, 2005, 01:20:45 AM
Okay, I've installed the Spiders mod and can see the option to activate this via the admin board and have checked the appropriate boxes, but do not see the spider heading under my users online section?
Is this just because I'm not online when my site is getting crawled or do I need to mod another .php page?
I know I'm being crawled because I'm all over google and I know I'm online enough that I should see the spiders on my site.
Please let me know.
Thx.
How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
Quote from: JCody on September 05, 2005, 10:23:40 AM
Quote from: wowzer on September 05, 2005, 01:20:45 AM
Okay, I've installed the Spiders mod and can see the option to activate this via the admin board and have checked the appropriate boxes, but do not see the spider heading under my users online section?
Is this just because I'm not online when my site is getting crawled or do I need to mod another .php page?
I know I'm being crawled because I'm all over google and I know I'm online enough that I should see the spiders on my site.
Please let me know.
Thx.
How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
Okay, I read that, but there is no .mod file with the Googlebot mod, just the .xml file which reads:
Quote<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<name>Googlebot & Spiders Mod</name>
<id>obazavil:googlebot</id>
<type>modification</type>
<version>1.0.4</version>
<install for="1.0.3, 1.0.4, 1.0.5, 1.1 Beta 2">
<readme>install.txt</readme>
<modification>install.xml</modification>
<code>install.php</code>
</install>
<uninstall>
<modification reverse="true">install.xml</modification>
</uninstall>
</package-info>
None of the instructions in the link you provided describe what to do here... can you clarify?
Thx.
John
instead of the .mod look in the install.xml
what file controls the text size for class smalltext and nav and everything, i want to make everything a couple points bigger.
styles.css at the very bottom (I think)
hi,
i really really like your theme is fits perfectly in my site and works fine as standalone but included in mambo i got servaral of the following error.
Warning: Cannot modify header information - headers already sent by (output started at xxx/www/oor/forum/Sources/Load.php(1040) : eval()'d code:455) in xxx/www/oor/index.php on line 214
the only theme that perfectly fits and error i searched for simmilar problems but can't find anything
please help could it be that there is a file missing ?
that problem has nothing to do with this theme
ok but why do i got these errors only when specialy this theme is activated.. i've tried many others and they work fine. Only when i activate this theme i got this errors... If it is an other problem could you help me out how to fix this..... Thanks for your reply
it might be some sort of reaction to the modified index.template.php
but it all works on a normal smf so I can't really see a problem with it...
your server is down Nev?
k thanks i'm near a solution something or some script writes a header in my mambo index file right in the middle for no caching i commented it out get a little less errors.... i'll hope it'll work properly after my newbie actions ::)..
Quote from: trenchteam on September 13, 2005, 07:39:40 AM
your server is down Nev?
At the mo it is, but I am setting it back up on http://dev.nsf.mher.org I had some trouble with the nesian.info domain...
I would like to get a copy of this theme...does anyone have a recent zip of this theme they would like to share?
I need to update the first post, but for now use these:
SMF 1.0.5 (http://dev.nsf.mher.org/Downloads/SMF%20Themes/BlackDay(SMF1.0.5).zip)
SMF 1.1 (http://dev.nsf.mher.org/Downloads/SMF%20Themes/BlackDay(SMF1.1).zip)
Thanks! :)
Hey great theme but when I install the 1.1 version it installs as 1.0 and is missing the last_post button. All I really need is the button. Thanks
Yeah I was missing the icon too
however once I manually uploaded the icon it works nicely. Still the 1.0 though
I have noticed that the Mark as Read option does not work with this them using the RC1.
Could someone help me out on what I need to change in order for it to work? I like this theme because it works nicely with the theme of my site.
Thanks in advance....
i have two questions about this theme
1.how/where can I adjust the width size?because it's to large for me?
2.how can I ad a logo on top of the page?and where do I have to change things in what file?
adjust the size? as in width?
if so, you could just find the body tag in index.template.php, and add a margin attribute.
ex : <body style="margin: 0 40px 0 40px;">
How to get an other language work together with this amazing theme?
I love this theme !!!
It's black, stylish and works very well within my "Los Angeles, 2019" website (devoted to the movie "Blade Runner").
I'll hope that this theme will be continued to be upgraded, I will try and tweak and finetune it so it fits my website the best it can.
I do hope that my visitors find the forum fun and usefull.. that's the most important thing
Once again, thanks for a great theme :-*
Quote from: Benqo on October 07, 2005, 04:17:35 AM
How to get an other language work together with this amazing theme?
Put the language images into Themes/BlackDay/images/*language name*/
There are many in the buttons topic...
Is there something I can change on the theme to get the "Mark As Read" button to work? It keeps asking me to try logging in again when using it on RC1.
I am using this theme with 1.0.5 and am upgrading to rc1. I have actually changed some things and am using different black day themes for each of my forum sections and am wondering if their is a way i can go though and mod the 1.0.5 theme to work properly with rc1 rather than reinstalling and modding it again. As far as i can tell i havent ran into anything that isnt working with the 1.0.5 themes but their obviously has to be some differences.
check your error log. :P
I dont have the error log on right now, i was receiving an error from the arcade being installed and the joomla bridge and it was causing problem so i turned it off. Whatever error the arcade was having was a joomla live site not recognised or something and it wasnt really a priority at the time since it wasnt causing any funtion problems that i could tell.
Hi there,
Will this theme work with ver 1.1 RC1? I installed it everything seems ok except the month drop down on the calender is empty? Any help suggestions would be appreciated.
Thanks
Dill
Versions are supplied for 1.05 and 1.1rc see here:
http://dev.nsf.mher.org/index.php?topic=31.0
Nice theme nessian! ;)
~redone
oddly enough i never ported it fully to 1.1, and I will look at redoing this port as I am not very happy with it.
nice :)
thanks ;)
I've finally updated BlackDay for better 1.1 support.
I've re-built it from ground up, and it should work with no problems.
The zip has been updated.
awesome...been looking forward to this update
thanks
excellent, ty
thanks,Very nice
First, very nice theme. I have been looking for a dark one for some time that I liked.
I do have a problem: when I check the error logs I fing this... 8: Undefined index: memberCount
File: .................................................................../forum/Themes/default/Errors.template.php (eval?)
Line: 270
It makes an error for each button click. This is something to do with RC2. The default themes don't create these errors. I can update it myself If I am told what needs to be done. Little noobish at this... :)
BTW it doesn't really seem to affect the operation of the board otherwise.
apologies, i've been away for the past week but I can't answer you now as I am off again for another 1/2 week...
will answer you when I get back ;)
Great theme.
Can you tell me how to add a logo at the top of the screen for 1.0.5?
Thanks
open Themes/default/BlackDay/index.template.php and find
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>
and replace with
<img src="URL TO LOGO" />
oh and to all you rc2 users out there this theme will be updated VERY soon...
Thanks.
Waiting for your update!
running rc2 and get this error
Quote8: Undefined index: newtime
File: /home/xxxxxxx/public_html/boards/Themes/xxxxxxOriginal_2006/Recent.template.php (eval?)
Line: 245
must be because rc2
yes it is...
I've got this theme ready but I want to have them all updated first.
updated for rc2
Quick question, i was using the 1.0.5 themes and then upgraded to 1.1 but modded my themes to work myself because i have made previous modifications i didnt want to lose. I don't know if it worked before but i just tried using the send html and it wont send as html. I have checked on many different accounts and they all just come through normal text. I am on rc2 right now. COuld this be something theme related?
does it work on the other themes? if yes, then it is theme related.
yep works on the default, do you know what file i should edit and make changes to?
post.template.php I think
I did my own modifications to the template. can you tell me what you changed from RC1 to RC2 so i can change them manually?
http://www.simplemachines.org/community/index.php?topic=64744.0
First of all...outstanding theme. It looks fantastic and works perfectly with my site and my members love it.
Now that I have sufficiently kissed up...can I ask where in the code do I add my domain link so that the banner image I loaded points to the main site?
I have looked around and maybe I missed it, but nothing I have tried has worked so far.
Thanks in advance
thanks diante, this is most certainly my most popular theme (and it was only my second!).
To do that, you would need something like this:
<a href="MAIN SITE URL"><img src="BANNER URL" alt="" /></a>
I did add the <a href=> tag to the index.template.php file where I loaded my banner. I wrapped it around the <img src> code
// This part is the logo and forum name. You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;"><img src="', $settings['/SMF/Themes/BlackDaySMF1/images'], '/SMF/Themes/BlackDaySMF1/images/mot_smf_logo.jpg" align="middle" border="0"></span>';
and it errored out the entire section. Is there another file I am supposed to put the <a href=> code into? If so, will having the img src in two places cause an error? Am I just going about this all wrong?
I am using rc2 and the template for that SMF version. You can check it out at Moons of Teramor Forums (http://moonsofteramor.com/index.php?option=com_smf&Itemid=46)
try this instead.
// This part is the logo and forum name. You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;"><a href="/index.php"><img src="' . $settings['images_url'] . '/mot_smf_logo.jpg" align="middle" border="0" alt="" /></a></span>';
I've fixed the xhtml validation in it aswell... There may not be a link at the bottom but it still validates!
Thank you for the assistance. I did have to modify your code posted a bit.
<span style="font-family: Georgia, sans-serif; font-size: xx-large;"><a href="/index.php"><img src="' . $settings['/SMF/Themes/BlackDaySMF1/images'] . '/SMF/Themes/BlackDaySMF1/images/mot_smf_logo.jpg" align="middle" border="0" alt="" /></a></span>';
without the entire path in both locations, the image would not display. I did play with the settings, and nothing other than exactly what is posted here works. However, it does work and it does link back to my main site.
Thank you for your help. Just another reason to love this template.
Great theme! I've just started with SMF and it's great to know that you can create something really spectacular at your second attempt... altough I think I'll need at least 20! Congratulations.
I'm having some problems with avatars and Internet Explorer. It can't display them. It's able to upload them, and I can see those uploaded themes from Firefox, but never from IE. Any ideas about what can be happening? (I've got the latest version of the theme with SMF 1.1 RC2).
Thanx.
If anyone else was having a problem with the send html newsletters, i had to copy managenews.template.php from the default directory to tmy blackday directory.
I added the "Quick Upload" plugin, and I've noticed that Firefox users have to open and close the "Additional Options" twice to see the Quick Upload link. Anyone else have this problem?
I added
Quoteiframe name="qupload" src="/forum/Upload.html" valign="middle" frameborder="0" scrolling="no" height="80" width="800" ></iframe>
under the
Quote<div id="postMoreOptions"><
area like posted on another thread in this forum.
Any help would be appreciated, love this theme!
ok, have a small problem only with this template, besides I need buttons for chat and shop lol.
When I go to Karma someone on the forum I'm getting this error.
QuoteSession verification failed. Please try logging out and back in again, and then try again.
It's not happening with any other template so... I dunno lol.
make sure you have the right version of this theme on the right version of smf...
Hi Nesianstyles!
Great theme! I had a problem but I fixed it so now...
just thanks!
www.shockingjesus.com/forum
I know that this was just talked about but I'm not sure I understand.
I want to have the header be a direct link to the home page. Where do I start?
BTW, this is a great template. I shopped around for hours and as soon as I saw it I downloaded it.
I just installed this theme and its working great, however I had the AD mod installed so I could place adsense on the top and bottom of each page. Now that no longer works. How can I manually add an ad on the top and bottom of each page? Where would I place the code? Thanks.
Any ideas on the banner pic/home link?
I have the jpg loaded in my images folder but I can't figure out where to put the code without it taking my forum down.
Hi all,
Sorry if this has already been answered but I've really tried searching for the answer here before posting.
I'm using the latest version of BlackDay from Nesianstyles (great theme!) but I'm trying to make the background color of sticky topics a little different from all the rest so it's easier to find the first new post.
I've searched both the default theme style.css and the css in the BlackDay theme directory, and nothing appears to address this specific background, yet the default theme does have a different sticky background color than the rest of the topics.
Any help would be greatly appreciated!
Thanks,
Jett
New support topic is in the Themes site board, please use that or my site.
I recommend when asking for support to post on my site, as I don't look here much.
Hi, I am using the BlackDay theme (which I love by the way!) on my website http://johnnybdesign.com
However, I get a ton of error logs and I do not have enough knowledge to troubleshoot it. I run the latest SMF 1.0.7 with 1.1RC2
Please find below the three most common and redundant error logs:
[Wed Jul 5 19:55:58 2006] [error] [client ipaddress removed] File does not exist: /xxx/xxxx/xxxxxx/forum/Themes/default/xml_topic.js
[Wed Jul 5 19:55:58 2006] [error] [client ipaddress removed] File does not exist: /xxx/xxxx/xxxxxx/forum/Themes/default/print.css
[Wed Jul 5 19:55:54 2006] [error] [client ipaddress removed] File does not exist: /xxx/xxxx/xxxxxx/forum/Themes/default/xml_board.js
It looks like there are some files missing since there are no "xml_topic.js" nor "print.css" or "xml_board.jf" files in the default folder... This translates into ugly red X's on many pages... (I guess where the print button should be)
Does that ring a bell? Your help would be highly appreciated.
Problem solved. I was working BlackDay 1.1 with the outdated SMF 1.0.5 version.
I have a site that has been using Blackday for a long time. We just upgraded our boards and would like to reinstall the newer version but the links are down. Does anyone know where I can obtain the newest version of this theme? 1.1 rc2
Thanks
hmm download doesn't work ^^
i tried adding the pic up top, i deleted the <span....code and replaced it with
http://<img src="http://img246.imageshack.us/ etc....gif />
when i replaced it the .php file it screwed the them up and i had to replace the .php file with a original,
i was getting an error something about index parse or something, what dod i do wrong?
when you post a logo for this theme, you have to make sure the formatting agrees with PHP.
in the section of index.template.php where you post an image logo, it says this:
// This part is the logo and forum name. You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif; font-size: large;">', '$context['forum_name']', '</span>';
you have to change it to something like this:
// This part is the logo and forum name. You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif; font-size: large;">','<img src="http://www.yoursite.com/yourSMFdirectory/yourimagefolder/LOGO.jpg" alt="yoursite.com">', '</span>';
this line: http://www.yoursite.com/yourSMFdirectory/yourimagefolder/LOGO.jpg is just a directive to where your logo is stored on your server. You can change it to whatever you want (this is just a sample).
as long as you keep the ', ' between the html codes, you should be fine. I even threw an Alt tag in there for ya.
Hi,
I've been messing with this theme quite a bit and have gotten to know the ins and outs fairly well, but there is one thing I just cannot figure out.
And that is how to add additional buttons to the menu on the index template. I have no clue?
Also, I would like to know how to display the calendar directly on the main page (preferably, in the section where the Upcoming Events are displayed within the Info Center...just replace all of the event listings with the calendar). I wish there was a checkbox you could click to do this...but I'll take the coded way too.
This is the best template I have come across for use on a rock website forum. With some tweaking, you can make the smfcalendar module post events/rockshows through SSI onto just about any page on your site, make it easy to post shows, easy to keep things organized. It's pretty great (but could be even better with some more tweaking).
Anyway, I'll post my mods and tweaks after this. If you can answer any of my questions, that would be great.
If you're like me, you hate the way the events display in the standard Calendar module. They're all jumbled together in one big line, with hardly enough textarea to post any information.
Here is a quick fix for both problems, but first the textarea problem.
The standard length for two boxes are fairly short (I can't remember what the values are offhand, but basically they truncate valuable info from your event title/subject title lines when you submit a new event.
My solution to this problem is as follows:
Enter the BlackDay theme folder on your server, and find the Post.template.php file.
Open this file in Wordpad (since this fix is only going to take a second)
Hit CTRL+F (find on this page) and search for the match phrase maxlength.
The first hit should put you in the tag next to "evtitle" .
Change the value of "maxlength" to 600 , but also change the value of "size" to 100 so the line looks like this.
<input type="text" name="evtitle" maxlength="600" size="100" value="', $context['event']['title'], '" tabindex="', $context['tabindex']++, '" />
Press CTRL+F again, to find the next hit on "maxlength".
Again, change the values of "maxlength" to 600 and "size" to 100, so the line will look like this:
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="100" maxlength="600" />
Save the file, reload it onto your server, and you should now see that you have extended the forms for your Subject and Event boxes across your site (which now means that you can have longer Subjects for new posts).
The next fix has to do with the way events display on the front page of the BlackDay theme. It's fairly simple once you realize why they display the way they do (there aren't any line breaks!).
What you want to do (again, since this fix will be easy with this code) is open BoardIndex.template.php in something simple like Wordpad.
Press CTRL+F and search for the phrase "together" (it only occurs once in this file, and is the simplest way to find your place in the code).
You will come to a line that says //events like community get togethers
Replace the entire block of code (from //events like community get togethers to //Show a little help text...) with this new one:
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #', $modSettings['cal_eventcolor'], ';">', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ?'<b>' . $event['title'] . '</b>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ?'<br />': ', <br />';
Just cut and paste it (the easiest way).
Save the file, and reload it onto your server. Also, be sure you have "posting events on the frontpage" enabled.
This piece of code will post your events in a single column, instead of the paragraph long event jumble (which is standard). All it does is add line breaks where they should be.
I wanted to add a Flash Mp3 (for use with the http://www.jeroenwijering.com/?item=Flash_MP3_Player) player to the BlackDay Theme for use on my website, so users could browse the site and listen to music at the same time.
The problem is that when you browse the site, if the player is encoded into the actual theme, the player will restart every time the page is changed.
The most efficient way to add a Flash Mp3 player is to enable BlackDay to open a new Javascript window that users can minimize while browsing your site.
To add a javascript code (available on any page) you must do two things: embed a Javascript code to the index.template.php file before you come to the </head> tag, and then add a link to your new window (which I put conveniently in the NewsBox).
Here's how to do it:
1. Open index.template.php (again, I use Wordpad because this is going to be quick)
2. Press CTRL+F and search for </head>.
Here you will come to the end of another script (marked by the </script> tag, followed by </head>).
Put your cursor behind the </script> tag and hit enter a few times to give yourself a little space to work in.
3. Here you will enter the code for your Javascript PopUp window (which opens a new window) between </script> and </head>. Enter this code (and obviously, change what you need to change to suit your needs)
<script>function launch() { mp3player=window.open("http://www.yoursite.com/flash_mp3_player/mp3player.html","mp3","width=300,height=300,top=10,left=20,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,location=no") }
</script>
Please note: You must have your Flash Mp3 Player loaded into the correct directory at this time...in the code above I loaded the player in this directory...you may use a different one (but I would try and use this one just for the sake of getting it to work right away). Since the MP3 players default size is 300 wide by 300 high, I used those sizes for the popup window size as well (to keep it looking clean).
4. Save the file, and reload it onto your server.
/end of step one.
Step Two: Adding your popup link
It doesn't get much easier than this part. For the sake of convenience, I added the link which will pop up the player window to the BlackDay theme Newsbox (since it is available on every page...I suppose you could also add it to the Footer if you want).
Yeah, so basically all you need to do is add a link to the Javascript, which would be this:
<a href="javascript:launch()">and then type in something, or use a picture or whatever</a>
/end of step two
Step Three: editing the HTML page (mp3player.html)
Again, fairly straightforward. Find the page mp3player.html and change the code to this (and only this, because I've already stripped out all the margins for you, so it should look perfect right away):
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>YOUR SITE TITLE</title>
</head>
<body style="margin:0px; background-color:#000000;">
<!--
Here starts the code you can to copy to your website. You can change the 'width'
and 'height' parameters to whatever dimensions you want the player to be. Note
that these parameters appear twice, so you need to set them twice!
-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="300" id="mp3player"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
<param name="movie" value="mp3player.swf" />
<embed src="mp3player.swf" width="300" height="300" name="mp3player"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- this is the end of the code you need -->
</body>
</html>
Save the page, and reload it on your server.
That's pretty much it. There are some things you will wish to do on your own (like add a new background to the Flash Player, which will be a 300 by 300 image of whatever you would like), change the playlist.xml, and add your own songs (be sure to edit the playlist.xml file after you add original music to your /mp3 directory to incorporate new titles, files, etc.
I wanted to add Users online Today (http://www.simplemachines.org/community/index.php?topic=55513.0) mod but I when It came to modyfing BlackDay's BoardIndex.template.php I couldn't find lines to which the code refered to. Anyone know where to add it (assuming it is possible). Problematic code part below:
<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="before"><![CDATA[ ', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';
]]></search>
<add><![CDATA[
// Users online today
echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';
echo '
<div class="smalltext">';
echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
if (!$context['user']['is_guest'])
echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);
echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';]]>
</add>
</operation>
</file>
topic is now locked please refer to:
http://www.simplemachines.org/community/index.php?topic=79393.0