News:

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

Main Menu

SimplePortal

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

Previous topic - Next topic

Manu.G

Hi Sinan,

I have uninstalled the old version of the portal and installed version 2.0.
Everything looks perfect, but there are some issues I have.

Can you take a look at my Load.php, cause the mod "Single Category" isn't working
as it should. When I in the category and click at the category name, the category opens
as single, but when I in the boardindex and click at the category name, I end up in the portal.

After the install I checked the error log of our forum and found this:
Quote8: Undefined variable:  txt
File: /is/htdocs/.../.../.../Sources/SPortal.php
Line: 1514
I found out it's the arcade block which is causing these errors. The undefined variable are available in the modification.english.php

And at last
I have deactivate in the news block the avatar, but the avatars of the poster are visible.
What can be here the problem.

What ever of these things, the portal works perfect and looks great!!!!! :D
Thanks a lot for all the work you put in this mod, thanks to your helper too!!!
Version SMF 2.0.8
SimplePortal 2.3.5

kandalf

I already install the SimplePortal but when I go to index I have a error:

Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 16
File: C:\xampp\htdocs\Sources\SPortal.php
Line: 155

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.4 . The above error might possibly go away if you execute the latest version of upgrade.php.


   
Someone knows how to solve it?

(Sorry my english   O:))

dejiman

sorry about your problem.
I believe the best solution is on this forum .

Stay cool and keep it on
IS YOUR DESTINY ELECETED?

Let's know here

ELECTED DESTINIES

JoshieDaMan

#683
Got it work!

Now I need to figure how do I get to SMF galleries block/file and change its path for picture, since Ultimate profile are using a path that is practically integrated itself galleries.

And other question. For "who's online" block, I would like to know how to have the "," in them. So it won't have a long down names.

I don't want like this.

User1
User2
User3
User4

I want like this.
User1, User2, User3, User4, User5, etc. So to make it look better.

Manu.G

@Sinan

the problem with the Single Category I could solve. =))
Sometimes I'm very brainless!  O:)

I forgot to use the following code in the index.php.  O:)
cleanRequest();
$context = array();
$context['TPortal'] = 'SimplePortal';


Now the Single Category Mod is working as it should. ;)
Version SMF 2.0.8
SimplePortal 2.3.5

kandalf

#685
I already have solved my problem, but now I have another, whenever I do "add article" appears the same article even if I choose another article.

This is very strange  :-[

What I can do to solve this?

[SiNaN]

Talismen:

You problem is about the language files. Download the attached file SPortal.english-utf8.php and copy it to your default theme's language directory. Then make this change in your Modifications.english-utf8.php file:

Find:

?>

Replace:

// SP General
$txt['sp-forum'] = 'Forum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Article Category';
$txt['sp-articlesNoCategory'] = 'Do not Publish';
$txt['sp-make_article'] = 'Make Article';
$txt['error_sp_no_message_id'] = 'Invalid message ID.';
$txt['error_sp_article_exists'] = 'Article already exists.';
$txt['error_sp_cannot_add_article'] = 'You don\'t have permission to add article.';
$txt['error_sp_label_empty'] = 'Label is left empty.';
$txt['error_sp_name_empty'] = 'Name is left empty.';
$txt['error_sp_no_category'] = 'There is no article category created.';

// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'This permission allows users to access the SimplePortal Admin panel.';
$txt['permissionname_sp_add_article'] = 'Can add article';
$txt['permissionhelp_sp_add_article'] = 'This permission allows users to add articles.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto article approval';
$txt['permissionhelp_sp_auto_article_approval'] = 'This permission allows users to add articles without approval.';

// SP Blocks
$txt['sp-userpost'] = 'Posts';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total Messages';
$txt['sp-usernmessage'] = 'New Messages';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Logout';
$txt['sp-onlineguest'] = 'Online Guests';
$txt['sp-onlineuser'] = 'Online Users';
$txt['sp-onlinehuser'] = 'Hidden Users';
$txt['sp-onlinetuser'] = 'Total Users';
$txt['sp-onlineouser'] = 'Online Users';
$txt['sp-statmember'] = 'Total Members';
$txt['sp-statpost'] = 'Total Posts';
$txt['sp-stattopic'] = 'Total Topics';
$txt['sp-statcategory'] = 'Total Categories';
$txt['sp-statboard'] = 'Total Boards';
$txt['sp-qsearchsearch'] = 'Search';
$txt['sp-tposterpost'] = ' posts';
$txt['sp-tboardname'] = 'Board';
$txt['sp-tboardpost'] = 'Posts';
$txt['sp-ttopicname'] = 'Topic';
$txt['sp-ttopicpost'] = 'Posts';
$txt['sp-grpictureviews'] = 'Views:';
$txt['sp-grpicturesender'] = 'By:';
$txt['sp-grpictureguest'] = 'Guest';
$txt['sp-arcadeplay'] = 'The Top Players';
$txt['sp-arcadewin'] = 'Number Of Wins :';
$txt['sp-arcadelate'] = 'Latest High Score by ';
$txt['sp-arcadewit'] = 'with ';
$txt['sp-arcadeon'] = 'on ';

?>


Will include the utf-8 files in the package in the first update.

BOS4O:

Let's try this;

../Themes/default/SPortal.template.php

Find:

<table cellpadding="5px" width="100%">

Replace:

<table cellpadding="5px" width="100%" style="text-align: center;">

Soms:

Congratulations, you've found a bug. :P Confirmed bug: arcade block $txt missed in globals

Here's the fix:

../Sources/SPortal.php

Find:

global $boardurl, $sourcedir, $modSettings, $scripturl, $db_prefix, $arcade, $best_players;

Replace:

global $boardurl, $sourcedir, $modSettings, $scripturl, $db_prefix, $arcade, $best_players, $txt;

ruckstande:

I guess the RSS Feed Poster has a member id. Do this;

../Sources/SPortal.php

Find:

ORDER BY m.ID_MSG DESC

Replace:

AND m.ID_MEMBER <> MEMBER_ID
ORDER BY m.ID_MSG DESC


The error you are having is a member color bug in 1.2. Upgrade to the version 2.0 and you will have no problem.

4b11l:

You too found a bug. :) Confirmed bug: undefined index error for right and left sides

Fix until the update; activate right blocks. Then deactivate again. You will not get errors anymore.

I haven't seen a centering error in the board news block. Can you provide a screenshot?

While looking over, spotted another bug. Confirmed bug: deactivate avatars in board news block doesn't work

joomlamz:

Thanks again. I'll add this. We will have other languages supported too. Just wait.

Manu0372:

I've given the solution for Single Category error and seems like you've found it. I'm glad.

undefined index error is confirmed, see the solution above in this message.

For the avatar bug, I'll soon give the solution. But should check it before. But I suggest you using the Articles feature. It's better as you can include topics from various boards.

kandalf:

How did you solve that problem? What was causing that?

Can you be more spefic about the article error? How do you add articles? You can provide a screenshot if it's difficult to explain by words. I understand, English is not my native too.

JoshieDaMan:

What is the mod you are using for gallery?

For the who's online;

../Sources/SPortal.php

Find:

foreach ($online['users'] as $user)
echo '<tr>
<td colspan="4" style="padding-left: 15px;"><img src="' . $settings['images_url'] . '/useron.gif" alt="user" /> ',$user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'],'</td>
</tr>';
echo '</table>';


Replace:

$temp_array = array();
foreach ($online['users'] as $member)
$temp_array[] = $member['link'];

echo ' <tr>
<td colspan="4">', implode(', ', $temp_array), '</td>
</tr>';
echo '</table>';


Lastly for all, I am still ill. Hope to be back in couple of days. Sorry for delay. But this all I can do.
Former SMF Core Developer | My Mods | SimplePortal

ruckstande

#687
Thanks [SiNaN], I upgraded to 2.0. If I try to change a block rows order I get this:
Quote
Fatal error: Call to undefined function: changeblockrow() in /home/content/r/u/c/ruckstande/html/pbl2/Sources/SPortalAdmin.php on line 556

Also one thing you may be able to help with or not. I had to manually edit my theme file for this and for some reason now, the highlight under "forum" isn't in line with the rest of the links. Would you know how to fix it?

[SiNaN]

ruckstande:

I don't know how did I miss that. :S Seems like I've destroyed the function accidently. I'll release an upgrade tomorrow. It will include the fixes for the bugs confirmed here.

Confirmed bug: changeblockrow() function got lost
Former SMF Core Developer | My Mods | SimplePortal

ruckstande

Okay great thank you. I don't know if you got to see my other couple of questions I added to my last post. One other thing but it may just be me, my total number of users is a bit more than 3. I'm not sure why it says that.

ruckstande

Oh, also, what is really strange, I have an RSS feed poster mod on. I have a fake member assigned to the RSS feeds. Now on my recent posts page, they are all listing me as the poster.

[SiNaN]

Seems you like haven't added 'forum' action into the actions array in index.template.php file of your theme. Check it again. If you cannot do it, attach your index.template.php file here.

For you Rss question; see my looonngggg post. :) You can use "Search" function of your browser. :P

Note that it just fixes the recent posts. Do you need for recent topics too?

Thanks for you too, for using my mod. ;)
Former SMF Core Developer | My Mods | SimplePortal

Sudhakar Arjunan

Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

ruckstande

Quote from: [SiNaN] on July 19, 2008, 10:11:55 AM
Seems you like haven't added 'forum' action into the actions array in index.template.php file of your theme. Check it again. If you cannot do it, attach your index.template.php file here.

For you Rss question; see my looonngggg post. :) You can use "Search" function of your browser. :P

Note that it just fixes the recent posts. Do you need for recent topics too?

Thanks for you too, for using my mod. ;)
Yes I'll send it to you. I really bastardized it I think.

No problem using the mod. Its great. I will look for the feed post but it was working with 1.2 before fine. Should I uninstall it and reinstall the RSS Mod again? Will that fix the most recent post and topics list?

Manu.G

@Sinan

Thanks for your help and I hope you will get well soon. ;)

The same error with missing text strings where in the gallery block too.

I changed the following in

../Sources/SPortal.php
global $modSettings, $context, $user_info, $scripturl, $sc, $ID_MEMBER, $db_prefix, $GD_Installed, $gallery_picture;

into

global $modSettings, $context, $user_info, $scripturl, $sc, $ID_MEMBER, $db_prefix, $GD_Installed, $gallery_picture, $txt;

Now both blocks working perfect. ;)

The problem with the Avatar in the News block I solved in the way, that I changed a bit
the table for the News block.
If you want you can take a look at our Portal version 2.0 here: http://forum.arseniums.com

Sinan your portal mod is great!!! :D
Version SMF 2.0.8
SimplePortal 2.3.5

[SiNaN]

Just about to forget yours Asudhakar. Attached.

Fixed yours too Ruckstande. No need to re-install the rss mod. Just make the change I've given. Doesn't it use a member Id?

Manu0372, do not forget the changes you make. It will make it hard for you to upgrade the mod in the future if you. Thanks for using my mod. Glad you liked it.
Former SMF Core Developer | My Mods | SimplePortal

Sudhakar Arjunan

Quote from: [SiNaN] on July 19, 2008, 10:26:03 AM
Just about to forget yours Asudhakar. Attached.

Thank you SiNaN,
I Could not think about uninstalling this version 1.1,
Since i went to your Bizmuhacirler and saw, you are still using v1.1

I was really collapsed now, no idea what to do.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

[SiNaN]

I don't have enough time to install the mod to my own site. I'll do it once I find some time.
Former SMF Core Developer | My Mods | SimplePortal

ruckstande

Sorry [SiNaN], I don't know what happened but the forum button now points to the help menu. I'm trying to find the answer to the feed issue but I didn't have any luck finding it. I'll look again.

[SiNaN]

Sorry, use this.

Advice: Do not code in hurry. :P
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: