News:

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

Main Menu

247portal Themes

Started by xenovanis, July 27, 2005, 10:46:36 AM

Previous topic - Next topic

xenovanis

Quote from: NitroRich on August 06, 2005, 02:49:14 PM
sorry guys, i cannot find the topics about MOD and how they should work with your theme? can someone help me find these please? i want to use the yellow theme, but i have several SMF MODs installed and i am affraid these MOD will stop working.

any information i appreciate it. thank you guys and these are very NICE themes!!! speciall the yellow one which would blen PERFECTLY with the 247 yellow theme for my mambo, thanks!

How to make mods work with themes?
"Insanity: doing the same thing over and over again and expecting different results."

ali1984

hey !
i just download it, and i love it!!!!!

but, the only thing is that i want buttons instead of text
(Home Help etc etc etc) i have the buttons , but dont know where to change it

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

xenovanis

#43
Quote from: ali1984 on August 08, 2005, 02:22:25 PM
hey !
i just download it, and i love it!!!!!

but, the only thing is that i want buttons instead of text
(Home Help etc etc etc) i have the buttons , but dont know where to change it


Hi,

In index.template.php find:


echo '

<a href="', $scripturl, '">',$txt[103],'</a><img src="' . $settings['images_url'] . '/seperator.gif" border="0" />
<a href="', $scripturl, '?action=help" target="_blank">',$txt[119],'</a><img src="' . $settings['images_url'] . '/seperator.gif" border="0" />';

// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search">',$txt[182],'</a><img src="' . $settings['images_url'] . '/seperator.gif" border="0" />';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin">',$txt[2],'</a><img src="' . $settings['images_url'] . '/seperator.gif" border="0" />';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile">',$txt[467],'</a><img src="' . $settings['images_url'] . '/seperator.gif" border="0" />';

// Show the memberlist
if (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=mlist">',$txt[19],'</a><img src="' . $settings['images_url'] . '/seperator.gif" border="0" />';


// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">',$txt['calendar24'],'</a><img src="' . $settings['images_url'] . '/seperator.gif" border="0" />';

// Who's Online?
if (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=who">',$txt['online2'],'</a><img src="' . $settings['images_url'] . '/seperator.gif" border="0" />';


// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<a href="', $scripturl, '?action=register">',$txt[97],'</a>';
}
// Otherwise, they might want to [logout]...
else
echo '
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', $txt[108], '</a>';


replace with:


// Show the [home] and [help] buttons.
echo '
<a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];

// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 2px 0;" border="0" />' : $txt[182]), '</a>', $context['menu_separator'];

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 2px 0;" border="0" />' : $txt[2]), '</a>', $context['menu_separator'];

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];

        // Show the memberlist
if (!$context['user']['is_guest'])
echo '
                                <a href="', $scripturl, '?action=mlist">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/memberlist.gif" alt="' . $txt[19] . '" style="margin: 2px 0;" border="0" />' : $txt[19]), '</a>', $context['menu_separator'];

// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];

       // Who's online?
if (!$context['user']['is_guest'])
echo '
                                <a href="', $scripturl, '?action=who">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/who.gif" alt="' . $txt['online2'] . '" style="margin: 2px 0;" border="0" />' : $txt['online2']), '</a>', $context['menu_separator'];

// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 2px 0;" border="0" />' : $txt[34]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 2px 0;" border="0" />' : $txt[97]), '</a>';
}
// Otherwise, they might want to [logout]...
else
echo '
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" style="margin: 2px 0;" border="0" />' : $txt[108]), '</a>';
"Insanity: doing the same thing over and over again and expecting different results."

Nitro

do you have buttons that match for this AWESOME theme? that would be much better instead using the blue ones.
MPF Rocks!!!

xenovanis

Quote from: NitroRich on August 08, 2005, 02:46:06 PM
do you have buttons that match for this AWESOME theme? that would be much better instead using the blue ones.

Actually.. I'm not really good at designing buttons, so I used these for the theme:

http://www.simplemachines.org/community/index.php?topic=10725.0
"Insanity: doing the same thing over and over again and expecting different results."

Nitro

Quote from: xenovanis on August 08, 2005, 02:48:08 PM
Quote from: NitroRich on August 08, 2005, 02:46:06 PM
do you have buttons that match for this AWESOME theme? that would be much better instead using the blue ones.

Actually.. I'm not really good at designing buttons, so I used these for the theme:

http://www.simplemachines.org/community/index.php?topic=10725.0

sorry, one more question. the code you suggested to replace points to your buttons that are being used or to the default buttons? should i upload all these new buttons to the themes/yellowportal/images/english/ i am not sure where to upload these buttons. thank you.
MPF Rocks!!!

xenovanis

No, it points to the buttons in the PortalYellow imagesdirectory, so you don't need to change that. I did notice that two buttons were missing, see attachments.
"Insanity: doing the same thing over and over again and expecting different results."

Nitro

oh i see, so to confirm, i must install these buttons into the yellowportal/images/english folder?
MPF Rocks!!!

xenovanis

Quote from: NitroRich on August 08, 2005, 03:18:16 PM
oh i see, so to confirm, i must install these buttons into the yellowportal/images/english folder?

Yes.
"Insanity: doing the same thing over and over again and expecting different results."

Nitro

nice!
well, i got an error:
i went to the index.template.php and i pasted the code you suggested and this is what happened:



Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in .../Themes/PortalYellow/index.template.php on line 223

214: // Show the menu up top.  Something like [home] [help] [profile] [logout]...
215: function template_menu()216: {
217: global $context, $settings, $options, $scripturl, $txt;
218:
219: echo '
220:
221: // Show the [home] and [help] buttons.
222: echo '
223: <a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
224: <a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];
225:
226: // How about the [search] button?
227: if ($context['allow_search'])




and all the buttons i downloaded from the page you told me to are already in the yellow portal/images/languages already. i am confused about that.

thank you.
MPF Rocks!!!

Aravot

If you like these (same SMF buttons, different color), I can make it for you (I have few ready)

Nitro

i appreciate that but that color of buttons won't match to the ones already being used by this theme.
thank you for letting me know about this tho.
MPF Rocks!!!

xenovanis

NitroRich, remove the

echo '

at line 219. Yes, you can overwrite the buttons, the ones that are on your server right now are the default buttons.
"Insanity: doing the same thing over and over again and expecting different results."

Aravot

Quote from: NitroRich on August 08, 2005, 03:41:41 PM
i appreciate that but that color of buttons won't match to the ones already being used by this theme.
thank you for letting me know about this tho.

Which color theme are you using

Nitro

#55
MPF Rocks!!!

ali1984

Quote from: xenovanis on August 08, 2005, 02:37:37 PM

Hi,

In index.template.php find:


..........


i did it, not errors, but still doesnt work.

xenovanis

Quote from: ali1984 on August 09, 2005, 07:35:19 AM
i did it, not errors, but still doesnt work.

Link? What doesn't work?
"Insanity: doing the same thing over and over again and expecting different results."

stephenvb

#58
I have a couple questions regarding the Portal Blue theme.

1.  I'd like to place a logo in the top header.  Is there an easy way to this?  I tried looking through the index.php file and the table structure is a little daunting.

2.  I have some font inconsistencies between the 247portal theme and the SMF Portal theme that I can't work out.  I've tried to copy the entire contents of the SMF .css file into the 247Portal .css file, but (admitting I not as familiar with the CSS files) am having trouble resolving the inconsistent fonts.

The site is www.criticaldetroit.org.  The inconsistencies are in the Login Module.  The module looks fine on the SMF forum page, but the fonts are larger when viewed from anywhere else.

Topics merged
-xenovanis

Nitro

xenovanis, i have a questions for you.
i am about to remove the mambo bridge, if i do this, is there something i should change for the index.template.php do i have to put back the xhtml tag? for the weird fonts to appear correct?
thank you.
MPF Rocks!!!

Advertisement: