News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Hi guys / themeing questions

Started by Nederland, October 01, 2004, 10:19:09 AM

Previous topic - Next topic

Nederland

Hi guys,

I have a few qeustions i hope you can answer.

My forum

http://members.lycos.nl/utkanon/Carneval/index.php

When i am logged in i see my profile info buttonon the left and on the right my stats button. Can you guys tell me how to get those to away from there?

Then i got my buttons. index help enz. And they are alignd left but i cannot find where i can align them on the right of the page. On this forum they are alignd in the midle.


And when i want just text and no buttons. Do i have to change all the buttons then or can i just click text somewhere?

Thanks in advance!



ps. Where do i change the size of the text on my forum?


Moderator-edit: subject text clarified

[Unknown]


Nederland

#2
No that is the classic theme.

Here is something i need to.

Names instead of buttons.

http://www.thecwalk.com/forum/index.php

How do you do that?
I am trying this but is doesn't work.
And i need the text to align right of my page.

In this forum it says <div align="center">.. Where do i put this code to align left at the default theme?



Quote// How about the [search] button?
   if ($context['allow_search'])
      echo '
            <a href="', $scripturl, '?action=search">',  '<a href="http://members.lycos.nl/utkanon/Carneval/index.php?action=search">Home</a> |' : $txt[182]), '</a>'";


And how do you know my passwoord?

Thanks you

[Unknown]

I don't know your password.

There's an option in "theme settings" to display links instead of images.

-[Unknown]

Nederland

#4
Yes thanks! Never saw that.. Hmmzz.. And do you know how to align them right of the page?

And do you know how to get rid of the profile and the stats boxes on the top when your logged in?

roboter88

Check out the template grafic board stickys for customizing theme settings and more.


Nederland

I looked at the sticky thread's and found some cool new stuff but i couldn't find answers to the following answers.


In the box that says mark all message's as read with the catgb.jpg on the background, the text is bigger then the rest. This is, i think, why my page is bigger so i have to scroll to go to the right.

The source code of my page says: font-size: smaller But it isn't small. Can you guys please help me out here.

So / 1 make the font size smaller. And not the font of all the forum but only the one in the catgb boxes.

    / 2 make my page smaller. Because the scrolling from left to right is very annoying.

The second thing are the stats and the profile boxes. I can't find anything to remove them.
And i still need to align the Help search home text to the right.

I hope i am not to much of a troublemaker to you guys,

Thanks in advance.

[Unknown]

The advertisement is causing problems... is your host adding that?

-[Unknown]

Nederland

Yes, later on it will be put on another server. But i need to make the forum good first.

This forum is to test it and replace another forum on another server that is using yabb se.

[Unknown]

Is there any way to get the advertisement moved to a different part of the html output?

As I said, the problem is that Internet Explorer is seeing the DOCTYPE in the wrong place, and as such making the font too large.  If you were to view it with Mozilla Firefox, you would see that it looks fine rendered as it should be.

-[Unknown]

Nederland

Allright, Thank you very much. I will let it be for now and i will look to it again when i switch to the other server. Do you know what the other problems are and how they might be fixed?

Thank you very much,

[Unknown]

Well, most of the layout problems are caused by that - it should look like:

http://www.simplemachines.org/community/index.php?theme=3

-[Unknown]

Nederland

Yes but the user keys and key stats are still there.. I removed the news already.. But i can find those other two.
And do you know something about the align problem?

[Unknown]

To align the menu bar differently, find in index.template.php:

// Show the menu here, according to the menu sub template.
template_menu();


And make it:

echo '<div align="right">';
// Show the menu here, according to the menu sub template.
template_menu();
echo '</div>';


Look for keystats.gif and userinfo.gif.

-[Unknown]

Nederland

Thank you very much!
But i think you got me wrong about the keystats and user info.

I need to get ride of the key stats and user info boxes and not only the buttons.

I found this but when i try to delete or change things in it i get all kind of errors.

Quoteecho '
            </td>
         </tr>
         <tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
            <td valign="top">
               <div class="headertitles" style="margin-right: 5px; position: relative;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
               <div class="headerbodies" style="position: relative; margin-right: 5px; background-image: url(', $settings['images_url'], '/box_bg.gif);">
                  <img src="', $settings['images_url'], '/' , $context['user']['language'] , '/userinfo.gif" style="position: absolute; left: ', $context['browser']['is_ie5'] || $context['browser']['is_ie4'] ? '0' : '-1px', '; top: -16px; clear: both;" alt="" />
                  <table width="99%" cellpadding="0" cellspacing="5" border="0"><tr>';

I hope you can help me out, thanks in advance.

A.M.A

// The "key stats" box.
echo '
<div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif);">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/keystats.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
<div style="height: 35px; padding: 5px;" class="smalltext">
<b>', $modSettings['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $modSettings['totalTopics'], '</b> ', $txt[64], ' ', $txt[525], ' <b>', $modSettings['memberCount'], '</b> ',  $txt[19], '<br />
', $txt[656], ': <b> <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '">', $modSettings['latestRealName'], '</a></b>
</div>
</div>';
delete to remove KeyStats.

and this for UserInfo
<div class="headertitles" style="margin-right: 5px; position: relative;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="position: relative; margin-right: 5px; background-image: url(', $settings['images_url'], '/box_bg.gif);">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/userinfo.gif" style="position: absolute; left: ', $context['browser']['is_ie5'] || $context['browser']['is_ie4'] ? '0' : '-1px', '; top: -16px; clear: both;" alt="" />
<table width="99%" cellpadding="0" cellspacing="5" border="0"><tr>';

if (!empty($context['user']['avatar']))
echo '<td valign="middle">', $context['user']['avatar']['image'], '</td>';

echo '<td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">';

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo '.';

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<br />
<b>', $txt[616], '</b>';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<br />
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=regcenter">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'];

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
<br />', $txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'];
}

echo '<br />
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />
', $context['current_time'];
}
// Otherwise they're a guest - so politely ask them to register or login.
else
{
echo '
', $txt['welcome_guest'], '<br />
', $context['current_time'], '<br />

<form action="', $scripturl, '?action=login2" method="post" style="margin: 3px 1ex 1px 0; text-align:right;">
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="302400">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
', $txt['smf52'], '
</form>';
}

echo '
</td></tr></table>
</div>
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

Nederland

#16
Thank you very much that worked perfect! But the problem what i got when i delete them is that my table's align extremly right.. :S. So my forum is disturbt when i do it.

And what code do i have to delete when i want to get rid of the search and advance searche.

Thanks!

ps. In my forum index there is a white line between the forum topic. And i want them on top of eachtoher. So not

Utkanon

Duh Serruh

Nationstates

But

Utkanon
Duh Serruh
Nationstates

A.M.A

QuoteThank you very much that worked perfect! But the problem what i got when i delete them is that my table's align extremly right.. :S. So my forum is disturbt when i do it.
I've tested it on my local server and it looked fine!

QuoteAnd what code do i have to delete when i want to get rid of the search and advance searche.
<form action="', $scripturl, '?action=search2" method="post" style="margin: 0; margin-top: 7px;">
<b>', $txt[182], ': </b><input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />&nbsp;
<a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
<input type="hidden" name="advanced" value="0" />';

// If we're on a certain board, limit it to this board ;).
if (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>


Quoteps. In my forum index there is a white line between the forum topic. And i want them on top of eachtoher. So not ...
???
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

Nederland

Thank you very much A.M.A, the problem with the removing of the boxes will also be the problem of the banner on top then i think.

Quoteps. In my forum index there is a white line between the forum topic. And i want them on top of eachtoher. So not ...

This is how it is.



And this is how i want it.



I hope you understand it better now.

Thank you very very much!

A.M.A

in BoardIndex.template.php look for:
echo '
</table></div>
<br />';
}

if ($context['user']['is_logged'])
{

only remove <br />
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

Advertisement: