News:

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

Main Menu

[Theme] Pn-Pn for 1.1 RC 3

Started by weber, February 14, 2006, 09:35:58 PM

Previous topic - Next topic

boost

@ koni
thanks so mucho!

@ilmainen
just open up photoshop and copy and paste the right portion of the images needed editing, which doesn't have the writing, and paste it over the left side with the writing.
then just save and rewrite it over the original image
and upload
that's what i think should work ;D

weber

Quote from: ilmainen on March 17, 2006, 03:06:31 AM
When I deleted the BoardIndex.template.php, the whole forum body looks like default which is not pretty. I just want the "Last post" align to the left like the default theme and the "Posts & Topics" are in one cell, with the text Posts and Topics.

Edit "BoardIndex.template.php" as follows.

Find:
<td rowspan="2" class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">'

Replace:
<td class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">

Find:
<td rowspan="2" class="windowbg2" align="left">

Replace:
<td class="windowbg2" align="left">

Find:
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 13ex;"><span class="smalltext">';

if(empty($settings['show_topics_posts_help']))
echo '
<img style="float:right; margin-right: 3px; margin-left: -12px; cursor:help;" src="' . $settings['images_url'] . '/topics_posts_h.gif" alt="', $board['topics'], ' ', $txt['topics_posts_topics'], ' ', $txt['topics_posts_in'], ' ', $board['name'], '" title="', $board['topics'], ' ', $txt['topics_posts_topics'], ' ', $txt['topics_posts_in'], ' ', $board['name'], '" border="0" />';

echo '
', $board['topics'],'
</span></td>
<td rowspan="2" class="smalltext" valign="middle" width="22%">';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))

echo '
<div style="float: left;">
', $board['last_post']['link'], '<br />', $txt[525], ' ', $board['last_post']['member']['link'], '</div>';

if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))

echo '
<br /><div style="float: right; white-space: nowrap;">', $board['last_post']['time'], '&nbsp;<a href="', $board['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" border="0" /></a></div>';

echo '
</td>
</tr>
    <tr>
<td class="windowbg" style="width: 13ex;" align="center" valign="middle"><span class="smalltext">';

if(empty($settings['show_topics_posts_help']))
echo '
<img style="float:right; margin-right: 3px; margin-left: -12px; cursor:help;" src="' . $settings['images_url'] . '/topics_posts_h.gif" alt="', $board['posts'], ' ', $txt['topics_posts_posts'], ' ', $txt['topics_posts_in'], ' ', $board['name'], '" title="', $board['posts'], ' ', $txt['topics_posts_posts'], ' ', $txt['topics_posts_in'], ' ', $board['name'], '" border="0" />';

echo '
', $board['posts'], '
</span></td>
    </tr>';


Replace:
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b>  ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];
echo '
</span>
</td>
</tr>';


And, if " Board name, Topics/Posts, Last post" is not needed, you delete the following code.

echo '
<tr class="catbg">
<td colspan="2" height="18" class="catbg_n">';
echo '
', $txt[20], '
</td><td class="catbg_n" style="width: 13ex;" nowrap="nowrap"><span style="white-space: nowrap;">', $txt[64], '/', $txt[26], '</span></td><td class="catbg_n" width="22%">', $txt[22], '</td>
</tr>';


QuoteAlso, is it possible to change the logo and the text "powered by simple machines"? Can you show me how to do it?

A lot of corrections might be necessary to make it display at the same position. I will not do it.  Because I am having it forcibly displayed. :P Therefore, it is easier to exchange the image.

weber

It is not complex when thinking. :P

Add the following correction to "index.template.php".

Find:
<div class="powered_by_smf" style="font-family: Georgia, sans-serif; font-size: 30px; padding: 5px 0 12px 90px; white-space: nowrap; float: left;">', $context['forum_name'], '</div>

Replace:
Quote<div style="white-space: nowrap; float: left; padding: 5px 0 12px 90px; text-align: right;"><span style="font-family: Georgia, sans-serif; font-size: 30px;">', $context['forum_name'], '</span><br /><span style="font-size: small;">Word for which you hope</span></div>

Change it into the word that you want the part of a red character.

xtremecruiser

I must say this is a really cool looking theme !!!

ilmainen

Thank you extremely very much koni!!!!!!!

Everything works perfectly.  ;D

weber

I updated this theme. :) There is no bug patch, and the function addition is the main. Therefore, the user satisfied with a present function doesn't have the updated necessity.

The main change points:

  • "Posters info"(Avatar, Star,  etc...) of "Display.template.php" can be specified also for the left just like the default theme.
    Admin -> Configuration -> Current Theme -> Posters information position

xtremecruiser
Thanks. :)

ilmainen
;)

EgAr

Sorry for my very bad english

very good update


question

Is posible add the possibility of choose the wide of forum (760px or 100%) like "Saf Theme" ?

thanks  8)

weber

I will not put it in to the option though it is easy. I do not understand why to fix the width of the theme flexibly designed to correspond.

A user will see your forum by a variety of image resolutions. Or, a user will see your forum without displaying the bookmark. And, a user displays the bookmark and, of course, sees your forum. The width of a browser is various as well as the person who sees.

If the fixation of the width of your theme is hoped, the following correction is added to "index.template.php".

Find:
<body>
<a name="top_t" id="top_t"></a>';


Replace:
Quote<body>
<div style="width: 760px; margin-left: auto; margin-right: auto;">
<a name="top_t" id="top_t"></a>';

The red character is specified by your favorite width.

Find:
echo '
</body>
</html>';


Replace:
echo '
</div></body>
</html>';

EgAr

Tank you

the reason is that the forum is equal using monitor of 15" with resolution 800x600px or of 17" resolution 1024x768px, those are the most used resolution in my country. 


Sorry for my bad english (google is my friend)

bouton

Love this theme.

How do I add a help button, like a question mark or something, some where near the top of the post page
which would point to http://docs.simplemachines.org/index.php?board=22.0;sort=subject

thanks

L.G.S

I installed the Guests need to register to view links mod, and then uninstalled it, and now no one can see links at all, any help please??
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


L.G.S

Please...I really need this...no one can see links AT ALL, and if I use the hyperlink bb code with text (eg Click here!) the link changes to the current topics link.

FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


weber

Quote from: L.G.S on June 03, 2006, 08:58:44 AM
Please...I really need this...no one can see links AT ALL, and if I use the hyperlink bb code with text (eg Click here!) the link changes to the current topics link.



Mods doesn't give the change to this theme though I wrote in FAQ a little. Because the target of mod is a theme of default. Therefore, you only have to return it based on the part if it customized it so that you may match this theme to mod by hand power.

I recommend you to return default the theme. And, confirm whether to find the same trouble. And, consult by the category of "Mods and Packages" if the same problem exists. Perhaps, an appropriate answer will be obtained.

L.G.S

When I said I installed the mod, I meant manually

The problem happens on both themes.
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


weber

Did not you uninstall the mod? Is there a problem only in this theme after uninstalling mod? If it is so, an easy solution is a thing to overwrite the theme with the new files.

L.G.S

I just said, I installed the mod manually, and then I uninstalled it manually. I double checked i did everything properly and I did.

FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Takeo

Hi there!

Congrats for the great theme you've made!
I'm here to ask if it is possible to set a fixed width with this theme?
Like for example, having 780px of width instead of having the one of the current size of the browser window.

I hope I've explained myself. :S

Thanks for all!

P.S. - Sorry for my awful english.

EgAr

Quote from: Takeo on June 05, 2006, 06:29:34 PM
I'm here to ask if it is possible to set a fixed width with this theme?
Like for example, having 780px of width instead of having the one of the current size of the browser window.

http://www.simplemachines.org/community/index.php?topic=71402.msg527599#msg527599





[offtopic]
¿eres el mismo takeo que postea en el antro?
[/offtopic]

Takeo

At the top of my forum I keep getting this message that I don't fully understand:

QuoteAttention of Pn-Pn theme:
You should put "Modifications.portuguese.php" on the "languages" directory ( http://canal-manga.info/forum/Themes/pnpn11rc2c/languages/ [nofollow] ) in the theme of Pn-Pn.

Copy "Modifications.english.php" of the "languages" directory of Pn-Pn onto the first. Next, rename it according to the language for which you use the file.

Could someone help? :S

Hylander

I really like this theme, but it's confusing as all hell to attempt to modify.

Could you please explain to me how you can modify the header?   I created my own image files and uploaded them in place of the default ones, named them the same, and it doesn't work.   I went into Photoshop and edited the existing files, saved them, and then reinstalled the theme with the new image files, and it doesn't work.  The theme loads with no images or anything?   Very frustrating...   I didn't change any of the layout or other code, only altered the images it doesn't work?

Any help would be greatly appreciated.     

Advertisement: