News:

Wondering if this will always be free?  See why free is better.

Main Menu

->MegaPolis

Started by Gmans, December 21, 2008, 02:13:33 PM

Previous topic - Next topic

Gmans

Quote from: jdvarner on January 11, 2009, 10:52:25 AM
Quick question. Folks love the theme but would like for me to change the dark grey on the background "quick reply or in pm's" they say its hard to have black font on dark grey back ground in those box areas. How do i make it a lighter grey.

thanks.
john
THEMES/megapolis/style.css
search
 background: url(images/form.gif) #686868 repeat-x;
replace
background: #DDD repeat-x;
Можно по-русски! :Р
"Not so big the universe, as its source code ..." ^^

jdvarner

ok. i did that and it changes the background except for the first line. see attach pic for what i mean.


jdvarner

oops. i goofed. works great. thanks.

gijosh28

#23
How do I add a button that says gallery and points to http://racingperformancestreetcars.com/forum/index.php?action=gallery [nofollow]

gijosh28

#24
I figured this out and figured I would share it in case anyone else wants to do the same.

3 edits to the index.template.php:

1)
find after line 59:

// The [calendar]!
   if ($context['allow_calendar'])
      echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '' : '' , '
            <td valign="top" class="navmenu">
               <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></td>';


add after:

// The [gallery]!
   if ($context['allow_calendar'])
      echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '' : '' , '
            <td valign="top" class="navmenu">
               <a href="', $scripturl, '?action=gallery">gallery</a></td>';



2)
find after line 521:

if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

replace with:

if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'gallery', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

3)
find after line 521:

// The [calendar]!
   if ($context['allow_calendar'])
      echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
            </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


add after:

// The [gallery]!
   if ($context['allow_calendar'])
      echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=gallery">gallery</a>
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';



This should do it.  Did for me.

Gmans

// The [gallery]!
   if ($context['allow_calendar'])
      echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '' : '' , '
            <td valign="top" class="navmenu">
               <a href="', $scripturl, '?action=gallery">gallery</a></td>';

 if ($context['allow_calendar']) 

menu enabled if calendar enabled too  ;D
This stroke small error...
Thank you  gijosh28  :)
Можно по-русски! :Р
"Not so big the universe, as its source code ..." ^^

gijosh28

I didnt know how to check if they have gallery permissions or not, but on my board the users who have calendar permission have gallery permission as well.  But I would like to make this right.  How do I make it check to see if they have gallery permission?

Gmans

can be if ($context['allow_gallery']) ?
A don't know you gallery :)
Можно по-русски! :Р
"Not so big the universe, as its source code ..." ^^

thedeepfriedboot

Hey
I just installed the theme but I am unable to any any of my news updates from the " News and Newsletters" feature to show up at the top. How to I get it so that I can post updates once again?

Gmans

admin - current theme - mange themes - enable "Show news fader on board index" :)
Можно по-русски! :Р
"Not so big the universe, as its source code ..." ^^

codwarrior

#30
hi guys, I learned some great stuff already on modifying this great theme, but what I still don't know how to do is modify the background with the MegaPolis_PSD(real) file. I have done my photoshop magic to it but I don't know how to get it into the forum.

thedeepfriedboot

Quote from: codwarrior on March 06, 2009, 10:03:31 PM
I guys, I learned some great stuff already on modifying this great theme, but what I still don't know how to do is modify the background with the MegaPolis_PSD(real) file. I have done my photoshop magic to it but I don't know how to get it into the forum.
You need to replace the default logo file with you image with the exact same name. I think its called something like SMF Logo or something like that in the image folder. Ill look the name up if you need me to.

codwarrior

I see the smflogo.jpg is part of the header, what about the background gradient?

thedeepfriedboot

Quote from: codwarrior on March 06, 2009, 10:19:28 PM
I see the smflogo.jpg is part of the header, what about the background gradient?
You mean the city background behind the title? If you are talking about the main title for the forum, its one picture for the logo and the background. If you are looking for something else, just pull the entire image folder and browse through them in a thumbnail view.


d1337r

I have one question: I was running an SMF forum and now moving to Intellect Board. Could I have a right to try to port this theme on Intellect Board engine (of course, keeping your copyrights)?
Plz email me, cause I don't visit this forum too often: <my nickname> at gmail.com [nofollow]

dzinerfusion

Hey i would like to know how to add a [forums] section to the bar, like [home] [search] [login] etc. Also,Could tell me how to change the width of the footer so it can be more smaller in width

dzinerfusion

nvm i know how to add that but can anyone tell me what i have to do to add the ''chat'' button?

Gmans

Hello!
open themes/megapolis/index.template.php in notepad
find
// Show the [help] button.
add before:
// Show the [chat] button.
 echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '' : '' , '
          <td valign="top" class="navmenu">
             <a href="', $scripturl, '?action=chat">CHAT</a></td>';

', $scripturl, '?action=chat => replace
Можно по-русски! :Р
"Not so big the universe, as its source code ..." ^^

Vickgrandteco

IM having problems.  ??? i dont know how to change the logo D: i tryed switching the one in the images fold same name i reloaded the theme and it still says "MYCOMMUNITY" logo on top halp

Advertisement: