SimplePortal

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

Previous topic - Next topic

Sudhakar Arjunan

Quote from: Eliana Tamerin on August 17, 2008, 06:19:32 AM
Maybe it'd be a good idea to package your edits so that you can reapply them on every update. I can help you do that if you show me what you edited.

Quote from: LHVWB on August 17, 2008, 06:25:10 AM
@asudhakar,
Updating between versions, is included in each new version of the mod. ;)

Thank you Team,

Will now download and install the package.
Hope the package with Update Perfectly.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Sudhakar Arjunan

I have uploaded v2.04.

It starts like a new installation.

Check this code:


Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test failed
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/Recent.php Test successful
4. Execute Modification ./Sources/SPortal.php Test successful
5. Execute Modification ./Sources/SPortalAdmin.php Test successful
6. Execute Modification ./Themes/default/SPortalAdmin.template.php Test successful
7. Execute Modification ./Sources/Subs.php Test successful
8. Execute Modification ./Sources/Subs-SPortal.php Test successful
9. Execute Modification ./Themes/default/SPortal.template.php Test successful
10. Execute Modification ./Themes/default/SPortalAdmin.template.php Test successful
11. Execute Modification ./Themes/default/languages/SPortal.english.php Test successful
12. Execute Modification ./Themes/default/languages/SPortal.english-utf8.php Skipping file
13. Execute Modification ./Sources/Post.php Test successful
14. Execute Modification ./Themes/default/Post.template.php Test failed
15. Execute Modification ./Sources/Subs-Post.php Test successful
16. Execute Code upgrade02.php
17. Execute Modification ./Sources/SPortal.php Test successful
18. Extract File ./Themes/default/languages/SPortal.english-utf8.php


I am really worried, that this will again rewrite the code once in to all my files.

Kindly check and give me a reply Author & Team.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Nathaniel

@asudhakar,
That should work fine, and not undo any of the changes that you have made, because it won't be uploading any files or etc to overwrite the changes that you have made, it will only make edits to the already existing files. Even so, I would recommend making a backup of the relevant files (at least).
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.

tuguex

SiNaN, to upgrade "my" SPortal from 2.0.2 to 2.0.4 I need to unistall it 1st ?

caniol52

I've installed v2.0.4 on top of a clean SMF 1.1.5 installation.  SP installation went well and everything seems to work...except that I have no FORUM tab is showing and users can no longer upload their avatars.  Also, users who had uploaded their avatars prior to SP installation, can no longer see their previously uploaded avatars.

Any ideas?

caniol52

I found the problem with the FORUM tab.

The Package Parser parses the code for index.template.php like this:
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">'.$txt['sp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';


It should parse like this:
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">'.$txt['sp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Someone might want to look into this.

I still can't find the answer to the avatar issue.   

redindian

i am new at this smf. im trying to build my own forum. i wonder, how to integrated "simple portal" with "flash chat"

i just want to load my flashchat in one of block in simple portal.

thx before

Sudhakar Arjunan

Quote from: tuguex on August 17, 2008, 09:14:00 AM
SPortal from 2.0.2 to 2.0.4 I need to unistall it 1st ?

@ tuguex :

You need not have to uninstall 2.0.2 - Just download 2.0.4 and click on install and it automatically updates your 2.0.2 portal as mentioned by LHVWB

Incase if you have any error or test failed during installation. Kindly use parser to install it manually.

Quote from: caniol52 on August 17, 2008, 12:50:50 PM

Someone might want to look into this.


@ Caniol52

Check out the Forum menu, which i was using it.


     // Show the [forum] button.
echo ($current_action == 'forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td align="center" class="menubg' , $current_action == 'forum' ? '2' : '' , '">
<a href="', $scripturl, '?action=forum">Forum</a>
</td>' , $current_action == 'forum' ? '<td class="menubg' . $last . '">&nbsp;</td>' : '';


Quote from: redindian on August 17, 2008, 01:03:40 PM

how to integrated "simple portal" with "flash chat"

i just want to load my flashchat in one of block in simple portal.


@redindian

I dont understand, do you want flashchat to be integrated to simple portal front page.
If Just menu, just use the about menu like i have mentioned . Instead replace forum as chat .Make sure your chat is inside forum folder/chat folder and point link to index.php?action=chat.

I will point you a chat mods,

http://custom.simplemachines.org/mods/index.php?mod=611
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

[SiNaN]

tuguex:

No, package has the upgrade feature for SP 2.0, 2.0.1, 2.0.2 and 2.0.3. Just update it as if you are installing the mod again.

caniol52:

I also installed the latest version on a fresh SMF 1.1.5. I never had a problem with "Forum" button until this time and again on this installation, it was fine for me. &nbsp; is the HTML entity used for "space" character, so there is no difference. What was the error you were getting actually? Maybe you post a screen shot?

I also never had an avatar problem cause of SP and again this time all three avatar update methods worked perfect for me. Also note that, SP does not make any change related to avatars. Are you sure that you didn't had that problem before installing SP?

redindian:

Welcome redindian. Unfortunately I never used flashchat. But I think we only have the bridge for that. So it will be harder than it looks to show up in a block. But anyway, I'll try it for you.

Former SMF Core Developer | My Mods | SimplePortal

caniol52

Quote from: [SiNaN] on August 17, 2008, 02:08:10 PM


caniol52:

I also installed the latest version on a fresh SMF 1.1.5. I never had a problem with "Forum" button until this time and again on this installation, it was fine for me. &nbsp; is the HTML entity used for "space" character, so there is no difference. What was the error you were getting actually? Maybe you post a screen shot?

No error message, just no FORUM tab.  Look closely at the complete last line of code in each example.

Quote
I also never had an avatar problem cause of SP and again this time all three avatar update methods worked perfect for me. Also note that, SP does not make any change related to avatars. Are you sure that you didn't had that problem before installing SP?

I have completely blown away the SMF setup and the SP installation three times with the same result.  An interesting note.  I tried this on a localhost test server (WAMP) and did not get the same results.  Everything works fine.  But on my hosted server I have the problem.  I would think that it was a permissions problem, but the avatars are ok and can be uploaded prior to installing SP.

[SiNaN]

Well, I see; I have no idea why we have missed both $first and $last in the button. Confirmed bug, will be fixed in first update. But what I didn't understand is, why it didn't happen to anybody else but only you?

Weird. I have no idea about what could cause that. If it is possible, may I see the situation myself?
Former SMF Core Developer | My Mods | SimplePortal

Manu.G

I try to upgrade from 2.0.2 to 2.0.4 and get the following errors:

Quote1.      Execute Modification      ./Sources/BoardIndex.php      Test failed
3.      Execute Modification      ./Sources/Recent.php      Test failed
4.     Execute Modification     ./Sources/SPortal.php     Test failed
14.      Execute Modification      ./Themes/default/Post.template.php      Test failed

1,3 and 4 have to do with the "SingleCategory Mod" I'm using in the forum, cause I changed a lot of the codes, with Sinan's help, there after I had installed SimplePortal. The Error in the Post.template.php is the missing code there, but I think it's not that big problem or is it?
Will it be ok, when I click "Install" and ignore the error messages?
After the install I can load up the SPortal.php via ftp.  :-\
Version SMF 2.0.8
SimplePortal 2.3.5

[SiNaN]

Quote1.      Execute Modification      ./Sources/BoardIndex.php      Test failed
3.      Execute Modification      ./Sources/Recent.php      Test failed

As I remember, we made this fixes in your files before. That's why you are getting error. But anway, attach them so that I can check; I don't want one of my best user having problem. :)

Quote4.     Execute Modification     ./Sources/SPortal.php     Test failed

This could be because of some fixes too. Just replace it with the one in the package.

Quote14.      Execute Modification      ./Themes/default/Post.template.php      Test failed

Maybe try making changes in this file manually. Or just attach and I'll do it for you.

BTW, we fixed the error caniol52 getting, luckily it was just a manual install typo, not a bug.
Former SMF Core Developer | My Mods | SimplePortal


Manu.G

Quote from: [SiNaN] on August 17, 2008, 03:56:02 PM
Quote14.      Execute Modification      ./Themes/default/Post.template.php      Test failed

Maybe try making changes in this file manually. Or just attach and I'll do it for you.

In the upgrade file I found this:
<search position="replace">
                            </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>


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


I checked my Post.template.php for the manual install and I found only this code
                            </tr>
                            <tr>
                                <td align="right">
                                    <b>', $txt[71], ':</b>


I think a change there isn't for need. ;)

Quote from: [SiNaN] on August 17, 2008, 03:56:02 PM
Quote4.     Execute Modification     ./Sources/SPortal.php     Test failed
This could be because of some fixes too. Just replace it with the one in the package.

That's what I wanted to do after the click at "install" ;)

Quote from: [SiNaN] on August 17, 2008, 03:56:02 PM
I don't want one of my best user having problem. :)

Thanks a lot for the compliment, but I have to say, your support here is FANTASTIC!!!!

The BoardIndex.php and Recent.php are in the attachment to this posting. ;)
Version SMF 2.0.8
SimplePortal 2.3.5

caniol52

Quote from: [SiNaN] on August 17, 2008, 03:56:02 PM
Quote
BTW, we fixed the error caniol52 getting, luckily it was just a manual install typo, not a bug.

SiNaN is the Best!!!  What great support!!!

[SiNaN]

NIBOGO:

Thanks, NIBOGO. We are trying to do our best. But be ready for incredible features, you will not believe in your eyes soon.

Manu0372:

First; you're right, no need for a change.

Second; would be okay if you do that.

Third; its a pleasure for me, especially when you get such comments.

Last; both of your files looks okay. But do you have any problems with collapse boards?

caniol52:

Thanks caniol52. Best users deserve best support.
Former SMF Core Developer | My Mods | SimplePortal

Manu.G

Quote from: [SiNaN] on August 17, 2008, 04:23:30 PM
Last; both of your files looks okay. But do you have any problems with collapse boards?

Not really a problem, the only thing I noticed is, that the active link after collapsing a category the portal is and not the forum.
Version SMF 2.0.8
SimplePortal 2.3.5

Sudhakar Arjunan

As i have posted here - http://www.simplemachines.org/community/index.php?topic=227599.msg1664249#msg1664249

While installation i have two errors One at Board Index and one at Post template file.

I have check and find the error in the line highlighted.

./Sources/BoardIndex.php

Find: [Select]
'href' => $scripturl . '#' . $row_board['ID_CAT'],

Replace With: [Select]
'href' => $scripturl . '?action=forum#' . $row_board['ID_CAT'],


My Board Index file from Source :
------------------------------------------


// Run through the categories and boards....
$context['categories'] = array();
while ($row_board = mysql_fetch_assoc($result_boards))
{
// Haven't set this category yet.
if (empty($context['categories'][$row_board['ID_CAT']]))
{
$context['categories'][$row_board['ID_CAT']] = array(
'id' => $row_board['ID_CAT'],
'name' => $row_board['catName'],
'is_collapsed' => isset($row_board['canCollapse']) && $row_board['canCollapse'] == 1 && $row_board['isCollapsed'] > 0,
'can_collapse' => isset($row_board['canCollapse']) && $row_board['canCollapse'] == 1,
'collapse_href' => isset($row_board['canCollapse']) ? $scripturl . '?action=collapse;c=' . $row_board['ID_CAT'] . ';sa=' . ($row_board['isCollapsed'] > 0 ? 'expand' : 'collapse;') . '#' . $row_board['ID_CAT'] : '',
'collapse_image' => isset($row_board['canCollapse']) ? '<img src="' . $settings['images_url'] . '/' . ($row_board['isCollapsed'] > 0 ? 'expand.gif" alt="+"' : 'collapse.gif" alt="-"') . ' border="0" />' : '',
'href' => $scripturl . '?' . (!empty($context['TPortal']) ? 'action=forum;' : '') . 'c=' . $row_board['ID_CAT'],
'boards' => array(),
'new' => false
);
// Single Category Mod Edited This.
$context['categories'][$row_board['ID_CAT']]['link'] = '<a name="' . $row_board['ID_CAT'] . '" href="' . $context['categories'][$row_board['ID_CAT']]['href'] . '">' . $row_board['catName'] . '</a>';

// Single Category Mod
if(isset($context['single_cats']) && !is_array($_REQUEST['c']))
$context['linktree'][] = array(
'url' => $scripturl . '?' . (!empty($context['TPortal']) ? 'action=forum;' : '') . 'c=' . $row_board['ID_CAT'],
'name' => $row_board['catName']);
else
{
if(!isset($temp))
$temp = array();
$temp[] = $row_board['catName'];
}
}


Which part i have to edit in it.

And in post Template file :
---------------------------------

While Upgrade , it shows error on 14.     Execute Modification     ./Themes/default/Post.template.php     Test failed

But in parser i have no edit for that file.

Even i have attached the post.template.php file from my default theme folder.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

kat

OK. NooB alert!

SP installed without a hitch. I made all the required edits for the other themes and all, except AABrainDamage are working A-OK.

Dmaned fine mod, guys. Thanks.

One thing that's causing me headaches, though, which is likely to be down to me missing something.

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?

Advertisement: