[Theme] BlackDay [SMF 1.0.5 & 1.1]

Started by crazystu, May 25, 2005, 10:03:59 PM

Previous topic - Next topic

n1kki6

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.

raiderray

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!

Skuggi

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.

crazystu

make sure you have the right version of this theme on the right version of smf...

AmyB

#104
Hi Nesianstyles!

Great theme!  I had a problem but I fixed it so now...

just thanks!

www.shockingjesus.com/forum

Jiveturkey

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.

ghazz

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.

Jiveturkey

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.


Jettero

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

crazystu

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.

Johnnybdesign

Hi, I am using the BlackDay theme (which I love by the way!) on my website hxxp:johnnybdesign.com [nonactive]

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.

Johnnybdesign

Problem solved. I was working BlackDay 1.1 with the outdated SMF 1.0.5 version.

ismile

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

Steffen



DaleJr8

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?

kirra1

#116
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:  hxxp:www.yoursite.com/yourSMFdirectory/yourimagefolder/LOGO.jpg [nonactive] 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.


kirra1

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.

kirra1

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.

kirra1

I wanted to add a Flash Mp3 (for use with the hxxp:www.jeroenwijering.com/?item=Flash_MP3_Player [nonactive]) 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.

Advertisement: