[Theme] Simplicity (SMF v1.0.5 - 1.1RC2)

Started by bloc, January 23, 2005, 12:40:55 PM

Previous topic - Next topic

Miraenda

#240
I have the same issue for the Topics with all being marked as new next to them whether I've looked at them or not and whether I've marked them as read or not.  I didn't say anything before as it wasn't a big deal to me (I thought maybe I didn't understand completely what the "new" represented...like it might mean recent instead heh), but just wanted to confirm it is likewise happening on my board, so it isn't an isolated incident on yours.

bloc

It seems this was another bug. It was doing just the opposite of what it should - displaying NEW on posts that were read....oh, well.

Archives are updated with the chaneg now. If you want just to update this, you will need to update BoardIndex.template.php file. Or find this code in the same file:
if($context['use_topics']){

         echo '

<span style="font-size: 18px;letter-spacing:-1px;color: #b0b0b0;"><b>' , $context['use_topics'] ? $txt['SIMPLE_Tools41'] : '<a href="'. $scripturl. '?action=recent">'.$txt[214].'</a>' , '</b></span><br /><hr />';

                         $rc=ssi_recentTopics($context['use_topics_max'], NULL , 'array');
                         foreach ($rc as $post){
                                 echo '<img src="'.$settings['images_url'].'/post/xx.gif" alt="*" align="middle" style="margin-right: 8px;" /><b>'.$post['link'].'</b> '. $txt[525]. ' '. $post['poster']['link'];
                               if($post['new'])
                                      echo ' <a href="'.$post['href'].'"><img src="'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="*" align="middle" border="0" /></a>';
                                 echo '<br /><span class="smalltext">' .$post['board']['link']. ' -  '. $post['time'] .'</span>';
                                 echo '<br /><br />';
                         }


Find the statement: if($post['new']) and change it to if(!$post['new'])

Thanks both for letting me know of this...the more i know of bugs, the faster I can eradicate them. ;)

ElLizzardo

Thanks for banging this out so fast, Bloc!
King Lizzard Las Vegas
http://www.kinglizzard.com [nofollow]

Miraenda

Yes, thanks a lot for fixing it so quickly

Apnomis

Thanks for that Bloc, and thanks for including how to fix it manually, my files are now so far removed from the default I'd cry if I had to start again!!!

FBI

I love this theme  8)
Nice, simple and looks different than common forum

millenio

In my front page, I'm using the ssi features to call up the 10 most recent posts.

After changing to Simplicity's theme, my front page now shows these errors at the very top:

Notice: Undefined index: forum_width_left in /home/hsphere/local/home/cng1/machinemess.singaporeanimenews.net/smf/Sources/Load.php(1040) : eval()'d code on line 75

Notice: Undefined index: forum_width_middle in /home/hsphere/local/home/cng1/machinemess.singaporeanimenews.net/smf/Sources/Load.php(1040) : eval()'d code on line 75



Does anyone know what's wrong?

bloc

I am not really sure..but it could be that something from the theme (those errors are from variables that Simplicity use) is drawn into your frontpage.

Apnomis

Bloc it's me again!

I want to put the Upcoming Events under forum news in the right hand column. I tried it using code based on the default design and it worked when on the boardindex screen, but anywhere else in the forum causes errors. I think I need to use ssi to do this, and I know there is an SSI example for upcoming calendar, but I've no idea how this gets implemented into the index.template.php file so I can have an Upcoming Calendar section under the Forum News section?

If you could spare a minute to point me in the right direction I'd be grateful :)

bloc

If you look at BoardIndex.template.php, there is a line with a call to SSI.php there. Just take it out and copy it to index.template.php instead, under template_main_above() and Globals $....

That way it will load the required ssi functions in all parts of the forum. Reason I put it in BoardIndex is because recent topics are present only there.

Apnomis

Quote from: Bloc on March 12, 2005, 06:19:30 AM
If you look at BoardIndex.template.php, there is a line with a call to SSI.php there. Just take it out and copy it to index.template.php instead, under template_main_above() and Globals $....

That way it will load the required ssi functions in all parts of the forum. Reason I put it in BoardIndex is because recent topics are present only there.

Thanks I figured that out, but I couldn't work out what you put to return the function I wanted, didn't realise you just put put the name and nothing else ie ssi_todayscalendar()

eFishie

Haha, nice theme, Bloc. I got worried when I saw the theme name, and thought that I had been beaten to the Back-2-Basics theme idea. Well, my idea was much different.

Anyways, I would love to use this theme when I get some forums back online.

* <? Piranha($fx); ?> curses Tejas Shastry and his lame web server
--Jon

Abstraction Point Electronic Music Community - We don't bite! Really! I promise!

Check out my newest song: Alive

destalk

Just instaleld the update. Great job, once again, Bloc.

Am I right in thinking that we've lost the  (Read 7353 times) [1] 2 3.... along the bottom the the thread template? Or is there now an option that I've missed? If you've decided to remove it, wold anyone know how I can add it back in.

Some of my users get confused when they get to the bottom of a thread and don't realise that there are another 2 or three pages. ;)

Thanks

Apnomis

#253
I'm not sure where you mean? In the topic list (messageindex.template.php) the number of pages of the board is in the left bar in Boardtools, the topics tell you who started them, how many reads it's had, and how many replies, it doesn't tell you how the date of the last reply, last person to reply or number of pages. In the topic itself (display.template.php) number of reads is at the top and number of pages is at the bottom.

It should be relatively easy to customise it assuming you know some basic PHP. Basically if I wanted something back that was taken out with Simplicity it's just a case of finding the relevant section of code in Simplicity, and finding it in the Default theme, then compare the two and see which bits need copying. It's a bit of trial and error if you're not used to using PHP but it's relatively straight forward and most sections have descriptions telling you what they're used for.

I can't give you the exact thing to change as I haven't got round to changing that bit yet. I will probably add somemore info on the topic listing though at some point.

Actually Bloc just a small thing about page numbers and such, since the BoardTools has the forum page numbers listed there, shouldn't the topic pages be under ThreadTools also? Obviously they'll need to be at the bottom too for when you reach the bottom and want to continue to the next page, but I think they should be in both locations in both the topic listing, and post listing. I think I'll change that myself on my version of the theme, but it may be something you'd like to consider for the default version?

bloc

Yes, true. It should be both places. I am making it valid right now, so it will be changes anyhow.

destalk

Quote from: Bloc on March 15, 2005, 04:40:56 AM
Yes, true. It should be both places. I am making it valid right now, so it will be changes anyhow.

Not sure if you are referring to my post or not, but I'll hang in there until you have finished validating.

bloc


destalk

:D

Thanks. Let me know...

BTW, I've had no reports of 'missing' posts since the last update, so it looks like you've cracked it. Well done.

destalk

Quote from: Bloc on March 15, 2005, 07:10:51 AM
yes, i meant you.. ;)

Actually, I don't suppose you'd be able to let me know which bit of code I'd have to copy (and from which template) so that I could add the 'next page' bit in at the bottom myself - just until you're finished with the validation?

Many thanks.

Apnomis

Well I launched my theme last night on my site, still a few bugs to iron out and things to changed, but it was finished enough to launch so I thought you might like to see it in action:

www.forums3d.com

Made various changes to the code to suit my needs, when I've finished it fully I'll do a list of what I changed, but some of them are self evident...

Advertisement: