News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Understanding themes the A.M.A way

Started by A.M.A, August 23, 2004, 09:04:55 PM

Previous topic - Next topic

Proenski

I understand a lot, but not all of this..
Please can someone give me directions if I want to achieve this

http://www.depechemodeforum.com/yabbse/index.php

kind of lay-out with the "new" SMF template/ theme setup.


Just guide me to the top logo section and how to create a right hand colomn and I'll be a happy guy  ;D

Thank you!
May the force be with you

Cottelletje

i have a question how do you have to change the images for no new post and new posts i openend boarindex.template.php and found this

// If the board is new, show a strong indicator.
            if ($board['new'])
               echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
            // This board doesn't have new posts, but its children do.
            elseif ($board['children_new'])
               echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
            // No new posts at all!  The agony!!
            else
               echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

            echo '</a></td>

but i can't find the values 32x32pixels to change it? :'(
|| Leonardo Dicaprio is the Hottest Man Alive Believe Me ||

bloc

If you have another set of images to use, just name them on.gif, on2.gif and off.gif and overwrite those you have. The code does not set a width/height , so they can be as big as you want.

Cottelletje

|| Leonardo Dicaprio is the Hottest Man Alive Believe Me ||

judymcl

What a wonderful tutorial! Thank you!
I have a couple simple questions I hope.

If I were to create a copy of the default theme, then rename it to a name of my choosing, what other parts of the new theme do I need to also rename if any? In other words, do I change it everywhere that 'default' is mentioned on all of the pages to 'my theme name'?

Also, I use the arcade module, and I was just wondering what theme pages in particular are required to be included from the default theme so that the arcade will run properly. I currently have my forum on another theme and I am having problems with categories on the arcade. It's like something is missing in the theme. So I was thinking to go this route with copying the default theme and just making a few colour and graphic changes.

Thanks,
Ruskin
Judy

1MileCrash

Quote from: ruskin on September 05, 2005, 06:19:57 PM
What a wonderful tutorial! Thank you!
I have a couple simple questions I hope.

If I were to create a copy of the default theme, then rename it to a name of my choosing, what other parts of the new theme do I need to also rename if any? In other words, do I change it everywhere that 'default' is mentioned on all of the pages to 'my theme name'?

Also, I use the arcade module, and I was just wondering what theme pages in particular are required to be included from the default theme so that the arcade will run properly. I currently have my forum on another theme and I am having problems with categories on the arcade. It's like something is missing in the theme. So I was thinking to go this route with copying the default theme and just making a few colour and graphic changes.

Thanks,
Ruskin

1. Nothing really. It will use the defualt's images, but to change that, you just copy the images folder from the default, so it has it's own images. Then, under current theme's settings, you just change the 'images directory url' to wherever you copied the default images to.

2. Every file that the arcade modifies that your theme has. If your theme doesnt have it, no need to add it if this mod is already installed on the default theme.
The only thing php can't do is tell you how much milk is left in the fridge.



judymcl

Thank you! I think I understand.

I'm going to give it a try. I read that if something goes wrong with a theme, that it will revert back to default.......is that correct? That is a great feature, especially since I'm a great one to mess up a theme lol!

I may have messed up with the module install then....I can't remember for sure but I may have installed it to the current theme I'm using which is not the default one. The module works but I am having issues with the link to the categories on each game, so I'm just running it without using categories now lol.
I think I'll have to try and get it properly installed to the default theme, then go from there with creating a new theme.

Thanks very much for your help,
Ruskin


Judy

_cyclops_

Hi,

i'm building a 'warning' system, but, i can't seem to be able to add variables to the language files, i've copied the 'Poll' files because the system is quite simular to the poll. I've added a $txt[warning_subject] to the Post.english.php but the variable isn't set in the file that needs to show it.
I haven't changed anything in the poll files that has to do with template, so.. how does this work? Do i need to rebuild something, or set special options to make sure the variable get's re-read?

Cottelletje

how do you add a table(or cel)with the background is the image Logo_banner.gif that is located in the map images
|| Leonardo Dicaprio is the Hottest Man Alive Believe Me ||

mdp

#49
Never mind..  fixed the problem!

freeadpower

Great Tutuorial A.M.A.!

Now I've got a question for some of you designers/coders out there.

Is there a way to add content and/or an image (such as a banner) between
forum categories?

I'm thinking there must be a way, but I'm just not sure how to do it
in SMF. I've been looking at the index.template.php file but I cannot
seem to determine where it's pulling forum categories. Perhaps I'm
just overlooking something, but I've been looking at the code for a
couple of hours now and it's just getting to the point where it's simply
confusing me.

At first, I thought it was going to be quite simple because the file
is commented quite well. However, I can't seem to find the section(s)
of code I need to edit.

Optimally, I would like to add different content between each new forum
category. Is there a fairly simple way to make this happen?

Thanks in Advance!

Peace & Prosperity,
Matt Fulger

1MileCrash

categorys are in boardindex.template.php. index.template.php is header and footer only. look for the "for each category" php stuff.

The only thing php can't do is tell you how much milk is left in the fridge.



freeadpower

Thanks a million TippMaster!

No wonder I couldn't find it.  :o

Probably helps to look in the correct file. LOL

Thanks again!

Peace & Prosperity,
Matt Fulger

Tyegurl

#53
is there anyway to replace the entire background???  i don't htink i have found what i need.  i find the area for all of my buttons and bars and such...but nowhere do i see where to add a backgorund image....is there one?

tuukster

Sorry for being such a newbie but how can one use .swf file in header?  ???

bedges

looking through the themes options on the forum admin interface, i noticed that since we directly copied the default theme and made changes to the copy, it still says "The default theme from Simple Machines. Thanks go to Bloc and the design team." now i'm all for giving these guys their due kudos and congrats, but how would i go about changing that text to reflect that it's our work too?

the only other problem is that although there is an option to define a theme for individual boards, it doesn't seem to apply any changes to those boards, just looks like the overall forum default.

any help gratefully appreciated.
b

Dannii

You can change that text in your theme's Settings.english.php
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

bedges

excellent, thanks for the rapid response. works a treat. :thumbsup:

Advertisement: