News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SimplePortal

Started by SimplePortal Team, March 10, 2008, 11:16:07 PM

Previous topic - Next topic

Manu.G

Quote from: Kat on August 18, 2008, 07:09:06 AM
I'm trying to create a Board News Block and it's asking me for board/post IDs.

What form would that ID take?

I tried the name of the board and the title of the post, which seemed to be what it wanted. Problem is, I'm getting "You have to pick a board that's open to guest-views", or something similar.

You guessed it. The board IS open to guest views.

It's the ID thing, innit?

What SHOULD I put in there?

The ID of the board you will find when you go with the mouse of the board name.
The board here Modifications and Packages is having the board ID 59 you can see it at the end of the link. http://www.simplemachines.org/community/index.php?board=59.0

To show the Board News Block in the portal guests must have the permission for this board
Version SMF 2.0.8
SimplePortal 2.3.5

[SiNaN]

asudhakar:

For the BoardIndex.php, I had given the solution to Manu0372 which I don't remember exactly what it was. She will write it here for you, would you Manu?

Kat:

Thanks for trying our mod Kat. Manu gave you the answer as I see. It works just like SSI. ;)

Manu0372:

Thanks for providing support for me Manu, I appreciate you efforts. :)
Former SMF Core Developer | My Mods | SimplePortal

kat

#1102
Of course!

You know, that never entered my mind, that!

Thanks, guys!

kat

#1103
Not sure about the post ID, though. I thought that'd be the 90633 at the end of:

http://www.tlakoc.org.uk/index.php/topic,7022.msg90633.html#msg90633

But it's not. Nor is it the 7022.

I'm being really dumb, here, aren't I?

Cancel that. I figured it.

In case anyone else wonders, it's the 7022.0 at the end of

http://www.tlakoc.org.uk/index.php/topic,7022.0.html

Manu.G

Quote from: [SiNaN] on August 18, 2008, 07:29:16 AM
asudhakar:

For the BoardIndex.php, I had given the solution to Manu0372 which I don't remember exactly what it was. She will write it here for you, would you Manu?

I will try it.  :-\

asudhakar:
As I can see you are using the "SingleCategroy" mod as I do.
That's the reason why BoardIndex.php is causing trouble, SingleCategory Mod has changed the codes:
'href' => $scripturl . '#' . $row_board['ID_CAT'],

To this:
'href' => $scripturl . '?' . (!empty($context['TPortal']) ? 'action=forum;' : '') . 'c=' . $row_board['ID_CAT'],

I think you can ignore the "Test failed" by your BoardIndex.php.

You got the "Test failed" message in your Post.Template.php cause, the code is missing. The upgrade will change this code:
                            </tr>';
    if(!empty($context['list_categories'])) {
        echo '
                            <tr>
                                <td align="right" style="font-weight: bold;">', $txt['sp-articlesCategory'], ':</th>
                                <td align="left">
                                    <select id="article_category" name="article_category">
                                    <option value"">', $txt['sp-articlesNoCategory'], '</option>';
                                    foreach($context['list_categories'] as $category) {
                                        echo '
                                        <option value="' . $category['id'] . '" >' . $category['name'] . '</option>';
                                    }
                                    echo '
                                    </select>
                                </td>
                            </tr>';
    }
    echo '
                            <tr>
                                <td align="right">
                                    <b>', $txt[71], ':</b>


into this:
                            </tr>
                            <tr>
                                <td align="right">
                                    <b>', $txt[71], ':</b>


In your Post.template.php is now the correct code, that's why you can ignore the "Test failed" message too.

Quote from: Kat on August 18, 2008, 07:48:58 AM
Not sure about the post ID, though. I thought that'd be the 90633 at the end of:

http://www.tlakoc.org.uk/index.php/topic,7022.msg90633.html#msg90633

But it's not. Nor is it the 7022.

I'm being really dumb, here, aren't I?

You have to add the board ID and how many "Topics" should be shown in the block.
If you want to show only this topic in the portal, I think it will be better to use this topic as "Article"  :-\

@Sinan
I hope I haven't told asudhakar nothing wrong.  :-\

Quote from: [SiNaN] on August 18, 2008, 07:29:16 AM
Manu0372:

Thanks for providing support for me Manu, I appreciate you efforts. :)

That's only a little I can give back after the great support I got here! ;)
Version SMF 2.0.8
SimplePortal 2.3.5

[SiNaN]

Kat:

It's a bit tricky at first, but soon you will get used to it. I love article system, suggest you try that too. Also maybe you put the recent posts block at the middle-bottom, it would look better.

Manu0372:

Actually I said this fix:

index.php

Find:

cleanRequest();
$context = array();


Replace:

cleanRequest();
$context = array();
$context['TPortal'] = 'SimplePortal';


SleePy didn't know about SP while he was coding Single Category mod. :P

BTW Manu, if you are having problems with collapse, just add ?action=forum to its href in BoardIndex.php file.
Former SMF Core Developer | My Mods | SimplePortal

Manu.G

maaaaah

You were talking about this code.

cleanRequest();
$context = array();
$context['TPortal'] = 'SimplePortal';

Next time I will read better before I will reply  :P

Btw, if you need Beta-Tester I would make me happy to help with it.
Not by coding, only for testing.  ;D
Version SMF 2.0.8
SimplePortal 2.3.5

Nathaniel

@Manu0372,
Thank you for offering. We will be needing some beta testers soon, especially for the SMF 2 Beta 4.0 (when it comes out) version of the mod. :D

Don't worry about the coding aspect, we will need some people that have no clue about coding but can find flaws with Simple Portal, leave the coding to the devs. ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Sudhakar Arjunan

Hi Author,

Am late here for the updates.

Have checked it and understand that i need to forget about the test failed in board index. And Have to manually mod what manu0372 has mentioned .

And the post says, since post template is correct it shows test failed. Is that correct and i have to forget about any modification for post template file . Is that Right ?

Let me know to continue Further with the update.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

Sudhakar Arjunan

Quote from: Manu0372 on August 18, 2008, 07:54:45 AM
I will try it.  :-\

asudhakar:
As I can see you are using the "SingleCategroy" mod as I do.
That's the reason why BoardIndex.php is causing trouble, SingleCategory Mod has changed the codes:
'href' => $scripturl . '#' . $row_board['ID_CAT'],

To this:
'href' => $scripturl . '?' . (!empty($context['TPortal']) ? 'action=forum;' : '') . 'c=' . $row_board['ID_CAT'],

I think you can ignore the "Test failed" by your BoardIndex.php.


+ Plus +

Quote from: [SiNaN] on August 18, 2008, 01:07:07 PM
Do the fix I gave in this post for BoardIndex:

http://www.simplemachines.org/community/index.php?topic=227599.msg1665546#msg1665546

Ignore the Post.template.php edit.


Or only this $context['TPortal'] = 'SimplePortal';
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

[SiNaN]

Only $context['TPortal'] = 'SimplePortal';.
Former SMF Core Developer | My Mods | SimplePortal

Sudhakar Arjunan

Hi Author,

I got it working perfectly.

Earlier when i click the category, it goes to simple portal.
But not its working perfectly.
http://forum.itacumens.com/index.php?action=forum;c=4

Have some doubts i am sure that this may not because of Simple portal.

I have my forum name as IT Acumens. But for last few days , i could see the Forum Name is Displayed as Forum instead of my name which i have fixed as IT Acumens.

Ex : IT Acumens Forum -> Category Name but this shows as Forum -> category name.

And while at IE6, it shows the table unordered like the image i have attached.

Pointed Three Spots on Red which say No Forum custom Name and instead only name and the table alignment.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Manu.G

@asudhakar

You're talking about the link tree in your forum, or I'm wrong?

To let your link tree looking like this:

IT Acumens Forum -> Category Name

you have to do this:

Search in Load.php for
    // Start the linktree off empty..we need forum for portal
    $context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'Forum'));


and replace it with
    // Start the linktree off empty..we need forum for portal
    $context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'IT Acumens Forum'));


I tried the code in our test forum and it works perfect ;)
Version SMF 2.0.8
SimplePortal 2.3.5

Meeturmaker

When trying to upgrade from 2.02 i get this error
17. Execute Modification ./Sources/SPortal.php Test failed
here is the php file. Is there anything you can see that might make it error?

reo4ua


Sudhakar Arjunan

Quote from: Meeturmaker on August 18, 2008, 05:39:27 PM
When trying to upgrade from 2.02 i get this error
17. Execute Modification ./Sources/SPortal.php Test failed
here is the php file. Is there anything you can see that might make it error?

Hi Meeturmaker,
I understand that the sportal page is not having any updates.
The 2.04 update will only change the sportal page to source directory.

So make sure whether your sportal page is already in source directory of forum.
If yes, kindly continue the installation. Forget about the test failed.

Even if not, move it manually or move the file to the source director after installation.

Move the included file "SPortal.php" to "./Sources".
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Sudhakar Arjunan

Quote from: Manu0372 on August 18, 2008, 04:30:48 PM
@asudhakar

You're talking about the link tree in your forum, or I'm wrong?

To let your link tree looking like this:

IT Acumens Forum -> Category Name

you have to do this:

Search in Load.php for
    // Start the linktree off empty..we need forum for portal
    $context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'Forum'));


and replace it with
    // Start the linktree off empty..we need forum for portal
    $context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'IT Acumens Forum'));


I tried the code in our test forum and it works perfect ;)

Thanks a lot Manu0372, It worked.

And i have that forum tables error as show in picture.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Manu.G

I know it's not topic related. ;)

Quote from: asudhakar on August 18, 2008, 10:46:24 PM
And i have that forum tables error as show in picture.

Can you send me please your MessageIndex.template.php?

Your layout error has to do with a modification you have add, if you want
I can take a look at the code and change it for you, cause I had the same
problems as you have. ;)
Version SMF 2.0.8
SimplePortal 2.3.5

runebergen


I upgraded today, just posting that everything went fine, no problems :)

thanx for making this mod.. It makes a nice welcome page to the forums, and its the perfect add-on for SMF...

:) :)

Advertisement: