News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SimplePortal

Started by crazystu, May 23, 2005, 04:50:25 AM

Previous topic - Next topic

Byohki

Check this out..!!
[nofollow]


Psyclones

Right then Matey

Goto Themes/Default/Languages/ and open portal.english for editing.

paste the following at the end of the file just before the ?>


$txt['portal_25'] = "Links2";
$txt['portal_26'] = '<a href="http://dev.nesian.info/">NesianDev</a><br />
<a href="http://simplemachines.org">Simple Machines Forum</a><br />';


then save the file.  This is where you would add your 2nd set of links.

Open themes/default/portal.template for editing.

Find

echo'<a href="index.php?action=login">'.$txt['portal_18'].'</a><br />
<a href="index.php?action=register">'.$txt['portal_19'].'</a>';
}
echo'</td>
</tr></table>
<br>


and underneath it add the following code

<table class="tborder" border="0" width="95%" cellspacing="1" cellpadding="4">
<tr><td class="titlebg">'.$txt['portal_25'].'</td>
</tr>
<tr><td class="windowbg2">'.$txt['portal_26'].'</td>
</tr></table>
<br />


if the above it a bit complex for you download the archive and copy the modded files into the right places.  Text file included in archive.

Download File Here

hope this helps

Byohki

#162
Ah thnx allot dude.. :D I'll try it out immediatly.. :D

Edit: It works.. Thnx allot mate..  :D
Check this out..!!
[nofollow]


ArkServer

Anyone know how to add the recent post code in the portal? i tried but it doenst work..

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent">
<img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" border="0" /></a>
</td>
<td class="windowbg2">';

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b><br />
<span class="smalltext">
', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
</span>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table width="100%" border="0">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
<td valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
<td align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</td>
</tr>';
}

Psyclones

isnt it already there,

have you read the docs and setup which forum you want the posts to come from.?

ArkServer

Quote from: Psyclones on January 11, 2006, 06:49:18 PM
isnt it already there,

have you read the docs and setup which forum you want the posts to come from.?


I want to use the one in the index template. Can you help me getting it displayed under the latest announcement?

Psyclones

I`m sorry my brain isnt working properly could you supply an in depth explination of what you are attempting to do.

The standard install of simpleportal has the following boxes (blocks) on the main page

Menu Block                               About Block                                         Shout Block (if enabled)

Welcome User Block                     Forum Announcement Block                Quick Search

Who`s Online Block                                                                             Links Block

Recent Posts BLock                                                                              Newest Member Block

Top Poster Block                                                                                   Top Topics Block

Top Boards Block

Is it one of these your are after or a new block.


Byohki

I might be a pest but I'd like to know if there's a way to display images on the portal like in links or something.. :-[

I tried regular html like:

<IMG SRC="image.gif">
<A HREF="http://www.htmlgoodies.com"><IMG SRC="homepage.gif"></A>

And some others but they all crashed the skin.. :P
Check this out..!!
[nofollow]


3-CXT

Quote from: Psyclones on January 12, 2006, 08:43:08 AM
I`m sorry my brain isnt working properly could you supply an in depth explination of what you are attempting to do.

The standard install of simpleportal has the following boxes (blocks) on the main page

Menu Block                               About Block                                         Shout Block (if enabled)

Welcome User Block                     Forum Announcement Block                Quick Search

Who`s Online Block                                                                             Links Block

Recent Posts BLock                                                                              Newest Member Block

Top Poster Block                                                                                   Top Topics Block

Top Boards Block

Is it one of these your are after or a new block.


how can ii delete in the template following blocks..

top posters, top boards, top topics block.... and i will throw the newest member block to the other side....

Byohki

Could someone help us on this? ::)
Check this out..!!
[nofollow]


Psyclones

Byohki:

edit Themes/default/languages/Portal.english.php

find

$txt['portal_24'] = '<a href="http://dev.nesian.info/">NesianDev</a>


replace urls to this format for images.

<a href="lastpage.htm"><img src="link to image" alt="Alt text in here" border="0" /></a>


that should work, cannot test it at moment as my test server is down.

hope this helps


Psyclones

3-CXT

WHat version smf and portal are you using?


3-CXT

Quote from: Psyclones on January 14, 2006, 10:01:45 AM
WHat version smf and portal are you using?

i am using the normal simpleportal v1.0 version and the smf 1.1 rc1 (but why the version of smf is important for that?, just 'S changing the portal.template.php, isn't it?)

DemonicInfluence

yes..

find: <table class="tborder" border="0" width="95%" cellspacing="1" cellpadding="4">
<tr><td class="titlebg">'.$txt['portal_8'].'</td>
</tr>
<tr><td class="windowbg2">';
include('./Blocks/PortalTopPoster.php');
PortalTopPoster();
echo '</td>
</tr></table>
<br />
<table class="tborder" border="0" width="95%" cellspacing="1" cellpadding="4">
<tr><td class="titlebg" colspan="3">'.$txt['portal_9'].'</td>
</tr>';
include('./Blocks/PortalTopBoards.php');
PortalTopBoards();
echo '</table>
</td>


delete that..

Find:

<br />
<table class="tborder" border="0" width="95%" cellspacing="1" cellpadding="4">
<tr><td class="titlebg" colspan="3">'.$txt['portal_14'].'</td>
</tr>';
include('./Blocks/PortalTopTopics.php');
PortalTopTopics();
echo '</table>


That removes the blocks u didn't want..

Where do u want to put the newest member block?

That should work. I hope. :D

Byohki

Psyclones: It doesn't work.. Also that crashes my skin.. :(
Check this out..!!
[nofollow]


3-CXT

Quote from: DemonicInfluence on January 14, 2006, 12:35:33 PMWhere do u want to put the newest member block?

That should work. I hope. :D

on the left side right under the menu block...

and thanks that works fine til now...

Psyclones

Byohki

I will look at it when i boot my server back up for you and hopefully resolve it for you.

3-CXT

thanks a lot...

now my portal... look at it :D

www.battleholicz.de

Byohki

Aint that seen as promotion? ???
Quote from: Psyclones on January 15, 2006, 02:08:31 PM
Byohki

I will look at it when i boot my server back up for you and hopefully resolve it for you.

Thnx dude.. :D I'll wait.. :)
Check this out..!!
[nofollow]


ExistenZ

Can someone get this to work on RC2, perhaps?
Regards,
Andre

Advertisement: