• Welcome to Simple Machines Community Forum. Please login or sign up.
January 18, 2022, 06:29:06 AM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


WoW-DK

Started by padexx, May 20, 2006, 12:16:17 PM

Previous topic - Next topic

padexx

@starrbuck:

feel free to add your windowbg styles to the maincolorcss of your choice! The maincolorcss files are loaded after the styles.css. Which means settings in the maincolorcss will overwrite the styles.css settings.

@CrystalTears:

updated the profile template to fix this issue

starrbuck

Quote from: panic on September 30, 2006, 05:29:49 AM
feel free to add your windowbg styles to the maincolorcss of your choice! The maincolorcss files are loaded after the styles.css. Which means settings in the maincolorcss will overwrite the styles.css settings.

Oh, great, thanks!

CrystalTears

Quote from: panic on September 30, 2006, 05:29:49 AM
@CrystalTears:

updated the profile template to fix this issue

Excellent! You're so awesome!

Giddeaon

October 06, 2006, 05:10:41 AM #63 Last Edit: October 06, 2006, 05:16:13 AM by Giddeaon
First - this is a beautiful theme and I thank you for such amazing work.

My question is this - I want to add some more buttons to the menu (I have a gallery mod for my members).  I found the section in index.template.php for the menu buttons and added the following:


// the [SMF Gallery] button
   if ($context['allow_smfgallery_view'])
      echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
            <td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'off_back' , '">
               <a href="', $scripturl, '?action=gallery">' , $txt['Pics']  , '</a>
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $$last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

The text for the button doesn't show.  I noticed in all of the other menu buttons you had a number for the $txt.  I'm a bit of a newb at php and websites (though I love SMF - very user friendly to setup), and I was wondering if you could explain how to get the text for the button like the other menu buttons in your template.  Any help would be greatly appreciated.

quick addition - with that code, if I chose one of the numbers from your other buttons, such as 331 for Members, the button shows that text and links to the gallery w/out issue.  I just need to know how to make it say "Gallery" or "Pics" in the same manner that the other menu buttons do.

Thanks!

Bas007

replace ' , $txt['Pics']  , '
with Gallery or whatever

$txt[] are pulled from language files

padexx

Quotereplace
Code:

' , $txt['Pics']  , '

with
Code:

Gallery

or whatever

$txt[] are pulled from language files

absolutely right!

you could also define the text to load in the language file of the theme.
Themes/wow-dk/languages/Modifications.YOUR_LANGUEGE.php

Modifications.YOUR_LANGUEGE.php = i.e. Modifications.english.php

in your case i.e. add:
$txt['Pics'] = 'Gallery';

Giddeaon

Panic - that worked great and fixed the issue I had.  Thank you for the quick response.

My next question is, I want to add a new button to the top menu that takes the user to another web site.  I'd like the button to mimic what is already there.  I have no idea what that code should look like.  It's not a link to another page on my site, but a link to a completely different site.  What would the code have to be in index.template.php to add a menu button that looks just like yours, but links to a different location?  Any help would be greatly appreciated.

Thanks in advance!

MoreBloodWine

Ok I read it somewhere before but for the life of me cannot find it... all my links after they've been clicked stay white... how can I fix this so even after numerous click they stay the standard orange color... ive seen this fixed on other users forums... can you please tell me where to look exactly and what to change / add... I'm using the default orc look of this theme if that matters...
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


padexx

Giddeaon

look into the index.template.php (near bottom) for the tab section ans add:
// the [EXTRA] button
echo '
<td class="maintab_off_first">&nbsp;</td>
<td valign="top" class="maintab_off_back">
<a href="http://www.YOUR_LINK.com">TAB TEXT</a>
</td>
<td class="maintab_off_last">&nbsp;</td>';


MoreBloodWine

http://www.simplemachines.org/community/index.php?topic=88627.msg695580#msg695580

MoreBloodWine

I did what it said to do and changed that one line now all the links I click turn purple instead of the usual white... here check it out heh http://uotc.freeyellow.com/SMF_Test_Forums/index.php
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Giddeaon

Panic - you're the best, and I love your avatar.  Thanks for the help.

padexx

Thanks Giddeaon!

MoreBloodWine:
blue, purple are the standard colors used for link styles some browsers use by default if no others are defined in the css.

solution:
define a:visited or simply add it to the link definition

MoreBloodWine

Quote from: panic on October 10, 2006, 04:22:05 AM
Thanks Giddeaon!

MoreBloodWine:
blue, purple are the standard colors used for link styles some browsers use by default if no others are defined in the css.

solution:
define a:visited or simply add it to the link definition
I do know some simple coding and one would think I should know this but I dont.. I know youve already done a great deal to help me especially with that mod thing and for that I'm eternally grateful... but if you could please help me with this I'd be even more grateful... no matter what I do I somehow manage to fudge this up even more lol...
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


CrystalTears

Either change the a:visited, a:hover color to match the a:link color, or put all three on one line.

Example:

Quote/* Normal, standard links. */
a:link
{
   color: #1E90FF;
   text-decoration: underline;
}
a:visited, a:hover
{
   color: #1E90FF;
   text-decoration: underline;
}

MoreBloodWine

Quote from: CrystalTears on October 10, 2006, 12:43:24 PM
Either change the a:visited, a:hover color to match the a:link color, or put all three on one line.

Example:

Quote/* Normal, standard links. */
a:link
{
   color: #1E90FF;
   text-decoration: underline;
}
a:visited, a:hover
{
   color: #1E90FF;
   text-decoration: underline;
}
Th that worked like a charm... I checked the example you had and thats a pretty blue but it doesnt go well with the theme so I set it to the default orange color... but I do like that blue color now I'm at a x-roads hehe... but ya that worked just great so thx CT ;-)
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


dcr

This is a great theme!

I was tasked with creating a website and forum for my WoW guild, and this was perfect!

The only problem I am having is with alternating posts! The colors are the same, so it can be difficult to detect when a post comes from the next author.

Here is where I think I need to look:

Quote/* Alternating backgrounds for posts, and several other sections of the forum. */

.windowbg

{

   color: #fff;

   background-color: #101010;

}

.windowbg2

{

   color: #fff;

   background-color: #101010;

}



.windowbg_s

{

   color: #fff;

   background-color: #181818;

}



.windowbg2_s

{

   color: #fff;

   background-color: #181818;

}


I have tried changing

.windowbg

{

   color: #fff;

   background-color: #666666;

}

to

.windowbg

{

   color: #fff;

   background-color: #101010;

}

...but several other areas of the forum also change to #666666, including the odd number posts, which is a desired effect. However, the entire post isn't changed (member name, etc), just the area where they have typed text:



Any ideas on how I can change only the alernating posts colors and nothing else?

MoreBloodWine

I would try to do this myself but I dont know what button generator you used... anyway panic I was wondering if you could please make me a button that fits this theme to say Post Raid... kinda like the Post Event calander button but one that says Post Raid instead of Post Event... Thx... you should still have my email if not lemme know al I will PM it to you... Thx ;-)
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


padexx

@dcr

Hi,

you are right!  Changing the color of the postings background will also change the colors of other areas.
If you don't want this to happen you need to change some template files.

If you don't care you have two options:
First you could cange "Posters information position" in admin - current theme from default to left.
Now the color of entire post is changed.

Second:
If you want the posters information on top of each post you have to change the following code in the maincolorcss files:

.poster_info
{
color: #fff;
background: #000 url(.././images/poster_info.gif);
background-position: top left;
background-repeat: repeat-x;
}

.poster_info2
{
color: #fff;
background: #000 url(.././images/poster_info2.gif);
background-position: top left;
background-repeat: repeat-x;
}



@MoreBloodWine
No button generator used...

fire up your Photoshop (or grafic programm of you choice) and change the button. The needed font is available at the dl-page of the theme (in the german buttons package). Don't have time this week, sorry.

MoreBloodWine

Quote from: panic on October 16, 2006, 06:24:00 AM
@MoreBloodWine
No button generator used...

fire up your Photoshop (or grafic programm of you choice) and change the button. The needed font is available at the dl-page of the theme (in the german buttons package). Don't have time this week, sorry.
I dont mind waiting and with that said I'd prefer to wait even if it takes two weeks bec I wana get it done right hehe... so take your time and no rush I'll just check back here a week from today on the button thing ;-)
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


dcr

Thanks for the info, I will get right after it!  :D


Advertisement: