I'm trying to modify a theme. It's my first one. n_u I got a few things set up.
[IMG]http://i25.tinypic.com/v6tbbo.png[/img]
I need to figure out how to remove the "METROPOLIS" and the broken image at the top, which I believe may have something to do with.
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td align="center" class="header_bg">
<img src="', $settings['images_url'], '/hederbg.gif" alt="" />';
if (empty($settings['header_logo_url']))
echo '
<span style="float:right;width:40%;"><a href="', $scripturl, '"><img src="', $settings['images_url'], '/mtlogo.gif" alt="" /></a></span>
</td>
</tr>
</table>';
Also, if I try to set a banner in the admin cp I get a weird set up. I need to edit the CSS file to say
.header_bg
{
height: 100px;
background: #000000 url(http://boyah.net/forums/banner/banner.php) repeat-x;
}
, which becomes a pain in the ass to change the banner
This is what happens if I try to do it via admin cp. :(
[IMG]http://i27.tinypic.com/309k9kl.png[/img]
this is what i started with and also notice how buttons don't work and i need to fix that
(http://i28.tinypic.com/do08e9.png)
RICKY WHAT DO I DO
That theme looks cool
y
y
i would use it
If you can ever fix it, make the star trek image the sole banner.
Quote from: Lawlz on May 04, 2008, 11:27:36 AM
If you can ever fix it, make the star trek image the sole banner.
meaty cocks.
Can you help me to get this done faster?
I just have to:
-Make it so additional buttons work
-Remove the "Metropolis" logo
-Remove the broken image
-Make banners work properly
What's the URL to the broken image?
Also, post the toplinks section of Index.Template.php.
Quote from: STINKYLINKY401 on May 04, 2008, 11:30:21 AM
What's the URL to the broken image?
<img src="', $settings['images_url'], '/hederbg.gif" alt="" />';
So, http://localhost:8888/topsecret/Themes/Metropolis/images/hederbg.gif
It's not even needed though
QuoteAlso, post the toplinks section of Index.Template.php.
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first = 'last';
$last = 'first';
}
else
{
$first = 'first';
$last = 'last';
}
echo '<div id="tab">
<ul>';
// Show the [home] button.
echo '<li', $current_action == 'home' ? ' class="active"' : '', '><a href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';
// Show the [help] button.
echo '<li', $current_action == 'help' ? ' class="active"' : '', '><a href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';
// How about the [search] button?
if ($context['allow_search'])
echo '<li', $current_action == 'search' ? ' class="active"' : '', '><a href="', $scripturl, '?action=search"><span>Search</span></a></li>';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li', $current_action == 'admin' ? ' class="active"' : '', '><a href="', $scripturl, '?action=admin"><span>' , $txt[2] , '</span></a></li>';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li', $current_action == 'profile' ? ' class="active"' : '', '><a href="', $scripturl, '?action=profile"><span>' , $txt[79] , '</span></a></li>';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li', $current_action == 'pm' ? ' class="active"' : '', '><a href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span></a></li>';
// The [calendar]!
if ($context['allow_calendar'])
echo '<li', $current_action == 'calendar' ? ' class="active"' : '', '><a href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';
// The [member] list button.
if ($context['allow_memberlist'])
echo '<li', $current_action == 'mlist' ? ' class="active"' : '', '><a href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li', $current_action == 'login' ? ' class="active"' : '', '><a href="', $scripturl, '?action=login"><span>' , $txt[34] , '</span></a></li>';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li', $current_action == 'register' ? ' class="active"' : '', '><a href="', $scripturl, '?action=register"><span>' , $txt[97] , '</span></a></li>';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li', $current_action == 'logout' ? ' class="active"' : '', '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>' , $txt[108] , '</span></a></li>';
echo '</ul></div>';
}
// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';
$button_strip[$key] = $buttons[$key];
}
if (empty($button_strip))
return '<td> </td>';
echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' | ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';
}
So you got the broken image removed? Also I don't see the shop button in template_menu().
Quote from: STINKYLINKY401 on May 04, 2008, 11:38:09 AM
So you got the broken image removed?
No, but the image never existed so I don't know why theme maker tried to include it
QuoteAlso I don't see the shop button in template_menu().
I removed it since it didn't work
if ($context['user']['is_logged'])
echo '<li', $current_action == 'mlist' ? ' class="active"' : '', '>' , 'Shop' , '</li>';
Yes, I know that goes to the memberlist.
This may be irrelevant, but HOLY FUCK the code tag is broken in Windows. doodthing;
Quote from: JMV on May 04, 2008, 11:41:12 AM
No, but the image never existed so I don't know why theme maker tried to include itI removed it since it didn't work
if ($context['user']['is_logged'])
echo '<li', $current_action == 'mlist' ? ' class="active"' : '', '>' , 'Shop' , '</li>';
Yes, I know that goes to the memberlist.
The button isn't linking to anything. My guess is that it needs to link to something to apply to the CSS.
Also don't forget to add it to the actions array.
Quote from: STINKYLINKY401 on May 04, 2008, 11:44:23 AM
The button isn't linking to anything.
how do ido that bassir dind't tell me
QuoteMy guess is that it needs to link to something to apply to the CSS.
Damn arab was right.
QuoteAlso don't forget to add it to the actions array.
D:
Quote from: JMV on May 04, 2008, 11:45:16 AM
how do ido that bassir dind't tell me
<a href="$scripturl?action=shop">Shop</a>
Or just copy from one of the other buttons, because SMF might have some variable problems with what I posted.
I think you should put that code in a spoiler, because it's spilling everywhere.
Quote from: Lawlz on May 04, 2008, 11:49:21 AM
I think you should put that code in a spoiler, because it's spilling everywhere.
THATS THE POINT HELLO
I like that theme, but I can't use dark themes for long. :(
// Create a new button lol
if($context['user']['is_logged'])
echo '<li', $current_action == 'shop' ? ' class="active"' : '', '><a href="', $scripturl, '?action=shop"><span>' , 'Shop' , '</span></a></li>';
STILL DOESN'T WORK
and yes i added shop to the array, the button works but it's ugly and not with the rest.
Quote from: JMV on May 04, 2008, 12:04:05 PM
// Create a new button lol
if($context['user']['is_logged'])
echo '<li', $current_action == 'shop' ? ' class="active"' : '', '><a href="', $scripturl, '?action=shop"><span>' , 'Shop' , '</span></a></li>';
STILL DOESN'T WORK
and yes i added shop to the array, the button works but it's ugly and not with the rest.
Maybe it's not designed to work with more than X buttons?
Count them when you're logged in and out.
Quote from: STINKYLINKY401 on May 04, 2008, 12:12:05 PM
Maybe it's not designed to work with more than X buttons?
Count them when you're logged in and out.
Nope, and yes I removed the 'user' 'is_logged' requirement lol
I'll attach the theme so you can have a look at the code.
[attachment deleted by admin]
Quote from: JMV on May 04, 2008, 12:15:18 PM
Nope, and yes I removed the 'user' 'is_logged' requirement lol
I'll attach the theme so you can have a look at the code.
I'll install it on ilovelawlz.com and get back to you.
Quote from: STINKYLINKY401 on May 04, 2008, 12:16:33 PM
I'll install it on ilovelawlz.com and get back to you.
Alright.
also SUPER TOP SECRET SMF 2.0 INSTALLATION HAS RETURNED. baddood;
You're using SMF 1.1.5, right?
Asking because BOYAH is 1.1.4, and I don't want to accidentally upgrade to 5.
Quote from: STINKYLINKY401 on May 04, 2008, 12:18:45 PM
You're using SMF 1.1.5, right?
Asking because BOYAH is 1.1.4, and I don't want to accidentally upgrade to 5.
Yeah, my test installation is 1.1.5 but the theme is made for 1.1.4, but I doubt that would the be problem: could it?
Quote from: JMV on May 04, 2008, 12:20:38 PM
Yeah, my test installation is 1.1.5 but the theme is made for 1.1.4, but I doubt that would the be problem: could it?
I will try it on both, but I
highly doubt that's the problem.
Attach your index.template.php file please, and any other files you modified.
Quote from: JMV on May 04, 2008, 11:45:16 AM
how do ido that bassir dind't tell me
Quote(1:19:30 PM) Bassir: echo '<li', $current_action == 'mlist' ? ' class="active"' : '', '><a href="', $scripturl, '?action=ironman"><span>' , 'Iron Man' , '</span></a></li>';
(1:19:37 PM) JMV: lol
(1:19:44 PM) JMV: ill try
baddood;
Quote from: STINKYLINKY401 on May 04, 2008, 12:21:03 PM
I will try it on both, but I highly doubt that's the problem.
Yeah, I don't see how it would be that much of a problem.
Quote from: STINKYLINKY401 on May 04, 2008, 12:22:36 PM
Attach your index.template.php file please, and any other files you modified.
done
[attachment deleted by admin]
Quote from: STINKYLINKY401 on May 04, 2008, 12:25:15 PM
YOU'RE NO HELP
this is probably easy to fix but i don't have a test server
Quote from: Bassir on May 04, 2008, 12:26:04 PM
this is probably easy to fix but i don't have a test server
get one faggot
boyah.net/forum register and i'll log into phpmyadmin and make you admin
Quote from: JMV on May 04, 2008, 12:25:21 PM
Yeah, I don't see how it would be that much of a problem. done
http://www.ilovelawlz.com/index.php
Very simple mistake, you put the shop button after the buttons list ended (</ul>).
For some reason it's white, I don't know why.
Apparently I can't attach files, so restore the original CSS (http://www.ilovelawlz.com/Themes/Metropolis/style.css) and move the shop button up one echo.
lol
Quote from: STINKYLINKY401 on May 04, 2008, 12:31:06 PM
Apparently I can't attach files, so restore the original CSS (http://www.ilovelawlz.com/Themes/Metropolis/style.css) and move the shop button up one echo.
lol
what was wrong with the css
oh yay thanks ricky
now i just need to get rid of the two things at the top and make it so I can manually add the banner from the admin cp.
also, do i really need to restore the css because i had to edit to make it less wide and shorter.
Quote from: JMV on May 04, 2008, 12:46:51 PM
oh yay thanks ricky
now i just need to get rid of the two things at the top and make it so I can manually add the banner from the admin cp.
also, do i really need to restore the css because i had to edit to make it less wide and shorter.
No, just find out what fucked it up. I just installed the theme, replaced style.css and index.template.php with your versions, and fixed it. I didn't really look at the CSS.
Plus I suck shit at CSS.
Quote from: STINKYLINKY401 on May 04, 2008, 03:03:35 PM
No, just find out what fucked it up. I just installed the theme, replaced style.css and index.template.php with your versions, and fixed it. I didn't really look at the CSS.
Plus I suck shit at CSS.
I do too lol
Also, I got it installed, I just have to upload some missing images and everything is fine.
Oh shit, this theme is sexy.
I was tired of SAF.
I want a light skin. :(
Why the balls do you nutfaces keep screwing with the orange theme?
PUT IT BACK YOU TESTICLES
hah you still use Tiger
Quote from: Zack777 on May 04, 2008, 04:47:48 PM
hah you still use Tiger
And you locked yourself out of your own computer.
Quote from: JMV on May 04, 2008, 04:50:41 PM
And you locked yourself out of your own computer.
fixed it. Almost about about safe mode :|
FIX IT YOU INCOMPETENT NINCOMPOOPS >:(
Quote from: Soup on May 04, 2008, 04:52:52 PM
FIX IT YOU INCOMPETENT NINCOMPOOPS >:(
It's orange for me. psyduck;
Also, make the text smaller.
jesus, thread titles are so huge on the index
Quote from: JMV on May 04, 2008, 04:55:57 PM
It's orange for me. psyduck;
I'm using it right now and I see black and blue. wtc;
Quote from: Lawlz on May 04, 2008, 04:58:35 PM
Also, make the text smaller.
jesus, thread titles are so huge on the index
how big do you want it, baby
Quote from: Pmodb on May 04, 2008, 04:59:23 PM
I'm using it right now and I see black and blue. wtc;
cuz ur gay
Quote from: JMV on May 04, 2008, 05:00:39 PM
how big do you want it, babycuz ur gay
like 2
Quote from: Lawlz on May 04, 2008, 05:02:30 PM
like 2
how big is it now
my head hurts now i worked on this all day :(
Quote from: JMV on May 04, 2008, 05:00:39 PM
cuz ur gay
You screw with themes all day.
Two people report problems.
Does this not make you wonder?
Also jsyk, black backgrounds are about as horrible as lawlz being admin'd.
Quote from: Soup on May 04, 2008, 05:20:03 PM
You screw with themes all day.
Two people report problems.
Does this not make you wonder?
Also jsyk, black backgrounds are about as horrible as lawlz being admin'd.
but nowhere near as bad as having mozilla apps touch os x
Quote from: Soup on May 04, 2008, 05:20:03 PM
You screw with themes all day.
Two people report problems.
Does this not make you wonder?
Also jsyk, black backgrounds are about as horrible as lawlz being admin'd.
Orange has been wonky for awhile, it just turned into Temple today.
Quote from: Pmodb on May 04, 2008, 05:23:16 PM
Orange has been wonky for awhile, it just turned into Temple today.
But it works for admins
Quote from: Lawlz on May 04, 2008, 05:25:39 PM
But it works for admins
Yeah.
I'm going to stick with DIX until further information appears.
Quote from: Pmodb on May 04, 2008, 05:23:16 PM
Orange has been wonky for awhile, it just turned into Temple today.
Yes, since lawlz screwed with in a few months ago, it's been red.
all yalls niggas is colorblind
Orange has always been orange. All I ever did was change the background from a nasty grey to an orange image.
Quote from: Lawlz on May 04, 2008, 05:29:23 PM
Orange has always been orange.
Except for now.
And the past two months.
Quote from: Soup on May 04, 2008, 05:31:20 PM
Except for now.
And the past two months.
It must have to do with the permission settings.
It's always been orange as far as I and Jim V know.
It also works fine under my Non Phixion account. I think you guys just had your theme set to default and when some one changed the default you were like OMG HE BROEKD MY THEME
Quote from: JMV on May 04, 2008, 05:33:18 PM
It also works fine under my Non Phixion account. I think you guys just had your theme set to default and when some one changed the default you were like OMG HE BROEKD MY THEME
And considering I did make the default red a while back, that'd make perfect sense.
Yes, that happened. But then I changed it back to orange, and t was still red. And now it's that blue/black travesty.
Quote from: Soup on May 04, 2008, 05:35:31 PM
Yes, that happened. But then I changed it back to orange, and t was still red. And now it's that blue/black travesty.
refresh
or get a browser that doesn't suck
Could we just reinstall orange? spam;
Quote from: Lawlz on May 04, 2008, 05:33:56 PM
And considering I did make the default red a while back, that'd make perfect sense.
Yeah, they were wrong about the red being orange, but OrangeSAF does seem to be temple under this account. It works fine under JMV.
AND KAZ, THIS IS WHY I KEEP NON PHIXION: TO TEST STUFF AS A REGULAR USER.
No one said red was orange. Orange was red. Now orange is blue/black, just as the default is blue/black. Something got screwed up so that orange is overwritten with the default. Reinstall orange and give it another name pleez.
Quote from: Soup on May 04, 2008, 05:38:52 PM
No one said red was orange. Orange was red. Now orange is blue/black, just as the default is blue/black. Something got screwed up so that orange is overwritten with the default. Reinstall orange and give it another name pleez.
Then why does it still work for me
Uh, I dunno. You're the one with the privileges to check the permissions. Why don't you tell me? baddood;
Quote from: Soup on May 04, 2008, 05:41:43 PM
Uh, I dunno. You're the one with the privileges to check the permissions. Why don't you tell me? baddood;
The way a theme looks isn't something that you choose in permissions psyduck;
Orange is not orange
Quote from: JMV on May 04, 2008, 05:43:52 PM
The way a theme looks isn't something that you choose in permissions psyduck;
baddood;
The themes work for admins. There are now three member-level users who say orange is not orange. This should lead one to believe permissions could be getting in the way. baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood; baddood;
Also, I did refresh, and checked it in Safari. Same thing.
just curious what city is that shown in the 3rd one?
y
I like it
My new favorite skin. giggle;
I WILL NOT GO AWAY
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
FIX IT
Or admin Zidone.