Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SimplePortal Team on March 10, 2008, 11:16:07 PM

Title: SimplePortal
Post by: SimplePortal Team on March 10, 2008, 11:16:07 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=1104)

SimplePortal 2.3.7

The SimplePortal Team is happy to announce the release of SimplePortal 2.3.7, code-named "Ghost!" This release includes fixes for the bugs found in the 2.3.6 version and is aimed at providing an even more stable portal experience for our users.

We urge all users to upgrade to SimplePortal 2.3.7 as soon as possible to take advantage of the bug fixes. A full list of changes for 2.3.7 can be found in the changelog.txt file within the SimplePortal package, but some of the more important fixes are:

As usual, there is no auto-upgrade option from 2.3.6 to 2.3.7. So, if you are running 2.3.6 or an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.


Thanks for all your support, and keep those bug reports and feature requests coming!
-The SimplePortal Team
Title: Re: SimplePortal
Post by: Eliana Tamerin on March 10, 2008, 11:22:35 PM
Interesting portal. Definitely a good start to one. I would suggest, though, the option to make a frontpage that's just an article or text, instead of including forum posts.
Title: Re: SimplePortal
Post by: [SiNaN] on March 11, 2008, 02:49:05 AM
Quote from: Eliana Tamerin on March 10, 2008, 11:22:35 PM
Interesting portal. Definitely a good start to one. I would suggest, though, the option to make a frontpage that's just an article or text, instead of including forum posts.

Thanks. This is just start. ;)
Title: Re: SimplePortal
Post by: Impsat-1 on March 11, 2008, 03:26:01 AM
Mmm... look I need to focus centered, the portal tell me how I do please... see you & Great Tool I Like, but I need centered Thanks ;).-
Title: Re: SimplePortal
Post by: [SiNaN] on March 11, 2008, 03:45:24 AM
Quote from: Nahuel-1 on March 11, 2008, 03:26:01 AM
Mmm... look I need to focus centered, the portal tell me how I do please... see you & Great Tool I Like, but I need centered Thanks ;).-

What do you mean by centered?
Title: Re: SimplePortal
Post by: Impsat-1 on March 11, 2008, 04:30:18 AM
Mmm... the same block's to side by side, mmm... centered like this,

(http://img389.imageshack.us/img389/5709/portal1ek9wv1.jpg)
(http://img357.imageshack.us/img357/6571/portal2no9.jpg)
(http://img357.imageshack.us/img357/7702/portal3vc6.jpg)

hey my english not is so good i'm in Argentina but may be this image's can say you what I pretend or suggest to you, Thanks 8).-

PD: Centered all blocks Like first image :).-
Title: Re: SimplePortal
Post by: [SiNaN] on March 11, 2008, 04:37:19 AM
You can do that by just editing the sportal.template.php file. But as the height of the blocks are not fixed it would not look good I guess. Which blocks do you want to be centered?

Do not worry. Mine is not good also, I'm from Turkey.
Title: Re: SimplePortal
Post by: Impsat-1 on March 11, 2008, 04:43:21 AM
Uhhh... Ok Ok I going to tray, because I use FrontPage... to editing this I have to do whit Dreamweaver or simil, Thanks I will to edit and later say you how is the final presentation... See You, & Thank You 8).-
Title: Re: SimplePortal
Post by: [SiNaN] on March 11, 2008, 04:48:54 AM
Quote from: Nahuel-1 on March 11, 2008, 04:43:21 AM
Uhhh... Ok Ok I going to tray, because I use FrontPage... to editing this I have to do whit Dreamweaver or simil, Thanks I will to edit and later say you how is the final presentation... See You, & Thank You 8).-

Not at all. If you look at the coding it is very simple and suitable for developing. Just you need some html and a little php knowledge.
Title: Re: SimplePortal
Post by: Hoochie Coochie Man on March 11, 2008, 06:12:05 AM
congratulations! @[SiNaN]
It's realy simple like its name. And seems perfect.
Thank you for this great portal!
Good job!
Title: Re: SimplePortal
Post by: Alpay on March 11, 2008, 06:44:25 AM
Congratulations friend.
Good job..
Title: Re: SimplePortal
Post by: [SiNaN] on March 11, 2008, 06:52:22 AM
Thanks to the both of you. ;)
Title: Re: SimplePortal
Post by: [SiNaN] on March 11, 2008, 07:44:07 AM
A serious mistake have been found in the mod. Please change the file attached with the ../Themes/default/SPortal.template.php file who installed the mod before this message is posted.

The package is updated, from now on there is no such an error in the package.

Thanks to Yağız for discovering the error.
Title: Re: SimplePortal
Post by: Basie on March 11, 2008, 11:17:17 AM
Looks good so far, but is there a way to add a custom block? For instance, my front page needs a 'links/affiliates' block.
Title: Re: SimplePortal
Post by: [SiNaN] on March 11, 2008, 11:53:32 AM
That is, for now, not automated. I think I should write a small guide for how to do it manually. You can do that if you know html and a bit php. Just you should gather the information with the SPortal.php and output it with the SPortal.template.php.
Title: Re: SimplePortal
Post by: maxdg on March 11, 2008, 09:57:20 PM
Sorry SiNaN.. I'm not sure about this:.. why we have 2 Online Users fields?

What stands for  ['sp-onlineuser'] and ['sp-onlineouser'] ?

Thank you, I'll provide an italian translation soon..
Title: Re: SimplePortal
Post by: Eliana Tamerin on March 11, 2008, 10:01:37 PM
The second one lists those who are online. Probably something that could be worded better.
Title: Re: SimplePortal
Post by: maxdg on March 11, 2008, 10:15:48 PM
Quote from: Eliana Tamerin on March 11, 2008, 10:01:37 PM
The second one lists those who are online. Probably something that could be worded better.

Sure... what a mess..  ;D
So, first line is for counting online users and the second one lists linked users..

Got it.
Grazie Eliana.. ;) a quest'ora questo e altro..
Title: Re: SimplePortal
Post by: maxdg on March 11, 2008, 10:26:24 PM
Italian language
as promised:

[ADD to: ="$languagedir/ModSettings.italian.php"]

//Simple Portal

$txt['mods_cat_sportal'] = 'Impostazioni SPortal';
$txt['sportalsettings'] = 'Impostazioni SPortal';
$txt['lshowdetails'] = '<b>Utente</b> | Mostro i dettagli Utente?';
$txt['aspecificannounce'] = '<b>Annuncio</b> | Uso annunci diversi?';
$txt['nshowavatar'] = '<b>News</b> | Mostro Avatar?';
$txt['tttype'] = '<b>Top Topic</b> | Ordinato?';
$txt['tttypeselect'] = 'Seleziona';
$txt['aannouncetext'] = '<b>Annuncio</b> | Testo Annuncio:<div class="smalltext">Possono essere selezionati diversi annunci.</div>';
$txt['nnewsboard'] = '<b>Board News</b> | News board:';
$txt['nnewscount'] = '<b>Board News</b> | Conteggio News da mostrare:';
$txt['nnewslength'] = '<b>Board News</b> | Lunghezza contenuto News:';
$txt['rppostcount'] = '<b>Posts Recenti</b> | Numero di posts:';
$txt['rttopiccount'] = '<b>Topics Recenti</b> | Numero di topics:';
$txt['ppollid'] = '<b>Sondaggio Top</b> | ID Sondaggio da mostrare:';
$txt['tppcount'] = '<b>Top Postanti</b> | Conteggio dei postanti:';
$txt['tbbcount'] = '<b>Top Boards</b> | Conteggio delle boards:';
$txt['tttcount'] = '<b>Top Topics</b> | Conteggio dei topics :';
$txt['showleft'] = 'Mostra i bolcchi di sinistra:';
$txt['showright'] = 'Mostra i blocchi di destra:';
$txt['leftwidth'] = 'Larghezza blocchi di sinistra:';
$txt['rightwidth'] = 'Larghezza blocchi di destra:';
$txt['showuser'] = 'Mostra blocco utente:';
$txt['showusersonline'] = 'Mostra blocco Utenti Online:';
$txt['showboardstats'] = 'Mostra blocco statistiche:';
$txt['showlatestmember'] = 'Mostra blocco Ultimo iscritto:';
$txt['showquicksearch'] = 'Mostra blocco Ricerca Veloce:';
$txt['showannouncements'] = 'Mostra blocco Annunci:';
$txt['showboardnews'] = 'Mostra blocco Board News:';
$txt['showrecentposts'] = 'Mostra blocco Posts Recenti:';
$txt['showrecenttopics'] = 'Mostra blocco Topics Recenti:';
$txt['showtoppoll'] = 'Mostra blocco Sondaggio Top:';
$txt['showtopposters'] = 'Mostra blocco Top Postanti:';
$txt['showtopboards'] = 'Mostra blocco Top Boards:';
$txt['showtoptopics'] = 'Mostra blocco Top Topics:';

(SPortal.italian.php attached)

Demo (http://www.torredeltempo.net/component/option,com_smf/Itemid,2/)
Title: Re: SimplePortal
Post by: [SiNaN] on March 12, 2008, 06:11:06 AM
Thanks maxdg. I will add to the package soon.
Title: Re: SimplePortal
Post by: [SiNaN] on March 12, 2008, 06:44:11 AM
Italian Lanugage is added as a package. I would be glad if you check it.
Title: Re: SimplePortal
Post by: maxdg on March 12, 2008, 09:52:59 AM
Seems to be ok and working.

Since I have integrated SMF in Joomla I modified the last istruction from:

<file name="$languagedir/index.italian.php">
<operation>
<search position="end" />
<add><![CDATA[$txt['sp-forum'] = 'Forum';]]></add>
</operation>
</file>


to

<file name="$languagedir/index.italian.php">
<operation>
<search position="end" />
<add><![CDATA[$txt['sp-forum'] = 'Indice';]]></add>
</operation>
</file>


..because I just have a "Forum" link on the website menu to the "Home" page of the forum..

So I preferred to change "Forum" link in "Indice" (Index) for better understanding.

It's only a choice.. maybe I will modify that "Home" link in something like "SPortal" .... still not sure..
Title: Re: SimplePortal
Post by: [SiNaN] on March 12, 2008, 10:13:12 AM
Is the "Forum" correct for the Italian language?
Title: Re: SimplePortal
Post by: maxdg on March 12, 2008, 11:56:51 AM
Quote from: [SiNaN] on March 12, 2008, 10:13:12 AM
Is the "Forum" correct for the Italian language?

More than others.. because it's a latin word: (pl. "fora" and not "forums")
Anyway, I have keep some words as the original english (like "post", "board" and so) because in internet we (as many) use the same words..

Overall.. I preferred the short word when possible and in the "online users" block there isn't  the word "online" in "online users", "online guests"... for a better layout..

;)
Title: Re: SimplePortal
Post by: ivo2296 on March 12, 2008, 02:36:17 PM
I would like to give a try but my forum is in my domain root installed - Will that be a problem?
Title: Re: SimplePortal
Post by: maxdg on March 12, 2008, 02:52:09 PM
Quote from: ivo2296 on March 12, 2008, 02:36:17 PM
I would like to give a try but my forum is in my domain root installed - Will that be a problem?

I think it's the best way you can use it.

My 2 cents
Title: Re: SimplePortal
Post by: ivo2296 on March 12, 2008, 05:34:45 PM
Quote from: maxdg on March 12, 2008, 02:52:09 PM
Quote from: ivo2296 on March 12, 2008, 02:36:17 PM
I would like to give a try but my forum is in my domain root installed - Will that be a problem?

I think it's the best way you can use it.

My 2 cents

hehe oki-doki :)

what about the uninstaller - is it work good? - my forum is 3 years old and i don't want to demolish everything. My opinion is talking now... :) 
Title: Re: SimplePortal
Post by: maxdg on March 12, 2008, 05:52:31 PM
Best is ALWAYS backing up your site and database... and you go fearless... ;)

(I didn't uninstall it yet... )
Title: Re: SimplePortal
Post by: maxdg on March 12, 2008, 09:24:16 PM
Just a little question to SiNaN:

How can I make the text flowing form right to left without blank space, in the Announce block?

Thanks

A pic to show what I mean:
Title: Re: SimplePortal
Post by: brianjw on March 12, 2008, 10:16:22 PM
I have to say it's very nice and very simple. I'd like to see the mod further coded and continued for custom blocks and even other ideas.
Title: Re: SimplePortal
Post by: [SiNaN] on March 13, 2008, 11:04:50 AM
Quote from: ivo2296 on March 12, 2008, 05:34:45 PM
what about the uninstaller - is it work good? - my forum is 3 years old and i don't want to demolish everything. My opinion is talking now... :) 

If you didn't get any error during the install, uninstalling should be just a piece of cake.

Quote from: maxdg on March 12, 2008, 09:24:16 PM
Just a little question to SiNaN:

How can I make the text flowing form right to left without blank space, in the Announce block?

You can use the html tag <marquee> in the texbox that you write the announcement.

Quote from: brianjw on March 12, 2008, 10:16:22 PM
I have to say it's very nice and very simple. I'd like to see the mod further coded and continued for custom blocks and even other ideas.

I hope too. This is just start. Thanks.
Title: Re: SimplePortal
Post by: maxdg on March 13, 2008, 12:09:21 PM
Quote from: [SiNaN] on March 13, 2008, 11:04:50 AM
You can use the html tag <marquee> in the texbox that you write the announcement.

Sorry, I wasn't clear enough..

The only thing I want is to have the "NEWS" text area filled at 100%, where there's the posts preview..

Thanks!
Title: Re: SimplePortal
Post by: [SiNaN] on March 13, 2008, 12:20:04 PM
Quote from: maxdg on March 12, 2008, 09:24:16 PM
How can I make the text flowing form right to left without blank space, in the Announce block?

SPortal.template.php

Find:

<tr class="windowbg" align="center">

Replace:

<tr class="windowbg">

Quote from: maxdg on March 13, 2008, 12:09:21 PM
The only thing I want is to have the "NEWS" text area filled at 100%, where there's the posts preview..

It should be I think. But if not, can you try this:

SPortal.template.php

Find:
<div>
<a href="', $news['href'], '">', $news['icon'], '</a> <b>', $news['subject'], '</b>
<div class="smaller">', $news['time'], ' ', $txt[525], ' ', $news['poster']['link'], '</div>

<div class="post" style="padding: 2ex 0;">', $news['body'], '</div>


Replace:

<div width="100%">
<a href="', $news['href'], '">', $news['icon'], '</a> <b>', $news['subject'], '</b>
<div class="smaller">', $news['time'], ' ', $txt[525], ' ', $news['poster']['link'], '</div>

<div class="post" style="padding: 2ex 0;" width="100%">', $news['body'], '</div>
Title: Re: SimplePortal
Post by: maxdg on March 13, 2008, 12:43:13 PM
Quote from: [SiNaN] on March 13, 2008, 12:20:04 PM
It should be I think. But if not, can you try this:

It doesn't..

I tried your code and still no success..

As you can see in the posted pic I use a different template than default.
Perhaps it may be a CSS problem?

I have a "style.css" file in my template folder but there isn't any "smaller" class.
Only a "post" class like this:

.post, .personalmessage
{
width: 100%;
overflow: auto;
line-height: 1.3em;
}

...and it's 100%.. :-/
Title: Re: SimplePortal
Post by: Nibogo on March 13, 2008, 07:45:53 PM
i cant install this mod in my forum

i make a manual edit and didnt work
Title: Re: SimplePortal
Post by: brianjw on March 13, 2008, 08:37:22 PM
Have you tried the Package Parser (http://www.gamerzgarage.com/package.php)?
Title: Re: SimplePortal
Post by: [SiNaN] on March 14, 2008, 02:38:59 AM
maxdg, I tested in the default and in some other themes. There is not such an error. But another member reported such an error with a likely theme. I will check with the theme you use also.

Quote from: NIBOGO on March 13, 2008, 07:45:53 PM
i cant install this mod in my forum

i make a manual edit and didnt work

I guess you've made a mistake during the edit. Please check them again.

//Edit: Same theme, no error. :S http://bizmuhacirler.com/test/index.php
Title: Re: SimplePortal
Post by: [SiNaN] on March 14, 2008, 07:15:08 AM
I've found the error. It appears only when avatars are disabled in the news.

SPortal.template.php

Find:

<td colspan="2">
<hr style="margin: 2ex 0;" width="100%" />


Replace:

<td', $modSettings['nshowavatar'] ? ' colspan="2"' : '', '>
<hr style="margin: 2ex 0;" width="100%" />
Title: Re: SimplePortal
Post by: jusplay77 on March 14, 2008, 08:09:55 PM
First off, I must say this is a great portal!  I previously had gencportal installed but had too many errors.  This one is a great start and has potential as well.  Very well done.

--

For further development, it would be nice to choose which boxes go on which side (LEFT or RIGHT). 

-

Also, exclusion of certain boards from the "Top Boards" List would be nice.  (As I have Several Archives Forums where I move old topics... And I do not want any Archive Boards showing up in The Top Boards section).  So perhaps a block that says:

[Board ID's that you do not want counted in Top Boards]: [ 2,5,15,23 ]  (Separate by comma)

-

Lastly, Custom Boxes would be nice to add as well (Such as SMF Shop Recently Purchased Items, SMF Pets Leadersboard, SMF Arcade Latest High Scores, SMF Downloads Latest Download Additions, etc).. The possibilities are endless..
Title: Re: SimplePortal
Post by: maxdg on March 15, 2008, 12:47:29 PM
QuoteI've found the error. It appears only when avatars are disabled in the news.

Great, good job!

I disabled avatars because they overlaying the text.. but only if measures aren't standard.
The working theme you link to me has little avatars..
Title: Re: SimplePortal
Post by: [SiNaN] on March 15, 2008, 03:48:29 PM
Quote from: maxdg on March 15, 2008, 12:47:29 PM
QuoteI've found the error. It appears only when avatars are disabled in the news.

Great, good job!

I disabled avatars because they overlaying the text.. but only if measures aren't standard.
The working theme you link to me has little avatars..

I think we can set the avatar width. If we can do that, will everything would be okay?
Title: Re: SimplePortal
Post by: Nibogo on March 15, 2008, 06:49:03 PM
Someone have this mod workink with the "Çöl Ateşi v3" Theme because i can isntall in my forum and i use this theme
Title: Re: SimplePortal
Post by: maxdg on March 16, 2008, 10:52:31 AM
Quote from: [SiNaN
I think we can set the avatar width. If we can do that, will everything would be okay?

I think it would be GREAT!
;)

I taked a look around and didn't noticed anything else, except for a little bridging issue with Joomla when I'm on Admin -> Option and Settings page and try to save.

Everything's OK when I'm on www.mysite/forum (directly in SMF with no template integration) but if I'm in the wrapped view I can't save settings because of a :

Unable to load the 'main' template

error..

Title: Re: SimplePortal
Post by: [SiNaN] on March 16, 2008, 12:29:06 PM
Quote from: maxdg on March 16, 2008, 10:52:31 AM
I think it would be GREAT!
;)

I taked a look around and didn't noticed anything else, except for a little bridging issue with Joomla when I'm on Admin -> Option and Settings page and try to save.

Everything's OK when I'm on www.mysite/forum (directly in SMF with no template integration) but if I'm in the wrapped view I can't save settings because of a :

Unable to load the 'main' template

error..

I'll look at that avatar issue.

Ummm... Don't have any idea about the bridges. But I'll look at that also.
Title: Re: SimplePortal
Post by: maxdg on March 16, 2008, 12:49:11 PM
Thanks a lot for your care .. ;)
Title: Re: SimplePortal
Post by: Lil Puppy on March 17, 2008, 06:26:30 AM
I like this portal and my members want it very much but I can't use it on my live server :(

For some reason it wont read the language file entries for the text that it uses. See attached images.

I can get it to work perfectly on my home computer server for testing, but when I install it on my hosted server it refuses to show the text for the portal. I've tried manually installing on a fresh SMF 1.1.4 install with no other mods and it still wont work on the hosted server. I'm just getting into PHP so I'm having problems finding the reason for it.

Please help thanks :)

http://presearing.com/test/
Title: Re: SimplePortal
Post by: [SiNaN] on March 17, 2008, 06:58:15 AM
Try adding the text strings to the utf-8 language files also.
Title: Re: SimplePortal
Post by: jusplay77 on March 17, 2008, 07:44:55 AM
Is it possible to add a recently purchased items block to the simple portal? 

The original mod that shows it in the shop is located here:
http://www.daniel15.com/forum/index.php/topic,1219.0.html

However the creator is not around anymore to my knowledge.  The code is there just the same to look at and modify to include with the SimplePortal though I would assume.
Title: Re: SimplePortal
Post by: Lil Puppy on March 17, 2008, 08:11:25 AM
Quote from: [SiNaN] on March 17, 2008, 06:58:15 AM
Try adding the text strings to the utf-8 language files also.

Thank you very much :)
I added the language file additions to the appropriate utf8 files and copied the SPortal.english.php file as SPortal.english-utf8.php and it works great now.

Suggestions for future versions:
* utf8 support ;)
* Better Avatar display coding. (have it check the avatar max size setting instead of hard coding it)
* Ability to turn on or off each of the items in the blocks on the left side. (like Karma, IP address, etc.)
Title: Re: SimplePortal
Post by: [SiNaN] on March 17, 2008, 09:33:45 AM
Quote from: jusplay77 on March 17, 2008, 07:44:55 AM
Is it possible to add a recently purchased items block to the simple portal? 

The original mod that shows it in the shop is located here:
http://www.daniel15.com/forum/index.php/topic,1219.0.html

However the creator is not around anymore to my knowledge.  The code is there just the same to look at and modify to include with the SimplePortal though I would assume.

I have added it to the mod page as SimplePortal_Shop.

http://custom.simplemachines.org/mods/index.php?mod=1104

Quote from: Lil Puppy on March 17, 2008, 08:11:25 AM
Quote from: [SiNaN] on March 17, 2008, 06:58:15 AM
Try adding the text strings to the utf-8 language files also.

Thank you very much :)
I added the language file additions to the appropriate utf8 files and copied the SPortal.english.php file as SPortal.english-utf8.php and it works great now.

Suggestions for future versions:
* utf8 support ;)
* Better Avatar display coding. (have it check the avatar max size setting instead of hard coding it)
* Ability to turn on or off each of the items in the blocks on the left side. (like Karma, IP address, etc.)

Not at all. But I couldn't understand the avatar issue.
Title: Re: SimplePortal
Post by: Lil Puppy on March 17, 2008, 10:46:51 AM
What I meant is that in your coding for the avatar display in the News section it is set at a static number of pixels (80px maybe?). What I suggested is that it checks to see what you have your maximum avatar size settings at in the $modSettings array and set the width of the <td> to +10px larger so that all avatars will fit in that area instead of just the default size avatars (some of us like to use larger avatars for our members, mine is set to 100x100 for example).

This is what I have it set at in the SPortal.template.php
if($modSettings['nshowavatar'])
// $modSettings['avatar_max_width_external'] a setting to set the width by.
// the code below simply adds 10 to the width setting so the <td> will be large enough for the avatar and have some padding.
$avatar_max_table_width=$modSettings['avatar_max_width_external'] + 10;
echo'
<td width="', $avatar_max_table_width, 'px">', $news['avatar']['image'], '</td>';
echo '
<td>
Title: Re: SimplePortal
Post by: [SiNaN] on March 17, 2008, 10:52:06 AM
Hımmm, I understand. I'll add this also. Thanks. ;)

Soon comes the SMF Gallery Random Picture Block. 8)
Title: Re: SimplePortal
Post by: jusplay77 on March 17, 2008, 08:16:36 PM
QuoteI have added it to the mod page as SimplePortal_Shop.

http://custom.simplemachines.org/mods/index.php?mod=1104

Brilliant!  Thanks for the add!

QuoteSoon comes the SMF Gallery Random Picture Block.

Awesome!  Can't wait!

~~

Also, what about a "Game of the Day" add-on (SMF Arcade) - shown below:

(http://img168.imageshack.us/img168/1984/gameofdayus6.jpg)
Title: Re: SimplePortal
Post by: [SiNaN] on March 18, 2008, 03:04:42 AM
I'll look at the arcade also. :)
Title: Re: SimplePortal
Post by: maxdg on March 18, 2008, 10:55:09 AM
Quote from: Lil Puppy on March 17, 2008, 10:46:51 AM
This is what I have it set at in the SPortal.template.php

Good, but you have the option "show hide avatar in News" disabled, this way.. or better, it doesn't work..
Title: Re: SimplePortal
Post by: denzil69 on March 18, 2008, 02:53:11 PM
this looks like a top mod.

im using 1.1.4 default, would it be possible for one of the blocks to include a numbered calendar thats linked to the main calendar.

block has numbers and month/year in it, when an event or holiday the number shows as a link, when you mouse over it, it gives a brief description for example.

many thanks

EDIT: unable to install this mod;

./Sources/ModSettings.php - test failed
./Themes/default/index.template.php - test failed

Using smf 1.1.4 default theme with a few basic mods installed.

oh well...
Title: Re: SimplePortal
Post by: [SiNaN] on March 19, 2008, 03:27:01 AM
Quote from: maxdg on March 18, 2008, 10:55:09 AM
Good, but you have the option "show hide avatar in News" disabled, this way.. or better, it doesn't work..

This is the correct code:

SPortal.template.php

Find:

if($modSettings['nshowavatar'])
echo'
<td width="80px">', $news['avatar']['image'], '</td>';


Replace:

if($modSettings['nshowavatar'])
{
$avatar_max_table_width=$modSettings['avatar_max_width_external'] + 10;
echo'
<td width="', $avatar_max_table_width, 'px">', $news['avatar']['image'], '</td>';
}


denzil69, calendar is also in my list. Just some time I need. :)

You should install the mod manually I think.
Title: Re: SimplePortal
Post by: jusplay77 on March 19, 2008, 08:59:56 AM
Thanks for the fix.  I am now able to use avatars on the portal news :D
Title: Re: SimplePortal
Post by: thenerd on March 19, 2008, 10:05:27 AM
Hi,

Maybe I missed something but is there a tutorial on how to integrate this portal with a theme other than the default? I don't want to use the default theme but would like to use the SimplePortal if possible.

Thanks
Title: Re: SimplePortal
Post by: denzil69 on March 19, 2008, 06:07:48 PM
If i upload the mod manually (ie not via the smf admin) wont i still have the errors that are showing on the test as failed?
Title: Re: SimplePortal
Post by: JoshieDaMan on March 19, 2008, 08:45:37 PM
1.     Execute Modification     ./Themes/default/languages/ModSettings.english.php     Test successful
2.    Execute Modification    ./Themes/default/languages/ModSettings.turkish.php    Skipping file
3.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
4.    Execute Modification    ./Themes/default/languages/index.turkish.php    Skipping file
5.    Execute Modification    ./index.php    Test successful
6.    Execute Modification    ./Sources/Load.php    Test successful
7.    Execute Modification    ./Sources/ModSettings.php    Test failed
8.    Execute Modification    ./Themes/default/index.template.php    Test failed
9.    Extract File    ./Sources/SPortal.php    
10.    Extract File    ./Themes/default/SPortal.template.php    
11.    Extract File    ./Themes/default/languages/SPortal.english.php    
12.    Extract File    ./Themes/default/languages/SPortal.turkish.php    
13.    Extract File    ./Themes/default/images/arrow.gif    
14.    Extract File    ./Themes/default/images/dot.gif    
15.    Execute Code    database.php

Please help! The theme is phobos. I tried SMF Package Parser.

Quote
Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 50: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xFD 0x20 0x65 0x74 in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <search position="before"><![CDATA[$txt['who_enabled'] = 'Kimler Online\'� et in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 472

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:472 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(472): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(441): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'theme') #2 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'theme') #3 /home/sleepy1/public_html/PackageParser/index.php(782): parseArchive('/tmp/phpRoKUzT', 'install', 'theme') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 472
Title: Re: SimplePortal
Post by: jusplay77 on March 20, 2008, 05:25:58 AM
For some reason in the Top Posters Block, it only shows the #1 top posters avatar (which happens to be me).. Is there a way to show everyones avatar?
Title: Re: SimplePortal
Post by: [SiNaN] on March 20, 2008, 05:59:03 AM
If you want to use the portal with the other themes, you should make the theme changes for the other themes also.

I'll write the manual installation here for users who wants to install manually.

jusplay77, the reason is that it is arranged in that way. I mean it only shows the #1 top poster's avatar. But I'll write the codes for you to show all of them, soon.

Now I started to develop the v1.0. Now working on the custom blocks. Came to the end. :) Update is coming soon...
Title: Re: SimplePortal
Post by: JoshieDaMan on March 20, 2008, 08:59:31 AM
Thanks for offering to write on manual how to replace/add code. That's only what really helps me and help me a lot to understand.

By the way, if you are wondering what theme I am using. It's a custom and the theme would be phobos.
http://custom.simplemachines.org/themes/index.php?lemma=412

Thanks a lot, a lot a lot!
Title: Re: SimplePortal
Post by: denzil69 on March 20, 2008, 10:13:47 AM
I can install manually and transfer files etc, but it worries me that errors shown when installed via admin, will cause problems when i upload them manually?
Title: Re: SimplePortal
Post by: [SiNaN] on March 20, 2008, 10:25:29 AM
Quote from: denzil69 on March 20, 2008, 10:13:47 AM
I can install manually and transfer files etc, but it worries me that errors shown when installed via admin, will cause problems when i upload them manually?

You can be sure that it will not cause any errors if you do not make any mistak during the manual install. Package install gives errors because of that it can not find the exact codes to change just becuase it is not clever enough. :)
Title: Re: SimplePortal
Post by: Geoff Mendicino on March 20, 2008, 07:23:34 PM
Hey, [SiNaN]. My website's forum is here:
http://freezecracker.com/forum/index.php

The actual board news content in the middle is cut off when I remove avatars; I'd like for it to use the entire space.

When I put avatars, the avatar cuts off part of the actual post. Could you fix both/either of these? Thanks a lot man, I love your work.
Title: Re: SimplePortal
Post by: [SiNaN] on March 21, 2008, 02:59:30 AM
Quote from: Geoff Mendicino on March 20, 2008, 07:23:34 PM
Hey, [SiNaN]. My website's forum is here:
http://freezecracker.com/forum/index.php

The actual board news content in the middle is cut off when I remove avatars; I'd like for it to use the entire space.

When I put avatars, the avatar cuts off part of the actual post. Could you fix both/either of these? Thanks a lot man, I love your work.

http://www.simplemachines.org/community/index.php?topic=227599.msg1465719#msg1465719
Title: Re: SimplePortal
Post by: JoshieDaMan on March 21, 2008, 03:36:55 AM
Hey Sinan. Have you wrote the manuals yet?
Title: Re: SimplePortal
Post by: [SiNaN] on March 21, 2008, 03:54:01 AM
Use the package attached below with the mod parser.

http://sleepycode.com/PackageParser/index.php
Title: Re: SimplePortal
Post by: Kender on March 21, 2008, 04:14:48 AM
just posting so i can more easilly track this thread (under... show new replies since last visit)

since i dont want email notificaiton on this one, its the easiest way to track  :)

im planning on using this mod, but once its has a little more features available for it 
Title: Re: SimplePortal
Post by: JoshieDaMan on March 21, 2008, 04:20:33 AM
5.     Execute Modification     ./Sources/ModSettings.php     Test failed
6.    Execute Modification    ./Themes/default/index.template.php    Test failed

Still..

Am I supposed to install it first, or fix it before install?
Title: Re: SimplePortal
Post by: jusplay77 on March 21, 2008, 04:41:57 AM
Quote5.     Execute Modification     ./Sources/ModSettings.php     Test failed
6.    Execute Modification    ./Themes/default/index.template.php    Test failed

Still..

Am I supposed to install it first, or fix it before install?

What I do in the case of a Test-Failed.  I backup all the files being modified, and then make a new folder called "Edits".. and put the 2 files that failed into that folder.  After such, Manually add the code to just those 2 files (ModSettings.php and index.template.php)  - Once it's finished, go to the Package Manager, install the mod and then go to your FTP Client and transfer over the files you manually edited (overwriting). 
Title: Re: SimplePortal
Post by: [SiNaN] on March 21, 2008, 04:49:33 AM
Kender, custom blocks feature is finished. Now working on the article module. After that only a new panel will be needed.

Good idea justplay77.

JoshieDaMan, I gave that package for the mod parser. It works with the mod parser, but the orijinal not. Make the changes manually by using the mod parser.
Title: Re: SimplePortal
Post by: Kender on March 21, 2008, 06:58:48 AM
one thing i would like to see implemented is...

if a section is members only (arcade, chess, profiles, mlist) then its not clickable..
maybe a smalltext saying login to view
Title: Re: SimplePortal
Post by: [SiNaN] on March 21, 2008, 07:35:53 AM
Quote from: Kender on March 21, 2008, 06:58:48 AM
one thing i would like to see implemented is...

if a section is members only (arcade, chess, profiles, mlist) then its not clickable..
maybe a smalltext saying login to view

What is not clickable?
Title: Re: SimplePortal
Post by: Kender on March 21, 2008, 07:49:03 AM
example

i am a guest on your forum, i see that you have arcade block, so i click on "random game"

i get brought to login page saying you must be logged in to do this, i would rather see that i cannot do it before i click the link... smalltext saying.. "you must login to do this" instead of a link to the action
Title: Re: SimplePortal
Post by: BuЯЯЯЯaK on March 21, 2008, 10:32:19 AM
thanks sinan very nice :)

(www.evigibi.com/forum kullandığım temaya göre düzenleyince çok sexy oldu :) )
Title: Re: SimplePortal
Post by: LiamTheDuck on March 21, 2008, 10:53:30 AM
any chance of  upgrading to SMF 2?
Title: Re: SimplePortal
Post by: Hoochie Coochie Man on March 21, 2008, 10:55:58 AM
Quote from: [●ριмρєя12●] on March 21, 2008, 10:53:30 AM
any chance of  upgrading to SMF 2?
I think, Sinan is waiting for a RC version or Final 2.0 :)
Title: Re: SimplePortal
Post by: eline on March 21, 2008, 11:34:35 AM
hi
Could You made a teaser for fron page with photo from attachment ?
I want use something like You have now bout not with avatar but attachment thumb.

Great job ;)
Title: Re: SimplePortal
Post by: Hoochie Coochie Man on March 21, 2008, 11:38:43 AM
There is already a screenshot in first post  :-\
Title: Re: SimplePortal
Post by: eline on March 21, 2008, 11:46:04 AM
Its a post attachment ? or it is a avatar ?
Its loks on forst post like avatar of user who posted ;)
If its a attachment its great ;)
Title: Re: SimplePortal
Post by: [SiNaN] on March 21, 2008, 01:10:35 PM
Quote from: [●ριмρєя12●] on March 21, 2008, 10:53:30 AM
any chance of  upgrading to SMF 2?

*[SiNaN] just whistles.

Quote from: eline on March 21, 2008, 11:46:04 AM
Its a post attachment ? or it is a avatar ?
Its loks on forst post like avatar of user who posted ;)
If its a attachment its great ;)

It sounds a bit challenging, but I'll try.
Title: Re: SimplePortal
Post by: LiamTheDuck on March 21, 2008, 01:20:58 PM
Quote from: [SiNaN] on March 21, 2008, 01:10:35 PM
Quote from: [●ριмρєя12●] on March 21, 2008, 10:53:30 AM
any chance of  upgrading to SMF 2?

*[SiNaN] just whistles.

Quote from: eline on March 21, 2008, 11:46:04 AM
Its a post attachment ? or it is a avatar ?
Its loks on forst post like avatar of user who posted ;)
If its a attachment its great ;)

It sounds a bit challenging, but I'll try.

/me wants you to upgrade or he will get mad
Title: Re: SimplePortal
Post by: Eliana Tamerin on March 21, 2008, 01:27:43 PM
Quote from: [●ριмρєя12●] on March 21, 2008, 01:20:58 PM
Quote from: [SiNaN] on March 21, 2008, 01:10:35 PM
Quote from: [●ριмρєя12●] on March 21, 2008, 10:53:30 AM
any chance of  upgrading to SMF 2?

*[SiNaN] just whistles.

Quote from: eline on March 21, 2008, 11:46:04 AM
Its a post attachment ? or it is a avatar ?
Its loks on forst post like avatar of user who posted ;)
If its a attachment its great ;)

It sounds a bit challenging, but I'll try.

/me wants you to upgrade or he will get mad

Excuse you? [SiNaN] is providing this mod for free, at no cost to you or anyone but himself. If you have a problem with how SimplePortal currently works, feel free to share it here. But you have no right to demand or threaten for any upgrades or improvements on the mod. It is [SiNaN]'s prerogative to upgrade or change the mod in any way. 
Title: Re: SimplePortal
Post by: LiamTheDuck on March 21, 2008, 01:29:10 PM
Quote from: Eliana Tamerin on March 21, 2008, 01:27:43 PM
Quote from: [●ριмρєя12●] on March 21, 2008, 01:20:58 PM
Quote from: [SiNaN] on March 21, 2008, 01:10:35 PM
Quote from: [●ριмρєя12●] on March 21, 2008, 10:53:30 AM
any chance of  upgrading to SMF 2?

*[SiNaN] just whistles.

Quote from: eline on March 21, 2008, 11:46:04 AM
Its a post attachment ? or it is a avatar ?
Its loks on forst post like avatar of user who posted ;)
If its a attachment its great ;)

It sounds a bit challenging, but I'll try.

/me wants you to upgrade or he will get mad

Excuse you? [SiNaN] is providing this mod for free, at no cost to you or anyone but himself. If you have a problem with how SimplePortal currently works, feel free to share it here. But you have no right to demand or threaten for any upgrades or improvements on the mod. It is [SiNaN]'s prerogative to upgrade or change the mod in any way. 

You cant take a joke.....
Title: Re: SimplePortal
Post by: Eliana Tamerin on March 21, 2008, 01:35:57 PM
Yeah, looked like a joke, alright. Do try to give some indication of that, a smiley, a hint, anything.
Title: Re: SimplePortal
Post by: LiamTheDuck on March 21, 2008, 01:37:36 PM
Just face it, it was a joke and how the hell am I forcing him!

seriously, you have to pick up a sense of humor...
Title: Re: SimplePortal
Post by: Sakacoco on March 21, 2008, 03:47:15 PM
Hi,

Thx for your mod, it's very usefull and nice but...

I have a problem, i can't modify it in the admin pannel cf screenshot.

Could you help me plz ?

Edit: By the way, i have translate the mod in french ;) so if you want the translation, just ask me :p

Title: Re: SimplePortal
Post by: Geoff Mendicino on March 21, 2008, 07:36:39 PM
Quote from: Eliana Tamerin on March 21, 2008, 01:35:57 PM
Yeah, looked like a joke, alright. Do try to give some indication of that, a smiley, a hint, anything.
Wow, snide remarks on a mod package thread, now I've seen everything.
Title: Re: SimplePortal
Post by: JoshieDaMan on March 22, 2008, 04:02:38 AM
Quote from: [SiNaN] on March 21, 2008, 04:49:33 AM
Kender, custom blocks feature is finished. Now working on the article module. After that only a new panel will be needed.

Good idea justplay77.

JoshieDaMan, I gave that package for the mod parser. It works with the mod parser, but the orijinal not. Make the changes manually by using the mod parser.

I did do it manually BEFORE I install it so to see if it says successful but it never did. I didn't install the package that you uploaded to the attachment to use on mod parser.
Title: Re: SimplePortal
Post by: [SiNaN] on March 22, 2008, 05:24:18 AM
Do not take so serious, just a joke. Everything okay, no problem and I hope no argue. Maybe I'll do that. But I need time, you know.

Sakacoco, check the language files. There is a change in ModSettings.english.php and in you forum I think that's ModSettings.french.php. I'd be glad if you send me the translation by pm.

JoshieDaMan, what I'm saying is, install the mod manually. I think some code changes made by the other mods cause package manager to not recognize the correct changes.
Title: Re: SimplePortal
Post by: Kender on March 22, 2008, 05:33:29 AM
Quote from: Kender on March 21, 2008, 06:58:48 AM
Quote from: [SiNaN] on March 21, 2008, 07:35:53 AM
Quote from: Kender on March 21, 2008, 06:58:48 AM
one thing i would like to see implemented is...

if a section is members only (arcade, chess, profiles, mlist) then its not clickable..
maybe a smalltext saying login to view

What is not clickable?
example

i am a guest on your forum, i see that you have arcade block, so i click on "random game"

i get brought to login page saying you must be logged in to do this, i would rather see that i cannot do it before i click the link... smalltext saying.. "you must login to do this" instead of a link to the action
bump
Title: Re: SimplePortal
Post by: [SiNaN] on March 22, 2008, 05:39:28 AM
You mean block permissions?
Title: Re: SimplePortal
Post by: Sakacoco on March 22, 2008, 06:12:49 AM
Quote from: [SiNaN] on March 22, 2008, 05:24:18 AM
Sakacoco, check the language files. There is a change in ModSettings.english.php and in you forum I think that's ModSettings.french.php. I'd be glad if you send me the translation by pm.

What i should do with this file :o ? I have already ModSettings.french.php :s

I'll send you the translation in a few minutes ;)
Title: Re: SimplePortal
Post by: [SiNaN] on March 22, 2008, 06:29:56 AM
There is a change made in that file. But only for the english language files. You should make for the french lanuguage files also.
Title: Re: SimplePortal
Post by: Sakacoco on March 22, 2008, 06:32:05 AM
And what is this change ?

Sorry for my noob attitude ;)
Title: Re: SimplePortal
Post by: [SiNaN] on March 22, 2008, 06:38:14 AM
You can see it from the manual install:

http://www.simplemachines.org/community/index.php?topic=227599.msg1476528#msg1476528
Title: Re: SimplePortal
Post by: Kender on March 22, 2008, 06:56:09 AM
Quote from: [SiNaN] on March 22, 2008, 05:39:28 AM
You mean block permissions?
I mean, if a visitor cannot access an action or feature, than do not let them click a link to go there, instead tell them to login to view
Title: Re: SimplePortal
Post by: Sakacoco on March 22, 2008, 07:09:02 AM
Yeah ! It works ! Thx !

But now, another question how can i put a module in the other side ?

Thanks for your usefull help !
Title: Re: SimplePortal
Post by: [SiNaN] on March 22, 2008, 09:00:36 AM
Quote from: Kender on March 22, 2008, 06:56:09 AM
I mean, if a visitor cannot access an action or feature, than do not let them click a link to go there, instead tell them to login to view

Hımmm, okay. I think I've understand.

Quote from: Sakacoco on March 22, 2008, 07:09:02 AM
Yeah ! It works ! Thx !

But now, another question how can i put a module in the other side ?

Thanks for your usefull help !

What do you want to add for example?
Title: Re: SimplePortal
Post by: Sakacoco on March 22, 2008, 10:21:49 AM
For exemple i would like to switch the search module and stats in the other side, is it possible ?
Title: Re: SimplePortal
Post by: [SiNaN] on March 22, 2008, 10:32:59 AM
Yes of course. Just you should edit the SPortal.template.php file.

This is the start of the block:

if($modSettings['showboardstats'])
{
echo '
<!-- Board Stats Block -->
<div class="tborder">
..................


And this is the end:

...................
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-statboard'], '</td>
<td>:</td>
<td>', $totals['boards'], '</td>
</tr>
</table>
</td>
</tr>
</table>
</div>

<br />';
}


Take the block, and paste it where do you like be displayed. :)
Title: Re: SimplePortal
Post by: Sakacoco on March 22, 2008, 01:48:15 PM
Marvelous ! It's super ! Thx a lot !
Title: Re: SimplePortal
Post by: †д∩αỷ ĎάПα on March 22, 2008, 07:30:15 PM
I can't install it, I see a message saying "modification Error". What do I have to modify to install it?

Please tell me the steps.
Title: Re: SimplePortal
Post by: [SiNaN] on March 23, 2008, 05:25:44 AM
Quote from: Sakacoco on March 22, 2008, 01:48:15 PM
Marvelous ! It's super ! Thx a lot !

Not at all. :)

Quote from: ssdt on March 22, 2008, 07:30:15 PM
I can't install it, I see a message saying "modification Error". What do I have to modify to install it?

Please tell me the steps.

Here is how to install manually: http://www.simplemachines.org/community/index.php?topic=227599.msg1476528#msg1476528
Title: Re: SimplePortal
Post by: Apllicmz on March 23, 2008, 08:46:11 AM
Thank you
i translate for potuguese

download  attach

(http://i275.photobucket.com/albums/jj306/plilisilva/Infomation.gif)

DEMO! (http://simpleportal.joomlamz.com)
Title: Re: SimplePortal
Post by: Mr Blah Man on March 25, 2008, 04:01:04 AM
Very Nice, but I'd like to ask... My Link tree is:

The Shadowed Legion Forums  »  Forum  »  Main Category  »  Rules & Announcements
^ Links to Portal ^                 ^Links^ 
                                           to Forum

How do I get rid of the The Shadowed Legion Forums Part?
Title: Re: SimplePortal
Post by: denzil69 on March 25, 2008, 06:49:25 AM
i used the manual install parser, getting more error messages than an install via the admin panel.

QuoteWarning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 50: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xFD 0x20 0x65 0x74 in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <search position="before"><![CDATA[$txt['who_enabled'] = 'Kimler Online\'� et in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 472

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:472 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(472): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(441): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'all') #2 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all') #3 /home/sleepy1/public_html/PackageParser/index.php(784): parseArchive('/tmp/phpu1qPl6', 'install', 'all') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 472

im running 1.1.4
using default set up.

any ideas please?
Title: Re: SimplePortal
Post by: [SiNaN] on March 25, 2008, 09:18:49 AM
Quote from: Mr Blah Man on March 25, 2008, 04:01:04 AM
Very Nice, but I'd like to ask... My Link tree is:

The Shadowed Legion Forums  »  Forum  »  Main Category  »  Rules & Announcements
^ Links to Portal ^                      ^Links^ 
                                                    to Forum

How do I get rid of the The Shadowed Legion Forums Part?

I'll give the codes.

Quote from: denzil69 on March 25, 2008, 06:49:25 AM
i used the manual install parser, getting more error messages than an install via the admin panel.
im running 1.1.4
using default set up.

any ideas please?

Do not use the original package with the mod parser. It includes non-utf8 Turkish characters. Use the package linked below with the mod parser:

http://www.simplemachines.org/community/index.php?action=dlattach;topic=227599.0;attach=52053
Title: Re: SimplePortal
Post by: Mr Blah Man on March 26, 2008, 02:48:51 AM
Quote from: [SiNaN] on March 25, 2008, 09:18:49 AM
Quote from: Mr Blah Man on March 25, 2008, 04:01:04 AM
Very Nice, but I'd like to ask... My Link tree is:

The Shadowed Legion Forums  »  Forum  »  Main Category  »  Rules & Announcements
^ Links to Portal ^                      ^Links^ 
                                                    to Forum

How do I get rid of the The Shadowed Legion Forums Part?

I'll give the codes.

What are they, or where should I look? :O
Title: Re: SimplePortal
Post by: TosTos on March 26, 2008, 05:43:35 AM
It is very nice mod. Are you going to update it to work with smf2.0?
Title: Re: SimplePortal
Post by: [SiNaN] on March 26, 2008, 09:47:58 AM
Quote from: Mr Blah Man on March 26, 2008, 02:48:51 AM
What are they, or where should I look? :O

I don't have the file with me now. It's in the Load.php. But I'll write them, when I'll have time.

Quote from: TosTos on March 26, 2008, 05:43:35 AM
It is very nice mod. Are you going to update it to work with smf2.0?


I even didn't install the 2.0 Beta 3. Now having lack of time. Keep it secret; that's in my plan. :P
Title: Re: SimplePortal
Post by: cumcatano on March 26, 2008, 11:53:52 AM
Hi!

Nice portal man!

I need to place a new block on the right side to show Google AdSense block.

Can you help me, please?


Thks!
Title: Re: SimplePortal
Post by: spoontosser on March 26, 2008, 03:58:40 PM
Great Mod and I got it installed and working fine on my SMF forum at http://steelheadnotebook.net/forum/index.php (http://steelheadnotebook.net/forum/index.php), however I am getting the following  errors on the forum error log.

Quote
Apply Filter: Only show the errors with the same message
8: Undefined index: showtoppoll
File: /home/bdm721/public_html/forum/Themes/default/SPortal.template.php (main sub template - eval?)
Line: 428

Quote
Apply Filter: Only show the errors with the same message
8: Undefined index: showboardnews
File: /home/bdm721/public_html/forum/Themes/default/SPortal.template.php (main sub template - eval?)
Line: 291

Here is the code on those lines:
Line 291    if($modSettings['showboardnews'])
Line 428    if($modSettings['showtoppoll'])

Any ideas what could be causing these errors?

I am using version 1.1.4 and have the following mods installed:

QuoteMod Name     Version     
1.    Users Online Today Mod    1.4.0    [ Uninstall ]
2.    AutoSig    1.2    [ Uninstall ]
3.    Board Viewers Mod    1.1    [ Uninstall ]
4.    MessagePreviewOnHover    1.4    [ Uninstall ]
5.    SMF 1.1.1 Update Package    1.1.1    [ Uninstall ]
6.    URL Popup    1.0    [ Uninstall ]
7.    View Single Post    1.1    [ Uninstall ]
8.    MySpace Field    2.4    [ Uninstall ]
9.    Automatically Remove Inbox Label Mod    1.0    [ Uninstall ]
10.    Profile User Action    1.0    [ Uninstall ]
11.    Who Voted What?    1.1.1    [ Uninstall ]
12.    Line Numbers Mod    1.01    [ Uninstall ]
13.    SMF 1.1.2 Update Package    1.1.2    [ Uninstall ]
14.    Wrap Text Around Image    1.0    [ Uninstall ]
15.    FontandSizeDropdown1.1    1.1    [ Uninstall ]
16.    Streaming 3    4.2.2b    [ Uninstall ]
17.    SMF Gallery Lite    1.8    [ Uninstall ]
18.    Ad Managment    2.3    [ Uninstall ]
19.    Signature Dropdown Choices    1.0    [ Uninstall ]
20.    RSS Feed Icon    1.1    [ Uninstall ]
21.    SMF 1.0.11 / 1.1.3 Update    1.1    [ Uninstall ]
22.    Buy Me A Beer    1.1    [ Uninstall ]
23.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    [ Uninstall ]
24.    Auto Embed Video Clips    1.2    [ Uninstall ]
25.    Spiders Don't Increase Topic Views    1.1    [ Uninstall ]
26.    Sorted Package Manager Listing    0.1    [ Uninstall ]
27.    Electric Guitar Avatars    1.0    [ Uninstall ]
28.    Show all edits in messages    1.0    [ Uninstall ]
29.    Favicon    1.0    [ Uninstall ]
30.    FlashChat Integration    1.0    [ Uninstall ]
31.    Internal Links Use Same Window    1.1    [ Uninstall ]
32.    Ellow yellow christmas edition smiley set    1.1    [ Uninstall ]
33.    Advanced Recent-Posts    1.1    [ Uninstall ]
34.    Admin member list registration date    1.0    [ Uninstall ]
35.    delete inactive users    1.0.3    [ Uninstall ]
36.    Add Sitepreviews    1.31    [ Uninstall ]
37.    Top 10 Posters Today And This Week Stats    1.1
Title: Re: SimplePortal
Post by: denzil69 on March 26, 2008, 06:27:13 PM
okays... we have it installed, running, but generating many errors in the log.

(this may be due to not setting parameters in the various boxes on the settings page?)
are there instructions that i have missed as to what to put in them?

EDIT: some errors,if i sort them one at a time it will be much clearer.

8: Undefined index: aspecificannounce
File: .....\Themes\default\SPortal.template.php (eval?)
Line: 277

"announcement is unchecked"
(line 277:) if($modSettings['aspecificannounce'])
Title: Re: SimplePortal
Post by: TosTos on March 26, 2008, 07:20:34 PM
Quote from: [SiNaN] on March 26, 2008, 09:47:58 AM
Quote from: Mr Blah Man on March 26, 2008, 02:48:51 AM
What are they, or where should I look? :O

I don't have the file with me now. It's in the Load.php. But I'll write them, when I'll have time.

Quote from: TosTos on March 26, 2008, 05:43:35 AM
It is very nice mod. Are you going to update it to work with smf2.0?


I even didn't install the 2.0 Beta 3. Now having lack of time. Keep it secret; that's in my plan. :P
Very Good. I think it might be a strong competitor for tp.
Title: Re: SimplePortal
Post by: spoontosser on March 26, 2008, 10:20:43 PM
After making my earlier post I went back and checked the Show Board News Block and the Show Top Poll Block, saved the settings and viewed the new settings in the portal. I then went back and unchecked them and now the error massages no longer seem to show up. Not sure why, but since they are no longer showing I guess I don't have anything to worry about.
Title: Re: SimplePortal
Post by: [SiNaN] on March 27, 2008, 07:21:18 AM
To the users, who got undefined index erros in the error log; it is because the database query included is not ran. The solution is, just set all the settings in the Portal Settings and then Save them. Then, the database query will be ran by the SMF automatically. After that, you can turn off the setting you want.

TosTos, for now, it can't. This is so so simple for TP. And I'm not good enough to race with Mr. Bloc. :)
Title: Re: SimplePortal
Post by: denzil69 on March 27, 2008, 11:11:15 AM
thankyou, that has cleared all the undefined index errors.
ive checked the error log and it is clear.

now the layout... ;D

everything was fine last night, yet today when i log on, boxes have half borders on them - some have gone very small - and the details inside them is out of sync (eg, the member name has moved from edge of box to right next to post topic.)

ive attached a couple of screen shots to show what i mean.

i like this mod alot, its flexible and can be adapted for other things, ie, calendar, latest offers, news fade etc.
just need to iron out a few things.

thanks for your patience
Title: Re: SimplePortal
Post by: jost on March 27, 2008, 02:16:24 PM
Sinan,

Please, can you help me ?

I was trying to install mannualy SimplePortal Mod, but i'm receiving the following message:

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/webpages/guiacnc/www/forum/Sources/ModSettings.php on line 179

Is there a way to solve this?

Best regards,

Jost Dayan
Title: Re: SimplePortal
Post by: spoontosser on March 27, 2008, 11:11:24 PM
Quoteeverything was fine last night, yet today when i log on, boxes have half borders on them - some have gone very small - and the details inside them is out of sync (eg, the member name has moved from edge of box to right next to post topic.)

I noticed this as well but only on Internet Explorer, On Firefox it looks fine.  Any ideas to fix this on IE ?
Title: Re: SimplePortal
Post by: jusplay77 on March 28, 2008, 12:50:17 PM
Any updates on the other block-add-ons for the portal? :D  Or how to show the avatars of all the top 5 posters (instead of just the #1)
Title: Re: SimplePortal
Post by: heavyccasey on March 28, 2008, 01:11:10 PM
Ooh, looks nice. I think you should be able to specify, when posting a new topic, if you want it it to appear on the front page.
Title: Re: SimplePortal
Post by: Sakacoco on March 28, 2008, 05:57:54 PM
Hi,

Is it possible to make a module where there is the top 5 of people who have the highest karma ?

And if it possible, how ?

Thx ;)
Title: Re: SimplePortal
Post by: [SiNaN] on March 29, 2008, 08:56:40 AM
I'll give an answer for all the questions after 24 hours.
Title: Re: SimplePortal
Post by: Philz123 on March 30, 2008, 10:01:28 PM
I get this Error when trying to install this Portal...

"8.     Execute Modification     ./Themes/default/index.template.php     Test failed"
Title: Re: SimplePortal
Post by: [SiNaN] on March 31, 2008, 03:06:00 AM
denzil69 and spoontosser I've check my test site with Internet Explorer; there is no such an error. Can you check it too? www.bizmuhacirler.com/test . Additionally; did you make any changes in SPortal.template.php file?

jost, you made a mistake in ModSettings.php. Try checking it again. If you can't find, attach it here so that I can correct.

jusplay77, unfortunately there isn't.

heavyccasey, sounds good. I'll keep this in mind for the further versions.

Sakacoco, of course you can. I'll try to do it. If I can have time.

Philz123, SMF package manager couldn't find the code to change because of some other mods I think. I suggest you to copy your index.template.php file. Then change the index.template.php file of you forum with the original one. After that, install the mod. Finally, make the changes manually in the index.template.php file and change it with the one in your forum.

Because of some problems in my life I'll will not be that much online. I'm planning to update the mod after the end of April. I hope It will be ready on around 15th of May.
Title: Re: SimplePortal
Post by: edi67 on March 31, 2008, 07:48:15 AM
let my try it
Title: Re: SimplePortal
Post by: Eliana Tamerin on March 31, 2008, 07:52:45 AM
Quote from: [SiNaN] on March 31, 2008, 03:06:00 AM
Because of some problems in my life I'll will not be that much online. I'm planning to update the mod after the end of April. I hope It will be ready on around 15th of May.

I wish you well, [SiNaN]. Good luck in sorting out your problems. Take care!
Title: Re: SimplePortal
Post by: Poreman on April 01, 2008, 11:02:55 PM
will this work on the 2.0 Beta 3 Public version?
Title: Re: SimplePortal
Post by: [SiNaN] on April 02, 2008, 02:58:55 AM
Quote from: Eliana Tamerin on March 31, 2008, 07:52:45 AM
Quote from: [SiNaN] on March 31, 2008, 03:06:00 AM
Because of some problems in my life I'll will not be that much online. I'm planning to update the mod after the end of April. I hope It will be ready on around 15th of May.

I wish you well, [SiNaN]. Good luck in sorting out your problems. Take care!

Thanks Elina.

Quote from: Poreman on April 01, 2008, 11:02:55 PM
will this work on the 2.0 Beta 3 Public version?

Unfortunately, no.
Title: Re: SimplePortal
Post by: Marcus Forsberg on April 02, 2008, 12:56:38 PM
Hi!

When I try to use the Package parser to manually install this portal (in some reason I can no longer install mods automaticley) I get this error:

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 50: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xFD 0x20 0x65 0x74 in /home/groups/modparser/htdocs/index.php on line 450

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <search position="before"><![CDATA[$txt['who_enabled'] = 'Kimler Online\'� et in /home/groups/modparser/htdocs/index.php on line 450

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/groups/modparser/htdocs/index.php on line 450

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/groups/modparser/htdocs/index.php:450 Stack trace: #0 /home/groups/modparser/htdocs/index.php(450): SimpleXMLElement->__construct('<?xml version="...') #1 /home/groups/modparser/htdocs/index.php(419): parseModificationXML('/tmp/smf_xml/Si...', Object(SimpleXMLElement), 'all') #2 /home/groups/modparser/htdocs/index.php(94): parsePackageInfoXML('/tmp/smf_xml/pa...', 'install', 'all') #3 /home/groups/modparser/htdocs/index.php(735): parseArchive('/tmp/phpZcywqJ', 'install', 'all') #4 {main} thrown in /home/groups/modparser/htdocs/index.php on line 450

Why? :(

EDIT: I found that file you attached erlier, and now it works fine!
Title: Re: SimplePortal
Post by: Marcus Forsberg on April 02, 2008, 01:45:54 PM
I fixed a swedish translation if someone needs:

$txt['mods_cat_sportal'] = 'Portal inst&auml;llnigar';
$txt['sportalsettings'] = 'Portal inst&auml;llnigar';
$txt['lshowdetails'] = '<b>Anv&auml;ndare</b> | Visa anv&auml;ndar detaljer?';
$txt['aspecificannounce'] = '<b>Tillk&auml;nnagiv</b> | Anv&auml;nd annorlunda tillk&auml;nnagivanden?';
$txt['nshowavatar'] = '<b>Nyheter</b> | Visa avatar?';
$txt['tttype'] = '<b>St&ouml;rsta &auml;mne</b> | Sortera typ?';
$txt['tttypeselect'] = 'V&auml;lj';
$txt['aannouncetext'] = '<b>Tillk&auml;nnagiv</b> | Tillk&auml;nnagivnigs text:<div class="smalltext">Annorlunda tillk&auml;nnagivanden b&ouml;r vara markerad.</div>';
$txt['nnewsboard'] = '<b>Forum nyheter</b> | Forum nyheter:';
$txt['nnewscount'] = '<b>Forum nyheter</b> | Antal nyheter att visa:';
$txt['nnewslength'] = '<b>Forum nyheter</b> | L&Auml;ngd p&aring; nyheter:';
$txt['rppostcount'] = '<b>Nyliga inl&auml;gg</b> | Antal inl&auml;gg:';
$txt['rttopiccount'] = '<b>Nyliga &auml;mnen</b> | Antal &auml;mnen:';
$txt['ppollid'] = '<b>St&ouml;rsta omr&ouml;stning</b> | Omr&ouml;stnings id att visa:';
$txt['tppcount'] = '<b>St&ouml;rsta f&ouml;rfattare</b> | Antal f&ouml;rfattare:';
$txt['tbbcount'] = '<b>St&ouml;rsta tavlor</b> | Antal tavlor:';
$txt['tttcount'] = '<b>St&ouml;rsta &auml;mnen</b> |  Antal &auml;mnen:';
$txt['showleft'] = 'Visa v&auml;nstra boxarna:';
$txt['showright'] = 'Visa h&ouml;gra boxarna:';
$txt['leftwidth'] = 'Storlek p&aring; v&auml;nstra boxarna:';
$txt['rightwidth'] = 'Storlek p&aring; h&ouml;gra boxarna:';
$txt['showuser'] = 'Visa anv&auml;ndar boxen:';
$txt['showusersonline'] = 'Visa anv&auml;ndare online boxen:';
$txt['showboardstats'] = 'Visa forum statistik boxen:';
$txt['showlatestmember'] = 'Visa nyaste medlemes boxen:';
$txt['showquicksearch'] = 'Visa snabb s&ouml;knigs boxen:';
$txt['showannouncements'] = 'Visa tillk&auml;nnagivanden boxen:';
$txt['showboardnews'] = 'Visa nyhets boxen:';
$txt['showrecentposts'] = 'Visa nyliga inl&auml;gg boxen:';
$txt['showrecenttopics'] = 'Visa nyliga &auml;mnen boxen:';
$txt['showtoppoll'] = 'Visa st&ouml;rsta omr&ouml;stnings boxen:';
$txt['showtopposters'] = 'Visa st&ouml;rsta f&ouml;rfattare boxen:';
$txt['showtopboards'] = 'Visa st&ouml;rsta tavlor boxen:';
$txt['showtoptopics'] = 'Visa st&ouml;rsta &auml;mnen boxen:';



(SPortal.swedish.php attached)
Title: Re: SimplePortal
Post by: cumcatano on April 02, 2008, 10:07:18 PM
Quote from: cumcatano on March 26, 2008, 11:53:52 AM
Hi!

Nice portal man!

I need to place a new block on the right side to show Google AdSense block.

Can you help me, please?


Thks!

Anyone?
Title: Re: SimplePortal
Post by: [SiNaN] on April 03, 2008, 05:50:40 AM
Just show me the place where you want the block to be appeared.
Title: Re: SimplePortal
Post by: rereduck on April 04, 2008, 08:32:51 AM
Hello, i have juste installed this mod and i have two problems :

- Board news shows : "You cannot specify a board that doesn't allow guests. Please check the board ID before trying again."

-I have errors in my logs :

8: Undefined index: path
File: /mnt/163/sdb/a/7/mysite/Themes/default/SPortal.template.php (eval?)
Line: 107
8: Undefined index: path
File: /mnt/163/sdb/a/7/mysite/Themes/default/languages/ModSettings.english.php (eval?)
Line: 107
8: Undefined index: path
File: /mnt/163/sdb/a/7/mysite/Themes/default/Admin.template.php (eval?)
Line: 107

I try to set all the settings in the Portal Settings and Save them but it not works

tanks for help me and sorry for my bad english :/
Title: Re: SimplePortal
Post by: Nibogo on April 04, 2008, 06:24:12 PM
Quote from: [SiNaN] on April 02, 2008, 02:58:55 AM
Unfortunately, no.

but you can do somethinng to have this portal in smf 2.0 ??
Title: Re: SimplePortal
Post by: Bancherd on April 04, 2008, 06:49:22 PM
I am using this mod with some modifications at my site, worked great!  Thanks.  :D
Title: Re: SimplePortal
Post by: Eliana Tamerin on April 04, 2008, 07:17:39 PM
Quote from: NIBOGO on April 04, 2008, 06:24:12 PM
Quote from: [SiNaN] on April 02, 2008, 02:58:55 AM
Unfortunately, no.

but you can do somethinng to have this portal in smf 2.0 ??

Not at the moment. 2.0 isn't even in RC form, so I wouldn't expect a lot of mods to actually be compliant with it. Not to mention that SiNaN has already said he'll code a 2.0 version when 2.0 comes out as a final release.
Title: Re: SimplePortal
Post by: Islander_IBG on April 05, 2008, 07:58:19 AM
7.     Execute Modification     ./Sources/ModSettings.php     Test failed
8.    Execute Modification    ./Themes/default/index.template.php    Test failed

help guys using 1.1.4

installed mods are

1.      Invite      1.14      
2.    Welcome Topic Mod    1.1    
3.    Users Online Today Mod    1.4.0    
4.    Top 10 Posters Today And This Week Stats    1.1    
5.    PM On Registration    1.0.2
6.    Popup PM Message - Uses The Same Window    1.3    
7.    Karma Description Mod    2.3    
8.    Karma Applaud Only    1.0.1    
9.    Edit_Display_Name_Permission    1.0    
10.    Board Viewers Mod    1.2    
11.    Admin Lock Thread    1.2    
12.    Top Karma On Stats    1.0    
13.    FlashChat Integration    1.0
14.     Redirection Boards      2.01
Title: Re: SimplePortal
Post by: [SiNaN] on April 06, 2008, 12:00:14 PM
Quote from: Eliana Tamerin on April 04, 2008, 07:17:39 PM
Not at the moment. 2.0 isn't even in RC form, so I wouldn't expect a lot of mods to actually be compliant with it. Not to mention that SiNaN has already said he'll code a 2.0 version when 2.0 comes out as a final release.

I think I've found the person to take over my mods when I'll leave. :) Thanks again Elina.

Islander_IBG, try installing the mod manually.

http://www.simplemachines.org/community/index.php?topic=227599.msg1476528#msg1476528
Title: Re: SimplePortal
Post by: Eliana Tamerin on April 06, 2008, 01:23:58 PM
How long are you going to be gone? Or is this for good?
Title: Re: SimplePortal
Post by: [SiNaN] on April 07, 2008, 02:35:39 AM
Quote from: Eliana Tamerin on April 06, 2008, 01:23:58 PM
How long are you going to be gone? Or is this for good?

Me too, do not know it. But be ready. :)
Title: Re: SimplePortal
Post by: robbie93 on April 07, 2008, 06:33:04 PM
hi,  i get this error on instalation

Execute Modification ./index.php Test failed
6. Execute Modification ./Sources/Load.php Test failed
7. Execute Modification ./Sources/ModSettings.php Test successful
8. Execute Modification ./Themes/default/index.template.php Test failed

i have gothic-rose,  also i have installed the mod Gencportal_Final and it will not uninstall,  is this mod only for use with the default theme?
Title: Re: SimplePortal
Post by: [SiNaN] on April 08, 2008, 01:37:12 AM
No, not just with the default theme. You can use with all the themes. Here you can see the demo with different themes.

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

I suggest you to install the mod manually with the link below as the package manager gives error.

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

Title: Re: SimplePortal
Post by: robbie93 on April 08, 2008, 02:30:01 AM
hi,  just tried to install via package parser and this bit of code here

<td valign="middle" align="center" style="white-space: nowrap;">
               ', theme_copyright(), '
            </td>

doesnt show in my index.template.php
Title: Re: SimplePortal
Post by: [SiNaN] on April 08, 2008, 02:48:02 AM
It just adds a copyright. If you don't make the other changes, it will not make anything because doesn't know what is the added copyright. Do not worry, it will work on you theme also unless you make a mistak during the install.
Title: Re: SimplePortal
Post by: robbie93 on April 08, 2008, 03:49:36 AM
nope the manual install didnt work  :(
Title: Re: SimplePortal
Post by: [SiNaN] on April 08, 2008, 04:06:23 AM
Quote from: robbie93 on April 08, 2008, 03:49:36 AM
nope the manual install didnt work  :(

Did you get any errors?
Title: Re: SimplePortal
Post by: robbie93 on April 08, 2008, 04:13:03 AM
no i got no errors
Title: Re: SimplePortal
Post by: [SiNaN] on April 08, 2008, 04:37:10 AM
And what happened?
Title: Re: SimplePortal
Post by: Islander_IBG on April 08, 2008, 06:09:29 AM
Apply Filter: Only show the error messages of this member  xxxx     April 08, 2008, 03:01:44 AM
Apply Filter: Only show the error messages of this IP address    xxxxx   Apply Filter: Only show the error messages of this session c0e9bdc16926e670ff086e79e0ad74ca
Apply Filter: Only show the error messages of this URL http://xxxx/index.php?action=forum
Apply Filter: Only show the errors with the same message
8: Undefined index: boardViewersClickable
File: /home/xxxx/Sources/BoardIndex.php
Line: 351

how to fix this error ?

and how do i add news , polls...etc  to my portal ?

i cant type all the news in tht features & options . so how to add news announcements, polls  ?

THX
Title: Re: SimplePortal
Post by: [SiNaN] on April 08, 2008, 06:55:37 AM
Islander_IBG, the error is not related to this mod.

For adding news, you should enter the id of the board as the news board from the Admin CP >> Features and Settings >> Portal Settings

Also you should define the poll that you want to show from this panel.
Title: Re: SimplePortal
Post by: Islander_IBG on April 08, 2008, 07:21:01 AM
thx mate

but

http://i32.tinypic.com/211nz37.jpg

how to fix this ?

and the "Profile" link points to my profile but i hve installed User Control Panel and i need it to point tht to my User CP

THX for ur help :)
Title: Re: SimplePortal
Post by: [SiNaN] on April 08, 2008, 07:47:12 AM
SPortal.template.php

Find:

<img src="' . $settings['images_url'] . '/arrow.gif" alt="Arrow" /> <a href="'.$scripturl.'?action=profile">

Change the link as the modified one.

For the problem in the picture, try this:

http://www.simplemachines.org/community/index.php?topic=227599.msg1473164#msg1473164
Title: Re: SimplePortal
Post by: Islander_IBG on April 08, 2008, 08:15:36 AM
THX mate all perfect :)

Title: Re: SimplePortal
Post by: elmenio on April 09, 2008, 01:27:28 AM
hi everyone!!
First of all great mod [SiNaN] congrats!!

Well I'm trying to install the mod on the Enterprise theme and I'm having some problems, probably I'm doing something wrong, but I don't know.

When I click on the index button nothing shows up, it seems that the simple portal is not loading, here's a picture

http://www.fileden.com/files/2007/10/6/1488620/forum_index.JPG

And I'm not able to save the changes on ADMIN>Features and Options>Portal Settings

anyone knows why this is happening...

greetings from Mexico

Title: Re: SimplePortal
Post by: Apllicmz on April 09, 2008, 03:45:29 AM
did try to instal manual
Title: Re: SimplePortal
Post by: [SiNaN] on April 09, 2008, 08:19:25 AM
Quote from: elmenio on April 09, 2008, 01:27:28 AM
hi everyone!!
First of all great mod [SiNaN] congrats!!

Well I'm trying to install the mod on the Enterprise theme and I'm having some problems, probably I'm doing something wrong, but I don't know.

When I click on the index button nothing shows up, it seems that the simple portal is not loading, here's a picture

http://www.fileden.com/files/2007/10/6/1488620/forum_index.JPG

And I'm not able to save the changes on ADMIN>Features and Options>Portal Settings

anyone knows why this is happening...

greetings from Mexico



It works with the theme perfectly. You can see it from the link below:

http://www.bizmuhacirler.com/test/index.php?theme=14;

Did you get any errors during the package install?
Title: Re: SimplePortal
Post by: elmenio on April 09, 2008, 11:47:16 AM
Quote from: joomlamz on April 09, 2008, 03:45:29 AM
did try to install manual
Yes, I did, and I tried several times..


[SiNaN]

Yes, it looks awesome on the theme... So, definitely I'm doing something wrong.

I got no errors during the install however I have errors on the forum error log:

8: Undefined index: showright
8: Undefined index: show recenttopics
8: Undefined index: show recentposts
8: Undefined index: show boardnews
8: Undefined index: showannouncements
8: Undefined index: showleft

I'm wondering if I have to do something with the database.php script in the mod.

I'm new on the PHP world, so, please be patient :P

Thanks for your help.

---------------------------------------

I just see that there are no options checked under Portal Settings and I'm unable to save changes. Probably that's why nothing shows up on my index.
I hope this help a little bit more to find what I'm doing wrong.

----------------------------------------
Title: Re: SimplePortal
Post by: [SiNaN] on April 10, 2008, 06:04:08 AM
Can you attach the files need editing here? I'll make the changes for you.
Title: Re: SimplePortal
Post by: elmenio on April 11, 2008, 12:04:04 AM
Quote from: [SiNaN] on April 10, 2008, 06:04:08 AM
Can you attach the files need editing here? I'll make the changes for you.

Thanks man but that won't be necessary, I just fix it!!  :D
I had an error on the Load.php file, I've should checked the files more carefully before posting..

Thank you very much for your time [SiNaN]!!!
Title: Re: SimplePortal
Post by: [SiNaN] on April 11, 2008, 02:04:17 AM
Not at all. Be ready for surprises. :)
Title: Re: SimplePortal
Post by: madman71 on April 11, 2008, 05:22:47 AM
Quote from: eline on March 21, 2008, 11:34:35 AM
hi
Could You made a teaser for fron page with photo from attachment ?
I want use something like You have now bout not with avatar but attachment thumb.

Great job ;)

I, too, would love this feature.  I'd be greatful if you added this feature to your POST April mod update :)

thanks sinan for a wonderful mod
Title: Re: SimplePortal
Post by: [SiNaN] on April 13, 2008, 10:59:46 AM
Please go to the first message for recent news about the mod.

http://www.simplemachines.org/community/index.php?topic=227599.msg1461454#msg1461454
Title: Re: SimplePortal
Post by: brianjw on April 13, 2008, 11:35:43 AM
Will this be compatible with 2.0 beta 3 at all soon?
Title: Re: SimplePortal
Post by: [SiNaN] on April 13, 2008, 11:37:57 AM
I hope so. Surprises will continue. :)
Title: Re: SimplePortal
Post by: madman71 on April 13, 2008, 11:38:40 AM
Quote from: [SiNaN] on April 13, 2008, 10:59:46 AM
Please go to the first message for recent news about the mod.

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

+ SMF Gallery random and latest picture block added.


U are the greatest!!! thanks mate
Title: Re: SimplePortal
Post by: damnitmike on April 13, 2008, 02:01:46 PM
So far, very nice work!

I really like how the ads can be added.....

I also am wondering how long the Announcements can be......can they be long enough that maybe a text box be used, instead of a small line box?

My compliments for this mod!!! Nice, clean, fronpage.
Title: Re: SimplePortal
Post by: [SiNaN] on April 14, 2008, 02:16:01 AM
You can make it larger of course.

../Sources/ModSettings.php

Find:

array('text', 'aannouncetext'),

Replace:

array('large_text', 'aannouncetext'),

Thanks for your comments.
Title: Re: SimplePortal
Post by: footypro on April 14, 2008, 02:44:22 AM
I love this portal, thanks for making it <3. The only problem I'm having is that when I installed it, the dots and arrows on the left hand side are not appearing and instead are replaced with red X's. How can I fix this.
Title: Re: SimplePortal
Post by: [SiNaN] on April 14, 2008, 02:56:34 AM
Quote from: footypro on April 14, 2008, 02:44:22 AM
I love this portal, thanks for making it <3. The only problem I'm having is that when I installed it, the dots and arrows on the left hand side are not appearing and instead are replaced with red X's. How can I fix this.

Copy the arrow.gif and dot.gif files to your theme's images folder also.
Title: Re: SimplePortal
Post by: footypro on April 14, 2008, 03:03:48 AM
Thank you very much :D how do I delete the avatar given at the top of the "Top posters" block?
Title: Re: SimplePortal
Post by: [SiNaN] on April 14, 2008, 03:07:56 AM
../Themes/default/SPortal.template.php

Find and Delete:

if (!empty($memberContext[$top_poster_id]['avatar']['href']))
echo '<table>
<tr>
<td>' . $member['list'] . '-</td>
<td><img src="'.$memberContext[$top_poster_id]['avatar']['href'].'" alt="" width="35" /></td><td>&nbsp;</td>
<td>' . $member['link'] . '<br />' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>
</table>';
else
Title: Re: SimplePortal
Post by: Manu.G on April 16, 2008, 08:34:20 AM
Hi great mod and I love it.

At the moment I work at it at my test forum and I want to ask is it possible to
add the Member Color Link (http://custom.simplemachines.org/mods/index.php?mod=111) to the Portal?
What have I to do?  :-\
Title: Re: SimplePortal
Post by: [SiNaN] on April 16, 2008, 08:40:43 AM
I will create a package for the Member Color Link mod for the portal soon.
Title: Re: SimplePortal
Post by: Manu.G on April 16, 2008, 08:41:59 AM
Thanks a lot, I will wait for the package.  ;)


Hi it's me again.
I have installed the mod to my forum, not test forum, everything works perfect, but
now I get an error message:

Quote8: Undefined variable:  score_poss
File: /is/htdocs/.../.../.../Themes/default/languages/Stats.english.php (eval?)
Line: 719

I checked the Stats.english.php, but there isn't a "Line: 719".
Can you help me please?
Title: Re: SimplePortal
Post by: Manu.G on April 17, 2008, 07:27:11 PM
Sorry for posting again.  :-\

After the install of this great mod I have some questions.  :-\

First question is about the link tree.
Our link tree looks now in this way
QuoteARSENIUM Official Forum > Forum > ARSENIUM > Latest News
ARSENIUM Official Forum = Portal
Forum = Boardindex
ARSENIUM = Category
Latest News = Board

Isn't it possible to make "ARSENIUM Official Forum + Forum" in 1?
Or the Portal is only available in the Links upper the link tree?
In this moment the link tree will look like this
QuoteARSENIUM Official Forum > ARSENIUM > Latest News

When now someone is watching the Boardindex, in "Who is online" you can read
"Unknown Action", is the member in the Portal, than you can read "Is watching the Boardindex of...." is there a way to change it?

Sorry for all the questions I have.  :'(
Title: Re: SimplePortal
Post by: Fat_Man on April 17, 2008, 10:28:31 PM
Quote from: [SiNaN] on March 10, 2008, 11:16:07 PM


http://bizmuhacirler.com/test/index.php?theme=1;language=english;
http://bizmuhacirler.com/test/index.php?theme=5;language=english;
http://bizmuhacirler.com/test/index.php?theme=6;language=english;
http://bizmuhacirler.com/test/index.php?theme=7;language=english;
http://bizmuhacirler.com/test/index.php?theme=9;language=english;
http://bizmuhacirler.com/test/index.php?theme=10;language=english;
http://bizmuhacirler.com/test/index.php?theme=11;language=english;



SiNaN,

None of these links work.
I was looking for forums with this mod applied already.

Thanks
_______
Fat_Man

Title: Re: SimplePortal
Post by: Apllicmz on April 17, 2008, 11:43:06 PM
thank update....

translate portuguese Update V1.1
Title: Re: SimplePortal
Post by: Marcus Forsberg on April 18, 2008, 06:04:05 AM
Quote from: Fat_Man on April 17, 2008, 10:28:31 PM
Quote from: [SiNaN] on March 10, 2008, 11:16:07 PM


http://bizmuhacirler.com/test/index.php?theme=1;language=english;
http://bizmuhacirler.com/test/index.php?theme=5;language=english;
http://bizmuhacirler.com/test/index.php?theme=6;language=english;
http://bizmuhacirler.com/test/index.php?theme=7;language=english;
http://bizmuhacirler.com/test/index.php?theme=9;language=english;
http://bizmuhacirler.com/test/index.php?theme=10;language=english;
http://bizmuhacirler.com/test/index.php?theme=11;language=english;



SiNaN,

None of these links work.
I was looking for forums with this mod applied already.

Thanks
_______
Fat_Man



Does links works fine for me
Title: Re: SimplePortal
Post by: vinod41 on April 18, 2008, 01:48:03 PM
Hi,

nice portal.

unable to install it via package install

getting this error
8.     Execute Modification     ./Themes/default/index.template.php     Test failed

rest of it seems to be fine... BUT BUT i'm using back-n-black theme
and the package installer is pointing to default ?

i tried manual installation as well, but got some errors, like board not displaying

any suggest how to do that manual install with Back-n-Black theme


---edit --
about database queries (while manual install)

DELETE IGNORE FROM {$db_prefix}settings WHERE variable='showtoppoll' LIMIT 1

{$db_prefix}settings <-- is it to be replaced with -->mydb_settings ?

in every query ?


thanks and regards
Title: Re: SimplePortal
Post by: Drover on April 18, 2008, 02:53:58 PM
Hello, I'm just starting to learn about SMF so forgive my ignorance.  Does this portal take on the appearance of the theme of the forum you're using?
Title: Re: SimplePortal
Post by: [SiNaN] on April 19, 2008, 05:40:07 AM
Links are fine.

Manu0372, vinod41; I'll give an answer after I go out from the exam which is will start 1 hour later.

Quote from: Drover on April 18, 2008, 02:53:58 PM
Hello, I'm just starting to learn about SMF so forgive my ignorance.  Does this portal take on the appearance of the theme of the forum you're using?

Yes. It auotmatically adapts to the view of overall forum. You can see the demos here:

http://www.simplemachines.org/community/index.php?topic=227599.msg1511995#msg1511995
Title: Re: SimplePortal
Post by: Nibogo on April 19, 2008, 10:31:54 AM
with simpleportal is possible create my own codes with php????
Title: Re: SimplePortal
Post by: [SiNaN] on April 19, 2008, 11:18:33 AM
Quote from: Manu0372 on April 16, 2008, 08:41:59 AM
Thanks a lot, I will wait for the package.  ;)


Hi it's me again.
I have installed the mod to my forum, not test forum, everything works perfect, but
now I get an error message:

Quote8: Undefined variable:  score_poss
File: /is/htdocs/.../.../.../Themes/default/languages/Stats.english.php (eval?)
Line: 719

I checked the Stats.english.php, but there isn't a "Line: 719".
Can you help me please?


Do you use Arcade Block?

Quote from: Manu0372 on April 17, 2008, 07:27:11 PM
Sorry for posting again.  :-\

After the install of this great mod I have some questions.  :-\

First question is about the link tree.
Our link tree looks now in this way
QuoteARSENIUM Official Forum > Forum > ARSENIUM > Latest News
ARSENIUM Official Forum = Portal
Forum = Boardindex
ARSENIUM = Category
Latest News = Board

Isn't it possible to make "ARSENIUM Official Forum + Forum" in 1?
Or the Portal is only available in the Links upper the link tree?
In this moment the link tree will look like this
QuoteARSENIUM Official Forum > ARSENIUM > Latest News

When now someone is watching the Boardindex, in "Who is online" you can read
"Unknown Action", is the member in the Portal, than you can read "Is watching the Boardindex of...." is there a way to change it?

Sorry for all the questions I have.  :'(

For the linktree question;

../Source/Load.php

Find:

// Set the top level linktree up.
array_unshift($context['linktree'], array(
'url' => &$scripturl,
'name' => &$context['forum_name']
));


Replace:

/* Set the top level linktree up.
array_unshift($context['linktree'], array(
'url' => &$scripturl,
'name' => &$context['forum_name']
));*/


For the Who's Online question;

../Themes/default/languages/Who.english.php

Find:

$txt['who_index'] = 'Viewing the board index of <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';

Replace:

$txt['who_index'] = 'Viewing the portal of <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';
$txt['who_forum'] = 'Viewing the board index of <a href="' . $scripturl . '?action=forum">' . $context['forum_name'] . '</a>.';


Quote from: joomlamz on April 17, 2008, 11:43:06 PM
thank update....

translate portuguese Update V1.1


Thanks JoomlaMz, you are the best. ;)

Quote from: vinod41 on April 18, 2008, 01:48:03 PM
Hi,

nice portal.

unable to install it via package install

getting this error
8.     Execute Modification     ./Themes/default/index.template.php     Test failed

rest of it seems to be fine... BUT BUT i'm using back-n-black theme
and the package installer is pointing to default ?

i tried manual installation as well, but got some errors, like board not displaying

any suggest how to do that manual install with Back-n-Black theme


---edit --
about database queries (while manual install)

DELETE IGNORE FROM {$db_prefix}settings WHERE variable='showtoppoll' LIMIT 1

{$db_prefix}settings <-- is it to be replaced with -->mydb_settings ?

in every query ?


thanks and regards


It does the changes only for the default theme. Do this steps;

-Copy you initial index.template.php file from default theme.
-Change it with an original index.template.php file.
-Install the mod using Package Manager
-Make the changes manually in your default and specific themes' index.template.php file. (I can do them for you if you can not.)
-Upload the files you edited.

For the other question;

You don't have to run that db query. Just set all the settings in the Portal Settings and then Save them. Then, the database query will be ran by the SMF automatically. After that, you can turn off the setting you want.

Quote from: NIBOGO on April 19, 2008, 10:31:54 AM
with simpleportal is possible create my own codes with php????

You mean own blocks?
Title: Re: SimplePortal
Post by: Nibogo on April 19, 2008, 11:44:18 AM
yes i need to create my own block is possible?
Title: Re: SimplePortal
Post by: Drover on April 19, 2008, 12:13:55 PM
Thanks for the response Sinan, but your Demos appear to be down.  I'd love to see it in action...
Title: Re: SimplePortal
Post by: vinod41 on April 19, 2008, 12:41:12 PM
Very Nice..... Thanks its working now.... Just two thing ... Menu and Titles

have a look plz consoleplayers.com

Title on all blocks are missing. I've copied language, at custom theme folder as well.

AND

How do i change the menu to my current menu

here's my current menu structure

// How about the [home] button?
echo '<ul><li', $current_action == 'home' ? ' id="active"' : '', '><a href="', $scripturl, '"><span>'.$txt[103].'</span></a></li>';

// How about the [arcade] button?
echo '<li', $current_action == 'arcade' ? ' id="active"' : '', '><a href="', $scripturl, '?action=arcade"><span>', $txt[arcade] , '</span></a></li>';

// How about the [arcade] button?
echo '<li', $current_action == 'gallery' ? ' id="active"' : '', '><a href="', $scripturl, '?action=gallery"><span>', $txt[smfgallery_menu] , '</span></a></li>';

// How about the [help] button?
echo '<li', $current_action == 'help' ? ' id="active"' : '', '><a href="', $scripturl, '?action=help" ><span>', $txt[119], '</span></a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '<li', $current_action == 'search' ? ' id="active"' : '', '><a href="', $scripturl, '?action=search"><span>', $txt[182] , '</span></a></li>';



oh yes  and i can't see portal settings page in admin as well

i followed here Admin CP >> Features and Options >> Portal Settings


Many thanks
Title: Re: SimplePortal
Post by: Manu.G on April 19, 2008, 03:24:06 PM
@[SiNaN]
Thx a lot for your help!!!  :D
The code for the linktree works perfect, but not the code for the "Who's online".
I changed the code, now I can see "Is showing the portal...." but is a user watching
the Boardindex I still get "Unknown Action"  :'(

I used the Arcade block, cause we have Arcade installed. I switched off the option to
show the Arcade block in the portal.
Title: Re: SimplePortal
Post by: [SiNaN] on April 19, 2008, 04:07:42 PM
Quote from: NIBOGO on April 19, 2008, 11:44:18 AM
yes i need to create my own block is possible?

I can make it for you if would tell me the content.

Quote from: Drover on April 19, 2008, 12:13:55 PM
Thanks for the response Sinan, but your Demos appear to be down.  I'd love to see it in action...

It works fine. Still getting error?

vinod41, do you use utf-8 language?

index.template.php

Find:

// How about the [home] button?
echo '<ul><li', $current_action == 'home' ? ' id="active"' : '', '><a href="', $scripturl, '"><span>'.$txt[103].'</span></a></li>';


Add After:

// The [forum] button?
echo '<ul><li', $current_action == 'forum' ? ' id="active"' : '', '><a href="', $scripturl, '?action=forum"><span>'.$txt['sp-forum'].'</span></a></li>';


Also you should add forum to the action array in this file.

Quote from: Manu0372 on April 19, 2008, 03:24:06 PM
@[SiNaN]
Thx a lot for your help!!!  :D
The code for the linktree works perfect, but not the code for the "Who's online".
I changed the code, now I can see "Is showing the portal...." but is a user watching
the Boardindex I still get "Unknown Action"  :'(

I used the Arcade block, cause we have Arcade installed. I switched off the option to
show the Arcade block in the portal.

Okay. Let's try this.

Who.english.php

Find:

$txt['who_index'] = 'Viewing the board index of <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';

Replace:

$txt['who_index'] = 'Viewing <a href="' . $scripturl . '">Portal</a>.';
$txt['whoall_forum'] = 'Viewing <a href="' . $scripturl . '?action=forum">Forum</a>.';


For the arcade block; what is your SMF Arcade version?
Title: Re: SimplePortal
Post by: Manu.G on April 19, 2008, 06:52:20 PM
My version is Arcade 2.0.12 direct down load here: http://www.smfarcade.info/index.php?action=tpmod;dl=0 (http://www.smfarcade.info/index.php?action=tpmod;dl=0)

I use this code now
$txt['who_index'] = 'Viewing the portal of <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';
$txt['whoall_forum'] = 'Viewing the board index of <a href="' . $scripturl . '?action=forum">' . $context['forum_name'] . '</a>.';


but I changed 'who_forum' to 'whoall_forum' and everything is shown as it should
be. :D
I saw the first code you gave me, showed when a person is in the portal. I used the code you gave me later too and saw everything was working as it should be.
I compared both codes and saw you had add "all" behind "who". I added the it
to the first code too and the code worked. ;)
For me personal the first code looks better in the who is online list. :)

Soon I will send you a German translation of the mood ;)
Title: Re: SimplePortal
Post by: Nibogo on April 19, 2008, 08:52:32 PM
Quote from: [SiNaN] on April 19, 2008, 04:07:42 PM
I can make it for you if would tell me the content.

mmm i think of an option to create blocks with html/javascript/php can be a very nice feature for simpleportal , maybe you can include that feature in the next version.

Thanks for your support ;)
Title: Re: SimplePortal
Post by: [SiNaN] on April 19, 2008, 11:17:16 PM
Manu0372, I'll look at that Arcade issue soon. But need some time. I'm waiting the German Translation, thanks. :)

Quote from: NIBOGO on April 19, 2008, 08:52:32 PM
mmm i think of an option to create blocks with html/javascript/php can be a very nice feature for simpleportal , maybe you can include that feature in the next version.

In version 1.1, you have 2 blocks that you can write php and html codes in them. In the version 2.0, you will be able to add new blocks and change the positions and properties of blocks.
Title: Re: SimplePortal
Post by: vinod41 on April 20, 2008, 01:41:47 AM
Hello Sinan,

yes its charset=UTF-8, forum button is not displaying text as well
Title: Re: SimplePortal
Post by: taogem on April 20, 2008, 02:06:34 AM
HI all........

I am really new at this, but would like to add this portal  (http://custom.simplemachines.org/mods/index.php?mod=1104)to my forum.

Would someone be willing to take a look at my forum (http://gemstone.smfforfree4.com/) and just confirm for me that I can simply download and can use ok?

Also, I do not have a "Tiny Portal" block in my admin right now. Does that show up after I download?

Thank you
Title: Re: SimplePortal
Post by: SA™ on April 20, 2008, 02:30:04 AM
sry i belive you are with smf for free wich is a big no as far as im aware you cant install no packegis with them
Title: Re: SimplePortal
Post by: taogem on April 20, 2008, 02:48:12 AM
Man, I tell ya..., I am about as confused as I can get.

SMF for free tells me that I am using Simple Machine software and simply paying them for the server.

Apparently my updates or add ons are done with Simple Machines.

So from who do I get codes from for a portal with blocks like this?

Thank you  :)
Title: Re: SimplePortal
Post by: [SiNaN] on April 20, 2008, 03:06:39 AM
Quote from: vinod41 on April 20, 2008, 01:41:47 AM
Hello Sinan,

yes its charset=UTF-8, forum button is not displaying text as well

The attached package is for you. It only contains the needed language edits for utf-8 language. Install this, and it should work.

taogem, I do not know anything about the smf for free but here (http://custom.simplemachines.org/mods/index.php?mod=1104) is the package and the codes. If you can install, install it.
Title: Re: SimplePortal
Post by: Eliana Tamerin on April 20, 2008, 03:22:11 AM
You don't. SMF For Free would need to install the mod manually on your forum, and make it compatible with their standards. I highly doubt that's going to happen.
Title: Re: SimplePortal
Post by: vinod41 on April 20, 2008, 05:39:19 AM
hi
still no luck....

however i've alreay copied language codes in ModSettings.english-utf8.php   manually...
though restoring it and after adding your mod getting this on top of page.
when i upload SPortal.english-utf8.php file from the mod u attached.


��<�?�p�h�p� � �/�/� �V�e�r�s�i�o�n�:� �1�.�0� �;� �S�P�o�r�t�a�l� � � � �/�/�U�s�e�r� �B�l�o�c�k� � �$�t�x�t�[�'�s�p�-�u�s�e�r�'�]� �=� �'�U�s�e�r�'�;� � �$�t�x�t�[�'�s�p�-�u�s�e�r�p�o�s�t�'�]� �=� �'�P�o�s�t�s�'�;� � �$�t�x�t�[�'�s�p�-�u�s�e�r�k�a�r�m�a�'�]� �=� �'�K�a�r�m�a�'�;� � �$�t�x�t�[�'�s�p�-�u�s�e�r�i�p�'�]� �=�

Title: Re: SimplePortal
Post by: [SiNaN] on April 20, 2008, 05:43:10 AM
Did you only installed the package I gave?




Sorry. Change the file attached below with ../Themes/default/languages/SPortal.english-utf8.php
Title: Re: SimplePortal
Post by: vinod41 on April 20, 2008, 06:01:45 AM
YUP this file worked ... Now things are looking cooool.

Thanks for support
Title: Re: SimplePortal
Post by: [SiNaN] on April 20, 2008, 06:02:13 AM
Quote from: vinod41 on April 20, 2008, 06:01:45 AM
YUP this file worked ... Now things are looking cooool.

Thanks for support

Not at all. ;)
Title: Re: SimplePortal
Post by: LiamTheDuck on April 20, 2008, 06:22:05 AM
Just waiting patiently for SMF 2 beta 3 release :P

It looks good and [sorry bloc]:
better than TP
Title: Re: SimplePortal
Post by: [SiNaN] on April 20, 2008, 08:21:41 AM
Quote from: [●ριмρєя12●] on April 20, 2008, 06:22:05 AM
Just waiting patiently for SMF 2 beta 3 release :P

It looks good [and sorry bloc]:
better than TP

Thanks [●ριмρєя12●], the best comment I could hear. :D

Not much left. :)
Title: Re: SimplePortal
Post by: Manu.G on April 20, 2008, 09:02:32 AM
@[SiNaN]
I can wait as long as it is for need. ;)
Btw, don't know if it is an error of my forum, but when I click at the board index
at "Mark as read", I end up in the portal and not in the board index.  :-\
Title: Re: SimplePortal
Post by: [SiNaN] on April 20, 2008, 11:56:46 AM
I started upgrading the mod for the SMF 2.0 yesterday and 25 percent of the work is finished.

I finished the modsettings part, I mean the control panel of portal. And built the template file. Now working on the blocks.

Quote from: Manu0372 on April 20, 2008, 09:02:32 AM
@[SiNaN]
I can wait as long as it is for need. ;)
Btw, don't know if it is an error of my forum, but when I click at the board index
at "Mark as read", I end up in the portal and not in the board index.  :-\

No, that is not an error. Just the function returns to the index. Try doing this:

../Sources/Subs-Board.php

Find:

$_SESSION['ID_MSG_LAST_VISIT'] = $modSettings['maxMsgID'];
if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=unread') !== false)
redirectexit('action=unread');

if (isset($_SESSION['topicseen_cache']))
$_SESSION['topicseen_cache'] = array();

redirectexit();


Replace:


$_SESSION['ID_MSG_LAST_VISIT'] = $modSettings['maxMsgID'];
if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=unread') !== false)
redirectexit('action=unread');

if (isset($_SESSION['topicseen_cache']))
$_SESSION['topicseen_cache'] = array();

redirectexit(action=forum);
Title: Re: SimplePortal
Post by: Manu.G on April 20, 2008, 12:56:52 PM
I changed the code and checked it.
I clicked at "Mark as read" and got this error message

QuoteParse error:  syntax error, unexpected '=' in
/is/htdocs/.../.../.../.../Sources/Subs-Boards.php on line 230

Line 228 - 230:
redirectexit(action=forum);
}
    elseif (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'unreadreplies')
Title: Re: SimplePortal
Post by: [SiNaN] on April 20, 2008, 01:50:49 PM
Quote from: Manu0372 on April 20, 2008, 12:56:52 PM
I changed the code and checked it.
I clicked at "Mark as read" and got this error message

QuoteParse error:  syntax error, unexpected '=' in
/is/htdocs/.../.../.../.../Sources/Subs-Boards.php on line 230

Line 228 - 230:
redirectexit(action=forum);
}
    elseif (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'unreadreplies')


Opps. I small mistake. Do this.

../Sources/Subs-Board.php

Find:

$_SESSION['ID_MSG_LAST_VISIT'] = $modSettings['maxMsgID'];
if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=unread') !== false)
redirectexit('action=unread');

if (isset($_SESSION['topicseen_cache']))
$_SESSION['topicseen_cache'] = array();

redirectexit();


Replace:


$_SESSION['ID_MSG_LAST_VISIT'] = $modSettings['maxMsgID'];
if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=unread') !== false)
redirectexit('action=unread');

if (isset($_SESSION['topicseen_cache']))
$_SESSION['topicseen_cache'] = array();

redirectexit('action=forum');
Title: Re: SimplePortal
Post by: Manu.G on April 20, 2008, 03:21:41 PM
Works perfect now!!! (http://forum.arseniums.com/Smileys/default/015-ok.gif)

Thanks for your help! :D
Title: Re: SimplePortal
Post by: Nibogo on April 20, 2008, 06:22:30 PM
[SiNaN] is possible to do something to make the DB changes in manual edit , the problem is of i upload the file for modifications and execute in my site but didnt work , you can do something??

And i think of you can add more blocks to insert php and HTML codes because maybe i and other people can need more of 2 blocks  :)
Title: Re: SimplePortal
Post by: [SiNaN] on April 21, 2008, 02:45:14 AM
Quote from: NIBOGO on April 20, 2008, 06:22:30 PM
[SiNaN] is possible to do something to make the DB changes in manual edit , the problem is of i upload the file for modifications and execute in my site but didnt work , you can do something??

And i think of you can add more blocks to insert php and HTML codes because maybe i and other people can need more of 2 blocks  :)

I do like this; I add the database codes somewhere in the Stats.php. Then I go to the stats page. The code works automatically. And then I delete it. :D

In the SimplePortal v2.0 you will be able create unlimited numbers of block in which you can write php, html and js codes.

Now I am working on SimplePortal v1.1 for SMF 2.0 Beta 3 Public. :)
Title: Re: SimplePortal
Post by: Manu.G on April 21, 2008, 04:12:59 AM
Hi,

in our forum we have a lot of languages added, to show the portal in the language
a member is using, I would have to translate to much.
I'm sometimes very lazy and why should I translate things they are already translate. ;)
I searched in the index.english.php for the words, which are in use in the portal and
changed some text strings.
In our portal the "Top Poll" is called now "Poll", cause we don't have that much polls in our forum.

@[SiNaN]
Feel free to use it. ;)

I have a little advice. When I was working at the settings I had some problems with "Top Poll | Poll id to show:" I was searching for the ID of the poll I want to show in the portal. I searched in the database  O:) after I have found the ID of the poll I was searching for, I added it to the field it should be. But the poll wasn't show in the portal, I got this "Poll id entered is not a valid id."  :'(
Later I found out I have to add the number of the topic the poll is. Maybe it would be better to change the text, could be I'm not the only one who was a bit confused.

And I want to ask, what is to do, to show the avatar of the others in the "Top Poster"?
I tried a lot, but I'm a dumb with php and got all the time error messages, when I changed the codes.  :'(

Our portal: http://forum.arseniums.com
Title: Re: SimplePortal
Post by: cleanfiles on April 21, 2008, 10:04:29 AM
Hello [SiNaN],
I am building a site for a friend and have installed your portal, it looks good and no errors show up but I only have blocks on the left side. I skimmed this thread and didn't see this problem. Also I dont seem to be able to show board news.
Anyways heres some shots of the configuration.

(http://cp72.org/hostit/images/ss39bkfa1mlnztd96mxa_thumb.png) (http://cp72.org/hostit/viewer.php?file=ss39bkfa1mlnztd96mxa.png)
(http://cp72.org/hostit/images/tevxula5mb94i6mvehq_thumb.png) (http://cp72.org/hostit/viewer.php?file=tevxula5mb94i6mvehq.png)

(http://cp72.org/hostit/images/1fjh4zm8704c9a8glj51_thumb.png) (http://cp72.org/hostit/viewer.php?file=1fjh4zm8704c9a8glj51.png)
(http://cp72.org/hostit/images/v2a8i2jbn7ijvnhv0zm_thumb.png) (http://cp72.org/hostit/viewer.php?file=v2a8i2jbn7ijvnhv0zm.png)

(http://cp72.org/hostit/images/u33s4kv1tpomuk4m9mu2_thumb.png) (http://cp72.org/hostit/viewer.php?file=u33s4kv1tpomuk4m9mu2.png)

We are in a temp url till its ready.
URLhttp://nqpipes-drums.cp72.org/forum/index.php

Grateful for any help with this.



Title: Re: SimplePortal
Post by: [SiNaN] on April 21, 2008, 10:40:44 AM
Manu, this is for you:

For Top Poster question;

../Source/SPortal.php

Find:

function sp_topPoster($topNumber = 5)
{
global $db_prefix, $scripturl, $memberContext, $txt, $top_posters, $top_poster_id, $list_no;

if ($topNumber === null)
$topNumber = isset($_GET['limit']) ? (int) $_GET['limit'] : 5;

$list_no=1;

// Find the latest poster.
$request = db_query("
SELECT ID_MEMBER, realName, posts
FROM {$db_prefix}members
ORDER BY posts DESC
LIMIT $topNumber", __FILE__, __LINE__);
$top_posters = array();
while ($row = mysql_fetch_assoc($request))
$top_posters[] = array(
'list' => $list_no++,
'id' => $row['ID_MEMBER'],
'name' => $row['realName'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>',
'posts' => $row['posts']
);
mysql_free_result($request);

$top_poster_id = $top_posters[0]['id'];
loadMemberData($top_poster_id);
loadMemberContext($top_poster_id);

}


Replace:

function sp_topPoster($topNumber = 5)
{
global $db_prefix, $scripturl, $memberContext, $txt, $settings, $modSettings, $top_posters, $top_poster_id, $list_no;

if ($topNumber === null)
$topNumber = isset($_GET['limit']) ? (int) $_GET['limit'] : 5;

$list_no=1;

// Find the latest poster.
$request = db_query("
SELECT m.ID_MEMBER, m.realName, m.posts, m.avatar, a.ID_ATTACH, a.attachmentType, a.filename
FROM ({$db_prefix}members as m)
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = m.ID_MEMBER)
ORDER BY posts DESC
LIMIT $topNumber", __FILE__, __LINE__);
$top_posters = array();
while ($row = mysql_fetch_assoc($request)) {
if (stristr($row['avatar'], 'http://') && !empty($modSettings['avatar_check_size']))
{
$sizes = url_image_size($row['avatar']);

// Does your avatar still fit the maximum size?
if ($modSettings['avatar_action_too_large'] == 'option_refuse' && is_array($sizes) && (($sizes[0] > $modSettings['avatar_max_width_external'] && !empty($modSettings['avatar_max_width_external'])) || ($sizes[1] > $modSettings['avatar_max_height_external'] && !empty($modSettings['avatar_max_height_external']))))
{
// Fix it permanently!
$row['avatar'] = '';
updateMemberData($row['ID_MEMBER'], array('avatar' => '\'\''));
}
}

$top_posters[] = array(
'list' => $list_no++,
'id' => $row['ID_MEMBER'],
'name' => $row['realName'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>',
'posts' => $row['posts'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? '<img src="' . (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
)
);
}
mysql_free_result($request);

}


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

Find:

sp_topPoster($modSettings['tppcount']);
$list_no = $list_no - 1;
foreach ($top_posters as $member)
{
if ($member['list'] == 1)
{
if (!empty($memberContext[$top_poster_id]['avatar']['href']))
echo '<table>
<tr>
<td>' . $member['list'] . '-</td>
<td><img src="'.$memberContext[$top_poster_id]['avatar']['href'].'" alt="" width="35" /></td><td>&nbsp;</td>
<td>' . $member['link'] . '<br />' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>
</table>';
else
echo '<table>
<tr>
<td>' . $member['list'] . '-</td>
<td>' . $member['link'] . '</td>
<td>&nbsp;</td>
<td>' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>
</table>';
}
elseif ($member['list'] == 2)
{
if ($member['list'] == $list_no)
echo '<table>
<tr>
<td>' . $member['list'] . '-</td>
<td>' . $member['link'] . '</td>
<td>&nbsp;</td>
<td>' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>
</table>';
else
echo '<table>
<tr>
<td>' . $member['list'] . '-</td>
<td>' . $member['link'] . '</td>
<td>&nbsp;</td>
<td>' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>';
}
elseif ($member['list'] == $list_no)
echo ' <tr>
<td>' . $member['list'] . '-</td>
<td>' . $member['link'] . '</td>
<td>&nbsp;</td>
<td>' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>
</table>';
else
echo ' <tr>
<td>' . $member['list'] . '-</td>
<td>' . $member['link'] . '</td>
<td>&nbsp;</td>
<td>' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>';
}


Replace:

sp_topPoster($modSettings['tppcount']);
echo '<table>';
foreach ($top_posters as $member)
{
if (!empty($member['avatar']['href']))
echo ' <tr>
<td>' . $member['list'] . '-</td>
<td><img src="' . $member['avatar']['href'] . '" alt="" width="35" /></td><td>&nbsp;</td>
<td>' . $member['link'] . '<br />' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>';
else
echo ' <tr>
<td>' . $member['list'] . '-</td>
<td>&nbsp;</td><td>&nbsp;</td>
<td>' . $member['link'] . '<br />' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>';
}
echo '</table>';



Cleanfiles;

Admin CP >> Features and Settings >> Portal Settings >> Board News | News board:

enter the id of the board that you create.
Title: Re: SimplePortal
Post by: Marcus Forsberg on April 21, 2008, 10:54:40 AM
As all your mods, this is great!

But, sorry, I'll ceep using TP, only becouse of the Downloadsfunction.  :-\
Title: Re: SimplePortal
Post by: cleanfiles on April 21, 2008, 10:58:10 AM
Thanks for the reply.
I don't know what the board id is or where to find it.
Any ideas on why I only have blocks on the left side?
Title: Re: SimplePortal
Post by: [SiNaN] on April 21, 2008, 11:06:09 AM
Quote from: MTF95 on April 21, 2008, 10:54:40 AM
As all your mods, this is great!

But, sorry, I'll ceep using TP, only becouse of the Downloadsfunction.  :-\

You can use the Dowloads mod with this. :D

I also say that TinyPortal is very very detailed mod considered to this. Even we can not compare them. This is just simple. :)

But wait for the v2.0. ;)

Quote from: cleanfiles on April 21, 2008, 10:58:10 AM
Thanks for the reply.
I don't know what the board id is or where to find it.
Any ideas on why I only have blocks on the left side?

Look at the link of board. For example;


http://www.simplemachines.org/community/index.php?board=1.0

Here the board id is 1
Title: Re: SimplePortal
Post by: Marcus Forsberg on April 21, 2008, 11:24:01 AM
Quote from: [SiNaN] on April 21, 2008, 11:06:09 AM


You can use the Dowloads mod with this. :D

I also say that TinyPortal is very very detailed mod considered to this. Even we can not compare them. This is just simple. :)


I know about the download mod, but the problem is that it dosn't show pictures of the file.
My site is for the game TheSims2, and my users may upload there skins, and whit the download mod they don't see what they download, but they do whit TP.

I like your simpel portal better, so if there was any better download mod, I would use it.
But as it is now, there isn't.
If only I knew anything about t´hings like PHP and mysql I would create my own :/

Wouldn't you be able to create something simple?  :P
Title: Re: SimplePortal
Post by: cleanfiles on April 21, 2008, 11:30:05 AM
Thanks m8, that was so simple..Its all working perfect now.
Very happy. :D
Title: Re: SimplePortal
Post by: Drover on April 21, 2008, 12:23:34 PM
Quote from: [SiNaNIn version 1.1, you have 2 blocks that you can write php and html codes in them. In the version 2.0, you will be able to add new blocks and change the positions and properties of blocks.

That's great!  Any ETA on the 2.0 release?  And if I go ahead and install 1.1 now, how difficult would the update be?
Title: Re: SimplePortal
Post by: Drover on April 21, 2008, 02:20:00 PM
I installed and have a few issues...

There's no Features and Options >> Portal Settings showing up for me.

The blocks don't show any titles.

It doesn't seem to be finding any of the portal images or buttons, and isn't finding the right text.  For instance, the 'Board Stats' block looks like

QuoteDot         :     118
Dot       :    186
Dot       :    33
Dot       :    4
Dot       :    5

And the Search button just looks like a green square instead of a button.

Edit:  I just created a brand new forum with a different theme and have the exact same issues as above.  Ideas?
Title: Re: SimplePortal
Post by: Manu.G on April 21, 2008, 03:34:08 PM
@[SiNaN]
The code works perfect, thanks again for your help!!(http://forum.arseniums.com/Smileys/default/015-ok.gif)
Now the portal looks perfect. :D
Title: Re: SimplePortal
Post by: Drover on April 21, 2008, 05:54:56 PM
Quote from: [SiNaN] on March 17, 2008, 06:58:15 AM
Try adding the text strings to the utf-8 language files also.

This is my problem too I think.  What does this mean and how do I do this?
Title: Re: SimplePortal
Post by: Bancherd on April 21, 2008, 06:33:54 PM
This is a very nice mod which totally replaced my own version of a portal.  Thanks for great job!  :D

I have one issue though, is the block showing "Top Topics" still hard-coded to show number of replies?
Title: Re: SimplePortal
Post by: Nibogo on April 21, 2008, 10:47:45 PM
Quote from: MTF95 on April 21, 2008, 10:54:40 AM
As all your mods, this is great!

But, sorry, I'll ceep using TP, only becouse of the Downloadsfunction.  :-\

You can check this mods:

http://custom.simplemachines.org/mods/index.php?mod=992 (http://custom.simplemachines.org/mods/index.php?mod=992)

http://custom.simplemachines.org/mods/index.php?mod=267 (http://custom.simplemachines.org/mods/index.php?mod=267)

and maybe this code can work with the first url for the recent files in a block of simple portal:

global $db_prefix, $scripturl;

$request = db_query("SELECT f.ID_FILE, f.ID_MEMBER, f.date, f.ID_CAT, f.title AS ftitle, f.totaldownloads,
c.title, m.realName, m.ID_MEMBER AS mID_MEMBER
FROM {$db_prefix}down_file AS f, {$db_prefix}down_cat AS c, {$db_prefix}members AS m
WHERE f.ID_CAT = c.ID_CAT
AND f.approved = '1'
AND f.ID_MEMBER = m.ID_MEMBER
ORDER BY f.ID_FILE DESC
LIMIT 5",__FILE__,__LINE__);
while($row = mysql_fetch_assoc($request)) {
echo '<table width="100%" cellpadding="2" cellspacing="0">
<tr>
<td valign="top" class="smalltext"> <a href="',$scripturl,'?action=view;id=',$row['ID_FILE'],'">',$row['ftitle'],'</a></td>
<td valign="top" class="smalltext" align="right">',$row['totaldownloads'],'</td>
</tr>
</table>';
}


This can be the best solution but i think of maybe sinan can do a simple download module but is not necessary.

Excuse me but i have a bad english
Title: Re: SimplePortal
Post by: Marcus Forsberg on April 22, 2008, 12:30:46 AM
Quote from: NIBOGO on April 21, 2008, 10:47:45 PM
You can check this mods:

Does mods is not what I need, couse they don't show pictures of the file to download.
Title: Re: SimplePortal
Post by: larrysweb on April 22, 2008, 01:36:12 AM
When I try to apply SimplePortal, I get the following:

1.     Execute Modification     ./Themes/default/languages/ModSettings.english.php     Test successful
2.    Execute Modification    ./Themes/default/languages/ModSettings.turkish.php    Skipping file
3.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
4.    Execute Modification    ./Themes/default/languages/index.turkish.php    Skipping file
5.    Execute Modification    ./index.php    Test successful
6.    Execute Modification    ./Sources/Load.php    Test successful
7.    Execute Modification    ./Sources/ModSettings.php    Test successful
8.    Execute Modification    ./Themes/default/index.template.php    Test failed  <<<-------------
9.    Extract File    ./Sources/SPortal.php    
10.    Extract File    ./Themes/default/SPortal.template.php    
11.    Extract File    ./Themes/default/languages/SPortal.english.php    
12.    Extract File    ./Themes/default/languages/SPortal.turkish.php    
13.    Extract File    ./Themes/default/images/arrow.gif    
14.    Extract File    ./Themes/default/images/dot.gif    
15.    Execute Code    database.php

Is it safe to install or do I need to do something special? I'm using the SMF Default Theme - Core.

www.pelicanbaycity.com/forums (http://www.pelicanbaycity.com/forums)

Thank you in advance!

Title: Re: SimplePortal
Post by: [SiNaN] on April 22, 2008, 02:32:08 AM
MTF95, I don't think I will code a downloads module. But I can create a built-in block for random or latest downloads working with a mod. Also I can modify the mods you say if the author doesn't likely to do it. ;)

cleanfiles, just curious; what's "m8"?

Drover, like the the team does; You will be able to download it when it would be ready. :P I can not say an exact time. But I think I have month for coding it. For the update process; as it would be a very very deep change, it would be better uninstall the old one and install the new version I guess. And for the problem you are having; I guess you are using utf-8 encoding. I attached the file that you should use. Just install this package after you install the SimplePortal v1.1.

Manu0372, not at all Manu. And I suggest you making the blue theme as default for your forum.

Bancherd, did you change it from the Admin CP to show as views?

Thanks, NIBOGO. Codes look good.

larrysweb, do this:

-Copy you initial index.template.php file from default theme.
-Change it with an original index.template.php file.
-Install the mod using Package Manager
-Make the changes manually in your default and specific themes' index.template.php file. (I can do them for you if you can not.)
-Upload the files you edited.
Title: Re: SimplePortal
Post by: Bancherd on April 22, 2008, 03:28:32 AM
Quote from: [SiNaN] on April 22, 2008, 02:32:08 AM

Bancherd, did you change it from the Admin CP to show as views?



Yes, the heading toggled between Views and Replies as I toggled my choice in admin CP.  The topics shown also changed accordingly; however, the numbers displayed are always the number of replies...$topic['num_replies'].

Thanks for checking into this.  I have attached portion of the code below.


      echo '

      <table class="ssi_table">

         <tr>

            <th align="left">', $txt['sp-ttopicname'], '</th>

            <th align="left">', $modSettings['tttype'] ? $txt[301] : $txt[110], '</th>

         </tr>';

      foreach ($topics as $topic)

      echo '

         <tr>

            <td align="left">

               ', $topic['link'], '

            </td>

            <td align="right">', $topic['num_replies'], '</td>

         </tr>';
Title: Re: SimplePortal
Post by: cleanfiles on April 22, 2008, 03:46:53 AM
Quotejust curious; what's "m8"?

I'm from Australia, "m8" is short for "Mate" which is slang for like "friend" or "Pal".
Title: Re: SimplePortal
Post by: babylon on April 22, 2008, 07:37:24 AM
hello, im helping a friend who's phpbb3 i converted to smf 1.1.4.
The only mods installed are:

Display Signatures Only Once Per Page
Header Rotator    1.1.0
Pretty URLs

and now they want simpleportal.

my question is....can it be used with these mods installed ?
And whats gonna be the "index" page ?

i mean...is it gonna be mysite.com/portal.php ?
Any info you can give would be great.
Title: Re: SimplePortal
Post by: [SiNaN] on April 22, 2008, 07:40:25 AM
Bacherd, I'll look at that bug.

cleanfiles, okay, I understand. :)

babylon, the portal page will be yoursite.com/index.php and the forum page yoursite.com/index.php?action=forum .

You can see the demo here

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

Title: Re: SimplePortal
Post by: babylon on April 22, 2008, 07:43:35 AM
ok i see...
But will it effect any urls that are already in google ?
Title: Re: SimplePortal
Post by: Marcus Forsberg on April 22, 2008, 07:49:08 AM
Quote from: [SiNaN] on April 22, 2008, 02:32:08 AM
MTF95, I don't think I will code a downloads module. But I can create a built-in block for random or latest downloads working with a mod. Also I can modify the mods you say if the author doesn't likely to do it. ;)

I didn't ment you to create a downloads module, but a downloads mod, outside the portal.
Title: Re: SimplePortal
Post by: Marcus Forsberg on April 22, 2008, 07:53:01 AM
Quote from: [SiNaN] on April 22, 2008, 07:40:25 AM
http://www.simplemachines.org/community/index.php?topic=227599.msg1512194#msg1512194



lol, that the 1st time someone links to my post ;D
Title: Re: SimplePortal
Post by: [SiNaN] on April 22, 2008, 08:12:24 AM
Quote from: babylon on April 22, 2008, 07:43:35 AM
ok i see...
But will it effect any urls that are already in google ?

No, it will not. Because as you see just the boardindex url is being changed. But the board, topic and message urls are the same. See:

http://bizmuhacirler.com/test/index.php/board,1.0.html
http://bizmuhacirler.com/test/index.php/topic,4.0.html

Quote from: MTF95 on April 22, 2008, 07:49:08 AM
I didn't ment you to create a downloads module, but a downloads mod, outside the portal.

Hımmm, I don't think I would. Because there are many alternatives. :)
Title: Re: SimplePortal
Post by: Marcus Forsberg on April 22, 2008, 08:24:55 AM
Quote from: [SiNaN] on April 22, 2008, 08:12:24 AM

Hımmm, I don't think I would. Because there are many alternatives. :)

okey
Title: Re: SimplePortal
Post by: Drover on April 22, 2008, 09:39:32 AM
Quote from: [SiNaNDrover, ...And for the problem you are having; I guess you are using utf-8 encoding. I attached the file that you should use. Just install this package after you install the SimplePortal v1.1.

That worked great for my test forum which had a fresh install of SMF, and no mods except SP. 

For my other it fixed the issues on the portsal page and there is now a 'Portal Settings' link under 'Setting & Options'.  But when I click it, I'm just taken to the 'Basic Features' page.  Any ideas why it would do this or how to fix?

By the way, I really like this portal.  Thanks for all your work and taking the time to help.
Title: Re: SimplePortal
Post by: Felic on April 22, 2008, 12:17:16 PM
Awesome work, love this mod! 8)

Only have one barring problem, it is for use on a forum that requires membership to post to & view the main boards, so the Board News not allowing boards that don't allow guests makes one of the key features moot. How do I remove that requirement?

Other issue is it is not compatible with UserCP, installing one or the other first gives this error:

Execute Modification     ./Sources/ModSettings.php     Test failed

I can prolly install it manually, but thought I'd let you know so something might be done to avoid this conflict.

Also, I get these ugly red icons instead of the light grey ones you have on the preview image. Again I can prolly fix this, just a notification.

And just want to make sure recent posts reflects board permissions. Please confirm.
Title: Re: SimplePortal
Post by: LiamTheDuck on April 22, 2008, 12:25:54 PM
Cant wait for the smf 2 release of this :D

More people would use SP as TP havent upgraded yet :o
Title: Re: SimplePortal
Post by: RustyBarnacle on April 22, 2008, 03:06:02 PM
While I havent been active over at TPs board for a while I did catch that they were going to wait for SMF v2 to get out of beta before they released something for it which makes sense considering how much functionality they would have to test over and over.
Title: Re: SimplePortal
Post by: razors edge on April 22, 2008, 10:01:00 PM
Wondering if I can get a write up on the edits that need to be made for other themes? I have a couple mods installed like flash chat and different themes. I would like to use this portal system but want a different theme.

Title: Re: SimplePortal
Post by: madman71 on April 23, 2008, 12:45:49 AM
Sinan or anyone for that matter,

I get the dreaded ERROR IN PACKAGE INSTALLATION.  It's because of my Theme.  My question is, can i go ahead and just continue installing it and manually edit the following files that fail?

5.     Execute Modification     ./Sources/ModSettings.php     Test failed
6.    Execute Modification    ./Themes/default/index.template.php       Test failed

Is this safe to do this with this mod?

thanks
Title: Re: SimplePortal
Post by: razors edge on April 23, 2008, 09:46:26 PM
I am having the same problems. I am curious if I make the edits as you described if I can use the themes I want.

Title: Re: SimplePortal
Post by: madman71 on April 23, 2008, 11:13:19 PM
I went ahead and took a chance.  It didnt break anything but things were missing(i.e the forum tab).  I was able to undo everything by uninstalling the mod.  I did attempt to edit the 2 files but i did something wrong (I was in a hurry) I'll attempt this again later.
Title: Re: SimplePortal
Post by: Drover on April 24, 2008, 09:14:22 AM
FWIW, I've installed this on two forums.  The first was a brand new install and went fine.  The second was an existing forum with some mods already installed and I still haven't got SP working right.  It doesn't let me into my portal settings. 

When it's working, this is a really great mod, and I really hope I can get it working right on my other forum.

:'(
Title: Re: SimplePortal
Post by: iceman~ on April 24, 2008, 11:26:35 AM
Quote from: [●ριмρєя12●] on April 22, 2008, 12:25:54 PM
Cant wait for the smf 2 release of this :D

More people would use SP as TP havent upgraded yet :o

Ditto ....
Any news on this mod working with SMF2
Title: Re: SimplePortal
Post by: Manu.G on April 24, 2008, 04:39:51 PM
Hi it's me again.  :'(

Our second Admin informed me today about an error in the forum.
She checked the "Recent Posts" and wanted to use the link there to go to the
board with the latest postings. She wasn't ending in the board, she ended up in the portal after she tried to use the link in there:
http://forum.arseniums.com/index.php?action=recent

I think it has to do with a code in the Recent.php. I tried to fix it alone, but I wasn't able, cause I don't know which code I have to change. I think I will never learn php.  :'( :'(

@[SiNaN]
Can you help me please again?  :)
Title: Re: SimplePortal
Post by: scubaru on April 25, 2008, 01:10:06 AM
Quote from: Manu0372 on April 16, 2008, 08:41:59 AM
Thanks a lot, I will wait for the package.  ;)


Hi it's me again.
I have installed the mod to my forum, not test forum, everything works perfect, but
now I get an error message:

Quote8: Undefined variable:  score_poss
File: /is/htdocs/.../.../.../Themes/default/languages/Stats.english.php (eval?)
Line: 719

I checked the Stats.english.php, but there isn't a "Line: 719".
Can you help me please?


Have you managed to make any progress on this Stats.english.php issue.  I am getting the same trouble when I activate the Arcade Module in the portal.

I love this Portal and I am very grateful for all your hard work.

Title: Re: SimplePortal
Post by: [SiNaN] on April 25, 2008, 03:09:53 AM
Drover, can you attach your ModSettings.php file so that I can check the issue?

Felic, for the first question;

../Sources/SPortal.php

Find and Delete:

// Make sure guests can see this board.
$request = db_query("
SELECT ID_BOARD
FROM {$db_prefix}boards
WHERE " . ($board === null ? '' : "ID_BOARD = $board
AND ") . "FIND_IN_SET(-1, memberGroups)
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
{
die($txt['smf_news_error2']);
}
list ($board) = mysql_fetch_row($request);
mysql_free_result($request);



For the second; I don't there is something wrong with the installer. Maybe UserCP mod makes something unusual. But I'll check it.

For the third; I thought these were better. :D I guess you are using a black theme. But I'll change all of them in the next version.

For the last; yes, it doesn't show the posts that the viewer doesn't have permission to see.

[●ριмρєя12●], I hope so. I finished the block functions also. But I'm thinking of adding some new blocks. I hope it will be ready in a week. This version would be like a 2.0 Beta 3 Public version of SimplePortal v1.1 but also some changes made for the further versions.

RustyBarnacle, that sounds good. That means were are going to have a really professional portal for 2.0.

razors edge, you can see them from the mod parser in the mod page. The changes made in the files ending with .template.php.

madman71, are you using a different theme?

iceman~, read the answer for [●ριмρєя12●].

Manu0372, everthing seems okay in the Recent Posts block. Can you show me the problem with some screenshots?

scubaru, now, I'm checking it. Soon I'll give an answer.

And lastly for all of you; apologizes for the delay but I'm a poor university student who doesn't even has his own computer and fighting with the exams these days.

//Edit:

For the Arcade Block error;

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

Find:

foreach ($best_players as $players)

Add before:

$score_poss = 0;
Title: Re: SimplePortal
Post by: Manu.G on April 25, 2008, 03:42:07 AM
Good morning,

I think I wrote it wrong, it's not the link to the board, it's the link to the category.  ::)

At the photo you can see the category "Arsenium" marked, when you try to use the
link to the category, you end up in the portal.
This is the link tree you get in the posting
ARSENIUM / Votings / Re: Vote for Arsenium!!! (17)
As link to the category "Arsenium" you get this link: http://forum.arseniums.com/index.php#2
Title: Re: SimplePortal
Post by: [SiNaN] on April 25, 2008, 04:28:03 AM
Hımmm, that could be said as a real detail. :)

That actually is not a bug, as TP has the same problem also. :P

This is the solution;

../Sources/Recent.php

Find:

'href' => $scripturl . '#' . $row['ID_CAT'],
'link' => '<a href="' . $scripturl . '#' . $row['ID_CAT'] . '">' . $row['cname'] . '</a>'


Replace:

'href' => $scripturl . '?action=forum#' . $row['ID_CAT'],
'link' => '<a href="' . $scripturl . '?action=forum#' . $row['ID_CAT'] . '">' . $row['cname'] . '</a>'
Title: Re: SimplePortal
Post by: scubaru on April 25, 2008, 10:21:41 AM
Quote from: [SiNaN] on April 25, 2008, 03:09:53 AM

For the Arcade Block error;

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

Find:

foreach ($best_players as $players)

Add before:

$score_poss = 0;

Thanks so very much that worked perfectly.
Title: Re: SimplePortal
Post by: Manu.G on April 25, 2008, 05:16:23 PM
@[SiNaN]

Both codes working perfect. Thanks for your help!

Be sure I will let you know when I or my 2nd Admin will find again an error.  ;D
Title: Re: SimplePortal
Post by: scubaru on April 25, 2008, 09:19:28 PM
Quote from: scubaru on April 25, 2008, 10:21:41 AM
Quote from: [SiNaN] on April 25, 2008, 03:09:53 AM

For the Arcade Block error;

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

Find:

foreach ($best_players as $players)

Add before:

$score_poss = 0;

Thanks so very much that worked perfectly.

Sorry for the trouble but I have noticed that in the arcade block it only shows 1 person in The Top Players
it shows the number of wins for that player but it isn't the top Player at all that it shows.

Hope this is an easy fix. 
thanks in advance,
Scubaru
Title: Re: SimplePortal
Post by: [SiNaN] on April 26, 2008, 08:35:04 AM
Quote from: Drover on April 25, 2008, 09:26:14 AM
Here it is.  I wasn't sure if you needed the regular one or the utf-8 one.

Thanks for taking a look.

Not the languages files, I need the source file. ../Sources/ModSettings.php file.

Quote from: Manu0372 on April 25, 2008, 05:16:23 PM
@[SiNaN]

Both codes working perfect. Thanks for your help!

Be sure I will let you know when I or my 2nd Admin will find again an error.  ;D

Every time. ;)

scubaru, can you increase the number of players to be shown in block from the Portal Settings? And is there anything in the error logs?
Title: Re: SimplePortal
Post by: Manu.G on April 26, 2008, 12:13:06 PM
Maybe I can answer for scubaru, cause I have the same problem.
If you want you can take a look at our arcade block.
URL: http://forum.arseniums.com (Our arcade block is named "Games"  8) )

There aren't any error logs.

Another problem was coming up after I activated the Gallery block.
The portal was loading and loading, I couldn't enter the portal. Some minutes
later I could enter the portal and I could see an error message in the Gallery
block. I forgot to copy the error message, cause I went back to the portal settings
and switched off the Gallery block. Later this day I will activate the Gallery block
again to see what will happen than.  :-\
Title: Re: SimplePortal
Post by: scubaru on April 26, 2008, 12:35:52 PM
Quote from: Manu0372 on April 26, 2008, 12:13:06 PM
Maybe I can answer for scubaru, cause I have the same problem.
If you want you can take a look at our arcade block.
URL: http://forum.arseniums.com (Our arcade block is named "Games"  8) )

There aren't any error logs.

Another problem was coming up after I activated the Gallery block.
The portal was loading and loading, I couldn't enter the portal. Some minutes
later I could enter the portal and I could see an error message in the Gallery
block. I forgot to copy the error message, cause I went back to the portal settings
and switched off the Gallery block. Later this day I will activate the Gallery block
again to see what will happen than.  :-\

I Would like to add that yes I have the number of people to display in the block set at 5.  Tried 10 with no difference.
Also there re no errors present in the log.

Manu0372 I noticed on your site that you get multiple people listed in the block but all have the number 1 listed in front of them.  I on the other hand am only seeing 1 person listed.
check out for your self if you like

URL: http://www.scubaru.selfip.com

thanks again

Title: Re: SimplePortal
Post by: Manu.G on April 26, 2008, 12:45:24 PM
Quote from: scubaru on April 26, 2008, 12:35:52 PM
Quote from: Manu0372 on April 26, 2008, 12:13:06 PM
Maybe I can answer for scubaru, cause I have the same problem.
If you want you can take a look at our arcade block.
URL: http://forum.arseniums.com (http://forum.arseniums.com) (Our arcade block is named "Games"  8) )

There aren't any error logs.

Another problem was coming up after I activated the Gallery block.
The portal was loading and loading, I couldn't enter the portal. Some minutes
later I could enter the portal and I could see an error message in the Gallery
block. I forgot to copy the error message, cause I went back to the portal settings
and switched off the Gallery block. Later this day I will activate the Gallery block
again to see what will happen than.  :-\

I Would like to add that yes I have the number of people to display in the block set at 5.  Tried 10 with no difference.
Also there re no errors present in the log.

Manu0372 I noticed on your site that you get multiple people listed in the block but all have the number 1 listed in front of them.  I on the other hand am only seeing 1 person listed.
check out for your self if you like

URL: http://www.scubaru.selfip.com (http://www.scubaru.selfip.com)

thanks again

Before I changed the code the numbers was counting correct, but I got a lot of
error messages in the log. The errors are gone, but the counting isn't correct,
but with that I can handle perfect.

How many high scores are in your arcade? How many members in your forum
have played a game? Maybe you was the only one till now who has played a game?  :)
Title: Re: SimplePortal
Post by: scubaru on April 26, 2008, 12:51:45 PM
Quote from: Manu0372 on April 26, 2008, 12:45:24 PM
Quote from: scubaru on April 26, 2008, 12:35:52 PM
Quote from: Manu0372 on April 26, 2008, 12:13:06 PM
Maybe I can answer for scubaru, cause I have the same problem.
If you want you can take a look at our arcade block.
URL: http://forum.arseniums.com (http://forum.arseniums.com) (Our arcade block is named "Games"  8) )

There aren't any error logs.

Another problem was coming up after I activated the Gallery block.
The portal was loading and loading, I couldn't enter the portal. Some minutes
later I could enter the portal and I could see an error message in the Gallery
block. I forgot to copy the error message, cause I went back to the portal settings
and switched off the Gallery block. Later this day I will activate the Gallery block
again to see what will happen than.  :-\

I Would like to add that yes I have the number of people to display in the block set at 5.  Tried 10 with no difference.
Also there re no errors present in the log.

Manu0372 I noticed on your site that you get multiple people listed in the block but all have the number 1 listed in front of them.  I on the other hand am only seeing 1 person listed.
check out for your self if you like

URL: http://www.scubaru.selfip.com (http://www.scubaru.selfip.com)

thanks again

Before I changed the code the numbers was counting correct, but I got a lot of
error messages in the log. The errors are gone, but the counting isn't correct,
but with that I can handle perfect.

How many high scores are in your arcade? How many members in your forum
have played a game? Maybe you was the only one till now who has played a game?  :)

that was why I provided the link ;)
3 players so far and about 50+ games with high scores in them
the forum itself is quite new and only has 7 members
I have the most wins on the board.  The person displayed on the Arcade Block actually has the fewest wins of the 3 players currently

Title: Re: SimplePortal
Post by: scubaru on April 26, 2008, 01:09:00 PM
OK it's official, I am a twit...

Figured out it was my fault.

I added the line of code After the find code not before it. ???

Works perfectly now as it should have with such great advice sorry for the troubles.

Humbly Yours, Scubaru


Title: Re: SimplePortal
Post by: Manu.G on April 26, 2008, 01:33:46 PM
Quote from: scubaru on April 26, 2008, 01:09:00 PM
OK it's official, I am a twit...

Figured out it was my fault.

I added the line of code After the find code not before it. ???

Works perfectly now as it should have with such great advice sorry for the troubles.

Humbly Yours, Scubaru

=)) The same was with my code =))
Thanks for the hint. :D
Title: Re: SimplePortal
Post by: scubaru on April 26, 2008, 01:39:54 PM
Glad my mistake could help someone else. :D

So all is well with the Arcade block now!!!

Thanks again.
Scubaru
Title: Re: SimplePortal
Post by: [SiNaN] on April 27, 2008, 04:22:34 AM
I love users who find the problem themselves. :D
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on April 27, 2008, 08:06:35 AM
Hi SiNaN,

Thank you for your Excellent and Simple Mod.

I got two errors while installing, Source/modsettings and themedir/index template.

I have Manually installed.

Great , its showing up @ http://forum.itacumens.com

But when i tried to change the announcement and tick some option and save it thru admin panel .

But i do find its not saving everytime and automatically redirects to basic feature link.

Could you point out what was the exact error would be Mr.SiNaN

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: [SiNaN] on April 27, 2008, 08:17:45 AM
Can you attach your ../Sources/ModSettings.php file?
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on April 27, 2008, 08:38:42 AM
Thanks for your instant Responce,
pls check the code ../Sources/Modsettings.php

<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* This file is here to make it easier for installed mods to have settings
and options.  It uses the following functions:

void ModifyFeatureSettings()
// !!!

void ModifyFeatureSettings2()
// !!!

void ModifyBasicSettings()
// !!!

void ModifyLayoutSettings()
// !!!

void ModifyKarmaSettings()
// !!!

Adding new settings to the $modSettings array:
---------------------------------------------------------------------------
// !!!
*/

/* Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
array('check', 'nameInModSettingsAndSQL'),

   And for a text box:
array('text', 'nameInModSettingsAndSQL')
   (NOTE: You have to add an entry for this at the bottom!)

   In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
   and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

Here's a quick explanation of how to add a new item:

 * A text input box.  For textual values.
ie. array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For numerical values.
ie. array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For floating point values.
ie. array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A large text input box. Used for textual values spanning multiple lines.
ie. array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A check box.  Either one or zero. (boolean)
ie. array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
'OptionalReferenceToHelpAdmin'),

 * A selection box.  Used for the selection of something from a list.
ie. array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

 * A password input box. Used for passwords, no less!
ie. array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

For each option:
type (see above), variable name, size/possible values, description, helptext.
OR make type 'rule' for an empty string for a horizontal rule.
OR make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
global $context$txt$scripturl$modSettings$sourcedir;

// You need to be an admin to edit settings!
isAllowedTo('admin_forum');

// All the admin bar, to make it right.
adminIndex('edit_mods_settings');
loadLanguage('Help');
loadLanguage('HidePost');
loadLanguage('ModSettings');

// Will need the utility functions from here.
require_once($sourcedir '/ManageServer.php');

$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';

$subActions = array(
'rog' => 'rantonguestsSettings',
'invite' => 'ModifyInviteSettings',
'custombbc' => 'ModifyCustomBBCodeSettings',

'aeiou' => 'ModifyAeiouSettings', 'actions' => 'ModifyActionSettings',
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
                
'sportal' => 'ModifySPortalSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
// --- Begin modification - SMFBlog ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---

'profile' => 'ModifyProfileSettings',
'chatroomButton' => 'ModifyChatroomButtonSettings',

'websiteButton' => 'ModifyWebsiteButtonSettings',

);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];

loadLanguage('CustomProfile');
// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl '?action=featuresettings;sa=basic;sesc=' $context['session_id'],
),
'actions' => array(
'title' => 'Custom Actions',
'href' => $scripturl '?action=featuresettings;sa=actions;sesc=' $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl '?action=featuresettings;sa=layout;sesc=' $context['session_id'],
),
'sportal' => array(
'title' => $txt['mods_cat_sportal'],
'href' => $scripturl '?action=featuresettings;sa=sportal;sesc=' $context['session_id'],
),
'rog' => array(
'title' => $txt['rog_settings'],
'href' => $scripturl '?action=featuresettings;sa=rog;sesc=' $context['session_id'],
),

'invite' => array(
'title' => $txt['invite_title'],
'href' => $scripturl '?action=featuresettings;sa=invite;sesc=' $context['session_id'],
),
'MemberColorLinks' => array(
'title' => $txt['MemberColorLinkHeadline'],
'href' => $scripturl '?action=featuresettings;sa=MemberColorLinks;sesc=' $context['session_id'],
),

'custombbc' => array(
'title' => $txt['customBBCode_tabtitle'],
'href' => $scripturl '?action=featuresettings;sa=custombbc;sesc=' $context['session_id'],
),
'profile' => array(
'title' => $txt['cp_cpfields'],
'href' => $scripturl '?action=featuresettings;sa=profile;sesc=' $context['session_id'],
),
// --- Begin modification - UserCP ---
'usercp' => array(
'title' => $txt['usercp'],
'href' => $scripturl '?action=featuresettings;sa=usercp;sesc=' $context['session_id'],
),
// --- End modification ---

                        
'chatroomButton' => array(
                                
'title' => $txt['chatroomButton_title'],
                                
'href' => $scripturl '?action=featuresettings;sa=chatroomButton;sesc=' $context['session_id'],
),
                        
'websiteButton' => array(
                                
'title' => $txt['websiteButton_title'],
                                
'href' => $scripturl '?action=featuresettings;sa=websiteButton;sesc=' $context['session_id'],                        
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl '?action=featuresettings;sa=karma;sesc=' $context['session_id'],
),
'aeiou' => array(
'title' => $txt['aeiou'],
'href' => $scripturl '?action=featuresettings;sa=aeiou;sesc=' $context['session_id'],
'is_last' => true,
),
),
);

// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
global $context$txt$scripturl$modSettings$sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

// Quick session check...
checkSession();

require_once($sourcedir '/ManageServer.php');

$subActions = array(
'rog' => 'rantonguestsSettings',
'invite' => 'ModifyInviteSettings',
'custombbc' => 'ModifyCustomBBCodeSettings',

'aeiou' => 'ModifyAeiouSettings', 'actions' => 'ModifyActionSettings',
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
// --- Begin modification - UserCP ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---

'profile' => 'ModifyProfileSettings',
'chatroomButton' => 'ModifyChatroomButtonSettings',

'websiteButton' => 'ModifyWebsiteButtonSettings',

);

// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}

function 
ModifyBasicSettings()
{
global $txt$scripturl$context$settings$sc$modSettings;

$config_vars = array(
// Big Options... polls, sticky, bbc....
array('select''pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
'',
// Basic stuff, user languages, titles, flash, permissions...
array('check''allow_guestAccess'),
array('check''userLanguage'),
array('check''allow_editDisplayName'),
array('check''allow_hideOnline'),
array('check''allow_hideEmail'),
array('check''guest_hideContacts'),
array('check''titlesEnable'),
array('check''enable_buddylist'),
array('text''color_buddylist'),
array('text''default_personalText'),
array('int''max_signatureLength'),
array('int''award_max_width'),
array('int''award_max_height'),
'',
// MCLegendII
array('text''arrange_mclegend'),
'',
// MCLegendII
array('text''arrange_mclegend'),
'',
// Stats, compression, cookies.... server type stuff.
array('text''time_format'),
array('select''number_format', array('1234.00' => '1234.00''1,234.00' => '1,234.00''1.234,00' => '1.234,00''1 234,00' => '1 234,00''1234,00' => '1234,00')),
array('float''time_offset'),
array('int''failed_login_threshold'),
array('int''lastActive'),
array('check''trackStats'),
array('check''hitStats'),
array('check''enableErrorLogging'),
array('check''securityDisable'),
'',
// Related Topics
array('check''relatedTopicsEnabled'),
array('int''relatedTopicsCount'),
array('select''relatedMethod', array('fulltext' => &$txt['relatedFulltext'], 'custom' => &$txt['relatedCustom'])),

'',
// Reactive on email, and approve on delete
array('check''send_validation_onChange'),
array('check''approveAccountDeletion'),
'',
// Option-ish things... miscellaneous sorta.
array('check''allow_disableAnnounce'),
array('check''disallow_sendBody'),
array('check''modlog_enabled'),
array('check''queryless_urls'),
'',
array('check''sitemap_xml'),
array('int''sitemap_topic_count'),
array('check''sitemap_collapsible'),
'',
// Width/Height image reduction.
array('int''max_image_width'),
array('int''max_image_height'),
'',
// Show NNTP Syndicate Options
array('check''nntp_syndicate_enable'),
array('text''nntp_syndicate_server'),
array('text''nntp_syndicate_port'),
array('check''nntp_syndicate_authentication'),
array('text''nntp_syndicate_username'),
array('text''nntp_syndicate_password'),

'',
// No Reply Email??
array('check''enableNoReply'),
array('text''NoReplyEmail'),
array('text''NoReplyMessage'),
'',
// Hide post or not? ;).
array('check''allow_hiddenPost'),
array('check''show_hiddenMessage'),
array('int''max_hiddenValue'),
array('text''show_hiddenColor'),
'',
// Reporting of personal messages?
array('check''enableSinglePM'),

array('check''enableReportPM'),
array('check''SaveAllPMsEnabled'),
);

// Saving?
if (isset($_GET['save']))
{
// Fix PM settings.
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
$save_vars $config_vars;
$save_vars[] = array('text''pm_spam_settings');

saveDBSettings($save_vars);

writeLog();
redirectexit('action=featuresettings;sa=basic');
}

// Hack for PM spam settings.
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(','$modSettings['pm_spam_settings']);
$config_vars[] = array('int''max_pm_recipients');
$config_vars[] = array('int''pm_posts_verification');
$config_vars[] = array('int''pm_posts_per_hour');

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];

prepareDBSettingContext($config_vars);
}

function 
ModifyLayoutSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Compact pages?
array('check''compactTopicPagesEnable'),
array('int''compactTopicPagesContiguous'null$txt['smf235'] . '<div class="smalltext">' str_replace(' ''&nbsp;''"3" ' $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' str_replace(' ''&nbsp;''"5" ' $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select''todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
array('check''topbottomEnable'),
array('check''onlineEnable'),
array('check''enableVBStyleLogin'),
'',
// Pagination stuff.
array('int''defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check''timeLoadPageEnable'),
array('check''disableHostnameLookup'),
'',
// Who's online.
array('check''who_enabled'),
'',
// Board Viewers By HarzeM
array('check''enable_board_viewers'),
array('check''boardViewersGuestsMembers'),
array('check''boardViewersClickable'),
array('check''countChildPosts'), '',
      
// Recent topics ?
      
array('check''recent_topics',null, &$txt['recent_topics']),

);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=layout');

loadUserSettings();
writeLog();
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];

prepareDBSettingContext($config_vars);
}
function 
ModifySPortalSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// What does it look like?  [smite]?
array('check''lshowdetails'),
array('check''aspecificannounce'),
array('check''nshowavatar'),
array('select''tttype', array(&$txt[110], &$txt[301])),
array('select''gallerytype', array(&$txt['galleryrandom'], &$txt['gallerylatest'])),
'',
array('text''aannouncetext'),
array('int''nnewsboard'),
array('int''nnewscount'),
array('int''nnewslength'),
array('int''rppostcount'),
array('int''rttopiccount'),
array('int''ppollid'),
array('int''tppcount'),
array('int''tbbcount'),
array('int''tttcount'),
array('int''arcadebpcount'),
'',
array('check''showleft'),
array('check''showright'),
array('int''leftwidth'),
array('int''rightwidth'),
'',
array('check''showuser'),
array('check''showusersonline'),
array('check''showboardstats'),
array('check''showlatestmember'),
array('check''showquicksearch'),
array('check''showannouncements'),
array('check''showboardnews'),
array('check''showrecentposts'),
array('check''showrecenttopics'),
array('check''showtoppoll'),
array('check''showtopposters'),
array('check''showtopboards'),
array('check''showtoptopics'),
array('check''showrecentpurchase'),
array('check''showgallery'),
array('check''showarcade'),
'',
array('check''advertiselefton'),
array('select''advertiselefttype', array(&$txt['advertisehtml'], &$txt['advertisephp'])),
array('large_text''advertiseleft'),
array('check''advertiserighton'),
array('select''advertiserighttype', array(&$txt['advertisehtml'], &$txt['advertisephp'])),
array('large_text''advertiseright'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=sportal');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=sportal';
$context['settings_title'] = $txt['sportalsettings'];

prepareDBSettingContext($config_vars);
}
function 
ModifyProfileSettings()
{
global $sourcedir;
require_once($sourcedir '/CustomProfile.php');
CustomFieldSettings();
}

function 
ModifyChatroomButtonSettings()
{
global $txt$scripturl$context$settings$sc;

// WebsiteButton 1.0 Settings
$config_vars = array(
array('select''chatroomButton_ga', array(
=> &$txt['chatroom_disabled'],
=> &$txt['chatroom_enabled'],
)),
array('text''chatroomButton_url'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=chatroomButton');
}

        
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=chatroomButton';
        
$context['settings_title'] = isset($txt['chatroomButton_title']) ? $txt['chatroomButton_title'] : 'Chatroom';

prepareDBSettingContext($config_vars);
}
function 
ModifyWebsiteButtonSettings()
{
global $txt$scripturl$context$settings$sc;

// WebsiteButton 1.0 Settings
$config_vars = array(
array('text''websiteButton_url'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=websiteButton');
}

        
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=websiteButton';
        
$context['settings_title'] = isset($txt['websiteButton_title']) ? $txt['websiteButton_title'] : 'Website';

prepareDBSettingContext($config_vars);
}
// Invite MOD
function ModifyInviteSettings()
{
global $sourcedir;
require_once($sourcedir '/Invite.php');
InviteSettings();
}


function 
rantonguestsSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
//Rant on Guests mod rog mod
array('text''rog_title'),
array('text''rog_post'),

);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=rog');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=rog';
$context['settings_title'] = $txt['rog_settings'];

prepareDBSettingContext($config_vars);
}

function 
ModifyKarmaSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Karma - On or off?
array('select''karmaMode'explode('|'$txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int''karmaMinPosts'),
array('float''karmaWaitTime'),
array('check''karmaTimeRestrictAdmins'),
'',
// What does it look like?  [smite]?
array('text''karmaLabel'),
array('text''karmaApplaudLabel'),
array('text''karmaSmiteLabel'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=karma');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}
function 
ModifyMemberColorLinksSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Standard Membercolor?
array('check''MemberColorLink'),
'',
//Some Stat Settings
array('check''MemberColorLatestMember'),
array('check''MemberColorStats'),
array('check''MemberColorWhoIsOnline'),
'',
//Thread and Boardsettings
array('check''MemberColorThreadOwner'),
array('check''MemberColorThreadLastPost'),
array('check''MemberColorThreadChild'),
'',
//Birthday and Calendar 
array('check''MemberColorBoardindex'),
array('check''MemberColorBirthday'),
'',
//Some Recent Things
array('check''MemberColorRecentOwner'),
array('check''MemberColorRecentLastPost'),
'',
// PM Colors
array('check''MemberColorInbox'),
array('check''MemberColorOutbox'),
'',
//Guest Color
array('text''MemberColorGuests'),
//Banned User Color
array('text''MemberColorBanned'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=MemberColorLinks');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=MemberColorLinks';
$context['settings_title'] = $txt['MemberColorLinkHeadline'];

prepareDBSettingContext($config_vars);
}


function 
ModifyActionSettings()
{
global $sourcedir;
require_once($sourcedir '/CustomAction.php');
CustomActionSettings();
}


// --- Begin modification - UserCP ---
function ModifyUserCPSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
array('check''usercp_enable'),
           array (
'check''usercp_enablecontactadmin'),
           array(
'check''usercp_switchview'),
           array(
'check''usercp_usepm'),
           array(
'int''usercp_adminid'),
            
'',
             array(
'text''usercp_field1image'),
             array(
'text''usercp_field1url'),
             array(
'text''usercp_field1maintext'),
             array(
'text''usercp_field1summary'),
             array(
'check''usercp_field1enable'),
             
'',
             array(
'text''usercp_field2image'),
             array(
'text''usercp_field2url'),
             array(
'text''usercp_field2maintext'),
             array(
'text''usercp_field2summary'),
             array(
'check''usercp_field2enable'),
             
'',
             array(
'text''usercp_field3image'),
             array(
'text''usercp_field3url'),
             array(
'text''usercp_field3maintext'),
             array(
'text''usercp_field3summary'),
             array(
'check''usercp_field3enable'),
             
'',
             array(
'text''usercp_field4image'),
             array(
'text''usercp_field4url'),
             array(
'text''usercp_field4maintext'),
             array(
'text''usercp_field4summary'),
             array(
'check''usercp_field4enable'),
             
'',
   
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=usercp');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=usercp';
$context['settings_title'] = $txt['usercp'];

prepareDBSettingContext($config_vars);
}
// --- End modification ---
function ModifyAeiouSettings()
{
global $txt$scripturl$context$settings$sc$db_prefix$modSettings;

// If the mod is enabled and we're not saving, query for mod status information
if (!isset($_GET['save']) && $modSettings['aeiou_enable'])
{
// Current time
$time time();

// Get the delete band
$request db_query("
SELECT count(*)
FROM 
{$db_prefix}members
WHERE lastLogin < "
. ($time 1814400) ."
AND aeiou_email < "
. ($time 1814400) ."
AND aeiou_count > 1
AND posts <= "
. (int) $modSettings['aeiou_underposts']. "
"
__FILE____LINE__);
list($deletion) = mysql_fetch_row($request);

// Create an array for the bands, with default values of 0
$temp = array(=> 0=> 0=> (int) $deletion);

// Tidy up
unset($deletion);
mysql_free_result($request);

// Get the email bands
$request db_query("
SELECT count(*) as no, aeiou_count
FROM 
{$db_prefix}members
WHERE lastLogin < "
. ($time 1814400) ."
AND aeiou_email < "
. ($time 1814400) ."
AND aeiou_count < 2
AND is_activated < 10
AND is_activated != 0
AND is_activated != 4
GROUP BY aeiou_count
ORDER BY aeiou_count ASC
"
__FILE____LINE__);

// No further emails, if not set already, stop the mod until tomorrow
if(mysql_num_rows($request) == 0)
{
// If not already, tell the mod to stop
if(!empty($modSettings['aeiou_stop']))
aeiou_update(array('stop' => 1));
// Change the variable for the remainder of this page
$modSettings['aeiou_stop'] = 1;
}
else
{
// Store the bands in the array created earlier
while($row mysql_fetch_assoc($request))
$temp[$row['aeiou_count']] = $row['no'];
// Tidy up
unset($row);

// The mod is set as stopped, but we discovered some emails, so re-activate us
if(!empty($modSettings['aeiou_stop']))
{
aeiou_update(array('stop' => 0));
// Change the variable for the remainder of this page
$modSettings['aeiou_stop'] = 0;
$reactivated 1;
}
}

// Prepare rows for the stats table
$items = array();

// Last ran
$items['aeiou_last_ran'] = ($modSettings['aeiou_locktimestamp'] == 0) ? $txt['aeiou_never'] : timeformat($modSettings['aeiou_locktimestamp'], true) ;

$again = ($modSettings['aeiou_locktimestamp'] == 0) ? $time $modSettings['aeiou_locktimestamp'];
// But if reached daily limit or is stopped we will start/check again tomorrow
if($modSettings['aeiou_day_max'] <= $modSettings['aeiou_day_sent'] || $modSettings['aeiou_stop'] == 1)
{
$date explode('-'date('Y-m-d'$again));
$tomorrow mktime(000$date[1], $date[2], $date[0]) + (60*60*24);
$items['aeiou_starts_again'] = timeformat($tomorrowtrue);
unset($date$tomorrow);

}
elseif($modSettings['aeiou_hour_max'] <= $modSettings['aeiou_hour_sent'])
{
// Or reached hourly limit we will start/check again next hour
$date explode('-'date('Y-m-d-h'$again));
$nexthour mktime($date[3], 00$date[1], $date[2], $date[0]) + (60*60);
$items['aeiou_starts_again'] = timeformat($nexthourtrue);
unset($date$nexthour);
}
else
// Else Can start again from previous + 5mins
$items['aeiou_starts_again'] = timeformat($again 300true) ;

// Emailed today with max in parenthesis
$items['aeiou_sent_day'] = $modSettings['aeiou_day_sent']
.' <span style="font-weight:normal;font-style:italic">('.$txt['aeiou_max'].': '.$modSettings['aeiou_day_max'].')</span>';
// Emailed this hour with max in parenthesis
$items['aeiou_sent_hour'] = $modSettings['aeiou_hour_sent']
.' <span style="font-weight:normal;font-style:italic">('.$txt['aeiou_max'].': '.$modSettings['aeiou_hour_max'].')</span>';

// Now setup the stats about no.s of email etc
$items['aeiou_awaiting_total'] = $temp[0] + $temp[1];
$items['aeiou_awaiting_initial_email'] = $temp[0];
$items['aeiou_awaiting_final_email'] = $temp[1];
$items['aeiou_awaiting_deletion'] = $temp[2] . (empty($modSettings['aeiou_delete']) ? ' <span style="color:red">'.$txt['aeiou_disabled'].'</span>' '' ) ; 

// Reasons for inactive
if(!empty($modSettings['aeiou_stop']))
$status $txt['aeiou_nofurtheremails'];
elseif($modSettings['aeiou_day_max'] <= $modSettings['aeiou_day_sent'])
$status $txt['aeiou_reacheddailylimit'];
elseif($modSettings['aeiou_hour_max'] <= $modSettings['aeiou_hour_sent'])
$status $txt['aeiou_reachedhourlylimit'];

// Is the mod Active? (even if enabled, it might not be active)
// If the mod was stopped, but on loading this page, we discovered more emails, show as re-activated
if(!empty($reactivated))
$status '<span style="color:darkgreen">'.$txt['aeiou_reactivated'].'</span>';
elseif(empty($status))
$status '<span style="color:darkgreen">'.$txt['aeiou_active'].'</span>';
else
// Inactive 
$status '<span style="color:maroon">'.$txt['aeiou_stopped'].'</span> - '$status;

// Header of the stats chunk and status
$chunk '<table cellpadding="1" cellspacing="0" border="0" width="100%" class="tborder">
<tr class="titlebg"><td colspan="2">'
.$txt['aeiou_status'].': '.$status.'</td></tr>';

// Now build the chunk of html of our stats
foreach($items as $string => $value)
{
// Less emphasis on the sub-totals
$italic = ($string == 'aeiou_awaiting_initial_email' || $string == 'aeiou_awaiting_final_email') ? ;
// Add more rows to the existing chunk
$chunk .= '<tr class="windowbg"><td'.($italic ' style="font-weight:normal;font-style:italic"' '').' >'.$txt[$string].':</td><td'.($italic ' style="font-weight:normal;font-style:italic"' '').'>'.$value.'</td></tr>';
}
$chunk .= '</table><br />';


// Now for the last 10 people emailed
$request db_query("
SELECT ID_MEMBER, memberName, aeiou_email, aeiou_count
FROM 
{$db_prefix}members
WHERE aeiou_email != 0
ORDER BY aeiou_email DESC
LIMIT 10
"
__FILE____LINE__);

$chunk2 '<table cellpadding="1" cellspacing="0" border="0" width="100%" class="tborder">
<tr class="titlebg"><td colspan="3">'
.$txt['aeiou_last10emailed'].'</td></tr>';
if(mysql_num_rows($request) == 0)
$chunk2 .= '<tr class="windowbg"><td colspan="3">'.$txt['aeiou_never'].'</td></tr>';
else
{
// Add each user as a row in the table
while($row mysql_fetch_assoc($request))
$chunk2 .= '<tr class="windowbg"><td><a href="'.$scripturl.'?action=profile;u='.$row['ID_MEMBER'].'">'.$row['memberName'].'</a></td><td style="font-weight:normal;">'.timeformat($row['aeiou_email'], true).'</td><td style="font-weight:normal;">'$txt['aeiou_'.( ($row['aeiou_count'] == 1) ? 'initial' 'final' )].'</td></tr>';
}
$chunk2 .= '</table><br />';

}
else
// If the mod is not enabled, don't show either as chunks.  use a space to prevent it being shown as a delimiter
$chunk $chunk2 ' ';

// Compile/Build some language strings/add to
// Avoids using html in the language files
$temp = array('initial_subject' => 'subject''initial_message' => 'message''final_subject' => 'subject''final_message' => 'message');
$add '<div class="smalltext">'.$txt['aeiou_email_desc1'].'<br />'.$txt['aeiou_email_desc2'].'<br />'.$txt['aeiou_email_desc3'].'</div>';
foreach($temp as $a => $b)
{
// Add the descriptions to the txt string
$txt['aeiou_'.$a] .= $add;
// Use the default message if we don't have a custom one saved
if(empty($modSettings['aeiou_'.$a]))
$modSettings['aeiou_'.$a] = !empty($txt['aeiou_default_'.$b]) ? $txt['aeiou_default_'.$b] : '' ;
}
// Tidy up
unset($temp$add$a);

// More descriptions to add with html
$temp = array('delete''underposts''hour_max''day_max''chunksize');
foreach($temp as $a)
$txt['aeiou_'.$a] .= '<div class="smalltext">'.$txt['aeiou_'.$a.'_desc'] .'</div>';

// Now the warning chunk.  Comprises of 4 parts.
$txt['aeiou_warning'] .= '<div class="smalltext">'$txt['aeiou_warning2'] .'<br />'.$txt['aeiou_warning3'].'<br />'.$txt['aeiou_warning4'].'</div>';

// The important array
$config_vars = array(
$chunk,
array('check''aeiou_enable'),
array('text''aeiou_initial_subject''30" style="width:95%'),
array('large_text''aeiou_initial_message''5" style="width:95%'),
array('text''aeiou_final_subject''30" style="width:95%'),
array('large_text''aeiou_final_message''5" style="width:95%'),
'',
array('check''aeiou_delete'),
array('int''aeiou_underposts'),
'',
$txt['aeiou_warning'],
array('int''aeiou_hour_max'),
array('int''aeiou_day_max'),
array('int''aeiou_chunksize'),
$chunk2,
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=aeiou');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=aeiou';
$context['settings_title'] = $txt['aeiou_title'];

prepareDBSettingContext($config_vars);
}
function 
ModifyCustomBBCodeSettings()
{
global $sourcedir;

require_once $sourcedir '/CustomBBCode.php';

if (!empty($_GET['tag']))
EditCustomTag($_GET['tag']);
else
BrowseCustomTags();
}

?>



Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: Felic on April 28, 2008, 04:33:02 AM
Quote from: [SiNaN] on April 25, 2008, 03:09:53 AM
Felic, for the first question;

../Sources/SPortal.php

Find and Delete:

// Make sure guests can see this board.
...


Thanks for the reply.

Ya, I took a look at the code and tried that, but then guests can see the posts from hidden boards on the portal page. We do have a public board, but most of the forum boards are only accessible by subscription. What I'd like is the same thing for the Recent Posts on the Board News: posts seen according to permissions instead of a board restriction. That might be too complicated.

What about increasing the Recent Posts to 10 instead of 5? I tried to change the code to do that but couldn't figure it out.
Title: Re: SimplePortal
Post by: cleanfiles on April 28, 2008, 06:46:12 AM
Hello again [SiNaN], I was wondering if it was possible to add blocks to the portal. Like add a txt block that i can use either html or php in or just plain txt. And have the ability to add as many of these blocks as required.
Thanks.
Title: Re: SimplePortal
Post by: Drover on April 28, 2008, 10:00:07 AM
Quote from: [SiNaN] on April 25, 2008, 03:09:53 AM
Drover, can you attach your ModSettings.php file so that I can check the issue?

Attached!  Hope this is the right one this time...   :-\

Thanks again!

Title: Re: SimplePortal
Post by: iceman~ on April 28, 2008, 07:03:30 PM
Sinan Mate ... waiting for this to be released for SMF 2 ... Any info as yet ?
Title: Re: SimplePortal
Post by: Eliana Tamerin on April 28, 2008, 07:56:15 PM
Yep, there is:

Quote from: [SiNaN] on April 25, 2008, 03:09:53 AM
[●ριмρєя12●], I hope so. I finished the block functions also. But I'm thinking of adding some new blocks. I hope it will be ready in a week. This version would be like a 2.0 Beta 3 Public version of SimplePortal v1.1 but also some changes made for the further versions.

.
.
.

And lastly for all of you; apologizes for the delay but I'm a poor university student who doesn't even has his own computer and fighting with the exams these days.

And until you hear more, that's the latest.
Title: Re: SimplePortal
Post by: cleanfiles on April 28, 2008, 09:38:27 PM
Quote from: cleanfiles on April 28, 2008, 06:46:12 AM
Hello again [SiNaN], I was wondering if it was possible to add blocks to the portal. Like add a txt block that i can use either html or php in or just plain txt. And have the ability to add as many of these blocks as required.
Thanks.
I tried duplicating the advertise block and that works fine, but I need to be able to edit the content....At the moment I just duplicates the content of the original block.
Is there a way to add to the admin panel the ability to edit the content of a second left or right add block?
Title: Re: SimplePortal
Post by: [SiNaN] on April 29, 2008, 09:27:44 AM
asudhakar, I also couldn't find a problem there. Are the other settings work fine in your forum? Or it is only for SimplePortal?

Felic, it actually was working as it should. If you do not define the board news board id as a hidden board there will be no problem. Also you can increase the number of recent posts and topics from the Portal Settings.

Drover, your file is attached. Can you check it please?

iceman~, many things to do these days. I have some server-related problems in my own site. Need to update 3 of my mods urgently. Also trying to make a theme. Additionally my school. And the member color link add-on for the portal. But I'm working on updating the mod for 2.0 Beta 3 Public. I think it will be ready on time.

Thanks again Eliana. And congratulations as you are the support helper of the month. ;)

cleanfiles, hımmm, after duplicating them, a couple of things should be doubled also. :) For a new block as the advertise blocks, do this:

../Sources/ModSettings.php

Find:

array('check', 'advertiserighton'),
array('select', 'advertiserighttype', array(&$txt['advertisehtml'], &$txt['advertisephp'])),
array('large_text', 'advertiseright'),


After add:

array('check', 'customblock1on'),
array('select', 'customblock1type', array(&$txt['advertisehtml'], &$txt['advertisephp'])),
array('large_text', 'customblock1content'),


../Themes/default/languages/Modifications.english.php

Find:

?>

Before add:

$txt['customblock1on'] = 'Show custom block 1:';
$txt['customblock1type'] = 'Custom block 1 coding type:';
$txt['customblock1content'] = 'Custom block 1 content:';


../Themes/default/languages/SPortal.english.php

Find:

?>

Before add:

$txt['sp-customblock1'] = 'Custom Block 1 Name';

../SPortal.template.php

Add where you want the block to be shown:

if($modSettings['customblock1on'])
{
echo '
<!-- Custom Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $txt['sp-customblock1'], '</td>
</tr>
<tr class="windowbg">
<td>';
if ($modSettings['customblock1type'] == 0)
echo $modSettings['customblock1content'];
else
eval ($modSettings['customblock1content']);
echo ' </td>
</tr>
</table>
</div>
<br />';
}
Title: Re: SimplePortal
Post by: Drover on April 29, 2008, 09:33:44 AM
That seems to have taken care of part of the problem, Sinan.  It's letting me into the portal settings now, but doesn't save any changes I make there.
Title: Re: SimplePortal
Post by: [SiNaN] on April 29, 2008, 09:37:44 AM
Quote from: Drover on April 29, 2008, 09:33:44 AM
Awesome, Sinan!

If SP doesn't quickly become the most downloaded mod, I don't know why.

Woow, another great comment Drover. :D

Wait for the SimplePortal 2.0. It would be compatible with the 2.0 Beta versions also I hope. 8)
Title: Re: SimplePortal
Post by: Drover on April 29, 2008, 09:42:24 AM
Quote from: [SiNaN] on April 29, 2008, 09:37:44 AM
Quote from: Drover on April 29, 2008, 09:33:44 AM
Awesome, Sinan!

If SP doesn't quickly become the most downloaded mod, I don't know why.

Woow, another great comment Drover. :D

Wait for the SimplePortal 2.0. It would be compatible with the 2.0 Beta versions also I hope. 8)

Heheh...wel I made the comment before I ran into another little problem.  But I mean it, despite the little issues, this is a great mod!
Title: Re: SimplePortal
Post by: [SiNaN] on April 29, 2008, 10:00:25 AM
Quote from: Drover on April 29, 2008, 09:42:24 AM
Heheh...wel I made the comment before I ran into another little problem.  But I mean it, despite the little issues, this is a great mod!

Just joking Drover. But thanks for the comments. :)

Is there anything I can do for that little issue?
Title: Re: SimplePortal
Post by: Drover on April 29, 2008, 10:08:59 AM
Quote from: [SiNaNIs there anything I can do for that little issue?

After using your file, I can now get into my portal settings, but it won't let me save any changes I make there.  Ideas?
Title: Re: SimplePortal
Post by: [SiNaN] on April 29, 2008, 10:26:30 AM
Quote from: Drover on April 29, 2008, 10:08:59 AM
Quote from: [SiNaNIs there anything I can do for that little issue?

After using your file, I can now get into my portal settings, but it won't let me save any changes I make there.  Ideas?

Hımmm, the same issue. Have you ever tried to install the package?
Title: Re: SimplePortal
Post by: Drover on April 29, 2008, 10:50:48 AM
Quote from: [SiNaNHımmm, the same issue. Have you ever tried to install the package?

That's how I originally installed the mod.
Title: Re: SimplePortal
Post by: [SiNaN] on April 29, 2008, 10:51:42 AM
Quote from: Drover on April 29, 2008, 10:50:48 AM
That's how I originally installed the mod.

You installed the mod via package manager, yes?
Title: Re: SimplePortal
Post by: Drover on April 29, 2008, 11:14:08 AM
Yes.
Title: Re: SimplePortal
Post by: cleanfiles on April 29, 2008, 04:58:18 PM
Cheers [SiNaN], the changes work perfect.
Using your code and SSI I can add lots of things now and have them fully integrated with smf, which makes this portal just perfect for my needs, well done.
Cant wait to see Simple Portal 2 in action.
Title: Re: SimplePortal
Post by: [SiNaN] on May 01, 2008, 06:31:22 AM
Quote from: Drover on April 29, 2008, 11:14:08 AM
Yes.

Can you try the attached ModSettings.php file? We'll check whether the problem is in that file or not.

Quote from: cleanfiles on April 29, 2008, 04:58:18 PM
Cheers [SiNaN], the changes work perfect.
Using your code and SSI I can add lots of things now and have them fully integrated with smf, which makes this portal just perfect for my needs, well done.
Cant wait to see Simple Portal 2 in action.

Of course. ;)

Another announce: The demo site is updated. You can see all the features in action:

www.bizmuhacirler.com/demo
Title: Re: SimplePortal
Post by: Drover on May 01, 2008, 10:59:44 AM
Thanks, Sinan!  That seems to have it working!  This mod is really great!
Title: Re: SimplePortal
Post by: [SiNaN] on May 01, 2008, 11:03:20 AM
Quote from: Drover on May 01, 2008, 10:59:44 AM
Thanks, Sinan!  That seems to have it working!  This mod is really great!

But wait some. What other mods do you have installed on your forum? (Write the manual installed ones also.)
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 01, 2008, 01:42:49 PM
Quote from: [SiNaN] on April 29, 2008, 09:27:44 AM
asudhakar, I also couldn't find a problem there. Are the other settings work fine in your forum? Or it is only for SimplePortal?

Hi SiNaN,

Its is not working only for Simple Portal.

I Could Change all the Other Settings.

I really like Simple Portal, Could you help me to fix this issue as soon.

Thanks in Advance
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: cleanfiles on May 01, 2008, 04:56:06 PM
Hi again,
I have a quick question... In the who's online block, how can I make it so you can see the members action?

(http://cp72.org/hostit/images/5vc5ypmc7qx4xl4ucpno.png)

I think this would be a nice addition. :D
Title: Re: SimplePortal
Post by: madman71 on May 01, 2008, 06:07:57 PM
Sinan,

Ok, i did manual edits to my theme(im using SullenMadness theme)

Nothing appears to be broken and all new buttons seem to work,  but on the front page (portal page) only the blocks on the left appear. Many are missing including the random image block even when activated.


In the middle of the page i have this under BOARD NEWS:
You cannot specify a board that doesn't allow guests. Please check the board ID before trying again.


Any ideas?  I can PM you login account so you can see if you like.
Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 02:29:12 AM
Quote from: asudhakar on May 01, 2008, 01:42:49 PM
Quote from: [SiNaN] on April 29, 2008, 09:27:44 AM
asudhakar, I also couldn't find a problem there. Are the other settings work fine in your forum? Or it is only for SimplePortal?

Hi SiNaN,

Its is not working only for Simple Portal.

I Could Change all the Other Settings.

I really like Simple Portal, Could you help me to fix this issue as soon.

Thanks in Advance
Sudhakar, Admin
www.itacumens.com

Take a back-up of your ModSettings.php file. Download ModSettings.php file from the link below. Send it to your ftp. Then try changin the settings and report me the result here.

http://www.simplemachines.org/community/index.php?action=dlattach;topic=227599.0;attach=54832

Quote from: cleanfiles on May 01, 2008, 04:56:06 PM
Hi again,
I have a quick question... In the who's online block, how can I make it so you can see the members action?

I think this would be a nice addition. :D


Indeed, yes. I'll add it. But you can use it now:

Who.english.php

Find:

$txt['who_index'] = 'Viewing the board index of <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';

Replace:

$txt['who_index'] = 'Viewing <a href="' . $scripturl . '">Portal</a>.';
$txt['whoall_forum'] = 'Viewing <a href="' . $scripturl . '?action=forum">Forum</a>.';


Quote from: madman71 on May 01, 2008, 06:07:57 PM
Sinan,

Ok, i did manual edits to my theme(im using SullenMadness theme)

Nothing appears to be broken and all new buttons seem to work,  but on the front page (portal page) only the blocks on the left appear. Many are missing including the random image block even when activated.


In the middle of the page i have this under BOARD NEWS:
You cannot specify a board that doesn't allow guests. Please check the board ID before trying again.


Any ideas?  I can PM you login account so you can see if you like.

Admin CP >> Features and Options >> Board News | News Board:

here, enter the board id for the news block. But it should be visible by the visitors.
Title: Re: SimplePortal
Post by: madman71 on May 02, 2008, 02:57:50 AM
I assume you mean: Admin CP >> Features and Options >> PORTAL SETTING >>> Board News | News Board:

I have it set already to 1.  Is this right?

Also in the first image is says "DOT" (circled in red) Is this right?

oh, earlier i told you random image wasnt working, i made a mistake. random image is working.




(http://img202.imagevenue.com/loc439/th_10796_untitled_122_439lo.JPG) (http://img202.imagevenue.com/img.php?image=10796_untitled_122_439lo.JPG)

(http://img195.imagevenue.com/loc389/th_11068_untitled_122_389lo.JPG) (http://img195.imagevenue.com/img.php?image=11068_untitled_122_389lo.JPG)
Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 03:03:53 AM
Copy arrow.gif and dot.gif files from the package to your themes images folder.

Is the category which has the id one is the visible by the guests?

Can you write your website adress here?
Title: Re: SimplePortal
Post by: madman71 on May 02, 2008, 03:15:40 AM
I , the admin, can not see the catagory.

I prefer to PM you my URL.

URL now being sent via PM
Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 03:28:01 AM
Quote from: madman71 on May 02, 2008, 03:15:40 AM
I , the admin, can not see the catagory.

I prefer to PM you my URL.

URL now being sent via PM

Do this:

../Sources/SPortal.php

Find and Delete:

// Make sure guests can see this board.
$request = db_query("
SELECT ID_BOARD
FROM {$db_prefix}boards
WHERE " . ($board === null ? '' : "ID_BOARD = $board
AND ") . "FIND_IN_SET(-1, memberGroups)
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
{
die($txt['smf_news_error2']);
}
list ($board) = mysql_fetch_row($request);
mysql_free_result($request);



And you can select any boards as boardnews. I created one for you. You can write the news on that board and they will show up on the portal.

Also I fixed the advertise block. It supports html, not bbcode.

Additionally, do this; copy arrow.gif and dot.gif files from the package to your themes images folder.

Title: Re: SimplePortal
Post by: madman71 on May 02, 2008, 03:29:25 AM
Wonderful!!!!
thank you.

I shall make the minor fixes in the morning.  It's well past midnight here  :D

thanks agian :)
Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 03:30:32 AM
Quote from: madman71 on May 02, 2008, 03:29:25 AM
Wonderful!!!!
thank you.

I shall make the minor fixes in the morning.  It's well past midnight here  :D

thanks agian :)

Not at all. Have a good sleep. :P
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 02, 2008, 03:39:00 AM
Quote from: [SiNaN] on May 02, 2008, 02:29:12 AM
Take a back-up of your ModSettings.php file. Download ModSettings.php file from the link below. Send it to your ftp. Then try changin the settings and report me the result here.

http://www.simplemachines.org/community/index.php?action=dlattach;topic=227599.0;attach=54832


Check out i have installed the simple portal 1.1
And backed up the modsetting file and inserted the mod setting file you have given.

Yes i could edit the text and other , but i could not see any gallery or arcade even i have selected and even the front page does not shows any board news says " You cannot specify a board that doesn't allow guests. Please check the board ID before trying again. "

Checkout @ http://forum.itacumens.com

As soon as you complete checking, just let me know i have to switch of the portal to avoid visit to our main page.

Tell me what i have to do.

Could not block the front page for more time now.

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 03:41:44 AM
I looked at it. Please change. I'll edit this post for the solution. Refresh the page after 5 minutes.

//Edit:

Admin CP >> Features and Options >> Portal Settings >> Board News | News Board:

enter 12 to that text box and save.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 02, 2008, 03:49:10 AM
Thank you SiNaN for you instant help

I had changed the board news to 12.

Now i got something.

Just have a look at this Page Mr.SiNaN http://forum.itacumens.com

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 03:51:41 AM
I see.

The arcade version you are using is a bit different I think. I will arrange the codes for you arcade version also and reply soon. For now, uncheck the show arcade block option from the admin panel.

Also it would be better if you change 12 as 23 I think as 23 is your News board.

What about the Gallery block? Is it on?
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 02, 2008, 04:04:15 AM
Thanks MR.SiNaN

Such a cool mod is yours.

Excellent Work.

That to i was thinking why to enter 23 , but you simple cool.

Okie Gallery is fine and how i have to be familiar with Simple Portal Mod as soon.

And one more thing i will attach my orginal Modsetting.php file because what you have given had one shows few mod and i previously i had many mods in menu for settings.

Thank you SiNaN in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 04:07:40 AM
Quote from: asudhakar on May 02, 2008, 04:04:15 AM
Thanks MR.SiNaN

Such a cool mod is yours.

Excellent Work.

That to i was thinking why to enter 23 , but you simple cool.

Okie Gallery is fine and how i have to be familiar with Simple Portal Mod as soon.

And one more thing i will attach my orginal Modsetting.php file because what you have given had one shows few mod and i previously i had many mods in menu for settings.

Thank you SiNaN in Advance,
Sudhakar, Admin
www.itacumens.com

It's 23 because it is the id of the News board. See it in the url: http://forum.itacumens.com/index.php/board,23.0.html

Also the same in the Poll block. Just enter the id of the topic that contains the poll that you want to show in the portal.

I'm glad it worked.

I was going to say that issue. Can you write here all the mods you have installed on you forum, including the manual installed ones?
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 02, 2008, 04:12:26 AM
Or i will do onething, just let me know what could be the issue, which made me to stop updating the portal settings.

So i will change that particular code which will surely present in the new modsetting page you have sent.

So even i could try and complete the error.

And even you told you will help me for that Arcade Fix also.

Thanks for an Excellent mod,
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 04:20:34 AM
The problem is; I do not know where is the error. I think there is a conflict between some mods. Can you attach the ModSettings.php file, I want to check that again. And use the attachments feature, do not give it between the code tags.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 02, 2008, 04:32:46 AM
Thank you SiNaN

Sure i have attached you the orginal mod setting page.

Kindly check out and come up with a good solution and kindly include the arcade error also.

Pls let me also know , what could be the error, so i could also learn it.

Thanks for an Excellent Portal Mod.
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 04:48:59 AM
Can you check the file now?

Do not forget to make it .php.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 02, 2008, 04:59:57 AM
Thank you SiNaN

Sure will check out the code and install it now.

Thanks for your valuable time to support me.

And i saw your site and its really excellent.

But i hope you have used some additional codes to show profile users and other.

And Have you Checked up with my Arcade to fit in Simple Portal.

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 05:04:05 AM
Quote from: asudhakar on May 02, 2008, 04:59:57 AM
But i hope you have used some additional codes to show profile users and other.

And Have you Checked up with my Arcade to fit in Simple Portal.

What do you mean by additional codes to show profile users and other?

Not yet, it will take some time.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 02, 2008, 05:34:02 AM
Thank you SiNaN

Your mods works perfectly in Our Web Portal.

Its very simple and cute.

I could not edit and alter all changes in it.

Thanks for your excellent job.

And in the previous post i told about advertise block.

Ok and let me know how to hide the karma,because i dont use it and could i club two or more boards in index page .

And kindly let me know what code i could change to overcome the Arcade error.

Thanks in Advance,
Sudhakar , Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: cleanfiles on May 02, 2008, 06:59:51 AM
Hey thanks [SiNaN], that solved another question I was going to ask. But what I actually was asking was...Could you make it so as members can see other users actions in the portal block. That way as soon as a member gets to the home page they can look at who is online and see where they are. ie. If other members are in the forum or in the chat room etc.  :)
Title: Re: SimplePortal
Post by: jmil on May 02, 2008, 09:39:57 AM
Any issue install with a theme! I would like to try it but I am tentative due to the recent release.

Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 10:13:17 AM
Okay asudhakar, I'll.

Quote from: cleanfiles on May 02, 2008, 06:59:51 AM
Hey thanks [SiNaN], that solved another question I was going to ask. But what I actually was asking was...Could you make it so as members can see other users actions in the portal block. That way as soon as a member gets to the home page they can look at who is online and see where they are. ie. If other members are in the forum or in the chat room etc.  :)

You mean a block which shows where people are? Like the page whosonline?

Quote from: jmil on May 02, 2008, 09:39:57 AM
Any issue install with a theme! I would like to try it but I am tentative due to the recent release.

It works perfect with everything, do not worry.
Title: Re: SimplePortal
Post by: jmil on May 02, 2008, 10:24:57 AM
Glad you are online - I will try it now. (well After I finish my Backup!!!!!)

Black45 theme

www.forums.midatlanticxriders.com (http://www.forums.midatlanticxriders.com)

:)

Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 11:25:37 AM
Quote from: jmil on May 02, 2008, 10:24:57 AM
Glad you are online - I will try it now. (well After I finish my Backup!!!!!)

Black45 theme

www.forums.midatlanticxriders.com (http://www.forums.midatlanticxriders.com)

:)



May be you will want to see how does it look like:

http://www.bizmuhacirler.com/demo/index.php?theme=5;
Title: Re: SimplePortal
Post by: madman71 on May 02, 2008, 12:46:38 PM
Sinan,

Just a couple questions regarding this mod. My php skills are elementary.


What is the purpose of the SPortal.php  file? Is this where the individual scripts are written to make the mod work?

and

What is the purpose of the SPortal.template.php file? Is this the file that   formats the page layout?  (i.e.  where you can move blocks around and edit them)?


I learn code by trial and error.  In your opinion, would it be difficult for a beginning PHP coder to change the random gallery script to display recent attached images that are attached to posts?

thanks again for your fine work with this mod. ;D


Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 02, 2008, 01:57:08 PM
Quote from: asudhakar on May 02, 2008, 05:34:02 AM
Thank you SiNaN

Ok and let me know how to hide the karma,because i dont use it and could i club two or more boards in index page .

And kindly let me know what code i could change to overcome the Arcade error.


Hope you have checked my above post and kindly try to fix something SiNaN.

Thanks in Advance,
Sudhakar , Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: madman71 on May 02, 2008, 03:22:01 PM
Anyone know how to make the random image block thumbnail a bit bigger?

This code here that's found in the Sportal.template.php doesnt seem to do it:

$modSettings['gallery_url'] . $gallery_picture['filename'] . '" height="78" width="120" ')  . '

I'd like to add a small border around them too.
Title: Re: SimplePortal
Post by: dejiman on May 02, 2008, 04:03:35 PM
Hi SiNaN,
Although I am new to Simple Portal. I just upgraded my SMF 1.1.4 to 1.1.5 then I uploaded your simple portal and I have errors after installing and the result wasn't good at all so I decided to uninstall it. Do you have any upgrade as regard the new SMF 1.1.5 ?

www.dejimanaire.com (http://www.dejimanaire.com)
Title: Re: SimplePortal
Post by: madman71 on May 02, 2008, 04:07:39 PM
Quote from: dejiman on May 02, 2008, 04:03:35 PM
Hi SiNaN,
Although I am new to Simple Portal. I just upgraded my SMF 1.1.4 to 1.1.5 then I uploaded your simple portal and I have errors after installing and the result wasn't good at all so I decided to uninstall it. Do you have any upgrade as regard the new SMF 1.1.5 ?

www.dejimanaire.com (http://www.dejimanaire.com)

I think you can install it in 1.1.5

did you get these errors:

5.     Execute Modification     ./Sources/ModSettings.php     Test failed
6.    Execute Modification    ./Themes/default/index.template.php       Test failed



Did you try to edit by hand?
Title: Re: SimplePortal
Post by: dejiman on May 02, 2008, 04:21:32 PM
That was the Exact Errors I got. So what help have you  for me?
Title: Re: SimplePortal
Post by: dejiman on May 02, 2008, 04:25:26 PM
Quote from: madman71 on May 02, 2008, 04:07:39 PM
Quote from: dejiman on May 02, 2008, 04:03:35 PM
Hi SiNaN,
Although I am new to Simple Portal. I just upgraded my SMF 1.1.4 to 1.1.5 then I uploaded your simple portal and I have errors after installing and the result wasn't good at all so I decided to uninstall it. Do you have any upgrade as regard the new SMF 1.1.5 ?

www.dejimanaire.com (http://www.dejimanaire.com)

I think you can install it in 1.1.5

did you get these errors:

5.     Execute Modification     ./Sources/ModSettings.php     Test failed
6.    Execute Modification    ./Themes/default/index.template.php       Test failed



Did you try to edit by hand?

Further more I didn't see the setting in the Admin CP>Features and Options   >>>>>>>>> Simple Portal <<<<<<<<<<     
Title: Re: SimplePortal
Post by: [SiNaN] on May 02, 2008, 04:27:15 PM
Madman71;

For the first message: SPortal.php stands for the database queries, building up the arrays to show in template file. And SPortal.template.php file outputs the data you get with the SPortal.php. Also it includes the SPortal.english.php file, which includes the language variables. This is the simple page for the SMF.

The random attachment code will be a bit hard code for a starter but look at the codes below, if you can understand them:

function sp_randomattachpic()
{
global $modSettings, $scripturl, $db_prefix;

//Find max.
$dbresult = db_query("
SELECT ID_ATTACH
FROM {$db_prefix}attachments
ORDER BY ID_ATTACH DESC
LIMIT 1", __FILE__, __LINE__);

$max = mysql_fetch_assoc($dbresult);
$check = 0;

while($check == 0) {

//Random it.
$idpic = rand(1, $max['ID_ATTACH']);

// Find the pictures.
$request = db_query("
SELECT ID_ATTACH, ID_MEMBER, filename, width, height
FROM {$db_prefix}attachments
WHERE ID_MEMBER = '0' AND width <> 0 AND ID_ATTACH = $idpic
LIMIT 1", __FILE__, __LINE__);
$return = array();
while ($row = mysql_fetch_assoc($request))
{

//Fix for the height.
if($row['height'] > 50)
$height = '50';
else
$height = $row['height'];

//Fix for the width.
if($row['width'] > 50)
$width = '50';
else
$width = $row['width'];

//Build up the array.
$return[] = array(
'id' => $row['ID_ATTACH'],
'filename' => $row['filename'],
'image' => '<img src="' . $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=image" alt="" border="0" height="' . $width . '" width="' . $width . '" />',
);
}

mysql_free_result($request);

//Did you find what you search for?
if(!empty($return) || empty($max))
$check = 1;
}

//Output it! Rather simple, yeah? :P
foreach ($return as $attach) {
echo $attach['image'];
}
}


A simple code for displaying random image attachment.

asudhakar;

You can turn karma off from

Admin CP >> Features and Options >> Karma

You mean to include 2 board for the boardnews block?

Madman71;

I guess you have the GD module installed. So you should increase the thumbnail file size from the gallery options.

Dejiman;

It works for the 1.1.5 also. You should make the changes manually in these files.

First copy your initial ModSettings.php file and index.template.php file. Then change them with the new fresh ones. Apply the mod and make the changes for your old files manually. After the files that you have edited manually.
Title: Re: SimplePortal
Post by: dejiman on May 02, 2008, 04:40:10 PM
PLease indicate which file. is it the Sportal.template.php    ?
Title: Re: SimplePortal
Post by: madman71 on May 02, 2008, 05:06:07 PM
Quote from: dejiman on May 02, 2008, 04:40:10 PM
PLease indicate which file. is it the Sportal.template.php    ?

When you installed it it should have told you which files failed. Did you get any files that failed to install?  Those files that fail are usually the ones that need hand editing.

I had to hand edit these 2 files:

./Sources/ModSettings.php     
  ./Themes/yourtheme/index.template.php

the index.temp is the one in your 3party theme

But that is me. You might be different.  The installer should tell you which ones fail.
Title: Re: SimplePortal
Post by: dejiman on May 02, 2008, 05:20:29 PM
Quote from: madman71 on May 02, 2008, 05:06:07 PM
Quote from: dejiman on May 02, 2008, 04:40:10 PM
PLease indicate which file. is it the Sportal.template.php    ?

When you installed it it should have told you which files failed. Did you get any files that failed to install?  Those files that fail are usually the ones that need hand editing.

I had to hand edit these 2 files:

./Sources/ModSettings.php    
  ./Themes/yourtheme/index.template.php

the index.temp is the one in your 3party theme

But that is me. You might be different.  The installer should tell you which ones fail.

I got that.
Please post the code I am to Edit here please. so that I will imitate yours for my.
Title: Re: SimplePortal
Post by: cleanfiles on May 02, 2008, 05:23:44 PM
QuoteYou mean a block which shows where people are? Like the page whosonline?

Yeah thats what I was trying to say. :D
Title: Re: SimplePortal
Post by: madman71 on May 02, 2008, 05:27:03 PM
Quote from: dejiman on May 02, 2008, 04:40:10 PM
PLease indicate which file. is it the Sportal.template.php    ?
SOrry, didnt see your post where u got your errors.

ok, this is what i did.  I installed the mod and got those 2 errors, then i ran the mod zip file (the one you downloaded) here: http://sleepycode.com/PackageParser/index.php

the parser does not have 1.1.5 set up yet. You can try it with 1.1.4 to see if it work.

set operation to INSTALL
and set  to All Edits (default)

The only theme edits  tells you to edit your index temp.  This is incorrect.  Go with those settings above and see if it will work.  If it does work, ONLY EDIT the files that you got your error on.

in this case it will be yourtheme/ndex.template.php
and sources/ModSettings.php  i


edit: we just cant give you the code that we use from our files.  Everyone will more than likely have a different configuration. 
Title: Re: SimplePortal
Post by: madman71 on May 02, 2008, 05:42:02 PM
Quote from: [SiNaN] on May 02, 2008, 04:27:15 PM
Madman71;

For the first message: SPortal.php stands for the database queries, building up the arrays to show in template file. And SPortal.template.php file outputs the data you get with the SPortal.php. Also it includes the SPortal.english.php file, which includes the language variables. This is the simple page for the SMF.

The random attachment code will be a bit hard code for a starter but look at the codes below, if you can understand them:

function sp_randomattachpic()
{
global $modSettings, $scripturl, $db_prefix;

//Find max.
$dbresult = db_query("
SELECT ID_ATTACH
FROM {$db_prefix}attachments
ORDER BY ID_ATTACH DESC
LIMIT 1", __FILE__, __LINE__);

$max = mysql_fetch_assoc($dbresult);
$check = 0;

while($check == 0) {

//Random it.
$idpic = rand(1, $max['ID_ATTACH']);

// Find the pictures.
$request = db_query("
SELECT ID_ATTACH, ID_MEMBER, filename, width, height
FROM {$db_prefix}attachments
WHERE ID_MEMBER = '0' AND width <> 0 AND ID_ATTACH = $idpic
LIMIT 1", __FILE__, __LINE__);
$return = array();
while ($row = mysql_fetch_assoc($request))
{

//Fix for the height.
if($row['height'] > 50)
$height = '50';
else
$height = $row['height'];

//Fix for the width.
if($row['width'] > 50)
$width = '50';
else
$width = $row['width'];

//Build up the array.
$return[] = array(
'id' => $row['ID_ATTACH'],
'filename' => $row['filename'],
'image' => '<img src="' . $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=image" alt="" border="0" height="' . $width . '" width="' . $width . '" />',
);
}

mysql_free_result($request);

//Did you find what you search for?
if(!empty($return) || empty($max))
$check = 1;
}

//Output it! Rather simple, yeah? :P
foreach ($return as $attach) {
echo $attach['image'];
}
}


A simple code for displaying random image attachment.

asudhakar;

You can turn karma off from

Admin CP >> Features and Options >> Karma

You mean to include 2 board for the boardnews block?

Madman71;

I guess you have the GD module installed. So you should increase the thumbnail file size from the gallery options.

Dejiman;

Quote from: [SiNaN] on May 02, 2008, 04:27:15 PM
Madman71;

For the first message: SPortal.php stands for the database queries, building up the arrays to show in template file. And SPortal.template.php file outputs the data you get with the SPortal.php. Also it includes the SPortal.english.php file, which includes the language variables. This is the simple page for the SMF.

The random attachment code will be a bit hard code for a starter but look at the codes below, if you can understand them:

----------------------------------------------------------------------------------------







thanks sinan.
im gonna play with my trial forum this weekend
Title: Re: SimplePortal
Post by: madman71 on May 02, 2008, 05:49:25 PM
Sinan,

Yes, i do have the GD installed.  However, i do not have the option to change the size of the thumbnails in the Gallery only max file size and dimension
Max allowed image height:
Max allowed image width:

only those.

i'll look some more.  And thanks for everything

maybe i'll turn GD off

as of right now they are 55x75 in Width and Height :(
Title: Re: SimplePortal
Post by: dejiman on May 02, 2008, 06:04:46 PM
is any body answering me please? I need the adjusted code please for the SPORTAL thanks
Title: Re: SimplePortal
Post by: madman71 on May 02, 2008, 06:06:41 PM
Did you miss my post??

http://www.simplemachines.org/community/index.php?topic=227599.msg1528565#msg1528565
Title: Re: SimplePortal
Post by: ne.miguelito on May 02, 2008, 08:13:04 PM
give for more than a board?
Title: Re: SimplePortal
Post by: dejiman on May 02, 2008, 09:04:38 PM
Here is the site before SIMPLE PORTAL

SMF GOOD


THE SITE AFTER SIMPLE PORTAL

SMF BAD


Please am having difficulties editing my sportal.php  and index.template.php
Please give me step by step guidline to your own simple portal
Thanks
www.dejimanaire.com (http://www.dejimanaire.com)
Title: Re: SimplePortal
Post by: madman71 on May 02, 2008, 09:09:00 PM
Quote from: dejiman on May 02, 2008, 09:04:38 PM
Here is the site before SIMPLE PORTAL

SMF GOOD


THE SITE AFTER SIMPLE PORTAL

SMF BAD


Please am having difficulties editing my sportal.php  and index.template.php
Please give me step by step guidline to your own simple portal
Thanks
www.dejimanaire.com (http://www.dejimanaire.com)

again:
http://www.simplemachines.org/community/index.php?topic=227599.msg1528565#msg1528565
Title: Re: SimplePortal
Post by: dejiman on May 02, 2008, 09:17:10 PM
Thanks for your care so far.
www.dejimanaire.com (http://www.dejimanaire.com)
Title: Re: SimplePortal
Post by: [SiNaN] on May 03, 2008, 02:50:22 AM
Quote from: cleanfiles on May 02, 2008, 05:23:44 PM
QuoteYou mean a block which shows where people are? Like the page whosonline?

Yeah thats what I was trying to say. :D

I'll look at that code also.

Quote from: ne.miguelito on May 02, 2008, 08:13:04 PM
give for more than a board?

What do you mean?

Quote from: madman71 on May 02, 2008, 05:49:25 PM
Sinan,

Yes, i do have the GD installed.  However, i do not have the option to change the size of the thumbnails in the Gallery only max file size and dimension
Max allowed image height:
Max allowed image width:

only those.

i'll look some more.  And thanks for everything

maybe i'll turn GD off

as of right now they are 55x75 in Width and Height :(

I think you can change the thumbnail file size from ../Sources/Gallery.php

//Create thumbnail
require_once($sourcedir . '/Subs-Graphics.php');


After these codes, the thumbnail creation occurs and there are the sizes.

Do not turn of the GD. If you, your images will be awful when resized.

Quote from: dejiman on May 02, 2008, 09:17:10 PM
Thanks for your care so far.
www.dejimanaire.com (http://www.dejimanaire.com)

If you are still having difficult with installing the mod, please attach your;

./Themes/default/languages/ModSettings.english.php
./Themes/default/languages/index.english.php
./index.php
./Sources/Load.php
./Sources/ModSettings.php
./Themes/default/index.template.php

and I'll install the mod for you.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 03, 2008, 04:01:21 AM
HI SiNaN,

Great your post crossed over 1000, which shows your Good and Cool Communication with others.

I asked about Combining two board's news in the front panel of Simple Portal,

For Ex, In our site, board 23 and board 12 to show news in Simple Portal front page.

And you said about the Karma, i Our forum karma is already turned off. i does not want that to show in our Simple Portal side panel.

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: [SiNaN] on May 03, 2008, 04:41:44 AM
Thanks asudhakar. As I'm not a native speaker, sometimes I'm having difficulty in understanding the issues.

So for the karma issue:

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

Find and delete:

<img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /> ', $txt['sp-userkarma'], ': ',$memberContext[$member_id]['karma']['total'],'<br />

Hımmm, the second one about the board news is going to be a bit hard though. But okay, let's start...

../Sources/SPortal.php

Find and delete:

if ($board !== null)

$board = (int) $board;

elseif (isset($_GET['board']))

$board = (int) $_GET['board'];


Find and delete:

// Make sure guests can see this board.

$request = db_query("

SELECT ID_BOARD

FROM {$db_prefix}boards

WHERE " . ($board === null ? '' : "ID_BOARD = $board

AND ") . "FIND_IN_SET(-1, memberGroups)

LIMIT 1", __FILE__, __LINE__);

if (mysql_num_rows($request) == 0)

{

die($txt['smf_news_error2']);

}

list ($board) = mysql_fetch_row($request);

mysql_free_result($request);



Find:

WHERE ID_BOARD = $board

Replace:

WHERE ID_BOARD IN $board

../Sources/ModSettings.php

Find:

array('int', 'nnewsboard'),

Replace:

array('text', 'nnewsboard'),

And then set the news board as the format below from the Portal Settings;

(firstboardid, secondboardid, thirdboardid)

Example for your forum;

(23,12)
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 03, 2008, 05:11:34 AM
Thanks a lot SiNaN.

I will workout now.

And if am not wrong, have you checked out Our Arcade sidebar issue.

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: cleanfiles on May 03, 2008, 05:22:22 AM
Quote from: [SiNaN] on May 03, 2008, 02:50:22 AM
Quote from: cleanfiles on May 02, 2008, 05:23:44 PM
QuoteYou mean a block which shows where people are? Like the page whosonline?

Yeah thats what I was trying to say. :D

I'll look at that code also.

Thanks m8.
Title: Re: SimplePortal
Post by: ne.miguelito on May 03, 2008, 08:33:28 PM
Hello, good Mod, please can you help me?

In my SimplePortal page i want to put 30 messages in the Board News, and to the page not  be very big, i want to split those 30 mesagens in pages, like 5 in one page, did you understand me? Sorry my bad english.

Thanks for everyting.

[[]]
Title: Re: SimplePortal
Post by: ne.miguelito on May 03, 2008, 09:18:35 PM
Quote from: [SiNaN] on May 03, 2008, 04:41:44 AM
Thanks asudhakar. As I'm not a native speaker, sometimes I'm having difficulty in understanding the issues.

So for the karma issue:

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

Find and delete:

<img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /> ', $txt['sp-userkarma'], ': ',$memberContext[$member_id]['karma']['total'],'<br />

Hımmm, the second one about the board news is going to be a bit hard though. But okay, let's start...

../Sources/SPortal.php

Find and delete:

if ($board !== null)

$board = (int) $board;

elseif (isset($_GET['board']))

$board = (int) $_GET['board'];


Find and delete:

// Make sure guests can see this board.

$request = db_query("

SELECT ID_BOARD

FROM {$db_prefix}boards

WHERE " . ($board === null ? '' : "ID_BOARD = $board

AND ") . "FIND_IN_SET(-1, memberGroups)

LIMIT 1", __FILE__, __LINE__);

if (mysql_num_rows($request) == 0)

{

die($txt['smf_news_error2']);

}

list ($board) = mysql_fetch_row($request);

mysql_free_result($request);



Find:

WHERE ID_BOARD = $board

Replace:

WHERE ID_BOARD IN $board

../Sources/ModSettings.php

Find:

array('int', 'nnewsboard'),

Replace:

array('text', 'nnewsboard'),

And then set the news board as the format below from the Portal Settings;

(firstboardid, secondboardid, thirdboardid)

Example for your forum;

(23,12)


I try this, and work, but get a many errors an Forum Error Log...


another error is:

Undefined variable: score_poss
Ficheiro: /home/nemigue/public_html/Themes/default/languages/Stats.portuguese.php (main sub template - eval?)
Linha: 1439


when show de stats of the arcade:

Undefined variable: score_poss
Ficheiro: /home/nemigue/public_html/Themes/default/languages/Stats.portuguese.php (main sub template - eval?)
Linha: 1439 
Title: Re: SimplePortal
Post by: Manu.G on May 05, 2008, 02:21:43 AM
Hi,

yesterday in the evening I "switched" on the gallery block in the portal and I thought everything is working fine, but it doesn't.  :'(

When I wanted to check few minutes ago the forum, the portal was loading and loading. I didn't took a look at the time how long it needed, but it was long.
After the portal was loaded I saw in the gallery block this message:

Quote
Fatal error:  Maximum execution time of 30 seconds exceeded in /is/htdocs/.../.../.../Sources/Subs.php on line 321

After I switched off the gallery block everything is working fine again.  :-\

If you want you can take a look at our portal:
http://forum.arseniums.com
Title: Re: SimplePortal
Post by: [SiNaN] on May 05, 2008, 09:13:36 AM
Quote from: ne.miguelito on May 03, 2008, 08:33:28 PM
Hello, good Mod, please can you help me?

In my SimplePortal page i want to put 30 messages in the Board News, and to the page not  be very big, i want to split those 30 mesagens in pages, like 5 in one page, did you understand me? Sorry my bad english.

Thanks for everyting.

[[]]

That seems a bit challenging but I'll try.

What are the errors you get? Can you copy the errors that appear in the error log?

For the Arcade Block error;

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

Find:

foreach ($best_players as $players)

Add before:

$score_poss = 0;

Manu0372, there seem to be an infinite loop. I should check the codes. Then I'll post a reply.

And do you have Vbgamer's SMF Gallery mod installed?
Title: Re: SimplePortal
Post by: Manu.G on May 05, 2008, 03:05:24 PM
Yes I have installed the Gallery Lite (Version 1.8 ), atm I'm a to lazy to upgrade it,
but I will do it soon. ;)

I have a question, but it isn't that much important if it isn't possible.
We had once add the "Single Category" mod, but since we have the portal installed the mod won't work. I uninstalled it, but to be honest, I really loved this mod, cause our forum is having a lot of boards and in this way it was easy to check everything.
Do you think it's possible to make the mod working with the portal mod?
The problem was, when you clicked at the category name, the single category wasn't to see, you was end up in the portal, or was it in the forum itself :-?, I can't remember. ;)
Title: Re: SimplePortal
Post by: dejiman on May 05, 2008, 05:14:38 PM
Hey SiNaN,
Thanks so much for your effort I will as soon as possible send my necessary files when am ready to Install the Simple Portal.
Yours Truly
Aderibigbe Adedeji DAvid
Title: Re: SimplePortal
Post by: ne.miguelito on May 05, 2008, 08:53:00 PM
Well, I follow your steps and there are no more errors, this mod is very good, thanks for everything...

Can you do the pages? It´s very important, and I was very grateful...

Thanks one more time.

[[]]
Title: Re: SimplePortal
Post by: cleanfiles on May 06, 2008, 02:22:59 AM
Hey again,
I have a new little problem...I'm not sure if I should be posting this here or in the thread for the other mod.
I have Ad Managment installed and want to display a add tower down the side of all pages in the forum but I don't want it to display on the home page (the portal page).
It all works fine it just spoils the look of the portal, and I already have an add in the portal anyways....
Cheers.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 07, 2008, 06:49:36 AM
Hi SiNaN,

Hope you are fine, kindly check out http://forum.itacumens.com

And you said that , you will give me some fix to show my arcade on portal page.

Hope you have done it.

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: jerseyjoe on May 07, 2008, 07:32:11 PM
I using 1.1.5 default. I'm gettin a Test Failed error message for index.template.php

I am attaching it in hopes someone can tell me what is the problem.
Title: Re: SimplePortal
Post by: Manu.G on May 08, 2008, 02:31:16 AM
I hope it is ok, when I took a look at your index.template.php, but I have an important question.
The index.template you have add in your posting, is the current index.template of your forum? It's the index.template which is now at your server?

I checked it and modified it with the codes for the portal.

I won't say something wrong, but when the index.templete.php was the only file which caused trouble by installing and all others showed "Test successful" I think you can try to install the mod and ignore the error message
After you have installed the mode, load up the modified index.template and I think the portal will working fine in your forum.  :)
Sometimes I did it in this way and I never had any problems with it.

Or you can wait till the author of the mod checked your index.template. ;)

But never forget to back up your files before. ;)
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 08, 2008, 04:16:54 AM
Quote from: [SiNaN] on May 05, 2008, 09:13:36 AM
For the Arcade Block error;

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

Find:

foreach ($best_players as $players)

Add before:

$score_poss = 0;

Manu0372, there seem to be an infinite loop. I should check the codes. Then I'll post a reply.

And do you have Vbgamer's SMF Gallery mod installed?

Hi SiNaN,

I found this code in the top, could i use it for our forum to show the arcade block.

Waiting for your reply.

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: SimplePortal
Post by: jerseyjoe on May 08, 2008, 07:18:36 AM
Thank you Manu0372.

the template that I sent you was the one that was on my HD, not the one from my server. I was believing that the two files are the same, but it is possible they were not.

I replaced the file on the server with the one you modified. However, I  still get the warning error.

I will wait until the
Title: Re: SimplePortal
Post by: Manu.G on May 08, 2008, 11:27:49 AM
Quote from: jerseyjoe on May 08, 2008, 07:18:36 AM
Thank you Manu0372.

the template that I sent you was the one that was on my HD, not the one from my server. I was believing that the two files are the same, but it is possible they were not.

I replaced the file on the server with the one you modified. However, I  still get the warning error.

I will wait until the

Can you send me please the index.template from your sever?
You shouldn't load up the modified index.template before you have installed the
Simple Portal. Only after you have installed it.

I got sometimes error message too, most it was the index.template which was causing the problem. I set the forum into maintenance, installed the mod via
package manager, after this I replaced the index.template with the one I had modified manual. I never had any problems with it.
I never ignored error message for source files. When I got there error messages I most installed the mod manual. ;)
Title: Re: SimplePortal
Post by: jerseyjoe on May 08, 2008, 01:07:24 PM
The file version that is now on the server is the exact same one as provided by Manu0372 in attachment to his message.

I do not understand the logic of installing that file after the installation. The installation is stopped by a huge red warning that there is a problem with the file and it failed a test.

This warning was received with both the original version of the file and with the version of the fule supplied by Manu0372.

I attempted the installation. I was stopped by the warning. I then uploaded the file supplied by Manu0372 and tried the installation again. I got the same warning again so I have stopped.

I'm awaiting your further review and advice.

Thank you for you help.
Title: Re: SimplePortal
Post by: jerseyjoe on May 08, 2008, 01:30:39 PM
oops - now I  have a somewhat different problem.

After replacing the default file with the file from Manou and logging back in again, I encountered a log in error.

"Session verification failed. Please try logging out and back in again, and then try again."

I tried that and the message persisted.

Therefore, given that the only thing changed was the file, I restoed the original version of the file and uploaded it to the server.

I now can log in with out a problem.

AND (drum roll, please) . .  . . the SP installation passes the tests and I am returned success messages.

However, I still do not see how to turn the portal off and on. Where in the Admin CP can I do that?
Title: Re: SimplePortal
Post by: Perochak on May 08, 2008, 02:11:00 PM
Hi dear,

Nice Portal

could be used with SMF 2 .0 3.1??
Thanks
Title: Re: SimplePortal
Post by: jerseyjoe on May 08, 2008, 09:56:32 PM
I do not have

Admin CP >> Features and Options >> Portal Settings

The portal installs correctly - or at leasat the messages say it is - but I do not have Portal Settings in the Features and Options page.

Suggestions?
Title: Re: SimplePortal
Post by: †д∩αỷ ĎάПα on May 09, 2008, 08:23:01 PM
I have a problem because I want to use this mod in a different theme. I installed the theme and the mod, but what do I have to do with the new theme which doesn't have to link forum in the top bar?
Title: Re: SimplePortal
Post by: jerseyjoe on May 09, 2008, 11:23:43 PM
bump
Quote from: jerseyjoe on May 08, 2008, 09:56:32 PM
I do not have

Admin CP >> Features and Options >> Portal Settings

The portal installs correctly - or at leasat the messages say it is - but I do not have Portal Settings in the Features and Options page.

Suggestions?
Title: Re: SimplePortal
Post by: Manu.G on May 10, 2008, 05:11:35 AM
Quote from: jerseyjoe on May 08, 2008, 09:56:32 PM
I do not have

Admin CP >> Features and Options >> Portal Settings

The portal installs correctly - or at leasat the messages say it is - but I do not have Portal Settings in the Features and Options page.

Suggestions?

Is English the main language of your forum or do you use an other language?
Isn't English the main language, try to set the language in your profile to English and
check out if you can see then the Portal Settings
Admin CP >> Features and Options
Title: Re: SimplePortal
Post by: jerseyjoe on May 10, 2008, 06:07:36 AM
Thank you for the suggestion. I do have plain english set as the board language.

I definitely do not see the Portal Settings control.

I've temporarily disabled the package until I can resolve this issue.

I'm open to other suggestion. If you wish I can PM you server access.

Joe
Title: Re: SimplePortal
Post by: [SiNaN] on May 10, 2008, 09:38:10 AM
Returning back soon.
Title: Re: SimplePortal
Post by: sorosh1 on May 10, 2008, 12:02:59 PM
Can someone help me i have selected everything in my admin to show but i only shows me the things like you see in the image, i
dont know what to do. I look at the files (manualy) to see if everything is installed and it is all alright :(

Anybody a idea?
Title: Re: SimplePortal
Post by: jerseyjoe on May 10, 2008, 12:21:01 PM
Notice the message that says that you must allow Guests. I suspect that your forums are each configured so they can be read only by Registered Members.

Go back into the Admin control panel where the forums (Boards) are defined and make them readable by anyone.

I think that will then cause the portal to display what you expect.

Hope that helps.
Title: Re: SimplePortal
Post by: sorosh1 on May 10, 2008, 01:44:32 PM
Thank you very much for your quick repley jerseyjoe. I really appreciated your help.

HAHAHAAHAH the problem was something is the setting in admin 8)
I fixd it ;)

but thank you jerseyjoe again,

best regards,

sorosh

EDIT: I think that there is a problem with the Show Board News block: because that F**ck everything up ( atleast with me) (it doesnt show the others option like Show Latest Member block:, ect.

And (I) can't  selected al the options and save the settings at one, i had to click on every option ( like Show Latest Member block) and save it one by one.

I thought i maby helps, other people with the same problem

Further it is a awesome mod! thank you very much for this one!
Title: Re: SimplePortal
Post by: jerseyjoe on May 10, 2008, 08:15:53 PM
I wish to thank Manu0372 for his generous pesistence in solving the problem of the Portal Control not being visible.

Despite obscure errors on my installation he stayed on the problem until it was fixed.

Joe
Title: Re: SimplePortal
Post by: †д∩αỷ ĎάПα on May 11, 2008, 06:00:16 AM
I have a problem because I want to use this mod in a different theme. I installed the theme and the mod, but what do I have to do with the new theme which doesn't have to link 'forum' in the top bar?
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 11, 2008, 06:13:44 AM
Quote from: sorosh1 on May 10, 2008, 12:02:59 PM
Can someone help me i have selected everything in my admin to show but i only shows me the things like you see in the image, i
dont know what to do. I look at the files (manualy) to see if everything is installed and it is all alright :(

Anybody a idea?

Hi buddy,

i do have the same problem, you could not save anything under your admin - portal settings page.

Just look in form the begining of this post.

Because SiNaN(author of this mod) Rebuild a new code and sent me, which worked for me.

You could see the demo @ http://forum.itacumens.com where i am using Dilber Mc theme.

Hope you will check and solve the issue soon.
Title: Re: SimplePortal
Post by: madman71 on May 11, 2008, 08:08:07 PM
Sinan,

For the announcement box, you can  only put  text in  this field, correct? Is it possible to put html?
I want a clickable link here.

or would it be easier to just us an ad block in place of the announcement block?


thanks
Title: Re: SimplePortal
Post by: [SiNaN] on May 12, 2008, 03:25:19 AM
Apologises to the all of you for the delay. Unfortunately I'm I lot busy these days. You know; Finals...

Manu0372 (http://www.simplemachines.org/community/index.php?topic=227599.msg1532375#msg1532375)
For the gallery block, I forgot to empty the $max variable. I guess because of that you get the error. But this error could be get only if there is no picture in the gallery. Did you had?
For the mod you said about, that's SleePy's mod, I know it. It has the support of TP and we will use it, a small cheating. :P

Let's try;

index.php

Find:
cleanRequest();
$context = array();


Replace:

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


dejiman (http://www.simplemachines.org/community/index.php?topic=227599.msg1532556#msg1532556)
Always waiting dejiman.

ne.miguelito (http://www.simplemachines.org/community/index.php?topic=227599.msg1532770#msg1532770)
Added to my to do list.

cleanfiles (http://www.simplemachines.org/community/index.php?topic=227599.msg1532960#msg1532960)
In the index.template.php, take the codes ad mod outputs the ad between this ones:

Code (start) Select
if($current_action != 'home') {
Code (end) Select
}

asudhakar (http://www.simplemachines.org/community/index.php?topic=227599.msg1534630#msg1534630)
There seems no problem with the site now.
For the arcade block, can you provide me the link for downloading your version of arcade?

jerseyjoe (http://www.simplemachines.org/community/index.php?topic=227599.msg1535511#msg1535511)
The error, I guess, is about the actions array. I should change that in the next version. You continue installing and then make the changes manually.

Manu0372 (http://www.simplemachines.org/community/index.php?topic=227599.msg1535819#msg1535819)
Thanks for support.

asudhakar (http://www.simplemachines.org/community/index.php?topic=227599.msg1535887#msg1535887)
No, unfortunately that will not work for you. You are using a different version of arcade mod.

jerseyjoe (http://www.simplemachines.org/community/index.php?topic=227599.msg1536032#msg1536032)
Ignore the error while installing and make the changes manually. We can do that if you couldn't.

Manu0372 (http://www.simplemachines.org/community/index.php?topic=227599.msg1536237#msg1536237)
Exactly. Source files erros during a mod installation can cause the crash of your forum. The index.template.php file, specially, gives errors during the install of mods.

jerseyjoe (http://www.simplemachines.org/community/index.php?topic=227599.msg1536327#msg1536327)
You could do it like this:
-Back-up the index.template.php file of your forum.
-Replace the index.template.php file with an original one from a fresh package.
-Install the mod.
-Make the changes that are needed for your index.template.php for the back-up.
-Replace the back-up with the one you have in the site.

jerseyjoe (http://www.simplemachines.org/community/index.php?topic=227599.msg1536356#msg1536356)
Unfortunately, it doesn't have an option like that, where you can turn it on and off. It should appear after you install it. I'll add this feature in the next version.

perochak (http://www.simplemachines.org/community/index.php?topic=227599.msg1536395#msg1536395)
Waiting for the last tests to be made and packed.

jerseyjoe (http://www.simplemachines.org/community/index.php?topic=227599.msg1536836#msg1536836)
You should make the changes for your language files manually if you are not using English as your default language.

ssdt (http://www.simplemachines.org/community/index.php?topic=227599.msg1537793#msg1537793)
The package just makes the changes for the default theme. You should add a button manually to your theme with the href $scripturl . '?action=forum

jerseyjoe (http://www.simplemachines.org/community/index.php?topic=227599.msg1538098#msg1538098)
I came at last. Can you provide a link for your site after installing the mod?

sorosh1 (http://www.simplemachines.org/community/index.php?topic=227599.msg1538425#msg1538425)
You should a guest-visible board for the boardnews block.

jerseyjoe (http://www.simplemachines.org/community/index.php?topic=227599.msg1538445#msg1538445)
Thanks for the support Joe.

sorosh1 (http://www.simplemachines.org/community/index.php?topic=227599.msg1538514#msg1538514)
Can you attach your ../Sources/ModSettings.php file here, so that I can fix it for you?

jerseyjoe (http://www.simplemachines.org/community/index.php?topic=227599.msg1538791#msg1538791)
I thank him too.

ssdt (http://www.simplemachines.org/community/index.php?topic=227599.msg1539156#msg1539156)
Gave the answer above.

madman71 (http://www.simplemachines.org/community/index.php?topic=227599.msg1540090#msg1540090)
You can put html inside it.

Lastly, SimplePortal for 2.0 Beta 3.1 is ready now. I hope it will be released in a few days.
Title: Re: SimplePortal
Post by: Manu.G on May 12, 2008, 06:23:20 AM
Thanks for your help to make the single category mod working, but there is a problem.
I uninstalled it and now I can't install it again, cause the Load.php is causing trouble.
I asked the author of the single category mod for help, I hope I can use the mod again in our forum.

About the Gallery
Our Gallery is full with photos
Title: Re: SimplePortal
Post by: [SiNaN] on May 12, 2008, 06:34:37 AM
SimplePortal also changes the linktree. I think that's something about it. I'll look it again and return.

Can you try to activate the block again?
Title: Re: SimplePortal
Post by: Manu.G on May 12, 2008, 06:42:55 AM
I have activate the block again. ;)
The block isn't causing any troubles after activation, the problems are coming later.  :-\
Title: Re: SimplePortal
Post by: [SiNaN] on May 12, 2008, 08:24:57 AM
I also use that block in my forum and didn't get such an error yet. Did you use the Random Picture type before?

And attach your Load.php file so that I can see what's wrong with the Single Category mod.
Title: Re: SimplePortal
Post by: Manu.G on May 12, 2008, 08:30:11 AM
We used every time the "Latest Picture" :)
When I activated the Gallery block we don't have any problems, most the problems started a day later.

Load.php is add
Title: Re: SimplePortal
Post by: [SiNaN] on May 12, 2008, 08:50:37 AM
Quote from: Manu0372 on May 12, 2008, 08:30:11 AM
We used every time the "Latest Picture" :)
When I activated the Gallery block we don't have any problems, most the problems started a day later.

Really interesting. If it happens again, can you report it here?

Try the Load.php with the mod. Always back-up your files.
Title: Re: SimplePortal
Post by: Manu.G on May 12, 2008, 09:07:59 AM
Quote from: [SiNaN] on May 12, 2008, 08:50:37 AM
Quote from: Manu0372 on May 12, 2008, 08:30:11 AM
We used every time the "Latest Picture" :)
When I activated the Gallery block we don't have any problems, most the problems started a day later.

Really interesting. If it happens again, can you report it here?

Try the Load.php with the mod. Always back-up your files.

Sure I will inform you when the error will be there again.
I installed the mod with the Load.php you posted, thanks a lot for it. :D
I have test it, it works only, when you are in the category itself, but when you at the boardindex
and click at the categroy name, for example "ARSENIUM", you will end up in the portal.
This the link you get when you click at the category name: http://forum.arseniums.com/index.php/c,2.html (http://forum.arseniums.com/index.php/c,2.html)

This is the link you get when you are in the category itselfe and click there at the
category name ARSENIUM: http://forum.arseniums.com/index.php?action=forum;c=2

I think I stress you a lot with my requests.  :'(
Title: Re: SimplePortal
Post by: [SiNaN] on May 12, 2008, 09:10:34 AM
Can you provide a screenshot with what happens?
Title: Re: SimplePortal
Post by: Manu.G on May 12, 2008, 09:29:07 AM
Here are the screenshoots

Try to enter the category as single category
http://i244.photobucket.com/albums/gg4/angeleyes0372/smf/boardindex.jpg

Ends up in the portal
http://i244.photobucket.com/albums/gg4/angeleyes0372/smf/portal.jpg

In a board of a category and go back to the category as single category
http://i244.photobucket.com/albums/gg4/angeleyes0372/smf/category.jpg

Ends up in the category as single category
http://i244.photobucket.com/albums/gg4/angeleyes0372/smf/categoryitself.jpg

I hope it will help you.  :-\
Title: Re: SimplePortal
Post by: Manu.G on May 12, 2008, 10:57:06 AM
Quote from: jerseyjoe on May 10, 2008, 08:15:53 PM
I wish to thank Manu0372 for his generous pesistence in solving the problem of the Portal Control not being visible.

Despite obscure errors on my installation he stayed on the problem until it was fixed.

Joe

You're every time welcome. ;)
Btw I'm a woman and not a man ;)
Title: Re: SimplePortal
Post by: sorosh1 on May 12, 2008, 11:00:29 AM
[SiNaN] You asked me for modsetting.php. But the mod is working great. only a few problems:

- I think that there is a problem with the Show Board News block: because that F**ck everything up ( atleast with me) (it doesnt show the other options like Show Latest Member block:, ect. It only shows then the left side like: Users Online ect.

- And (I) can't  selected al the options and save the settings at one, i had to click on every option ( like Show Latest Member block) and save it one by one.

- Top poll shows me this: Poll id entered is not a valid id.

if you want my modsettings for that then i edit it here...?
I hope that you can help me with these problems, further thanks for the mod! :P :D ;)
Title: Re: SimplePortal
Post by: Marcus Forsberg on May 12, 2008, 11:01:06 AM
Quote from: Manu0372 on May 12, 2008, 09:29:07 AM
Here are the screenshoots

Try to enter the category as single category
http://i244.photobucket.com/albums/gg4/angeleyes0372/smf/boardindex.jpg

Ends up in the portal
http://i244.photobucket.com/albums/gg4/angeleyes0372/smf/portal.jpg

In a board of a category and go back to the category as single category
http://i244.photobucket.com/albums/gg4/angeleyes0372/smf/category.jpg

Ends up in the category as single category
http://i244.photobucket.com/albums/gg4/angeleyes0372/smf/categoryitself.jpg

I hope it will help you.  :-\

This has nothing to do whit the topic, but how did you get that look at your browser?
Title: Re: SimplePortal
Post by: Manu.G on May 12, 2008, 11:07:21 AM
Quote from: MTF95 on May 12, 2008, 11:01:06 AM
This has nothing to do whit the topic, but how did you get that look at your browser?

What do you mean?  :-\
Title: Re: SimplePortal
Post by: Marcus Forsberg on May 12, 2008, 11:10:35 AM
Your Internet broswer (Firefox) is black and red and has special shapes and so.
How did you do that?
Title: Re: SimplePortal
Post by: Manu.G on May 12, 2008, 11:18:43 AM
Ah, it's an add on for Firefox. ;)
https://addons.mozilla.org/de/firefox/search?q=Red+Shift&cat=2%2C0
Title: Re: SimplePortal
Post by: Marcus Forsberg on May 12, 2008, 11:31:16 AM
thanks
Title: Re: SimplePortal
Post by: Manu.G on May 12, 2008, 12:16:59 PM
Quote from: [SiNaN] on May 12, 2008, 08:50:37 AM
Really interesting. If it happens again, can you report it here?

The problems started with the Gallery block.

That's the message which is shown in the Gallery block
QuoteFatal error:  Maximum execution time of 30 seconds exceeded in /.../.../.../.../.../Sources/Subs.php on line 273

The problem with the single category is solved. :D
I forgot to add the code you showed before. (http://forum.arseniums.com/Smileys/default/40.gif)

After I replaced
cleanRequest();
$context = array();


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


it works perfect! ;D
Title: Re: SimplePortal
Post by: [SiNaN] on May 13, 2008, 02:35:17 AM
Quote from: sorosh1 on May 12, 2008, 11:00:29 AM
[SiNaN] You asked me for modsetting.php. But the mod is working great. only a few problems:

- I think that there is a problem with the Show Board News block: because that F**ck everything up ( atleast with me) (it doesnt show the other options like Show Latest Member block:, ect. It only shows then the left side like: Users Online ect.

- And (I) can't  selected al the options and save the settings at one, i had to click on every option ( like Show Latest Member block) and save it one by one.

- Top poll shows me this: Poll id entered is not a valid id.

if you want my modsettings for that then i edit it here...?
I hope that you can help me with these problems, further thanks for the mod! :P :D ;)

First of all let's solve the Portal Settings issue. Can you take a back-up of your ModSettings.php file and change it with the one linked below?

http://www.simplemachines.org/community/index.php?action=dlattach;topic=227599.0;attach=54832

Then try changing some settings from portal settings and post the result here.

Manu0372, glad you've solved it. For the gallery issue, let's try this:

../Sources/SPortal.php

Find:

if(!empty($gallery_picture) || $modSettings['gallerytype'] == 0 || empty($max))

Replace:

if(!empty($gallery_picture) || $modSettings['gallerytype'] != 0 || empty($max))
Title: Re: SimplePortal
Post by: sorosh1 on May 13, 2008, 03:58:04 AM
Quote[SiNaN] You asked me for modsetting.php. But the mod is working great. only a few problems:

- I think that there is a problem with the Show Board News block: because that F**ck everything up ( atleast with me) (it doesnt show the other options like Show Latest Member block:, ect. It only shows then the left side like: Users Online ect.

- And (I) can't  selected al the options and save the settings at one, i had to click on every option ( like Show Latest Member block) and save it one by one.

- Top poll shows me this: Poll id entered is not a valid id.

if you want my modsettings for that then i edit it here...?
I hope that you can help me with these problems, further thanks for the mod!   


First of all let's solve the Portal Settings issue. Can you take a back-up of your ModSettings.php file and change it with the one linked below?

http://www.simplemachines.org/community/index.php?action=dlattach;topic=227599.0;attach=54832

Then try changing some settings from portal settings and post the result here.

Thanks for your repley i backup the modsettings.php and replaced it with yours but still like before i get all the setting exept the Show Board News block setting? I included 2 pictures so you can see what i mean:

(and all my geust and user have all premissions)(dont no why i get this message:You cannot specify a board that doesn't allow guests. Please check the board ID before trying again.)
Title: Re: SimplePortal
Post by: [SiNaN] on May 13, 2008, 04:03:56 AM
Can you provide me an admin account via pm?
Title: Re: SimplePortal
Post by: sorosh1 on May 13, 2008, 04:12:55 AM
just send it  by pm;)
Title: Re: SimplePortal
Post by: [SiNaN] on May 13, 2008, 04:27:02 AM
Just solved and sent the pm.
Title: Re: SimplePortal
Post by: sorosh1 on May 13, 2008, 04:31:35 AM
I want to thank [SiNaN] for his help and taking time to fix my problems :D
Title: Re: SimplePortal
Post by: TW1ST3D on May 13, 2008, 08:15:02 PM
[SiNaN] , First and Foremost.........Great Mod. I haven't had any issues that I could not clear up by myself.

I have one request of you , If you have the time.  On my forum I use the treasury Mod for Donations from Forum members and I would very much like to add a block that shows the Donation Block. The mod already has a configuration section that adjusts it for a TP sideblock. Can you figure out how to add this block in Simple Portal ?

Thanks in Advance , and Thank you again for such a Great Mod !!

~TW1ST3D
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 14, 2008, 03:56:19 AM
Quote from: [SiNaN] on May 12, 2008, 03:25:19 AM

asudhakar (http://www.simplemachines.org/community/index.php?topic=227599.msg1534630#msg1534630)
There seems no problem with the site now.
For the arcade block, can you provide me the link for downloading your version of arcade?


Hi SiNaN,
I am using the arcade block downloaded from Ericsworld Download page (http://www.ericsworld.eu/f2/index.php?PHPSESSID=f9c53ae0618c3d5f381b3c3a3d0a1db6&action=tpmod;dl=0) and here is the direct download link to the arcade, Download Here (http://www.ericsworld.eu/f2/index.php?action=tpmod;dl=get76).

Check out and comeup with a Arcade block for my forum's simple portal which shows the High Scores list, Latest Game played, todays game etc.

I to found the Erics world give all the additional block for TP Version,
Hope this will be so useful to work for converting to simple portal block, Check out  this page (http://www.ericsworld.eu/f2/index.php?action=tpmod;dl=cat45)

- A.SK
Title: Re: SimplePortal
Post by: [SiNaN] on May 14, 2008, 05:59:50 AM
Quote from: TW1ST3D on May 13, 2008, 08:15:02 PM
[SiNaN] , First and Foremost.........Great Mod. I haven't had any issues that I could not clear up by myself.

I have one request of you , If you have the time.  On my forum I use the treasury Mod for Donations from Forum members and I would very much like to add a block that shows the Donation Block. The mod already has a configuration section that adjusts it for a TP sideblock. Can you figure out how to add this block in Simple Portal ?

Thanks in Advance , and Thank you again for such a Great Mod !!

~TW1ST3D

Will do it. Please remind me tomorrow via pm.

You too, asudhakar. Please remind again tomorrow.
Title: Re: SimplePortal
Post by: Manu.G on May 14, 2008, 08:34:44 AM
Hi [SiNaN],

is it possible to make the mod "Member Color Link" http://custom.simplemachines.org/mods/index.php?mod=111 working in the portal too? (http://forum.arseniums.com/Smileys/default/5.gif)

Thanks in advance
Manu
Title: Re: SimplePortal
Post by: Matthew Schenker on May 14, 2008, 08:39:36 AM
Good Morning,
I like the idea of this!  I've been looking for an alternative to TinyPortal for some time, and maybe this is it.  I've been looking through the posts in this discussion, but I'm wondering if people could offer their opinions about what makes SimplePortal better or different from TinyPortal.
Thanks for doing this!
Matt
Title: Re: SimplePortal
Post by: [SiNaN] on May 14, 2008, 09:02:25 AM
Quote from: Manu0372 on May 14, 2008, 08:34:44 AM
Hi [SiNaN],

is it possible to make the mod "Member Color Link" http://custom.simplemachines.org/mods/index.php?mod=111 working in the portal too? (http://forum.arseniums.com/Smileys/default/5.gif)

Thanks in advance
Manu

Remind me after 3 days Manu, I'll do it. Not so hard because.

Quote from: Matthew Schenker on May 14, 2008, 08:39:36 AM
Good Morning,
I like the idea of this!  I've been looking for an alternative to TinyPortal for some time, and maybe this is it.  I've been looking through the posts in this discussion, but I'm wondering if people could offer their opinions about what makes SimplePortal better or different from TinyPortal.
Thanks for doing this!
Matt

Good morning for you too. The difference is so simple: it is just "Simple" considered to the TP. People say that it seems visually better than TP but I can not say anything about this. But of course, this simplicity brings some disadvantages like causing it to be a very few featured portal system.
Title: Re: SimplePortal
Post by: Matthew Schenker on May 14, 2008, 02:00:04 PM
[SiNaN],
I'll have to install it in my test forum and give it a try!
Thanks for your hard work on this.
Matt
Title: Re: SimplePortal
Post by: 5teady on May 15, 2008, 02:18:41 PM
It wont work for me, i get this when i try to install it...

6. Execute Modification ./Themes/default/index.template.php Test failed
Title: Re: SimplePortal
Post by: †д∩αỷ ĎάПα on May 15, 2008, 04:44:31 PM
Why is mine coming out like this? I selected all the blocks but it doesn't come up.
Title: Re: SimplePortal
Post by: TW1ST3D on May 15, 2008, 05:58:42 PM
Quote from: 5teady on May 15, 2008, 02:18:41 PM
It wont work for me, i get this when i try to install it...

6. Execute Modification ./Themes/default/index.template.php Test failed

Just run it through the Package Parser and Manually edit the file that failed. Just make double-Damn Sure that you backup the file that you are Manually Editing
Title: Re: SimplePortal
Post by: TW1ST3D on May 15, 2008, 06:01:07 PM
Quote from: ssdt on May 15, 2008, 04:44:31 PM
Why is mine coming out like this? I selected all the blocks but it doesn't come up.

the board that you selected doesn't have all the permissions checked. ( check in your board Permissions)

and if you are wondering about "text to show" well , try typing something in the little box on the portal settings page.
Title: Re: SimplePortal
Post by: 5teady on May 15, 2008, 06:21:04 PM
Quote from: TW1ST3D on May 15, 2008, 05:58:42 PM
Quote from: 5teady on May 15, 2008, 02:18:41 PM
It wont work for me, i get this when i try to install it...

6. Execute Modification ./Themes/default/index.template.php Test failed





Just run it through the Package Parser and Manually edit the file that failed. Just make double-Damn Sure that you backup the file that you are Manually Editing

I was going to just finish the install and manually edit the file but...

Where do i find the code to edit?


Title: Re: SimplePortal
Post by: TW1ST3D on May 15, 2008, 07:28:21 PM
when you run it through the Package Parser , it will give you all the edits. Simply find the Edit that failed on installation and manually edit it in
Title: Re: SimplePortal
Post by: [SiNaN] on May 16, 2008, 04:35:22 AM
Quote from: asudhakar on May 14, 2008, 03:56:19 AM
Hi SiNaN,
I am using the arcade block downloaded from Ericsworld Download page (http://www.ericsworld.eu/f2/index.php?PHPSESSID=f9c53ae0618c3d5f381b3c3a3d0a1db6&action=tpmod;dl=0) and here is the direct download link to the arcade, Download Here (http://www.ericsworld.eu/f2/index.php?action=tpmod;dl=get76).

Check out and comeup with a Arcade block for my forum's simple portal which shows the High Scores list, Latest Game played, todays game etc.

I to found the Erics world give all the additional block for TP Version,
Hope this will be so useful to work for converting to simple portal block, Check out  this page (http://www.ericsworld.eu/f2/index.php?action=tpmod;dl=cat45)

- A.SK

The TP blocks are not suitable for the Arcade version you use. If you find the suitable TP block codes, just put the codes in to the one of the Advertise blocks and select "PHP" for the type.
Title: Re: SimplePortal
Post by: ne.miguelito on May 16, 2008, 11:35:21 AM
Quote from: [SiNaN] on May 14, 2008, 05:59:50 AM
Quote from: TW1ST3D on May 13, 2008, 08:15:02 PM
[SiNaN] , First and Foremost.........Great Mod. I haven't had any issues that I could not clear up by myself.

I have one request of you , If you have the time.  On my forum I use the treasury Mod for Donations from Forum members and I would very much like to add a block that shows the Donation Block. The mod already has a configuration section that adjusts it for a TP sideblock. Can you figure out how to add this block in Simple Portal ?

Thanks in Advance , and Thank you again for such a Great Mod !!

~TW1ST3D

Will do it. Please remind me tomorrow via pm.

You too, asudhakar. Please remind again tomorrow.

I am also interested...
Title: Re: SimplePortal
Post by: TW1ST3D on May 16, 2008, 11:06:38 PM
[SiNaN] ,

I found a way to Put the SMF Treasury Donations Block into Simple Portal. I just Borrowed the .php file (attached) from TP then placed it in
my main forum (root) directory and then placed this code ( again borrowed from TP) into the right side advertisement block....



global $boarddir;
include("$boarddir/treasury/DonationBlock.php");

then checked "php" (not HTML) in selection box and

and Voila !! it works !!

Now can I get some direction to the .php file that contains the Blocks? I want to change the heading "Advertise" to Treasury or Donations.
Thanks Again !

Regards,
TW1ST3D
Title: Re: SimplePortal
Post by: _Anthony_ on May 16, 2008, 11:52:22 PM
Interesting but nice.
Title: Re: SimplePortal
Post by: Manu.G on May 17, 2008, 02:59:49 AM
Quote from: TW1ST3D on May 16, 2008, 11:06:38 PM
Now can I get some direction to the .php file that contains the Blocks? I want to change the heading "Advertise" to Treasury or Donations.
Thanks Again !

Regards,
TW1ST3D

To change the heading "Advertise" to "Treasury" or "Donations" open in the language directory the SPortal.english.php
search for
$txt['sp-advertise'] = 'Advertise';
replease it with
$txt['sp-advertise'] = 'Treasury';
or
$txt['sp-advertise'] = 'Donations';

;)
Title: Re: SimplePortal
Post by: [SiNaN] on May 17, 2008, 07:58:34 AM
You can use the TP block codes with the SimplePortal. Just copy the codes and paste into one of the Advertise blocks and select "PHP" as the type.

You can add more blocks. Here you can see how:

http://www.simplemachines.org/community/index.php?topic=227599.msg1523984#msg1523984
Title: Re: SimplePortal
Post by: ne.miguelito on May 17, 2008, 10:05:50 AM
Thank you, to work very well...
Title: Re: SimplePortal
Post by: sorosh1 on May 17, 2008, 03:22:24 PM
[SiNaN] where can i find the TP block codes...? And you told about a update for this mod...when will it be out? ( just asking, no pressure)
Title: Re: SimplePortal
Post by: [SiNaN] on May 18, 2008, 09:36:18 AM
Quote from: sorosh1 on May 17, 2008, 03:22:24 PM
[SiNaN] where can i find the TP block codes...? And you told about a update for this mod...when will it be out? ( just asking, no pressure)

http://www.tinyportal.net/index.php?topic=4983.0

SimplePortal 2.0 has to wait until the of my finals. SimplePorta for SMF 2.0 Beta 3.1 ready, just waiting to be packed.
Title: Re: SimplePortal
Post by: codnerd on May 18, 2008, 11:43:27 AM
Please make this work with 2.0.3.1 or whatever is the newest. Thx!
Title: Re: SimplePortal
Post by: Eliana Tamerin on May 18, 2008, 11:45:56 AM
He is working on it, patience, please.

You have to realize that SiNaN is currently in school, which is nearing finals time. As I'm sure you know, that is a difficult and stressful time for any student, and any ties SiNaN has to SMF are purely voluntary, and as such are probably on a lower priority than his schoolwork and study for his final exams.
Title: Re: SimplePortal
Post by: darkusmaster on May 18, 2008, 11:51:43 AM
I have a super big favor to ask.  Can some one manually add this for me?  Every time I try to do it though my site it says at the ModSetting it has an issue and will not install properly.  If not that is ok thanks. 

Title: Re: SimplePortal
Post by: Manu.G on May 18, 2008, 12:01:09 PM
Quote from: darkusmaster on May 18, 2008, 11:51:43 AM
I have a super big favor to ask.  Can some one manually add this for me?  Every time I try to do it though my site it says at the ModSetting it has an issue and will not install properly.  If not that is ok thanks.

If you want, I can try to help you. ;)
Title: Re: SimplePortal
Post by: sorosh1 on May 18, 2008, 02:44:34 PM
Quote
http://www.tinyportal.net/index.php?topic=4983.0

SimplePortal 2.0 has to wait until the of my finals. SimplePorta for SMF 2.0 Beta 3.1 ready, just waiting to be packed.

Thank you, and succes with you finals! I have my finals to, in 2 days for 2 weeks long >:( :P
Title: Re: SimplePortal
Post by: mymktp1 on May 19, 2008, 03:49:18 PM
Hi, I tried installing this mod for SMF 1.1.5 and for some reason when the test install runs it says this :


Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
2. Execute Modification ./Themes/default/languages/index.english.php Test successful
3. Execute Modification ./index.php Test successful
4. Execute Modification ./Sources/Load.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Themes/default/index.template.php Test failed  
7. Extract File ./Sources/SPortal.php 
8. Extract File ./Themes/default/SPortal.template.php 
9. Extract File ./Themes/default/languages/SPortal.english.php 
10. Extract File ./Themes/default/images/arrow.gif 
11. Extract File ./Themes/default/images/dot.gif 
12. Execute Code database.php



I tried Installing it anyways... and it seemed to display okay... however , I wanted to make some modifications by going to Configurations -> features and options settings and I got this error right away :

Fatal error: Cannot redeclare modifysportalsettings() (previously declared in /hsphere/local/home/kitping/timsradio.net/smf/Sources/ModSettings.php:325) in /hsphere/local/home/kitping/timsradio.net/smf/Sources/ModSettings.php on line 388

Could someone please help me ? or what might be going wrong?
Title: Re: SimplePortal
Post by: ruaduck on May 19, 2008, 04:41:43 PM
it is showing me that Modsettings.php and index.template.php  test failed.  I'm running 1.1.5 and all that fun jazz.  you think it might be all my other mods i have in it that won't allow me to autoinstall this?
Title: Re: SimplePortal
Post by: TW1ST3D on May 19, 2008, 09:05:49 PM
Quote from: ruaduck on May 19, 2008, 04:41:43 PM
it is showing me that Modsettings.php and index.template.php  test failed.  I'm running 1.1.5 and all that fun jazz.  you think it might be all my other mods i have in it that won't allow me to autoinstall this?

Just Manually edit those two files in via FTP..................and then run the package installer. Just ignore the failed tests. Be sure to backup those files that you edit !!
Title: Re: SimplePortal
Post by: mymktp1 on May 20, 2008, 06:02:48 AM
Hi, I got it working and installed ... I was just wondering if there was a way to  to have board news display the posts from multiple  forums instead of just one?

*** I have ssi_boardNews Multiple Boards MOD installed ...


any advice?
Title: Re: SimplePortal
Post by: ruaduck on May 20, 2008, 08:02:50 AM
Quote from: TW1ST3D on May 19, 2008, 09:05:49 PM
Quote from: ruaduck on May 19, 2008, 04:41:43 PM
it is showing me that Modsettings.php and index.template.php  test failed.  I'm running 1.1.5 and all that fun jazz.  you think it might be all my other mods i have in it that won't allow me to autoinstall this?

Just Manually edit those two files in via FTP..................and then run the package installer. Just ignore the failed tests. Be sure to backup those files that you edit !!

What are the codes that go into those two files?  And where do i put them? I don't know coding very well.
Title: Re: SimplePortal
Post by: [SiNaN] on May 20, 2008, 09:02:04 AM
Quote from: mymktp1 on May 20, 2008, 06:02:48 AM
Hi, I got it working and installed ... I was just wondering if there was a way to  to have board news display the posts from multiple  forums instead of just one?

*** I have ssi_boardNews Multiple Boards MOD installed ...


any advice?

The secon issue here:
http://www.simplemachines.org/community/index.php?topic=227599.msg1529011#msg1529011

Quote from: ruaduck on May 20, 2008, 08:02:50 AM
What are the codes that go into those two files?  And where do i put them? I don't know coding very well.

Here you can see the changes:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=53651;smf_version=1.1.5

If you can't do it, I can help you.
Title: Re: SimplePortal
Post by: mymktp1 on May 20, 2008, 01:50:31 PM
thank you worked perfectly~!
Title: Re: SimplePortal
Post by: ruaduck on May 20, 2008, 03:08:45 PM
i just looked in my default directory of my themes and i don' thave a modsettings.php file in there... should i?
Title: Re: SimplePortal
Post by: ruaduck on May 20, 2008, 03:17:17 PM
Quote from: ruaduck on May 20, 2008, 03:08:45 PM
i just looked in my default directory of my themes and i don' thave a modsettings.php file in there... should i?
^
|
|
Me = Dumbass.  I looked in themes and not sources.
Title: Re: SimplePortal
Post by: [SiNaN] on May 20, 2008, 03:28:47 PM
Okay, try it. If you can not do it, attach your file here.
Title: Re: SimplePortal
Post by: Eliana Tamerin on May 20, 2008, 03:30:22 PM
It's ok, we all make those mistakes. I myself do sometimes when mods instruct me to install on BoardIndex.php and BoardIndex.template.php. Sometimes I go looking for source code in the template file. :P
Title: Re: SimplePortal
Post by: ruaduck on May 20, 2008, 03:35:49 PM
i wasn't able to get the whole mod to work correctly with my forums.  It wouldn't add the stuff in the admin and in the blocks there were no letters... it wouldn't put them in.

I modified my modsettings.php though. i'll post that up to see if that might have been the cause.  But overall i like the format look. just wasn't able to get it to work :(
Title: Re: SimplePortal
Post by: [SiNaN] on May 20, 2008, 03:41:42 PM
Let's try this then.
Title: Re: SimplePortal
Post by: ruaduck on May 20, 2008, 03:49:33 PM
on my admin cp i don't get the  protal settings of  Admin CP >> Features and Options >> Portal Settings

I have not yet edited my index.template.php  but does that effect the admin cp?

Also all the words next to any of the numbers    (this is how it would look descriptively.     on the left you would  have a dot. middle words. then a colon. then number.  I don't have the middle words.)

I have included the two themes i use.  First is the default one and the other is the Main theme of my website. Starlight Theme by Rebelrose
Title: Re: SimplePortal
Post by: [SiNaN] on May 20, 2008, 03:53:12 PM
Quote from: ruaduck on May 20, 2008, 03:49:33 PM
on my admin cp i don't get the  protal settings of  Admin CP >> Features and Options >> Portal Settings

I have not yet edited my index.template.php  but does that effect the admin cp?

Also all the words next to any of the numbers    (this is how it would look descriptively.     on the left you would  have a dot. middle words. then a colon. then number.  I don't have the middle words.)

I have included the two themes i use.  First is the default one and the other is the Main theme of my website. Starlight Theme by Rebelrose

What is your forum's language? If it is English, do you use utf-8?
Title: Re: SimplePortal
Post by: ruaduck on May 20, 2008, 04:22:15 PM
i found out why my admin is not working.  my language folder has two differeny types of language files.  I had to modify ModSettings.english-utf8.php  not  ModSettings.english.php    and modify  index.english-utf8.php   not  index.english.php   

now only to figure out how to get my dang main page looking good :)
Title: Re: SimplePortal
Post by: ruaduck on May 20, 2008, 04:40:39 PM
this is how my forum is looking as of the moment
Title: Re: SimplePortal
Post by: [SiNaN] on May 20, 2008, 05:31:47 PM
So install the package linked below:

http://www.simplemachines.org/community/index.php?action=dlattach;topic=227599.0;attach=54116

Important: DO NOT UNINSTALL SIMPLEPORTAL. JUST INSTALL THIS PACKAGE AFTER YOU INSTALL THE SIMPLEPORTAL.
Title: Re: SimplePortal
Post by: ruaduck on May 20, 2008, 05:41:43 PM
thanks. works like a charm now :)
Title: Re: SimplePortal
Post by: cleanfiles on May 20, 2008, 10:03:32 PM
Hello again guys.
I have another quick question.
I have made a custom block for my chat (saving as php) and it works good, the problem I have is that I want the chat to be hidden from guests so I tried to use this code as it has worked for me on custom pages.

if ($context['user']['is_guest'])
die('<center><b>Please login to chat.</b></center>');
else
<--And My Chat Code Goes Here-->


It works fine and hides the chat from guests but it also hides all the blocks that come after the custom block, see pics.

When logged in;
(http://cp72.org/temp/images/shotA.png)


When logged out;
(http://cp72.org/temp/images/shotB.png)

I'm guessing that the blocks are being hidden and its a simple matter of ending the if statement but my understanding of php is very limited, any help would be appreciated.
Thanks.
Title: Re: SimplePortal
Post by: [SiNaN] on May 20, 2008, 10:32:37 PM
If you use die() the rest of the code will die. :P

Use echo instead. Like;

if ($context['user']['is_guest'])
     echo '<center><b>Please login to chat.</b></center>';
else
     <--And My Chat Code Goes Here-->
Title: Re: SimplePortal
Post by: cleanfiles on May 20, 2008, 10:37:35 PM
I knew it would be something easy to fix, thanks again [SiNaN] :)
And thanks to all who worked out how to add the Treasury block that works great too.
Title: Re: SimplePortal
Post by: ruaduck on May 21, 2008, 06:22:16 PM
is there a way to make the side bar have this (*picture attached) as one of the blocks?  I am running out of room on my top toolbar for all the things i am adding and all the pages i am adding.
Title: Re: SimplePortal
Post by: [SiNaN] on May 22, 2008, 04:22:32 AM
Why not? Just write here the links and I'll give you the codes.
Title: Re: SimplePortal
Post by: ruaduck on May 22, 2008, 09:21:26 AM
CKS - block name
Forum - action=forum
Guild Rules - action=GuildRules
Join CKS - action=joincks
Roster - http://my.uo.com/cgi-bin/guilds.pl?g=88e312adc493d1b2:6
Arcade - action=arcade
Gallery - action=gallery


Those are the links i'm looking for at the moment.  But once i get code for the first few i'm sure i can recreate it pretty easy. Its just getting everything set up to show the block and the first link i would have trouble with.  I would want it to be the first block on the left side of the page.
Title: Re: SimplePortal
Post by: [SiNaN] on May 22, 2008, 09:40:43 AM
Here is your code:

$show_menu = 1; //Set 0 to not show
$menu_label = 'Site Menu'; //Define the block name

if($show_menu)
{
echo '
<!-- Menu Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $menu_label, '</td>
</tr>
<tr class="windowbg"><td>
<table align="center">
<tr>
<td align="center">';
echo '
<ul>
<li><a href="block name">CKS</a></li>
<li><a href=" . $scripturl . '?action=forum">Forum</a></li>
<li><a href=" . $scripturl . '?action=GuildRules">Guild Rules</a></li>
<li><a href=" . $scripturl . '?action=joincks">Join CKS</a></li>
<li><a href="http://my.uo.com/cgi-bin/guilds.pl?g=88e312adc493d1b2:6">Roster</a></li>
<li><a href=" . $scripturl . '?action=arcade">Arcade</a></li>
<li><a href=" . $scripturl . '?action=gallery">Gallery</a></li>
</ul>';
echo '
</td>
</tr>
</table>
</div>
<br />';
}


Add this code int SPortal.template.php to where you want to show it.

If you want to add it before the user block, add the codes before:

if($modSettings['showuser'])

Please recheck the urls. Hope it will help you.
Title: Re: SimplePortal
Post by: ruaduck on May 22, 2008, 10:03:51 AM
i can't get it to show no matter where i put it.  left side, right side, under users, over users.
Title: Re: SimplePortal
Post by: [SiNaN] on May 22, 2008, 10:05:07 AM
Hımmm, use this code then:

$show_menu = 1; //Set 0 to not show
$menu_label = 'Site Menu'; //Define the block name

if($show_menu == 1)
{
echo '
<!-- Menu Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $menu_label, '</td>
</tr>
<tr class="windowbg"><td>
<table align="center">
<tr>
<td align="center">';
echo '
<ul>
<li><a href="block name">CKS</a></li>
<li><a href=" . $scripturl . '?action=forum">Forum</a></li>
<li><a href=" . $scripturl . '?action=GuildRules">Guild Rules</a></li>
<li><a href=" . $scripturl . '?action=joincks">Join CKS</a></li>
<li><a href="http://my.uo.com/cgi-bin/guilds.pl?g=88e312adc493d1b2:6">Roster</a></li>
<li><a href=" . $scripturl . '?action=arcade">Arcade</a></li>
<li><a href=" . $scripturl . '?action=gallery">Gallery</a></li>
</ul>';
echo '
</td>
</tr>
</table>
</div>
<br />';
}
Title: Re: SimplePortal
Post by: ruaduck on May 22, 2008, 10:10:25 AM
still nothing :(
Title: Re: SimplePortal
Post by: ruaduck on May 22, 2008, 10:32:30 AM
is there a way to add in a modsetting so that we can just say if ($modSettings['cksmenu'])    then the code instead of trying to use show_menu?
Title: Re: SimplePortal
Post by: markvon on May 22, 2008, 11:07:43 AM
hi i am using smf 1.15 and when i try to install simple portal, i get the following error.

6.     Execute Modification     ./Themes/default/index.template.php     Test failed
Title: Re: SimplePortal
Post by: cleanfiles on May 22, 2008, 11:27:10 PM
Wow I will be trying to add this menu block too, I too am running out of room up the top.:)
Title: Re: SimplePortal
Post by: [SiNaN] on May 23, 2008, 04:13:10 AM
Quote from: ruaduck on May 22, 2008, 10:32:30 AM
is there a way to add in a modsetting so that we can just say if ($modSettings['cksmenu'])    then the code instead of trying to use show_menu?

That's not because of that. I revised the codes, can you try this -I tried, working-:

$show_menu = 1; //Set 0 to not show
$menu_label = 'Site Menu'; //Define the block name

if($show_menu)
{
echo '
<!-- Menu Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $menu_label, '</td>
</tr>
<tr class="windowbg">
<td>';
echo '
<ul>
<li><a href="block name">CKS</a></li>
<li><a href="' . $scripturl . '?action=forum">Forum</a></li>
<li><a href="' . $scripturl . '?action=GuildRules">Guild Rules</a></li>
<li><a href="' . $scripturl . '?action=joincks">Join CKS</a></li>
<li><a href="http://my.uo.com/cgi-bin/guilds.pl?g=88e312adc493d1b2:6">Roster</a></li>
<li><a href="' . $scripturl . '?action=arcade">Arcade</a></li>
<li><a href="' . $scripturl . '?action=gallery">Gallery</a></li>
</ul>';

echo ' </td>
</tr>
</table>
</div>
<br />';

}


Quote from: markvon on May 22, 2008, 11:07:43 AM
hi i am using smf 1.15 and when i try to install simple portal, i get the following error.

6.     Execute Modification     ./Themes/default/index.template.php     Test failed

Please try installing the version SimplePortal 1.2.

Quote from: cleanfiles on May 22, 2008, 11:27:10 PM
Wow I will be trying to add this menu block too, I too am running out of room up the top.:)

Of course. ;)
Title: Re: SimplePortal
Post by: [SiNaN] on May 23, 2008, 05:01:04 AM
Ladies and gentlemen, we are here with the new version, SimplePortal 1.2.

Main focus in the update was to make the mod an ultimate install-friendly mod. Now we will see how was our performance.

For the other changes, see the changelog written in the first message of the topic:

http://www.simplemachines.org/community/index.php?topic=227599.msg1461454#msg1461454
Title: Re: SimplePortal
Post by: Manu.G on May 23, 2008, 05:37:04 AM
@[SiNaN]

After all the manual code changing I made, I think I won't be able to uninstall the old version of the mod.  :'(
But I want to use the member color in the portal, what have I to do?  :-\
Title: Re: SimplePortal
Post by: [SiNaN] on May 23, 2008, 06:57:56 AM
Back-up your SPortal.php and SPortal.template.php files and change it with the ones in the new package.

This is just for you, not other users.

Let's do not get this lost. :)

Quote from: [SiNaN] on May 23, 2008, 05:01:04 AM
Ladies and gentlemen, we are here with the new version, SimplePortal 1.2.

Main focus in the update was to make the mod an ultimate install-friendly mod. Now we will see how was our performance.

For the other changes, see the changelog written in the first message of the topic:

http://www.simplemachines.org/community/index.php?topic=227599.msg1461454#msg1461454
Title: Re: SimplePortal
Post by: Manu.G on May 23, 2008, 07:34:47 AM
Quote from: [SiNaN] on May 23, 2008, 06:57:56 AM
Back-up your SPortal.php and SPortal.template.php files and change it with the ones in the new package.

This is just for you, not other users.

Let's do not get this lost. :)

Works perfect! (http://forum.arseniums.com/Smileys/default/015-ok.gif)
Thanks a lot for your fast reply and your help.  :D
Title: Re: SimplePortal
Post by: ruaduck on May 23, 2008, 01:59:43 PM
Quote from: [SiNaN] on May 23, 2008, 04:13:10 AM
Quote from: ruaduck on May 22, 2008, 10:32:30 AM
is there a way to add in a modsetting so that we can just say if ($modSettings['cksmenu'])    then the code instead of trying to use show_menu?

That's not because of that. I revised the codes, can you try this -I tried, working-:

$show_menu = 1; //Set 0 to not show
$menu_label = 'Site Menu'; //Define the block name

if($show_menu)
{
echo '
<!-- Menu Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $menu_label, '</td>
</tr>
<tr class="windowbg">
<td>';
echo '
<ul>
<li><a href="block name">CKS</a></li>
<li><a href="' . $scripturl . '?action=forum">Forum</a></li>
<li><a href="' . $scripturl . '?action=GuildRules">Guild Rules</a></li>
<li><a href="' . $scripturl . '?action=joincks">Join CKS</a></li>
<li><a href="http://my.uo.com/cgi-bin/guilds.pl?g=88e312adc493d1b2:6">Roster</a></li>
<li><a href="' . $scripturl . '?action=arcade">Arcade</a></li>
<li><a href="' . $scripturl . '?action=gallery">Gallery</a></li>
</ul>';

echo ' </td>
</tr>
</table>
</div>
<br />';

}


Quote from: markvon on May 22, 2008, 11:07:43 AM
hi i am using smf 1.15 and when i try to install simple portal, i get the following error.

6.     Execute Modification     ./Themes/default/index.template.php     Test failed

Please try installing the version SimplePortal 1.2.

Quote from: cleanfiles on May 22, 2008, 11:27:10 PM
Wow I will be trying to add this menu block too, I too am running out of room up the top.:)

Of course. ;)


The code now works and shows up a menu.  Thank you so much!
Title: Re: SimplePortal
Post by: Bancherd on May 24, 2008, 02:56:38 AM
Thanks!  I removed and installed new version without any problems on my localhost machine(PHP version 5+)  :D

However, on my live board(PHP 4.3.x) I have this error whenever someone arrived at the portal(front page).    I am not sure if this is caused by my custom block on the portal?   Color-coded names work properly on my localhost, but it does NOT work in one of my custom blocks on the live board.  The exact same code(SPortal.template.php) is used in both my live board and my localhost, but the portals look slightly different  :o    I had even FTP'ed all my SPortal's files from my localhost up to my live board, the problem persists.

Any suggestions? 

8: Undefined index:  2
File: /home/myboard/public_html/Sources/SPortal.php
Line: 761
Title: Re: SimplePortal
Post by: _Anthony_ on May 24, 2008, 02:59:10 AM
It is undefined.
Don't know how to fix sorry
Title: Re: SimplePortal
Post by: [SiNaN] on May 24, 2008, 03:00:34 AM
Can you attach your SPortal.php file here?

In which block the member link color doesn't work?
Title: Re: SimplePortal
Post by: _Anthony_ on May 24, 2008, 03:07:54 AM
I still love it!
Title: Re: SimplePortal
Post by: Bancherd on May 24, 2008, 03:45:51 AM
QuoteCan you attach your SPortal.php file here?

In which block the member link color doesn't work?                     

The problem occured in my "Recent Posts" block.  I have disabled the display of this block for now...probably caused by my poor techniques in modifying your code.  :P    Attached please find the SPortal.php file.

Thanks for looking into this problem for me.
Title: Re: SimplePortal
Post by: [SiNaN] on May 24, 2008, 03:51:41 AM
Quote from: Bancherd on May 24, 2008, 03:45:51 AM
QuoteCan you attach your SPortal.php file here?

In which block the member link color doesn't work?                     

The problem occured in my "Recent Posts" block.  I have disabled the display of this block for now...probably caused by my poor techniques in modifying your code.  :P    Attached please find the SPortal.php file.

Thanks for looking into this problem for me.

As you disabled that block, do you still get the undefined error?
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 24, 2008, 04:33:31 AM
HI SiNaN,

While trying to uninstall my sp v1

Got the following error

Uninstall Actions "SimplePortal":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
2.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
3.    Execute Modification    ./index.php    Test failed
4.    Execute Modification    ./Sources/Load.php    Test successful
5.    Execute Modification    ./Sources/ModSettings.php    Test failed
6.    Execute Modification    ./Themes/default/index.template.php    Test failed
7.    Delete File    ./Sources/SPortal.php    
8.    Delete File    ./Themes/default/SPortal.template.php    
9.    Delete File    ./Themes/default/languages/SPortal.english.php    
10.    Delete File    ./Themes/default/images/arrow.gif    
11.    Delete File    ./Themes/default/images/dot.gif    
12.    Execute Code    database.php

Check out and let me know to proceed or not.
Title: Re: SimplePortal
Post by: [SiNaN] on May 24, 2008, 04:42:08 AM
Do not proceed. Attach your files that give error during uninstall here, I'll change the codes manually.
Title: Re: SimplePortal
Post by: Bancherd on May 24, 2008, 04:50:14 AM
Quote from: [SiNaN] on May 24, 2008, 03:51:41 AM
Quote from: Bancherd on May 24, 2008, 03:45:51 AM
QuoteCan you attach your SPortal.php file here?

In which block the member link color doesn't work?                     

The problem occured in my "Recent Posts" block.  I have disabled the display of this block for now...probably caused by my poor techniques in modifying your code.  :P    Attached please find the SPortal.php file.

Thanks for looking into this problem for me.

As you disabled that block, do you still get the undefined error?

Duh....I found my mistake.  It was coding mistake in my part.  My apologies.

You mod works perfectly and I am VERY happy with it.

Thank you very much for your excellent support.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 24, 2008, 04:52:10 AM
Yes SiNaN, i have not uninstalled waiting for your reply.

Here i have attached the three files and my one theme index file also.

Previously while installing v1, you helped me converting the modsettings.php file with other mods also, so kindly code for simple portal uninstallation, even care about the other mods also.
Title: Re: SimplePortal
Post by: [SiNaN] on May 24, 2008, 04:58:30 AM
Quote from: Bancherd on May 24, 2008, 04:50:14 AM
Duh....I found my mistake.  It was coding mistake in my part.  My apologies.

You mod works perfectly and I am VERY happy with it.

Thank you very much for your excellent support.

Glad you solved it. I'm always here for support. ;)

Quote from: asudhakar on May 24, 2008, 04:52:10 AM
Yes SiNaN, i have not uninstalled waiting for your reply.

Here i have attached the three files and my one theme index file also.

Previously while installing v1, you helped me converting the modsettings.php file with other mods also, so kindly code for simple portal uninstallation, even care about the other mods also.

Will edit this post after 25 minutes and will attach the files.

//Edit:

Just uninstall the v1.1 and continue if it will give error in these files.

Then change the files with the ones I attached here. Lastly install the version 1.2.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 24, 2008, 07:00:28 AM
Hi SiNaN,

I did, uninsalled with error.

Then backuped up my exisiting files and uploaded the files you have sent.
Now the site is working fine.

Could i start the V2 Installation now.
Title: Re: SimplePortal
Post by: [SiNaN] on May 24, 2008, 07:02:03 AM
Quote from: asudhakar on May 24, 2008, 07:00:28 AM
Hi SiNaN,

I did, uninsalled with error.

Then backuped up my exisiting files and uploaded the files you have sent.
Now the site is working fine.

Could i start the V2 Installation now.

Yes, of course.

I will not be here after 3 minutes, be fast. :P
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 24, 2008, 07:06:24 AM
Execute Modification     ./Themes/default/index.template.php     Test failed

Still i will install it
Title: Re: SimplePortal
Post by: [SiNaN] on May 24, 2008, 07:08:30 AM
Quote from: asudhakar on May 24, 2008, 07:06:24 AM
Execute Modification     ./Themes/default/index.template.php     Test failed

Still i will install it

Do not worry, just continue. ;)
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 24, 2008, 07:10:32 AM
did now check out Modsettings is working ,

But arcade is again a error.

Now check out http://forum.itacumens.com and let me know i will uncheck the arcade block
Title: Re: SimplePortal
Post by: [SiNaN] on May 24, 2008, 07:12:59 AM
Quote from: asudhakar on May 24, 2008, 07:10:32 AM
did now check out Modsettings is working ,

But arcade is again a error.

Now check out http://forum.itacumens.com and let me know i will uncheck the arcade block

Your arcade version is completely different from the SMF Arcade. If you can find the block codes for your arcade mod, I can adapt it to the SimplePortal.

And delete the SPortal.template.php from dilbermc theme or change it with the one in v1.2.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 24, 2008, 07:14:11 AM
Arcade Error Message,

Database Error
Unknown column 'game.gameName' in 'field list'
File: /home/itacumen/public_html/forum/Sources/SPortal.php
Line: 861

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

Others were okie, But no avatar in top posters list.
Hope i have to enable some options will check it out and Thanks for the excellent Portal SiNaN and your excellent support too.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 24, 2008, 07:21:24 AM
Quote from: [SiNaN] on May 24, 2008, 07:12:59 AM

And delete the SPortal.template.php from dilbermc theme or change it with the one in v1.2.

I did and now i could see the avatar near Posters name.
Really cool, And i have a doubt if you could help me.
Could i uninstall this "Arcade " and install smf common arcade. then all games and scores will be there or deleted.

Then we will cont doing it.
Title: Re: SimplePortal
Post by: [SiNaN] on May 24, 2008, 09:33:38 AM
Will give answer to the questions tomorrow. Now I should go.
Title: Re: SimplePortal
Post by: markvon on May 24, 2008, 12:05:14 PM
I have a question... am i able to customise SP blocks? For example, instead of Top Poll, can i change it to be Downloads, and add a download link to it?
Title: Re: SimplePortal
Post by: TW1ST3D on May 24, 2008, 04:49:15 PM
[SiNaN],

Thanks Again for this Great Mod !! It should be in everyones top 10 must have mods !!

I have another Question . How would I change the size of the input boxes on the Portal Settings Page?
I need them much bigger.

these are the ones I'm needing bigger.....

(http://i91.photobucket.com/albums/k298/TWIST3DBLACKMAG/IneedbiggerBoxes.gif)
Title: Re: SimplePortal
Post by: TW1ST3D on May 24, 2008, 04:52:44 PM
Oh and here are a few screenshots of how my portal is being used.................

(http://i91.photobucket.com/albums/k298/TWIST3DBLACKMAG/top3rdportal.gif)
(http://i91.photobucket.com/albums/k298/TWIST3DBLACKMAG/middle3rdPortal.gif)
(http://i91.photobucket.com/albums/k298/TWIST3DBLACKMAG/wellamostbottomofportal.gif)
Title: Re: SimplePortal
Post by: cleanfiles on May 24, 2008, 08:49:12 PM
Hello again,
One little problem I have try as I might I just cant seem to work it out, when members are viewing the portal only, they don't show up as online in the forum. They are online in the portal but until they go to the forum they don't even show as guests.
This is also the case for my custom pages, ie. if a member is in the portal or on a custom page and don't have any forum pages open they don't show up as online at the bottom of the forum. I hope I have made myself clear enough lol.
Title: Re: SimplePortal
Post by: samurai-lupin on May 25, 2008, 03:46:14 AM
Hello,

I think your Portal has some great add ons. As I am using Joomla I unfortunately can't use it on my forum. However I wondered what I would need to change in my ssi.php in order to have

ssi_topposters display Avatar Thumbs like on your portal

Also, is it possible to implement your sp_shop function into my ssi.php so I can display the most recnet purchases?

Thank you!
Title: Re: SimplePortal
Post by: [SiNaN] on May 25, 2008, 04:01:15 AM
Quote from: markvon on May 24, 2008, 12:05:14 PM
I have a question... am i able to customise SP blocks? For example, instead of Top Poll, can i change it to be Downloads, and add a download link to it?

You can modify only from the files SPortal.php and SPortal.template.php. For now, it is not automated.

Quote from: TW1ST3D on May 24, 2008, 04:49:15 PM
[SiNaN],

Thanks Again for this Great Mod !! It should be in everyones top 10 must have mods !!

I have another Question . How would I change the size of the input boxes on the Portal Settings Page?
I need them much bigger.

these are the ones I'm needing bigger.....

../Sources/ModSettings.php

Find:

array('text', 'aannouncetext'),

Replace:

array('large_text', 'aannouncetext'),

Note: Do not forget this change as it will give error during uninstall.

Quote from: cleanfiles on May 24, 2008, 08:49:12 PM
Hello again,
One little problem I have try as I might I just cant seem to work it out, when members are viewing the portal only, they don't show up as online in the forum. They are online in the portal but until they go to the forum they don't even show as guests.
This is also the case for my custom pages, ie. if a member is in the portal or on a custom page and don't have any forum pages open they don't show up as online at the bottom of the forum. I hope I have made myself clear enough lol.

I think we should use writeLog(). I'll look at it and give an answer. Please remind it later.

Quote from: asudhakar on May 24, 2008, 07:21:24 AM
Quote from: [SiNaN] on May 24, 2008, 07:12:59 AM

And delete the SPortal.template.php from dilbermc theme or change it with the one in v1.2.

I did and now i could see the avatar near Posters name.
Really cool, And i have a doubt if you could help me.
Could i uninstall this "Arcade " and install smf common arcade. then all games and scores will be there or deleted.

Then we will cont doing it.

If the link you gave before is the one you use in your site, I'll try to code the block for it.

Quote from: samurai-lupin on May 25, 2008, 03:46:14 AM
Hello,

I think your Portal has some great add ons. As I am using Joomla I unfortunately can't use it on my forum. However I wondered what I would need to change in my ssi.php in order to have

ssi_topposters display Avatar Thumbs like on your portal

Also, is it possible to implement your sp_shop function into my ssi.php so I can display the most recnet purchases?

Thank you!

This is the code for the Top Poster function:

function sp_topPoster($topNumber = 5)
{
global $db_prefix, $scripturl, $memberContext, $txt, $settings, $modSettings, $top_posters, $top_poster_id, $list_no;

if ($topNumber === null)
$topNumber = isset($_GET['limit']) ? (int) $_GET['limit'] : 5;

$list_no=1;

// Find the latest poster.
$request = db_query("
SELECT m.ID_MEMBER, m.realName, m.posts, m.avatar, a.ID_ATTACH, a.attachmentType, a.filename
FROM ({$db_prefix}members as m)
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = m.ID_MEMBER)
ORDER BY posts DESC
LIMIT $topNumber", __FILE__, __LINE__);
$top_posters = array();
$colorids = array();
while ($row = mysql_fetch_assoc($request)) {
if (stristr($row['avatar'], 'http://') && !empty($modSettings['avatar_check_size']))
{
$sizes = url_image_size($row['avatar']);

// Does your avatar still fit the maximum size?
if ($modSettings['avatar_action_too_large'] == 'option_refuse' && is_array($sizes) && (($sizes[0] > $modSettings['avatar_max_width_external'] && !empty($modSettings['avatar_max_width_external'])) || ($sizes[1] > $modSettings['avatar_max_height_external'] && !empty($modSettings['avatar_max_height_external']))))
{
// Fix it permanently!
$row['avatar'] = '';
updateMemberData($row['ID_MEMBER'], array('avatar' => '\'\''));
}
}

//Collect the ids
$colorids[$row['ID_MEMBER']] = $row['ID_MEMBER'];

$top_posters[] = array(
'list' => $list_no++,
'id' => $row['ID_MEMBER'],
'name' => $row['realName'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>',
'posts' => $row['posts'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? '<img src="' . (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
)
);
}
mysql_free_result($request);

//Add Colors to the link :)
if(!empty($colorids)) {
global $color_profile;
sp_loadColors($colorids);
foreach($top_posters as $k => $p) {
$profile = $color_profile[$p['id']];
if(!empty($profile)) {
$top_posters[$k]['link'] = $profile['link'];
}
}
}

echo '<table>';
foreach ($top_posters as $member)
{
if (!empty($member['avatar']['href']))
echo ' <tr>
<td>' . $member['list'] . '-</td>
<td><img src="' . $member['avatar']['href'] . '" alt="" width="35" /></td><td>&nbsp;</td>
<td>' . $member['link'] . '<br />' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>';
else
echo ' <tr>
<td>' . $member['list'] . '-</td>
<td>&nbsp;</td><td>&nbsp;</td>
<td>' . $member['link'] . '<br />' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>';
}
echo '</table>';

}


And this is the Recent Purchase code:

function sp_shop()
{
global $db_prefix, $context;

// Grab the purchase history
// Start with empty list
$context['shop_purchHis'] = array();
// Get the details of purchases
$request = db_query("
SELECT ownerid, itemid, amtpaid, it.desc, it.image, it.id
FROM {$db_prefix}shop_purchHis, {$db_prefix}shop_items AS it
WHERE itemid = it.id
ORDER BY ownerid DESC
LIMIT 20", __FILE__, __LINE__);
// Loop through all results
while ($row = mysql_fetch_array($request, MYSQL_ASSOC))
// And add them to the list
$context['shop_purchHis'][] = array(
'ownerid' => $row['ownerid'],
'itemid' => $row['itemid'],
'amtpaid' => $row['amtpaid'],
'desc' => $row['desc'],
'image' => $row['image']
);

mysql_free_result($request);

if (!empty($context['shop_purchHis'])) {
echo '
<td class="smalltext" height="100%" valign="top" align="center" style="line-height: 1.3;">
';
foreach ($context['shop_purchHis'] as $row)
echo "<img src='{$boardurl}/Sources/shop/item_images/{$row['image']}'title='{$row['desc']}'>&nbsp;&nbsp;";
}
else
echo '<td>Nothing is purchased.';
}


For the recent purchase, you should have been installed the Shop Stats Mod before  to use it.

http://www.daniel15.com/forum/index.php/topic,1219.0.html
Title: Re: SimplePortal
Post by: samurai-lupin on May 25, 2008, 06:40:05 AM
Hello SiNaN,

thank you very much for your advice. It works great on my forum! Looks fantastic.

May I please ask you for one more piece of advice?

I'm using a ssi_recenttopics function call on my frontpage. I would like to display the poster avtars next to the poster name.

Unfortunately I oculd not figure out how to do this. Could you maybe please let me know what code I would need to add for displaying the avatars?

Thank you!

// Recent topic list:   [board] Subject by Poster Date
function ssi_recentTopicsMain($num_recent = 10, $exclude_boards = null, $output_method = 'echo', $include_boards = null, $limit_days = null, $member_id = null)
{
global $context, $settings, $scripturl, $txt, $db_prefix, $ID_MEMBER;
global $user_info, $modSettings, $func;

if ($exclude_boards === null && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
$exclude_boards = array($modSettings['recycle_board']);
else
$exclude_boards = empty($exclude_boards) ? array() : $exclude_boards;

$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

// Find all the posts in distinct topics.  Newer ones will have higher IDs.
$extravalues = '';
if ($output_method == 'extended') {
// get all the extra information about topics, so we can send them to Recent.template.php later
$extravalues = "ms.subject AS firstSubject, ms.posterTime AS firstPosterTime, ms.ID_TOPIC, t.ID_BOARD, b.name AS bname,
t.numReplies, t.numViews, ms.ID_MEMBER AS ID_FIRST_MEMBER, m.ID_MEMBER AS ID_LAST_MEMBER,
m.posterTime AS lastPosterTime, memfp.realName AS firstPosterName,
mem.realName AS lastPosterName, m.subject AS lastSubject,
m.icon AS lastIcon, ms.icon AS firstIcon, t.ID_POLL, t.isSticky, t.locked, m.modifiedTime AS lastModifiedTime,
" . (!$user_info['is_guest'] ? "
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from," : '') . " LEFT(m.body, 384) AS lastBody, LEFT(ms.body, 384) AS firstBody,
m.smileysEnabled AS lastSmileys, ms.smileysEnabled AS firstSmileys, t.ID_FIRST_MSG, t.ID_LAST_MSG, ";
}
$request = db_query("
SELECT {$extravalues}
m.posterTime, ms.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, " . ($user_info['is_guest'] ? '1 AS isRead, 0 AS new_from' : '
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= m.ID_MSG_MODIFIED AS isRead,
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from') . ", LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS memfp ON (memfp.ID_MEMBER = ms.ID_MEMBER)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)" : '') . "
WHERE t.ID_LAST_MSG >= " . (isset($limit_days) ? '0' : ($modSettings['maxMsgID'] - 35 * min($num_recent, 5))) . "
AND t.ID_LAST_MSG = m.ID_MSG
AND b.ID_BOARD = t.ID_BOARD" . (empty($exclude_boards) ? '' : "
AND b.ID_BOARD NOT IN (" . implode(', ', $exclude_boards) . ")") . (!empty($include_boards) ? "
AND b.ID_BOARD IN (" . implode(', ', $include_boards) . ")"  : '') . (isset($limit_days) ? "
AND m.posterTime > " . (time() - ($limit_days*24*60*60)) : '') . (!empty($member_id) ? "
AND m.ID_MEMBER = {$member_id}" : '') . "
AND $user_info[query_see_board]
AND ms.ID_MSG = t.ID_FIRST_MSG
ORDER BY " . ($output_method == 'extended' && isset($_REQUEST['sort']) ? (
$_REQUEST['sort'] . ($context['ascending'] ? '' : ' DESC')) : ("t.ID_LAST_MSG DESC")) . "
LIMIT " . (($output_method == 'extended' && isset($_REQUEST['start']) && isset($_REQUEST['action']) && $_REQUEST['action'] == 'recenttopics' && is_numeric($_REQUEST['start'])) ? ($_REQUEST['start'].', ') : ('')) . $num_recent, __FILE__, __LINE__);
$posts = array();
while ($row = mysql_fetch_assoc($request))
{
// this puts the extended topic information into $context['topics']. it's copied from Recent.php and can be used by template_unread() in Recent.template.php
if ($output_method == 'extended') {
//set these variables so there will be no undefined indexes
$context['querystring_board_limits'] = '';
$context['sort_by'] = '';

if ($row['ID_POLL'] > 0 && $modSettings['pollMode'] == '0')
continue;

$topic_ids[] = $row['ID_TOPIC'];

// Clip the strings first because censoring is slow :/. (for some reason?)
$row['firstBody'] = strip_tags(strtr(parse_bbc($row['firstBody'], $row['firstSmileys'], $row['ID_FIRST_MSG']), array('<br />' => '&#10;')));
if ($func['strlen']($row['firstBody']) > 128)
$row['firstBody'] = $func['substr']($row['firstBody'], 0, 128) . '...';
$row['lastBody'] = strip_tags(strtr(parse_bbc($row['lastBody'], $row['lastSmileys'], $row['ID_LAST_MSG']), array('<br />' => '&#10;')));
if ($func['strlen']($row['lastBody']) > 128)
$row['lastBody'] = $func['substr']($row['lastBody'], 0, 128) . '...';

// Do a bit of censoring...
censorText($row['firstSubject']);
censorText($row['firstBody']);

// But don't do it twice, it can be a slow ordeal!
if ($row['ID_FIRST_MSG'] == $row['ID_LAST_MSG'])
{
$row['lastSubject'] = $row['firstSubject'];
$row['lastBody'] = $row['firstBody'];
}
else
{
censorText($row['lastSubject']);
censorText($row['lastBody']);
}

// Decide how many pages the topic should have.
$topic_length = $row['numReplies'] + 1;
if ($topic_length > $modSettings['defaultMaxMessages'])
{
$tmppages = array();
$tmpa = 1;
for ($tmpb = 0; $tmpb < $topic_length; $tmpb += $modSettings['defaultMaxMessages'])
{
$tmppages[] = '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.' . $tmpb . ';topicseen">' . $tmpa . '</a>';
$tmpa++;
}
// Show links to all the pages?
if (count($tmppages) <= 5)
$pages = '&#171; ' . implode(' ', $tmppages);
// Or skip a few?
else
$pages = '&#171; ' . $tmppages[0] . ' ' . $tmppages[1] . ' ... ' . $tmppages[count($tmppages) - 2] . ' ' . $tmppages[count($tmppages) - 1];

if (!empty($modSettings['enableAllMessages']) && $topic_length < $modSettings['enableAllMessages'])
$pages .= ' &nbsp;<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;all">' . $txt[190] . '</a>';
$pages .= ' &#187;';
}
else
$pages = '';

// We need to check the topic icons exist... you can never be too sure!
if (empty($modSettings['messageIconChecks_disable']))
{
// First icon first... as you'd expect.
if (!isset($context['icon_sources'][$row['firstIcon']]))
$context['icon_sources'][$row['firstIcon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['firstIcon'] . '.gif') ? 'images_url' : 'default_images_url';
// Last icon... last... duh.
if (!isset($context['icon_sources'][$row['lastIcon']]))
$context['icon_sources'][$row['lastIcon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['lastIcon'] . '.gif') ? 'images_url' : 'default_images_url';
}

// And build the array.
$context['topics'][$row['ID_TOPIC']] = array(
'id' => $row['ID_TOPIC'],
'first_post' => array(
'id' => $row['ID_FIRST_MSG'],
'member' => array(
'name' => $row['firstPosterName'],
'id' => $row['ID_FIRST_MEMBER'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_FIRST_MEMBER'],
'link' => !empty($row['ID_FIRST_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_FIRST_MEMBER'] . '" title="' . $txt[92] . ' ' . $row['firstPosterName'] . '">' . $row['firstPosterName'] . '</a>' : $row['firstPosterName']
),
'time' => timeformat($row['firstPosterTime']),
'timestamp' => forum_time(true, $row['firstPosterTime']),
'subject' => $row['firstSubject'],
'preview' => $row['firstBody'],
'icon' => $row['firstIcon'],
'icon_url' => $settings[$context['icon_sources'][$row['firstIcon']]] . '/post/' . $row['firstIcon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;topicseen',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;topicseen">' . $row['firstSubject'] . '</a>'
),
'last_post' => array(
'id' => $row['ID_LAST_MSG'],
'member' => array(
'name' => $row['lastPosterName'],
'id' => $row['ID_LAST_MEMBER'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_LAST_MEMBER'],
'link' => !empty($row['ID_LAST_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_LAST_MEMBER'] . '">' . $row['lastPosterName'] . '</a>' : $row['lastPosterName']
),
'time' => timeformat($row['lastPosterTime']),
'timestamp' => forum_time(true, $row['lastPosterTime']),
'subject' => $row['lastSubject'],
'preview' => $row['lastBody'],
'icon' => $row['lastIcon'],
'icon_url' => $settings[$context['icon_sources'][$row['lastIcon']]] . '/post/' . $row['lastIcon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['ID_LAST_MSG']) . ';topicseen#msg' . $row['ID_LAST_MSG'],
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['ID_LAST_MSG']) . ';topicseen#msg' . $row['ID_LAST_MSG'] . '">' . $row['lastSubject'] . '</a>'
),
'new_from' => $row['new_from'],
'new_href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['new_from'] . ';topicseen#new',
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['new_from']) . ';topicseen' . ($row['numReplies'] == 0 ? '' : 'new'),
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['new_from']) . ';topicseen#msg' . $row['new_from'] . '">' . $row['firstSubject'] . '</a>',
'is_read' => $row['isRead'],
'is_sticky' => !empty($modSettings['enableStickyTopics']) && !empty($row['isSticky']),
'is_locked' => !empty($row['locked']),
'is_poll' => $modSettings['pollMode'] == '1' && $row['ID_POLL'] > 0,
'is_hot' => $row['numReplies'] >= $modSettings['hotTopicPosts'],
'is_very_hot' => $row['numReplies'] >= $modSettings['hotTopicVeryPosts'],
'is_posted_in' => false,
'icon' => $row['firstIcon'],
'icon_url' => $settings[$context['icon_sources'][$row['firstIcon']]] . '/post/' . $row['firstIcon'] . '.gif',
'subject' => $row['firstSubject'],
'pages' => $pages,
'replies' => $row['numReplies'],
'views' => $row['numViews'],
'board' => array(
'id' => $row['ID_BOARD'],
'name' => $row['bname'],
'href' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['ID_BOARD'] . '.0">' . $row['bname'] . '</a>'
)
);

determineTopicClass($context['topics'][$row['ID_TOPIC']]);
}
else {
$row['body'] = strip_tags(strtr(parse_bbc($row['body'], $row['smileysEnabled'], $row['ID_MSG']), array('<br />' => '&#10;')));
if ($func['strlen']($row['body']) > 128)
$row['body'] = $func['substr']($row['body'], 0, 128) . '...';

// Censor the subject.
censorText($row['subject']);
censorText($row['body']);

if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

// Build the array.
$posts[] = array(
'board' => array(
'id' => $row['ID_BOARD'],
'name' => $row['bName'],
'href' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['ID_BOARD'] . '.0">' . $row['bName'] . '</a>'
),
'topic' => $row['ID_TOPIC'],
'poster' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['posterName'],
'href' => empty($row['ID_MEMBER']) ? '' : $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'avatar' => $row['avatar'],
'link' => empty($row['ID_MEMBER']) ? $row['posterName'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['posterName'] . '</a>'
),
'subject' => $row['subject'],
'short_subject' => shorten_subject($row['subject'], 25),
'preview' => $row['body'],
'time' => timeformat($row['posterTime']),
'timestamp' => forum_time(true, $row['posterTime']),
'raw_timestamp' => $row['posterTime'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . ';topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#new">' . $row['subject'] . '</a>',
'new' => !empty($row['isRead']),
'new_from' => $row['new_from'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
);
}
}
mysql_free_result($request);

// Just return it.
if ($output_method != 'echo' || empty($posts))
return $posts;

echo '
<table border="0" cellpadding=0 cellspacing=0><tr><td colspan=5><table width=100% cellpadding=2 cellspacing=0><tr><td height=21 valign=middle background="http://www.detektorforum.de/templates/rhuk_solarflare_ii/images/subhead_bg.png"><font face=verdana,arial style="color: #666666; font-size: 10px;"><b> NEUESTE FORUM THEMEN</b></td></tr></table></td></tr>';
foreach ($posts as $post)
echo '
<tr>
<td valign=top>', $post['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" hspace=2 vspace=2 /></a>', ' </td>
<td align="right" valign="top">
<i>', $post['board']['link'], ' </i>
</td>
<td width=3></td>
<td valign="top">
<a href="', $post['href'], '">', $post['subject'], '</a></b><br>
', $txt[525], ' <i>', $post['poster']['link'], '</i>

</td>
<td valign=top>



</td>
</tr><tr><td colspan=5 height=2></td></tr>';
echo '
</table>';
}
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 25, 2008, 11:55:42 AM
Quote
QuoteAnd delete the SPortal.template.php from dilbermc theme or change it with the one in v1.2.
    I did and now i could see the avatar near Posters name.
    Really cool, And i have a doubt if you could help me.
    Could i uninstall this "Arcade " and install smf common arcade. then all games and scores will be there or deleted.

    Then we will cont doing it.

If the link you gave before is the one you use in your site, I'll try to code the block for it.

Yes your are right SiNaN, could you help me Out if possible.
http://www.simplemachines.org/community/index.php?topic=227599.msg1542972#msg1542972
Title: Re: SimplePortal
Post by: cleanfiles on May 25, 2008, 09:06:20 PM
Ok I looked up "writeLog()" and this sounds like something that might help me, but I don't know where to add it.
I will do some more research on this, but if you could point me in the right direction that would be good too lol. 
Title: Re: SimplePortal
Post by: erisa on May 26, 2008, 07:57:21 AM
Hi

I'm using SMF 1.1.5 with Tinyportal.

1. Execute Modification ./index.php Test failed  
2. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test successful
3. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
4. Execute Modification ./Themes/default/languages/Who.english-utf-8.php Skipping file
5. Execute Modification ./Themes/default/languages/Who.english.php Test successful
6. Execute Modification ./Sources/Load.php Test failed  
7. Execute Modification ./Sources/ModSettings.php Test successful
8. Execute Modification ./Themes/default/index.template.php Test successful
9. Extract File ./Sources/SPortal.php 
10. Extract File ./Themes/default/SPortal.template.php 
11. Extract File ./Themes/default/languages/SPortal.english.php 
12. Extract File ./Themes/default/languages/SPortal.english-utf8.php 
13. Extract File ./Themes/default/images/arrow.gif 
14. Extract File ./Themes/default/images/dot.gif 
15. Execute Code database.php


I fear to apply the mod due to the above red markings. Can someone help?
Title: Re: SimplePortal
Post by: tfalbb on May 26, 2008, 08:13:52 AM
Mod seemed to install fine on SMF 1.14, but I don't get the Portal Settings button in the admin panel. Any ideas?
Title: Re: SimplePortal
Post by: [SiNaN] on May 26, 2008, 08:25:53 AM
Quote from: asudhakar on May 25, 2008, 11:55:42 AM
If the link you gave before is the one you use in your site, I'll try to code the block for it.

Yes your are right SiNaN, could you help me Out if possible.
http://www.simplemachines.org/community/index.php?topic=227599.msg1542972#msg1542972

Will look at it, but do not hurry that much.

Quote from: cleanfiles on May 25, 2008, 09:06:20 PM
Ok I looked up "writeLog()" and this sounds like something that might help me, but I don't know where to add it.
I will do some more research on this, but if you could point me in the right direction that would be good too lol. 

In your custom pages just include the Subs.php and add writeLog() somewhere. But I didn't see such a problem in the portal. Are you sure that it is same for portal?

Quote from: erisa on May 26, 2008, 07:57:21 AM
Hi

I'm using SMF 1.1.5 with Tinyportal.

1. Execute Modification ./index.php Test failed  
2. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test successful
3. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
4. Execute Modification ./Themes/default/languages/Who.english-utf-8.php Skipping file
5. Execute Modification ./Themes/default/languages/Who.english.php Test successful
6. Execute Modification ./Sources/Load.php Test failed  
7. Execute Modification ./Sources/ModSettings.php Test successful
8. Execute Modification ./Themes/default/index.template.php Test successful
9. Extract File ./Sources/SPortal.php 
10. Extract File ./Themes/default/SPortal.template.php 
11. Extract File ./Themes/default/languages/SPortal.english.php 
12. Extract File ./Themes/default/languages/SPortal.english-utf8.php 
13. Extract File ./Themes/default/images/arrow.gif 
14. Extract File ./Themes/default/images/dot.gif 
15. Execute Code database.php


I fear to apply the mod due to the above red markings. Can someone help?

You can not use it with TinyPortal as they do the same thing but TinyPortal is the elder brother of SimplePortal.

Quote from: tfalbb on May 26, 2008, 08:13:52 AM
Mod seemed to install fine on SMF 1.14, but I don't get the Portal Settings button in the admin panel. Any ideas?

What is your forums language?
Title: Re: SimplePortal
Post by: erisa on May 26, 2008, 08:34:15 AM
I see.. got it. thanks!
Title: Re: SimplePortal
Post by: tfalbb on May 26, 2008, 08:36:44 AM
Quote from: [SiNaN] on May 26, 2008, 08:25:53 AM
Quote from: tfalbb on May 26, 2008, 08:13:52 AM
Mod seemed to install fine on SMF 1.14, but I don't get the Portal Settings button in the admin panel. Any ideas?

What is your forums language?

English
Title: Re: SimplePortal
Post by: [SiNaN] on May 26, 2008, 08:38:26 AM
Quote from: tfalbb on May 26, 2008, 08:36:44 AM
English

Wow, interesting. Does this link work for you?

http://yoursiteadress/index.php?action=featuresettings;sa=sportal;
Title: Re: SimplePortal
Post by: tfalbb on May 26, 2008, 09:01:02 AM
Quote from: [SiNaN] on May 26, 2008, 08:38:26 AM
Quote from: tfalbb on May 26, 2008, 08:36:44 AM
English

Wow, interesting. Does this link work for you?

http://yoursiteadress/index.php?action=featuresettings;sa=sportal;

Yes it gets me to the settings page, but as you can see from the screenshot the Simple Portal tab is blank when I use that link. It doesn't show at all when I use the normal method of accessing the admin panel.

(http://www.iplpokerforum.com/images/spadmin.jpg)
Title: Re: SimplePortal
Post by: Sic0 on May 26, 2008, 02:27:35 PM
Nice mod and well done.

Is it possible to integrate the forum into the centre of the page, instead of having to link to it?

Title: Re: SimplePortal
Post by: PRaDiUS on May 26, 2008, 07:12:34 PM
8. Execute Modification ./Themes/default/index.template.php Test failed

what's wrong?
Title: Re: SimplePortal
Post by: cleanfiles on May 26, 2008, 08:58:04 PM
Quote from: pradius on May 26, 2008, 07:12:34 PM
8. Execute Modification ./Themes/default/index.template.php Test failed

what's wrong?
Use the package parser on the mod page to find out what edits have to be made to that file. Make them manually and install the mod, then upload the manually edited file to your ftp. Remember to backup all files that will be edited by the package installer.
Title: Re: SimplePortal
Post by: Apllicmz on May 26, 2008, 10:15:14 PM
Update to 1.2 translate she work Fine
thank you
<?php
// Version: 1.2; SPortal
//  Traducao de candidosa2 for forum.joomlamz.com

//User Block
$txt['sp-user'] = 'Membro';
$txt['sp-userpost'] = 'Postes';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-userip'] = 'IP';
$txt['sp-usertmessage'] = 'Mensagens totais ';
$txt['sp-usernmessage'] = 'Mensagens novas ';
$txt['sp-userprofile'] = 'Perfil';
$txt['sp-userlogout'] = 'Sair';

//Users Online Block
$txt['sp-online'] = 'Membro Online';
$txt['sp-onlineguest'] = 'Convidados on-line';
$txt['sp-onlineuser'] = 'Membro on-line';
$txt['sp-onlinehuser'] = 'Membro escondidos ';
$txt['sp-onlinetuser'] = 'Membro Totais ';
$txt['sp-onlineouser'] = 'Membro on-line';

//Board Stats Block
$txt['sp-stat'] = 'Quadro Estat&iacute;sticas';
$txt['sp-statmember'] = 'Total Membros';
$txt['sp-statpost'] = 'Total Postes';
$txt['sp-stattopic'] = 'T&oacute;picos totais';
$txt['sp-statcategory'] = 'Categorias totais ';
$txt['sp-statboard'] = 'Total Boards';

//Latest Member Block
$txt['sp-lmember'] = '&Uacute;ltimo Membro';

//Quick Search Block
$txt['sp-qsearch'] = 'Procura r&aacute;pida ';
$txt['sp-qsearchsearch'] = 'Procura ';

//Top Poll Block
$txt['sp-poll'] = 'Top Vota&ccedil;&atilde;o';

//Top Posters Block
$txt['sp-tposter'] = 'Top Posters';
$txt['sp-tposterpost'] = ' postes';

//Top Boards Block
$txt['sp-tboard'] = 'Top Quadro';
$txt['sp-tboardname'] = 'Quadro';
$txt['sp-tboardpost'] = 'Postes';

//Top Topics Block
$txt['sp-ttopic'] = 'Top T&oacute;picos';
$txt['sp-ttopicname'] = 'T&oacute;pico';
$txt['sp-ttopicpost'] = 'Postes';

//Announcements Block
$txt['sp-announce'] = 'An&uacute;ncios';

//Recent Posts Block
$txt['sp-rpost'] = 'Recentes Postes';

//Recent Topics Block
$txt['sp-rtopic'] = 'Recentes T&oacute;picos';

//News Block
$txt['sp-news'] = 'Quadro Not&iacute;cias';

//SMF Shop Recent Purchase Block
$txt['sp-rpurchase'] = 'Recentemente Comprado';

//SMF Gallery Block
$txt['sp-grpicturerandom'] = 'Últimas imagem';
$txt['sp-grpicturelatest'] = 'Random Picture';
$txt['sp-grpictureviews'] = 'Ver:';
$txt['sp-grpicturesender'] = 'Por:';
$txt['sp-grpictureguest'] = 'Visitante';

//SMF Arcade Block
$txt['sp-arcade'] = 'Arcade';
$txt['sp-arcadeplay'] = 'O Top de jogadores';
$txt['sp-arcadewin'] = 'Número de vitórias :';
$txt['sp-arcadelate'] = 'Últimas pontuação elevada por ';
$txt['sp-arcadewit'] = 'Como ';
$txt['sp-arcadeon'] = 'on ';

//Advertise Block
$txt['sp-advertise'] = 'Anuncie';

?>



<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['mods_cat_sportal'] = 'Portal Settings';
$txt['mods_cat_sportal'] = 'Portal Configura&ccedil;&otilde;es';
$txt['sportalsettings'] = 'Portal Configura&ccedil;&otilde;es';
$txt['lshowdetails'] = '<b>Membro</b> | Mostrar detalhes do membro?';
$txt['aspecificannounce'] = '<b>Anunciar</b> |Usar diferentes anuncios?';
$txt['nshowavatar'] = '<b>Not&iacute;cias</b> | Mostrar avatar?';
$txt['tttype'] = '<b>Top T&oacute;pico</b> | Mostrar por tipo?';
$txt['tttypeselect'] = 'Selecione';
$txt['aannouncetext'] = '<b>Anunciar</b> | Anunciar texto:<div class="smalltext">Anuncios diferentes  devem ser verificados.</div>';
$txt['nnewsboard'] = '<b>Quadro de Not&iacute;cias</b> | Not&iacute;cias Quadro:';
$txt['nnewscount'] = '<b>Quadro de Not&iacute;cias</b> | Not&iacute;cias a mostrar:';
$txt['nnewslength'] = '<b>Quadro de Not&iacute;cias</b>| Comprimento conte&uacute;do da not&iacute;cias:';
$txt['rppostcount'] = '<b>Postes recentes</b> | N&uacute;mero de postes :';
$txt['rttopiccount'] = '<b>T&oacute;picos recentes</b> | N&uacute;mero de t&oacute;picos:';
$txt['ppollid'] = '<b>Top Vota&ccedil;&atilde;o</b> | Mostrar Vota&ccedil;&atilde;o :';
$txt['tppcount'] = '<b>Top Postes</b> | Contagem de postes:';
$txt['tbbcount'] = '<b>Top Quadro</b> | Contagem no quadro:';
$txt['tttcount'] = '<b>Top T&oacute;picos</b> | Contagem no t&oacute;picos:';
$txt['showleft'] = 'Mostrar blocos do lado esquerdo :';
$txt['showright'] = 'Mostrar blocos do lado direito:';
$txt['leftwidth'] = 'Largura bloco Esquerdo:';
$txt['rightwidth'] = 'Largura Lateral bloco direito:';
$txt['showuser'] = 'Mostrar bloco do membro:';
$txt['showusersonline'] = 'Mostrar bloco do membro online :';
$txt['showboardstats'] = 'Mostrar quadro bloco das Estat&iacute;sticas:';
$txt['showlatestmember'] = 'Mostrar bloco do &uacute;ltimo membro:';
$txt['showquicksearch'] = 'Mostrar bloco de Pesquisa r&aacute;pida :';
$txt['showannouncements'] = 'Mostrar bloco de An&uacute;ncios:';
$txt['showboardnews'] = 'Mostrar quadro de Not&iacute;cias no bloco:';
$txt['showrecentposts'] = 'Mostrar poste recentes:';
$txt['showrecenttopics'] = 'Mostrar t&oacute;picos Recentes:';
$txt['showtoppoll'] = 'Mostrar Top Vota&ccedil;&atilde;o:';
$txt['showtopposters'] = 'Mostrar Top Postes:';
$txt['showtopboards'] = 'Mostrar Top Quadro:';
$txt['showtoptopics'] = 'Mostrar Top T&oacute;picos:';
$txt['showrecentpurchase'] = 'Mostrar recentemente comprou:<div class="smalltext">SMF Shop and Stats mod deve ser instalado.</div>';
$txt['showgallery'] = 'Mostrar Galeria:<div class="smalltext">SMF Galeria mod deve ser instalado.</div>';
$txt['showarcade'] = 'Mostrar Arcade bloco:<div class="smalltext">SMF Arcade mod deve ser instalado.</div>';
$txt['advertiselefton'] = 'Mostrar o lado esquerdo anuncio:';
$txt['advertiserighton'] = 'Mostrar o lado direito anuncio:';
$txt['advertiseleft'] = 'Bloco lado esquerdo publicitar conte&uacute;do:';
$txt['advertiseright'] = 'Lateral direita anunciar bloquear conte&uacute;do:';
$txt['advertiselefttype'] = 'Lateral esquerda anunciar codifica&ccedil;&atilde;o tipo:';
$txt['advertiserighttype'] = 'Lateral direita anunciar tipo de codifica&ccedil;&atilde;o:';
$txt['advertisehtml'] = 'Html';
$txt['advertisephp'] = 'Php';
$txt['sp-forum'] = 'F&oacute;rum';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['mods_cat_sportal'] = 'Portal Settings';
$txt['mods_cat_sportal'] = 'Portal Configura&ccedil;&otilde;es';
$txt['sportalsettings'] = 'Portal Configura&ccedil;&otilde;es';
$txt['lshowdetails'] = '<b>Membro</b> | Mostrar detalhes do membro?';
$txt['aspecificannounce'] = '<b>Anunciar</b> |Usar diferentes anuncios?';
$txt['nshowavatar'] = '<b>Not&iacute;cias</b> | Mostrar avatar?';
$txt['tttype'] = '<b>Top T&oacute;pico</b> | Mostrar por tipo?';
$txt['tttypeselect'] = 'Selecione';
$txt['aannouncetext'] = '<b>Anunciar</b> | Anunciar texto:<div class="smalltext">Anuncios diferentes  devem ser verificados.</div>';
$txt['nnewsboard'] = '<b>Quadro de Not&iacute;cias</b> | Not&iacute;cias Quadro:';
$txt['nnewscount'] = '<b>Quadro de Not&iacute;cias</b> | Not&iacute;cias a mostrar:';
$txt['nnewslength'] = '<b>Quadro de Not&iacute;cias</b>| Comprimento conte&uacute;do da not&iacute;cias:';
$txt['rppostcount'] = '<b>Postes recentes</b> | N&uacute;mero de postes :';
$txt['rttopiccount'] = '<b>T&oacute;picos recentes</b> | N&uacute;mero de t&oacute;picos:';
$txt['ppollid'] = '<b>Top Vota&ccedil;&atilde;o</b> | Mostrar Vota&ccedil;&atilde;o :';
$txt['tppcount'] = '<b>Top Postes</b> | Contagem de postes:';
$txt['tbbcount'] = '<b>Top Quadro</b> | Contagem no quadro:';
$txt['tttcount'] = '<b>Top T&oacute;picos</b> | Contagem no t&oacute;picos:';
$txt['showleft'] = 'Mostrar blocos do lado esquerdo :';
$txt['showright'] = 'Mostrar blocos do lado direito:';
$txt['leftwidth'] = 'Largura bloco Esquerdo:';
$txt['rightwidth'] = 'Largura Lateral bloco direito:';
$txt['showuser'] = 'Mostrar bloco do membro:';
$txt['showusersonline'] = 'Mostrar bloco do membro online :';
$txt['showboardstats'] = 'Mostrar quadro bloco das Estat&iacute;sticas:';
$txt['showlatestmember'] = 'Mostrar bloco do &uacute;ltimo membro:';
$txt['showquicksearch'] = 'Mostrar bloco de Pesquisa r&aacute;pida :';
$txt['showannouncements'] = 'Mostrar bloco de An&uacute;ncios:';
$txt['showboardnews'] = 'Mostrar quadro de Not&iacute;cias no bloco:';
$txt['showrecentposts'] = 'Mostrar poste recentes:';
$txt['showrecenttopics'] = 'Mostrar t&oacute;picos Recentes:';
$txt['showtoppoll'] = 'Mostrar Top Vota&ccedil;&atilde;o:';
$txt['showtopposters'] = 'Mostrar Top Postes:';
$txt['showtopboards'] = 'Mostrar Top Quadro:';
$txt['showtoptopics'] = 'Mostrar Top T&oacute;picos:';
$txt['showrecentpurchase'] = 'Mostrar recentemente comprou:<div class="smalltext">SMF Shop and Stats mod deve ser instalado.</div>';
$txt['showgallery'] = 'Mostrar Galeria:<div class="smalltext">SMF Galeria mod deve ser instalado.</div>';
$txt['showarcade'] = 'Mostrar Arcade bloco:<div class="smalltext">SMF Arcade mod deve ser instalado.</div>';
$txt['advertiselefton'] = 'Mostrar o lado esquerdo anuncio:';
$txt['advertiserighton'] = 'Mostrar o lado direito anuncio:';
$txt['advertiseleft'] = 'Bloco lado esquerdo publicitar conteúdo:';
$txt['advertiseright'] = 'Lateral direita anunciar bloquear conteúdo:';
$txt['advertiselefttype'] = 'Lateral esquerda anunciar codificação tipo:';
$txt['advertiserighttype'] = 'Lateral direita anunciar tipo de codificação:';
$txt['advertisehtml'] = 'Html';
$txt['advertisephp'] = 'Php';
$txt['sp-forum'] = 'Fórum';]]></add>
</operation>
</file>
Title: Re: SimplePortal
Post by: ruaduck on May 27, 2008, 10:45:31 AM
Quote from: tfalbb on May 26, 2008, 09:01:02 AM
Quote from: [SiNaN] on May 26, 2008, 08:38:26 AM
Quote from: tfalbb on May 26, 2008, 08:36:44 AM
English

Wow, interesting. Does this link work for you?

http://yoursiteadress/index.php?action=featuresettings;sa=sportal;

Yes it gets me to the settings page, but as you can see from the screenshot the Simple Portal tab is blank when I use that link. It doesn't show at all when I use the normal method of accessing the admin panel.

(http://www.iplpokerforum.com/images/spadmin.jpg)


Are you sure you are not using english-utf8.php      for me i had to put the SP stuff into my english-utf8.php before mine would work.
Title: Re: SimplePortal
Post by: markvon on May 27, 2008, 12:10:30 PM
How can i change the positions of the blocks in the template? I am trying to swap the position of Top Poll with Advertisement.
Title: Re: SimplePortal
Post by: tfalbb on May 27, 2008, 05:19:12 PM
Quote from: ruaduck on May 27, 2008, 10:45:31 AM
Quote from: tfalbb on May 26, 2008, 09:01:02 AM
Quote from: [SiNaN] on May 26, 2008, 08:38:26 AM
Quote from: tfalbb on May 26, 2008, 08:36:44 AM
English
Wow, interesting. Does this link work for you?

http://yoursiteadress/index.php?action=featuresettings;sa=sportal;

Yes it gets me to the settings page, but as you can see from the screenshot the Simple Portal tab is blank when I use that link. It doesn't show at all when I use the normal method of accessing the admin panel.

(http://www.iplpokerforum.com/images/spadmin.jpg)


Are you sure you are not using english-utf8.php      for me i had to put the SP stuff into my english-utf8.php before mine would work.

No, not utf-8. I'm more inclined to think it's a clash with another installed mod. Which file should I check and which lines need to be in there for this to work? I'll check and add the lines manually if need be.
Title: Re: SimplePortal
Post by: Elia on May 27, 2008, 05:56:56 PM
I have installed Simple Portal.. but with the theme i'm using i can't see the "Forum" Button. can anyone help please?
Title: Re: SimplePortal
Post by: cleanfiles on May 27, 2008, 08:03:06 PM
tfalbb, if you go to the mod page and use the package parser it will show you all edits this mod makes.

Quote from: Elia on May 27, 2008, 05:56:56 PM
I have installed Simple Portal.. but with the theme i'm using i can't see the "Forum" Button. can anyone help please?

You need to manually edit the index.template.php in your theme folder. this package parser will give you theme edits
http://www.smfhacks.com/smf-package-parser.html
Title: Re: SimplePortal
Post by: sorosh1 on May 29, 2008, 05:34:56 AM
Can someone help me? I have a little problem with my poral.

When i open my site, then my page is very width. Like you see in the image (atthebeginning.jpg)
But after 10 sec or more i changes back to normal Like you see in the image (normal.jpg)

I have also post my sporal.template.php..( if need other file please repley then)

Does somebody know how to fix this one? I would really appreciated it if somebody help me becasue i cound''t!..

Title: Re: SimplePortal
Post by: [SiNaN] on May 29, 2008, 07:04:33 AM
Quote from: tfalbb on May 26, 2008, 09:01:02 AM
Quote from: [SiNaN] on May 26, 2008, 08:38:26 AM
Quote from: tfalbb on May 26, 2008, 08:36:44 AM
English

Wow, interesting. Does this link work for you?

http://yoursiteadress/index.php?action=featuresettings;sa=sportal;

Yes it gets me to the settings page, but as you can see from the screenshot the Simple Portal tab is blank when I use that link. It doesn't show at all when I use the normal method of accessing the admin panel.

(http://www.iplpokerforum.com/images/spadmin.jpg)

Can you attach your Modifications.english.php and ModSettings.php files so that I can check?

Quote from: Sic0 on May 26, 2008, 02:27:35 PM
Nice mod and well done.

Is it possible to integrate the forum into the centre of the page, instead of having to link to it?



Hımmmm, not yet.

Quote from: markvon on May 27, 2008, 12:10:30 PM
How can i change the positions of the blocks in the template? I am trying to swap the position of Top Poll with Advertisement.

Can you attach your SPortal.template.php file?

Quote from: sorosh1 on May 29, 2008, 05:34:56 AM
Can someone help me? I have a little problem with my poral.

When i open my site, then my page is very width. Like you see in the image (atthebeginning.jpg)
But after 10 sec or more i changes back to normal Like you see in the image (normal.jpg)

I have also post my sporal.template.php..( if need other file please repley then)

Does somebody know how to fix this one? I would really appreciated it if somebody help me becasue i cound''t!..



The problem is that you have so so many pictures loading in the center-bottom block. That's why it takes so much time to open the whole page.
Title: Re: SimplePortal
Post by: sorosh1 on May 29, 2008, 07:16:16 AM
QuoteThe problem is that you have so so many pictures loading in the center-bottom block. That's why it takes so much time to open the whole page.

Thanks [SiNaN]  , I fixd it. Thanks to you I know what the problem was;)
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 29, 2008, 07:24:58 AM
Quote from: [SiNaN] on May 26, 2008, 08:25:53 AM
Quote from: asudhakar on May 25, 2008, 11:55:42 AM
If the link you gave before is the one you use in your site, I'll try to code the block for it.

Yes your are right SiNaN, could you help me Out if possible.
http://www.simplemachines.org/community/index.php?topic=227599.msg1542972#msg1542972

Will look at it, but do not hurry that much.

when you will help me siNaN, am waiting for it siNaN.

ITs just a reminder, Thank you.
Title: Re: SimplePortal
Post by: erlend_sh on May 29, 2008, 07:36:56 AM
Wow, I can't believe I didn't notice this mod before now. It's really great that TinyPortal is getting some competition, and from what I can see this looks like high quality work. I hope you're not planning on making this a one-man sailing ;)

If it was SMF 2.0 compatible I'd be on it like a... something that really sticks to something.
Title: Re: SimplePortal
Post by: [SiNaN] on May 29, 2008, 07:40:18 AM
Things are not like they seem to be. :P

This is so so simple considered to the TinyPortal. Maybe a little brother for Tiny right now.

I'm waiting the end of my finals, then I hope everything will change.

And this is for you asudhakar. Add this code to the one of the advertise blocks and select php as the type:

/******************************************************************************
* Tiny Portal/SMF Arcade - Combined Games and Scrolling Champ Block           *
*******************************************************************************
* Version:              1.0 - for SMFARCADE V2 E2.5.0 on                        *
* File by:            Eric Lawson - www.ericsworld.eu                            *
*******************************************************************************
*                                                                             *
* To install:                                                                 *
* Copy the entire contents (crtl+a)(ctrl+c) of this file into a phpblock      *
*                                                                               *
* Edits:                                                                      *
* Change the txt strings to suit your language.                               *
* Set $no_topten = <number of top players to show>                            *
* Set $gamesUrl = <to the same as games url in arcade settings>                  *
* Set $no_games = <number of game icons to show at top of block>                     *
* Set $icons_per_row = <number of icons per row>                              *
* Set $gamesUrl = <to the same as games url in arcade settings>                  *
*                                                                             *
* Uploads:                                                                                                *
* Upload a pic called arcade_block.gif                                        *
* (you can use you own gif - just name it arcade_block.gif) to each:          *
* Themes/<themename>/images/                                                  *
*                                                                             *
* This file is distributed in the hope that it is and will be useful,         *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of            *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                        *
*                                                                             *
******************************************************************************/
global $gamesUrl;
/*******EDITS*****************************************************************/


$no_games=8;
$icons_per_row = 4;
$no_topten = 10;
$gamesUrl = 'http://www.urlinhere/Games/';

// --LANGUAGE EDITS --
$txtplay = "The Top Players"; // change "The Top Players" to your language
$txtwin = "Number Of Wins :";// change "Number Of Wins :" to your language
$txtlate = "Latest High Score by ";// change "Latest High Score set by" to your language
$txtwit = "with ";// change "with" to your language
$txton = "on ";// change "on" to your language


//******NOTHING TO EDIT BELOW HERE********************************************

global $scripturl,$sourcedir,$boardurl,$db_prefix,$modSettings,$settings;
require_once($sourcedir.'/ArcadeDbConnector.php');
require_once($sourcedir.'/ArcadeStats.php');

echo '<table width="100%">
         <tr>
            <td align="center">
               <br />
               <a href="',$scripturl,'?action=arcade"><img src="',$settings['images_url'],'/arcade_block.gif" border= "0" alt="Arcade" /></a>
               <br />
            </td>
         </tr>
      </table>';
     
$random_games_choice = rand(1,4);
$games_choice = 'games'.$random_games_choice;
$curr_position = 0;
$games_choice($no_games,$curr_position,$icons_per_row);

Function games3($no,$curr_position,$icons_per_row)
{
   global $scripturl,$db_prefix,$gamesUrl;
   //show the latest games
   echo '<div align="center">Latest Games<br />
   <table cellpadding="2" cellspacing="5">
   <tr>';

   $sql = "SELECT ID_GAME, game_name, thumbnail, game_directory
               FROM {$db_prefix}arcade_games
               ORDER BY ID_GAME DESC , game_name ASC LIMIT 0,{$no}";
   $result = db_query($sql,__FILE__,__LINE__);
   while($game = mysql_fetch_array($result))
   {
      $game_thumb = !$game['game_directory'] ?   $gamesUrl.$game['thumbnail'] : $gamesUrl.$game['game_directory']."/".$game['thumbnail'];
      if($curr_position == $icons_per_row)
      {
         echo '</tr><tr>';
         $curr_position=0;
      }
      echo'
      <td>
      <a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['ID_GAME'].'">
      <img src="'.$game_thumb.'" border="0" alt="'.$game['game_name'].'" width="30" height="30" title="Play '.$game['game_name'].'"/></a>
      </td>';
      $curr_position++;
   }
   mysql_free_result($result);

   echo '
   </tr>
   </table></div>';
}

Function games1($no,$curr_position,$icons_per_row)
{
   //show most played games (one score version only)
   global $scripturl,$db_prefix,$gamesUrl;

   echo '<div align="center">Most Played<br />
   <table cellpadding="2" cellspacing="5">
   <tr>';

   $sql = "SELECT ID_GAME, game_name, thumbnail, game_directory
               FROM {$db_prefix}arcade_games
               ORDER BY number_plays DESC , game_name ASC LIMIT 0,{$no}";
   $result = db_query($sql,__FILE__,__LINE__);
   while($game = mysql_fetch_array($result))
   {
      $game_thumb = !$game['game_directory'] ?   $gamesUrl.$game['thumbnail'] : $gamesUrl.$game['game_directory']."/".$game['thumbnail'];
      if($curr_position == $icons_per_row)
      {
         echo '</tr><tr>';
         $curr_position=0;
      }
      echo'
      <td>
      <a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['ID_GAME'].'">
      <img src="'.$game_thumb.'" border="0" alt="'.$game['game_name'].'" width="30" height="30" title="Play '.$game['game_name'].'"/></a>
      </td>';
      $curr_position++;
   }
   mysql_free_result($result);

   echo '
   </tr>
   </table></div>';
}


Function games4($no,$curr_position,$icons_per_row)
{
   //show least played games (one score version only)
   global $scripturl,$db_prefix,$gamesUrl;
   echo '<div align="center">Least Played<br />
   <table cellpadding="2" cellspacing="5">
   <tr>';

   $sql = "SELECT ID_GAME, game_name, thumbnail, game_directory
               FROM {$db_prefix}arcade_games
               ORDER BY number_plays ASC , game_name ASC LIMIT 0,{$no}";
   $result = db_query($sql,__FILE__,__LINE__);
   while($game = mysql_fetch_array($result))
   {
      $game_thumb = !$game['game_directory'] ?   $gamesUrl.$game['thumbnail'] : $gamesUrl.$game['game_directory']."/".$game['thumbnail'];
      if($curr_position == $icons_per_row)
      {
         echo '</tr><tr>';
         $curr_position=0;
      }
      echo'
      <td>
      <a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['ID_GAME'].'">
      <img src="'.$game_thumb.'" border="0" alt="'.$game['game_name'].'" width="30" height="30" title="Play '.$game['game_name'].'"/></a>
      </td>';
      $curr_position++;
   }
   mysql_free_result($result);

   echo '
   </tr>
   </table></div>';
}


Function games2($no,$curr_position,$icons_per_row)
{
   //show best rated games
   global $scripturl,$db_prefix,$gamesUrl;
   echo '<div align="center">Top Rated<br />
   <table cellpadding="2" cellspacing="5">
   <tr>';

   $sql = "SELECT ID_GAME, game_name, thumbnail, game_directory
               FROM {$db_prefix}arcade_games
               ORDER BY game_rating DESC , game_name ASC LIMIT 0,{$no}";
   $result = db_query($sql,__FILE__,__LINE__);
   while($game = mysql_fetch_array($result))
   {
      $game_thumb = !$game['game_directory'] ?   $gamesUrl.$game['thumbnail'] : $gamesUrl.$game['game_directory']."/".$game['thumbnail'];
      if($curr_position == $icons_per_row)
      {
         echo '</tr><tr>';
         $curr_position=0;
      }
      echo'
      <td>
      <a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['ID_GAME'].'">
      <img src="'.$game_thumb.'" border="0" alt="'.$game['game_name'].'" width="30" height="30" title="Play '.$game['game_name'].'"/></a>
      </td>';
      $curr_position++;
   }
   mysql_free_result($result);

   echo '
   </tr>
   </table></div>';
}


//Get newest champ or die
$sql = "SELECT game.id_game, game.game_name, game.thumbnail, game.game_directory,
        IFNULL(mem.ID_MEMBER, 0) AS ID_MEMBER, IFNULL(mem.realName,'') AS realName, score.score
        FROM {$db_prefix}arcade_scores AS score
        LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = score.id_member)
        JOIN {$db_prefix}arcade_games AS game ON (game.id_game = score.id_game)
        ORDER BY `champion_from` DESC
        LIMIT 0,1";
if(!($result = db_query($sql,__FILE__,__LINE__)))
{
   die("Could not get the newest champ");
}
$row = mysql_fetch_assoc($result);
mysql_free_result($result);

//newest champ details
$playerid = $row['ID_MEMBER'];
$player = $row['realName'];
$game_id = $row['id_game'];
$game_name = $row['game_name'];
$score = round($row['score'], 3);
$game_pic = !$row['game_directory'] ?   $gamesUrl.$row['thumbnail'] : $gamesUrl.$row['game_directory']."/".$row['thumbnail'];


$bp=ArcadeStats_BestPlayers($no_topten);

$score_poss=0; //players position

?>

<script type="text/javascript">

/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scrollx=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeedx=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseitx=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeedx=marqueespeedx
var pausespeedx=(pauseitx==0)? copyspeedx: 0
var actualheightx=''

function scrollmarqueex(){
if (parseInt(cross_marqueex.style.top)>(actualheightx*(-1)+8))
cross_marqueex.style.top=parseInt(cross_marqueex.style.top)-copyspeedx+"px"
else
cross_marqueex.style.top=parseInt(marqueeheightx)+8+"px"
}

function initializemarqueex(){
cross_marqueex=document.getElementById("vmarqueex")
cross_marqueex.style.top=0
marqueeheightx=document.getElementById("marqueecontainerx").offsetHeight
actualheightx=cross_marqueex.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marqueex.style.height=marqueeheightx+"px"
cross_marqueex.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarqueex()",30)', delayb4scrollx)
}

if (window.addEventListener)
window.addEventListener("load", initializemarqueex, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarqueex)
else if (document.getElementById)
window.onload=initializemarqueex

</script>
<?php
echo '<br />
      <div id="marqueecontainerx" style="position: relative; width: 95%; height:200px; overflow: hidden; border: 0px; padding: 2px; padding-left: 4px;" onmouseover="copyspeedx=pausespeedx" onmouseout="copyspeedx=marqueespeedx">
         <div id="vmarqueex" style="position: absolute; width: 98%;">
            <div align="center">
               <a href="'
,$scripturl,'?action=arcade;sa=play;game=',$game_id,'"><img src="',$game_pic,'" border="0" alt="',$game_name,'" width="60" height="60"/></a>
               <br />'
,$txtlate,'<br />
               <a href="'
,$scripturl,'?action=profile;u=',$playerid,'">',$player,'</a>
               <br/>'
,$txtwit,' ',$score,' ',$txton,'<br />',$game_name,'
               <br />------------------<br />'
,$txtplay,'<br /><br />';
               foreach (
$bp as $out)
               {
                  
$score_poss++;
                  echo 
'',$score_poss,' - ',$out['link'],'<br />',$txtwin,' ',$out['champions'],'
                       <br /><br />'
;
               };
   echo 
'</div>
         </div>
      </div>'
;
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 29, 2008, 10:21:10 AM
Hey siNaN,

Thanks a lot . Really its works so cute .

Fits to my page.

Let me know how to create it as a permanent block towards the right side or left side in the top.

So that i will make it to fit on my screen.

Check out at http://forum.itacumens.com

Thanks a lot siNaN for this Good Work
Title: Re: SimplePortal
Post by: [SiNaN] on May 29, 2008, 10:23:38 AM
May I have your SPorta.template.php file?
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 29, 2008, 10:47:57 AM
Quote from: [SiNaN] on May 29, 2008, 10:23:38 AM
May I have your SPortal.template.php file?

Thank you siNaN,

And kindly check out this,
http://www.simplemachines.org/community/index.php?topic=227599.msg1559615#msg1559615

In the above post you saw some attachment file, where he has included menu in the left side.

Which i also would like it , if you could do for my page.

And here is my sportal.template.php page

$gamesUrl = 'http://www.itacumens.com/forum/Games/';
Title: Re: SimplePortal
Post by: [SiNaN] on May 29, 2008, 10:54:54 AM
I just changed the position and name of the advertise block.

You do not need to have a SPortal.template.php file in DilberMC theme. Just you need one in default theme and it will be enough.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 29, 2008, 11:15:28 AM
I have removed the sportal page in dilbermc theme.
Then i have reloaded the page in default,

Got it done,
i found if i check enabling arcade block, it shows the previous error somethingi in sources/sportal.php @ line 861,
Same if i uncheck one of the left advertisement block,

The arcade block gets vanished.

So i understood, you have added a advertisement block as arcade.
Title: Re: SimplePortal
Post by: erlend_sh on May 29, 2008, 03:10:12 PM
Quote from: [SiNaN] on May 29, 2008, 07:40:18 AM
Things are not like they seem to be. :P
(...)
Hehe, I wasn't really expecting that you would be challenging them on the feature-side of things just yet, but by offering a drastically lighter solution yet similar looking and with same basic functions, you do make for a good competitor already ;)

You didn't reply to my subtle inquiry about SMF 2.0 though; Can 2.0 support be expected, if not soon then at least eventually?
Title: Re: SimplePortal
Post by: [SiNaN] on May 30, 2008, 01:31:18 AM
Everything is ready for it to support 2.0 but I'm too lazy about writing packages. Will try to do after my exam that will start after 20 minutes.
Title: Re: SimplePortal
Post by: Marcus Forsberg on May 30, 2008, 10:37:09 AM
Hi!

Would u like to install this on my theme for me?
And could u edit and attach the other files that need to be edited, couse my Packagemanager don't work on my server, and I suck installing mannualy.
Title: Re: SimplePortal
Post by: Munze on May 30, 2008, 10:45:08 AM
Quote from: [SiNaN] on May 03, 2008, 04:41:44 AM
Thanks asudhakar. As I'm not a native speaker, sometimes I'm having difficulty in understanding the issues.

So for the karma issue:

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

Find and delete:

<img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /> ', $txt['sp-userkarma'], ': ',$memberContext[$member_id]['karma']['total'],'<br />

Hımmm, the second one about the board news is going to be a bit hard though. But okay, let's start...

../Sources/SPortal.php

Find and delete:

if ($board !== null)

$board = (int) $board;

elseif (isset($_GET['board']))

$board = (int) $_GET['board'];


Find and delete:

// Make sure guests can see this board.

$request = db_query("

SELECT ID_BOARD

FROM {$db_prefix}boards

WHERE " . ($board === null ? '' : "ID_BOARD = $board

AND ") . "FIND_IN_SET(-1, memberGroups)

LIMIT 1", __FILE__, __LINE__);

if (mysql_num_rows($request) == 0)

{

die($txt['smf_news_error2']);

}

list ($board) = mysql_fetch_row($request);

mysql_free_result($request);



Find:

WHERE ID_BOARD = $board

Replace:

WHERE ID_BOARD IN $board

../Sources/ModSettings.php

Find:

array('int', 'nnewsboard'),

Replace:

array('text', 'nnewsboard'),

And then set the news board as the format below from the Portal Settings;

(firstboardid, secondboardid, thirdboardid)

Example for your forum;

(23,12)


Not working.I get only blank screen(in board news) when i do that..
Title: Re: SimplePortal
Post by: Eliana Tamerin on May 30, 2008, 12:02:33 PM
I hope your exam went well, SiNaN!
Title: Re: SimplePortal
Post by: slackerpunk on May 30, 2008, 10:03:12 PM
how was the exam? Will bookmark this post and monitor the progress. great mod
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 31, 2008, 06:35:20 AM
SiNaN is a html & php code'r .

So we hope he will do good only in programming examz  ;)
Title: Re: SimplePortal
Post by: Marcus Forsberg on May 31, 2008, 10:41:15 AM
Freaky O.o
Suuently the Pmanger works :)
Don't need help, anyway!
Hope your exams went well!
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on May 31, 2008, 11:15:25 PM
SiNaN from today morning, i have 100 of errors generated if someone visits the homepage or say current simple portal index.php page.

Check out the error message :

The_Big_S    Today at 08:40:14
Apply Filter: Only show the error messages of this IP address 122.164.111.111    Apply Filter: Only show the error messages of this session 522d903418c234ddc6efe42dfa1fg8435218csb
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: 1
File: /home/itacumen/public_html/forum/Sources/SPortal.php
Line: 484


Come soon and tell me what could be error siNaN, i have not installed any one mod for last one week.

But today morning i have downloaded smf backup soft @ http://hex.ro/wb/pages/projects/java-smf-backup.php

And that too not connected with forum - showed error while connecting.
Title: Re: SimplePortal
Post by: Brenda on June 01, 2008, 03:06:02 PM
How does this compare to TinyPortal? I've been using TP but if this one is just is good, I'll switch
Title: Re: SimplePortal
Post by: Ni©holąś™ on June 01, 2008, 03:08:18 PM
Congratulations Sinan..Great portal :)
Title: Re: SimplePortal
Post by: jossanaijr on June 01, 2008, 03:31:29 PM
Quote from: [SiNaN] on May 30, 2008, 01:31:18 AM
Everything is ready for it to support 2.0 but I'm too lazy about writing packages. Will try to do after my exam that will start after 20 minutes.
Wow! ;)
Title: Re: SimplePortal
Post by: [SiNaN] on June 02, 2008, 05:36:22 AM
Quote from: MTF95 on May 30, 2008, 10:37:09 AM
Hi!

Would u like to install this on my theme for me?
And could u edit and attach the other files that need to be edited, couse my Packagemanager don't work on my server, and I suck installing mannualy.

Couldn't get want you want?

Quote from: Munze on May 30, 2008, 10:45:08 AM
Not working.I get only blank screen(in board news) when i do that..

Make the changes carefully as there are so many.

Quote from: Eliana Tamerin on May 30, 2008, 12:02:33 PM
I hope your exam went well, SiNaN!

Thanks Eliana, they are going well.

Quote from: slackerpunk on May 30, 2008, 10:03:12 PM
how was the exam? Will bookmark this post and monitor the progress. great mod

Gave the answer. Thanks.

Quote from: MTF95 on May 31, 2008, 10:41:15 AM
Freaky O.o
Suuently the Pmanger works :)
Don't need help, anyway!
Hope your exams went well!

Didn't get again, but thanks anyway.

Quote from: asudhakar on May 31, 2008, 11:15:25 PM
SiNaN from today morning, i have 100 of errors generated if someone visits the homepage or say current simple portal index.php page.

Check out the error message :

The_Big_S    Today at 08:40:14
Apply Filter: Only show the error messages of this IP address 122.164.111.111    Apply Filter: Only show the error messages of this session 522d903418c234ddc6efe42dfa1fg8435218csb
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: 1
File: /home/itacumen/public_html/forum/Sources/SPortal.php
Line: 484


Come soon and tell me what could be error siNaN, i have not installed any one mod for last one week.

But today morning i have downloaded smf backup soft @ http://hex.ro/wb/pages/projects/java-smf-backup.php

And that too not connected with forum - showed error while connecting.

Back-up problem is not related with this mod.

Can you attach your SPortal.php file so that I can try a fix.

Quote from: Brenda on June 01, 2008, 03:06:02 PM
How does this compare to TinyPortal? I've been using TP but if this one is just is good, I'll switch

I do not suggest. It looks as good as -people say better than- TP just visually, I mean for the end-user. But not functional like TP. This is very simple.
Title: Re: SimplePortal
Post by: Marcus Forsberg on June 02, 2008, 07:07:51 AM
Sinan, I ment that my Package manager didn't work, so I asked you to help me install.
But then the Manager started to work, so I could install it anyway.
Title: Re: SimplePortal
Post by: [SiNaN] on June 02, 2008, 07:15:41 AM
Quote from: MTF95 on June 02, 2008, 07:07:51 AM
Sinan, I ment that my Package manager didn't work, so I asked you to help me install.
But then the Manager started to work, so I could install it anyway.

Now it's clear. ;)
Title: Re: SimplePortal
Post by: skelgaard on June 02, 2008, 07:39:41 AM
any ETA when the version for 2.0 will be released ?
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on June 02, 2008, 08:57:21 AM
HI siNaN,

I said what are the things i did, i never meant backup as a issue.
I hope this may be help ful to you.

Okie i have shown you the recent error in my forum error log, Check out

Guest    Today at 18:19:13
Apply Filter: Only show the error messages of this IP address 121.222.188.344    Apply Filter: Only show the error messages of this session afde5504718754da6d899578f0f8e38f
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: 718
File: /home/itacumen/public_html/forum/Sources/SPortal.php
Line: 484


And here is my sportal.php located at Sources Directory.
Title: Re: SimplePortal
Post by: [SiNaN] on June 02, 2008, 09:13:33 AM
Try this:
Title: Re: SimplePortal
Post by: skelgaard on June 02, 2008, 12:20:37 PM
any change of a complete package as i'm doing theese test on a fresh install, so i can't use the 1.2 version even with updated sportal.php, as test fails....
Title: Re: SimplePortal
Post by: [SiNaN] on June 02, 2008, 02:05:57 PM
Quote from: skelgaard on June 02, 2008, 12:20:37 PM
any change of a complete package as i'm doing theese test on a fresh install, so i can't use the 1.2 version even with updated sportal.php, as test fails....

Couldn't get your problem.
Title: Re: SimplePortal
Post by: Burningfire87 on June 02, 2008, 04:11:24 PM
after install i get this in my error log per person that visits the main page


Apply Filter: Only show the errors with the same message
8: Undefined index: link
File: /home/content/M/e/t/Metrofx/html/friggy/Sources/SPortal.php
Line: 587

Its also on Lines 486 and 763
attached is my SPortal.php File and Index.php
Title: Re: SimplePortal
Post by: skelgaard on June 03, 2008, 02:16:55 AM
7.     Execute Modification     ./Sources/ModSettings.php     File not found
8.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Replace    ./Themes/default/index.template.php    Test failed
      3.    Replace    ./Themes/default/index.template.php    Test failed
      4.    Replace    ./Themes/default/index.template.php    Test failed
Title: Re: SimplePortal
Post by: Rik© on June 03, 2008, 02:33:19 AM
Hi

Is this mod based on the old SimplePortal by Nesianstyles?

- Rik©
Title: Re: SimplePortal
Post by: [SiNaN] on June 03, 2008, 04:32:00 AM
Quote from: Burningfire87 on June 02, 2008, 04:11:24 PM
after install i get this in my error log per person that visits the main page


Apply Filter: Only show the errors with the same message
8: Undefined index: link
File: /home/content/M/e/t/Metrofx/html/friggy/Sources/SPortal.php
Line: 587

Its also on Lines 486 and 763
attached is my SPortal.php File and Index.php

Will look at that.

Quote from: skelgaard on June 03, 2008, 02:16:55 AM
7.     Execute Modification     ./Sources/ModSettings.php     File not found
8.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Replace    ./Themes/default/index.template.php    Test failed
      3.    Replace    ./Themes/default/index.template.php    Test failed
      4.    Replace    ./Themes/default/index.template.php    Test failed

Are you trying to install the mod to the SMF 2.0 Beta?

Quote from: Rik© on June 03, 2008, 02:33:19 AM
Hi

Is this mod based on the old SimplePortal by Nesianstyles?

- Rik©

No. This is completely coded by me. And there isn't any other mod named SimplePortal for SMF.

See: http://custom.simplemachines.org/mods/index.php?action=search;basic_search=simpleportal
Title: Re: SimplePortal
Post by: Rik© on June 03, 2008, 04:49:43 AM
Quote from: [SiNaN] on June 03, 2008, 04:32:00 AM


Quote from: Rik© on June 03, 2008, 02:33:19 AM
Hi

Is this mod based on the old SimplePortal by Nesianstyles?

- Rik©

No. This is completely coded by me. And there isn't any other mod named SimplePortal for SMF.

See: http://custom.simplemachines.org/mods/index.php?action=search;basic_search=simpleportal
sorry, but there was a SimplePortal (v1) by Nesianstyles e few years ago
--> http://www.simplemachines.org/community/index.php?topic=36680.0

Nesianstyles didn't develop it further, so i kinda kept developing it for personal use.
They look the same, and they have the same name, that's why i asked.

Have a look at the SimplePortal i created from the old SimplePortal.
--> http://simpletweaks.zoomcities.eu/forum/
and
--> http://simpletweaks.zoomcities.eu/forum/index.php?action=aboutSP2

I submitted it to the mod-team, but it needed some code-changes to get approved, and i didn't had the time back then.

Anyway, great job  ;D , and if you need/want any help with the mod (block codes, develop it further, support, hosting a supportsite etc.) let me know...

- Rik©

ps i will rename my personal SP to avoid confusion
Title: Re: SimplePortal
Post by: [SiNaN] on June 03, 2008, 04:54:51 AM
I didn't know about that. With the release of SPv2.0 -hope it will ready in mid-summer- I will need a team. :)
Title: Re: SimplePortal
Post by: sorosh1 on June 03, 2008, 05:01:38 AM
Sinan where and witch code must I write to make a block collapse able?

Thanks
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on June 03, 2008, 09:09:07 AM
siNaN, i have uploaded the sportal.php file which you have given and found the page is not loading up. Check out the image below.

That to in the front page itself - http://forum.itacumens.com
Title: Re: SimplePortal
Post by: fotografo74 on June 03, 2008, 12:53:41 PM
Thank you SiNaN for this great Mod!
I installed Simpleportal here: http://www.macrofotografia.net/forum-fotografia/index.php

I have a problem with poll right side block....the poll's id is 4 but not displayed  :(
Sorry for my english...
Antonio
Title: Re: SimplePortal
Post by: [SiNaN] on June 03, 2008, 02:09:00 PM
Quote from: sorosh1 on June 03, 2008, 05:01:38 AM
Sinan where and witch code must I write to make a block collapse able?

Thanks

I should work on it to give an answer.

Quote from: asudhakar on June 03, 2008, 09:09:07 AM
siNaN, i have uploaded the sportal.php file which you have given and found the page is not loading up. Check out the image below.

That to in the front page itself - http://forum.itacumens.com

Fixed. Can you try the one attached?

Quote from: fotografo74 on June 03, 2008, 12:53:41 PM
Thank you SiNaN for this great Mod!
I installed Simpleportal here: http://www.macrofotografia.net/forum-fotografia/index.php

I have a problem with poll right side block....the poll's id is 4 but not displayed  :(
Sorry for my english...
Antonio

You should enter the ID of the topic that contains the poll.

Quote from: Burningfire87 on June 02, 2008, 04:11:24 PM
after install i get this in my error log per person that visits the main page


Apply Filter: Only show the errors with the same message
8: Undefined index: link
File: /home/content/M/e/t/Metrofx/html/friggy/Sources/SPortal.php
Line: 587

Its also on Lines 486 and 763
attached is my SPortal.php File and Index.php

Let's see if the fix works on Asudhakar first. Then we will apply to you.
Title: Re: SimplePortal
Post by: sorosh1 on June 03, 2008, 02:38:58 PM
QuoteI should work on it to give an answer.

Ok, no pressure ;)
I will come back from time to time to see this topic and if you have a solotion for that.
(Maby a new feature for the update of the mod)

thanks
Title: Re: SimplePortal
Post by: fotografo74 on June 03, 2008, 02:39:35 PM
Quote from: [SiNaN

You should enter the ID of the topic that contains the poll.

Thank you alot !
Antonio
Title: Re: SimplePortal
Post by: slackerpunk on June 05, 2008, 07:02:39 AM
anyway to make this work with

http://www.simplemachines.org/community/index.php?topic=76344.320

and also for some reason I am missing the forum link
Title: Re: SimplePortal
Post by: slackerpunk on June 05, 2008, 07:44:07 PM
anyone have any ideas?
Title: Re: SimplePortal
Post by: [SiNaN] on June 06, 2008, 05:37:12 AM
It has a SSI function as I remember. I will look at that.
Title: Re: SimplePortal
Post by: slackerpunk on June 06, 2008, 06:23:28 AM
Quote from: Sadrazam on June 06, 2008, 05:37:12 AM
It has a SSI function as I remember. I will look at that.

thanks
Title: Re: SimplePortal
Post by: Rik© on June 06, 2008, 06:37:13 AM
Quote from: slackerpunk on June 05, 2008, 07:02:39 AM
and also for some reason I am missing the forum link
The mod-package only places a forum link in the default theme.
If you use another theme you will have to do it manually.

If your not familiar with coding/php i can help, if you want.... just let me know which theme you're using.

- Rik©
Title: Re: SimplePortal
Post by: slackerpunk on June 06, 2008, 06:51:05 AM
Quote from: Rik© on June 06, 2008, 06:37:13 AM
Quote from: slackerpunk on June 05, 2008, 07:02:39 AM
and also for some reason I am missing the forum link
The mod-package only places a forum link in the default theme.
If you use another theme you will have to do it manually.

If your not familiar with coding/php i can help, if you want.... just let me know which theme you're using.

- Rik©

yup I did that I just forgot to update the post :)
Title: Re: SimplePortal
Post by: Drover on June 10, 2008, 03:08:40 PM
Hi,

Just installed this on a new forum and the right column is missing.  Ideas?
Title: Re: SimplePortal
Post by: [SiNaN] on June 11, 2008, 03:08:57 AM
Did you set the BoardNews board ID as a guest-viewable-board-ID?
Title: Re: SimplePortal
Post by: dd3 on June 11, 2008, 09:48:20 PM
Im having trouble with something. How do I find the board id and poll id out?
Title: Re: SimplePortal
Post by: ruckstande on June 12, 2008, 07:47:33 AM
I panicked because my forum index disappeared. I went to go uninstall but the package still says apply mod. I don't know what did it but it messed up everything.
Title: Re: SimplePortal
Post by: ruckstande on June 12, 2008, 10:21:03 AM
How do I fix this thing? I reuploaded the entire website via FTP from the night before and SimplePortal is still showing in the package manager as "Apply". WTF?
Title: Re: SimplePortal
Post by: Eliana Tamerin on June 12, 2008, 11:02:55 AM
Go to /Packages via FTP. Is the simpleportal .zip still there? If so, remove it, and it'll be gone from your package manager.
Title: Re: SimplePortal
Post by: ruckstande on June 12, 2008, 11:18:47 AM
Okay I gave it the boot. It really messed me up. It seems like switching back to the SMF default theme then back to my custom theme corrected some errors.
Title: Re: SimplePortal
Post by: ruckstande on June 12, 2008, 12:24:00 PM
Nope, I'm still screwed up. I started getting an error in Subs.php which I don't even understand why because this mod doesn't change that.
Title: Re: SimplePortal
Post by: Stonycreek on June 13, 2008, 11:09:07 PM
OK, I am kind of new to SMF and I would really like to try out this mod....  However, I made the changes but when in the control panel and I click on 'portal settings' ---- nothing happens   ???

Am I missing something?  anybody have any ideas what may be happening on my end?

Any help would be appreciated..

Stony
Title: Re: SimplePortal
Post by: nebulousfluff on June 14, 2008, 10:08:50 AM
I just installed this on 1.1.5 and it went fine. Then a lot of errors were popping up at the very top of the forum, so I was going to install it again.  I went into admin, clicked on uninstall and that did not work. I got nothing but errors. I went into FTP, packages, and deleted the portal package and that didn't help either.
This is the error I am getting.


Warning: main(/home/admin2/public_html/Sources/SPortal.php) [function.main]: failed to open stream: No such file or directory in /home/admin2/public_html/index.php on line 59

Fatal error: main() [function.require]: Failed opening required '/home/admin2/public_html/Sources/SPortal.php' (include_path='/usr/lib/php:.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/admin2/public_html/index.php on line 59


Any help would be appreciated. I am new to all this.

I see there is a backup in ftp that was made before I tried to install this.  I don't know how to get it to that point using ftp though.


After I posted this, I added the sources.php back to the sources ares in FTP. It brought the forum back up, but with same erros the first time...
.
.
$txt['mods_cat_sportal'] = 'Portal Settings'; $txt['sportalsettings'] = 'Portal Settings'; $txt['lshowdetails'] = 'User | Show user details?'; $txt['aspecificannounce'] = 'Announce | Use different announce?'; $txt['nshowavatar'] = 'News | Show avatar?'; $txt['tttype'] = 'Top Topic | Sort type?'; $txt['gallerytype'] = 'Gallery | Gallery type?'; $txt['galleryrandom'] = 'Random Picture'; $txt['gallerylatest'] = 'Latest Picture'; $txt['aannouncetext'] = 'Announce | Announce text:
Different announce should be checked.
'; $txt['nnewsboard'] = 'Board News | News board:'; $txt['nnewscount'] = 'Board News | News count to show:'; $txt['nnewslength'] = 'Board News | News content length:'; $txt['rppostcount'] = 'Recent Posts | Number of posts:'; $txt['rttopiccount'] = 'Recent Topics | Number of topics:'; $txt['ppollid'] = 'Top Poll | Poll id to show:'; $txt['tppcount'] = 'Top Posters | Count of posters:'; $txt['tbbcount'] = 'Top Boards | Count of boards:'; $txt['tttcount'] = 'Top Topics | Count of topics:'; $txt['arcadebpcount'] = 'Arcade | Best Player count:'; $txt['showleft'] = 'Show left side blocks:'; $txt['showright'] = 'Show right side blocks:'; $txt['leftwidth'] = 'Left side blocks width:'; $txt['rightwidth'] = 'Right side blocks width:'; $txt['showuser'] = 'Show User block:'; $txt['showusersonline'] = 'Show Users Online block:'; $txt['showboardstats'] = 'Show Board Stats block:'; $txt['showlatestmember'] = 'Show Latest Member block:'; $txt['showquicksearch'] = 'Show Quick Search block:'; $txt['showannouncements'] = 'Show Announcements block:'; $txt['showboardnews'] = 'Show Board News block:'; $txt['showrecentposts'] = 'Show Recent Posts block:'; $txt['showrecenttopics'] = 'Show Recent Topics block:'; $txt['showtoppoll'] = 'Show Top Poll block:'; $txt['showtopposters'] = 'Show Top Posters block:'; $txt['showtopboards'] = 'Show Top Boards block:'; $txt['showtoptopics'] = 'Show Top Topics block:'; $txt['showrecentpurchase'] = 'Show Recently Purchased block:
SMF Shop and Stats mod must be installed.
'; $txt['showgallery'] = 'Show Gallery block:
SMF Gallery mod must be installed.
'; $txt['showarcade'] = 'Show Arcade block:
SMF Arcade mod must be installed.
'; $txt['advertiselefton'] = 'Show left side advertise block:'; $txt['advertiserighton'] = 'Show right side advertise block:'; $txt['advertiseleft'] = 'Left side advertise block content:'; $txt['advertiseright'] = 'Right side advertise block content:'; $txt['advertiselefttype'] = 'Left side advertise coding type:'; $txt['advertiserighttype'] = 'Right side advertise coding type:'; $txt['advertisehtml'] = 'Html'; $txt['advertisephp'] = 'Php'; $txt['sp-forum'] = 'Forum';$txt['mods_cat_sportal'] = 'Portal Settings'; $txt['sportalsettings'] = 'Portal Settings'; $txt['lshowdetails'] = 'User | Show user details?'; $txt['aspecificannounce'] = 'Announce | Use different announce?'; $txt['nshowavatar'] = 'News | Show avatar?'; $txt['tttype'] = 'Top Topic | Sort type?'; $txt['gallerytype'] = 'Gallery | Gallery type?'; $txt['galleryrandom'] = 'Random Picture'; $txt['gallerylatest'] = 'Latest Picture'; $txt['aannouncetext'] = 'Announce | Announce text:
Different announce should be checked.
'; $txt['nnewsboard'] = 'Board News | News board:'; $txt['nnewscount'] = 'Board News | News count to show:'; $txt['nnewslength'] = 'Board News | News content length:'; $txt['rppostcount'] = 'Recent Posts | Number of posts:'; $txt['rttopiccount'] = 'Recent Topics | Number of topics:'; $txt['ppollid'] = 'Top Poll | Poll id to show:'; $txt['tppcount'] = 'Top Posters | Count of posters:'; $txt['tbbcount'] = 'Top Boards | Count of boards:'; $txt['tttcount'] = 'Top Topics | Count of topics:'; $txt['arcadebpcount'] = 'Arcade | Best Player count:'; $txt['showleft'] = 'Show left side blocks:'; $txt['showright'] = 'Show right side blocks:'; $txt['leftwidth'] = 'Left side blocks width:'; $txt['rightwidth'] = 'Right side blocks width:'; $txt['showuser'] = 'Show User block:'; $txt['showusersonline'] = 'Show Users Online block:'; $txt['showboardstats'] = 'Show Board Stats block:'; $txt['showlatestmember'] = 'Show Latest Member block:'; $txt['showquicksearch'] = 'Show Quick Search block:'; $txt['showannouncements'] = 'Show Announcements block:'; $txt['showboardnews'] = 'Show Board News block:'; $txt['showrecentposts'] = 'Show Recent Posts block:'; $txt['showrecenttopics'] = 'Show Recent Topics block:'; $txt['showtoppoll'] = 'Show Top Poll block:'; $txt['showtopposters'] = 'Show Top Posters block:'; $txt['showtopboards'] = 'Show Top Boards block:'; $txt['showtoptopics'] = 'Show Top Topics block:'; $txt['showrecentpurchase'] = 'Show Recently Purchased block:
SMF Shop and Stats mod must be installed.
'; $txt['showgallery'] = 'Show Gallery block:
SMF Gallery mod must be installed.
'; $txt['showarcade'] = 'Show Arcade block:
SMF Arcade mod must be installed.
'; $txt['advertiselefton'] = 'Show left side advertise block:'; $txt['advertiserighton'] = 'Show right side advertise block:'; $txt['advertiseleft'] = 'Left side advertise block content:'; $txt['advertiseright'] = 'Right side advertise block content:'; $txt['advertiselefttype'] = 'Left side advertise coding type:'; $txt['advertiserighttype'] = 'Right side advertise coding type:'; $txt['advertisehtml'] = 'Html'; $txt['advertisephp'] = 'Php'; $txt['sp-forum'] = 'Forum';$txt['mods_cat_sportal'] = 'Portal Settings'; $txt['sportalsettings'] = 'Portal Settings'; $txt['lshowdetails'] = 'User | Show user details?'; $txt['aspecificannounce'] = 'Announce | Use different announce?'; $txt['nshowavatar'] = 'News | Show avatar?'; $txt['tttype'] = 'Top Topic | Sort type?'; $txt['gallerytype'] = 'Gallery | Gallery type?'; $txt['galleryrandom'] = 'Random Picture'; $txt['gallerylatest'] = 'Latest Picture'; $txt['aannouncetext'] = 'Announce | Announce text:
Different announce should be checked.
'; $txt['nnewsboard'] = 'Board News | News board:'; $txt['nnewscount'] = 'Board News | News count to show:'; $txt['nnewslength'] = 'Board News | News content length:'; $txt['rppostcount'] = 'Recent Posts | Number of posts:'; $txt['rttopiccount'] = 'Recent Topics | Number of topics:'; $txt['ppollid'] = 'Top Poll | Poll id to show:'; $txt['tppcount'] = 'Top Posters | Count of posters:'; $txt['tbbcount'] = 'Top Boards | Count of boards:'; $txt['tttcount'] = 'Top Topics | Count of topics:'; $txt['arcadebpcount'] = 'Arcade | Best Player count:'; $txt['showleft'] = 'Show left side blocks:'; $txt['showright'] = 'Show right side blocks:'; $txt['leftwidth'] = 'Left side blocks width:'; $txt['rightwidth'] = 'Right side blocks width:'; $txt['showuser'] = 'Show User block:'; $txt['showusersonline'] = 'Show Users Online block:'; $txt['showboardstats'] = 'Show Board Stats block:'; $txt['showlatestmember'] = 'Show Latest Member block:'; $txt['showquicksearch'] = 'Show Quick Search block:'; $txt['showannouncements'] = 'Show Announcements block:'; $txt['showboardnews'] = 'Show Board News block:'; $txt['showrecentposts'] = 'Show Recent Posts block:'; $txt['showrecenttopics'] = 'Show Recent Topics block:'; $txt['showtoppoll'] = 'Show Top Poll block:'; $txt['showtopposters'] = 'Show Top Posters block:'; $txt['showtopboards'] = 'Show Top Boards block:'; $txt['showtoptopics'] = 'Show Top Topics block:'; $txt['showrecentpurchase'] = 'Show Recently Purchased block:
SMF Shop and Stats mod must be installed.
'; $txt['showgallery'] = 'Show Gallery block:
SMF Gallery mod must be installed.
'; $txt['showarcade'] = 'Show Arcade block:
SMF Arcade mod must be installed.
'; $txt['advertiselefton'] = 'Show left side advertise block:'; $txt['advertiserighton'] = 'Show right side advertise block:'; $txt['advertiseleft'] = 'Left side advertise block content:'; $txt['advertiseright'] = 'Right side advertise block content:'; $txt['advertiselefttype'] = 'Left side advertise coding type:'; $txt['advertiserighttype'] = 'Right side advertise coding type:'; $txt['advertisehtml'] = 'Html'; $txt['advertisephp'] = 'Php'; $txt['sp-forum'] = 'Forum';



Which looks like it's a lot to fix? Now I definitely need help!
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on June 14, 2008, 12:52:45 PM
Hey, i have understand that something is went wrong on your portal installation.

Make Sure that the author or the mod writer will not be available for some day since he had went for this holidays.

Keep working and wait for his arrival to correct it.
Title: Re: SimplePortal
Post by: nebulousfluff on June 15, 2008, 10:30:53 AM
Thanks.  Is there anyone that  can tell me how to restore my forum to the way it was before then? There is way too much script at the top for me to open the board up. www.nebulousfluff.com

I will install this later when the author gets back, right now I just want it looking normal again.
Title: Re: SimplePortal
Post by: Brenda on June 15, 2008, 03:30:53 PM
Figured it out....ok, I have 2 online users listed???
Title: Re: SimplePortal
Post by: Eliana Tamerin on June 15, 2008, 06:51:44 PM
nebulousfluff: Look in your /Packages/backups folder. There should be a backup zipped there of your forum's files prior to Simpleportal installation. Download that to your computer, unzip, and upload it to your forum, overwriting your current files. That should solve your issue.
Title: Re: SimplePortal
Post by: Brenda on June 16, 2008, 08:13:00 AM
I have an error in my user box. Its showing Total Messages: 5 and I only have 2 messages in my inbox and none in my outbox. A few of my members are also showing similar errors. Is there something I need to change?
Title: Re: SimplePortal
Post by: ruckstande on June 19, 2008, 08:59:50 AM
Here is a question, I am trying to test this out on my board and it worked fine this time. However there are two things I'm trying to deal with.

1. My board is pretty narrow so things are smashed together. Here is a screenshot. What do I have to change to fix it?
2. Where is the Board Index. I have all of the blocks showing up but I can find my forum in it all.
Title: Re: SimplePortal
Post by: Eliana Tamerin on June 19, 2008, 11:20:00 AM
I checked out the site url in your screenshot and checked out the CSS. You'll need to edit this class:

#widthControl
{
width: 770px;
text-align: left;
margin: 0px auto;
padding: 10px 0px 2px 0px; /* top right bottom left */
}


And adjust the width variable. I suggest something in the 900s or making it a percentage-based variable (like 85% or something).
Title: Re: SimplePortal
Post by: ruckstande on June 19, 2008, 12:04:38 PM
Quote from: Eliana Tamerin on June 19, 2008, 11:20:00 AM
I checked out the site url in your screenshot and checked out the CSS. You'll need to edit this class:

#widthControl
{
width: 770px;
text-align: left;
margin: 0px auto;
padding: 10px 0px 2px 0px; /* top right bottom left */
}


And adjust the width variable. I suggest something in the 900s or making it a percentage-based variable (like 85% or something).
Aww ******, that fixed the width. Thank you big time. Any idea how I can now center my logo at the top?

Now if I can only find the board.
Title: Re: SimplePortal
Post by: e85prices on June 19, 2008, 12:57:03 PM
SiNaN very nice Portal ..

I need a change done if you or anyone wants/has time to do it..  $20 (Paypal) to whoever will sort this out..

On Board News I love the way we get a preview of the post ..and want the same "Preview" for' Recent Posts"  ..maybe allow preview for upto the last 3 posts on any topic/thread..?  Allow as many rcent posts as I wnat just dont allow more thna 3 "previews" for any one topic if that makes sense ..So the Portal isnt filled with just one busy topic ..

I would simply not use " Board News "  not really needed for my site .. so that means "Recent Posts" would slide to the Top of the Portal WITH a Preview of the Posts  ..In other words Recent post set-up just like Board News

I am using Default SMF ..
Link to site allowed?
Title: Re: SimplePortal
Post by: Eliana Tamerin on June 19, 2008, 04:45:13 PM
ruckstande, better to ask in Graphics and Templates forum. ;)
Title: Re: SimplePortal
Post by: cleanfiles on June 19, 2008, 04:51:57 PM
Hey guys I'm back again, I have added a few custom portal blocks using the instructions SiNaN gave back a few pages in this thread and would like to hide one of them from guests, this is easy if you want to save the block as php just add
"if ($context['user']['is_guest'])
     echo "
before the rest of the code in the block.
But this time around I can only save as a html block, I was wondering if anybody knew how to hide a html block from guests?
Title: Re: SimplePortal
Post by: ruckstande on June 19, 2008, 05:04:18 PM
Quote from: Eliana Tamerin on June 19, 2008, 04:45:13 PM
ruckstande, better to ask in Graphics and Templates forum. ;)
Thank you, I'll check it out. Do you have any idea why I'm not seeing the board when I use Simple Portal?

Nevermind, the theme I'm using doesn't have a "Boards" tab.
Title: Re: SimplePortal
Post by: Eliana Tamerin on June 19, 2008, 06:42:40 PM
cleanfiles, the only way is by JS. You're better off using a php block and echoing your html.
Title: Re: SimplePortal
Post by: ruckstande on June 19, 2008, 10:01:10 PM
Okay here is a question, on the left column I see the word "Dot" a bunch of times. What do I need to do to change that?

Sorry, I'm a dope. Ignore that.
Title: Re: SimplePortal
Post by: ruckstande on June 21, 2008, 09:15:28 AM
Okay another problem here. On the center section I have "Board News". The body of board news is overlapping the poster's avatar. How do i fix that? Also it says, poll id is not valid. I have no idea what that means.
Title: Re: SimplePortal
Post by: [SiNaN] on June 21, 2008, 02:57:08 PM
You can turn off boardnews showing the avatar from the panel. If you want them to stay, then infrom me so that I can provide you a solution.

The other problem is because of that the Poll ID set for the Top Poll block is not valid. There isn'a poll with that idea, actually a topic with that ID doesn't contain a poll. You must enter a topic ID that has a poll. If you do not want to use the poll block, just turn it off from the panel.
Title: Re: SimplePortal
Post by: cleanfiles on June 21, 2008, 08:09:36 PM
Quote from: Eliana Tamerin on June 19, 2008, 06:42:40 PM
cleanfiles, the only way is by JS. You're better off using a php block and echoing your html.
Hey thanks, I actually got this prob sorted out in another thread and yeah thats what I ended up doing.
Title: Re: SimplePortal
Post by: ruckstande on June 22, 2008, 10:21:03 AM
Quote from: [SiNaN] on June 21, 2008, 02:57:08 PM
You can turn off boardnews showing the avatar from the panel. If you want them to stay, then infrom me so that I can provide you a solution.

The other problem is because of that the Poll ID set for the Top Poll block is not valid. There isn'a poll with that idea, actually a topic with that ID doesn't contain a poll. You must enter a topic ID that has a poll. If you do not want to use the poll block, just turn it off from the panel.
Okay. Thanks, I'll work on it. And what constitutes "Board News"? There is a  post on there that is pretty old and I'm not sure why it is the only one that show up on the list. What changes it?
Title: Re: SimplePortal
Post by: e85prices on June 22, 2008, 12:35:05 PM
Quote from: e85prices on June 19, 2008, 12:57:03 PM
SiNaN very nice Portal ..

I need a change done if you or anyone wants/has time to do it..  $20 (Paypal) to whoever will sort this out..

On Board News I love the way we get a preview of the post ..and want the same "Preview" for' Recent Posts"  ..maybe allow preview for upto the last 3 posts on any topic/thread..?  Allow as many rcent posts as I wnat just dont allow more thna 3 "previews" for any one topic if that makes sense ..So the Portal isnt filled with just one busy topic ..

I would simply not use " Board News "  not really needed for my site .. so that means "Recent Posts" would slide to the Top of the Portal WITH a Preview of the Posts  ..In other words Recent post set-up just like Board News

I am using Default SMF ..
Link to site allowed?

Anyone ?
Title: Re: SimplePortal
Post by: Krunch on June 23, 2008, 01:04:07 AM
Is there a way to define a specific theme to the Simple Portal front page, and have it bypass whatever theme people are currently using?

I would really like this function.
Title: Re: SimplePortal
Post by: [SiNaN] on June 23, 2008, 03:41:25 AM
Quote from: e85prices on June 22, 2008, 12:35:05 PM
Quote from: e85prices on June 19, 2008, 12:57:03 PM
SiNaN very nice Portal ..

I need a change done if you or anyone wants/has time to do it..  $20 (Paypal) to whoever will sort this out..

On Board News I love the way we get a preview of the post ..and want the same "Preview" for' Recent Posts"  ..maybe allow preview for upto the last 3 posts on any topic/thread..?  Allow as many rcent posts as I wnat just dont allow more thna 3 "previews" for any one topic if that makes sense ..So the Portal isnt filled with just one busy topic ..

I would simply not use " Board News "  not really needed for my site .. so that means "Recent Posts" would slide to the Top of the Portal WITH a Preview of the Posts  ..In other words Recent post set-up just like Board News

I am using Default SMF ..
Link to site allowed?

Anyone ?

I will inform you by pm after two day.

Quote from: Krunch on June 23, 2008, 01:04:07 AM
Is there a way to define a specific theme to the Simple Portal front page, and have it bypass whatever theme people are currently using?

I would really like this function.

Will try this too.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on June 23, 2008, 06:27:47 AM
Hey SiNaN welcome back after leave, any new updates in Simple Portal.

And how was your Leave, write here or PM me.
Title: Re: SimplePortal
Post by: e85prices on June 23, 2008, 12:16:53 PM
Quote from: [SiNaN] on June 23, 2008, 03:41:25 AM
Quote from: e85prices on June 22, 2008, 12:35:05 PM
Quote from: e85prices on June 19, 2008, 12:57:03 PM
SiNaN very nice Portal ..

I need a change done if you or anyone wants/has time to do it..  $20 (Paypal) to whoever will sort this out..

On Board News I love the way we get a preview of the post ..and want the same "Preview" for' Recent Posts"  ..maybe allow preview for upto the last 3 posts on any topic/thread..?  Allow as many rcent posts as I wnat just dont allow more thna 3 "previews" for any one topic if that makes sense ..So the Portal isnt filled with just one busy topic ..

I would simply not use " Board News "  not really needed for my site .. so that means "Recent Posts" would slide to the Top of the Portal WITH a Preview of the Posts  ..In other words Recent post set-up just like Board News

I am using Default SMF ..
Link to site allowed?

Anyone ?

I will inform you by pm after two day.

Quote from: Krunch on June 23, 2008, 01:04:07 AM
Is there a way to define a specific theme to the Simple Portal front page, and have it bypass whatever theme people are currently using?

I would really like this function.

Will try this too.

Thanks SiNan !
Title: Re: SimplePortal
Post by: erlend_sh on June 24, 2008, 10:10:08 PM
Quote from: [SiNaN] on May 30, 2008, 01:31:18 AM
Everything is ready for it to support 2.0 but I'm too lazy about writing packages. Will try to do after my exam that will start after 20 minutes.
I guess that never happened eh? :)

I'm sorry to keep on bugging you about this, it's just that there's no other good option out there for a 2.0 compatible portal, and I have no idea how soon TinyPortal is going to catch on, so the sooner I get to start testing your great offering the better!
Title: Re: SimplePortal
Post by: Krunch on June 25, 2008, 01:45:05 AM
Yes seriously, thank you very much for your work.
Title: Re: SimplePortal
Post by: [SiNaN] on June 26, 2008, 04:49:53 AM
Please check out the SimplePortal 2.0 Beta 1 Public:

http://www.simplemachines.org/community/index.php?topic=246318.0
Title: Re: SimplePortal
Post by: ne.miguelito on June 26, 2008, 12:02:42 PM
[SiNaN], I already saw that you left a new version, but I already made a lot of alterations in mine, many of them mentioned here...

I liked and I thanked that could explain to me, as I can make this manually, without having to install the new version...

I only want to append the option that could split in several pages...

and as I should exist many interested

http://i26.tinypic.com/2i1fhw5.jpg

(http://i26.tinypic.com/2i1fhw5.jpg)


thank you very much
Title: Re: SimplePortal
Post by: [SiNaN] on June 26, 2008, 12:37:46 PM
It would be easier if you install the new version when the final is out.
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on June 26, 2008, 12:54:04 PM
Guest      8: Undefined index: 1
File: /------------------------------------/forum/Sources/SPortal.php
Line: 484
   Today at 22:17:34
Guest    8: Undefined index: 1
File: /------------------------------------/forum/Sources/SPortal.php
Line: 484
   Today at 22:17:33
Guest    8: Undefined index: 1
File: /------------------------------------/forum/Sources/SPortal.php
Line: 484
   Today at 22:17:27
tjblankin    8: Undefined index: 1
File: /------------------------------------/forum/Sources/SPortal.php
Line: 484
   Today at 22:15:14
tjblankin    8: Undefined index: 1
File: /------------------------------------/forum/Sources/SPortal.php
Line: 484
   Today at 22:14:43
tjblankin    8: Undefined index: 1
File: /------------------------------------/forum/Sources/SPortal.php
Line: 484
   Today at 22:14:00
Guest    8: Undefined index: description
File: /------------------------------------/forum/Sources/Subs-Post.php
Line: 1653

Hey SiNaN, This error found in all profiles page.

Recently My forum Error Log shows me 1000 pls errors everyday.

Kindly help me Out SiNaN.
Title: Re: SimplePortal
Post by: [SiNaN] on June 26, 2008, 01:04:28 PM
It's because of the Member Color Link mod. I've fixed that issue in beta. But I can fix it for you too if you can attach your SPortal.php file.

Title: Re: SimplePortal
Post by: Sudhakar Arjunan on June 26, 2008, 01:40:31 PM
Hey SiNaN, Sure i do .

Kindly checkout the post.

I will return only by tomorrow morning.

Take Time, Mod it and post me .

Thanks a Lot in Advance.
Title: Re: SimplePortal
Post by: Jade Elizabeth on June 26, 2008, 03:22:23 PM
Quote from: e85prices on June 19, 2008, 12:57:03 PM
SiNaN very nice Portal ..

I need a change done if you or anyone wants/has time to do it..  $20 (Paypal) to whoever will sort this out..

On Board News I love the way we get a preview of the post ..and want the same "Preview" for' Recent Posts"  ..maybe allow preview for upto the last 3 posts on any topic/thread..?  Allow as many rcent posts as I wnat just dont allow more thna 3 "previews" for any one topic if that makes sense ..So the Portal isnt filled with just one busy topic ..

I would simply not use " Board News "  not really needed for my site .. so that means "Recent Posts" would slide to the Top of the Portal WITH a Preview of the Posts  ..In other words Recent post set-up just like Board News

I am using Default SMF ..
Link to site allowed?


I got your code, PM me :)
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on June 27, 2008, 02:13:48 PM
Quote from: asudhakar on June 26, 2008, 01:40:31 PM
Hey SiNaN, Sure i do .

Kindly checkout the post.

I will return only by tomorrow morning.

Take Time, Mod it and post me .

Thanks a Lot in Advance.

SiNaN, when you will be updating this.
Try to help Me SiNaN.

Thanks in Advance.
Title: Re: SimplePortal
Post by: hack3rs on June 27, 2008, 04:22:23 PM
can you put a forums button when i install it on my theme www.hack3rs.info/forums/

it wont bring up the forums button and how do i put it on hack3rs.info instead of hack3rs.info/forums?
Title: Re: SimplePortal
Post by: Eliana Tamerin on June 27, 2008, 04:28:40 PM
How do you add custom tabs to the Core (default) theme menu? (http://docs.simplemachines.org/index.php?topic=564)

You can use this tutorial to add buttons to your theme. Just point it to ?action=forum.

As for the second, you can probably use an .htaccess mod_rewrite to do that.

FYI, supporting hacker sites that we really don't know what they're for isn't something that's typical here. I'm not usually one to come out and say it, but I really wouldn't advise you to request support for that specific board. Make it general or don't request support, because SM.org really shouldn't be seen supporting hacker/warez sites in this manner. No offense intended, just a friendly suggestion.
Title: Re: SimplePortal
Post by: [SiNaN] on June 28, 2008, 04:02:34 AM
Asudhakar, can you try this file?
Title: Re: SimplePortal
Post by: Sudhakar Arjunan on June 28, 2008, 04:48:28 AM
Quote from: [SiNaN] on June 28, 2008, 04:02:34 AM
Asudhakar, can you try this file?

Hey SiNaN,

I have changed it , and hope it does not have any issue now.

Will work for the day and getback to you.

If possible kindly check your message box, i have pm one request SiNaN.

Thanks a lot.

---- And do tell me when you will be free, so that we will update to updated simple portal before release in My Forum. --- ;)
Title: Re: SimplePortal
Post by: DaveTs on June 30, 2008, 05:09:14 AM
Hello all, First of all contratulations for this great mod, here my question its possible to make a system to select any Thread or post of any forum to put it on the frontpage?

DaveTs
Title: Re: SimplePortal
Post by: [SiNaN] on June 30, 2008, 05:22:40 AM
With the SP 2.0, you can. It is in beta now. You can check it in my sig.
Title: Re: SimplePortal
Post by: Burke ♞ Knight on June 30, 2008, 08:34:59 PM
I'm using SMF 1.1.5 with Simple Portal & SMF Shop.
When using the section to Show Recently Purchased block, I get this where the block is:

Table 'dbasename.smf_shop_purchHis' doesn't exist
File: /smfinstalldir/Sources/SPortal.php
Line: 783

Database name and install dir changed for post.

Is this a SMF Shop issue or a Simple Portal issue?
Title: Re: SimplePortal
Post by: InsaneneSs on July 01, 2008, 02:12:09 AM
Can somewone tell me how do i install this mod on this themes:

Outline - http://www.dzinerstudio.com/index.php?action=tpmod;dl=item52

DarkBreack - http://www.dzinerstudio.com/index.php?action=tpmod;dl=item55

The linguage is portuguese!
Title: Re: SimplePortal
Post by: JoshieDaMan on July 05, 2008, 03:28:10 AM
Can someone fix the theme for me, a theme I am using is phobos.

(http://img236.imageshack.us/img236/3531/92948532zw1.jpg)
http://img236.imageshack.us/img236/3531/92948532zw1.jpg

Sources/modsettings.php
and default/index_template.php is the only ones that failed.

http://custom.simplemachines.org/themes/index.php?lemma=412 is the template i am using.

And I am using 1.1.5 version.
Title: Re: SimplePortal
Post by: madman71 on July 05, 2008, 05:51:26 PM
Hey Sinan,

I want to know if this is possible to implement into SimplePortal


http://www.simplemachines.org/community/index.php?topic=210288.0

It basically shows latest image attachments from a defined number of posts in a block on your portal.

The user has post an example of what it might look like. (see image)
(http://img161.imagevenue.com/loc683/th_94422_example_122_683lo.jpg) (http://img161.imagevenue.com/img.php?image=94422_example_122_683lo.jpg)

This would be a nice feature.  Would it be too difficult to implement?

In the link above, user: JayBachatero helps the person requesting assistance by giving him the code to do this.  Maybe it could help you do this.
Title: Re: SimplePortal
Post by: Fat_Man on July 06, 2008, 03:31:17 AM
SiNaN,

http://www.bizmuhacirler.com/demo

Not found...
Title: Re: SimplePortal
Post by: [SiNaN] on July 06, 2008, 03:38:11 AM
Use this:

www.bizmuhacirler.com/sp
Title: Re: SimplePortal
Post by: Fat_Man on July 06, 2008, 04:06:55 AM
Hello SiNaN,

Thank You for the demo page.

I went to install SimplePortal and got an error in the ModSettings.php file.
What would cause this? (file is attached)

1.  Execute Modification  ./Themes/default/languages/ModSettings.english.php  Test successful
2. Execute Modification ./Themes/default/languages/ModSettings.turkish.php Skipping file
3. Execute Modification ./Themes/default/languages/index.english.php Test successful
4. Execute Modification ./Themes/default/languages/index.turkish.php Skipping file
5. Execute Modification ./index.php Test successful
6. Execute Modification ./Sources/Load.php Test successful
7. Execute Modification ./Sources/ModSettings.php Test failed
8. Execute Modification ./Themes/default/index.template.php Test successful
Title: Re: SimplePortal
Post by: [SiNaN] on July 06, 2008, 04:20:46 AM
I suggest you waiting for the final release of SP 2.0. It's almost ready.
Title: Re: SimplePortal
Post by: Burke ♞ Knight on July 06, 2008, 08:01:53 AM
Almost ready, and 100% more awesome! :)
Title: Re: SimplePortal
Post by: Burke ♞ Knight on July 06, 2008, 10:42:11 PM
Sinan, I have a site that when I change the Karma name, it does not change in SimplePortal.
Nor does it remove it if I disable Karma...

Any ideas?
Title: Re: SimplePortal
Post by: JoshieDaMan on July 07, 2008, 08:11:40 PM
I am still waiting for solution for 1.1.5 version as I am not going to switch eventually because of the all modifications I have.
Title: Re: SimplePortal
Post by: Eliana Tamerin on July 07, 2008, 09:54:39 PM
SP2 isn't going to be SMF 2.0 compatible yet, so it will still function on your 1.1.5 installation.
Title: Re: SimplePortal
Post by: Burke ♞ Knight on July 07, 2008, 10:13:51 PM
Never mind, Sinan, I found how to edit it. :)

Among a few other slight changes. :)

http://www.bkgta.co.cc/

If you care to see them. :)
Title: Re: SimplePortal
Post by: AFreeWebHost on July 07, 2008, 10:34:17 PM
I installed this on my forum today, after adding a TON of mods, and then I decided I would rather not use it so, I uninstalled it, BIG mistake! When I clicked uninstall it warned me not to do it, but I did it anyway thinking it would be ok, well it wasn't!! I had to trash the whole forum and reinstall the whole thing and all the mods!!!

So I assume that once you install this, you cannot uninstall it?
Title: Re: SimplePortal
Post by: Burke ♞ Knight on July 07, 2008, 10:59:19 PM
More like, once you install a bunch of mods, then the files sometimes get modded too much for the uninstaller to be able to find what it is supposed to uninstall.
Title: Re: SimplePortal
Post by: AFreeWebHost on July 07, 2008, 11:03:53 PM
Yes, I suppose that is very possible, although I had only installed 2 or 3 mods after installing simpleportal. I might try it again and see if I can get it going right, as it was nice, but it wasn't going to work with the idea I was going for.
Title: Re: SimplePortal
Post by: ruckstande on July 09, 2008, 07:21:55 PM
Quote from: AFreeWebHost on July 07, 2008, 11:03:53 PM
Yes, I suppose that is very possible, although I had only installed 2 or 3 mods after installing simpleportal. I might try it again and see if I can get it going right, as it was nice, but it wasn't going to work with the idea I was going for.
Did you say you installed this and added a TON of mods?
Title: Re: SimplePortal
Post by: ruckstande on July 09, 2008, 07:22:55 PM
Maybe someone can help me. I would like to add my own box with some banners to a couple of other sites. Is this possible and if so how?
Title: Re: SimplePortal
Post by: Burke ♞ Knight on July 09, 2008, 08:53:15 PM
Could always use one of the Advertise blocks, if they are being used. :)
Title: Re: SimplePortal
Post by: ruckstande on July 10, 2008, 01:29:13 PM
That is possible. Maybe I'll try that. Thanks.
Title: Re: SimplePortal
Post by: Avery on July 13, 2008, 09:50:48 PM
Using another theme, how can i add a extra button so that the users can click to the forum without having to click the topics.
Title: Re: SimplePortal
Post by: Mulgarus on July 14, 2008, 07:34:26 AM
this is a great mod, im very surprised to see sooooo much support and giving that you have gave for this mod. very outstanding

Like Avery asked,where do you have to edit the code to add a link to the nav bar of other themes?
Im running a test forum using the basic  "YaBB SE Theme" and was wondering if you tell me how to add a forums link in the nav bar.  http://mulgarus.clanservers.com/testing/index.php

I havent added much, just playing around and reading this thread for the last hour or so  rofl. are all the mods added thus far into the current package?

Thanks in advance.
Title: Re: SimplePortal
Post by: Avery on July 15, 2008, 01:53:22 AM
It is indeed a great mod, but i would want to know how to add a link to the forum and also the 'dot' and 'arrow' images (Where i should put them)
Title: Re: SimplePortal
Post by: Mulgarus on July 15, 2008, 02:54:16 AM
there is a mod that you can ad a button to the nav bar, but its only for the default theme. and you will need to copy those 2 images over to your forums theme image directory. ie. Themes/classic/images/dot.gif
Title: Re: SimplePortal
Post by: Avery on July 15, 2008, 08:19:53 AM

Warning: require_once(/home/avery/public_html/Sources/SPortal.php) [function.require-once]: failed to open stream: No such file or directory in /home/avery/public_html/index.php on line 59

Fatal error: require_once() [function.require]: Failed opening required '/home/avery/public_html/Sources/SPortal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/avery/public_html/index.php on line 59

---

I wanted to install Version 1.2 on my 1.1.5 version forum and when i unistalled it this happened, how do i solve this?
Title: Re: SimplePortal
Post by: [SiNaN] on July 15, 2008, 08:41:33 AM
index.php

Find:

// Action and board are both empty... SPortal!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/SPortal.php');
return 'SPortal';
}
if (empty($board) && empty($topic) && (isset($_GET['cat']) || isset($_GET['page'])))
{
require_once($sourcedir . '/SPortal.php');
return 'SPortal';
}


Replace:

// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}


See the manual installation here and make sure other edits are taken back too.

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=56590;smf_version=1.1.5
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 15, 2008, 08:57:07 AM
SimplePortal 2.0 is released. Please check the first post (http://www.simplemachines.org/community/index.php?topic=227599.0) of this topic.
Title: Re: SimplePortal (2.0 Released)
Post by: Sudhakar Arjunan on July 15, 2008, 09:12:17 AM
Quote from: [SiNaN] on July 15, 2008, 08:57:07 AM
SimplePortal 2.0 is released. Please check the first post (http://www.simplemachines.org/community/index.php?topic=227599.0) of this topic.

Congrates SiNaN , for your new and advanced portal.  :D
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 15, 2008, 09:36:46 AM
Love this portal! Thanks for the hard work!

I have a test site that I had just recently installed v1.2 on, and I was testing it out before installing it on my live forum site. Then today, I saw the release of the 2.0 version...so I uninstalled and deleted v1.2 and installed 2.0.

However - I didn't get the menu in "Features and Options" as before, and I noticed a grey line appeared right underneath "Forum" category in the admin cp. I couldn't find any menu/setup options for version 2.0, so I've uninstalled it and deleted it. I still have the zip files for both 1.2 and 2.0 on a local drive though.

I'm running SMF version 1.1.5 on my test site.


Is anyone else having issues with getting the menu options to come up, once v2.0 of this mod is installed?


Thanks!
LisaV
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 15, 2008, 09:42:00 AM
There should be a new section in the Admin Panel, under the Forum section. Are you using utf-8 character set?
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 15, 2008, 09:45:16 AM
Quote from: [SiNaN] on July 15, 2008, 09:42:00 AM
There should be a new section in the Admin Panel, under the Forum section. Are you using utf-8 character set?

Let me make sure....
I'm guessing I shouldn't be?
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 15, 2008, 09:47:26 AM
If not, can you provide me a screenshot of Admin CP and where the problem is?
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 15, 2008, 09:47:45 AM
Ok...just checked...it's set to Default Forum Language = English...at the moment.
I only have three other mods installed, and I think I actually had to change it from English utf-8 to regular english for one of them.

The others I have installed are:

Order News
Welcome Topic Mod
Custom Profile Field Mod
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 15, 2008, 09:50:53 AM
Ok...just checked...it's the Custom Profile Field that forces the switch from utf-8 to regular English:
http://www.simplemachines.org/community/index.php?topic=79004.msg1589758;topicseen#msg1589758
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 15, 2008, 09:53:09 AM
Ok...feeling like a fool now...
Can someone remind me how to take a screenshot and post it?

Honestly, I usually don't have trouble with my forum (SMF is fantastic!) and I've never had to do the post-screenshot thing.

Thanks!
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 15, 2008, 09:55:15 AM
Open the page. Find the PrintScreen or PrntScrn button on your keyboard and push. Then open Paint. Press Ctrl+V buttons at the same to paste the screenshot. Then save it as .png. Then attach the file here.
Title: Re: SimplePortal (2.0 Released)
Post by: Avery on July 15, 2008, 09:55:58 AM
Hey SiNaN,

I went to my index.php and couldn't find it, but then i went to this index.php~ thing and found it. So i replaced it there, but it is still the same error page?

Is there anything else that could be causing the problem?

@Talisman - the button on your keyboard Prnt Scrn.
Title: Re: SimplePortal (2.0 Released)
Post by: BuЯЯЯЯaK on July 15, 2008, 09:56:39 AM
Mozilla screen grab =)

<turkish> Bu daha kaliteli sinan </turkish>  :P
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 15, 2008, 09:57:04 AM
Quote from: [SiNaN] on July 15, 2008, 09:55:15 AM
Open the page. Find the PrintScreen or PrntScrn button on your keyboard and push. Then open Paint. Press Ctrl+V buttons at the same to paste the screenshot. Then save it as .png. Then attach the file here.

...will do.
back in sec
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 15, 2008, 09:57:43 AM
Quote from: Avery on July 15, 2008, 09:55:58 AM
Hey SiNaN,

I went to my index.php and couldn't find it, but then i went to this index.php~ thing and found it. So i replaced it there, but it is still the same error page?

Is there anything else that could be causing the problem?

@Talisman - the button on your keyboard Prnt Scrn.

Thanks! ;)
Title: Re: SimplePortal (2.0 Released)
Post by: Burke ♞ Knight on July 15, 2008, 09:58:22 AM
Hey Sinan, I would love to try SimplePortal 2, but when trying to uninstall 1.2 I get too many errors, and have custom themes. :(

I'm not up to trying manually today, as I have some family emergencies I'm dealing with.

Would it be possible for some help here to uninstall and install it, on maybe 2 forums?
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 15, 2008, 09:59:17 AM
Can you attach your index.php file here?

Translation:

Mozilla screen grab is better. :P




Some people still use IE Burak. :)

BurkeKnight, of course, just attach the files need change. All of them. I'll do it until tomorrow.

Off Topic: At last I could be able to post, 3 times stopped cause of new message. :P
Title: Re: SimplePortal (2.0 Released)
Post by: Burke ♞ Knight on July 15, 2008, 10:00:48 AM
Would it be better to also give you admin access to the 2 forums?
If so, I can make accounts, and PM them to you.
Title: Re: SimplePortal (2.0 Released)
Post by: Sudhakar Arjunan on July 15, 2008, 10:08:46 AM
Hey SiNaN, now am free. So i have tried to uninstall the previous version of Simple Portal v1.2.

It says 3 errors -
1.     Execute Modification     ./index.php     Test failed
7.     Execute Modification     ./Sources/ModSettings.php     Test failed
8.    Execute Modification    ./Themes/default/index.template.php    Test failed

Will mod it manually.
If you remember, older i have send you the modsettings page and you have modified it for me.

Any idea to cont further SiNaN.

Title: Re: SimplePortal (2.0 Released)
Post by: Burke ♞ Knight on July 15, 2008, 10:11:33 AM
Sinan, here is a zip file of the files that need to have simple portal 1.2 removed. I just hope that I can get 2 installed easily. :)
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 15, 2008, 10:12:23 AM
Quote from: [SiNaN] on July 15, 2008, 09:55:15 AM
Open the page. Find the PrintScreen or PrntScrn button on your keyboard and push. Then open Paint. Press Ctrl+V buttons at the same to paste the screenshot. Then save it as .png. Then attach the file here.


Ok...see attached:
Title: Re: SimplePortal (2.0 Released)
Post by: Avery on July 15, 2008, 10:16:15 AM
Not to be a pest or anything, could you help me with my problem? My forum members are now contacting me about the downtime.

Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 15, 2008, 10:20:01 AM
Quote from: Avery on July 15, 2008, 10:16:15 AM
Not to be a pest or anything, could you help me with my problem? My forum members are now contacting me about the downtime.

I asked you to attach your index.php file but it get lost. Can you attach?

Burke, I'll do it until tomorrow.

Talismen, attach your Subs.php file please.

Wow, a hard start. Will need some helpers.
Title: Re: SimplePortal (2.0 Released)
Post by: Avery on July 15, 2008, 10:22:25 AM
Oh sorry, i thought i already posted it. Give me one second


  :'( Sorry.
Title: Re: SimplePortal (2.0 Released)
Post by: Burke ♞ Knight on July 15, 2008, 10:23:41 AM
Sinan old friend, If not for family emergency, I'd be trying to help you here. :)
Title: Re: SimplePortal (2.0 Released)
Post by: Avery on July 15, 2008, 10:26:00 AM
I've sent you a PM to link of it. Thanks in advanced!
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 15, 2008, 10:27:41 AM
Is that file index.php or index.php~? I need index.php and please attach it here.
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 15, 2008, 10:30:12 AM
Quote from: [SiNaN] on July 15, 2008, 10:20:01 AM
Quote from: Avery on July 15, 2008, 10:16:15 AM
Not to be a pest or anything, could you help me with my problem? My forum members are now contacting me about the downtime.

I asked you to attach your index.php file but it get lost. Can you attach?

Burke, I'll do it until tomorrow.

Talismen, attach your Subs.php file please.

Wow, a hard start. Will need some helpers.


Ok...I think this is the right file. See attached.
I also have the one marked with the "tilly" (pre-install) if you need to see that too.


And thanks again for your help! ;)

Title: Re: SimplePortal (2.0 Released)
Post by: Avery on July 15, 2008, 10:38:57 AM
Quote from: [SiNaN] on July 15, 2008, 10:27:41 AM
Is that file index.php or index.php~? I need index.php and please attach it here.

Alright, one sec...here

I changed it to txt document...but its the same content
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 15, 2008, 10:43:59 AM
Try this. No need to make it txt.

Will look at other issues tomorrow. I must go now.
Title: Re: SimplePortal (2.0 Released)
Post by: Avery on July 15, 2008, 10:46:03 AM
Alright thanks!
Title: Re: SimplePortal (2.0 Released)
Post by: Sudhakar Arjunan on July 15, 2008, 11:47:47 AM
Quote from: asudhakar on July 15, 2008, 10:08:46 AM
Hey SiNaN, now am free. So i have tried to uninstall the previous version of Simple Portal v1.2.

It says 3 errors -
1.     Execute Modification     ./index.php     Test failed
7.     Execute Modification     ./Sources/ModSettings.php     Test failed
8.    Execute Modification    ./Themes/default/index.template.php    Test failed

Will mod it manually.
If you remember, older i have send you the modsettings page and you have modified it for me.

Any idea to cont further SiNaN.


Hey SiNaN,

I had a installation issue, hope earlier i have sent you the modsettings file and you have remoded after installing version 1.2

Kindly help me to check the error in this and help me to uninstall the older version safely SiNaN.
Title: Re: SimplePortal (2.0 Released)
Post by: Manu.G on July 15, 2008, 12:03:30 PM
Hi SiNaN,

I have tested the Beta Version of 2.0 at our test forum and I'm in love with it!! :D
Thanks a lot for the release of the 2.0 version and all the hard work you had with it,
and thanks to those who had help you.

I'm sure, I can't use the 2.0 version in my forum http://forum.arseniums.com/index.php,
cause of all the changes I made there with your help.
Do you think it's possible for you to help me with the uninstall of the old version and install
of the 2.0 version?  :'(
Title: Re: SimplePortal (2.0 Released)
Post by: jossanaijr on July 15, 2008, 12:29:47 PM
Any idea about SMF 2.0?
Title: Re: SimplePortal (2.0 Released)
Post by: Soms on July 15, 2008, 02:00:57 PM
I think this is a great improvement on the previous one. Great work Sinan.
Title: Re: SimplePortal (2.0 Released)
Post by: Brenda on July 15, 2008, 02:57:12 PM
Are there any issues with the new 2.0 release? I still have 1.2 and would like to upgrade.

Ok, can someone please point me in the right direction for a manual uninstall of SP 1.2? I have a couple of error codes.
Title: Re: SimplePortal (2.0 Released)
Post by: Nibogo on July 15, 2008, 06:37:58 PM
Really nice work

Thanks:

Sinan , Eliana Tamerin and Alundra

Request:

An option to have a Collapsables Blocks
Title: Re: SimplePortal (2.0 Released)
Post by: BOS4O on July 15, 2008, 07:21:00 PM
Hey how to center all the words in the all blocks ??
Title: Re: SimplePortal (2.0 Released)
Post by: Bancherd on July 16, 2008, 02:01:40 AM
Very nice  :D The team did a great job!

I presume that this works with SMF2Beta3.1 as well?  I could see the instructions for manual installation  ???
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 16, 2008, 09:03:40 AM
Quote from: Avery on July 15, 2008, 10:46:03 AM
Alright thanks!

Make sure that you've cleaned other files too.

Quote from: asudhakar on July 15, 2008, 11:47:47 AM
Hey SiNaN,

I had a installation issue, hope earlier i have sent you the modsettings file and you have remoded after installing version 1.2

Kindly help me to check the error in this and help me to uninstall the older version safely SiNaN.

Will fix them and attach.

Quote from: Manu0372 on July 15, 2008, 12:03:30 PM
Hi SiNaN,

I have tested the Beta Version of 2.0 at our test forum and I'm in love with it!! :D
Thanks a lot for the release of the 2.0 version and all the hard work you had with it,
and thanks to those who had help you.

I'm sure, I can't use the 2.0 version in my forum http://forum.arseniums.com/index.php,
cause of all the changes I made there with your help.
Do you think it's possible for you to help me with the uninstall of the old version and install
of the 2.0 version?  :'(

Of course you can. Just make sure you uninstall the v1.2 correctly. Try. If you have problmes, I'll help. Make you sure take back-ups.

Quote from: jossanaijr on July 15, 2008, 12:29:47 PM
Any idea about SMF 2.0?

We will start upgrading right after the Beta 4 is out.

Quote from: Soms on July 15, 2008, 02:00:57 PM
I think this is a great improvement on the previous one. Great work Sinan.

Thanks Som. ;)

Quote from: Brenda on July 15, 2008, 02:57:12 PM
Are there any issues with the new 2.0 release? I still have 1.2 and would like to upgrade.

Ok, can someone please point me in the right direction for a manual uninstall of SP 1.2? I have a couple of error codes.

Here is the manual installation. Use this one and remove:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=56590;smf_version=1.1.5

Quote from: NIBOGO on July 15, 2008, 06:37:58 PM
Really nice work

Thanks:

Sinan , Eliana Tamerin and Alundra

Request:

An option to have a Collapsables Blocks

Will try in the next version.

Quote from: BOS4O on July 15, 2008, 07:21:00 PM
Hey how to center all the words in the all blocks ??

You should edit the block codes in SPortal.template.php. Just take all the three positions inside center tags.

Quote from: Bancherd on July 16, 2008, 02:01:40 AM
Very nice  :D The team did a great job!

I presume that this works with SMF2Beta3.1 as well?  I could see the instructions for manual installation  ???

Thanks. No, it is just for SMF 1.x.



Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 16, 2008, 09:57:51 AM
An update to my last post, found here:
http://www.simplemachines.org/community/index.php?topic=227599.msg1616584#msg1616584


...I have uninstalled and deleted the "Custom Profile Field" mod package, as it was causing two consistant errors on both my test site as well as my live site, whenever someone would post a new thread.

So, that mod package is no longer present.

The only ones left are:
-> Order News
-> Welcome Topic Mod



Thanks!
Title: Re: SimplePortal (2.0 Released)
Post by: Sudhakar Arjunan on July 16, 2008, 10:00:33 AM
Quote from: [SiNaN] on July 16, 2008, 09:03:40 AM


Quote from: asudhakar on July 15, 2008, 11:47:47 AM
Hey SiNaN,

I had a installation issue, hope earlier i have sent you the modsettings file and you have remoded after installing version 1.2

Kindly help me to check the error in this and help me to uninstall the older version safely SiNaN.

Will fix them and attach.


Thank a lot and am Waiting for it SiNaN  :)

http://www.simplemachines.org/community/index.php?topic=227599.msg1616662#msg1616662
Title: Re: SimplePortal (2.0 Released)
Post by: BOS4O on July 16, 2008, 10:28:50 AM
not working with the center tags

http://lfs-bg.net


look the attachments  :)
Title: Re: SimplePortal (2.0 Released)
Post by: Soms on July 16, 2008, 11:22:30 AM
I wonder why I keep getting this error message in the error log
Quote8: Undefined variable: txt
File: /mnt/web4/21/50/51458650/htdocs/Sources/SPortal.php
Line: 1515
Title: Re: SimplePortal (2.0 Released)
Post by: ruckstande on July 16, 2008, 11:51:01 AM
Here is a question for Simple Portal 1.2 and it might be tricky. I have RSS feeds enabled on my site. Now one of the options of that is to mark all feeds as "Read" which is great. However, is there a way to make posts from the RSS Feed poster member I created not appear in the recent posts box? is there a way to ignore posts from that user?

Also, I would like to try uninstalling to upgrade to 2.0 but I noticed I'm getting this error in my forum log.

Quotehttp://www.pestboxlive.com/pbl2/index.php
8: Undefined index: 0
File: /home/content/r/u/c/ruckstande/html/pbl2/Sources/SPortal.php
Line: 585
Title: Re: SimplePortal (2.0 Released)
Post by: 4b11l on July 16, 2008, 06:55:32 PM
Sinan, I'm using your latest portal and I'm getting errors in line 145 of your Sportal.template
I'm not using the right blocks if that makes any difference.

Quote
8: Undefined index: showright
File: /home/xpeng065/public_html/testforum/Themes/default/SPortal.template.php (main sub template - eval?)
Line: 145

Additonally, the News Block is showing the text centered. How can I undo that and make it just show in the standard left position.
Title: Re: SimplePortal (2.0 Released)
Post by: Apllicmz on July 16, 2008, 11:46:38 PM
Good work
Update portuguese and brazilian

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// SP General
$txt['sp-forum'] = 'F&oacute;rum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Artigo Categoria';
$txt['sp-articlesNoCategory'] = 'Não Publicar';
$txt['sp-make_article'] = 'Faça artigo';
$txt['error_sp_no_message_id'] = 'Inválido mensagem ID.';
$txt['error_sp_article_exists'] = 'Artigo já existe.';
$txt['error_sp_cannot_add_article'] = 'Você não tem permissão para adicionar artigo.';
$txt['error_sp_label_empty'] = 'Selo deixada esta vazio.';
$txt['error_sp_name_empty'] = 'O nome deixado esta vazio.';

// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'Esta autoriza&ccedil;&atilde;o permite que membros acessem o painel SimplePortal Admin.';
$txt['permissionname_sp_add_article'] = 'Posso acrescentar artigo';
$txt['permissionhelp_sp_add_article'] = 'Esta autoriza&ccedil;&atilde;o permite aos membros adicionar artigos.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto artigo aprova&ccedil;&atilde;o';
$txt['permissionhelp_sp_auto_article_approval'] = 'Esta autoriza&ccedil;&atilde;o permite aos membros adicionar artigos sem aprova&ccedil;&atilde;o.';

// SP Blocks
$txt['sp-userpost'] = 'Postes';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total de Mensagens';
$txt['sp-usernmessage'] = 'Novas mensagens';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Sair';
$txt['sp-onlineguest'] = 'Visitantes On-Line';
$txt['sp-onlineuser'] = 'Membros On-Line';
$txt['sp-onlinehuser'] = 'membros Oculto';
$txt['sp-onlinetuser'] = 'Total Membros';
$txt['sp-onlineouser'] = 'Online Membros';
$txt['sp-statmember'] = 'Total Membros';
$txt['sp-statpost'] = 'Total Postes';
$txt['sp-stattopic'] = 'Total Tópico';
$txt['sp-statcategory'] = 'Total Categorias';
$txt['sp-statboard'] = 'Total quadros';
$txt['sp-qsearchsearch'] = 'Pesquisa';
$txt['sp-tposterpost'] = ' poste';
$txt['sp-tboardname'] = 'Quadro';
$txt['sp-tboardpost'] = 'Poste';
$txt['sp-ttopicname'] = 'Tópico';
$txt['sp-ttopicpost'] = 'Poste';
$txt['sp-grpictureviews'] = 'Ver:';
$txt['sp-grpicturesender'] = 'Por:';
$txt['sp-grpictureguest'] = 'Visitante';
$txt['sp-arcadeplay'] = 'O Top de jogadores';
$txt['sp-arcadewin'] = 'Número de vitórias :';
$txt['sp-arcadelate'] = 'Últimas pontuação elevada em ';
$txt['sp-arcadewit'] = 'com ';
$txt['sp-arcadeon'] = 'on ';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// SP General
$txt['sp-forum'] = 'F&oacute;rum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Artigo Categoria';
$txt['sp-articlesNoCategory'] = 'Não Publicar';
$txt['sp-make_article'] = 'Faça artigo';
$txt['error_sp_no_message_id'] = 'Inválido mensagem ID.';
$txt['error_sp_article_exists'] = 'Artigo já existe.';
$txt['error_sp_cannot_add_article'] = 'Você não tem permissão para adicionar artigo.';
$txt['error_sp_label_empty'] = 'Selo deixada esta vazio.';
$txt['error_sp_name_empty'] = 'O nome deixado esta vazio.';

// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'Esta autoriza&ccedil;&atilde;o permite que membros acessem o painel SimplePortal Admin.';
$txt['permissionname_sp_add_article'] = 'Posso acrescentar artigo';
$txt['permissionhelp_sp_add_article'] = 'Esta autoriza&ccedil;&atilde;o permite aos membros adicionar artigos.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto artigo aprova&ccedil;&atilde;o';
$txt['permissionhelp_sp_auto_article_approval'] = 'Esta autoriza&ccedil;&atilde;o permite aos membros adicionar artigos sem aprova&ccedil;&atilde;o.';

// SP Blocks
$txt['sp-userpost'] = 'Postes';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total de Mensagens';
$txt['sp-usernmessage'] = 'Novas mensagens';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Sair';
$txt['sp-onlineguest'] = 'Visitantes On-Line';
$txt['sp-onlineuser'] = 'Membros On-Line';
$txt['sp-onlinehuser'] = 'membros Oculto';
$txt['sp-onlinetuser'] = 'Total Membros';
$txt['sp-onlineouser'] = 'Online Membros';
$txt['sp-statmember'] = 'Total Membros';
$txt['sp-statpost'] = 'Total Postes';
$txt['sp-stattopic'] = 'Total Tópico';
$txt['sp-statcategory'] = 'Total Categorias';
$txt['sp-statboard'] = 'Total quadros';
$txt['sp-qsearchsearch'] = 'Pesquisa';
$txt['sp-tposterpost'] = ' poste';
$txt['sp-tboardname'] = 'Quadro';
$txt['sp-tboardpost'] = 'Poste';
$txt['sp-ttopicname'] = 'Tópico';
$txt['sp-ttopicpost'] = 'Poste';
$txt['sp-grpictureviews'] = 'Ver:';
$txt['sp-grpicturesender'] = 'Por:';
$txt['sp-grpictureguest'] = 'Visitante';
$txt['sp-arcadeplay'] = 'O Top de jogadores';
$txt['sp-arcadewin'] = 'Número de vitórias :';
$txt['sp-arcadelate'] = 'Últimas pontuação elevada em ';
$txt['sp-arcadewit'] = 'com ';
$txt['sp-arcadeon'] = 'on ';]]></add>
</operation>
</file>
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 17, 2008, 11:10:42 AM
Hello [SiNaN] ;)

Any news on this?
http://www.simplemachines.org/community/index.php?topic=227599.msg1616560#msg1616560
http://www.simplemachines.org/community/index.php?topic=227599.msg1616584#msg1616584


Thanks!
Talismen
Title: Re: SimplePortal (2.0 Released)
Post by: Manu.G on July 17, 2008, 02:06:55 PM
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!!! (http://forum.arseniums.com/Smileys/default/77.gif)
Title: Re: SimplePortal (2.0 Released)
Post by: kandalf on July 17, 2008, 05:29:33 PM
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:))
Title: Re: SimplePortal (2.0 Released)
Post by: dejiman on July 17, 2008, 06:53:07 PM
sorry about your problem.
I believe the best solution is on this forum .

Stay cool and keep it on
Title: Re: SimplePortal (2.0 Released)
Post by: JoshieDaMan on July 18, 2008, 02:01:07 AM
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.
Title: Re: SimplePortal (2.0 Released)
Post by: Manu.G on July 18, 2008, 05:43:02 AM
@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. ;)
Title: Re: SimplePortal (2.0 Released)
Post by: kandalf on July 18, 2008, 06:48:04 AM
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?
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 19, 2008, 09:48:23 AM
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.
Title: Re: SimplePortal (2.0 Released)
Post by: ruckstande on July 19, 2008, 09:52:45 AM
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?
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 19, 2008, 10:03:08 AM
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
Title: Re: SimplePortal (2.0 Released)
Post by: ruckstande on July 19, 2008, 10:05:50 AM
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.
Title: Re: SimplePortal (2.0 Released)
Post by: ruckstande on July 19, 2008, 10:08:42 AM
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.
Title: Re: SimplePortal (2.0 Released)
Post by: [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. ;)
Title: Re: SimplePortal (2.0 Released)
Post by: Sudhakar Arjunan on July 19, 2008, 10:15:11 AM
Quote from: asudhakar on July 16, 2008, 10:00:33 AM

Take Care of your health SiNaN, I was eagerly Waiting for response SiNaN  :)

http://www.simplemachines.org/community/index.php?topic=227599.msg1616662#msg1616662
Title: Re: SimplePortal (2.0 Released)
Post by: ruckstande on July 19, 2008, 10:15:40 AM
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?
Title: Re: SimplePortal (2.0 Released)
Post by: Manu.G on July 19, 2008, 10:18:26 AM
@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 (http://forum.arseniums.com)

Sinan your portal mod is great!!! :D
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 19, 2008, 10:26:03 AM
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.
Title: Re: SimplePortal (2.0 Released)
Post by: Sudhakar Arjunan on July 19, 2008, 10:42:59 AM
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.
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 19, 2008, 10:54:20 AM
I don't have enough time to install the mod to my own site. I'll do it once I find some time.
Title: Re: SimplePortal (2.0 Released)
Post by: ruckstande on July 19, 2008, 10:58:47 AM
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.
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 19, 2008, 11:00:31 AM
Sorry, use this.

Advice: Do not code in hurry. :P
Title: Re: SimplePortal (2.0 Released)
Post by: Manu.G on July 19, 2008, 11:08:55 AM
Quote from: [SiNaN] on July 19, 2008, 10:26:03 AM
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.

I know Sinan, that's why I make a back up before I change something, will there come an update
I change the modified files with the original files. ;)
Title: Re: SimplePortal (2.0 Released)
Post by: Burke ♞ Knight on July 19, 2008, 11:13:08 AM
Quote from: [SiNaN] on July 19, 2008, 11:00:31 AM
Advice: Do not code in hurry. :P

LOL!!!! That's a fact, Jack. :)
Title: Re: SimplePortal (2.0 Released)
Post by: ruckstande on July 19, 2008, 11:29:24 AM
Quote from: [SiNaN] on July 19, 2008, 11:00:31 AM
Sorry, use this.

Advice: Do not code in hurry. :P
Oh you are a doll. Thanks buddy. I'll check into the RSS thing when I get a chance. Right now the members will just have to deal with seeing my name 100 times.  Thanks!
Title: Re: SimplePortal (2.0 Released)
Post by: Sudhakar Arjunan on July 19, 2008, 11:46:33 AM
Quote from: [SiNaN] on July 19, 2008, 10:26:03 AM
Just about to forget yours Asudhakar. Attached.

SiNaN, i have replaced it and now clicked Uninstall.
But still it shows error and test failed.

I want to uninstall v1.2 first.
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 19, 2008, 03:34:43 PM
Quote from: [SiNaN] on July 19, 2008, 09:48:23 AM
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.

Thanks so much Sinan! I'll give this a shot, and let you know.
Take Care! ;)
Title: Re: SimplePortal (2.0 Released)
Post by: mymktp1 on July 20, 2008, 03:33:11 AM
Hi I installed VERSION 2.0 Successfully... however I ran in to some strange problems....
heres what I did...
1. I created a Category
2. I added articles to the category
3. PROBLEM : The articles won't appear ... instead I get this strange article that has nothing in it with a strange time stamp and it posts itself 3 times in a row...

I believe reading from some of the comments above some people have been having this problem too... I was wondering if there was a solution to this?
Title: Re: SimplePortal (2.0 Released)
Post by: JoshieDaMan on July 20, 2008, 07:18:15 AM
@[SiNaN]

The gallery. It's whatever comes with "ultimate profile". The pictures at their profile, that's what I am trying to change its path to that.
Title: Re: SimplePortal (2.0 Released)
Post by: kandalf on July 20, 2008, 11:08:54 AM
Quote from: [SiNaN] on July 19, 2008, 09:48:23 AM


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.


(http://img164.imageshack.us/img164/2442/problemcausedp4.jpg)
   
I had the articles active, but I didn´t added any articles and that cause this problem:

(http://img395.imageshack.us/img395/8382/problemoi4.jpg)


But now my problem are that when I add a article like this:

(http://img262.imageshack.us/img262/1686/problemcause2xg6.jpg)

Appears every time the same article in article list

(http://img187.imageshack.us/img187/9900/problem2mk8.jpg)


I don't know how solve this strange problem. Can you help me?  O:)
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 20, 2008, 11:15:23 AM
Quote from: Talismen on July 19, 2008, 03:34:43 PM
Quote from: [SiNaN] on July 19, 2008, 09:48:23 AM
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.

Thanks so much Sinan! I'll give this a shot, and let you know.
Take Care! ;)

Ok...this worked. Woohoo!

Will begin testing on my test site, to see if all functions are working normally.
I'll make sure to refer back to this support thread for the fixes given for other issues, before I ask a fresh question in here.


Thanks again Sinan! ;)
Tal
Title: Re: SimplePortal (2.0 Released)
Post by: mymktp1 on July 20, 2008, 11:32:33 AM
I am having the exact same problem as : kandalf 

Can you please help us Thanx!
Title: Re: SimplePortal (2.0 Released)
Post by: Talismen on July 21, 2008, 11:56:26 AM
Quote from: Talismen on July 20, 2008, 11:15:23 AM
Quote from: Talismen on July 19, 2008, 03:34:43 PM
Quote from: [SiNaN] on July 19, 2008, 09:48:23 AM
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.

Thanks so much Sinan! I'll give this a shot, and let you know.
Take Care! ;)

Ok...this worked. Woohoo!

Will begin testing on my test site, to see if all functions are working normally.
I'll make sure to refer back to this support thread for the fixes given for other issues, before I ask a fresh question in here.


Thanks again Sinan! ;)
Tal


Sinan - testing is going good so far.
Only issue I've found is exact same issue found here:

http://www.simplemachines.org/community/index.php?topic=227599.msg1621262#msg1621262
-> ruckstande indicated that an error occurs when attempting to use up/down arrow buttons to change the order of block rows. You then reply in the next post that it is a bug.


That's the only thing I've found so far.
Other than that, works great and looks great too! ;)
Title: Re: SimplePortal (2.0 Released)
Post by: ruckstande on July 21, 2008, 06:11:26 PM
Sorry SiNaN I can't find the topic on here about the RSS Feeds. I have done a search on it but unless it is listed as something other than RSS or Feed it doesn't seem to be here. The only thing I see is my posts.
Title: Re: SimplePortal (2.0 Released)
Post by: gerard on July 22, 2008, 04:33:18 AM
when will Simpleportal be compatible with SMF 2.0 Beta 3.1 Public?
Title: Re: SimplePortal (2.0 Released)
Post by: Eliana Tamerin on July 22, 2008, 07:48:24 AM
It won't be, SiNaN won't work on SMF 2 compatibility until SMF Beta 4.
Title: Re: SimplePortal (2.0 Released)
Post by: Apllicmz on July 22, 2008, 09:12:23 PM
hell
i see that msg...when install and Upgrade my database...

how can resolv that problems

(http://i276.photobucket.com/albums/kk39/apllic/sshot-1-4.png)
Title: Re: SimplePortal (2.0 Released)
Post by: caniol52 on July 22, 2008, 09:13:00 PM
I'm a noob, so excuse me!  How do you go about executing the file "database.php"?

Thanks!
Title: Re: SimplePortal (2.0 Released)
Post by: mymktp1 on July 23, 2008, 01:12:06 AM
Hi Sinan I still haven't heard a reply from you ... hoping you could help me :) Anyways,  here's what my problem is

1. I create a new category

(http://uploadimage.org/images/deonw9lyqb1eg5v2frh.jpg)

2. Add Articles to the category
(http://uploadimage.org/images/l488nmhs4jkpbz6c33ym.jpg)

3. However when I take a look at the articles they are all blank, time stamp is weird, and all of them are alike ...
(http://uploadimage.org/images/8qqf0igkn68fom86lid5.jpg)


I have no idea for what possibly is causing this... thank you for your help :D
Title: Re: SimplePortal (2.0 Released)
Post by: caniol52 on July 23, 2008, 03:10:38 AM
I've followed the Simple Portal installion instructions and am getting this error when trying to access my forum:
"Template Parse Error!

It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page."

Does anyone have any ideas?
Title: Re: SimplePortal (2.0 Released)
Post by: [SiNaN] on July 23, 2008, 04:13:56 AM
Manu0372:

Update is ready Manu.

asudhakar:

Uninstall if it gives error in just the files I've given you. Then copy the files I've given. I've removed everything about SP in that files.

JoshieDaMan:

Don't think that will work. Because there are some other things. Better ask for a block code for that feature from Jovant.

Talismen:

Thanks for you too Tal, for testing my mod. I hope to be here everyday for support starting from tomorrow.

joomlamz:

That's the per page variable undefined bug. Fixed in the update, you'll have no bugs after updating.

caniol52:

Why not using the Package Manager? If you will install manually just copy it to your SMF root and call from browser.

About the template error you are getting; you probably made a mistake while installing it manually. Use the package parse here (http://sleepycode.com/PackageParser/index.php) as the one in the mod site have some problems with it.

mymktp1 and kandalf:

Unfortunately I couldn't reproduce the error you are getting, tried a lot but everything is working as they should. But anyway, I made some changes about that part, which -I hope- solves your problem too. Try updating the mod. If the problem continues, I'd be glad if both of you could give an account having the SP Moderate permission.
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: SoulHunt on July 23, 2008, 07:34:59 AM
Isn't there a way to get an extra button on it? Now the portal works but there is noway to get to the forum. Only when you view a topic.

Or am I doing something wrong?

Cheers
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: [SiNaN] on July 23, 2008, 07:37:55 AM
Quote from: SoulHunt on July 23, 2008, 07:34:59 AM
Isn't there a way to get an extra button on it? Now the portal works but there is noway to get to the forum. Only when you view a topic.

Or am I doing something wrong?

Cheers

Package only makes edits for the SMF Core Default theme. If you are using a different theme, you should add the button manually from index.template.php file of your theme.

You can see this links for help about that: How do you add custom tabs to the Core (default) theme menu? (http://docs.simplemachines.org/index.php?topic=564).

Let's make sure that this posts doesn't get lost:

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

By the way, new update is available. See the first message for detailed information:

http://www.simplemachines.org/community/index.php?topic=227599.0
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: SoulHunt on July 23, 2008, 07:39:08 AM
Quote from: [SiNaN] on July 23, 2008, 07:37:55 AM
Package only makes edits for the SMF Core Default theme. If you are using a different theme, you should add the button manually from index.template.php file of your theme.

You can see this links for help about that: How do you add custom tabs to the Core (default) theme menu? (http://docs.simplemachines.org/index.php?topic=564).

Already did that, with FF it works, with IE it doesn't :-/.
The problem i'm still struggeling with is the $txt [xxx] vendor..
Title: Re: SimplePortal (2.0 Released)
Post by: kandalf on July 23, 2008, 08:51:41 AM
Quote from: [SiNaN] on July 23, 2008, 04:13:56 AM
mymktp1 and kandalf:

Unfortunately I couldn't reproduce the error you are getting, tried a lot but everything is working as they should. But anyway, I made some changes about that part, which -I hope- solves your problem too. Try updating the mod. If the problem continues, I'd be glad if both of you could give an account having the SP Moderate permission.

I think that I already know how to solve my problem.
For me the problem is in database. I go to db "sp_articles" -> "ID_MESSAGE" and change the type to mediumint(4) and now I already can add articles.

(http://img410.imageshack.us/img410/3273/problemsolvegm2.jpg)
   
Initially could only add the first 127 messages, but now I can add more.

(http://img140.imageshack.us/img140/9606/problemcause3ju9.jpg)

I don't understand anything of databases I don't know if this is the best solution. I want to know your opinion
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: rafter on July 23, 2008, 08:53:26 AM
Looks great and thanks for making it 2.0.1.
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: doughty on July 23, 2008, 09:00:08 AM
Hello,

I am having some issues with the admin panel of the simpleportal

I have a completely fresh install of SMF 1.1.5, nothing else, no themes, no other mods
latest version of simpleportal 2.0.1

when I am in the simpleportal admin panel, under catogory list
/index.php?action=spadmin;sa=categorylist

when I try and 'modify' or 'delete' a new single catagory (using the following link)
/index.php?action=spadmin;sa=categoryedit;id=1;sesc=4267e344298bd482bcf74ab83c250d3e
or
/index.php?action=spadmin;sa=categorydelete;id=1;sesc=4267e344298bd482bcf74ab83c250d3e

I get the following error in IE

The resource cannot be displayed
The resource you are looking for cannot be opened by your browser.

--------------------------------------------------------------------------------

Please try the following:

Click the  Back button to try another link.
Click  Search to look for information on the Internet.

HTTP Error 406 - Not acceptable
Internet Explorer 


I also get the same error when trying to move or delete blocks....

can anyone help??
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: [SiNaN] on July 23, 2008, 09:08:53 AM
SoulHunt:

Can you attach your index.template.php file here?

kandalf:

You're right, I've missed that. Run this query from PhpMyAdmin and you will have no problems:

ALTER TABLE smf_sp_articles CHANGE ID_MESSAGE ID_MESSAGE INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL

Tomorrow will release an update.

doughty

Is it only in IE? What is the version?
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: SoulHunt on July 23, 2008, 09:13:50 AM
Quote from: [SiNaN] on July 23, 2008, 09:08:53 AM
SoulHunt:

Can you attach your index.template.php file here?
[

Will check something out, seems like I did something wrong.
Let you know if the problem is solved :)
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: [SiNaN] on July 23, 2008, 09:16:51 AM
SoulHunt:

Okay, waiting.

doughty:

Please give us as much as information you can. I want to fix it in the tomorrow update if it is a bug.
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: ruckstande on July 23, 2008, 09:30:34 AM
Hey SiNaN, I couldn't find the RSS stuff you were talking about. Should I just uninstall and reinstall the feed? Will that fix it?
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: doughty on July 23, 2008, 09:58:21 AM
thanks for the quick reply,

I also get an error in Mozilla

if you would like I can pm you with the web address and my admin username and password since its just a 'test' site I just setup

let me know
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: [SiNaN] on July 23, 2008, 10:02:09 AM
ruckstande:

Tomorrow...

doughty:

Please.
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: ruckstande on July 23, 2008, 10:29:25 AM
Quote from: [SiNaN] on July 23, 2008, 10:02:09 AM
ruckstande:

Tomorrow...

doughty:

Please.
Woohoo!
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: doughty on July 23, 2008, 11:19:26 AM
[SiNaN] - it appears to be a host 'block' with something to do with mod_security setting needing to be turned off.

I did a bit of a google on 406 error and it comes up with people having this problem with many different forum softwares.

I also setup my own local http/mysql server and installed and it all works fine on that.

so basically, I don't think its a simpleportal bug, it seems that the php 'string' uses something that some hosts block as spam due to the mod_security setting....

is there anything that can be changed in simpleportal to 'fix' this or is it a case of getting onto my host to disable mod_security ?
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: [SiNaN] on July 23, 2008, 12:08:26 PM
Okay, happy that its not a bug in SP. :)

Try this for the mod_security issue;

Add this to your .htaccess file:

<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: BOS4O on July 23, 2008, 12:22:52 PM
how to update 2.0 to 2.1 without uninstalling the 2.0 ?
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: [SiNaN] on July 23, 2008, 12:24:06 PM
Upload the new package, when you enter to the package list, you will see [Upgrade] instead of [Install]. Click to the [Upgrade] and it will do the rest for you.
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: doughty on July 23, 2008, 12:46:43 PM
Quote from: [SiNaN] on July 23, 2008, 12:08:26 PM
Okay, happy that its not a bug in SP. :)

Try this for the mod_security issue;

Add this to your .htaccess file:

<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>


I am not sure that it is related to mod_security now...

I have searched for mod_security in my phpinfo output and its not there.

I have also tried the suggested .htaccess changes and they don't work either.

if you do have time, I have brought it back up and the address/username/password are the same as my previous pm...

thanks if you are able to help out
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: SoulHunt on July 23, 2008, 01:02:34 PM
got it working [SiNaN] :). Had some problems in the index.template, and didn't edit the index.english file. :)
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: ruckstande on July 23, 2008, 01:03:56 PM
Ugh. I just upgraded to 2.0.1 and now I'm getting this when I go to the SPortal Admin.

Table 'PestBoxLive.themes' doesn't exist
File: /home/content/r/u/c/ruckstande/html/pbl2/Sources/SPortalAdmin.php
Line: 144

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.5, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: [SiNaN] on July 23, 2008, 01:30:15 PM
doughty:

I really do not have any idea. Sorry.

SoulHunt:

Glad you get it working.

ruckstande:

Forgot that change in the upgrade. Will add to the update tomorrow.

For now do this:

SPortalAdmin.php

Find:

global $txt, $scripturl, $context, $settings, $sc, $sourcedir

Replace:

global $txt, $scripturl, $context, $settings, $sc, $sourcedir, $db_prefix
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: ruckstande on July 23, 2008, 01:31:35 PM
Cool, thank you.
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: [SiNaN] on July 23, 2008, 01:42:58 PM
Quote from: ruckstande on July 23, 2008, 01:03:56 PM
Ugh. I just upgraded to 2.0.1 and now I'm getting this when I go to the SPortal Admin.

Table 'PestBoxLive.themes' doesn't exist
File: /home/content/r/u/c/ruckstande/html/pbl2/Sources/SPortalAdmin.php
Line: 144

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

Quote from: [SiNaN] on July 23, 2008, 01:30:15 PM
ruckstande:

Forgot that change in the upgrade. Will add to the update tomorrow.

For now do this:

SPortalAdmin.php

Find:

global $txt, $scripturl, $context, $settings, $sc, $sourcedir

Replace:

global $txt, $scripturl, $context, $settings, $sc, $sourcedir, $db_prefix

Let's make sure that it doesn't get lost.
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: Eliana Tamerin on July 23, 2008, 03:27:01 PM
Put it in the first post?
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: [SiNaN] on July 23, 2008, 03:31:29 PM
Don't think we need. Tomorrow will fix with an update. I mean after 13 hours.
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: caniol52 on July 23, 2008, 04:11:22 PM
I am getting an "Unable to load the 'main' template." error when attempting to post a reply, post a new topic, or modify an existing post.  Any ideas?
Title: Re: SimplePortal (2.0 Released)
Post by: caniol52 on July 23, 2008, 04:13:15 PM
Quote from: [SiNaN] on July 23, 2008, 04:13:56 AM


caniol52:

Why not using the Package Manager? If you will install manually just copy it to your SMF root and call from browser.

About the template error you are getting; you probably made a mistake while installing it manually. Use the package parse here (http://sleepycode.com/PackageParser/index.php) as the one in the mod site have some problems with it.



Got it working thanks!
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: doughty on July 23, 2008, 05:09:39 PM
[SiNaN]  - I got it working, I did lots of google seach about mod_security and mod_security2 and what I found was basically that sometimes it can't be disabled on the 'user' side, sometimes the host must do it.

I logged a ticket with my host and they opened up the rules a bit and its all working great now...  ;D - thanks for your help in getting me to the answer - its appricated!

last 'request' - how about a simplified 'mobile/wap/lo-fi' version of SP too :D  :P
Title: SimplePortal 2.0
Post by: I AM Legend on July 23, 2008, 11:27:40 PM
Hi All,
I have SimplePortal 2.0 installed and working fine.
Just one quick question, how do I get it to be the home page? ie: when someone logs the forum url, they see the portal page 1st.
Thanks as always.
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: [SiNaN] on July 24, 2008, 02:34:52 AM
caniol52:

All the problems are solved?

doughty:

Glad you get it working. I also thought of that too. But not sure how that's going to be. :)
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: [SiNaN] on July 24, 2008, 03:20:24 AM
SimplePortal 2.0.2 update is out. Please check the first post (http://www.simplemachines.org/community/index.php?topic=227599.0) of this topic.
Title: Re: SimplePortal 2.0
Post by: vbgamer45 on July 24, 2008, 04:15:54 AM
I want ask this question in the mod's topic in the modifications forum for the best response.
Title: Re: SimplePortal 2.0
Post by: Nathaniel on July 24, 2008, 04:52:57 AM
You have to enable it in the "SPortal Admin" area, check the "Portal is active?" setting.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Manu.G on July 24, 2008, 07:30:52 AM
Hi Sinan,

in the night I made the upgrade to 2.0.1 and everything works perfect. :D
I added the $db_prefix manual to the SPortalAdmin.php have I to upgrade to
2.0.2 or isn't it for need?
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: caniol52 on July 24, 2008, 07:52:20 AM
Quote from: [SiNaN] on July 24, 2008, 02:34:52 AM
caniol52:

All the problems are solved?


[SiNaN] I now have the portal installed and working , but now I am getting an "Unable to load the 'main' template." error when attempting to post a reply, post a new topic, or modify an existing post.  Everything else works fine.  Any ideas?

I have version 2.0 installed. 
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ruckstande on July 24, 2008, 08:24:48 AM
Sorry SiNaN, the RSS thing is still screwy. If you look on my site, the feed all currently say they are posted by me instead of the designated user. Also, on the side bar where it says Total Users, it used to give the number of all of the users of my site, now it only says the number of users online.
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: kandalf on July 24, 2008, 09:34:33 AM
Quote from: [SiNaN] on July 23, 2008, 09:08:53 AM

kandalf:

You're right, I've missed that. Run this query from PhpMyAdmin and you will have no problems:

ALTER TABLE smf_sp_articles CHANGE ID_MESSAGE ID_MESSAGE INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL

Tomorrow will release an update.


Thanks [SiNaN]. You are the best  ;D
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 24, 2008, 12:00:41 PM
Manu0372:

Update it, because it makes some other changes too. You do not need to take the fix back if you've already done it. Do not be afraid of updating, I always test them.

caniol52:

Are you sure about the changes made in the Post.template.php? Check it again. If you cannot solve, attach it here.

ruckstande:

If you're having problems with RSS Feed Poster Mod, please ask to the author of that mod. If you have the ID of you RSS Feed Poster I can prevent the block to show their posts.

Couldn't understand your users online problem?

kandalf:

Thanks, be sure upgrade the mod too. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Hoochie Coochie Man on July 24, 2008, 12:06:34 PM
Yo mate!  :D

You've done wonderful job with this mod.

I tkink people like the "simple" idea of this mod. Bacause it's simple as it says ;)

Take care brother

Best Regards

Hoochie Coochie Man
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 24, 2008, 12:13:56 PM
Hoochie Coochie Man:

Thanks HCM. I hope so. We are growing, have some news. Will announce soon.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Hoochie Coochie Man on July 24, 2008, 12:15:39 PM
Quote from: [SiNaN] on July 24, 2008, 12:13:56 PM
Hoochie Coochie Man:

Thanks HCM. I hope so. We are growing, have some news. Will announce soon.

Yeah brother, I heard the news and I'm working on something, I hope you like my surprise. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: caniol52 on July 24, 2008, 12:48:50 PM
Quote from: [SiNaN] on July 24, 2008, 12:00:41 PM

caniol52:

Are you sure about the changes made in the Post.template.php? Check it again. If you cannot solve, attach it here.

Thanks, be sure upgrade the mod too. ;)

[SiNaN] you were correct. I found mismatched braces in the post.php file.  All is working correctly now.  Thanks!!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: caniol52 on July 24, 2008, 01:23:13 PM
Has anyone developed a php block that will display today's birthdays?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 24, 2008, 01:25:42 PM
caniol52:

Not yet but, you can use the SSI function.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: caniol52 on July 24, 2008, 01:47:33 PM
Quote from: [SiNaN] on July 24, 2008, 01:25:42 PM
caniol52:

Not yet but, you can use the SSI function.

That worked great.  Thanks again for all of your help!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ruckstande on July 24, 2008, 02:41:53 PM
Quote from: [SiNaN] on July 24, 2008, 12:00:41 PM
Manu0372:

Update it, because it makes some other changes too. You do not need to take the fix back if you've already done it. Do not be afraid of updating, I always test them.

caniol52:

Are you sure about the changes made in the Post.template.php? Check it again. If you cannot solve, attach it here.

ruckstande:

If you're having problems with RSS Feed Poster Mod, please ask to the author of that mod. If you have the ID of you RSS Feed Poster I can prevent the block to show their posts.

Couldn't understand your users online problem?

kandalf:

Thanks, be sure upgrade the mod too. ;)
Thanks man, I will work on it some more and stop bugging you. The problem with the Users is that with 1.2 it use to say "Total Users: 187" which was correct. Right now it says "Total Users: 3".
Title: Re: SimplePortal 2.0
Post by: I AM Legend on July 24, 2008, 06:10:23 PM
Quote from: LHVWB on July 24, 2008, 04:52:57 AM
You have to enable it in the "SPortal Admin" area, check the "Portal is active?" setting.

Hi, I already did that, doesnt show untill the forum is logged.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: kandalf on July 24, 2008, 06:58:16 PM
I think a nice feature in SP was able to choose the order that the articles appear.

For example I want to put a article in the top but after I add other article, the first article will go down.

   
Forget . I can do this using blocks  :-[
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nibogo on July 24, 2008, 10:09:54 PM
I am trying to have the article system of the simpleportal but i cant do it :(

http://www.mundo-se.com/index.php?topic=464.0;view=article

i get an error:

Fatal error: Cannot redeclare template_main() (previously declared in ********************/Load.php(1902) : eval()'d code:6) in ******************/Load.php(1902) : eval()'d code on line 1427

I modify the installation so i only have the SPortal admin with the articles management and the modifications to have the articles , what i can do?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: erisa on July 24, 2008, 10:56:08 PM
I have switched from TP to SP. A big difference. But TP lags my forum and I just need something simple.

I'm new to SP. Just to find out, SP only opens on homepage and not forum page and the rest right?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Apllicmz on July 25, 2008, 01:07:06 AM
i try to update my Sp...i see that erro

(http://i276.photobucket.com/albums/kk39/apllic/sshot-1-7.png)


Update utf8

<file name="$languagedir/Modifications.portuguese-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// SP General
$txt['sp-forum'] = 'F&oacute;rum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Artigo Categoria';
$txt['sp-articlesNoCategory'] = 'N&atilde;o Publicar';
$txt['sp-make_article'] = 'Fa&ccedil;ar artigo';
$txt['error_sp_no_message_id'] = 'Inv&aacute;lido mensagem ID.';
$txt['error_sp_article_exists'] = 'Artigo j&aacute; existe.';
$txt['error_sp_cannot_add_article'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para adicionar artigo.';
$txt['error_sp_label_empty'] = 'Selo deixada esta vazio.';
$txt['error_sp_name_empty'] = 'O nome deixado esta vazio.';
$txt['error_sp_no_category'] = 'N&atilde;o existe nenhum artigo categoria criada.';

// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'Esta autoriza&ccedil;&atilde;o permite que membros acessem o painel SimplePortal Admin.';
$txt['permissionname_sp_add_article'] = 'Posso acrescentar artigo';
$txt['permissionhelp_sp_add_article'] = 'Esta autoriza&ccedil;&atilde;o permite aos membros adicionar artigos.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto artigo aprova&ccedil;&atilde;o';
$txt['permissionhelp_sp_auto_article_approval'] = 'Esta autoriza&ccedil;&atilde;o permite aos membros adicionar artigos sem aprova&ccedil;&atilde;o.';

// SP Blocks
$txt['sp-userpost'] = 'Postes';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total de Mensagens';
$txt['sp-usernmessage'] = 'Novas mensagens';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Sair';
$txt['sp-onlineguest'] = 'Visitantes On-Line';
$txt['sp-onlineuser'] = 'Membros On-Line';
$txt['sp-onlinehuser'] = 'membros Oculto';
$txt['sp-onlinetuser'] = 'Total Membros';
$txt['sp-onlineouser'] = 'Online Membros';
$txt['sp-statmember'] = 'Total Membros';
$txt['sp-statpost'] = 'Total Postes';
$txt['sp-stattopic'] = 'Total T&oacute;pico';
$txt['sp-statcategory'] = 'Total Categorias';
$txt['sp-statboard'] = 'Total quadros';
$txt['sp-qsearchsearch'] = 'Pesquisa';
$txt['sp-tposterpost'] = ' poste';
$txt['sp-tboardname'] = 'Quadro';
$txt['sp-tboardpost'] = 'Poste';
$txt['sp-ttopicname'] = 'T&oacute;pico';
$txt['sp-ttopicpost'] = 'Poste';
$txt['sp-grpictureviews'] = 'Ver:';
$txt['sp-grpicturesender'] = 'Por:';
$txt['sp-grpictureguest'] = 'Visitante';
$txt['sp-arcadeplay'] = 'O Top de jogadores';
$txt['sp-arcadewin'] = 'N&uacute;mero de vit&oacute;rias :';
$txt['sp-arcadelate'] = '&Uacute;ltimas pontua&ccedil;&atilde;o elevada em ';
$txt['sp-arcadewit'] = 'com ';
$txt['sp-arcadeon'] = 'on ';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// SP General
$txt['sp-forum'] = 'F&oacute;rum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Artigo Categoria';
$txt['sp-articlesNoCategory'] = 'N&atilde;o Publicar';
$txt['sp-make_article'] = 'Fa&ccedil;ar artigo';
$txt['error_sp_no_message_id'] = 'Inv&aacute;lido mensagem ID.';
$txt['error_sp_article_exists'] = 'Artigo j&aacute; existe.';
$txt['error_sp_cannot_add_article'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para adicionar artigo.';
$txt['error_sp_label_empty'] = 'Selo deixada esta vazio.';
$txt['error_sp_name_empty'] = 'O nome deixado esta vazio.';
$txt['error_sp_no_category'] = 'N&atilde;o existe nenhum artigo categoria criada.';

// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'Esta autoriza&ccedil;&atilde;o permite que membros acessem o painel SimplePortal Admin.';
$txt['permissionname_sp_add_article'] = 'Posso acrescentar artigo';
$txt['permissionhelp_sp_add_article'] = 'Esta autoriza&ccedil;&atilde;o permite aos membros adicionar artigos.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto artigo aprova&ccedil;&atilde;o';
$txt['permissionhelp_sp_auto_article_approval'] = 'Esta autoriza&ccedil;&atilde;o permite aos membros adicionar artigos sem aprova&ccedil;&atilde;o.';

// SP Blocks
$txt['sp-userpost'] = 'Postes';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total de Mensagens';
$txt['sp-usernmessage'] = 'Novas mensagens';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Sair';
$txt['sp-onlineguest'] = 'Visitantes On-Line';
$txt['sp-onlineuser'] = 'Membros On-Line';
$txt['sp-onlinehuser'] = 'membros Oculto';
$txt['sp-onlinetuser'] = 'Total Membros';
$txt['sp-onlineouser'] = 'Online Membros';
$txt['sp-statmember'] = 'Total Membros';
$txt['sp-statpost'] = 'Total Postes';
$txt['sp-stattopic'] = 'Total T&oacute;pico';
$txt['sp-statcategory'] = 'Total Categorias';
$txt['sp-statboard'] = 'Total quadros';
$txt['sp-qsearchsearch'] = 'Pesquisa';
$txt['sp-tposterpost'] = ' poste';
$txt['sp-tboardname'] = 'Quadro';
$txt['sp-tboardpost'] = 'Poste';
$txt['sp-ttopicname'] = 'T&oacute;pico';
$txt['sp-ttopicpost'] = 'Poste';
$txt['sp-grpictureviews'] = 'Ver:';
$txt['sp-grpicturesender'] = 'Por:';
$txt['sp-grpictureguest'] = 'Visitante';
$txt['sp-arcadeplay'] = 'O Top de jogadores';
$txt['sp-arcadewin'] = 'N&uacute;mero de vit&oacute;rias :';
$txt['sp-arcadelate'] = '&Uacute;ltimas pontua&ccedil;&atilde;o elevada em ';
$txt['sp-arcadewit'] = 'com ';
$txt['sp-arcadeon'] = 'on ';]]></add>
</operation>
</file>


<file name="$languagedir/Who.portuguese-utf8.php" error="skip">
<operation>
<search position="end"><![CDATA[$txt['who_index'] = 'Vendo o &iacute;ndice do quadro <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';]]></search>
<add><![CDATA[$txt['who_index'] = 'Vendo <a href="' . $scripturl . '">Portal</a>.';
$txt['whoall_forum'] = 'Vendo <a href="' . $scripturl . '?action=forum">F&oacuterum</a>.';]]></add>
</operation>
</file>
<file name="$languagedir/Who.brazilian-utf8.php" error="skip">
<operation>
<search position="replace"><![CDATA[$txt['who_index'] = 'Vendo o &iacute;ndice do quadro <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';]]></search>
<add><![CDATA[$txt['who_index'] = 'Vendo <a href="' . $scripturl . '">Portal</a>.';
$txt['whoall_forum'] = 'Vendo <a href="' . $scripturl . '?action=forum">F&oacuterum</a>.';]]></add>
</operation>
</file>


Title: Re: SimplePortal (2.0.2 Update Out)
Post by: erisa on July 25, 2008, 01:15:14 AM
Quote from: erisa on July 24, 2008, 10:56:08 PM
I have switched from TP to SP. A big difference. But TP lags my forum and I just need something simple.

I'm new to SP. Just to find out, SP only opens on homepage and not forum page and the rest right?

I also just found out that there's a problem when I want to add article. I click post "A" but post "B" keep appearing even though I tried to add other articles.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 25, 2008, 02:43:39 AM
caniol52:

Not at all. Glad you solved it.

ruckstande:

I've checked your site. There was 1 guest and 1 user. Total user count was 2. Can you post a screenshot when the problem appears?

I AM Legend:

If your forum is restricted to guests, it will not show up.

kandalf:

We can add this feature with the forum-independent-articles.

NIBOGO:

Does this error appear when you turn on the article view feature?

joomlamz:

Forgot to say;

Do not translate the strings below, it will cause your blocks not to appear:

// Positions
$txt['sp-positionLeft'] = 'Left';
$txt['sp-positionMiddleTop'] = 'Middle-Top';
$txt['sp-positionMiddleBottom'] = 'Middle-Bottom';
$txt['sp-positionRight'] = 'Right';



erisa:

Unfortunately we do not have the forum integration feature yet, but that's the first thing in the list.

Which version have you installed? It was fixed in 2.0.2.



Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Manu.G on July 25, 2008, 05:32:08 AM
Ok, I updated to 2.0.2, works still perfect. ;)

But there is one question, it has to do with the gallery block in the portal.
The options for the gallery block is set to "Show last picture", check I out
the gallery block I see "There is no picture in the gallery", but our gallery is
full with pictures. Is there a time limit for "Show the last picture"?  :-\
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 25, 2008, 11:11:08 AM
Manu0372:

Not there isn't. Probably a typo. Will check it.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ruckstande on July 25, 2008, 11:24:37 AM
Quote
ruckstande:

I've checked your site. There was 1 guest and 1 user. Total user count was 2. Can you post a screenshot when the problem appears?
Now that I am looking at it I understand now what total users means. I could have sworn with 1.2 it meant "Total Members" because the number was 187 instead of 2 or 3, etc.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 25, 2008, 11:26:37 AM
ruckstande:

That was probably in Board Stats block, meant the total members registered to your forum.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ruckstande on July 25, 2008, 11:40:38 AM
Oh damn. Sorry.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nibogo on July 25, 2008, 06:03:00 PM
Sinan i edit my Display.php , but didnt work so thanks anyway i will tray with the TP articles
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 26, 2008, 07:07:13 AM
NIBOGO:

Okay, no problem. I could check your file if you want.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nibogo on July 26, 2008, 02:13:27 PM
Quote from: [SiNaN] on July 26, 2008, 07:07:13 AM
NIBOGO:

Okay, no problem. I could check your file if you want.
I attach my Display.php , and i have the same error:

Fatal error: Cannot redeclare template_main() (previously declared in /******/Sources/Load.php(1904) : eval()'d code:6) in /*****/Sources/Load.php(1904) : eval()'d code on line 1425


I create a new board for news and is so similar to your articles:

http://www.mundo-se.com/index.php?topic=200 (http://www.mundo-se.com/index.php?topic=200)

So thanks for your help and keep with your awesome job

Thanks for your help
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: I AM Legend on July 26, 2008, 02:23:54 PM
Hi All,
I have SimplePortal 2.0 installed and working fine.
Just one quick question, how do I get it to be the home page? ie: when someone logs the forum url, they see the portal page 1st, the "Portal is active?" setting is enabled, but the page doesnt show up untill the forum is actually logged.
Thanks as always.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on July 26, 2008, 05:43:28 PM
My Simple-Portal doesn't apeear! I don't know why...

Anyone can helpme?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nathaniel on July 26, 2008, 07:07:54 PM
@I AM Legend and tuggaming,
Make sure that you have checked the "Portal is active?" setting in the "SPortal Admin" part of the admin section, also make sure that you have added some blocks and they are active.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on July 26, 2008, 08:51:45 PM
Quote from: LHVWB on July 26, 2008, 07:07:54 PM
@I AM Legend and tuggaming,
Make sure that you have checked the "Portal is active?" setting in the "SPortal Admin" part of the admin section, also make sure that you have added some blocks and they are active.

(http://www.hdd.pt//thumbs//1105203293.jpg) (http://www.hdd.pt/imagens/1105203293.jpg)

The problem is hear  :(
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: John Rambo on July 26, 2008, 09:49:44 PM
Congratulations!  8)
Good job! ;D

Title: Re: SimplePortal (2.0.2 Update Out)
Post by: BuЯЯЯЯaK on July 26, 2008, 09:53:43 PM
Quote from: tuggaming on July 26, 2008, 08:51:45 PM
Quote from: LHVWB on July 26, 2008, 07:07:54 PM
@I AM Legend and tuggaming,
Make sure that you have checked the "Portal is active?" setting in the "SPortal Admin" part of the admin section, also make sure that you have added some blocks and they are active.

(http://www.hdd.pt//thumbs//1105203293.jpg) (http://www.hdd.pt/imagens/1105203293.jpg)

The problem is hear  :(

Languages files ???
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nathaniel on July 26, 2008, 10:04:20 PM
@tuggaming,
[Burak] is correct, when you are doing the settings for this mod you should view the admin pannel in english, because there are no language strings for your language (at least I don't think so, I can't recognise it). If you want then you could try to ask somebody to translate it for you, or you could translate it yourself.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 27, 2008, 07:06:35 AM
NIBOGO:

Not at all NIBOGO, glad that you've chosen SimplePortal. Be sure that it will grow unbelievably.

I AM Legend:

I've answered your question before. Think of this; when you close the forum for guests, can they see your Board Index? No. It's the same. When your site is not open for guests, the portal page will not be shown too.

tuggaming:

As all said, if you are using a different language than English, you need to make language file edits for your language files too. You can translate them or use in English too.

Just make the change which should be don in Modifications.english.php in your language's Modifications language file. And copy SPortal.english.php and name as SPortal.{your_language}.php. You can translate the parts that are viewable by your guests.

We hope to make some work about this language issue soon.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on July 27, 2008, 07:51:15 AM
I do some modifications, but now i have this error when i trie to view my p.m's, profile, etc...   :-[


Database Error
Unknown column 'mem.money' in 'field list'
File: /home/pedrofb/public_html/Sources/Load.php
Line: 895

Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on July 27, 2008, 08:01:12 AM
Hey SiNaN, this Mod has lots of support to all the simple portal users.

I would like to appreciate you for this good support .

Simple Portal is Simple & Cool.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 27, 2008, 08:14:06 AM
tuggaming:

That's probably a bug related to SMF Shop Mod.

asudhakar:

Thanks Asudhakar.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 27, 2008, 08:28:24 AM
SimplePortal team is proud to announce two new members joining our development team. ccbtimewiz (http://www.simplemachines.org/community/index.php?action=profile;u=111571) and LHVWB (http://www.simplemachines.org/community/index.php?action=profile;u=150164) are our new developers. With this new powerful team, I hope that the mod will be growing faster then expected.

Keep watching us, we will have some incredible news soon.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on July 27, 2008, 08:57:39 AM
Quote from: [SiNaN] on July 27, 2008, 08:14:06 AM
tuggaming:

That's probably a bug related to SMF Shop Mod.

asudhakar:

Thanks Asudhakar.

Thank you ! =)

edit:

Acording to Simple Portal guide, i need to replace this in "/index.php"  (i'm using Apollo BB) :

Quote'findmember' => array('Subs-Auth.php', 'JSMembers'),

To this:
Quote'findmember' => array('Subs-Auth.php', 'JSMembers'), 'forum' => array('BoardIndex.php', 'BoardIndex'), 'spadmin' => array('SPortalAdmin.php', 'SPortalAdmin'),

But my file only have this :

Quote
<?php

// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
   include (dirname(dirname(__FILE__)) . '/index.php');
else
   exit;

?>

// Begin SMFShop code 'shop' => array('shop/Shop.php', 'Shop'), 'shop_general' => array('shop/ShopAdmin.php', 'ShopGeneral'), 'shop_inventory' => array('shop/ShopAdmin.php', 'ShopInventory'), 'shop_items_add' => array('shop/ShopAdmin.php', 'ShopItemsAdd'), 'shop_items_edit' => array('shop/ShopAdmin.php', 'ShopItemsEdit'), 'shop_restock' => array('shop/ShopAdmin.php', 'ShopRestock'), 'shop_usergroup' => array('shop/ShopAdmin.php', 'ShopUserGroup'), 'shop_cat' => array('shop/ShopAdmin.php', 'ShopCategories'), // End SMFShop code

What i should do?

thank you for the help =)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: reece_thompson on July 27, 2008, 01:40:21 PM
I uploaded simple portal to my packages and my "home" tab is still my forum page. I want a simple basica home page that greets the users/guest. Any help would be great! Thanks
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 27, 2008, 01:51:17 PM
tuggaming:

Are you sure? It can't be. In that case, you couldn't have seen your forum. Can you attach your index.php file here?

reece_thompson:

First of all thanks for using SimplePortal.

You should go to the

Admin CP >> SPortal Admin

and check the Portal Active? setting.

Then you should create blocks from Add Block in that area. Also you can view your blocks from the Block List tab.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: reece_thompson on July 27, 2008, 01:53:52 PM
oops... just didn't have the active box checked. my bad.  :D another question... how do i make the width of my blocks fit the html code i have in them (check out my site and you'll understand) thanks!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 27, 2008, 02:01:04 PM
Ummm, just change the left and right blocks width from the same panel.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: reece_thompson on July 27, 2008, 02:08:13 PM
it's the center block
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: avf on July 27, 2008, 02:22:24 PM
Nice Mod. I am using it on my site. What I would like to do is really make this useful for the members by wanting to add their posts to the portal someway thru php or otherwise.

like we have at the top "Show new replies to your posts."

Good Job on this one.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 27, 2008, 02:48:38 PM
reece_thompson:

Do you want it to be in a definite width?

avf:

Thanks for using my mod. I'll code a block for you. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: reece_thompson on July 27, 2008, 04:22:34 PM
is there a way to make a block fit whatever there is inside of it? That would be AWESOME!  :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: I AM Legend on July 27, 2008, 04:32:16 PM
Quote from: [SiNaN] on July 27, 2008, 07:06:35 AM
NIBOGO:

Not at all NIBOGO, glad that you've chosen SimplePortal. Be sure that it will grow unbelievably.

I AM Legend:

I've answered your question before. Think of this; when you close the forum for guests, can they see your Board Index? No. It's the same. When your site is not open for guests, the portal page will not be shown too.

tuggaming:

As all said, if you are using a different language than English, you need to make language file edits for your language files too. You can translate them or use in English too.

Just make the change which should be don in Modifications.english.php in your language's Modifications language file. And copy SPortal.english.php and name as SPortal.{your_language}.php. You can translate the parts that are viewable by your guests.

We hope to make some work about this language issue soon.

Hey bro, thx, its always the simple answers that we pass by, my forum is not open to guests, and i dont plan on it ever being open to guests, but if i create a board open to guests will that surfice and thus make the portal page appear ?
Thanks again
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on July 27, 2008, 04:45:08 PM
http://custom.simplemachines.org/mods/index.php?action=parse .

That tutorial is to adapt the Portal to other themes and languages right?

Following the tutorial, i have to change the "index.php", the "/Sources/Display.php",etc  (files placed in the root of the forum), right? Because i always change the files of my actual theme (Apollo BB).

Is there a program or something that could find the words in files like "Index.php", because is some dificult to find some texts


Thank you =)


edit:
http://tuggaming.weblusa.org/index.php . here is my forum
In the end, you can see "SimplePortal 2.0.1 © [SiNaN]", but i don't have the portal installed, is that possible?

I attach my index file =)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: SA™ on July 27, 2008, 11:56:12 PM
when i use the recent shop item block i get this on home page

Table 'smf.smf_shop_purchhis' doesn't exist
File: C:\*****\htdocs\dev\Sources\SPortal.php
Line: 1328
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: SA™ on July 28, 2008, 12:01:56 AM
just check my db and im not seeing

smf_shop_purchhis

that table

just these
smf_shop_categories       
smf_shop_inventory       
smf_shop_items       
smf_shop_lottery 
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 28, 2008, 12:26:32 AM
Excuse me, but what exactly are you trying to do, sir?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: SA™ on July 28, 2008, 12:37:39 AM
well in sportal admin there is a block for smf shop when i use it i get that error stated in my  first post
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 28, 2008, 03:23:36 AM
reece_thompson:

Remove the "width" attributes for the blocks in the SPortal.template.php file.

I AM Legend:

Yes, that would do the trick.

tuggaming:

You've installed the mod. What you need is, just making the template file edits for your custom themes too. Package manager makes the source file and default theme files edits for you.

wdm2005:

See the description. You need Shop Stats Mod installed too. You can download it here:

http://www.daniel15.com/forum/index.php/topic,1219.0.html
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: avf on July 28, 2008, 05:27:53 AM
Quote from: [SiNaN] on July 27, 2008, 02:48:38 PM
reece_thompson:

Do you want it to be in a definite width?

avf:

Thanks for using my mod. I'll code a block for you. ;)

Awesome Sinan ! i will send you a link to my forum in your PM.
Thanks AVF
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on July 28, 2008, 06:48:09 AM
Quote from: [SiNaN] on July 28, 2008, 03:23:36 AM


tuggaming:

You've installed the mod. What you need is, just making the template file edits for your custom themes too. Package manager makes the source file and default theme files edits for you.



So, i need to change the files of Apollo BB, right? Because i use that theme.

ps: Simple Portal doesn't appear in default theme .....
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 28, 2008, 06:49:24 AM
tuggaming:

Yes but only the template file edits.

Admin CP >> SPortal Admin >> Portal active?

make sure that it is checked and you've created some blocks.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on July 28, 2008, 07:40:06 AM
http://tuggaming.weblusa.org

Visit my forum,  I have a error :S :'(
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 28, 2008, 07:52:03 AM
Attach your current index.php file.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on July 28, 2008, 07:58:09 AM
Thank's  ;)

This append when i install a theme :S
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 28, 2008, 08:03:10 AM
I really didn't understand yet what you are trying to do... In this file, some edits are okay, but some are not. Do you have any idea why?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on July 28, 2008, 08:04:40 AM
Quote from: [SiNaN] on July 28, 2008, 08:03:10 AM
I really didn't understand yet what you are trying to do... In this file, some edits are okay, but some are not. Do you have any idea why?

No :/ .
But i have a backup of my forum. I can install ?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 28, 2008, 08:11:58 AM
No need, attach all files that are related to SimplePortal -including your custom theme files-. I'll do the edits for you until tomorrow.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Santaji on July 28, 2008, 08:17:55 AM
I need help!
I installed SimplePortal 2.0.2 using the Package of the Moment thingy in the package manager,
but it didden't work, it put "SimplePortal 2.0.1 © [SiNaN]" in the site's footer, and messed up the menu in the Administration Center, heres a screenshot:
(http://santaji.net/Picture%201.png)
so i decided to download SimplePortal and upload it myself, so i deleted SimplePortal, but i forgot to uninstall it first, now the menu is still messed up, and it still says  "SimplePortal 2.0.1 © [SiNaN]" in the footer, and i can't uninstall SimplePortal cause i have deleted it!
now i downloaded SimplePortal 2.0.2 on my Mac, and  uploaded it from the Package manager, and it says: "Could not upload package, please check directory permissions!"

What should i do??? someone please help!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on July 28, 2008, 08:22:01 AM
Is this?

Thanks for the support  ;)

Santaji: I have the same problem that you have, even in default theme  ::)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 28, 2008, 08:27:34 AM
tuggaming:

Will reply until tomorrow tuggaming.

Santaji:

I can't see the screenshot. What is the language you are using? It should be because of that you are not using English language.

Dowload the package you've installed. Upload it via FTP to the Packages directory. Then [Uninstall].
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Santaji on July 28, 2008, 08:35:29 AM
Quote from: [SiNaN] on July 28, 2008, 08:27:34 AM
Santaji:

I can't see the screenshot. What is the language you are using? It should be because of that you are not using English language.

Dowload the package you've installed. Upload it via FTP to the Packages directory. Then [Uninstall].

Here's a link to the screenshot: http://santaji.net/Picture 1.png
I'm using english language, and the default theme
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on July 28, 2008, 08:36:16 AM
Quote from: [SiNaN] on July 28, 2008, 08:27:34 AM
tuggaming:

Will reply until tomorrow tuggaming.

Santaji:

I can't see the screenshot. What is the language you are using? It should be because of that you are not using English language.

Dowload the package you've installed. Upload it via FTP to the Packages directory. Then [Uninstall].

So, after you edit the files, my forum will be on again?
Because i have some backup's from yesterday  :o.
How i can use them? Just replace the old files to the backup files?


Thnks

edit:
http://tuggaming.weblusa.org

My forum works, i just use a backup file from today, and now seems to be OK
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Santaji on July 28, 2008, 08:48:11 AM
Quote from: [SiNaN] on July 28, 2008, 08:27:34 AM
Dowload the package you've installed. Upload it via FTP to the Packages directory. Then [Uninstall].
Just tried that, didn't work, still says "Unable to find package file!"
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 28, 2008, 11:06:01 AM
Santaji, is your forum set to English or utf8-english?

Do check, go to Admin > Server Settings
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Santaji on July 29, 2008, 12:43:51 AM
Quote from: ccbtimewiz on July 28, 2008, 11:06:01 AM
Santaji, is your forum set to English or utf8-english?

Do check, go to Admin > Server Settings

It's set to english!

i just want to fix this mess, i can worry about installing SimplePortal later :(
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 29, 2008, 09:40:54 AM
Santaji:

No worries. Can you attach your

index.php
Sources/Display.php
Sources/Load.php
Sources/ManagePermissions.php
Sources/Post.php
Sources/Subs.php
Sources/Subs-Post.php
index.template.php
Display.template.php
Post.template.php

I'll remove it manually for you.

tuggaming:

Can you attach your un-edited (fresh) files?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: L'AltroWeb on July 29, 2008, 10:14:48 AM
Hi!
I have decide to remove my portal (MKPortal) because is more confused and i don't use it except for topsites (like a small directory) and download area!
For this reason i want change to tinyportal (or simplyportal)!
But I've some questions:
1: can i have with simplyportal a download area?
2: can I've topsites/directory area?
3: can i make custom page and block (for example with iframe) to integrate my actual guestbook (iframed to mkportal)?
4: what is difference with tinyportal?
Thanks in advance for any answers and sorry for my probably bad english
kind regards, DarkWolf :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 29, 2008, 10:25:37 AM
Dark-Wolf:

1: In SimplePortal we do not have a download module. But we have many download mods too. See the vbgamers' one:

http://custom.simplemachines.org/mods/index.php?mod=992

We can help you to add a block to display most popular downloads too and of course any other info about downloads.

2 and 3: For now, SimplePortal is just a single portal page mod. You cannot create new pages (for now). But you can use Custom Action Mod:

http://custom.simplemachines.org/mods/index.php?mod=331

It gives you the ability to add unlimited number of HTML, BBC, and PHP coded pages into your forum.

4: TP has more features than SP. For example a better article system, showing blocks inside the forum pages and so on... It also has a download module. On the other hand, as I know it doesn't have the feature to create pages too (not sure). Its quite complex than SP. SP is just simple, but powerful too.

Hope this helps you. We're always here to help you. I'm not a native too, but your English seems well to me. :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: L'AltroWeb on July 29, 2008, 10:35:58 AM
Thank'you very much [SiNaN]
Now I've download to install/test with easyphp (local install) ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 29, 2008, 10:37:47 AM
Dark-Wolf:

Not at all Dark-Wolf. We're here for support.

I use that too. Test both, then you will use the one that suits your needs. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: L'AltroWeb on July 29, 2008, 10:42:49 AM
Quote from: [SiNaN] on July 29, 2008, 10:37:47 AM
Not at all Dark-Wolf. We're here for support.
You're very kind :)
Quote from: [SiNaN] on July 29, 2008, 10:37:47 AM
I use that too. Test both, then you will use the one that suits your needs. ;)
Yes! IMHO is best solution ;)
Thanks again :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: @L3 on July 29, 2008, 12:03:13 PM
weeee, dark ;) the [sinan] portal  8) is fantastic ......
i use it in local forum..... it's great! ;)

Ciao, Stefano ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 29, 2008, 12:04:03 PM
Dark-Wolf and @L3:

Thanks for both of you. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: L'AltroWeb on July 29, 2008, 12:19:57 PM
Ciao stefano, grazie per l'info :)
-
Hi stefano thanks for your reports :)
-
@SiNaN:
I've test to install and it works fine!
-
(http://img246.imageshack.us/img246/2279/simpletest1dq7.th.png) (http://img246.imageshack.us/my.php?image=simpletest1dq7.png)
-
Now i want test also download manager and Custom Action Mod!  ;)
PS: do you have any notice if prettyurls (i'm use on my forum) work also with simpleportal?
-
Really last questions: if i install a custom theme this is compatible with simpleportal?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 29, 2008, 12:30:07 PM
Dark-Wolf:

I don't know whether they are compatible or not but it should be. Maybe there could be a problem with the article pagination stuff. I'll check until tomorrow and will inform you.

Yes, it will be compatible with all of the themes from the Theme Site perfectly. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: L'AltroWeb on July 29, 2008, 12:34:13 PM
Quote from: [SiNaN] on July 29, 2008, 12:30:07 PM
Dark-Wolf:

I don't know whether they are compatible or not but it should be. Maybe there could be a problem with the article pagination stuff. I'll check until tomorrow and will inform you.
Thanks!
Quote from: [SiNaN] on July 29, 2008, 12:30:07 PM
Yes, it will be compatible with all of the themes from the Theme Site perfectly. ;)
Very good! :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: caniol52 on July 29, 2008, 01:46:04 PM
[SiNaN], I've attached pics of my portal (one using IE7, one using Firefox).  Firefox displays everything correctly, but IE7 doesn't.  Have you seen this before and is there a way to fix this?

Thanks.

Firefox
(http://img.photobucket.com/albums/v644/caniol/portal2.jpg)

IE7
(http://img.photobucket.com/albums/v644/caniol/portal1.jpg)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Eliana Tamerin on July 29, 2008, 02:39:25 PM
It's called IE sucks! :P

In all seriousness, though, i'm sure the problem will get solved. Understand that cross-browser compatibility with IE is usually the most difficult one.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: iKami on July 29, 2008, 04:39:02 PM
I've installed  Simpel Portal without any problems but I cant find the control panel?! Iv'e gon to Admin CP/Settings and opitions.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 29, 2008, 04:43:05 PM
Admin > Simple Portal > SPortal Admin
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: iKami on July 29, 2008, 04:48:33 PM
" Grundläggande forumfunktioner | Layout och utseendemässiga tillval |  | Karma" I don't know why there is a space between tillval and Karma but maybe it's supposed to be there?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 29, 2008, 04:52:33 PM
No, it's in the main admin sidebar to the left.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 29, 2008, 04:55:44 PM
I've downloaded it but I can't find the SPortal tab.
I've read the above posts and yet I can't find it.
I have SMF 1.1.5 and downloaded version 2.0.2
Please help?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 29, 2008, 04:59:42 PM
Are you using the default theme? Have you installed any other modifications before this one?  ???
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 29, 2008, 05:06:29 PM
I'm not using the default theme.
No, I'm not using any later version. This is my first download of this mod :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 29, 2008, 05:10:42 PM
What theme are you using? What templates does this theme have in it? Is there a /language directory in that theme?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 29, 2008, 05:12:53 PM
I'm using a SC12 theme.
I don't think there is. ???
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 29, 2008, 05:16:28 PM
Could you check? You can check it by using your FTP client. How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 29, 2008, 05:24:31 PM
It has -
images          
languages       
index.php    
index.template.php    
sc2.css    
style.css    
theme_info.xml    
tmp_0069252a5d1d34a60fd070c07421f335.php    
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 29, 2008, 05:26:50 PM
When you installed the package, did you get any "Test Failed!" alerts on any of the files?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 29, 2008, 05:30:55 PM
Nope.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 29, 2008, 05:31:30 PM
Can you confirm that all the edits were made? Try manually installing the mod and see if the edits line up.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: iKami on July 29, 2008, 05:32:09 PM
I have all the Files on the FTP and I've tested with several themes. but i still can't find it. :/
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 29, 2008, 05:39:20 PM
Hmm.. I've found the problem but can you please tell me what is the version for SMF 1.1.5
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 29, 2008, 05:47:10 PM
Simple Portal 2.0.2.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: iKami on July 29, 2008, 05:53:12 PM
I've downloaded the  SimplePortal.zip (16KB) [2460] is that the 2.0.2.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 29, 2008, 06:02:41 PM
#  SimplePortal2.0.2.zip
# (51KB)
# [213]
Thats the one.
Now I have a problem, I have 2 mods of the same kind installed.
It's this mod.
I can't delete it also..
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 29, 2008, 06:07:48 PM
Of the same kind? I don't quite understand, do you have another portal system installed?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 29, 2008, 06:16:34 PM
Nope.
Can you fix this problem yourself?
If so I'll pm you the details..  :(
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 29, 2008, 06:20:47 PM
Quote from: akl on July 29, 2008, 06:16:34 PM
Nope.
Can you fix this problem yourself?
If so I'll pm you the details..  :(

Well alright. PM the URL and details for an admin account.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: iKami on July 29, 2008, 06:41:27 PM
Now I can't uninstall the first version ._.

Is there some way to uninstall it in the ftp?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: iKami on July 29, 2008, 08:27:08 PM
Quote from: ccbtimewiz on July 29, 2008, 06:20:47 PM
Quote from: akl on July 29, 2008, 06:16:34 PM
Nope.
Can you fix this problem yourself?
If so I'll pm you the details..  :(

Well alright. PM the URL and details for an admin account.

How's it going?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Santaji on July 30, 2008, 01:49:18 AM
Quote from: [SiNaN] on July 29, 2008, 09:40:54 AM
No worries. Can you attach your

index.php
Sources/Display.php
Sources/Load.php
Sources/ManagePermissions.php
Sources/Post.php
Sources/Subs.php
Sources/Subs-Post.php
index.template.php
Display.template.php
Post.template.php

I'll remove it manually for you.
Thanks! :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 30, 2008, 06:57:31 AM
caniol52:

Confirmed bug, thanks.

Eliana Tamerin:

I agree Eliana. I hate IE.

akl:

Are you usign a language other than English?

iKami:

You did a fresh install or you updated from one of the 2.x version? What is your forum's default language?

Santaji:

I'm looking at them.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: iKami on July 30, 2008, 09:55:11 AM
I've reinstalled SMF and cleaned the Database, I'm only using the English language and standard theme. What version of SimpelPortal is stabel? :P
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 30, 2008, 10:01:52 AM
2.0.2.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Santaji on July 30, 2008, 10:18:04 AM
Quote from: [SiNaN] on July 30, 2008, 06:57:31 AM
Santaji:

I'm looking at them.

ok, thanks,
i'm waiting for you to fix them!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 30, 2008, 11:24:28 AM
Santaji:

Your files are attached.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 30, 2008, 11:41:27 AM
SiNaN I'm not using any other language.
I'm using english and I have SC32 as my the theme.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 30, 2008, 11:44:57 AM
May I have a look at your site?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 30, 2008, 11:47:43 AM
Sure, can you fix this yourself? I'll pm u the details
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 30, 2008, 11:49:02 AM
Please. Will try.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 30, 2008, 11:51:55 AM
Than you very much.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: iKami on July 30, 2008, 12:24:15 PM
Works perfect now! Thank you for the help and for the MOD.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: iKami on July 30, 2008, 12:59:55 PM
Eh...;)

How do I use another Theme than the default? If I use the one I want to use is the Orange-lt theme. But when select that theme to use for the forum the SPortal Admin panel isn't there.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 30, 2008, 01:00:38 PM
Does your template include languages directory and Modifications.english.php?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on July 30, 2008, 01:12:27 PM
Hi SiNaN, Will Pm you my forum details.

Will you help me to uninstall the earlier simple portal and reinstall the latest stable version for me.

Let me know, if you are free to help me.
  :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: iKami on July 30, 2008, 01:36:14 PM
Quote from: [SiNaN] on July 30, 2008, 01:00:38 PM
Does your template include languages directory and Modifications.english.php?

Well my theme said that I should change the name of the Modifications.english.php to Modifications.swedish.php so I did :P

I looks that I have both on my FTP (Swedish and English.php) plus it has a languages directory where everything is ...swedish.php except the Modifications.english.php
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 30, 2008, 01:38:04 PM
You should make the changes in your template's language files also.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: iKami on July 30, 2008, 01:44:44 PM
where and what should I ad or take away?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 30, 2008, 01:48:32 PM
See the manual installation instructions:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=62190;smf_version=1.1.5

Just the Modifications.{language}.php edit you need.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: iKami on July 30, 2008, 02:15:16 PM
All good now! Thanks once again bro!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: reece_thompson on July 30, 2008, 02:22:22 PM
On my main page I have text at the bottom that is unwanted... my link is- www.connectucf.com and it says "pages:" at the bottom. What file can I edit to make this text go away?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: @L3 on July 30, 2008, 02:40:31 PM
Do you have the italian's files for ver 2.0.2? :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: PAPABEAR on July 30, 2008, 03:06:36 PM
Thanks man. I now have this installed on a test site. I made a bbc block and put a link to the forums in it. It opens in a new window. How do I combat that? I am using the aa new damage v2 skin and it's actually not looking bad at all.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 30, 2008, 04:10:48 PM
Use HTML.

<a href="%url" target="%tar"><img src="%img" alt="*" border="0" /></a>

%url as the link
%tar as the target; _blank or _self. In this case, you want _self
%img as the URL to the image
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: PAPABEAR on July 30, 2008, 05:08:57 PM
Thanks man
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: adp on July 30, 2008, 05:41:17 PM
when for SMF 2.0 Beta 3.1 Public ? :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 30, 2008, 06:05:03 PM
ccbtimewiz
Can you reply to me, I sent you a PM?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: kandalf on July 30, 2008, 06:12:55 PM
I tried to install this mod "SMF Radio v1.1.1" but this problem came up:
Unknown column 'mem.radioTitle' in 'field list'
Ficheiro: C:\xampp\htdocs\Sources\Load.php
Linha: 913



How can I fix it?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on July 30, 2008, 06:38:24 PM
Quote from: kandalf on July 30, 2008, 06:12:55 PM
I tried to install this mod "SMF Radio v1.1.1" but this problem came up:
Unknown column 'mem.radioTitle' in 'field list'
Ficheiro: C:\xampp\htdocs\Sources\Load.php
Linha: 913



How can I fix it?

This thread is for the Simple Portal modification. If you're having trouble with other modifications, please post them in the modification's support thread.

Quote from: akl on July 30, 2008, 06:05:03 PM
ccbtimewiz
Can you reply to me, I sent you a PM?

I don't have any messages. Could you contact me on AIM?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Santaji on July 31, 2008, 02:24:47 AM
Quote from: [SiNaN] on July 30, 2008, 11:24:28 AM
Santaji:

Your files are attached.

Everythings working fine now!, thanks!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on July 31, 2008, 02:54:33 AM
Hi SiNaN, Will Pm you my forum details.

Will you help me to uninstall the earlier simple portal and reinstall the latest stable version for me. :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 31, 2008, 08:51:13 AM
reece_thompson:

Disable the "Artiles" seems like you don't use them.

@L3:

Not yet. Will do something for all the languages.

adp:

Once SMF 2.0 Beta 4 is out.

asudhakar:

Just attach the files needed as all do. See Santaji, I did for him and can do for you too.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 31, 2008, 09:09:39 AM
[SiNaN] or ccbtimewiz
Can either of you add me on MSN, and help me?
[SiNaN] you told me to remove some files, yes? The guy who has the files says he already did do that, still the double mod hasn't been removed. Can you fix it?
My MSN : [email protected]
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 31, 2008, 09:24:23 AM
akl:

Please understand that this is not a SimplePortal specific problem. If you say that the files are removed completely, they shouldn't be in the list. The reason why there are two packages is your "delete package" feature is not working as it should be.

If you want the mod to be installed, I'll do that. SimplePortal didn't made any changes on your forum. But if you just want to remove them from packages list, I don't have any idea how you can do that. That could be a server related error.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 31, 2008, 09:30:20 AM
By installing it do you mean you can get it to work too?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 31, 2008, 09:36:41 AM
Exactly.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 31, 2008, 09:55:13 AM
Please do so.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 31, 2008, 10:02:17 AM
There is a package manager problem related to the permissions on the server. We must install it manually.

Attach your:

index.php
Sources/Display.php
Sources/Load.php
Sources/ManagePermissions.php
Sources/Post.php
Sources/Subs.php
Sources/Subs-Post.php
index.template.php
Display.template.php
Post.template.php
Modifications.english.php

I'll install it manually for you.

By the way, I cleared your error log as it was more than 5000 pages and disabled error logging. Better you fix the errors on your forum.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 31, 2008, 10:12:08 AM
Is that it?
The theme I'm using has this
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Eliana Tamerin on July 31, 2008, 10:16:31 AM
Quote from: akl on July 31, 2008, 09:09:39 AM
[SiNaN] or ccbtimewiz
Can either of you add me on MSN, and help me?
[SiNaN] you told me to remove some files, yes? The guy who has the files says he already did do that, still the double mod hasn't been removed. Can you fix it?
My MSN : [email protected]

Akl, please don't ask anybody to give you support over IM or PM. If the person chooses to, they can, but it's really not your right to ask for it. The forums are here to give support, mainly because people can later search for the answers that YOU have been given, and use them if they have the same problem. If support is given by IM or PM, then that ability is lost, and we end up with multiple topics on the same question.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 31, 2008, 10:19:02 AM
Sorry.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 31, 2008, 10:29:15 AM
I need all the files I wrote above.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 31, 2008, 10:31:09 AM
Where can I get them?
Thats all I got from the theme I'm using :(
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 31, 2008, 10:39:28 AM
Some of them are in the Sources directory. index.php is in the root.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: akl on July 31, 2008, 10:57:42 AM
KK, I'll get it from the guy.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: avf on July 31, 2008, 11:43:26 AM
Quote from: [SiNaN] on July 27, 2008, 02:48:38 PM
reece_thompson:

Do you want it to be in a definite width?

avf:

Thanks for using my mod. I'll code a block for you. ;)

Hi Sinan,
My members are really appreciating your mod. Thanks .

Is it possible for you write the php code that i can use so that members  can see their own posts on your portal
Thanks again
avf
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on July 31, 2008, 11:59:51 AM
Will do tomorrow. Now I should go.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on July 31, 2008, 03:12:21 PM
Quote from: [SiNaN] on July 31, 2008, 08:51:13 AM

asudhakar:

Just attach the files needed as all do. See Santaji, I did for him and can do for you too.

ok you are right.
I understand you have previously helped me to remove the simple portal 1.2 from the files i have attached. But i have added more mods to those files. So will reattach and you help me to remove the simple portal 1.2 from those files even shows test failed while uninstall.

Make Sure the modsettings is been reedited completely by you for Games and other functions.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Mulgarus on August 01, 2008, 05:56:49 AM
http://www.narnia.clutchkill.com/
I just installed this mode, now I cant even access my site..  smf 1.1.5

EDIT:
never mind.. this mod isn't compatible with the theme im using. kinda wish it was.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Manu.G on August 01, 2008, 07:18:40 AM
Hi Sinan,

here is the German translation for the portal:

Modifications.german.php
// SP General
$txt['sp-forum'] = 'Forum';
$txt['sp-adminTitle'] = 'SPortal Administration';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Artikelkategorie';
$txt['sp-articlesNoCategory'] = 'Nicht ver&ouml;ffentlichen';
$txt['sp-make_article'] = 'Artikel erstellen';
$txt['error_sp_no_message_id'] = 'Ung&uuml;ltige Beitrags-ID.';
$txt['error_sp_article_exists'] = 'Artikel existiert bereits.';
$txt['error_sp_cannot_add_article'] = 'Sie haben nicht die Berechtigung einen Artikel zuerstellen.';
$txt['error_sp_label_empty'] = 'Es wurde kein Titel eingegeben.';
$txt['error_sp_name_empty'] = 'Es wurde kein Namen eingegeben.';
$txt['error_sp_no_category'] = 'Es wurde keine Artikelkategorie erstellt.';

// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Portal moderieren';
$txt['permissionhelp_sp_moderate'] = 'Diese Berechtigung gibt Mitglieder Zugang zum SimplePortal Adminbereich.';
$txt['permissionname_sp_add_article'] = 'Darf Artikel erstellen';
$txt['permissionhelp_sp_add_article'] = 'Diese Berechtigung erlaubt Mitgliedern Artikel zu erstellen.';
$txt['permissionname_sp_auto_article_approval'] = 'Automatisch Artikel zulassen';
$txt['permissionhelp_sp_auto_article_approval'] = 'Diese Berechtigung erlaubt Mitgliedern Artikel ohne Zustimmung zu erstellen.';

// SP Blocks
$txt['sp-userpost'] = 'Beitr&auml;ge';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Gesamte Nachrichten';
$txt['sp-usernmessage'] = 'Neue Nachrichten';
$txt['sp-userprofile'] = 'Profil';
$txt['sp-userlogout'] = 'Abmelden';
$txt['sp-onlineguest'] = 'Online G&auml;ste';
$txt['sp-onlineuser'] = 'Online Mitglieder';
$txt['sp-onlinehuser'] = 'Versteckte Mitglieder';
$txt['sp-onlinetuser'] = 'Mitglieder insgesamt';
$txt['sp-onlineouser'] = 'Mitglieder online';
$txt['sp-statmember'] = 'Mitglieder insgesamt';
$txt['sp-statpost'] = 'Beitr&auml;ge';
$txt['sp-stattopic'] = 'Themen';
$txt['sp-statcategory'] = 'Kategorien';
$txt['sp-statboard'] = 'Foren';
$txt['sp-qsearchsearch'] = 'Suche';
$txt['sp-tposterpost'] = ' Beitr&auml;ge';
$txt['sp-tboardname'] = 'Forum';
$txt['sp-tboardpost'] = 'Beitr&auml;ge';
$txt['sp-ttopicname'] = 'Thema';
$txt['sp-ttopicpost'] = 'Beitr&auml;ge';
$txt['sp-grpictureviews'] = 'Angeschaut:';
$txt['sp-grpicturesender'] = 'von:';
$txt['sp-grpictureguest'] = 'Gast';
$txt['sp-arcadeplay'] = 'Die Top-Spieler';
$txt['sp-arcadewin'] = 'Anzahl der Gewinne :';
$txt['sp-arcadelate'] = 'letzter High-Score von ';
$txt['sp-arcadewit'] = 'mit ';
$txt['sp-arcadeon'] = 'in ';


Modifications.german-utf8.php

// SP General
$txt['sp-forum'] = 'Forum';
$txt['sp-adminTitle'] = 'SPortal Administration';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Artikelkategorie';
$txt['sp-articlesNoCategory'] = 'Nicht veröffentlichen';
$txt['sp-make_article'] = 'Artikel erstellen';
$txt['error_sp_no_message_id'] = 'Ungültige Beitrags-ID.';
$txt['error_sp_article_exists'] = 'Artikel existiert bereits.';
$txt['error_sp_cannot_add_article'] = 'Sie haben nicht die Berechtigung einen Artikel zuerstellen.';
$txt['error_sp_label_empty'] = 'Es wurde kein Titel eingegeben.';
$txt['error_sp_name_empty'] = 'Es wurde kein Namen eingegeben.';
$txt['error_sp_no_category'] = 'Es wurde keine Artikelkategorie erstellt.';

// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Portal moderieren';
$txt['permissionhelp_sp_moderate'] = 'Diese Berechtigung gibt Mitglieder Zugang zum SimplePortal Adminbereich.';
$txt['permissionname_sp_add_article'] = 'Darf Artikel erstellen';
$txt['permissionhelp_sp_add_article'] = 'Diese Berechtigung erlaubt Mitgliedern Artikel zu erstellen.';
$txt['permissionname_sp_auto_article_approval'] = 'Automatisch Artikel zulassen';
$txt['permissionhelp_sp_auto_article_approval'] = 'Diese Berechtigung erlaubt Mitgliedern Artikel ohne Zustimmung zu erstellen.';

// SP Blocks
$txt['sp-userpost'] = 'Beiträge';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Gesamte Nachrichten';
$txt['sp-usernmessage'] = 'Neue Nachrichten';
$txt['sp-userprofile'] = 'Profil';
$txt['sp-userlogout'] = 'Abmelden';
$txt['sp-onlineguest'] = 'Online Gäste';
$txt['sp-onlineuser'] = 'Online Mitglieder';
$txt['sp-onlinehuser'] = 'Versteckte Mitglieder';
$txt['sp-onlinetuser'] = 'Mitglieder insgesamt';
$txt['sp-onlineouser'] = 'Mitglieder online';
$txt['sp-statmember'] = 'Mitglieder insgesamt';
$txt['sp-statpost'] = 'Beiträge';
$txt['sp-stattopic'] = 'Themen';
$txt['sp-statcategory'] = 'Kategorien';
$txt['sp-statboard'] = 'Foren';
$txt['sp-qsearchsearch'] = 'Suche';
$txt['sp-tposterpost'] = ' Beiträge';
$txt['sp-tboardname'] = 'Forum';
$txt['sp-tboardpost'] = 'Beiträge';
$txt['sp-ttopicname'] = 'Thema';
$txt['sp-ttopicpost'] = 'Beiträge';
$txt['sp-grpictureviews'] = 'Angeschaut:';
$txt['sp-grpicturesender'] = 'von:';
$txt['sp-grpictureguest'] = 'Gast';
$txt['sp-arcadeplay'] = 'Die Top-Spieler';
$txt['sp-arcadewin'] = 'Anzahl der Gewinne :';
$txt['sp-arcadelate'] = 'letzter High-Score von ';
$txt['sp-arcadewit'] = 'mit ';
$txt['sp-arcadeon'] = 'in ';


One last question.
This part shouldn't translate?
// Positions
$txt['sp-positionLeft'] = 'Left';
$txt['sp-positionMiddleTop'] = 'Middle-Top';
$txt['sp-positionMiddleBottom'] = 'Middle-Bottom';
$txt['sp-positionRight'] = 'Right';


To be honest it looks a bit strange, cause with the German language it's to read: Left Blöcke, Middle-Top Blöcke, Middle-Bottom Blöcke, Right Blöcke  ::)

I don't take over any guaranty for grammatical mistakes in the German translation. I tried my best. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 01, 2008, 07:36:56 AM
[SiNaN], can i put my modified files here? Because if i unnistall simple portal, my forum doesn't work  :-[

Thank's
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nathaniel on August 01, 2008, 07:52:04 AM
@asudhakar,
I have removed all of the changes and attached those files to this post.

@Mulgarus
You can always work out a way around the fact that they aren't compatible, which theme are you using? I may be able to work out a way to get them to work. ;)

@Manu0372,
I am pretty sure that you haven't actually translated all of the language strings, there are actually more language strings for this mod in the 'Sportal.english.php' file that need to be translated.

But thank you for translating the ones that you have, there are a huge number of them, because this is a huge mod! ;)

@tuggaming,
I'm not [Sinan], but feel free to post the files, I or one of the other support/dev people for this mod will try to fix the problem. Just make sure that you are clear about your issue, you are trying to uninstall the mod right? You want it removed?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Manu.G on August 01, 2008, 07:56:45 AM
Quote from: LHVWB on August 01, 2008, 07:52:04 AM
@Manu0372,
I am pretty sure that you haven't actually translated all of the language strings, there are actually more language strings for this mod in the 'Sportal.english.php' file that need to be translated.

But thank you for translating the ones that you have, there are a huge number of them, because this is a huge mod! ;)

The SPortal.german.php and SPortal.german-utf8.php are as attachments in this posting http://www.simplemachines.org/community/index.php?topic=227599.msg1640799#msg1640799 of me. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nathaniel on August 01, 2008, 07:59:01 AM
@Manu0372,
Whoops. That shows how much I look at things! ;) Its a good thing that [SiNan] looks after that stuff. ;)

Thank you for doing the translation! ;D

@Mulgarus,
I have worked out which theme you are using. I will see what I can do about some edits for the WoW Dk theme. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 01, 2008, 08:04:45 AM
Yes, i want to remove it all. To trie another SPortal version, more stable  ;D
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nathaniel on August 01, 2008, 08:16:22 AM
@tuggaming,
If you post the files that you are having trouble with and I will remove Simple Portal.

@Mulgarus,
Here is a list of edits that you need to make to get simple portal to work with your theme:

From 'Index.template.php' for your theme:
Replace this code:
    if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
        $current_action = $context['current_action'];
    if ($context['current_action'] == 'search2')
        $current_action = 'search';


With this code:
    if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'spadmin')))
        $current_action = $context['current_action'];
    if ($context['current_action'] == 'search2')
         $current_action = 'search';
    if (isset($_GET['board']) || isset($_GET['topic']))
        $current_action = 'forum';
    if ($context['current_action']=='spadmin')
        $current_action = 'admin';


Replace this code:
    // Show the [help] button.
    echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
                <td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'off_back' , '">
                    <a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
                </td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';


With this code:
    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>' : '';
   
    // Show the [help] button.
    echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
                <td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'off_back' , '">
                    <a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
                </td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';


From 'Display.template.php' for your theme:
Replace this code:
    // Show the page index... "Pages: [1]".
    echo '


With This code:
    if ($context['can_make_article'])
        $normal_buttons['article'] = array('text' => 'sp-make_article', 'image' => 'addarticle.gif', 'lang' => true, 'url' => $scripturl . '?sa=addarticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);

    // Show the page index... "Pages: [1]".
    echo '


That should work, although make another post if you have any problems.

Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 01, 2008, 08:34:06 AM
Only miss this files, because i don't know if the tutorial refers to "default" theme, or to my actual theme.

Quote./Themes/default/index.template.php
./Themes/default/Display.template.php
./Themes/default/Post.template.php
./Themes/default/languages/Modifications.english.php
./Themes/default/languages/Who.english.php
./Themes/default/languages/Modifications.english-utf8.php
./Themes/default/languages/Who.english-utf8.php
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 01, 2008, 09:12:02 AM
Quote from: LHVWB on August 01, 2008, 07:52:04 AM
@asudhakar,
I have removed all of the changes and attached those files to this post.


Hi LMVWB,
Could i replace the files and uninstall or uninstall sp1.2 and then replace the files. Which will be Good Now.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nathaniel on August 01, 2008, 09:25:25 AM
@tuggaming,
I have uninstalled the mod from the files you gave me and re attached it to this post.

@asudhakar,
You should be able to do either, although I would recommend uninstalling the mod and then copying the files, just make sure that you back up all of the old files before you do it.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: xodeus on August 01, 2008, 09:40:18 AM
Hi there. Want to start with a thank you for a simple to manage project.
I've some issues with this mod, when not running english. It doesn't show up at all for any non-english user. When I rename the langauge files to inclide danish in the filename instead of english I get the portal to show up, but there are no text labels for stuff. Se screenshot...
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 01, 2008, 10:27:59 AM
Quote from: LHVWB on August 01, 2008, 09:25:25 AM
@asudhakar,
You should be able to do either, although I would recommend uninstalling the mod and then copying the files, just make sure that you back up all of the old files before you do it.

Will now Uninstall and replace the files you have attached. And also i will have a backup too.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 11:50:08 AM
xodeus:

Copy the language strings added into the Modifcations.english.php by mod to your Modifications language file.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 01, 2008, 12:17:55 PM
Quote from: LHVWB on August 01, 2008, 09:25:25 AM
@asudhakar,
You should be able to do either, although I would recommend uninstalling the mod and then copying the files, just make sure that you back up all of the old files before you do it.

Hi i have did the same. Uninstalled my files even with error.
Replace the Edited files given by LHVWB.

Got this Copyright Error in the footer.

Fatal error: Call to undefined function sportal_copyright() in /home/itacumen/public_html/forum/Sources/Load.php(1915) : eval()'d code on line 640
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: xodeus on August 01, 2008, 12:19:20 PM
Quote from: [SiNaN] on August 01, 2008, 11:50:08 AM
xodeus:

Copy the language strings added into the Modifcations.english.php by mod to your Modifications language file.
Thank you. I should have read the manual instructions too... it works now. Thank you.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 12:19:58 PM
asudhakar:

Can you attach your index.template.php file? Both default and custom theme files.

xodeus:

Not at all. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Talismen on August 01, 2008, 12:27:17 PM
Sinan,

Portal is working great so far!
Had this issue come up just today though:

Error message '8: Undefined index: article_category
File: /home/allsides/public_html/2sides/Sources/Subs-Post.php
Line: 1548'


I got this error when I moved a thread from one forum to another.


Not a biggy, but I thought I'd let you know.
I've kept up in this thread, and I don't think this specific issue has been raised, but, if it has, please disregard.

Thanks!
Tal ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 01, 2008, 12:28:29 PM
Yes.


--- hi i found this footer error only on my dilbermc themes and its working properly in default theme.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 12:41:20 PM
Talismen:

Thanks Tal, confirmed bug. ;)

asudhakar:

Fixed, use the attached file.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 01, 2008, 12:54:22 PM
Thank you for fixing it. Now installing Simple portal 2.0.2
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: xodeus on August 01, 2008, 12:55:12 PM
Is it possible to get an RSS Feed block for the SimplePortal (simply the best) as I would like to show external news on the front page...
what about a small statistics block? with totals for the board?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 12:57:27 PM
xodeus:

Try adding it using php or html blocks.

For the statistics, we have the Board Stats block.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: xodeus on August 01, 2008, 12:58:39 PM
Quote from: [SiNaN] on August 01, 2008, 12:57:27 PM
xodeus:

Try adding it using php or html blocks.
do you have any suggestions on how to do that?
Quote from: [SiNaN] on August 01, 2008, 12:57:27 PM
For the statistics, we have the Board Stats block.
I found it... :P Sorry.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 01:01:28 PM
xodeus:

Some news site support iframe, and just include that iframe. It depends on what that news site supports.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 01, 2008, 01:02:51 PM
Hi tried installing v2.0.2 , got test failed in themes/default/post.template.php

Check it and found the topic mod has been circled with <tr>;

I have attached this file. Check and edit as need . Will install it with error and replace the file you modify.

Added Doubt :
-------------------
And Will this be problem later, ----- 14.     Execute Modification     ./Themes/default/languages/Who.english-utf8.php     Skipping file
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 01:18:06 PM
Fixed Post.template.php. No, seems like you don't have utf-8 language files. You need them, just if you are using utf-8.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: xodeus on August 01, 2008, 01:23:59 PM
Quote from: [SiNaN] on August 01, 2008, 01:01:28 PM
xodeus:

Some news site support iframe, and just include that iframe. It depends on what that news site supports.

I found one. If anyone need to post a RSS feed in a HTML block on the SimplePortal, then you cna use http://www.rss-info.com/
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 01, 2008, 01:28:42 PM
Quote from: [SiNaN] on August 01, 2008, 01:18:06 PM
Fixed Post.template.php. No, seems like you don't have utf-8 language files. You need them, just if you are using utf-8.

Thank you , will update it.

I have different version of Arcade Game - E-Arcade 2.5.0 based on: SMF Arcade 2.0.9 © Niko Pahajoki 2004-2007

I will attach the code you have created for me. Tell me where and which exact file i have to paste it to avoid the existing arcade code.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 01:29:46 PM
Just click to the Add Block tab in SPortal Admin. Then select php block and add this codes as the content.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 01, 2008, 01:39:52 PM
Quote from: [SiNaN] on August 01, 2008, 01:29:46 PM
Just click to the Add Block tab in SPortal Admin. Then select php block and add this codes as the content.

Even last time also i did it for sp 1.2 .
But i would like to use this code in the correct arcade location (replace the unwanted arcade code and use this code). So that i could use this php block for Php tags or php counter .
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 01:42:20 PM
You can create unlimited number of php, html and bbc blocks. And change their positions from the SPortal Admin.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 01, 2008, 01:45:47 PM
Quote from: [SiNaN] on August 01, 2008, 01:42:20 PM
You can create unlimited number of php, html and bbc blocks. And change their positions from the SPortal Admin.

Yes , that idea never strikes me.
Will do it.

And Thanks for the post.template file. - I have replaced it.

Could you tell me how to set some board in front page .
Is that i have to create separate category for articles. - Will it be in board or its followed separately from portal page.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 01:49:18 PM
No. Just create a new category from

Admin CP >> SPortal Admin >> Create Category

Then add your topics into that category by

Admin CP >> SPortal Admin >> Add Articles

Also you can add your topic directly into the articles while you are posting. Just select the category under the subject box and it will do the rest.

Additionally, there must be a new button in message display where reply, notify buttons appear named "Make Article". Click on that, and select the article. It will be added.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 01, 2008, 02:04:39 PM
So what i understand is, Every time i have to enroll the useful topic in front page.

I mean i have to select and unselect every time.

could we make automatically posted for one particular board like previously.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 02:05:40 PM
Use Board News block then. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 01, 2008, 02:11:20 PM
Quote from: [SiNaN] on August 01, 2008, 02:05:40 PM
Use Board News block then. ;)

Hi Thanks a lot for it. Good Mod. Nice Updated Version.

So Simple to Use.

Kindly have a look at http://forum.itacumens.com

Thanks for all your work and Support SiNaN.  :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nibogo on August 01, 2008, 02:46:37 PM
Quote from: [SiNaN] on August 01, 2008, 02:05:40 PM
Use Board News block then. ;)

I use that in a localhost , but i want of in each new post appear with a title in a titlebg style also with a link to that post , like the articles

Thanks
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 02:47:39 PM
NIBOGO:

Will make the changes for you. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nibogo on August 01, 2008, 03:41:08 PM
Quote from: [SiNaN] on August 01, 2008, 02:47:39 PM
NIBOGO:

Will make the changes for you. ;)

I am using all the default files of SP , what file do you need?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 03:46:54 PM
I'll give you the edit tomorrow.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: John Rambo on August 01, 2008, 03:51:38 PM
Turkish language pack?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Geri Lx on August 01, 2008, 03:52:19 PM
Excelent mod! Great work. Thanks guys.

Sugesstion:
...If it's possible, it would be nice to have an event's block, linked to the forum's calendar  ;).
My forum users would enjoy it for shure. :) And maybe other forum's users too...





Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 01, 2008, 03:53:06 PM
John Rambo:

Not ready yet.

Geri Lx:

We will consider this too. Thanks. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 01, 2008, 04:10:18 PM
Hi like to give one suggestion. could you make polls differes each time.

Get some five poll links (optional) . Make the Poll roll each time for each user.

Just a suggestion.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: papabill on August 01, 2008, 04:51:58 PM
I know there is probably a simple reason for this and a quick fix but I keep running into the "FTP Information Required" error. The problem is that I don't use an FTP. All the installation is done on my own personal server at my house.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nibogo on August 01, 2008, 04:56:22 PM
Quote from: [SiNaN] on August 01, 2008, 03:46:54 PM
I'll give you the edit tomorrow.

Thanks sinan ^^
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: reece_thompson on August 01, 2008, 06:16:14 PM
I wanted to use this mod with my current theme so I manually FTP'd my files into my default theme folder. Everything was working fine but every once in a while my colors get thrown off... It happens randomly when nothing is changed. I'm very confused. Has this happened to anyone else? check it out (you will be able to see if the theme is messing up because it will have blue when it should be black, gold and grey) Thanks!  :D  www.connectucf.com
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: dgandy on August 02, 2008, 07:08:00 AM
Hi SiNaN.  :)

This mod is fantastic. Thank you for your hard work.

I have the Thumbnail on Topic mod by vbgamer45 (http://custom.simplemachines.org/mods/index.php?mod=1151). When I set up a board news block, I would like the thumbnail image of the topic I selected to show. I think I need to incorporate this line somewhere.. $topic['first_post']['icon_url'],. I am an idiot when it comes to php and have no idea where to do this.

Can you help?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: MarioH on August 02, 2008, 10:17:23 AM
Hello, thank you for the portal, is really good!!!.

I have a problem in the area of administration, to activate or edit any block, I send 406 error

Example: /index.php?action=spadmin;sa=blockedit;id=23;sesc=e5ee3934c428ac3ccc807d285b1d189f (<-- error 406)

I understand that is by mod_security, but I can disable the host does not, is there any solution or correction that could help me with this?

Thank you for the help


PD: Sorry for my english u.u!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 02, 2008, 10:43:57 AM
asudhakar:

You can try ssi_recentPoll function.

papabill:

That's probably something related to your server. Some hosts disable some functions that are used on package installation. Try installing manually.

NIBOGO:

We decided to add that feature in the first update.

reece_thompson:

I can't see any problems but your site is extremely slow for me.

dgandy:

I don't know anything about that mod. I'll now download it and reply you.

MarioH:

So you say that you cannot turn the mod security off?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: MarioH on August 02, 2008, 10:50:46 AM
Quote from: [SiNaN] on August 02, 2008, 10:43:57 AM

MarioH:

So you say that you cannot turn the mod security off?

no me hes posible desactivarla, devido a que mi servidor no lo permite
   
I hes not possible turn it off, due to my host does not allow it  :'(
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on August 02, 2008, 11:45:04 AM
Quote from: MarioH on August 02, 2008, 10:50:46 AM
Quote from: [SiNaN] on August 02, 2008, 10:43:57 AM

MarioH:

So you say that you cannot turn the mod security off?

no me hes posible desactivarla, devido a que mi servidor no lo permite
   
I hes not possible turn it off, due to my host does not allow it  :'(

Si no puede a su vez que fuera, entonces usted no puede utilizar correctamente este mod.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 02, 2008, 12:00:18 PM
Maybe we would understand you two too?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on August 02, 2008, 12:01:25 PM
Quote from: [SiNaN] on August 02, 2008, 12:00:18 PM
Maybe we would understand you two too?

Sorry mate. ^^;

I basically said that he needs to disable mod_security if he wants the mod to function correctly.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: MarioH on August 02, 2008, 12:18:02 PM
Quote from: ccbtimewiz on August 02, 2008, 12:01:25 PM
Quote from: [SiNaN] on August 02, 2008, 12:00:18 PM
Maybe we would understand you two too?

Sorry mate. ^^;

I basically said that he needs to disable mod_security if he wants the mod to function correctly.

But i' install pretty URL and I corrected the problem.

less in line editing blocks, that pretty does not change the administration panel.

so I thought that would be something concerning the length and the url

=)

Pero instale Pretty url, y se me corrigieron la mayoria de los problemas, lamentablemente pretty no cambia las url del panel de administracion, asi que me falta solo la linea para editar bloques. por lo que pense que podria ser referente a la url que genera.


PD: Sorry for my english
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nibogo on August 02, 2008, 04:57:01 PM
Ok SiNaN i am expecting the new version :P

You have some method to have the articles of TP working with the SPortal?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: runebergen on August 02, 2008, 05:33:48 PM
How come SSI functions dont work for PHP blocks?
Thought it would...

Thanks for a fantastic mod by the way  :)


Fatal error: Call to undefined function ssi_randomMember() in xxxx/forum/Sources/SPortal.php(1571) : eval()'d code on line 3

EDIT:
Figured it out , you need to add require_once('SSI.php'); first in the PHP block

:D


But, would it not be somewhat better if the SP added SSI once? So one dont need to add a require SSI for each block?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: GawdSpeed on August 03, 2008, 04:58:44 AM
I installed the portal, except that some of the codes appeared at the top of the forum. How do I fix this. There were no problems with the installation and I can't even access the admin section for the portal.

The code that appears on top is this:
// 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 ';
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nathaniel on August 03, 2008, 05:11:08 AM
@GawdSpeed,
This is a common error with the language strings, you need to open up your '/themes/default/languages/modifications.english.php' file and then move the closing php tag ?> to the end of the file. If you post the file then I should be able to do it for you. ;)

About the other errors. I assume that you can't see the admin settings area? That will be fixed when you fix the above problem.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: krzy06gsxr600 on August 03, 2008, 05:36:23 AM
Alright, I have tried multiple times now. Still new to the whole forums and such. I am getting a the following error code.

Table 'cobalaf6_CCon.smf_sp_blocks' doesn't exist
File: /home/cobalaf6/public_html/smf/Sources/Subs-SPortal.php
Line: 36


The first time I tried it by manually editing the information myself I was able to get the SPortal in the admin panel. I was able to edit the size and determine if it was on or off. If I were to turn it on I would get this error. Since then I have tried it multiple times over and over again and have not had any luck. I replaced all the files with originals, etc.

I have been attempting to get this added for the last 3 hours. Just looking for some guidance. THanks in advance.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nathaniel on August 03, 2008, 06:33:39 AM
@krzy06gsxr600,
It would appear that it had problems with the database when you installed it. Try putting the 'database.php' file from the mod package (I have attached the one for Sportal 2.02 to this post) into your root smf directory and then running the file by loading it in your web browser. It should create those tables that don't exist. You should then delete that file.

You could also just run the queries from that file in phpmyadmin for SMF's database.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: krzy06gsxr600 on August 03, 2008, 12:12:50 PM
Excellent, I will try that now, I had assumed that that was the problem, but was unsure of where to place the database.php file. I will keep you posted. Thanks for the quick response.

EDIT:

That LHVWB, Thanks alot that was my problem. I just needed to add the database file to the root and run it. THanks for your help!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: caniol52 on August 03, 2008, 12:15:14 PM
When using the Package Parser it works fine with SP 2.0, but it doesn't seem to work with 2.0.1 and 2.0.2 versions - several errors are generated related to the "index.php" file by the parser when reading these two versions.  Is it just me?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 03, 2008, 03:12:01 PM
I didn't see that but maybe. We've fixed quite a lot of bugs and added a new surprise feature. I hope to we will have an update in 2 days which will clear all the bugs for now. Keep bugging.

By the way, can the users, whom I said "I'll give you the codes tomorrow.", remind me what I was going to do for them? Just pm me, as I was too busy these days and completely forgot about them.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: avf on August 03, 2008, 05:11:44 PM
Quote from: avf on July 31, 2008, 11:43:26 AM
Quote from: [SiNaN] on July 27, 2008, 02:48:38 PM
reece_thompson:

Do you want it to be in a definite width?

avf:

Thanks for using my mod. I'll code a block for you. ;)

Hi Sinan,
Awesome Support from you. Were you able to get around to members  can see their own posts on your portal by adding some PHP Code.


Hi Sinan,
My members are really appreciating your mod. Thanks .

Is it possible for you write the php code that i can use so that members  can see their own posts on your portal
Thanks again
avf


Hi Sinan,
Awesome Support from you. Were you able to get around to members  can see their own posts on your portal by adding some PHP Code.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 04, 2008, 12:07:53 AM
Quote from: [SiNaN] on August 02, 2008, 10:43:57 AM
asudhakar:

You can try ssi_recentPoll function.


Thank you and helping me in this regards, we have a board says polling station.

Say board number is 68 and links is Links website (http://forum.itacumens.com/index.php/board,68.0.html)

How could we use this ssi_recentpoll fn. or could we give some board no to the ssi function.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Tollboy on August 04, 2008, 11:25:32 AM
@LHVWB
thi is in reference to post http://www.simplemachines.org/community/index.php?topic=227599.msg1640869#msg1640869

I too am using this theme and am trying to get simple portal to work with it. I assume the changes you made to the index.template.php were so the forum button would be displayed while the home button would be for the simple portal. This is what I was hopping unfortunetly the code you posted did not work correctly. Another button was visible but it was overlapped by the other buttons. Also the simple portal admin link is not showing up in the admin area when the wow_DK theme is active. I would appreciate any help you can give as I am by no means a programmer. Thanks ahead of time.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: mymktp1 on August 05, 2008, 12:38:09 PM
I've been able to use the mod 2.02 without any problems until now... I tried making one of my topics an article and I'm now getting this error... I can't make any topics articles anymore

Duplicate entry '127' for key 1
File: /hsphere/local/home/kitping/timsradio.net/smf/Sources/Subs-SPortal.php
Line: 181
Title: Re: SimplePortal (2.0.1 Update Out)
Post by: mymktp1 on August 06, 2008, 12:49:25 AM
Quote from: kandalf on July 24, 2008, 09:34:33 AM
Quote from: [SiNaN] on July 23, 2008, 09:08:53 AM

kandalf:

You're right, I've missed that. Run this query from PhpMyAdmin and you will have no problems:

ALTER TABLE smf_sp_articles CHANGE ID_MESSAGE ID_MESSAGE INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL

Tomorrow will release an update.


I have also tried running the query above since it seemed that Kandalf had a similar problem.... it seems that I get stuck at running at article at number 127 .... and again I'm using version 2.02 ...
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 06, 2008, 08:21:54 AM
avf:

Use this code in a PHP block:

global $context, $settings, $scripturl, $txt, $db_prefix, $ID_MEMBER;
global $user_info, $modSettings, $func;

if($context['user']['is_guest'])
return;

if (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
$exclude_boards = array($modSettings['recycle_board']);
else
$exclude_boards = array();

$request = db_query("
SELECT
m.posterTime, m.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, m.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, LEFT(m.body, 384) AS body, m.smileysEnabled
FROM ({$db_prefix}messages AS m, {$db_prefix}boards AS b)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
WHERE m.ID_MSG >= " . ($modSettings['maxMsgID'] - 25 * min(10, 5)) . "
AND b.ID_BOARD = m.ID_BOARD" . (empty($exclude_boards) ? '' : "
AND b.ID_BOARD NOT IN (" . implode(', ', $exclude_boards) . ")") . "
AND $user_info[query_see_board]
AND m.ID_MEMBER = $ID_MEMBER
ORDER BY m.ID_MSG DESC
LIMIT 10", __FILE__, __LINE__);
$posts = array();
while ($row = mysql_fetch_assoc($request))
{
$row['body'] = strip_tags(strtr(parse_bbc($row['body'], $row['smileysEnabled'], $row['ID_MSG']), array('<br />' => '')));
if ($func['strlen']($row['body']) > 128)
$row['body'] = $func['substr']($row['body'], 0, 128) . '...';

censorText($row['subject']);
censorText($row['body']);

$posts[] = array(
'board' => array(
'id' => $row['ID_BOARD'],
'name' => $row['bName'],
'href' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['ID_BOARD'] . '.0">' . $row['bName'] . '</a>'
),
'topic' => $row['ID_TOPIC'],
'poster' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['posterName'],
'href' => empty($row['ID_MEMBER']) ? '' : $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => empty($row['ID_MEMBER']) ? $row['posterName'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['posterName'] . '</a>'
),
'subject' => $row['subject'],
'short_subject' => shorten_subject($row['subject'], 25),
'preview' => $row['body'],
'time' => timeformat($row['posterTime']),
'timestamp' => forum_time(true, $row['posterTime']),
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . ';topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#msg' . $row['ID_MSG'] . '">' . $row['subject'] . '</a>',
);
}
mysql_free_result($request);

if(empty($posts))
return;

echo '
<table border="0" class="ssi_table">';
foreach ($posts as $post)
echo '
<tr>
<td align="left" valign="top" nowrap="nowrap">
<a href="', $post['href'], '">', $post['subject'], '</a><br />
[', $post['board']['link'], ']<br />
', $post['time'], '
<hr />
</td>
</tr>';
echo '
</table>';


asudhakar:

../SSI.php

Find:

AND t.ID_POLL = p.ID_POLL
AND b.ID_BOARD = t.ID_BOARD


Replace:

AND t.ID_POLL = p.ID_POLL
AND b.ID_BOARD = t.ID_BOARD
AND b.ID_BOARD = 68


Tollboy:

index.template.php

Find:

// Show the [help] button.

Replace:

// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
<td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'off_back' , '">
<a href="', $scripturl, '?action=forum">' , $txt['wow_forum_button_forum'] , '</a>
</td>' , $current_action == 'forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

// Show the [help] button.


Find:

'login', 'help', 'pm'

Replace:

'login', 'help', 'pm', 'forum', 'spadmin'

Find:

$current_action = 'search';

Replace:

$current_action = 'search';
if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';
if ($context['current_action']=='spadmin')
$current_action = 'admin';


For the panel problem, add these codes before the ?> code in your

../Themes/wowdk_115v1/languages/Modifications.english.php

// 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 ';



mymktp1:

That problem should have been solved. Maybe there is a problem with the database query in the package.

Did you made a fresh install or updated from the earlier versions?

Also can you try this code from your PhpMyAdmin?

ALTER TABLE smf_sp_articles CHANGE ID_ARTICLE ID_ARTICLE INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: mymktp1 on August 06, 2008, 11:31:17 AM
THANK YOU THatCode worked for me thanx again!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 06, 2008, 11:40:21 AM
Okay, glad that it worked but we must solve this problem in the package too.

Did you update from earlier versions or its a fresh install?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: avf on August 06, 2008, 04:20:23 PM
Sinan all i can say is Thank you ! for a great mod and awesome support !
avf
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 06, 2008, 08:04:44 PM
Quote from: [SiNaN] on August 06, 2008, 08:21:54 AM

asudhakar:

../SSI.php

Find:

AND t.ID_POLL = p.ID_POLL
AND b.ID_BOARD = t.ID_BOARD


Replace:

AND t.ID_POLL = p.ID_POLL
AND b.ID_BOARD = t.ID_BOARD
AND b.ID_BOARD = 68



Hi I have tried adding the 3rd line with the correct board number of board polling station.
No change in the portal page.
Went through blocks list and removed the existing poll number and check, it changed the value a 0 and not shows any polls.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: mymktp1 on August 06, 2008, 11:49:30 PM
HI Sinan... I guess it worked for that one post...I'm now getting this Error everytime I try t make a topic an article

Duplicate entry '0' for key 1
File: /hsphere/local/home/kitping/timsradio.net/smf/Sources/Subs-SPortal.php
Line: 181

I originally Installd Version 2.0 and uninstalled it from the Packages Manager (But didn't delete the install package for that version)  and then Installed Version 2.02...

Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 07, 2008, 06:57:31 AM
Thanks SiNaN =)

I attach here my index.php file, the "sources" folder, and my "Apollo BB" (theme)  folder .
Should i upload too my default theme files?

thks ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: mymktp1 on August 07, 2008, 10:05:34 AM
(http://uploadimage.org/images/9c24pj44xe0omr045ap.jpg)

hey Sinan I fixed my problem for some reason it gave me that error because the Auto-Incremnet Dissapeared all is working well now... this is how my database looks like...
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: jmil on August 08, 2008, 03:00:44 PM
I installed Simple POrtal on my site (1.1.5, Black 45 Theme). Using the Instructions in this thread, I do not see all the changes to make it work properly. The install went fine (no errors) - but when I enable it - my current Board goes blank, turning it off and all returns fine.

Any assitance and/or instructions would be appreciated. I have attached my display.template.php and index.template.php from my theme.

The Chief
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: dgandy on August 08, 2008, 05:41:01 PM
Quote from: dgandy on August 02, 2008, 07:08:00 AM
Hi SiNaN.  :)

This mod is fantastic. Thank you for your hard work.

I have the Thumbnail on Topic mod by vbgamer45 (http://custom.simplemachines.org/mods/index.php?mod=1151). When I set up a board news block, I would like the thumbnail image of the topic I selected to show. I think I need to incorporate this line somewhere.. $topic['first_post']['icon_url'],. I am an idiot when it comes to php and have no idea where to do this.

Can you help?

Hi SiNaN
I've been trying to figure out how to get images included in posts to show on the home page. The articles block works good but, doesn't show pictures. I realized it doesn't have to be the images from the mod I mentioned before.

I set up some html blocks to show what I am trying to do with an article block. If you have time to look at it... http://simsfashionbarn.net/SMF/index.php (http://simsfashionbarn.net/SMF/index.php) (it's the block labeled Recent Additions). It takes a lot of time setting up the html blocks.

I know you are busy, bless your heart. If you do have any idea that isn't too complicated for me to do (a php idiot) please let me know. All I want to be able to do is to include a thumbnail of the image in the article I select when I build an article block.

Thanks

Title: Re: SimplePortal (2.0.2 Update Out)
Post by: kriskd on August 09, 2008, 08:04:22 AM
With 50 pages of posts, it's likely this has been asked, but the search topic feature only seems to return the original post.  ???

Anyway, is there anyway I can get some of the block to appear on my board index, say to the left of the list of boards?  I don't need the full portal, but a who's online block on the board index might be useful to me.  :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 09, 2008, 09:11:57 AM
Quote from: kriskd on August 09, 2008, 08:04:22 AM
With 50 pages of posts, it's likely this has been asked, but the search topic feature only seems to return the original post.  ???

Anyway, is there anyway I can get some of the block to appear on my board index, say to the left of the list of boards?  I don't need the full portal, but a who's online block on the board index might be useful to me.  :)

This is just a Simple portal. A portal page .
As if now it could not be on the board index.

But SiNaN is working on the feature also like one in Tiny Portal where you could have one particular block through the forum or board index.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Stef001 on August 09, 2008, 01:46:08 PM
Is it working on SMF 2.0 Beta 3.1 Public

Thanks Stef.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: jmil on August 09, 2008, 06:25:28 PM
 
Quote from: jmil on August 08, 2008, 03:00:44 PM
I installed Simple POrtal on my site (1.1.5, Black 45 Theme). Using the Instructions in this thread, I do not see all the changes to make it work properly. The install went fine (no errors) - but when I enable it - my current Board goes blank, turning it off and all returns fine.

Update Got most of it working now but When I turn on the profile block all the icons for post, karma, etc show the dreaded red (x)

Any assitance and/or instructions would be appreciated. I have attached my display.template.php and index.template.php from my theme.

The Chief
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: (V)eGa on August 09, 2008, 07:54:00 PM
First and foremost [SiNaN], this mod is awesome. ;)

There is only one thing that puzzles me.  When I first installed the mod and made my first post on the board, it worked perfectly.  After adding all the other post to my forum, when I go to make a article now, it's never the article that is should be.  Now matter which article I select, it always links back to the same post.  So I tried to delete that post and now when I make an article, it links to the post still but since it's deleted, it just makes a blank article with funky dates.  You can view my site at:

http://www.ppcthemes.net

I run a Windows Mobile theme website and I only wanted to add news and a message about the comedian Bernie Mac dying :(

Thanks in advance
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Manu.G on August 10, 2008, 03:41:39 AM
Quote from: jmil on August 08, 2008, 03:00:44 PM
I installed Simple POrtal on my site (1.1.5, Black 45 Theme). Using the Instructions in this thread, I do not see all the changes to make it work properly. The install went fine (no errors) - but when I enable it - my current Board goes blank, turning it off and all returns fine.

Any assitance and/or instructions would be appreciated. I have attached my display.template.php and index.template.php from my theme.

The Chief

Hi,

I hope it was ok that I took a look at your files.
I have add the changes to your index.template.php and I think after you have loaded up the index.template.php everything in your forum will work fine. Changes in the Display.template.php weren't for need, cause the code which has to been add was there.

Don't forget to make a backup of your index.template.php before you load up the modified one. ;)

I saw the icons in the portal aren't to see, you have to load up dot.gif and arrow.gif. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: jmil on August 10, 2008, 07:59:13 AM
Great Feature this Portal - I have everything mostly working except the images (Icons) for things like posts, karma Online etx   I get the dreaded RED X for those images. Site is at www.forums.midatlanticxriders.com  (http://www.forums.midatlanticxriders.com)

Not sure what to attach to take a look at so I put my Sportal.php- Any help would be appreciated.

Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Manu.G on August 10, 2008, 08:08:38 AM
You have only to load up the images dot.gif and arrow.gif to your current theme image folder
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: jmil on August 10, 2008, 08:16:36 AM
Sounds simple but where are those gifs?  ???
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: jmil on August 10, 2008, 08:18:30 AM
Never mind - Found them!!!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 10, 2008, 08:19:48 AM
Quote from: jmil on August 10, 2008, 08:16:36 AM
Sounds simple but where are those gifs?  ???

Hi JMIl , if you have installed this mod. The Gif files named dot.gif and arrow.gif will be there in you forum/default/images/ folder.

Just copy those files and update in your current theme folder.

Or simply down the simple portal pacakge and unzip to get those two files. - Click to download (http://custom.simplemachines.org/mods/index.php?mod=1104)

Updated :
Nice JMIl you got it.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Manu.G on August 10, 2008, 08:22:48 AM
Quote from: jmil on August 10, 2008, 08:18:30 AM
Never mind - Found them!!!

I saw you're using a dark style for your forum and I bet the images will have little light gray border around. Feel free to use our modify images.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: jmil on August 10, 2008, 08:28:45 AM
Much Nicer TY

:D
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: konqi on August 11, 2008, 05:30:48 AM
Hi,


I keep getting a 406 Error: Not acceptable everytime I try and edit one of the blocks.

"An appropriate representation of the requested resource /forums/index.php could not be found on this server."
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 11, 2008, 05:43:45 AM
asudhakar:

Are you sure that you are using the ssi_recentpoll function and  not showpoll block?

tuggaming:

What I was going to do with those files? Remove or install?

mymktp1:

Understand. Please upgrade the mods, do not uninstall and install again. Packages include upgrades. So do you still have problems?

jmil:

Glad you solved your problems. We will starting the Documentation issues with the SMF 2.0 Beta 4 update.

dgandy:

Do you modification in articles or board news block? You want it to work like vbgamer's mod, right?

kriskd:

This is my second post in the topic:

Quote from: [SiNaN] on March 11, 2008, 02:49:05 AM
Quote from: Eliana Tamerin on March 10, 2008, 11:22:35 PM
Interesting portal. Definitely a good start to one. I would suggest, though, the option to make a frontpage that's just an article or text, instead of including forum posts.

Thanks. This is just start. ;)

So we've started now, just some patience.

Normally:

No, not yet. We are waiting for the Beta 4 to be public.

(V)eGa:

Run this queries from PhpMyAdmin:

ALTER TABLE smf_sp_articles CHANGE ID_ARTICLE ID_ARTICLE INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL

ALTER TABLE smf_sp_articles CHANGE ID_MESSAGE ID_MESSAGE INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL

konqi:

Try turning of the mod_security. There was some info in the last pages of this topic.

FOR ALL:

Sorry, I was slacking off these days. Good to see people trying to provide support. We will need our own Support Team soon.

Don't worry, SP Team is working. Now I'm packing up the latest update; which will fix most of the bugs. Hope you can download it today.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: lngviewbplover on August 11, 2008, 07:14:57 AM
I am using SMF 1.1.5
Mod theme black and blue
I get the words DOT in the blocks instead of the dot. It works fine using the defualt theme. How can I fix this? Ive attached a  screen shot.
Thanks!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 11, 2008, 07:18:58 AM
Quote from: asudhakar on August 10, 2008, 08:19:48 AM
Quote from: jmil on August 10, 2008, 08:16:36 AM
Sounds simple but where are those gifs?  ???

Hi JMIl , if you have installed this mod. The Gif files named dot.gif and arrow.gif will be there in you forum/default/images/ folder.

Just copy those files and update in your current theme folder.

Or simply down the simple portal pacakge and unzip to get those two files. - Click to download (http://custom.simplemachines.org/mods/index.php?mod=1104)

Updated :
Nice JMIl you got it.

Does this help you? :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 11, 2008, 08:20:14 AM
Quote from: [SiNaN] on August 11, 2008, 05:43:45 AM
asudhakar:

Are you sure that you are using the ssi_recentpoll function and  not showpoll block?


Am not Sure, as you have instructed. I went to SSI.PHP and added the link you have said.

Then went to Sportal Admin page and removed the board no, save it and its automatically changed to o and showed no such poll in portal page.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 11, 2008, 08:21:25 AM
Use this code and create a new php block:


global $boarddir;

require_once($boarddir . '/SSI.php');

ssi_recentPoll();
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 11, 2008, 08:28:22 AM
Quote from: [SiNaN] on August 11, 2008, 08:21:25 AM
Use this code and create a new php block:


global $boarddir;

require_once($boarddir . '/SSI.php');

ssi_recentPoll();


Hi,

Thank i have got it running. But hope one has to answer than only he could see the next poll.
Great codes. Thanks for it.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 11, 2008, 09:59:50 AM
Quote from: [SiNaN] on August 11, 2008, 05:43:45 AM


tuggaming:

What I was going to do with those files? Remove or install?



Install :D
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: jmil on August 11, 2008, 10:45:55 AM
This Portal is really taking off and looking good, thanks in part to the support here.

I have a minor question - Please look at the screen shot I have here - the Postings only fill to the left leaving an open space on the right. Can I stretch these out or center them a bit more to clean it up?

Also, can I center the titles of the individual Blocks if so desired?

(http://i300.photobucket.com/albums/nn3/The_Chief_2008/Misc/Forum-1.jpg)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: caniol52 on August 11, 2008, 11:04:17 AM
Quote from: jmil on August 11, 2008, 10:45:55 AM
This Portal is really taking off and looking good, thanks in part to the support here.

I have a minor question - Please look at the screen shot I have here - the Postings only fill to the left leaving an open space on the right. Can I stretch these out or center them a bit more to clean it up?

Also, can I center the titles of the individual Blocks if so desired?

(http://i300.photobucket.com/albums/nn3/The_Chief_2008/Misc/Forum-1.jpg)

This appears to only be an issue with Internet Explorer.  Firefox displays it correctly.  I brought this up in a post last week.  I don't know if there's anything you can do aboout it.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 11, 2008, 11:06:42 AM
tuggaming:

Okay, I'll do it.

jmil and caniol52

Fixed in 2.0.3. Now I'm testing the package. Then will upload it.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: dgandy on August 11, 2008, 11:45:41 AM
Quote from: [SiNaN] on August 11, 2008, 05:43:45 AM
dgandy:
Do you modification in articles or board news block? You want it to work like vbgamer's mod, right?

The easiest way would be through the articles block. Every thing is perfect with it except that if the attachment is an image, I would like it to show....like the image below.

Thank you!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 11, 2008, 12:08:20 PM
Quote from: [SiNaN] on August 11, 2008, 11:06:42 AM
tuggaming:

Okay, I'll do it.



Thank's ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: jmil on August 11, 2008, 12:31:40 PM
Quote from: [SiNaN] on August 11, 2008, 11:06:42 AM
tuggaming:

Okay, I'll do it.

jmil and caniol52

Fixed in 2.0.3. Now I'm testing the package. Then will upload it.


I can't believe how well you support this MOD - THUMBS UP to you and Thanks!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 12, 2008, 02:11:20 PM
Finally SiNaN !, i have SPortal working on my forum ! XD

But i have just one problem....  I want to create a "button" in the navigation bar, named "forum".
For example, my users open my homepage, and SPortal appear , but they don't have any button to take them  for the forum ... How can i create one?

Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 12, 2008, 02:19:15 PM
dgandy:

I'll look at that.

tuguex:

You should add it from index.template.php. See this topics in Documentation:

How do you add custom tabs to the Core (default) theme menu? (http://docs.simplemachines.org/index.php?topic=564)

If you cannot figure it out, attach and I'll do it for you.

By the way, the new upgrade package is being tested. We hope to release it soon.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 12, 2008, 03:46:43 PM
Quote from: [SiNaN] on August 12, 2008, 02:19:15 PM
dgandy:

I'll look at that.

tuguex:

You should add it from index.template.php. See this topics in Documentation:

How do you add custom tabs to the Core (default) theme menu? (http://docs.simplemachines.org/index.php?topic=564)

If you cannot figure it out, attach and I'll do it for you.

By the way, the new upgrade package is being tested. We hope to release it soon.

I still don't know create custom tabs  ::)  , i follow the tutorial, but i can't search some essencial "keywords" .
Can you do it for me? ;)

Here is my index.template.php file from default theme  ;)
<?php
// Version: 1.1; Display

function template_main()
{
global $context$settings$options$txt$scripturl$modSettings;
//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


// Show the anchor for the top and for the first message. If the first message is new, say so.
echo '
<a name="top"></a>
<a name="msg'
$context['first_message'], '"></a>'$context['first_new_message'] ? '<a name="new"></a>' '';

// Show the linktree
echo '
<div>'
theme_linktree(), '</div>';

// Is this topic also a poll?
if ($context['is_poll'])
{
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 2ex;">
<tr>
<td class="titlebg" colspan="2" valign="middle" style="padding-left: 6px;">
<img src="'
$settings['images_url'], '/topic/'$context['poll']['is_locked'] ? 'normal_poll_locked' 'normal_poll''.gif" alt="" align="bottom" /> '$txt['smf43'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg"><b>'
$txt['smf21'], ':</b></td>
<td class="windowbg">
'
$context['poll']['question'];
if (!empty($context['poll']['expire_time']))
echo '
&nbsp;('
, ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': '$context['poll']['expire_time'], ')';

// Are they not allowed to vote but allowed to view the options?
if ($context['poll']['show_results'] || !$context['allow_vote'])
{
echo '
<table>
<tr>
<td style="padding-top: 2ex;">
<table border="0" cellpadding="0" cellspacing="0">'
;

// Show each option with its corresponding percentage bar.
foreach ($context['poll']['options'] as $option)
echo '
<tr>
<td style="padding-right: 2ex;'
$option['voted_this'] ? 'font-weight: bold;' '''">'$option['option'], '</td>'$context['allow_poll_view'] ? '
<td nowrap="nowrap">' 
$option['bar'] . ' ' $option['votes'] . ' (' $option['percent'] . '%)</td>' '''
</tr>'
;

echo '
</table>
</td>
<td valign="bottom" style="padding-left: 15px;">'
;

// If they are allowed to revote - show them a link!
if ($context['allow_change_vote'])
echo '
<a href="'
$scripturl'?action=vote;topic='$context['current_topic'], '.'$context['start'], ';poll='$context['poll']['id'], ';sesc='$context['session_id'], '">'$txt['poll_change_vote'], '</a><br />';

// If we're viewing the results... maybe we want to go back and vote?
if ($context['poll']['show_results'] && $context['allow_vote'])
echo '
<a href="'
$scripturl'?topic='$context['current_topic'], '.'$context['start'], '">'$txt['poll_return_vote'], '</a><br />';

// If they're allowed to lock the poll, show a link!
if ($context['poll']['lock'])
echo '
<a href="'
$scripturl'?action=lockVoting;topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';

// If they're allowed to edit the poll... guess what... show a link!
if ($context['poll']['edit'])
echo '
<a href="'
$scripturl'?action=editpoll;topic='$context['current_topic'], '.'$context['start'], '">'$txt['smf39'], '</a>';

echo '
</td>
</tr>'
$context['allow_poll_view'] ? '
<tr>
<td colspan="2"><b>' 
$txt['smf24'] . ': ' $context['poll']['total_votes'] . '</b></td>
</tr>' 
'''
</table><br />'
;
}
// They are allowed to vote! Go to it!
else
{
echo '
<form action="'
$scripturl'?action=vote;topic='$context['current_topic'], '.'$context['start'], ';poll='$context['poll']['id'], '" method="post" accept-charset="'$context['character_set'], '" style="margin: 0px;">
<table>
<tr>
<td colspan="2">'
;

// Show a warning if they are allowed more than one option.
if ($context['poll']['allowed_warning'])
echo '
'
$context['poll']['allowed_warning'], '
</td>
</tr><tr>
<td>'
;

// Show each option with its button - a radio likely.
foreach ($context['poll']['options'] as $option)
echo '
'
$option['vote_button'], ' '$option['option'], '<br />';

echo '
</td>
<td valign="bottom" style="padding-left: 15px;">'
;

// Allowed to view the results? (without voting!)
if ($context['allow_poll_view'])
echo '
<a href="'
$scripturl'?topic='$context['current_topic'], '.'$context['start'], ';viewResults">'$txt['smf29'], '</a><br />';

// Show a link for locking the poll as well...
if ($context['poll']['lock'])
echo '
<a href="'
$scripturl'?action=lockVoting;topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';

// Want to edit it? Click right here......
if ($context['poll']['edit'])
echo '
<a href="'
$scripturl'?action=editpoll;topic='$context['current_topic'], '.'$context['start'], '">'$txt['smf39'], '</a>';

echo '
</td>
</tr><tr>
<td colspan="2"><input type="submit" value="'
$txt['smf23'], '" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="'
$context['session_id'], '" />
</form>'
;
}

echo '
</td>
</tr>
</table>'
;
}

// Does this topic have some events linked to it?
if (!empty($context['linked_calendar_events']))
{
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 3ex;">
<tr>
<td class="titlebg" valign="middle" align="left" style="padding-left: 6px;">
'
$txt['calendar_linked_events'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg">
<ul>'
;
foreach ($context['linked_calendar_events'] as $event)
echo '
<li>
'
, ($event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: red;">*</a> ' ''), '<b>'$event['title'], '</b>: '$event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' $event['end_date'] : ''), '
</li>'
;
echo '
</ul>
</td>
</tr>
</table>'
;
}

// Build the normal button array.
$normal_buttons = array(
'reply' => array('test' => 'can_reply''text' => 146'image' => 'reply.gif''lang' => true'url' => $scripturl '?action=post;topic=' $context['current_topic'] . '.' $context['start'] . ';num_replies=' $context['num_replies']),
'notify' => array('test' => 'can_mark_notify''text' => 125'image' => 'notify.gif''lang' => true'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');"''url' => $scripturl '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' 'on') . ';topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id']),
'custom' => array(),
'send' => array('test' => 'can_send_topic''text' => 707'image' => 'sendtopic.gif''lang' => true'url' => $scripturl '?action=sendtopic;topic=' $context['current_topic'] . '.0'),
'print' => array('text' => 465'image' => 'print.gif''lang' => true'custom' => 'target="_blank"''url' => $scripturl '?action=printpage;topic=' $context['current_topic'] . '.0'),
);

// Special case for the custom one.
if ($context['user']['is_logged'] && $settings['show_mark_read'])
$normal_buttons['custom'] = array('text' => 'mark_unread''image' => 'markunread.gif''lang' => true'url' => $scripturl '?action=markasread;sa=topic;t=' $context['mark_unread_time'] . ';topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id']);
elseif ($context['can_add_poll'])
$normal_buttons['custom'] = array('text' => 'add_poll''image' => 'add_poll.gif''lang' => true'url' => $scripturl '?action=editpoll;add;topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id']);
else
unset($normal_buttons['custom']);

// Make Article Button
if ($context['can_make_article'])
$normal_buttons['article'] = array('text' => 'sp-make_article''image' => 'addarticle.gif''lang' => true'url' => $scripturl '?sa=addarticle;message=' $context['topic_first_message'] . ';return=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id']);

// Show the page index... "Pages: [1]".
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext" valign="bottom" style="padding-bottom: 4px;">'
$txt[139], ': '$context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#lastPost"><b>' $txt['topbottom5'] . '</b></a>' '''</td>
<td align="right" style="padding-right: 1ex;">
<div class="nav" style="margin-bottom: 2px;"> '
$context['previous_next'], '</div>
<table cellpadding="0" cellspacing="0">
<tr>
'
template_button_strip($normal_buttons'bottom'), '
</tr>
</table>
</td>
</tr>
</table>'
;

// Show the topic information - icon, subject, etc.
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-bottom: 0;">
<tr class="catbg3">
<td valign="middle" width="2%" style="padding-left: 6px;">
<img src="'
$settings['images_url'], '/topic/'$context['class'], '.gif" align="bottom" alt="" />
</td>
<td width="13%"> '
$txt[29], '</td>
<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
'
$txt[118], ': '$context['subject'], ' &nbsp;('$txt[641], ' '$context['num_views'], ' '$txt[642], ')
</td>
</tr>'
;
if (!empty($settings['display_who_viewing']))
{
echo '
<tr>
<td colspan="3" class="smalltext">'
;

// Show just numbers...?
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' 'count($context['view_members']) == $txt['who_member'] : $txt[19];
// Or show the actual people viewing the topic?
else
echo empty($context['view_members_list']) ? '0 ' $txt[19] : implode(', '$context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' ' (+ ' $context['view_num_hidden'] . ' ' $txt['hidden'] . ')');

// Now show how many guests are here too.
echo $txt['who_and'], $context['view_num_guests'], ' '$context['view_num_guests'] == $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
</td>
</tr>'
;
}

echo '
</table>'
;

echo '
<form action="'
$scripturl'?action=quickmod2;topic='$context['current_topic'], '.'$context['start'], '" method="post" accept-charset="'$context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return in_edit_mode == 1 ? modify_save(\'' $context['session_id'] . '\') : confirm(\'' $txt['quickmod_confirm'] . '\');">';

// These are some cache image buttons we may want.
$reply_button create_button('quote.gif'145'smf240''align="middle"');
$modify_button create_button('modify.gif'6617'align="middle"');
$remove_button create_button('delete.gif'12131'align="middle"');
$split_button create_button('split.gif''smf251''smf251''align="middle"');

// Time to display all the posts
echo '
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor">'
;

//Ad Counter
$adcounter =0;
//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message $context['get_message']())
{
$adcounter++;
$adcounter++;
echo '
<tr><td style="padding: 1px 1px 0 1px;">'
;

// Show the message anchor and a "new" anchor if this message is new.
if ($message['id'] != $context['first_message'])
echo '
<a name="msg'
$message['id'], '"></a>'$message['first_new'] ? '<a name="new"></a>' '';

echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="'
$message['alternate'] == 'windowbg' 'windowbg2''">';

// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>'
$message['member']['link'], '</b>
<div class="smalltext">'
;

// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
'
$message['member']['title'], '<br />';

// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
'
$message['member']['group'], '<br />';

// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
'
$message['member']['post_group'], '<br />';
echo '
'
$message['member']['group_stars'], '<br />';

// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br />
'
$modSettings['karmaLabel'], ' '$message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')
echo '
<br />
'
$modSettings['karmaLabel'], ' +'$message['member']['karma']['good'], '/-'$message['member']['karma']['bad'], '<br />';

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<a href="'
$scripturl'?action=modifykarma;sa=applaud;uid='$message['member']['id'], ';topic='$context['current_topic'], '.' $context['start'], ';m='$message['id'], ';sesc='$context['session_id'], '">'$modSettings['karmaApplaudLabel'], '</a>
<a href="'
$scripturl'?action=modifykarma;sa=smite;uid='$message['member']['id'], ';topic='$context['current_topic'], '.'$context['start'], ';m='$message['id'], ';sesc='$context['session_id'], '">'$modSettings['karmaSmiteLabel'], '</a><br />';

// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
'
$context['can_send_pm'] ? '<a href="' $message['member']['online']['href'] . '" title="' $message['member']['online']['label'] . '">' ''$settings['use_image_buttons'] ? '<img src="' $message['member']['online']['image_href'] . '" alt="' $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' ''$settings['use_image_buttons'] ? '<span class="smalltext"> ' $message['member']['online']['text'] . '</span>' '''<br /><br />';

// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
'
$txt[231], ': '$message['member']['gender']['image'], '<br />';

// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';

            // BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
'
$txt[26], ': '$message['member']['posts'], '<br /> 
'
;

echo '
'
$modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
<a href="'
$scripturl'?action=shop;do=invother2;member='$message['member']['username'], '">View Inventory</a><br />
<a href="'
$scripturl'?action=shop;do=sendmoney;member='$message['member']['username'], '">Send Money to '$message['member']['name'], '</a><br />';
//END SMFShop code

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">'
$message['member']['avatar']['image'], '</div><br />';

// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
'
$message['member']['blurb'], '<br />
<br />'
;

// This shows the popular messaging icons.
echo '
'
$message['member']['icq']['link'], '
'
$message['member']['msn']['link'], '
'
$message['member']['aim']['link'], '
'
$message['member']['yim']['link'], '<br />';

// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="'
$message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/icons/profile_sm.gif" alt="' $txt[27] . '" title="' $txt[27] . '" border="0" />' $txt[27]), '</a>';

// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="'
$message['member']['website']['url'], '" title="' $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/www_sm.gif" alt="' $txt[515] . '" border="0" />' $txt[515]), '</a>';

// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:'
$message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/email_sm.gif" alt="' $txt[69] . '" title="' $txt[69] . '" border="0" />' $txt[69]), '</a>';

// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="'
$scripturl'?action=pm;sa=send;u='$message['member']['id'], '" title="'$message['member']['online']['label'], '">'$settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' 'off') . '.gif" alt="' $message['member']['online']['label'] . '" border="0" />' $message['member']['online']['label'], '</a>';
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:'
$message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/email_sm.gif" alt="' $txt[69] . '" title="' $txt[69] . '" border="0" />' $txt[69]), '</a>';

// Done with the information about the poster... on to the post itself.
echo '
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><a href="'
$message['href'], '"><img src="'$message['icon_url'] . '" alt="" border="0" /></a></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_'
$message['id'], '">
<a href="'
$message['href'], '">'$message['subject'], '</a>
</div>'
;

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
<div class="smalltext">&#38;#171; <b>'
, !empty($message['counter']) ? $txt[146] . ' #' $message['counter'] : ''' '$txt[30], ':</b> '$message['time'], ' &#38;#187;</div></td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" valign="bottom" height="20" style="font-size: smaller;">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<a href="'
$scripturl'?action=post;quote='$message['id'], ';topic='$context['current_topic'], '.'$context['start'], ';num_replies='$context['num_replies'], ';sesc='$context['session_id'], '" onclick="doQuote('$message['id'], ', \''$context['session_id'], '\'); return false;">'$reply_button'</a>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<a href="'
$scripturl'?action=post;quote='$message['id'], ';topic='$context['current_topic'], '.'$context['start'], ';num_replies='$context['num_replies'], ';sesc='$context['session_id'], '">'$reply_button'</a>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<a href="'
$scripturl'?action=post;msg='$message['id'], ';topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">'$modify_button'</a>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<a href="'
$scripturl'?action=deletemsg;topic='$context['current_topic'], '.'$context['start'], ';msg='$message['id'], ';sesc='$context['session_id'], '" onclick="return confirm(\''$txt[154], '?\');">'$remove_button'</a>';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
<a href="'
$scripturl'?action=splittopics;topic='$context['current_topic'], '.0;at='$message['id'], '">'$split_button'</a>';

// Show a checkbox for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == && $message['can_remove'])
echo '
<input type="checkbox" name="msgs[]" value="'
$message['id'], '" class="check" ', empty($settings['use_tabs']) ? 'onclick="document.getElementById(\'quickmodSubmit\').style.display = \'\';"' ''' />';

// Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post"'
$message['can_modify'] ? ' id="msg_' $message['id'] . '"' '''>'$message['body'], '</div>'$message['can_modify'] ? '
<img src="' 
$settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' $message['id'] . '\', \'' $context['session_id'] . '\')" />' '' '
</td>
</tr>'
;

// Now for the attachments, signature, ip logged, etc...
echo '
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">'
;

// Assuming there are attachments...
if (!empty($message['attachment']))
{
echo '
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%;">'
;
foreach ($message['attachment'] as $attachment)
{
if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'])
echo '
<a href="'
$attachment['href'], ';image" id="link_'$attachment['id'], '" onclick="'$attachment['thumbnail']['javascript'], '"><img src="'$attachment['thumbnail']['href'], '" alt="" id="thumb_'$attachment['id'], '" border="0" /></a><br />';
else
echo '
<img src="' 
$attachment['href'] . ';image" alt="" width="' $attachment['width'] . '" height="' $attachment['height'] . '" border="0" /><br />';
}
echo '
<a href="' 
$attachment['href'] . '"><img src="' $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" />&nbsp;' $attachment['name'] . '</a> ('$attachment['size'], ($attachment['is_image'] ? ', ' $attachment['real_width'] . 'x' $attachment['real_height'] . ' - ' $txt['attach_viewed'] : ' - ' $txt['attach_downloaded']) . ' ' $attachment['downloads'] . ' ' $txt['attach_times'] . '.)<br />';
}

echo '
</div>'
;
}

echo '
</td>
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_'
$message['id'], '">';

// Show "« Last Edit: Time by Person »" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
echo '
&#38;#171; <i>'
$txt[211], ': '$message['modified']['time'], ' '$txt[525], ' '$message['modified']['name'], '</i> &#38;#187;';

echo '
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" valign="bottom" class="smalltext">';

// Maybe they want to report this post to the moderator(s)?
if ($context['can_report_moderator'])
echo '
<a href="'
$scripturl'?action=reporttm;topic='$context['current_topic'], '.'$message['counter'], ';msg='$message['id'], '">'$txt['rtm1'], '</a> &nbsp;';
echo '
<img src="'
$settings['images_url'], '/ip.gif" alt="" border="0" />';

// Show the IP to this user for this post - because you can moderate?
if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
echo '
<a href="'
$scripturl'?action=trackip;searchip='$message['member']['ip'], '">'$message['member']['ip'], '</a> <a href="'$scripturl'?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
// Or, should we show it because this is you?
elseif ($message['can_see_ip'])
echo '
<a href="'
$scripturl'?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">'$message['member']['ip'], '</a>';
// Okay, are you at least logged in?  Then we can show something about why IPs are logged...
elseif (!$context['user']['is_guest'])
echo '
<a href="'
$scripturl'?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">'$txt[511], '</a>';
// Otherwise, you see NOTHING!
else
echo '
'
$txt[511];

echo '
</td>
</tr></table>'
;

// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature">'
$message['member']['signature'], '</div>';

echo '
</td>
</tr>
</table>
</td></tr>
</table>
</td></tr>'
;
if (
function_exists("show_posts"))
{
if ($adpost show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>'
$context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="'
$message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_'
$message['id'], '">
<a href="'
$message['href'], '">'$message['subject'], '</a>
</div>
<div class="smalltext">&#38;#171; <b>'
, !empty($message['counter']) ? $txt[146] . ' #' $message['counter'] : ''' '$txt[30], ':</b> '$message['time'], ' &#38;#187;</div></td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
'
$reply_button'';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
'
$reply_button'';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
'
$modify_button'';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
'
$remove_button'';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
'
$split_button'';
echo 
'
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">'
$adpost['type'] == $adpost['content'] : eval($adpost['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_'
$message['id'], '">
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" valign="bottom" class="smalltext">
<img src="'
$settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;'$txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>'
;
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">'
$adpost['type'] == $adpost['content'] : eval($adpost['content']) , '</td>
</tr>
</table>
</td></tr>'
;
}

}

}

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
if(($ads show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>'
$context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle">&nbsp;</td>
<td valign="middle">
&nbsp;</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
'
$reply_button'';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
'
$reply_button'';


echo 
'
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">'
$ads['type'] == $ads['content'] : eval($ads['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_'
$message['id'], '">
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" valign="bottom" class="smalltext">
<img src="'
$settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;'$txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>'
;
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">'
$ads['type'] == $ads['content'] : eval($ads['content']) , '</td>
</tr>
</table>
</td></tr>'
;

}

}
echo '
<tr><td style="padding: 0 0 1px 0;"></td></tr>
</table>
<a name="lastPost"></a>'
;

// As before, build the custom button right.
if ($context['can_add_poll'])
$normal_buttons['custom'] = array('text' => 'add_poll''image' => 'add_poll.gif''lang' => true'url' => $scripturl '?action=editpoll;add;topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id']);
elseif ($context['user']['is_logged'] && $settings['show_mark_read'])
$normal_buttons['custom'] = array('text' => 'mark_unread''image' => 'markunread.gif''lang' => true'url' => $scripturl '?action=markasread;sa=topic;t=' $context['mark_unread_time'] . ';topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id']);

echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext">'
$txt[139], ': '$context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><b>' $txt['topbottom4'] . '</b></a>' '''</td>
<td align="right" style="padding-right: 1ex;">
<table cellpadding="0" cellspacing="0">
<tr>
'
template_button_strip($normal_buttons'top'true), '
</tr>
</table>
</td>
</tr>
</table>'
;

if ($context['show_spellchecking'])
echo '
<script language="JavaScript" type="text/javascript" src="' 
$settings['default_theme_url'] . '/spellcheck.js"></script>';

echo 
'
<script language="JavaScript" type="text/javascript" src="' 
$settings['default_theme_url'] . '/xml_topic.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
quickReplyCollapsed = '
, !empty($options['display_quick_reply']) && $options['display_quick_reply'] == 'false' 'true'';

smf_topic = '
$context['current_topic'], ';
smf_start = '
$context['start'], ';
smf_show_modify = '
$settings['show_modify'] ? '1' '0'';

// On quick modify, this is what the body will look like.
var smf_template_body_edit = \'<div id="error_box" style="padding: 4px; color: red;"></div><textarea class="editor" name="message" rows="12" style="width: 94%; margin-bottom: 10px;">%body%</textarea><br /><input type="hidden" name="sc" value="'
$context['session_id'], '" /><input type="hidden" name="topic" value="'$context['current_topic'], '" /><input type="hidden" name="msg" value="%msg_id%" /><div style="text-align: center;"><input type="submit" name="post" value="'$txt[10], '" onclick="return modify_save(\\\'' $context['session_id'] . '\\\');" accesskey="s" />&nbsp;&nbsp;'$context['show_spellchecking'] ? '<input type="button" value="' $txt['spell_check'] . '" onclick="spellCheck(\\\'quickModForm\\\', \\\'message\\\');" />&nbsp;&nbsp;' '''<input type="submit" name="cancel" value="'$txt['modify_cancel'], '" onclick="return modify_cancel();" /></div>\';

// And this is the replacement for the subject.
var smf_template_subject_edit = \'<input type="text" name="subject" value="%subject%" size="60" style="width: 99%;"  maxlength="80" />\';

// Restore the message to this after editing.
var smf_template_body_normal = \'%body%\';
var smf_template_subject_normal = \'<a href="'
$scripturl'?topic='$context['current_topic'], '.msg%msg_id%#msg%msg_id%">%subject%</a>\';
var smf_template_top_subject = "'
$txt[118], ': %subject% &nbsp;('$txt[641], ' '$context['num_views'], ' '$txt[642], ')"

if (window.XMLHttpRequest)
showModifyButtons();
// ]]></script>
<table border="0" width="100%" cellpadding="0" cellspacing="0" style="margin-bottom: 1ex;">
<tr>'
;
if ($settings['linktree_inline'])
echo '
<td valign="top">'
theme_linktree(), '</td> ';
echo '
<td valign="top" align="'
, !$context['right_to_left'] ? 'right' 'left''" class="nav"> '$context['previous_next'], '</td>
</tr>
</table>'
;

$mod_buttons = array(
'move' => array('test' => 'can_move''text' => 132'image' => 'admin_move.gif''lang' => true'url' => $scripturl '?action=movetopic;topic=' $context['current_topic'] . '.0'),
'delete' => array('test' => 'can_delete''text' => 63'image' => 'admin_rem.gif''lang' => true'custom' => 'onclick="return confirm(\'' $txt[162] . '\');"''url' => $scripturl '?action=removetopic2;topic=' $context['current_topic'] . '.0;sesc=' $context['session_id']),
'lock' => array('test' => 'can_lock''text' => empty($context['is_locked']) ? 'smf279' 'smf280''image' => 'admin_lock.gif''lang' => true'url' => $scripturl '?action=lock;topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id']),
'sticky' => array('test' => 'can_sticky''text' => empty($context['is_sticky']) ? 'smf277' 'smf278''image' => 'admin_sticky.gif''lang' => true'url' => $scripturl '?action=sticky;topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id']),
'merge' => array('test' => 'can_merge''text' => 'smf252''image' => 'merge.gif''lang' => true'url' => $scripturl '?action=mergetopics;board=' $context['current_board'] . '.0;from=' $context['current_topic']),
'remove_poll' => array('test' => 'can_remove_poll''text' => 'poll_remove''image' => 'admin_remove_poll.gif''lang' => true'custom' => 'onclick="return confirm(\'' $txt['poll_remove_warn'] . '\');"''url' => $scripturl '?action=removepoll;topic=' $context['current_topic'] . '.' $context['start']),
'calendar' => array('test' => 'calendar_post''text' => 'calendar37''image' => 'linktocal.gif''lang' => true'url' => $scripturl '?action=post;calendar;msg=' $cont
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: bomdsquad on August 12, 2008, 07:45:08 PM
Hi [SiNaN] , ure portal rocks !

(www.nzbands.co.nz)
My site is geared towards events and I want to have a 'Recent Events' block from the calander events, any suggestions on how to do this?

Also, how can I make the html block textarea bigger?

Thanks!

Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Manu.G on August 13, 2008, 01:33:32 AM
Quote from: tuguex on August 12, 2008, 03:46:43 PM

I still don't know create custom tabs  ::)  , i follow the tutorial, but i can't search some essencial "keywords" .
Can you do it for me? ;)

Here is my index.template.php file from default theme  ;)
<?php
// Version: 1.1; Display

function template_main()
{
   global 
$context$settings$options$txt$scripturl$modSettings;
   
//Display ads on the thread page
   
if (function_exists("show_threadAds"))
   {
      
$ads show_threadAds();   
      if(!empty(
$ads))
         if(
$ads['type']==0)
            echo 
$ads['content'];
         else
            eval(
$ads['content']);
      unset(
$ads);
   }

   
//Display ads on the thread page
   
if (function_exists("show_threadAds"))
   {
      
$ads show_threadAds();   
      if(!empty(
$ads))
         if(
$ads['type']==0)
            echo 
$ads['content'];
         else
            eval(
$ads['content']);
      unset(
$ads);
   }


   
// Show the anchor for the top and for the first message. If the first message is new, say so.
   
echo '
<a name="top"></a>
<a name="msg'
$context['first_message'], '"></a>'$context['first_new_message'] ? '<a name="new"></a>' '';

      
// Show the linktree
   
echo '
<div>'
theme_linktree(), '</div>';

   
// Is this topic also a poll?
   
if ($context['is_poll'])
   {
      echo 
'
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 2ex;">
   <tr>
      <td class="titlebg" colspan="2" valign="middle" style="padding-left: 6px;">
         <img src="'
$settings['images_url'], '/topic/'$context['poll']['is_locked'] ? 'normal_poll_locked' 'normal_poll''.gif" alt="" align="bottom" /> '$txt['smf43'], '
      </td>
   </tr>
   <tr>
      <td width="5%" valign="top" class="windowbg"><b>'
$txt['smf21'], ':</b></td>
      <td class="windowbg">
         '
$context['poll']['question'];
      if (!empty(
$context['poll']['expire_time']))
         echo 
'
               &nbsp;('
, ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': '$context['poll']['expire_time'], ')';

      
// Are they not allowed to vote but allowed to view the options?
      
if ($context['poll']['show_results'] || !$context['allow_vote'])
      {
         echo 
'
         <table>
            <tr>
               <td style="padding-top: 2ex;">
                  <table border="0" cellpadding="0" cellspacing="0">'
;

            
// Show each option with its corresponding percentage bar.
         
foreach ($context['poll']['options'] as $option)
            echo 
'
                     <tr>
                        <td style="padding-right: 2ex;'
$option['voted_this'] ? 'font-weight: bold;' '''">'$option['option'], '</td>'$context['allow_poll_view'] ? '
                        <td nowrap="nowrap">' 
$option['bar'] . ' ' $option['votes'] . ' (' $option['percent'] . '%)</td>' '''
                     </tr>'
;

         echo 
'
                  </table>
               </td>
               <td valign="bottom" style="padding-left: 15px;">'
;

         
// If they are allowed to revote - show them a link!
         
if ($context['allow_change_vote'])
            echo 
'
               <a href="'
$scripturl'?action=vote;topic='$context['current_topic'], '.'$context['start'], ';poll='$context['poll']['id'], ';sesc='$context['session_id'], '">'$txt['poll_change_vote'], '</a><br />';

         
// If we're viewing the results... maybe we want to go back and vote?
         
if ($context['poll']['show_results'] && $context['allow_vote'])
            echo 
'
                  <a href="'
$scripturl'?topic='$context['current_topic'], '.'$context['start'], '">'$txt['poll_return_vote'], '</a><br />';

         
// If they're allowed to lock the poll, show a link!
         
if ($context['poll']['lock'])
            echo 
'
                  <a href="'
$scripturl'?action=lockVoting;topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';

         
// If they're allowed to edit the poll... guess what... show a link!
         
if ($context['poll']['edit'])
            echo 
'
                  <a href="'
$scripturl'?action=editpoll;topic='$context['current_topic'], '.'$context['start'], '">'$txt['smf39'], '</a>';

         echo 
'
               </td>
            </tr>'
$context['allow_poll_view'] ? '
            <tr>
               <td colspan="2"><b>' 
$txt['smf24'] . ': ' $context['poll']['total_votes'] . '</b></td>
            </tr>' 
'''
         </table><br />'
;
      }
      
// They are allowed to vote! Go to it!
      
else
      {
         echo 
'
         <form action="'
$scripturl'?action=vote;topic='$context['current_topic'], '.'$context['start'], ';poll='$context['poll']['id'], '" method="post" accept-charset="'$context['character_set'], '" style="margin: 0px;">
            <table>
               <tr>
                  <td colspan="2">'
;

         
// Show a warning if they are allowed more than one option.
         
if ($context['poll']['allowed_warning'])
            echo 
'
                     '
$context['poll']['allowed_warning'], '
                  </td>
               </tr><tr>
                  <td>'
;

         
// Show each option with its button - a radio likely.
         
foreach ($context['poll']['options'] as $option)
            echo 
'
                     '
$option['vote_button'], ' '$option['option'], '<br />';

         echo 
'
                  </td>
                  <td valign="bottom" style="padding-left: 15px;">'
;

         
// Allowed to view the results? (without voting!)
         
if ($context['allow_poll_view'])
            echo 
'
                     <a href="'
$scripturl'?topic='$context['current_topic'], '.'$context['start'], ';viewResults">'$txt['smf29'], '</a><br />';

         
// Show a link for locking the poll as well...
         
if ($context['poll']['lock'])
            echo 
'
                     <a href="'
$scripturl'?action=lockVoting;topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';

         
// Want to edit it? Click right here......
         
if ($context['poll']['edit'])
            echo 
'
                     <a href="'
$scripturl'?action=editpoll;topic='$context['current_topic'], '.'$context['start'], '">'$txt['smf39'], '</a>';

            echo 
'
                  </td>
               </tr><tr>
                  <td colspan="2"><input type="submit" value="'
$txt['smf23'], '" /></td>
               </tr>
            </table>
            <input type="hidden" name="sc" value="'
$context['session_id'], '" />
         </form>'
;
      }

      echo 
'
      </td>
   </tr>
</table>'
;
   }

   
// Does this topic have some events linked to it?
   
if (!empty($context['linked_calendar_events']))
   {
      echo 
'
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 3ex;">
      <tr>
            <td class="titlebg" valign="middle" align="left" style="padding-left: 6px;">
                  '
$txt['calendar_linked_events'], '
            </td>
      </tr>
      <tr>
            <td width="5%" valign="top" class="windowbg">
                  <ul>'
;
      foreach (
$context['linked_calendar_events'] as $event)
         echo 
'
                        <li>
                           '
, ($event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: red;">*</a> ' ''), '<b>'$event['title'], '</b>: '$event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' $event['end_date'] : ''), '
                        </li>'
;
      echo 
'
                  </ul>
            </td>
      </tr>
</table>'
;
   }

   
// Build the normal button array.
   
$normal_buttons = array(
      
'reply' => array('test' => 'can_reply''text' => 146'image' => 'reply.gif''lang' => true'url' => $scripturl '?action=post;topic=' $context['current_topic'] . '.' $context['start'] . ';num_replies=' $context['num_replies']),
      
'notify' => array('test' => 'can_mark_notify''text' => 125'image' => 'notify.gif''lang' => true'custom' => 'onclick="return confirm('' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '');"''url' => $scripturl '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' 'on') . ';topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id']),
      
'custom' => array(),
      
'send' => array('test' => 'can_send_topic''text' => 707'image' => 'sendtopic.gif''lang' => true'url' => $scripturl '?action=sendtopic;topic=' $context['current_topic'] . '.0'),
      
'print' => array('text' => 465'image' => 'print.gif''lang' => true'custom' => 'target="_blank"''url' => $scripturl '?action=printpage;topic=' $context['current_topic'] . '.0'),
   );

   
// Special case for the custom one.
   
if ($context['user']['is_logged'] && $settings['show_mark_read'])
      
$normal_buttons['custom'] = array('text' => 'mark_unread''image' => 'markunread.gif''lang' => true'url' => $scripturl '?action=markasread;sa=topic;t=' $context['mark_unread_time'] . ';topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id']);
   elseif (
$context['can_add_poll'])
      
$normal_buttons['custom'] = array('text' => 'add_poll''image' => 'add_poll.gif''lang' => true'url' => $scripturl '?action=editpoll;add;topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id']);
   else
      unset(
$normal_buttons['custom']);

   
// Make Article Button
   
if ($context['can_make_article'])
      
$normal_buttons['article'] = array('text' => 'sp-make_article''image' => 'addarticle.gif''lang' => true'url' => $scripturl '?sa=addarticle;message=' $context['topic_first_message'] . ';return=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id']);

   
// Show the page index... "Pages: [1]".
   
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
   <tr>
      <td class="middletext" valign="bottom" style="padding-bottom: 4px;">'
$txt[139], ': '$context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#lastPost"><b>' $txt['topbottom5'] . '</b></a>' '''</td>
      <td align="right" style="padding-right: 1ex;">
         <div class="nav" style="margin-bottom: 2px;"> '
$context['previous_next'], '</div>
         <table cellpadding="0" cellspacing="0">
            <tr>
               '
template_button_strip($normal_buttons'bottom'), '
            </tr>
         </table>
      </td>
   </tr>
</table>'
;

   
// Show the topic information - icon, subject, etc.
   
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-bottom: 0;">
      <tr class="catbg3">
            <td valign="middle" width="2%" style="padding-left: 6px;">
                  <img src="'
$settings['images_url'], '/topic/'$context['class'], '.gif" align="bottom" alt="" />
            </td>
            <td width="13%"> '
$txt[29], '</td>
            <td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
                  '
$txt[118], ': '$context['subject'], ' &nbsp;('$txt[641], ' '$context['num_views'], ' '$txt[642], ')
            </td>
      </tr>'
;
   if (!empty(
$settings['display_who_viewing']))
   {
      echo 
'
      <tr>
            <td colspan="3" class="smalltext">'
;

      
// Show just numbers...?
      
if ($settings['display_who_viewing'] == 1)
            echo 
count($context['view_members']), ' 'count($context['view_members']) == $txt['who_member'] : $txt[19];
      
// Or show the actual people viewing the topic?
      
else
         echo empty(
$context['view_members_list']) ? '0 ' $txt[19] : implode(', '$context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' ' (+ ' $context['view_num_hidden'] . ' ' $txt['hidden'] . ')');

      
// Now show how many guests are here too.
      
echo $txt['who_and'], $context['view_num_guests'], ' '$context['view_num_guests'] == $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
            </td>
      </tr>'
;
   }

   echo 
'
</table>'
;

   echo 
'
<form action="'
$scripturl'?action=quickmod2;topic='$context['current_topic'], '.'$context['start'], '" method="post" accept-charset="'$context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return in_edit_mode == 1 ? modify_save('' . $context['session_id'] . '') : confirm('' . $txt['quickmod_confirm'] . '');">';

   
// These are some cache image buttons we may want.
   
$reply_button create_button('quote.gif'145'smf240''align="middle"');
   
$modify_button create_button('modify.gif'6617'align="middle"');
   
$remove_button create_button('delete.gif'12131'align="middle"');
   
$split_button create_button('split.gif''smf251''smf251''align="middle"');

// Time to display all the posts
   
echo '
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor">'
;

   
//Ad Counter
   
$adcounter =0;
   
//Ad Counter
   
$adcounter =0;
   
// Get all the messages...
   
while ($message $context['get_message']())
   {
      
$adcounter++;
      
$adcounter++;
      echo 
'
   <tr><td style="padding: 1px 1px 0 1px;">'
;

      
// Show the message anchor and a "new" anchor if this message is new.
      
if ($message['id'] != $context['first_message'])
         echo 
'
      <a name="msg'
$message['id'], '"></a>'$message['first_new'] ? '<a name="new"></a>' '';

      echo 
'
      <table width="100%" cellpadding="3" cellspacing="0" border="0">
         <tr><td class="'
$message['alternate'] == 'windowbg' 'windowbg2''">';

      
// Show information about the poster of this message.
      
echo '
            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
               <tr>
                  <td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
                     <b>'
$message['member']['link'], '</b>
                     <div class="smalltext">'
;

      
// Show the member's custom title, if they have one.
      
if (isset($message['member']['title']) && $message['member']['title'] != '')
         echo 
'
                        '
$message['member']['title'], '<br />';

      
// Show the member's primary group (like 'Administrator') if they have one.
      
if (isset($message['member']['group']) && $message['member']['group'] != '')
         echo 
'
                        '
$message['member']['group'], '<br />';

      
// Don't show these things for guests.
      
if (!$message['member']['is_guest'])
      {
         
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
         
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
            echo 
'
                        '
$message['member']['post_group'], '<br />';
         echo 
'
                        '
$message['member']['group_stars'], '<br />';

         
// Is karma display enabled?  Total or +/-?
         
if ($modSettings['karmaMode'] == '1')
            echo 
'
                        <br />
                        '
$modSettings['karmaLabel'], ' '$message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
         elseif (
$modSettings['karmaMode'] == '2')
            echo 
'
                        <br />
                        '
$modSettings['karmaLabel'], ' +'$message['member']['karma']['good'], '/-'$message['member']['karma']['bad'], '<br />';

         
// Is this user allowed to modify this member's karma?
         
if ($message['member']['karma']['allow'])
            echo 
'
                        <a href="'
$scripturl'?action=modifykarma;sa=applaud;uid='$message['member']['id'], ';topic='$context['current_topic'], '.' $context['start'], ';m='$message['id'], ';sesc='$context['session_id'], '">'$modSettings['karmaApplaudLabel'], '</a>
                        <a href="'
$scripturl'?action=modifykarma;sa=smite;uid='$message['member']['id'], ';topic='$context['current_topic'], '.'$context['start'], ';m='$message['id'], ';sesc='$context['session_id'], '">'$modSettings['karmaSmiteLabel'], '</a><br />';

         
// Show online and offline buttons?
         
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
            echo 
'
                        '
$context['can_send_pm'] ? '<a href="' $message['member']['online']['href'] . '" title="' $message['member']['online']['label'] . '">' ''$settings['use_image_buttons'] ? '<img src="' $message['member']['online']['image_href'] . '" alt="' $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' ''$settings['use_image_buttons'] ? '<span class="smalltext"> ' $message['member']['online']['text'] . '</span>' '''<br /><br />';

         
// Show the member's gender icon?
         
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
            echo 
'
                        '
$txt[231], ': '$message['member']['gender']['image'], '<br />';

         
// Show how many posts they have made.
//         echo '
//                        ', $txt[26], ': ', $message['member']['posts'], '<br />
//                        <br />';

            // BEGIN SMFShop MOD New Version Code
         // Removed one <br /> from end of post count line.
         
echo '
                        '
$txt[26], ': '$message['member']['posts'], '<br /> 
                        '
;
                        
         echo 
'
                        '
$modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
                        <a href="'
$scripturl'?action=shop;do=invother2;member='$message['member']['username'], '">View Inventory</a><br />
                        <a href="'
$scripturl'?action=shop;do=sendmoney;member='$message['member']['username'], '">Send Money to '$message['member']['name'], '</a><br />';
         
//END SMFShop code

         // Show avatars, images, etc.?
         
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            echo 
'
                        <div style="overflow: auto; width: 100%;">'
$message['member']['avatar']['image'], '</div><br />';

         
// Show their personal text?
         
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo 
'
                        '
$message['member']['blurb'], '<br />
                        <br />'
;

         
// This shows the popular messaging icons.
         
echo '
                        '
$message['member']['icq']['link'], '
                        '
$message['member']['msn']['link'], '
                        '
$message['member']['aim']['link'], '
                        '
$message['member']['yim']['link'], '<br />';

         
// Show the profile, website, email address, and personal message buttons.
         
if ($settings['show_profile_buttons'])
         {
            
// Don't show the profile button if you're not allowed to view the profile.
            
if ($message['member']['can_view_profile'])
               echo 
'
                        <a href="'
$message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/icons/profile_sm.gif" alt="' $txt[27] . '" title="' $txt[27] . '" border="0" />' $txt[27]), '</a>';

            
// Don't show an icon if they haven't specified a website.
            
if ($message['member']['website']['url'] != '')
               echo 
'
                        <a href="'
$message['member']['website']['url'], '" title="' $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/www_sm.gif" alt="' $txt[515] . '" border="0" />' $txt[515]), '</a>';

            
// Don't show the email address if they want it hidden.
            
if (empty($message['member']['hide_email']))
               echo 
'
                        <a href="mailto:'
$message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/email_sm.gif" alt="' $txt[69] . '" title="' $txt[69] . '" border="0" />' $txt[69]), '</a>';

            
// Since we know this person isn't a guest, you *can* message them.
            
if ($context['can_send_pm'])
               echo 
'
                        <a href="'
$scripturl'?action=pm;sa=send;u='$message['member']['id'], '" title="'$message['member']['online']['label'], '">'$settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' 'off') . '.gif" alt="' $message['member']['online']['label'] . '" border="0" />' $message['member']['online']['label'], '</a>';
         }
      }
      
// Otherwise, show the guest's email.
      
elseif (empty($message['member']['hide_email']))
         echo 
'
                        <br />
                        <br />
                        <a href="mailto:'
$message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/email_sm.gif" alt="' $txt[69] . '" title="' $txt[69] . '" border="0" />' $txt[69]), '</a>';

      
// Done with the information about the poster... on to the post itself.
      
echo '
                     </div>
                  </td>
                  <td valign="top" width="85%" height="100%">
                     <table width="100%" border="0"><tr>
                        <td valign="middle"><a href="'
$message['href'], '"><img src="'$message['icon_url'] . '" alt="" border="0" /></a></td>
                        <td valign="middle">
                           <div style="font-weight: bold;" id="subject_'
$message['id'], '">
                              <a href="'
$message['href'], '">'$message['subject'], '</a>
                           </div>'
;

      
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
      
echo '
                           <div class="smalltext">« <b>'
, !empty($message['counter']) ? $txt[146] . ' #' $message['counter'] : ''' '$txt[30], ':</b> '$message['time'], ' »</div></td>
                        <td align="'
, !$context['right_to_left'] ? 'right' 'left''" valign="bottom" height="20" style="font-size: smaller;">';

      
// Can they reply? Have they turned on quick reply?
      
if ($context['can_reply'] && !empty($options['display_quick_reply']))
         echo 
'
               <a href="'
$scripturl'?action=post;quote='$message['id'], ';topic='$context['current_topic'], '.'$context['start'], ';num_replies='$context['num_replies'], ';sesc='$context['session_id'], '" onclick="doQuote('$message['id'], ', '', $context['session_id'], ''); return false;">'$reply_button'</a>';

      
// So... quick reply is off, but they *can* reply?
      
elseif ($context['can_reply'])
         echo 
'
               <a href="'
$scripturl'?action=post;quote='$message['id'], ';topic='$context['current_topic'], '.'$context['start'], ';num_replies='$context['num_replies'], ';sesc='$context['session_id'], '">'$reply_button'</a>';

      
// Can the user modify the contents of this post?
      
if ($message['can_modify'])
         echo 
'
               <a href="'
$scripturl'?action=post;msg='$message['id'], ';topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">'$modify_button'</a>';

      
// How about... even... remove it entirely?!
      
if ($message['can_remove'])
         echo 
'
               <a href="'
$scripturl'?action=deletemsg;topic='$context['current_topic'], '.'$context['start'], ';msg='$message['id'], ';sesc='$context['session_id'], '" onclick="return confirm('', $txt[154], '?');">'$remove_button'</a>';

      
// What about splitting it off the rest of the topic?
      
if ($context['can_split'])
         echo 
'
               <a href="'
$scripturl'?action=splittopics;topic='$context['current_topic'], '.0;at='$message['id'], '">'$split_button'</a>';

      
// Show a checkbox for quick moderation?
      
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == && $message['can_remove'])
         echo 
'
                           <input type="checkbox" name="msgs[]" value="'
$message['id'], '" class="check" ', empty($settings['use_tabs']) ? 'onclick="document.getElementById('quickmodSubmit').style.display = '';"' ''' />';

      
// Show the post itself, finally!
      
echo '
                        </td>
                     </tr></table>
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="post"'
$message['can_modify'] ? ' id="msg_' $message['id'] . '"' '''>'$message['body'], '</div>'$message['can_modify'] ? '
                     <img src="' 
$settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg('' . $message['id'] . '', '' . $context['session_id'] . '')" />' '' '
                  </td>
               </tr>'
;

      
// Now for the attachments, signature, ip logged, etc...
      
echo '
               <tr>
                  <td valign="bottom" class="smalltext" width="85%">
                     <table width="100%" border="0" style="table-layout: fixed;"><tr>
                        <td colspan="2" class="smalltext" width="100%">'
;

      
// Assuming there are attachments...
      
if (!empty($message['attachment']))
      {
         echo 
'
                           <hr width="100%" size="1" class="hrcolor" />
                           <div style="overflow: auto; width: 100%;">'
;
         foreach (
$message['attachment'] as $attachment)
         {
            if (
$attachment['is_image'])
            {
               if (
$attachment['thumbnail']['has_thumb'])
                  echo 
'
                           <a href="'
$attachment['href'], ';image" id="link_'$attachment['id'], '" onclick="'$attachment['thumbnail']['javascript'], '"><img src="'$attachment['thumbnail']['href'], '" alt="" id="thumb_'$attachment['id'], '" border="0" /></a><br />';
               else
                  echo 
'
                           <img src="' 
$attachment['href'] . ';image" alt="" width="' $attachment['width'] . '" height="' $attachment['height'] . '" border="0" /><br />';
            }
            echo 
'
                              <a href="' 
$attachment['href'] . '"><img src="' $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" />&nbsp;' $attachment['name'] . '</a> ('$attachment['size'], ($attachment['is_image'] ? ', ' $attachment['real_width'] . 'x' $attachment['real_height'] . ' - ' $txt['attach_viewed'] : ' - ' $txt['attach_downloaded']) . ' ' $attachment['downloads'] . ' ' $txt['attach_times'] . '.)<br />';
         }

         echo 
'
                           </div>'
;
      }

      echo 
'
                        </td>
                     </tr><tr>
                        <td valign="bottom" class="smalltext" id="modified_'
$message['id'], '">';

      
// Show "« Last Edit: Time by Person »" if this post was edited.
      
if ($settings['show_modify'] && !empty($message['modified']['name']))
         echo 
'
                           « <i>'
$txt[211], ': '$message['modified']['time'], ' '$txt[525], ' '$message['modified']['name'], '</i> »';

      echo 
'
                        </td>
                        <td align="'
, !$context['right_to_left'] ? 'right' 'left''" valign="bottom" class="smalltext">';

      
// Maybe they want to report this post to the moderator(s)?
      
if ($context['can_report_moderator'])
         echo 
'
                           <a href="'
$scripturl'?action=reporttm;topic='$context['current_topic'], '.'$message['counter'], ';msg='$message['id'], '">'$txt['rtm1'], '</a> &nbsp;';
      echo 
'
                           <img src="'
$settings['images_url'], '/ip.gif" alt="" border="0" />';

      
// Show the IP to this user for this post - because you can moderate?
      
if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
         echo 
'
                           <a href="'
$scripturl'?action=trackip;searchip='$message['member']['ip'], '">'$message['member']['ip'], '</a> <a href="'$scripturl'?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
      
// Or, should we show it because this is you?
      
elseif ($message['can_see_ip'])
         echo 
'
                           <a href="'
$scripturl'?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">'$message['member']['ip'], '</a>';
      
// Okay, are you at least logged in?  Then we can show something about why IPs are logged...
      
elseif (!$context['user']['is_guest'])
         echo 
'
                           <a href="'
$scripturl'?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">'$txt[511], '</a>';
      
// Otherwise, you see NOTHING!
      
else
         echo 
'
                           '
$txt[511];

      echo 
'
                        </td>
                     </tr></table>'
;

      
// Show the member's signature?
      
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
         echo 
'
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="signature">'
$message['member']['signature'], '</div>';

      echo 
'
                  </td>
               </tr>
            </table>
         </td></tr>
      </table>
   </td></tr>'
;
if (
function_exists("show_posts"))
{
   if (
$adpost show_posts($adcounter))
   {
      if(
$modSettings['ads_lookLikePosts'])
      {
         echo 
'

   <tr><td style="padding: 1px 1px 0 1px;">
      <table width="100%" cellpadding="3" cellspacing="0" border="0">
         <tr><td class="windowbg3">
            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
               <tr>
                  <td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
                     <b>'
$context['forum_name'], '</b>
                     <div class="smalltext">
                     </div>
                  </td>
                  <td valign="top" width="85%" height="100%">
                     <table width="100%" border="0"><tr>
                        <td valign="middle"><img src="'
$message['icon_url'] . '" alt="" border="0" /></td>
                        <td valign="middle">
                           <div style="font-weight: bold;" id="subject_'
$message['id'], '">
                              <a href="'
$message['href'], '">'$message['subject'], '</a>
                           </div>

That's not your index.template.php, it's the d
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 13, 2008, 06:35:41 AM
Yes :S

Here is the right

<?php
// Version: 1.1.4; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;

// Color changer
if(!$context['user']['is_guest'] && isset($_POST['options']['theme_color']))
{
include_once($GLOBALS['sourcedir'] . '/Profile.php');
makeThemeChanges($context['user']['id'], $settings['theme_id']);
$options['theme_color'] = $_POST['options']['theme_color'];
}
elseif ($context['user']['is_guest'])
{
if (isset($_POST['options']['theme_color']))
{
  $_SESSION['theme_color'] = $_POST['options']['theme_color'];
  $options['theme_color'] = $_SESSION['theme_color'];
}
elseif (isset($_SESSION['theme_color']))
  $options['theme_color'] = $_SESSION['theme_color'];
}
}



// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// Any color set by user?
if (isset($options['theme_color']))
$settings['theme_main_color'] = $options['theme_color'];

// If not set, or if not allowed to set
if(!isset($options['theme_color']) || (isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'no'))
{
// Defaults.
$options['theme_color'] = isset($settings['theme_main_color']) ? $settings['theme_main_color'] : 'blue';
$settings['theme_main_color'] = $options['theme_color'];
}

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style_' $settings['theme_main_color'] , '.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />
<!--[if IE]>
<style type="text/css">
/* IE hack to emulate the :hover & :focus pseudo-classes
Add the selectors below that required the extra attributes */
.hoverbox { behavior: url("'
$settings['theme_url'], '/pseudo-hover.htc"); }
</style>
<![endif]-->'
;

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';


// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';
function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';
echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';
function shrinkHeaderIC(mode) {'
;
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';
echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
current_header_ic = mode;
}
// ]]></script>
</head>
<body onload="PreloadFlag = true;">'
;
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo '
<table cellspacing="0" cellpadding="0" align="center" style="border:0 none;width:' 
, (isset($settings['page_div_width']) && !empty($settings['page_div_width'])) ? $settings['page_div_width'] : '100%' ,  '">
<tr>
<td class="border_left"></td>
<td class="content">
<div class="topbar">
<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
<tr>
<td id="header_logo" width="1">'
;
// Show the logo.  It'll be either the default image, or one you set in the Theme Settings.  The stock logo is logo.gif in the images directory for each color.
if (empty($settings['header_logo_url']))
echo '
<a href="'
$scripturl'" class="topimg"><img src="'$settings['images_url'] . '/'$settings['theme_main_color'], '/logo.gif" style="margin: 0px;border: 0 none;height: 89px" ',  (empty($settings['show_name_near_logo'])) ? 'alt="'.$context['forum_name'].'"' 'alt=""' ,' title="'$context['forum_name'], '" /></a>';
else echo '
<a href="'
$scripturl'" title="'$context['forum_name'], '" class="topimg"><img src="'$settings['header_logo_url'], '" style="border: 0 none;vertical-align:middle;margin: 0px;" ',  (empty($settings['show_name_near_logo'])) ? 'alt="'.$context['forum_name'].'"' 'alt=""' ,' /></a>';
echo '
</td>'
;

// Show the name near the logo, if it's wanted.
if (!empty($settings['show_name_near_logo']))
echo '
<td>
<span class="toptitle">'
$context['forum_name'], '</span>
</td>'
;

// If set, show the search box or login box in the header.
if ($context['user']['is_guest'])
echo '
<td id="header_right">
<script type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''><br />
<input class="login_bg" type="text" name="user" alt="'
,$txt[35],'" title="',$txt[35],'" /><br />
<input class="login_bg" type="password" name="passwrd" maxlength="32" alt="'
$txt[36], '" title="'$txt[36], '" /><br />
<input type="hidden" name="cookielength" value="-1" />
<input type="submit" class="login_bg_submit" name="login" value="'
$txt[34], '" />
<input type="hidden" name="hash_passwrd" value="" />
</form>
</td>'
;
echo '
</tr>
</table>
</div>'
;

// Here we got another bar!  This one serves up random news lines, the current time, and those neat little bar peanuts!
echo '
<div style="width: 100%; padding-top: 4px;" id="bg_header_bar">
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
<tr style="vertical-align:middle">'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '

<td class="smalltext" style="vertical-align:middle;padding-left:20px; padding-top:0px; padding-bottom:0px;">
<strong>'
$txt[102], '</strong>: '$context['random_news_line'], '
</td>'
;
echo '
<td class="smalltext" style="vertical-align:middle;text-align:right;padding-right:10px; padding-top:0px; padding-bottom:0px;font-weight:bold">
$context['current_time'], '
</td>
</tr>
</table>
</div>'


// Show that lovable template menu.
template_menu();

// Start the contect section.
echo '
<div class="content">'
;

// Below the menu ads go here, oh boy!
if (function_exists("show_indexAds")) {
$ads show_indexAds();
if(!empty($ads)) {
echo '
<div class="memberbardiv" align="center">'
;
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</div>';
}
unset($ads);
}

// PM box, from Apollo.
if ($context['user']['is_logged'] && $context['allow_pm'] && $context['user']['unread_messages']>=1)
echo '
<div id="pm_new" align="center"><a class="hoverbox" href="'
$scripturl'?action=pm">'$txt[660], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt[471] : $txt[153], '.  '$txt[661], ' '$txt[662], ' '$txt[663], '</a></div>';

// We start with the member bar.  Guests only have a thin bar with the guest greeting and color chooser.
// In the settings, you can also set whether guests/users see a login box/search box here, like in Dilber MC.
// Members have the greeting, color changer, avatar, PM links, new post links, and some warnings.
echo '
<div class="memberbardiv">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="20"></td>
<td class="memberbar">'
;

if($context['user']['is_logged'])
echo '
'
$txt['hello_member_ndt'], ' <strong>'$context['user']['name'] , '</strong>';
else
echo $txt['welcome_guest'];

echo '
</td>
<td class="middletext" align="right" valign="top" style="padding-right:10px; padding-left:10px;">
<a style="float:right" href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="vertical-align:top" /></a>
</td>
</tr>

<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="middle" width="1" style="padding-right:10px; padding-left:10px;">'
;

// Complicated stuff!  If you're logged in and have an avatar, show it.  If you're
// logged in and don't have one, show a "No Avatar" avatar based on your color and
// language.  Otherwise, show a "Guest" avatar based on your color and language.
if($context['user']['is_logged'])
echo '
'
,  !empty($context['user']['avatar']) ? $context['user']['avatar']['image'] : '<img src="'$settings['images_url']. '/'$context['user']['language']. '/'$settings['theme_main_color']. '/no_avatar.gif" width="80" height="80" alt="" />';
else echo '
<img src="'
$settings['images_url'], '/'$context['user']['language'], '/'$settings['theme_main_color'], '/guest_avatar.gif" width="80" height="80" alt="" />';
echo '
</td>
<td class="memberbar">'
;
// If you're logged in, show PM info and links to new posts.
if($context['user']['is_logged'])
echo '
<br />
<span class="middletext">'
$context['allow_pm'] ? '<strong>' $txt[152] . ' <a href="' $scripturl '?action=pm">' $context['user']['messages'] . ' ' . ($context['user']['messages'] != $txt[153] : $txt[471]) . '</a>' $txt['newmessages4'] . ' ' $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1']).'</strong>' '<br/>''.<br/><br/>
&raquo; <a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
&raquo; <a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />
</span>'
;
echo '
</td>
<td class="middletext" style="text-align:right;vertical-align:top;padding-right:10px; padding-left:10px;">
<br />'
;
// Are they logged in?
if ($context['user']['is_logged']) {
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in'])) {
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<strong>'
$txt[616], '</strong><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// If searching is allowed, and you can't show the boxes in the header, put it here.
if(!empty($settings['boxes_in_header']) && ($context['allow_search'])) {
echo '
<br />
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" alt="" /></a>
<input type="text" name="search" value="" />
<input type="submit" name="submit" value="'
$txt[182], '" style="vertical-align:top" />
<input type="hidden" name="advanced" value="0" />'
;
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';
echo '
</form>'
;
}
}
// If they're guests, and you can't put the boxes in the header, put them here.
elseif (!empty($settings['boxes_in_header'])) {
echo '
<script type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" /><br />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}
echo '
</td>
</tr>
<tr id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td colspan="3" valign="middle" style="padding: 0 10px">'
;

// color selection box
if(isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'box')
echo '
  <div style="float:right">
<form action="'
$scripturl'" method="post" class="smalltext">
<select name="options[theme_color]">
<option value="black"'  
,$settings['theme_main_color'] == 'black' ' selected="selected"''''>',$txt['apollobb_color_black'],'</option>
<option value="blue"'  
,$settings['theme_main_color'] == 'blue' ' selected="selected"''''>',$txt['apollobb_color_blue'],'</option>
<option value="green"' 
,$settings['theme_main_color'] == 'green' ' selected="selected"''''>',$txt['apollobb_color_green'],'</option>
<option value="purple"'
,$settings['theme_main_color'] == 'purple' ' selected="selected"''''>',$txt['apollobb_color_purple'],'</option>
<option value="red"'
,$settings['theme_main_color'] == 'red' ' selected="selected"''''>',$txt['apollobb_color_red'],'</option>
</select>
<input type="submit" name="submit" value="Change" style="width: 11ex;" />
</form>
</div>'
;
if(isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'bars')
echo '
  <div style="float:right;padding-top:5px">
<form action="'
$scripturl'" method="post" class="smalltext">
<input style="border:solid 2px #6C7F93;background:#6C7F93;color:#6C7F93;width:20px;height:20px;font-size:1px" type="submit" value="black" name="options[theme_color]"/>
<input style="border:solid 2px #6699CC;background:#6699CC;color:#6699CC;width:20px;height:20px;font-size:1px" type="submit" value="blue" name="options[theme_color]"/>
<input style="border:solid 2px #4DB45D;background:#4DB45D;color:#4DB45D;width:20px;height:20px;font-size:1px" type="submit" value="green" name="options[theme_color]"/>
<input style="border:solid 2px #A185D6;background:#A185D6;color:#A185D6;width:20px;height:20px;font-size:1px" type="submit" value="purple" name="options[theme_color]"/>
<input style="border:solid 2px #E15050;background:#E15050;color:#E15050;width:20px;height:20px;font-size:1px" type="submit" value="red" name="options[theme_color]"/>
</form>
</div>'
;
echo '
</td>
</tr>
</table>
</div>'
;

//Welcome Ads
if (function_exists("show_welcomeAds")) {
$ads show_welcomeAds();
if(!empty($ads)) {
echo '<div class="memberbardiv" align="center">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</div>';
}
unset($ads);
}

// Extra stuff here.
if(!empty($settings['custom_global_html']))
echo '
<div align="center" style="width: 90%; margin-left: auto; margin-right: auto; margin-top:10px; border: 0px solid;" class="middletext">
'
$settings['custom_global_html'], '
</div>'
;

//Below the menu ads
if (function_exists("show_towerleftAds") && function_exists("show_towerrightAds")) {

//Tower left Ads
$ads show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';
unset($ads);

//Tower Right Ads
$ads show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}

// Congrats, we're done!  Let's go the content!
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

// What?!  Done already?  Fine, let's get to the footer.

//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td></tr></table>'

unset($ads);
//Close table for towerleft ads
$ads show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" class="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>';

// Now we close out the content, and move on to the footers.
echo '
</div>
<div id="footer">
<span class="smalltext">
Theme by <a href="http://www.hvmdesign.com" title="Theme by High Velocity Media Web Design">HVMDesign</a> 
and <a href="http://www.dizzytechnology.com">Dizzy Technology</a>'
;

// Show custom copyright?
if ($settings['custom_copyright']!="")
echo '<br />
'
,$settings['custom_copyright'];

// Show the load time?
if ($context['show_load_time'])
echo '<br />
'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'];

echo '
<br />
</span>
</div><br />
<div id="bg_footer">

<div id="footer_left" class="smalltext">'
,theme_copyright(),'</div>
<div id="footer_right" class="smalltext">
<a href="http://validator.w3.org/check/referer" title="'
,$txt['valid_xhtml'],'">'$txt['apollobb_footer_xhtml'],'</a> | 
<a href="http://jigsaw.w3.org/css-validator/check/referer" title="'
$txt['valid_css'], '">',$txt['apollobb_footer_css'],'</a> | 
<a href="http://www.php.net/" title="'
$txt['powered_by_php'], '">',$txt['apollobb_footer_php'],'</a> | 
<a href="http://www.mysql.com/" title="'
$txt['powered_by_mysql'], '">',$txt['apollobb_footer_sql'],'</a>
</div>
</div>
</td>
<td class="border_right"></td>
</tr>
</table>'
;

// Don't even worry about this stuff.  Things do screw up without it, at least I think.
// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</body>
</html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"...

// Has a nice, cool style from Apollo.
function theme_linktree()
{
global $context$settings$options$txt;

echo '
<table width="100%" cellspacing="1" cellpadding="0" border="0" align="center" class="nav" style="width:100%;margin:2px 0">
<tr>
<td class="nav" style="padding-left:4px" align="left">'
;
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

$navcond '';

// If we're at the last link, make the link discolored.
if ($link_num == count($context['linktree']) -1)
$navcond 'nav-current';

// Show the link, including a URL if it should have one.
echo '<strong>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav '.$navcond.'">' $tree['name'] . '</a>' $tree['name'], '</strong>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;&raquo;&nbsp;';
}

echo '
</td>
</tr>
</table><br />'
;
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Open up our <div>.
echo'
<div id="bg_nav_links">'
;
// Show the [home] button.
echo '



<a href="'
$scripturl'" ' $current_action == 'home' 'class="nav_important"' '' '>' $txt[103] , '</a>&nbsp;|';
// Show the [Arcade] button.
    echo '
<a href="'
$scripturl'?action=arcade" ' $current_action == 'arcade' 'class="nav_important"' '' '>
$txt['arcade'] , '</a>&nbsp;|';




echo '
<a href="'
$scripturl'?action=help" ' $current_action == 'help' 'class="nav_important"' '' '>' $txt[119] , '</a>&nbsp;|';
// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="'
$scripturl'?action=search" ' $current_action == 'search' 'class="nav_important"' '' '>' $txt[182] , '</a>&nbsp;|';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="'
$scripturl'?action=admin" ' $current_action == 'admin' 'class="nav_important"' '' '>' $txt[2] , '</a>&nbsp;|';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="'
$scripturl'?action=profile" ' $current_action == 'profile' 'class="nav_important"' '' '>' $txt[79] , '</a>&nbsp;|';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '
<a href="'
$scripturl'?action=pm" ' $current_action == 'pm' 'class="nav_important"' '' '>' $txt['pm_short'] , ' ('$context['user']['unread_messages'] . ')' '</a>&nbsp;|';
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="'
$scripturl'?action=calendar" ' $current_action == 'calendar' 'class="nav_important"' '' '>' $txt['calendar24'] , '</a>&nbsp;|';
// the [member] list button
if ($context['allow_memberlist'])
echo '
<a href="'
$scripturl'?action=mlist" ' $current_action == 'mlist' 'class="nav_important"' '' '>' $txt[331] , '</a>&nbsp;|';

// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '
<a href="'
$scripturl'?action=login" ' $current_action == 'login' 'class="nav_important"' '' '>' $txt[34] , '</a>&nbsp;|';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '
<a href="'
$scripturl'?action=register" ' $current_action == 'register' 'class="nav_important"' '' '>' $txt[97] , '</a>';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '" ' $current_action == 'logout' 'class="nav_important"' '' '>' $txt[108] , '</a>';
// Dummy place holder, to end things
echo'
</div>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'main''strip_first''">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'main''strip">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'main''strip_last' '">&nbsp;</td>';
}



?>
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: lngviewbplover on August 13, 2008, 07:04:05 AM
I got the DOT problem fixed, one more small issue nothing major. I had selected the poll block and when you are at the portal there is no latest poll showing. I started a quick poll as a test and it wont show. Could this be due to the theme Im using? Im using black and blue theme.
Thanks
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 13, 2008, 08:34:44 AM
SiNaN,
My blocs doesn't work :S
I activate them in SPortal Admin, but they doesn't appear  :-[
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 13, 2008, 08:59:19 AM
bomdsquad:

Create a new php block and add this codes as content:

global $boarddir;

require_once($boarddir . '/SSI.php');

ssi_recentPoll();


Write your codes in notepad, then paste them into that area. I tried 200 lines of code and it worked.

tuguex:

For button:

Find:

// Show the [Arcade] button.

Replace:

echo '
               <a href="', $scripturl, '" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['sp-forum'] , '</a>&nbsp;|';
// Show the [Arcade] button.


Find:

'login', 'help', 'pm'

Replace:

'login', 'help', 'pm', 'forum', 'spadmin'

Find:

$current_action = 'search';

Replace:

$current_action = 'search';
if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';
if ($context['current_action']=='spadmin')
$current_action = 'admin';


For blocks:

Probably you've translated text strings, but DO NOT translate the string below:

// Positions
$txt['sp-positionLeft'] = 'Left';
$txt['sp-positionMiddleTop'] = 'Middle-Top';
$txt['sp-positionMiddleBottom'] = 'Middle-Bottom';
$txt['sp-positionRight'] = 'Right';


lngviewbplover:

Are you sure that you set the topic ID that contains the poll correctly?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 13, 2008, 09:08:25 AM
Quote from: [SiNaN] on August 13, 2008, 08:59:19 AM

For blocks:

Probably you've translated text strings, but DO NOT translate the string below:

// Positions
$txt['sp-positionLeft'] = 'Left';
$txt['sp-positionMiddleTop'] = 'Middle-Top';
$txt['sp-positionMiddleBottom'] = 'Middle-Bottom';
$txt['sp-positionRight'] = 'Right';




You are simple the best !!

Thank you =)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 13, 2008, 09:49:38 AM
SiNaN, i finally create the Forum button  ;D
Thank you for all suport given =D
But the "Forum" button take me to "http://tuggaming.weblusa.org/index.php"  , and i need that he takes me to http://tuggaming.weblusa.org/index.php?action=forum.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 13, 2008, 09:50:54 AM
Sorry, after you make the changes above;

Find:

               <a href="', $scripturl, '" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['sp-forum'] , '</a>&nbsp;|';

Replace:

               <a href="', $scripturl, '?action=forum" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['sp-forum'] , '</a>&nbsp;|';
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 13, 2008, 10:30:40 AM
Quote from: [SiNaN] on August 13, 2008, 09:50:54 AM
Sorry, after you make the changes above;

Find:

               <a href="', $scripturl, '" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['sp-forum'] , '</a>&nbsp;|';

Replace:

               <a href="', $scripturl, '?action=forum" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['sp-forum'] , '</a>&nbsp;|';

It work's !
Thank's for the exelent support =D
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 13, 2008, 01:08:07 PM


SiNaN, now is all  100% with the SPortal =) , i only have 1 question:
**********

Is normal "dot" appear in simple portal?

Dot Postes: 263
Dot Karma: 67
Dot Total de Mensagens: 24
Dot Novas mensagens: 0
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on August 13, 2008, 01:18:05 PM
Quote from: tuguex on August 13, 2008, 01:08:07 PM


SiNaN, now is all  100% with the SPortal =) , i only have 1 question:
**********

Is normal "dot" appear in simple portal?

Dot Postes: 263
Dot Karma: 67
Dot Total de Mensagens: 24
Dot Novas mensagens: 0


That should be an image. Make sure the image path is correct.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 13, 2008, 01:49:25 PM
Quote from: ccbtimewiz on August 13, 2008, 01:18:05 PM
Quote from: tuguex on August 13, 2008, 01:08:07 PM


SiNaN, now is all  100% with the SPortal =) , i only have 1 question:
**********

Is normal "dot" appear in simple portal?

Dot Postes: 263
Dot Karma: 67
Dot Total de Mensagens: 24
Dot Novas mensagens: 0


That should be an image. Make sure the image path is correct.

What you means with "image patch" ?  ::)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Eliana Tamerin on August 13, 2008, 02:01:12 PM
Image path. That means, the URL to your image.

It should be something like http://yourwebsite.com/forum/Themes/YourTheme/images/dot.gif

If that does not exist, you will need to copy the dot.gif from the  /Themes/default/images folder to your custom theme's folder. If it is not in your /Themes/default/images folder, then download the SimplePortal mod package to your computer, unzip the files (DO NOT UPLOAD IT IN THE PACKAGE MANAGER), and extract the dot.gif. Then place the dot.gif in your /Themes/default/images folder via FTP.

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: tuguex on August 13, 2008, 02:52:41 PM
Quote from: Eliana Tamerin on August 13, 2008, 02:01:12 PM
Image path. That means, the URL to your image.

It should be something like http://yourwebsite.com/forum/Themes/YourTheme/images/dot.gif

If that does not exist, you will need to copy the dot.gif from the  /Themes/default/images folder to your custom theme's folder. If it is not in your /Themes/default/images folder, then download the SimplePortal mod package to your computer, unzip the files (DO NOT UPLOAD IT IN THE PACKAGE MANAGER), and extract the dot.gif. Then place the dot.gif in your /Themes/default/images folder via FTP.

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)

I just copy the dot.gif from /Themes/default/images and past it on /Themes/my theme/images and now works =)

Thank's
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: dwd2000 on August 14, 2008, 01:22:11 AM
First, sorry for NOT reading all 52 pages for the answer to this question.

I already have several mods and stuff installed.
(Arcade, with several options)
(Links)
(Ad management)
(Gallery)
(Contact)
...and more.


Will I have a lot of errors or changes to make when I install the portal?

I am hoping that it is like a cover page and automatically adds what is already there.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 14, 2008, 03:36:09 AM
This a mod like the ones you've installed. But it doesn't make too much changes on your default files, mostly it uses its own files. What you need to do is, just install the mod without getting any error and create your blocks.

To add; we have built-in blocks for SMF Gallery and SMF Arcade mods.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 14, 2008, 04:59:27 AM
Hi, in the simple portal admin main page.

What does this mean - "Article view template active:" ?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 14, 2008, 05:02:05 AM
If you activate that, if users will click on a link of article that are shown on index; the article will be shown with a different template.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 14, 2008, 05:04:36 AM
Quote from: [SiNaN] on August 14, 2008, 05:02:05 AM
If you activate that, if users will click on a link of article that are shown on index; the article will be shown with a different template.

Cool Feature. Will check it now Author.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: runebergen on August 14, 2008, 02:23:53 PM

Anyone here that also use Ultimate Profile?
That could code two nice codes that I'd love to use from Ultimate Profile, on my Forum fontpage, using the mod Simple Portal

- Most Popular Users
(top 5 with most friends)

- Most Popular Walls
(top 5 with most comments)

Would love that ;) Will try myself.. if I figure it out, I'll let you know.. hehe
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 14, 2008, 02:49:22 PM
Quote from: runebergen on August 14, 2008, 02:23:53 PM

Anyone here that also use Ultimate Profile?
That could code two nice codes that I'd love to use from Ultimate Profile, on my Forum fontpage, using the mod Simple Portal

- Most Popular Users
(top 5 with most friends)

- Most Popular Walls
(top 5 with most comments)

Would love that ;) Will try myself.. if I figure it out, I'll let you know.. hehe

Hi Runebergen,

you could go to sportal admin page and include the top users block from add block menu.
And you will have a block for displaying most popular comments too.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: runebergen on August 14, 2008, 03:15:55 PM
yeah, but its not that I'm looking for ;) Not top forum posters...


But top users of ULTIMATE PROFILE :)

So its TOP 5 WITH MOST BUDDIES, and TOP 5 WITH MOST PROFILE COMMENTS


I've figured out almost the top 5 buddies...



SELECT `approved` , `ID_MEMBER`
FROM `radioforum_buddies`
where `approved` = 1
GROUP BY `ID_MEMBER`
ORDER BY `ID_MEMBER` ASC
LIMIT 0 , 5


Will get top 5 users with most buddies
But I'm having a hard time to make it also show how MANY buddies the top 5 have.. hehe

Might figure it out

But if anyone smart out there , knows the way, I'd love to hear .... .:)

Title: Re: SimplePortal (2.0.2 Update Out)
Post by: runebergen on August 14, 2008, 03:20:10 PM
Figured out TOP 5 USERS WITH MOST FRIENDS  :D :D :D :D :D


SELECT COUNT(`approved`) as 'Number',`ID_MEMBER`
FROM `radioforum_buddies`
where `approved` = 1
GROUP BY `ID_MEMBER`
ORDER BY `Number` desc
LIMIT 0 , 5
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: dwd2000 on August 14, 2008, 09:09:39 PM
Quote from: [SiNaN] on August 14, 2008, 03:36:09 AM
This a mod like the ones you've installed. But it doesn't make too much changes on your default files, mostly it uses its own files. What you need to do is, just install the mod without getting any error and create your blocks.

To add; we have built-in blocks for SMF Gallery and SMF Arcade mods.

Installed, no errors, but code at the top of the page. Found the answer to that problem within the forums here.

Thanks.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: C.Jack on August 14, 2008, 11:50:04 PM
Hi, SiNaN.

Thanks for a great Mod.  :)

I'm getting an error maybe someone here could help me with. I don't know much at all about php or databases... or computers.  ;D I just know that I get one of these in my error logs everytime someone opens sportal at my site.
---------------------------
http://raptor-poker.com/forum/index.php 
2: Invalid argument supplied for foreach()
File: /home/therapto/public_html/raptorpoker/forum/Sources/SPortal.php
Line: 1516
---------------------------
Thanks in advance for any help.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on August 14, 2008, 11:55:38 PM
Quote from: CaptJack on August 14, 2008, 11:50:04 PM
Hi, SiNaN.

Thanks for a great Mod.  :)

I'm getting an error maybe someone here could help me with. I don't know much at all about php or databases... or computers.  ;D I just know that I get one of these in my error logs everytime someone opens sportal at my site.
---------------------------
http://raptor-poker.com/forum/index.php 
2: Invalid argument supplied for foreach()
File: /home/therapto/public_html/raptorpoker/forum/Sources/SPortal.php
Line: 1516
---------------------------
Thanks in advance for any help.

Did you make any alterations to that file, or is it ROOTB? (Right out of the box).
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: C.Jack on August 15, 2008, 12:10:22 AM
I haven't modified Sportal at all. I'm using smf 1.1.5 with the default theme.
It's likely that I've blotched something, but I haven't knowingly done anything to it.
I also have errors with Charles Hill's Blog Mod, and I've lost my avatars. LOL!
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 15, 2008, 11:40:34 AM
Hi Author,

I went through the latest modifications.

And found the V2.03 of Simple Portal.

Could you tell me the whether it as features or only Bug fix.

Method to Upload. - Will it have any update to the previous version.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: runebergen on August 15, 2008, 01:03:06 PM
Quote from: runebergen on August 14, 2008, 02:23:53 PM

Anyone here that also use Ultimate Profile?
That could code two nice codes that I'd love to use from Ultimate Profile, on my Forum fontpage, using the mod Simple Portal

Top 5 Most Popular Profiles
(top 5 with most friends)

Top 5 Most Popular Walls
(top 5 with most comments)

Would love that ;) Will try myself.. if I figure it out, I'll let you know.. hehe


Here is the code if anyone else with Ultimate Profile wants to add similar feature to Simple Portal Boxes

Sinan might fix up the code a little, and rather use the $db_prefix function.. :)
But it works as it is without it (couldnt quite figure out the use of $db_prefix)




<?

/**********************************************************************************
* PopularProfiles.php                                                             *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* =============================================================================== *
**********************************************************************************/

if (!defined('SMF'))
die('Hacking attempt...');

function most_popular_profile() {


// VARIABLES FOR DATABASE - EDIT THIS FOR YOUR DATABASE
$DB_host = "localhost";
$DB_username = "xxxx";
$DB_passowrd ="xxxx";
$DB_name = "xxx";
$SMF_prefix ="smf_";


global $db_prefix,$ID_MEMBER, $user_info, $scripturl;

mysql_connect($DB_host , $DB_username, $DB_passowrd ) or
    die("Could not connect: " . mysql_error());
mysql_select_db($DB_name );

$query = 'SELECT COUNT(`approved`) as \'Number\',`ID_MEMBER`'
        . ' FROM `'.$SMF_prefix.'buddies`'
        . ' where `approved` = 1'
        . ' GROUP BY `ID_MEMBER`'
        . ' ORDER BY `Number` desc'
        . ' LIMIT 0 , 5';

$result =  mysql_query($query);

if (!$result) {
    echo mysql_error();
    exit;
}

if (mysql_num_rows($result) == 0) {
    echo "No entries found yet";
    exit;
}

echo '<table width="100%">';

while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {

$ID = $row["ID_MEMBER"];

     $sql = 'SELECT `realName` FROM `'.$SMF_prefix.'members` '
        . ' where `ID_MEMBER` = '
. $ID
        . ' LIMIT 0, 30 ';

$user =  mysql_query($sql);
   while ($row2 = mysql_fetch_array($user,MYSQL_ASSOC)) {
   echo '<tr>';
   echo '<td><a href="'.$scripturl.'?action=profile;u='.$ID.'">';
   echo $row2["realName"].'</a></td>';
   echo '<td style="text-align:right">'.$row["Number"].' buddies</td>';
   echo '</tr>';
   
   }
   
}

echo '</table>';

}


function most_popular_wall() {

// VARIABLES FOR DATABASE - EDIT THIS FOR YOUR DATABASE
$DB_host = "localhost";
$DB_username = "xxxx";
$DB_passowrd ="xxxx";
$DB_name = "xxx";
$SMF_prefix ="smf_";

$sql = 'SELECT COUNT(`COMMENT_MEMBER_ID`) as `Number`,`COMMENT_MEMBER_ID`'
        . ' FROM `'.$SMF_prefix.'profile_comments`'
        . ' GROUP BY `COMMENT_MEMBER_ID`'
        . ' ORDER BY `Number` desc'
        . ' LIMIT 0 , 5 ';


$result =  mysql_query($sql);

if (!$result) {
    echo mysql_error();
    exit;
}

if (mysql_num_rows($result) == 0) {
    echo "No entries found yet";
    exit;
}

echo '<table width="100%">';

while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {

$ID = $row["COMMENT_MEMBER_ID"];


$sql = 'SELECT `realName` FROM `'.$SMF_prefix.'members` '
        . ' where `ID_MEMBER` = '
. $ID
        . ' LIMIT 0, 30 ';

$user =  mysql_query($sql);
   while ($row2 = mysql_fetch_array($user,MYSQL_ASSOC)) {
   echo '<tr>';
   echo '<td><a href="'.$scripturl.'?action=profile;u='.$ID.'">';
   echo $row2["realName"].'</a></td>';
   echo '<td style="text-align:right">'.$row["Number"].' comments</td>';
   echo '</tr>';
   
   }



}


echo '</table>';


}




?>



You can put this code in SOURCES as PopularProfile.php

You must edit this part (2 places) in the code, to match your database settings :

// VARIABLES FOR DATABASE - EDIT THIS FOR YOUR DATABASE
$DB_host = "localhost";
$DB_username = "xxxx";
$DB_passowrd ="xxxx";
$DB_name = "xxx";
$SMF_prefix ="smf_";


Use it left or right side boxes, with this code :


include ('Sources/PopularProfiles.php');
echo most_popular_profile() ;



:)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Stock on August 15, 2008, 04:25:40 PM
I currently use tinyportal but only because of the customizable side bar, but i do by far prefer the simple portal for its portal functions. Is there any other fully customizable side bar that i can put recent posts, board stats, and our chat box in or could i just install simple portal for the portal functions and shut off tinyportal's portal.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: runebergen on August 15, 2008, 04:28:24 PM
You can add as many HTML or PHP box as you want ;)

Thats the beauty  ;D


Within these boxes you can add any code, such as for example the easy to use functions from SSI.php

http://docs.simplemachines.org/index.php?topic=400

The simplisity, and easy to operate and make work aproach from Simple Portal, by FAR outshines TinyPortal in my opinion... :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Stock on August 15, 2008, 04:39:19 PM
what i wanted is a sidebar that shows up throughout the whole site(excluding the admin panel) and thats what tinyportal has. I know that you can put just about anything in simpleportal but i need a side bar that shows on almost every page.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 15, 2008, 04:47:15 PM
Quote from: runebergen on August 15, 2008, 01:03:06 PM
:)

Hi Runebergen,

This is a good work . Lets the author fix some small changes in it.

Hope he will add this up in his next release.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Stock on August 15, 2008, 07:22:12 PM
does anyone know if this is compatible with the tinyportal side bar that goes through the whole site if i turn off all of its portal related functions?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: runebergen on August 15, 2008, 08:20:46 PM
Quote from: Stock on August 15, 2008, 07:22:12 PM
does anyone know if this is compatible with the tinyportal side bar that goes through the whole site if i turn off all of its portal related functions?

Good question, I dont really know...

Maybe someone do ?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Stock on August 15, 2008, 08:37:09 PM
I doubt the tiny and simple portal would work togther at all even with some features disabled. I suppose theres a seperate mod out there for a side bar. Anyone help me with this?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: C.Jack on August 15, 2008, 10:18:03 PM
@Stock
I'm using MKPortal and Sportal. I have my forum and Sportal wrapped, but I've opted to unload MKP's sidebars when viewing them. You could use that setup and just leave one of the sidebar columns active during forum view. Of course you would need to turn off the corresponding sidebar for Sportal or it wouldn't look right. MKP also has HTML and php boxes available. The downside is that MKP has to be loaded as your site index. You could move everything into a subdirectory, but MKP still has to be indexed ahead of your forum.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: grammaton on August 16, 2008, 10:49:53 AM
Hi @ll,

i am using SimpelPortal v.1.2 for some time now, and i have some strange errors in the errorlog.

For each user online at that time the following error message appears a few times in a row:

http://myhomepage/myforum/index.php 
8: Undefined index: 180
Datei: /var/www/forum/Sources/SPortal.php
Zeile: 585

and after that it shows this message .. also a few times

http://myhomepage/myforum/index.php 
8: Undefined index: 180
Datei: /var/www/forum/Sources/SPortal.php
Zeile: 484

I have looked into the code and found out that this has something to do with the show recent posts and show recent topics functions of the portal.
I couldnt reproduce the error .. usually it shows up every couple of days.

Would be nice if sbdy could help me with this. :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: PRaDiUS on August 16, 2008, 05:52:08 PM
Quote from: dwd2000 on August 14, 2008, 09:09:39 PM
Installed, no errors, but code at the top of the page. Found the answer to that problem within the forums here.

I am having the same problem with the code at the top. What is the answer you found to remedy this problem? Anyone?

this is what its showing at the top of my forum after I install.

Quote
// 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'; $t
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Eliana Tamerin on August 16, 2008, 07:32:17 PM
Quote from: grammaton on August 16, 2008, 10:49:53 AM
Hi @ll,

i am using SimpelPortal v.1.2 for some time now, and i have some strange errors in the errorlog.

For each user online at that time the following error message appears a few times in a row:

http://myhomepage/myforum/index.php 
8: Undefined index: 180
Datei: /var/www/forum/Sources/SPortal.php
Zeile: 585

and after that it shows this message .. also a few times

http://myhomepage/myforum/index.php 
8: Undefined index: 180
Datei: /var/www/forum/Sources/SPortal.php
Zeile: 484

I have looked into the code and found out that this has something to do with the show recent posts and show recent topics functions of the portal.
I couldnt reproduce the error .. usually it shows up every couple of days.

Would be nice if sbdy could help me with this. :)

It's likely that this error was fixed within the SimplePortal 2.0.x releases. Your best bet really would be to upgrade it, as the 2.x line includes some new features that you might find useful. And it would assist us with your support, instead of having to research and review such an old version.

Quote from: pradius on August 16, 2008, 05:52:08 PM
Quote from: dwd2000 on August 14, 2008, 09:09:39 PM
Installed, no errors, but code at the top of the page. Found the answer to that problem within the forums here.

I am having the same problem with the code at the top. What is the answer you found to remedy this problem? Anyone?

this is what its showing at the top of my forum after I install.

Quote
// 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'; $t

Open your /Themes/default/Languages/Modifications.english.php file and ensure that the ?> is at the end of the file on its own line. If not, move it there.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nathaniel on August 16, 2008, 07:34:28 PM
@pradius,
Refer to this post:
http://www.simplemachines.org/community/index.php?topic=236625.msg1597745#msg1597745 (http://www.simplemachines.org/community/index.php?topic=236625.msg1597745#msg1597745)

@Stock,
As I already said in the other topic. Adding blocks throughout the forum, is something which the Simple Portal Dev team is working on for a later version.

@runebergen and asudhakar,
A system is being developed which should allow people to add their own blocks and blocks made by other people more easily, so your block may be left until we have completed that feature, and then people will be able to easily make/add their own blocks. Thank you for developing the block though. :)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: C.Jack on August 16, 2008, 08:20:38 PM
Quote from: CaptJack on August 14, 2008, 11:50:04 PM
Hi, SiNaN.

Thanks for a great Mod.  :)

I'm getting an error maybe someone here could help me with. I don't know much at all about php or databases... or computers.  ;D I just know that I get one of these in my error logs everytime someone opens sportal at my site.
---------------------------
http://raptor-poker.com/forum/index.php 
2: Invalid argument supplied for foreach()
File: /home/therapto/public_html/raptorpoker/forum/Sources/SPortal.php
Line: 1516
---------------------------
Thanks in advance for any help.

Can anyone help with this? I'm using the latest version of Sportal and SMF 1.1.5
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: PRaDiUS on August 16, 2008, 09:51:26 PM
Quote from: Eliana Tamerin on August 16, 2008, 07:32:17 PM
Open your /Themes/default/Languages/Modifications.english.php file and ensure that the ?> is at the end of the file on its own line. If not, move it there.

That fixed it alright! Thanks much!

Now onto my final beef with this mod. I don't want your name and link at the bottom of my forum Mr SiNaN, you sneaky little so and so. SMF's copyright is more then enough without throwing your little link of love under it. Does anyone know how to remove this link from under the copyright? Thanks.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nibogo on August 16, 2008, 10:22:58 PM
what`s is new in the 2.0.4 version?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Nathaniel on August 16, 2008, 10:33:14 PM
@CaptJack,
This may be an issue with the smf arcade block, do you have an SMF arcade block and does the error stop if you remove the block?

@pradius,
You have noticed that this mod has a copyright link down the bottom of your page, this copyright is not easily removable without removing entire the SMF copyright, because we don't want you to remove it. While this may/may not change in the future, at the moment this mod has a copyright link attached to it, and you are not meant to remove it. I will discuss this with Sinan but at the moment, you cannot remove it unless you have good php skills.

@NIBOGO,
Permissions and a few bug-fixes.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Eliana Tamerin on August 16, 2008, 10:36:03 PM
Quote from: pradius on August 16, 2008, 09:51:26 PM
Quote from: Eliana Tamerin on August 16, 2008, 07:32:17 PM
Open your /Themes/default/Languages/Modifications.english.php file and ensure that the ?> is at the end of the file on its own line. If not, move it there.

That fixed it alright! Thanks much!

Now onto my final beef with this mod. I don't want your name and link at the bottom of my forum Mr SiNaN, you sneaky little so and so. SMF's copyright is more then enough without throwing your little link of love under it. Does anyone know how to remove this link from under the copyright? Thanks.

SMF Mods are more that allowed to stick a copyright on your forum. Even TinyPortal does this. But maybe we could move it just to the portal page for the next version.

Anyways, you won't be getting assistance to remove it in this support thread. Sorry, just not going to happen.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: ccbtimewiz on August 16, 2008, 10:40:26 PM
Quote from: pradius on August 16, 2008, 09:51:26 PM
Quote from: Eliana Tamerin on August 16, 2008, 07:32:17 PM
Open your /Themes/default/Languages/Modifications.english.php file and ensure that the ?> is at the end of the file on its own line. If not, move it there.

That fixed it alright! Thanks much!

Now onto my final beef with this mod. I don't want your name and link at the bottom of my forum Mr SiNaN, you sneaky little so and so. SMF's copyright is more then enough without throwing your little link of love under it. Does anyone know how to remove this link from under the copyright? Thanks.

Removing the SMF copyright and/or the SP copyright will void licenses. As mods are third-party software, we have the right to copyright our material. Removing such rights can result in legal action on your part.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: PRaDiUS on August 16, 2008, 10:48:25 PM
Alrighty, I'll just remove the mod all together. I don't need it that bad. That link makes my page look tacky and unprofessional. Thanks anyway.  ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 16, 2008, 11:27:53 PM
With 2.0.4 version all the know bugs -including the ones reported until this post was made- are all fixed. We suggest you all to update your mod.

pradius, thanks for trying the mod.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Eliana Tamerin on August 17, 2008, 12:43:15 AM
We now celebrate the release of SimplePortal 2.0.4. Yep, the release of 2.0.3 was quickly proceeded by the next version, that we didn't even have time to announce it!

The package includes an update if you're still using SimplePortal 2.0, 2.0.1, 2.0.2, or 2.0.3. Remember, if you're still using SimplePortal 1.x, you will need to uninstall that package before installing the 2.0.4 package.

In this release, we have a great number of bug fixes. Here they are:
! Left and Right block side width settings
! All block position comment typos
! Load.php portal theme bug
! SSI copyright bug
! Recent Topics width in IE
! Recent Posts width in IE
! Recent Topics icon
! Recent Posts icon
! Board News icon
! Articles block XHTML error
! User info function Karma type
! 3 SP Admin template bugs
! BoardIndex category bug
! Recent category bug
! Member Color Link bugs
! Arcade function foreach check
! MessageIcon check fix
+ Always load SPortal language
+ Block permissions
+ Force block field (not feature)
* Language strings removed in block call
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: C.Jack on August 17, 2008, 01:48:38 AM
I just installed 2.0.4 and got this error:

Unknown column 'force_view' in 'field list'
File: /home/therapto/public_html/raptorpoker/forum/Sources/Subs-SPortal.php
Line: 37
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 17, 2008, 02:39:29 AM
You installed or updated?

Okay, I got the error. Probably you uninstalled the earlier version, then installed the new.

So because of old table being there, it didn't create the new table.

Do you want to use your old blocks again or that isn't a problem for you to loosing them?
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: C.Jack on August 17, 2008, 02:50:36 AM
I don't mind losing the old blocks. I was only using the original ones anyway.  :)
However, I don't know how to replace them.  :-[
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 17, 2008, 03:08:31 AM
Anyway, we won't loose them. Copy the attached file to your forum root (where index.php is) then go to this adress from your browser: http://yoursite.com/upgrade02.php

When it says "Done!", then remove the file; your portal will be okay. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: C.Jack on August 17, 2008, 03:21:40 AM
Thanks, SiNaN !!!  :D

It's working great, and my "Invalid argument supplied for foreach()" error is fixed as well.  :D

Now, if I can only get my avatars fixed.... LOL.  ::)

Thanks again. I really like this portal.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: [SiNaN] on August 17, 2008, 03:24:21 AM
Glad you solved and liked it. If you are having a problem about not a mod, but forum; you can start a topic in 1.x Support Board. ;)
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: Sudhakar Arjunan on August 17, 2008, 05:45:44 AM
Quote from: Eliana Tamerin on August 17, 2008, 12:43:15 AM
We now celebrate the release of SimplePortal 2.0.4. Yep, the release of 2.0.3 was quickly proceeded by the next version, that we didn't even have time to announce it!

The package includes an update if you're still using SimplePortal 2.0, 2.0.1, 2.0.2, or 2.0.3. Remember, if you're still using SimplePortal 1.x, you will need to uninstall that package before installing the 2.0.4 package.

In this release, we have a great number of bug fixes. Here they are:
! Left and Right block side width settings
! All block position comment typos
! Load.php portal theme bug
! SSI copyright bug
! Recent Topics width in IE
! Recent Posts width in IE
! Recent Topics icon
! Recent Posts icon
! Board News icon
! Articles block XHTML error
! User info function Karma type
! 3 SP Admin template bugs
! BoardIndex category bug
! Recent category bug
! Member Color Link bugs
! Arcade function foreach check
! MessageIcon check fix
+ Always load SPortal language
+ Block permissions
+ Force block field (not feature)
* Language strings removed in block call

Thanks for this updated details information.
I hope i could not uninstall v2.02 since i have add and modifications in this by the help of author.
As the author told in the last post i would like to have a update package link which i could add in my fourm and run to fix and change the version to V2.04.

Thanks in Advance Author & Team.
Title: Re: SimplePortal (2.0.2 Update Out)
Post by: 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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on August 17, 2008, 06:25:10 AM
@asudhakar,
You should be able to upload version 2.04 of Simple Portal to your website, and then install/update to that version, it will update your Simple Portal Version from 2.02 to 2.04, its unlikely that you have made any changes to the core features which it edits, so the update should work. If you have any problems with the updator then you can ask here.

Updating between versions, is included in each new version of the mod. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 17, 2008, 07:02:04 AM
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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 17, 2008, 07:28:30 AM
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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on August 17, 2008, 08:22:37 AM
@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).
Title: Re: SimplePortal (2.0.4 Released!)
Post by: tuguex on August 17, 2008, 09:14:00 AM
SiNaN, to upgrade "my" SPortal from 2.0.2 to 2.0.4 I need to unistall it 1st ?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: caniol52 on August 17, 2008, 11:47:00 AM
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?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: caniol52 on August 17, 2008, 12:50:50 PM
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.   
Title: Re: SimplePortal (2.0.4 Released!)
Post by: redindian on August 17, 2008, 01:03:40 PM
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
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 17, 2008, 01:43:46 PM
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
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 17, 2008, 02:08:10 PM
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.

Title: Re: SimplePortal (2.0.4 Released!)
Post by: caniol52 on August 17, 2008, 02:23:53 PM
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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 17, 2008, 02:34:28 PM
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?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Manu.G on August 17, 2008, 03:50:39 PM
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.  :-\
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 17, 2008, 03:56:02 PM
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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nibogo on August 17, 2008, 04:03:12 PM
Really nice work SPortal team!!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Manu.G on August 17, 2008, 04:13:44 PM
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. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: caniol52 on August 17, 2008, 04:21:23 PM
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!!!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 17, 2008, 04:23:30 PM
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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Manu.G on August 17, 2008, 04:30:08 PM
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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 18, 2008, 05:39:03 AM
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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: kat on August 18, 2008, 07:09:06 AM
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?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Manu.G on August 18, 2008, 07:20:37 AM
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 (http://index.php?board=59.0) 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
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [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?

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. :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: kat on August 18, 2008, 07:38:22 AM
Of course!

You know, that never entered my mind, that!

Thanks, guys!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: 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?

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
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Manu.G on August 18, 2008, 07:54:45 AM
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 (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! ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 18, 2008, 08:03:00 AM
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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Manu.G on August 18, 2008, 08:11:12 AM
maaaaah (http://forum.arseniums.com/Smileys/default/40.gif)

You were talking about this code.

cleanRequest();
$context = array();
$context['TPortal'] = 'SimplePortal';
(http://forum.arseniums.com/Smileys/default/40.gif)
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
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on August 18, 2008, 08:19:13 AM
@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. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 18, 2008, 01:04:30 PM
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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 18, 2008, 01:15:15 PM
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';
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 18, 2008, 01:24:08 PM
Only $context['TPortal'] = 'SimplePortal';.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 18, 2008, 01:46:35 PM
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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Manu.G 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 ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: 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?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: reo4ua on August 18, 2008, 07:41:51 PM
Fantastic mod...thanks!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 18, 2008, 10:37:21 PM
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".
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 18, 2008, 10:46:24 PM
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.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Manu.G on August 19, 2008, 09:23:20 AM
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. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: runebergen on August 20, 2008, 12:25:49 PM

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...

:) :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 20, 2008, 12:46:18 PM
Meeturmaker:

Ignore the error and install. Then use the file attached to this post.

southeastsportsforum:

Thanks southeastsportsforum, it will be more fancy I hope. :)

asudhakar:

Thanks to Manu that she solved your first problem. For the second, it would be better if you ask for support in the support topic of mod that caused those errors.

runebergen:

Thanks runebergen, as I said before; we started now. Soon we will need some people to fill our Block Codes DB, be ready for that.

For All:

This morning we have coded a new add-on for SimplePortal which integrates it completely into your forum. That means, you can show your blocks on forum pages too. Also, you can select which on which action or board the block would be shown. To add; it is ultimately custom theme and install friendly. Now its being tested and I hope that we will include that feature in the next version; 2.1.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: runebergen on August 20, 2008, 02:32:51 PM
Quote from: [SiNaN] on August 20, 2008, 12:46:18 PM


For All:

This morning we have coded a new add-on for SimplePortal which integrates it completely into your forum. That means, you can show your blocks on forum pages too. Also, you can select which on which action or board the block would be shown. To add; it is ultimately custom theme and install friendly. Now its being tested and I hope that we will include that feature in the next version; 2.1.


WOW! :D

That sounds awesome! ;)))  Looking forwards to that! :D
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Puffbuster on August 20, 2008, 03:13:33 PM
Having some (to my way of thinking) major problems with SimplePortal 2.0.4 ...

Before I was finally lead here ... I posted my history with the Mod in this thread:  http://www.simplemachines.org/community/index.php?topic=256337.0

And that's where I am today.  Right now I'm considering deleting my entire forum (assuming that the databases will be left intact) and reinstalling EVERYthing.  I really don't want to do that, though. (duh!)

I'm calling my host to ensure that I have the correct ftp info, but the abovementioned thread chronicles my experiences to date.  I didn't have the ftp issue until the fiasco with the .htaccess file.

Help?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 20, 2008, 05:37:56 PM
First of all welcome Puffbuster. :)

Unfortunately I'm the only one who can't reproduce that error. I'm trying to figure out where the error could be, but I couldn't find it yet.

Maybe you can try other portal alternatives. TinyPortal doesn't have such a problem as far as I know. And said to be more functional than SimplePortal. The only thing is, its quite confusing for the starters.

Anyway, I don't want anybody to have problems because of my mod. I just can suggest uninstalling the mod completely. I can help with that to you. Just attach all the files that have been affected by SimplePortal and I'll take them back.

No worries, we can fix it. Hopefully...

Edit:

I think I've found the fix. Can you try replacing your Subs-SPortal.php with the one attached? It's in Sources directory. Then try editing or deleting a block. Would be glad if you can inform us about the result.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 21, 2008, 07:15:27 AM
Hi i have checked the Quick Search Box portal page both @ right and left side.

I found its taking more width then usual block.

Check out this page in Internet explorer http://forum.itacumens.com
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 21, 2008, 07:23:47 AM
I'm aware of that, will decrease the width in the first update.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 21, 2008, 08:06:42 AM
Quote from: [SiNaN] on August 21, 2008, 07:23:47 AM
I'm aware of that, will decrease the width in the first update.

Are you telling about the first release 2.01 or the future update Author.

And do check this, i got error in my default theme only. Is issue related to Simple portal.


Parse error: syntax error, unexpected $end in .../Themes/default/MessageIndex.template.php on line 766

757: $buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0">' . $txt['smf258'] . '</a>';
758:
759: // How about new polls, can the user post those?
760: if ($context['can_post_poll'])
761: $buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll">' . $txt['smf20'] . '</a>';
762:
763: return implode('  |  ', $buttonArray);
764: }
765:

766: ?>

767:
768:

Title: Re: SimplePortal (2.0.4 Released!)
Post by: Puffbuster on August 21, 2008, 10:24:39 AM
SiNaN -

Thank you for your quick response.  I really don't want to NOT use SimplePortal, it's just giving me some headache right now.  I thought this morning to delete the mod from my forum, then download a new copy and apply it in the hope that the previous copy was damaged in some way.

But ... I'm not able to delete the existing mod using the package manager.

Now what?

I would really appreciate your help in getting this mod applied.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 21, 2008, 11:26:58 AM
asudhakar:

I meant I will fix it in the next update.

The error is not related to SimplePortal. It doesn't make any change in Message Index template.

Puffbuster:

I remember the error you are getting, it must be the same as the errors reported in the previous pages. Changing the file I attached above should have been done the trick. I suggest first trying that.

If that doesn't work, what is the error you are getting when you try to uninstall it?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Puffbuster on August 21, 2008, 12:35:05 PM
Looked at the Sources directory.  The file that you provided is NOT there.

When I attempt to delete the SimplePortal mod via the Package Manager - Browse Packages, it just shows as being there ... no error message.

I have the options to [Apply Mod] [list Files] [Delete]

When I click on [Apply Mod] I get sent to the aforementioned "FTP Information Required" page.  This did NOT happen in my first few attempts to apply the mod.  When I enter the requested FTP info, the page does nothing but erase the password block.  I have checked, double-checked and triple-checked that the FTP info is correct (it's the exact same settings I use for my WS_FTP program, which connects just fine).

My forum appears to be running just fine ... except that I can neither apply nor delete SimplePortal.  In just looking for the file that you provided, I'm beginning to assume that the Mod is NOT there ... hence the inability to delete it.  But in that case, would it still show up in the Browse Packages?

The SimplePortal Mod does NOT appear in the "Installed Packages" page either.

Just tried to upload the Mod again and I received the message:

QuoteThe file you are uploading already exists on the server. Please delete it first then try again.

And we're back to the circle ... Package Manager (Browse Packages) won't let me delete it.

When I select [list Files] for the Mod, I get the following:

Quote1.  arrow.gif (672 bytes)
   2. arrow1.gif (590 bytes)
   3. dot.gif (666 bytes)
   4. dot1.gif (339 bytes)
   5. install.php (3815 bytes)
   6. install.xml (15893 bytes)
   7. package-info.xml (2950 bytes)
   8. splogo.png (2276 bytes)
   9. SPortal.english-utf8.php (11553 bytes)
  10. SPortal.english.php (11553 bytes)
  11. SPortal.php (62736 bytes)
  12. SPortal.template.php (6959 bytes)
  13. SPortalAdmin.php (38936 bytes)
  14. SPortalAdmin.template.php (31454 bytes)
  15. SPortalArticle.template.php (25861 bytes)
  16. Subs-SPortal.php (11359 bytes)
  17. upgrade00.xml (9681 bytes)
  18. upgrade01.php (705 bytes)
  19. upgrade01.xml (876 bytes)
  20. upgrade02.php (1331 bytes)
  21. upgrade02.xml (38057 bytes)
  22. upgrade03.xml (2946 bytes)

Do I need to delete each individual file manually?  Is that even possible?  As I said before, in looking in the Sources directory for Subs-SPortal.php ... it's not there.

A possible source of confusion is that I'm also running a sub-domain and I'm not really up on how all of that works.  Actually, I have a forum directory in the "main" and another forum directory in the "sub" ... from what I'm seeing only the "main" actually is required, but until I understand everything a bit more fully I guess I'm staying confused for a bit.

I'm resetting file permissions on all the folders right now to try and re-apply the Mod.

[/list][/list]
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 21, 2008, 12:51:00 PM
Well if that doesn't work, try this:

1) Create a new directory named as "temp" in the Packages directory.
2) Set the chmod to 777.
3) Put something into that directory, make sure that directory is not empty. (maybe you can put a small picture there)
4) Then try installing mod.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Malke on August 21, 2008, 03:38:29 PM
Thanks for a great portal.

I have a small problem though.

The article blocks are wider than the actual article table. So there is a space to the right of the text and avatar in the news update. Is there any way I can make this table 100%? I guess making the side blocks wider could fix it but I don't really wanna do that...

I'm attaching a part of a screenshot.

Thanks!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 21, 2008, 03:50:20 PM
What's your browser? Can you link to your forum?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: tuguex on August 21, 2008, 05:43:23 PM
SiNaN, i change my forum theme, and now my index.template.php is diferent and i don't know how to put "Forum" button in the bar menu :S

Here is my index.template.php ;)
<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';
/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = false;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = false;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = false;




if(!
$context['user']['is_guest'] && isset($_POST['options']['theme_color']))
{
   include_once(
$GLOBALS['sourcedir'] . '/Profile.php');
   
makeThemeChanges($context['user']['id'], $settings['theme_id']);
   
$options['theme_color'] = $_POST['options']['theme_color'];
}
elseif (
$context['user']['is_guest'])
{
   if (isset(
$_POST['options']['theme_color']))
   {
      
$_SESSION['theme_color'] = $_POST['options']['theme_color'];
      
$options['theme_color'] = $_SESSION['theme_color'];
   }
   elseif (isset(
$_SESSION['theme_color']))
      
$options['theme_color'] = $_SESSION['theme_color'];
}


}

// The main sub template above the content.
function template_main_above()
{
        global 
$context$settings$options$scripturl$txt$modSettings;

if (isset(
$options['theme_color']))
   
$mycolor $options['theme_color'];
else{
   
// Defaults.
   
$options['theme_color'] = isset($settings['default_theme_color']) ? $settings['default_theme_color'] : 'brown';
   
$mycolor=$options['theme_color'];
}

if(isset(
$settings['color_change_off']) && $settings['color_change_off']==1)
  
$options['theme_color'] = isset($settings['default_theme_color']) ? $settings['default_theme_color'] : 'brown';

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?rc3"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';
        
// If we're viewing a topic, these should be the previous and next topics, respectively.
        
if (!empty($context['current_topic']))
                echo 
'
        <link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
        <link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

        
// If we're in a board, or a topic for that matter, the index will be the board's index.
        
if (!empty($context['current_board']))
                echo 
'
        <link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

        
// We'll have to use the cookie to remember the header...
        
if ($context['user']['is_guest'])
                
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

        
// Output any remaining HTML headers. (from mods, maybe?)
        
echo $context['html_headers'], '

        <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

                function shrinkHeader(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

        echo 
'
                        document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

                        current_header = mode;
                }
        // ]]></script>
</head>
<body><div><table cellpadding="0" align="center" cellspacing="0" style="width: ' 
, (isset($settings['forum_width']) && !empty($settings['forum_width'])) ? $settings['forum_width'] : '100%' ,  ';"><tr><td>';
        
$topbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 16px; width: 22px;"><img src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft.gif" style="height: 16px; width: 22px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="height: 16px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid.gif); "></td><td style="height: 16px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright.gif" style="height: 16px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr><tr><td style="width: 22px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midleft.gif); ">&nbsp;</td><td valign="top">';
        
$botbox='</td><td style="width: 27px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midright.gif); ">&nbsp;</td></tr><tr><td valign="top" style="height: 14px; width: 22px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botleft.gif" style="height: 14px; width: 22px; border: 0px; padding: 0px; margin: 0px;" /></td><td style="height: 14px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botmid.gif); ">&nbsp;</td><td valign="top" style="height: 14px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botright.gif" style="height: 14px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';

        
$leftbox='<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td valign="top" style="height: 44px; width: 124px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-stat-left.gif" style="height: 44px; width: 124px; border: 0px; padding: 0px; margin: 0px;" /></td><td nowrap="nowrap" style="text-align: center; height: 44px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-stat-mid.gif); ">';
        
$rightbox='</td><td valign="top" style="height: 44px; width: 135px;"><img alt="*" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-stat-right.gif" style="height: 44px; width: 135px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';

        if(isset(
$settings['topbar']) && !empty($settings['topbar']))
               echo 
'<div style="text-align: center; width: 99%">'.$settings['topbar'].'</div>';


    if(!isset(
$settings['color_change_off']) || (isset($settings['color_change_off']) && $settings['color_change_off']==0))
      echo 
'
      <form action="'
$scripturl'" style="text-align: right; margin-right: 30px; margin-bottom: 2px; margin-top: 2px;" method="post" class="smalltext">
         <input style="border: solid 1px #808080; background-color: #503000; color: #503000; font-size: 6px;" type="submit" value="brown" name="options[theme_color]">
         <input style="border: solid 1px #808080; background-color: #600000; color: #600000; font-size: 6px;" type="submit" value="red" name="options[theme_color]">
         <input style="border: solid 1px #808080; background-color: #908000; color: #908000; font-size: 6px;" type="submit" value="golden" name="options[theme_color]">
         <input style="border: solid 1px #808080; background-color: #005000; color: #005000; font-size: 6px;" type="submit" value="green" name="options[theme_color]">
         <input style="border: solid 1px #808080; background-color: #000040; color: #000040; font-size: 6px;" type="submit" value="blue" name="options[theme_color]">
         <input style="border: solid 1px #808080; background-color: #606060; color: #606060; font-size: 6px;" type="submit" value="silver" name="options[theme_color]">
       </form>'
;

        echo 
'<div id="upshrinkHeader"', empty($options['collapse_header']) ? '' ' style="display: none;"''><div style="padding-right: 10px;">'.$topbox.'<table width="100%" cellpadding="0" cellspacing="0" border="0">';
         echo 
'<tr><td width="45%" valign="bottom" style="padding-right: 10px;"><div style="padding-right: 0px;">';

        echo 
'<table width="99%" cellpadding="4" cellspacing="5" border="0" style="margin-left: 2px;"><tr>';

        if (!empty(
$context['user']['avatar']))
                echo 
'<td valign="top">'$context['user']['avatar']['image'], '</td>';

        echo 
'<td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">
        '
;

        
// If the user is logged in, display stuff like their name, new messages, etc.
        
if ($context['user']['is_logged'])
        {
                echo 
'
                                                        '
$txt['hello_member'], ' <b>'$context['user']['name'], '</b>';

                
// Only tell them about their messages if they can read their messages!
                
if ($context['allow_pm'])
                        echo 
', '$txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'];
                echo 
'.';

                
// Is the forum in maintenance mode?
                
if ($context['in_maintenance'] && $context['user']['is_admin'])
                        echo 
'<br />
                                                        <b>'
$txt[616], '</b>';

                
// Are there any members waiting for approval?
                
if (!empty($context['unapproved_members']))
                        echo 
'<br />
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

                
// Show the total time logged in?
                
if (!empty($context['user']['total_time_logged_in']))
                {
                        echo 
'
                                                        <br />'
$txt['totalTimeLogged1'];

                        
// If days is just zero, don't bother to show it.
                        
if ($context['user']['total_time_logged_in']['days'] > 0)
                                echo 
$context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

                        
// Same with hours - only show it if it's above zero.
                        
if ($context['user']['total_time_logged_in']['hours'] > 0)
                                echo 
$context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

                        
// But, let's always show minutes - Time wasted here: 0 minutes ;).
                        
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'];
                }

                echo 
'<br />
                                                        <a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br />
                                                        <a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a>';

        }
        
// Otherwise they're a guest - so politely ask them to register or login.
        
else
        {
                echo 
'
                                                        '
$txt['welcome_guest'], '<br />

<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<div style="text-align: right;">
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</div>
</form>'
;
}

        echo 
'
                                                </td></tr></table>'
;

        echo 
'</div></td><td style="padding-right: 10px;" width="50%" align="right" >';
        if(isset(
$settings['userlogo']) && !empty($settings['userlogo']))
               echo 
'<a href="index.php"><img src="'.$settings['userlogo'].'" border="0" alt="logo" /></a>';

        echo 
' </td></tr></table>'.$botbox.'</div>';

        if (!empty(
$settings['enable_news']))
               echo 
'<div style="padding-right: 10px;">'$topbox.'<div style="padding: 6px; text-align: center;">'.$context['random_news_line'].'</div>'.$botbox.'</div>';

        
// news
            
echo '
                   </div>'
;
        
// stats
            
echo '<div style="padding-left: 0px;">'.$leftbox.'<table width="99%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" style="color: #88908a; font-size: 8pt; font-family: tahoma, helvetica, serif;"><b>'$modSettings['totalMessages'], '</b> '$txt[95], ' '$txt['smf88'], ' <b>
                      '
$modSettings['totalTopics'], '</b> '$txt[64], ' '$txt[525], ' <b>'$modSettings['totalMembers'], '</b>
                      '
,  $txt[19], '
                      - '
$txt[656], ': <b> <a style="color: #b0b0b0" href="'$scripturl '?action=profile;u=' $modSettings['latestMember'] , '">' $modSettings['latestRealName'] , '</a></b>
                      </td><td align="right" style="color: #b0b0b0; font-size: 8pt; font-family: tahoma, helvetica, serif;">'
.$context['current_time'].'</td></tr></table>'.$rightbox.'</div>';


                
// Show the menu here, according to the menu sub template.
 
echo '<table cellpadding="0" cellspacing="0" border="0" style="text-align: left; margin-left: 20px; background-image: url(' $settings['images_url'] . '/pod/'.$options['theme_color'].'/pod-midbar.gif);" ><tr>';
 echo 
'<td style="width: 39%; background-color: black;"> </td><td><img src="' $settings['images_url'] . '/pod/'.$options['theme_color'].'/pod-leftbar.gif" alt="gfx" style="margin: 0px 0;" border="0" /></td>';
 echo 
'<td><a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 0px 0;" border="0" /></a></td><td><img id="upshrinkTemp" src="'$settings['images_url'], '/blank.gif" alt="" style="width: 2px; height: 20px;margin: 0px 0;" /></td>';
                
template_menu();
echo 
'</td><td style="background-color: black;width: 59%;"> </td></tr></table>';
        
// The main content should go here.  A table is used because IE 6 just can't handle a div.
        
echo '
        <table style="margin-top: 4px;" width="100%" cellpadding="0" cellspacing="0" border="0"><tr>'
;
         echo 
'<td align="left" id="bodyarea" style="padding-left: 3px; padding-right: 8px; padding-top: 0px; padding-bottom: 10px;">';
}

function 
template_main_below()
{
        global 
$context$settings$options$scripturl$txt;

        
$leftboxbot3='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 8px; height: 58px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-maxbotleft.gif" style="height: 58px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 58px; background-repeat: repeat-x;background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-maxbotmid.gif); ">';
        
$rightboxbot3='</td><td valign="top" style="padding-right: 5px; height: 58px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-maxbotright.gif" style="height: 58px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';

        echo 
'</td>
        </tr></table>'
;

        
// Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!
        
echo $leftboxbot3.'
<div style="padding-top: 15px;">
                <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%">
                        <tr>
                                <td valign="middle" align="center" style="white-space: nowrap;">
                                        '
theme_copyright(), '
                                </td><td align="right"><span class="smalltext">'
;
        
// Show the load time?
        
if ($context['show_load_time'])
                echo
                
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'];

        echo 
'<br /><b>Helios Multi</b> design by <a target="_blank" href="http://www.bloczone.net/smf">Bloc</a></span></td>
             </tr>
          </table></div>'
.$rightboxbot3;
        echo 
'<div style="text-align: center;">
                             <a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" border="0"  /></a>
                             <a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" border="0"  /></a>
                                       <a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" border="0" /></a>
                                        <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" border="0" /></a>

        </div>'
;


// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
{
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;
}

echo '
// ]]></script>'
;
}

        echo 
'</td></tr></table></div>
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
        </body>
</html>'
;
}


// Show a linktree.  This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
        global 
$context$settings$options;

        
// Folder style or inline?  Inline has a smaller font.
        
echo '<span class="nav">';

        
// Each tree item has a URL and name.  Some may have extra_before and extra_after.
        
foreach ($context['linktree'] as $link_num => $tree)
        {

                
// Show something before the link?
                
if (isset($tree['extra_before']))
                        echo 
$tree['extra_before'];

                
// Show the link, including a URL if it should have one.
                
echo $settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'];

                
// Show something after the link...?
                
if (isset($tree['extra_after']))
                        echo 
$tree['extra_after'];

                
// Don't show a separator for the last one.
                
if ($link_num != count($context['linktree']) - 1)
                        echo 
' &nbsp;|&nbsp; ';
        }

        echo 
'</span>';
}

// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
        global 
$context$settings$options$scripturl$txt;

        
// Show the [home] and [help] buttons.

        
echo '<td><a href="'$scripturl'">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/home.gif" alt="' $txt[103] . '" style="margin: 0px 0;" border="0" />' $txt[103]), '</a></td>';
        echo 
'<td><a href="'$scripturl'?action=help" >', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/help.gif" alt="' $txt[119] . '" style="margin: 0px 0;" border="0" />' $txt[119]), '</a></td>';
echo 
'
               
// How about the [Arcade] button? 
    echo'

<td  align="center"><a href="', $scripturl, '?action=arcade">' , $txt['arcade'] , '</a></td>';

        // How about the [search] button?
        if ($context['
allow_search'])
                echo '
<td><a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 0px 0;" border="0" />' : $txt[182]), '</a></td>';

        // Is the user allowed to administrate at all? ([admin])
        if ($context['
allow_admin'])
                echo '
<td><a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 0px 0;" border="0" />' : $txt[2]), '</a></td>';

        // Edit Profile... [profile]
        if ($context['
allow_edit_profile'])
                echo '
<td><a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 0px 0;" border="0" />' : $txt[467]), '</a></td>';

        // The [calendar]!
        if ($context['
allow_calendar'])
                echo '
<td><a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 0px 0;" border="0" />' : $txt['calendar24']), '</a></td>';

        // If the user is a guest, show [login] and [register] buttons.
        if ($context['
user']['is_guest'])
        {
                echo '
<td><a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 0px 0;" border="0" />' : $txt[34]), '</a></td>';
                echo '
<td><a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 0px 0;" border="0" />' : $txt[97]), '</a></td>';
        }
        // Otherwise, they might want to [logout]...
        else{
              echo '
<td><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" style="margin: 0px 0;" border="0" />' : $txt[108]), '</a></td>';
              }

       // first button...is it on?
       if(isset($settings['
custombutton1_use'])  && $settings['custombutton1_use']==true){
          // is it memberonly?
            if(isset($settings['
custombutton1_member']) && $settings['custombutton1_member']==true){
                // it is, check if guest
                if($context['
user']['is_logged']){
                   // member, check if its not empty...
                   if(isset($settings['
custombutton1']) && !empty($settings['custombutton1']) && isset($settings['custombutton1_link']) && !empty($settings['custombutton1_link']))
                      echo '
<td><a href="'. $settings['custombutton1_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton1'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
                }
            }
            else{
                   // guests too, check if its not empty...
                   if(isset($settings['
custombutton1']) && !empty($settings['custombutton1']) && isset($settings['custombutton1_link']) && !empty($settings['custombutton1_link']))
                      echo '
<td><a href="'. $settings['custombutton1_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton1'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
            }
       }
       // second button...is it on?
       if(isset($settings['
custombutton2_use'])  && $settings['custombutton2_use']==true){
          // is it memberonly?
            if(isset($settings['
custombutton2_member']) && $settings['custombutton2_member']==true){
                // it is, check if guest
                if($context['
user']['is_logged']){
                   // member, check if its not empty...
                   if(isset($settings['
custombutton2']) && !empty($settings['custombutton2']) && isset($settings['custombutton2_link']) && !empty($settings['custombutton2_link']))
                      echo '
<td><a href="'. $settings['custombutton2_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton2'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
                }
            }
            else{
                   // guests too, check if its not empty...
                   if(isset($settings['
custombutton2']) && !empty($settings['custombutton2']) && isset($settings['custombutton2_link']) && !empty($settings['custombutton2_link']))
                      echo '
<td><a href="'. $settings['custombutton2_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton2'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
            }
       }
       // third button...is it on?
       if(isset($settings['
custombutton3_use'])  && $settings['custombutton3_use']==true){
          // is it memberonly?
            if(isset($settings['
custombutton3_member']) && $settings['custombutton3_member']==true){
                // it is, check if guest
                if($context['
user']['is_logged']){
                   // member, check if its not empty...
                   if(isset($settings['
custombutton3']) && !empty($settings['custombutton3']) && isset($settings['custombutton3_link']) && !empty($settings['custombutton3_link']))
                      echo '
<td><a href="'. $settings['custombutton3_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton3'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
                }
            }
            else{
                   // guests too, check if its not empty...
                   if(isset($settings['
custombutton3']) && !empty($settings['custombutton3']) && isset($settings['custombutton3_link']) && !empty($settings['custombutton3_link']))
                      echo '
<td><a href="'. $settings['custombutton3_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton3'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
            }
       }


       echo '
<td><img src="' . $settings['images_url'] . '/pod/'.$options['theme_color'].'/pod-rightbar.gif" alt="gfx" style="margin: 0px 0;" border="0" />';

}
// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip, $direction = '
top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;

if (empty($button_strip))
return '';

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['
test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '
<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . ($value['lang'] ? $context['user']['language'] . '/' : '') . $value['image'] . '" alt="' . $txt[$value['text']] . '" border="0" />' : $txt[$value['text']]) . '</a>';

$button_strip[$key] = $buttons[$key];
}

echo '
<td ', $custom_td, '>', implode($context['menu_separator'], $button_strip) , '</td>';
}

?>

Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 21, 2008, 05:46:57 PM
Find:

        echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';

Replace:

        echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
        echo '<td><a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt['sp-forum'] . '" style="margin: 0px 0;" border="0" />' : $txt['sp-forum']), '</a></td>';


You should have a forum.gif image if you are using images on menu.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Malke on August 21, 2008, 06:15:00 PM
Quote from: [SiNaN] on August 21, 2008, 03:50:20 PM
What's your browser? Can you link to your forum?

I use Firefox but I also checked it in IE. The screenshot is from IE but it looks the same in both.

The site is down for mainentance at the moment... Since I see that you are online right now I'll open it. Please let me know when you've seen it. It's www.deathrizzo.com.

Thanks for the quick reply! And good job with the portal!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: tuguex on August 21, 2008, 06:15:30 PM
Quote from: [SiNaN] on August 21, 2008, 05:46:57 PM
Find:

        echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';

Replace:

        echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
        echo '<td><a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt['sp-forum'] . '" style="margin: 0px 0;" border="0" />' : $txt['sp-forum']), '</a></td>';


You should have a forum.gif image if you are using images on menu.

Thank's XD

Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 21, 2008, 06:44:04 PM
Malke:

I cannot see the site right now, probably related to a problem with my connection. But I think I've found the bug:

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

Find:

<td style="padding: 5px;"colspan="2">';

Replace:

<td style="padding: 5px;" colspan="2">';

Find:

<div class="post">', !empty($article['category']['picture']['href']) ? '<div><img src="' . $article['category']['picture']['href'] . '" alt="' . $article['category']['name'] . '" width="90" align="right" /></div>' : '', $article['message']['body'], '<br/><br/>
</div>
</tr>


Replace:

<div class="post">', !empty($article['category']['picture']['href']) ? '<div><img src="' . $article['category']['picture']['href'] . '" alt="' . $article['category']['name'] . '" width="90" align="right" /></div>' : '', $article['message']['body'], '<br/><br/>
</div>
</td>
</tr>


This should fix it. Confirmed XHTML bug, thanks for the report. :)

tuguex:

You're always welcome. :)

Title: Re: SimplePortal (2.0.4 Released!)
Post by: runebergen on August 21, 2008, 06:55:46 PM
Since you guys are working on maybe getting Simple Portal boxes on regular forum pages too, I've been going mad about how to use it  :D it will be phenomenal if implemented...

when thinking about it, I thought of something that might be cool... if possible, and wanted from the developers..

How about a random block that would rotate either between a given set of block that the user have choosen to add to "random", or just take any user activated block that has same position...

the idea is that say on top of forum page there would be a random block giving some cool info at each page visit...
(but such a random box could of course also be used at the Simple Portals front page, to make the content boxes change content at each visit)


such as

- Top Poster today
- New member today
- Todays birthday
- Most popular thread today
- Missing in Action - Longest away that returned today
- Best score on Arcade today
- Most friendly today (most added new buddies)
- Most loved today (most requested person for buddies)

etc etc...  could be any thing from fun facts, to plain stats :)

What ever the user wants to display :) I'm a fan of the "odd stories" from whats going on today at the communitu..  Funny stats, etc

(the functions would of course be user made boxes, that is the code within.. not asking for code for all those functions, but basically just a rotator function that will pick a random box, and display it at page load )


And other fun "stories" that might spice up the forum visit :)

Not only would it be fun, but it would also make Simple Portal DYNAMIC... as it would add the possibility to not show static boxes, but also dynamic generated ones (or random ones really).

:)




Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 21, 2008, 07:09:00 PM
First of all thanks for detailed feature requests, I love them. But the problem is, we first should complete all the base functions for the portal before enhancing it. The only thing left is the forum-independent articles. Then we can start considering such functions.

Actually PHP blocks are making the portal dynamic enough. Let me give an example for random block:

<?php
// Birthdays function
function birthdays()
{
echo 'birthdays';
}

// Holidays function
function holidays()
{
echo 'holidays';
}

// Events function
function events()
{
echo 'events';
}

// Put all functions in an array
$functions = array('birthdays''holidays''events');

// Call a random function
$functions[rand(0,2)]();
?>


I hope it is simple and clear. :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Malke on August 21, 2008, 07:22:43 PM
Thanks for your help. However, it doesn't seem to have fixed the problem...

I tried removing temp internet files, cookies etc in IE but no change.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 21, 2008, 07:29:16 PM
Hmmm, weird. Can you attach your SPortal.template.php file here?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Malke on August 21, 2008, 07:33:19 PM
Sure. Here it is.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 21, 2008, 07:41:09 PM
It should be okay, but let's try this.

Find:

<div class="post">

Replace:

<div style="width: 100%">
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Malke on August 21, 2008, 07:44:38 PM
that worked! thanks!!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 22, 2008, 02:51:53 AM
Quote from: Manu0372 on August 19, 2008, 09:23:20 AM
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. ;)


Thanks a lot Manu0372.
Am Late now, I have attached the File.

And before editing this, check out the post i have made here. http://www.simplemachines.org/community/index.php?topic=227599.msg1669985#msg1669985

Because, when i go through the default theme, it shows the error page as shown in the above post.
I have tried to edit the message.template page , but it shows error in the php .

Thanks in advance for helping me Manu0372.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Manu.G on August 22, 2008, 08:41:40 AM
@asudhakar

Here's your MessageIndex.template.php back.
But please, please back up your actual MessageIndex.template before you
load up the one I modified. ;)

The error you posted has really nothing to do with the portal. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 22, 2008, 11:47:46 AM
Quote from: Manu0372 on August 22, 2008, 08:41:40 AM
@asudhakar

Here's your MessageIndex.template.php back.
load up the one I modified. ;)

Thanks a lot Manu0372,

Now its working perfectly in My IE 6 Browser.

Thanks a lot for your kind help.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: runebergen on August 22, 2008, 01:33:22 PM
Quote from: [SiNaN] on August 21, 2008, 07:09:00 PM

Actually PHP blocks are making the portal dynamic enough. Let me give an example for random block:



I hope it is simple and clear. :)

duuuh!! didnt think clear! ;) hehe...  yeah, no need for ramdom block, as it can all be done in PHP ;)
thanx for the tips ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Puffbuster on August 22, 2008, 01:44:19 PM
SiNaN -

Still no joy.  Can neither apply nor delete the SimplePortal Mod via the Package Manager.

Is there a way to delete the mod manually?

Also, is there a way to run SMF on my local (development) system ... away from the Web ... apply the mod and THEN upload the entire kit and kaboodle to my domain?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Manu.G on August 22, 2008, 02:42:49 PM
Quote from: asudhakar on August 22, 2008, 11:47:46 AM
Thanks a lot Manu0372,

Now its working perfectly in My IE 6 Browser.

Thanks a lot for your kind help.

Your welcome. ;)
It looks nice in IE6 but not in IE7!  :-\
Please load up the MessageIndex.template.php I have add to this posting,
than it will look nice in IE7 too. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 23, 2008, 08:55:01 AM
runebergen:

Not at all, please share the block codes you code.

Puffbuster:

Just attach your

index.php
Sources/Display.php
Sources/Load.php
Sources/ManagePermissions.php
Sources/Post.php
Sources/Subs.php
Sources/Subs-Post.php
index.template.php
Display.template.php
Post.template.php
Modifications.english.php

files here and I'll remove it.

Yeah, you can develop your forum on local (I use EasyPHP myself) and then you can use it on your live site.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 24, 2008, 08:18:04 AM
Quote from: Manu0372 on August 22, 2008, 02:42:49 PM

Your welcome. ;)
It looks nice in IE6 but not in IE7!  :-\
Please load up the MessageIndex.template.php I have add to this posting,
than it will look nice in IE7 too. ;)

Hi Manu0372,

While i was giving you the messageindex.template file. I had taken it from my default theme and not from dilbermc theme.

Before and After Replacing the modified and original messageindex.template file. I got a simple quote error.

I have mentioned the error while i use my default theme.

Quote
Template Parse Error!
There was a problem loading the /Themes/default/MessageIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected $end in .../Themes/default/MessageIndex.template.php on line 763

754:       $buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0">' . $txt['smf258'] . '</a>';
755:
756:    // How about new polls, can the user post those?
757:    if ($context['can_post_poll'])
758:       $buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll">' . $txt['smf20'] . '</a>';
759:
760:    return implode('  |  ', $buttonArray);
761: }
762:

763: ?>

764:
765:


I had attached the same file as you have modified for me.
Check out and help me to get the things work perfect in my default theme.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Puffbuster on August 24, 2008, 12:16:48 PM
SiNaN -

Here're the files you requested in order to manually remove SimplePortal from my site.

Question #1:  after uploading these new, repaired files, will SimplePortal not appear in the Package Manager?

Question #2:  I still really want to use SimplePortal once we get past this issue.  Keeping these repaired files as a clean backup, would it be advisable to attempt to upload and apply the mod again?



Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 24, 2008, 12:18:43 PM
Hi Author,

I have used SSI and enabled the SSI Poll in portal page.

When i poll and click submit.

It Shows this error.
Often i could see this also in Error log.

Fatal error: Call to undefined function AllowedToBlog() in /home/itacumen/public_html/forum/Sources/Load.php(1928) : eval()'d code on line 420
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 25, 2008, 10:58:41 AM
Puffbuster:

Are you sure that these are the files on your ftp? Cause I checked all the files and there isn't anything related to SimplePortal, they are clean.

If yes and it is displayed as installed in Packages then just delete the package from Packages directory and installed list.

asudhakar:

That error seems like an issue about a blog mod you use. Better you ask in that mod's support topic.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: fadich on August 26, 2008, 04:49:14 AM
Some mistakes in files SPortal.english.php, SPortal.english-utf8.php. There are twise the same thing write.
$txt['articleview'] = 'Article view template active:';
$txt['articleview'] = 'Article view template active:';


And russian translation in attach and some changes mat need for rus usage.

in ./Themes/default/languages/Who.russian-utf8.php find
$txt['who_index'] = 'Просматривает главную страницу <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';
replace with
$txt['who_index'] = 'Просматривает <a href="' . $scripturl . '">сайт</a>.';
$txt['whoall_forum'] = 'Просматривает <a href="' . $scripturl . '?action=forum">форум</a>.';


Sotty for my bad english  ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 26, 2008, 04:50:22 AM
Yeah, we are aware of that duplicate strings.

Thanks for the translation. :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ke4obt on August 26, 2008, 07:40:25 AM
Hey y'all ,
Seems I have a small problem, just installed SP-2.04
(no problems there)
then I turned the portal on, clicked the home butten and got this :
Database Error
Unknown column 'force_view' in 'field list'
file: /home/content/m/i/c/mickeymaam/html/hraus/hraforums/Sources/Subs-SPortal.php
Line: 37 

  the only thing on line 37 is a "/".
Is this a code error or a install error.

Now I am new to all of this and to make it just a little more
challedging I'M BLIND so whatever help you can give needs to be in the dummy's guide stile .

Then when this little boo-boo gets taken care of I have a few questions to ask.

   Thanks for the help, Flip
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 26, 2008, 07:46:05 AM
Upload the file attached to your forum root (where index.php is), then call it from your browser like:

http://www.site.com/upgrade02.php

Once the process is completed, delete the file.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ke4obt on August 26, 2008, 09:53:00 AM
Hey, SiNaN,
that did the trick. Thanks bunches.
Now, there are two more things I need to try to figure out:
1 - I've got "recent posts user preferences" mod installed. There is code to place where I want to show the block. Since Simple Portal says you can set up a custom block, how would I go about putting that code into a custom block in Simple Portal? The code that needs to be placed to call the block is require_once('SSI.php');if (function_exists('ssi_recentPostsPref')) ssi_recentPostsPref();
2 - Also, I've got the "Affiliates" mod installed. It shows on the stats page which is fine, but I would also like for it to be called at the bottom of the main page - which is of course Simple Portal - before the user goes into the forums. Any idea on how to call the Affiliates into SP? I'm guessing it's a piece of code to just place in one of the files, but have no clue what the code might be or where to put it.
Thanks again,
Flip

ps - the help you gave on fixing the user permission info was great, until I went and noticed that I had put the collapsible block code in there three time some how - so, of course, the block showed 3 different times. I got that fixed. Now it works beautifully. Thanks for your patience with me. :)  Flip
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 26, 2008, 09:59:48 AM
Ah, I just remembered you. You're welcome, we are trying to do our best.

1) Admin CP >> SPortal Admin >> Add Block

Select PHP Block. Then copy the code you gave into the "content" textbox. It should be working.

2) I never used Affiliates mod. But try creating another PHP Block and using this code as the content:

global $modSettings;

if ($modSettings['affiliates_marquee'] == 0)
echo '<span class="smalltext"> ' . parse_bbc($modSettings['affiliates']) . '</span>';

if ($modSettings['affiliates_marquee'] == 2)
echo '<marquee behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span class="smalltext"> ' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';

if ($modSettings['affiliates_marquee'] == 1)
echo '<marquee><span class="smalltext"> ' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Puffbuster on August 26, 2008, 11:23:31 AM
SiNaN -

Sorry, I get the subdomain thing confused ... take a look at these:
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 26, 2008, 11:41:34 AM
These files also don't have anything related to SP, they are clean.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: babjusi on August 26, 2008, 11:49:26 AM
Good work [SiNaN] :) It looks very nice, well done
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Puffbuster on August 26, 2008, 12:04:41 PM
Okay, then I'm going insane (which happens at least once or twice a day) ...

You're right.  The SimplePortal Mod is no longer showing up in the Package Manager.  I haven't done anything to affect it ... at least that I'm aware of ... but it's gone now.

Thanks!

So ... should I try reapplying the mod?  And what if I have the same problem with being unable to modify/delete a block?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 26, 2008, 12:07:44 PM
babjusi:

Thanks, babjusi.

Puffbuster:

Not right now. I've found the exact solution for this bug. Tomorrow I'll give you a different package which will include the fix. Is that okay for you too?

Title: Re: SimplePortal (2.0.4 Released!)
Post by: Puffbuster on August 26, 2008, 01:20:42 PM
That'll work ... I'll be waiting with bated breath (well, not really ... butcha know what I mean).
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ke4obt on August 26, 2008, 01:52:59 PM
Hey, SiNaN,

YAHOOOOOO, that realy worked great!!!
All I can say is Thank-You,Thank-You,Thank-You and oh ya Thank-You.

Now for a dumb question, When you go into the admin menu theirs a catagory and artical section under the Simple Portal menu what do they affect and second , I think i saw a post by you but now can not find it, but you told someone how to add a second menu/nav bar
directly under the one at the top,
I know its here someplace, can you point me in the right direction?.

Tnx. Flip
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 26, 2008, 03:13:57 PM
You're welcome. :)

Categories are article categories. Useful to organize your articles.

Articles are the selected topics from forums to be displayed in the portal.

Well, probably I just said them to use a drop down menu. You can find it in Tips and Tricks board.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 26, 2008, 03:36:30 PM
Hi Author,

We have used SSI to show the polls.

I have over 200 polls in my site.

Once just 10 polls ended.

My poll link shows nothing, say its blank now to my login alone even in guest login too.

And if we have 10 users online then ok.

If more than 100 users online , my online block at right side goes till the bottom.

And my page takes 68 Queries to complete the page.

Any suggestion on these points.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ke4obt on August 26, 2008, 03:44:50 PM
Hey SiNaN,

  No it was in this section someplace just don't know where, and maybe you did not post it, could have been anybody. Oh well can that be done , I mean a Milty level nav-bar ? and to find-out where do I go?

And by the way do you ever sleep, I always see you on line.

   TNX Flip 
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 26, 2008, 04:43:52 PM
asudhakar:

I remember we have modified your SSI poll functions. We changed it so that it just takes poll from a board. Probably all the polls in that board were all closed. Maybe you put the codes of the SSI function you use so that we can check it.

For Who's Online problem, this should fix it:

../Sources/SPortal.php

Find:

LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);

Replace:

LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LIMIT 20", __FILE__, __LINE__);


With this code, it will just get 20 members online.

ke4obt:

I didn't write such a post. But it shouldn't be hard. If you have a table in your template_menu, then create a new row in that table. If its list, then create a new list just after that, in the same function. Maybe you start a topic in SMF Coding Discussion (http://www.simplemachines.org/community/index.php?board=60.0) or Graphics and Templates (http://www.simplemachines.org/community/index.php?board=34.0) providing your theme and where you actually you want the other menu.

No, I don't. I'm just a mod writer bot. :P
Title: Re: SimplePortal (2.0.4 Released!)
Post by: gcs89 on August 26, 2008, 04:53:50 PM
hi sinan i'm getting a weird error while trying to modify the content of my portal,
my mozilla have prob to connect with server so i use ie which is giving me this problem now  :(

This error (HTTP 406 Not Acceptable) means that Internet Explorer was able to receive information from the website you visited, but the information was not in a format that Internet Explorer can display.

For more information about HTTP errors, see Help.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 26, 2008, 04:59:36 PM
Can you try adding this code to your .htaccess file?

<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>
Title: Re: SimplePortal (2.0.4 Released!)
Post by: gcs89 on August 26, 2008, 05:19:02 PM
Quote from: [SiNaN] on August 26, 2008, 04:59:36 PM
Can you try adding this code to your .htaccess file?

<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>


thank you i'll try tht,
can u tell me a solution,
right now i'm able to browse my site from other pc's but not from my pc,
all site hosted on my server are showing me server connection interrupted error thnks alot
sorry i've questioned in wrong area
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 26, 2008, 05:31:33 PM
Unfortunately I don't have any idea about that error. Create a topic here and I hope you will get an answer:

http://www.simplemachines.org/community/index.php?board=9.0
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ke4obt on August 26, 2008, 06:01:14 PM
Hey SiNaN,

Thats ok, but might be a nice mod for someone to think about makeing.
If only I new more about doing that kind of stuff.
I did find a nother section where someone else was able to do just what I want and you had posted to them to be vary carefull, so I left a message now I sit and wait .

Guess you never got the calender to work in the portal?
Well talk to ya later Flip
Title: Re: SimplePortal (2.0.4 Released!)
Post by: gcs89 on August 26, 2008, 06:18:30 PM
its okay thank you sinan,
some proxy sites are working now
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 26, 2008, 06:22:44 PM
ke4obt:

I'm preparing a second menu tip now, hope it will help you too.

For the calendar issue, there should be a solution in www.simpleportal.net

gcs89:

You're welcome.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: runebergen on August 26, 2008, 06:45:45 PM
Quote from: [SiNaN] on August 26, 2008, 06:22:44 PM


..... should be a solution in www.simpleportal.net


http://simpleportal.net/index.php?action=forum   ay ay aya ya... :D :D :D 

loving the sneak preview of new features

Very good!!!

Title: Re: SimplePortal (2.0.4 Released!)
Post by: ccbtimewiz on August 26, 2008, 08:06:50 PM
Quote from: runebergen on August 26, 2008, 06:45:45 PM
Quote from: [SiNaN] on August 26, 2008, 06:22:44 PM


..... should be a solution in www.simpleportal.net


http://simpleportal.net/index.php?action=forum   ay ay aya ya... :D :D :D 

loving the sneak preview of new features

Very good!!!



Indeed. :P
Title: Re: SimplePortal (2.0.4 Released!)
Post by: AlenNS on August 26, 2008, 08:11:35 PM
Sinan, are you planing to make something like this for 2.x?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ccbtimewiz on August 26, 2008, 08:13:58 PM
Quote from: AlenNS on August 26, 2008, 08:11:35 PM
Sinan, are you planing to make something like this for 2.x?

SP is currently being worked on for SMF 2.0 BETA. There's a small announcement on the SP.net site. :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: AlenNS on August 26, 2008, 09:03:07 PM
Thanks for the answer. :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Jakki on August 27, 2008, 08:37:46 AM
I just have to say, "I love it".  I like things simple and easy...
Title: Re: SimplePortal (2.0.4 Released!)
Post by: osataken on August 27, 2008, 11:22:14 AM
Hi Sinan,

First of all, thank you for this mod. I can install it flawlessly, but I do have only 1 problem about publishing article when posting. (the publish dropdown box didn't appear)

Could you help me to figure this problem?

Note that : I use custom template and other SMF translation (Thai).
I've tried to copy code from upgrade02.xml to ${sourcedir}/Post.php

// An array to hold all the attachments for this topic.
$context['current_attachments'] = array();

if (empty($topic) && (allowedTo('sp_add_article') || allowedTo('sp_moderate'))) {

require_once($sourcedir . '/Subs-SPortal.php');

$context['list_categories'] = getCategoryInfo();
}


If I add the code snippet above to Post.php, the publish article dropdown box will be appeared, but the topic didn't display on the first page as an article after I selected publish and post.

Do I have to do any additional configurations to make this functionality work?

Thanks,

Ken
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ke4obt on August 27, 2008, 01:02:44 PM
SiNaN,
quick question, on the front page, under recent topics, there is an image of 2 sheets of paper (at least that's what my wife told me). What does that image do or represent? When I go over it, my screen reader just says "xx". I would like to know what it represents so I can label it for the other blind users of my site.
Thanks,
Flip
Title: Re: SimplePortal (2.0.4 Released!)
Post by: BigMike82 on August 28, 2008, 12:56:00 AM
Hi SiNAN,

This is amazing. Just installed tonight.

Not sure if you remember my forum, but there are two main boards. Is there anyway to have two blocks in the middle, one showing recent topics that have replies from one board, and another block showing recent topics from the other board?

Thanks,
Mike
Title: Re: SimplePortal (2.0.4 Released!)
Post by: FITE-COMMANDER on August 28, 2008, 01:23:53 AM
hey   i want my SMF to have articles from Simple Portal features but I also want my SMF forum boards to show on front how can I go about doing this.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on August 28, 2008, 02:20:30 AM
@osataken,
If you are using Simple Portal Version 2.04, then there isn't meant to be a checkbox or dropdown box, to make the post/topic into an article. This is now down from the Admin panel or by using the "Make Article" button, on topic display.

@ke4obt,
Its the generic message icon for a topic or message. Sadly, its inbuilt into SMF, so its not that easy to change. I will try to find a solution.

@BigMike82,
Use the "Board News Block" block.

@FITE-COMMANDER,
This is not currently possible, however it should be possible with the next version of Simple Portal, that will have forum block integration. You will be able to turn off the Portal and then use Simple Portal to add blocks around your board display page. Just remember that Simple Portal is meant to be a 'Portal'. ;)

Also, A note to all Simple Portal Users.
Remember that SimplePortal.net (http://simpleportal.net/index.php) has been launched, you can now recieve support on our very own support forums (http://simpleportal.net/index.php?action=forum).

(http://simpleportal.net/simpleportal.net-logo-small.gif) (http://simpleportal.net)

Title: Re: SimplePortal (2.0.4 Released!)
Post by: BigMike82 on August 28, 2008, 11:49:05 AM
Thanks LHVWB,

Where do I find the Board ID for the parameters?

- Mike
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ccbtimewiz on August 28, 2008, 12:08:02 PM
Quote from: BigMike82 on August 28, 2008, 11:49:05 AM
Thanks LHVWB,

Where do I find the Board ID for the parameters?

- Mike

You can find them by hovering over boards and looking at the URL.

http://simpleportal.net/index.php?board=8.0

That part.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: BigMike82 on August 28, 2008, 12:16:51 PM
great, thanks!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 04:06:23 AM
Hi friends ,
i installed this simpleportal with out any errors in my smf 1.1.5
After installing i went to sportal Admin and enabled  Portal is active?.
But, after enable i am getting my forum looks like this as shown below.

Please help me....

Thank you.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on August 29, 2008, 04:22:33 AM
@ousu,
Have you created any blocks? You need to create and enble some blocks in the Sportal Admin area, before they will show on the portal. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 04:33:52 AM
Quote from: LHVWB on August 29, 2008, 04:22:33 AM
@ousu,
Have you created any blocks? You need to create and enble some blocks in the Sportal Admin area, before they will show on the portal. ;)

Thank you very much ...I will try this
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 09:43:07 AM
How to add blocks which are not predefined:

example :Shout box
I would like to keep the shoutbox in the homepage.

I added some blocks, but for all words it is showing as dDot     Online Guests     :     20
Dot    Online Users    :    19
Dot    Hidden Users    :    0
Dot    Total Users    :    39
Dot    Online Users    :    


How can I remove the Dot before the online, hidden,total etc.....


Please assist me in this regard.

Thank you.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Chadrew on August 29, 2008, 10:05:45 AM
Is it possible to use a percentage for left/right block width?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: jimvy on August 29, 2008, 10:28:46 AM
Ooooooh I love this! I got some questions/suggestions:

1. I would like to know if I can make my board index in the center with the blocks on either side? If so how is that done (I'm thinking maybe copy the board.index.php contents to a php block?)

2. I am also having a bit of troubles adding into the html block my flashmp3 player. The player doesn't show up when I put this into the html block. 

<html>
<head>
<!-- Location of javascript. -->
<script language="javascript" type="text/javascript" src="swfobject.js" ></script>
</head>
<body>
<!-- Div that contains player. -->
<div id="player">
</div>
<!-- Script that embeds player. -->
<script language="javascript" type="text/javascript">
var so = new SWFObject("flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file.
so.addParam("quality", "high");
so.addVariable("content_path","mp3"); // Location of a folder with mp3 files (relative to php script).
so.addVariable("color_path","default.xml"); // Location of xml file with color settings.
so.addVariable("script_path","flashmp3player.php"); // Location of php script.
so.write("player");
</script>
</body>
</html>


3. I would also love to make a "Quick upload" box that would allow my logged in members to upload a mp3 file to the /music/mp3 directory.

4. Is there a way to add the flashchat integration mod (that says who's in the chat room) into the users online block?

This is all I can think of for now and probably since much of my questions are "how can I do this" after I understand how to do one thing I'll be able to figure out how to do the rest and any future questions too.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Chadrew on August 29, 2008, 11:53:55 AM
How do I change the page title of my new index page (portal)? For now it's just forum name. I'm able to change the title for my forums, but not for the portal.

Edit: nevermind, solved.
SPortal.php

   $context['page_title'] = $context['forum_name'] . ' - insert whatever you want here';
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 29, 2008, 03:20:07 PM
ousu:

Create a PHP block and use the codes that you used to display Shoutbox on BoardIndex.

Chadrew:

You need a manul change.

../Themes/defaut/SPortal.template.php

Find:

width="' . $modSettings['leftwidth'] : '', '">';

Replace:

width="' . $modSettings['leftwidth'] . '%' : '', '">';

The same for the right side too.

jimvy:

1) Just wait some more for the version 2.1. It has that feature. You make each block to show in the actions or boards you want.

2) Can you just try this codes:

<!-- Location of javascript. -->
<script language="javascript" type="text/javascript" src="swfobject.js" ></script>
<!-- Div that contains player. -->
<div id="player">
</div>
<!-- Script that embeds player. -->
<script language="javascript" type="text/javascript">
var so = new SWFObject("flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file.
so.addParam("quality", "high");
so.addVariable("content_path","mp3"); // Location of a folder with mp3 files (relative to php script).
so.addVariable("color_path","default.xml"); // Location of xml file with color settings.
so.addVariable("script_path","flashmp3player.php"); // Location of php script.
so.write("player");
</script>


3) How do they upload it outside the portal?

4) I'm sure you can, but I have to check it.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Chadrew on August 29, 2008, 03:59:23 PM
Thank you! :D
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 05:25:26 PM
I tried to insert the code in the PHP block, but it receives an error

Parse error: syntax error, unexpected '<' in /home/students/public_html/Sources/SPortal.php(1586) : eval()'d code on line 1
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 29, 2008, 05:44:41 PM
Do not add php opening and closing tags there. No need for these => <?php and ?>
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 05:52:13 PM
Do you mean to remove the <?php and ?>
from the SPortal.php file ?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 29, 2008, 05:53:32 PM
No. Can you paste here the codes that you are using as the content for PHP block?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 05:59:36 PM
<div id="yshout">Loading...</div>
<a href="http://studentsmasti.net/index.php?action=unread">Unread posts</a>|
<a href="http://studentsmasti.net/index.php?action=unreadreplies">Unread replies</a>
<br>
<div align=center><b><font color="red">Rule: Strictly only English</font></b></div>
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 29, 2008, 06:03:29 PM
Can you just put this:

      echo '
                     <br /><b>',$txt['yshout_shoutbox'],'</b><br /><br />
                     <div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 06:05:50 PM
You are Excelent !!!
It works.....


Please let me help in removing the dot word from this

Dot    Online Users    :    19
Dot    Hidden Users    :    0
Dot    Total Users    :    39
Dot    Online Users    :   
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 06:08:09 PM
 :( :( :( :(

I am not having the Forum button to see the posts....
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 29, 2008, 06:08:58 PM
Go to:

../Themes/default/images/

copy dot.gif and arrow.gif.

Paste them here:

../Themes/your_theme/images/

Then if you still will like to remove them, just inform me here.

You need to add a forum button manually for your theme. What's your theme?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 06:10:52 PM
My theme name is    MysticJade
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 06:22:14 PM
Now, the dot is replaced with the image..
It's ok the images are nice to see.


How to add the button ? ???
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 29, 2008, 06:31:25 PM
Have a look at this topic in documentation:

How do you add custom tabs to the Core (default) theme menu? (http://docs.simplemachines.org/index.php?topic=564)

I can do it for you too, but it would be better if you learn doing that. Cause you will probably need that a lot.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 06:34:44 PM
Thank you...I will try to do my self.
If i have any issues, i will be get back to you for the help.

In the users online block, how can i keep a scroll button , because if there are 50 users online it takes half of the page.

Thank you very much for the help.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 29, 2008, 06:40:11 PM
Adding a scroll button needs quite a lot of edits there. I think we will fix it on the first update.

Though you can limit the number of users to show there. I've given the code on the page 59 or 60.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 06:53:50 PM
Great support...I added the button...


I added
// Show the [Forum] button.
   echo   '<li><a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a></li>';

Now we can go to the next step.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 29, 2008, 07:14:34 PM
Do we have any?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 29, 2008, 08:21:53 PM
Please help me in adding the scroll bar.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: sornok on August 30, 2008, 05:45:00 PM
hi

I am making a website about World of Warcraft

http://www.fusion-net.eu/

When I found SMF, I also found simpleportal, and it all came clear that it was a good idea :D

Altho, I have a little problem.

Since the site is abour WoW. I installed a mod called "WoW Itemstats", which is supposed to show items used with a [item][/item] tag with a different color and a tooltip. It works fine with the forum, but it doesn't work with the forum. If you want to check it, visit the above webpage, check at the bottom articles called "Itemstats Test ", you will see the [Stormrage Signet Ring] but no tooltip with it. If you click on the item to see the replies, then it will work fine.

My question is, has anyone tried that? Is there a way to fix it ? Any help would be appreciated. Thank you!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Eliana Tamerin on August 30, 2008, 06:01:52 PM
I believe the articles strip BBC, if I remember correctly. That's why it won't work.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: sornok on August 31, 2008, 07:43:55 AM
QuoteI believe the articles strip BBC, if I remember correctly. That's why it won't work.

I am afraid this doesn't help me :/

Some more info or a link to help me ?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ccbtimewiz on August 31, 2008, 08:01:17 AM
Quote from: sornok on August 31, 2008, 07:43:55 AM
QuoteI believe the articles strip BBC, if I remember correctly. That's why it won't work.

I am afraid this doesn't help me :/

Some more info or a link to help me ?

It does parse it.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 31, 2008, 08:03:27 AM
Hi,
In the users online block, how can i keep a scroll button , because if there are 50 users online it takes half of the page.

Please help me..
Thank you
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on August 31, 2008, 12:52:36 PM
Quote from: ousu on August 31, 2008, 08:03:27 AM
Hi,
In the users online block, how can i keep a scroll button , because if there are 50 users online it takes half of the page.

Please help me..
Thank you


For Who's Online problem, this should fix it:

../Sources/SPortal.php

Find:

LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);

Replace:

LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LIMIT 20", __FILE__, __LINE__);


With this code, it will just get 20 members online.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on August 31, 2008, 01:51:45 PM
sornok:

Did you install this mod?

http://custom.simplemachines.org/mods/index.php?mod=247

ousu:

I'm quite busy these days, sorry.

SPortal.php

Find:

$online['total_users'] = $online['num_users'] + $online['guests'];

echo '<table>


Replace:

$online['total_users'] = $online['num_users'] + $online['guests'];

echo '<table width="100%">


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>';


Replace:

echo '
<tr>
<td colspan="4">
<div style="border: 0pt none; height: 100px; overflow: auto;">
<table>';
foreach ($online['users'] as $user)
echo '<tr>
<td 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>
</div>
</td>
</tr>';


You can change the height with the height attribute in style.

For all:

I think you will get a better support if you ask in www.simpleportal.net (http://www.simpleportal.net).
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ousu on August 31, 2008, 03:49:36 PM
Quote from: [SiNaN] on August 31, 2008, 01:51:45 PM
sornok:

Did you install this mod?

http://custom.simplemachines.org/mods/index.php?mod=247

ousu:

I'm quite busy these days, sorry.

SPortal.php

Find:

$online['total_users'] = $online['num_users'] + $online['guests'];

echo '<table>


Replace:

$online['total_users'] = $online['num_users'] + $online['guests'];

echo '<table width="100%">


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>';


Replace:

echo '
<tr>
<td colspan="4">
<div style="border: 0pt none; height: 100px; overflow: auto;">
<table>';
foreach ($online['users'] as $user)
echo '<tr>
<td 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>
</div>
</td>
</tr>';


You can change the height with the height attribute in style.

For all:

I think you will get a better support if you ask in www.simpleportal.net (http://www.simpleportal.net).


Thank you very much

It works now.....
Title: Re: SimplePortal (2.0.4 Released!)
Post by: jimvy on August 31, 2008, 04:17:47 PM
Quote from: [SiNaN] on August 29, 2008, 03:20:07 PM

jimvy:
2) Can you just try this codes:

<!-- Location of javascript. -->
<script language="javascript" type="text/javascript" src="swfobject.js" ></script>
<!-- Div that contains player. -->
<div id="player">
</div>
<!-- Script that embeds player. -->
<script language="javascript" type="text/javascript">
var so = new SWFObject("flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file.
so.addParam("quality", "high");
so.addVariable("content_path","mp3"); // Location of a folder with mp3 files (relative to php script).
so.addVariable("color_path","default.xml"); // Location of xml file with color settings.
so.addVariable("script_path","flashmp3player.php"); // Location of php script.
so.write("player");
</script>
That doesn't show the player, it's just an empty box.

Quote from: [SiNaN] on August 29, 2008, 03:20:07 PM
3) How do they upload it outside the portal?
Right now they go to http://bunny-troopers.tw-family.us/music/upload.php and upload them.

upload.php

<?php
$uploadLocation 
"\tmp";
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
   <title>MP3 Uploader</title>
   <link href="style/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="main">
      <div id="caption">MP3 Uploader - Uploads are limited to 10 MB each, MP3 format only!</div>
      <div id="icon">&nbsp;</div>
      <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="fileForm" id="fileForm" enctype="multipart/form-data">
        File to upload:<center>
        <table>
          <tr><td><input name="upfile" type="file" size="36"></td></tr>
          <tr><td align="center"><br/><input class="text" type="submit" name="submitBtn" value="Upload"></td></tr>
        </table></center> 
      </form>
<?php    
    
if (isset($_POST['submitBtn'])){
?>

      <div id="caption">RESULT</div>
      <div id="icon2">&nbsp;</div>
      <div id="result">
        <table width="100%">
<?php
$target_path 
$_SERVER['DOCUMENT_ROOT'] . '/music/mp3/' basename$_FILES['upfile']['name']);
//$target_path = $uploadLocation . basename( $_FILES['upfile']['name']);

if(move_uploaded_file($_FILES['upfile']['tmp_name'], $target_path)) {
    echo 
"The file: ".  basename$_FILES['upfile']['name']).
    
" has been uploaded!";
} else{
    echo 
"There was an error uploading the file, please try again!";
}
?>

        </table>
     </div>
<?php            
    
}
?>

    <div>
</body>   


I'm thinking that it would maybe need to be the html part to display the upload interface but then call the php script so that the paths stay relative to the player and the player's relative path to the mp3's.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Chadrew on August 31, 2008, 08:44:57 PM
Hello,
I wanted the Who's Online look more like in the forum (comma-separated names, not one on each line) and since I know next to nothing about PHP, I tried to copy the most things from BoardIndex.php. Basically I added:
$online['userslist'] = array();
$online['userslist'][$row['logTime'] . $row['memberName']] = empty($row['showOnline']) ? '<i>' . $link . '</i>' : $link;
if (!isset($online['online_groups'][$row['ID_GROUP']]))
$online['online_groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'color' => $row['onlineColor']
);

krsort($online['userslist']);
And to output:
</tr><tr><td colspan="4" style="padding-left: 10px;"><span class="smalltext">';
echo implode(', ', $online['userslist']);
echo '</span></td></tr></table>';


Here's the whole thing if you need it:

function sp_whosOnline()
{
global $scripturl, $db_prefix, $user_info, $txt, $settings, $online;

$result = db_query("
SELECT
lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}log_online AS lo
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);

$online['users'] = array();
$online['userslist'] = array();
$online['guests'] = 0;
$online['hidden'] = 0;
$online['buddies'] = 0;
$show_buddies = !empty($user_info['buddies']);

while ($row = mysql_fetch_assoc($result))
{
if (!isset($row['realName']))
$online['guests']++;
elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))
{
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';

// Bold any buddies.
if ($show_buddies && in_array($row['ID_MEMBER'], $user_info['buddies']))
{
$online['buddies']++;
$link = '<b>' . $link . '</b>';
}

$online['users'][$row['logTime'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'hidden' => empty($row['showOnline']),
'is_last' => false,
);
}
else
$online['hidden']++;

$online['userslist'][$row['logTime'] . $row['memberName']] = empty($row['showOnline']) ? '<i>' . $link . '</i>' : $link;

if (!isset($online['online_groups'][$row['ID_GROUP']]))
$online['online_groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'color' => $row['onlineColor']
);
}
mysql_free_result($result);

if (!empty($online['users']))
{
krsort($online['users']);
krsort($online['userslist']);
$userlist = array_keys($online['users']);
$online['users'][$userlist[count($userlist) - 1]]['is_last'] = true;
}
$online['num_users'] = count($online['users']) + $online['hidden'];
$online['total_users'] = $online['num_users'] + $online['guests'];

echo '<table>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlineguest'], '</td>
<td>:</td>
<td>', $online['guests'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlineuser'], '</td>
<td>:</td>
<td>', $online['num_users'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlinehuser'], '</td>
<td>:</td>
<td>', $online['hidden'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlinetuser'], '</td>
<td>:</td>
<td>', $online['total_users'],'</td>
</tr>';
if(!empty($online['users']))
echo ' <tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" />
</td><td>', $txt['sp-onlineouser'], '</td>
<td>:</td>
<td>&nbsp;</td>
</tr><tr><td colspan="4" style="padding-left: 10px;"><span class="smalltext">';
echo implode(', ', $online['userslist']);
echo '</span></td></tr></table>';
}


It seems when there's a hidden user, it messes the thing up (shows same name twice). Any way to fix this? If that's too much stuff too look at, it's okay too.

Thanks!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Chadrew on August 31, 2008, 10:46:35 PM
I've got another (unrelated) question. I'd like to put a 468x60 banner on where the middle-bottom block is. But I don't want a table and a title displayed around it. As far as I understand, SimplePortal stores it's template in the MySQL DB, and not in a file. So how would I go about it? Just a general direction is fine.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: learjet45 on September 02, 2008, 12:15:22 AM
I think i found a small bug.

Under the configuration for a Top Topics Block, it says for Parameter 1 (to base results off of views or replies) that "Enter 1 for replies, 0 for views", but when I enter 1 it bases off of views and 0 for replies.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on September 02, 2008, 07:49:51 PM
jimvy:

I should check the codes, before giving you an answer. Will turn back you shortly.

Chadrew:

Create a new PHP block and use this codes:

global $boarddir;

require_once($boarddir . '/SSI.php');

ssi_whosOnline();


Chadrew:

We don't have that feature for now. You can edit SPortal.template.php for this purpose. But I suggest you waiting for a new release for that.

learjet45:

We are aware of that bug, thanks anyway for reporting it. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Adish - (F.L.A.M.E.R) on September 02, 2008, 10:25:57 PM
I think i have a problem... I cannot see the forum if i add the block... i mean the bloack appears but the forum disapears.. I am using custome theme and i know i have to do the edit in the navigation to separate the portal page and the forum page, but i actually wanted the portal to work with some of the blocks like the upper once.. and the lower once as i can add in php adv codes.... or i am having some other issue.. kindly help...
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Chadrew on September 02, 2008, 10:54:39 PM
Thank you so much [SiNaN], what a simple solution there :)

Another question (sorry) :-X

Is it because of SimplePortal that I cannot access my forum via wireless? I get this message:
"Sorry, this section isn't available for wireless users at this time."
More specifically, I can't access mysite.com but I can access mysite.com/forum/ (I have SimplePortal and PrettyURLs installed).

I can access my other forum (which doesn't have SimplePortal installed, but does have PrettyURLs) by using the same phone just fine, so I think that might be the case?

Title: Re: SimplePortal (2.0.4 Released!)
Post by: christinedlrp on September 03, 2008, 04:37:14 AM
I really do like this Portal.  Thanks to whoever created it.  My small problem is I can't figure how to make my custom blocks be the same width as the provided ones.  Are there files/settings I need to tweak to get all blocks to be the same width?  Thanks for your help.  :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ccbtimewiz on September 03, 2008, 11:20:06 AM
Quote from: Chadrew on September 02, 2008, 10:54:39 PM
Thank you so much [SiNaN], what a simple solution there :)

Another question (sorry) :-X

Is it because of SimplePortal that I cannot access my forum via wireless? I get this message:
"Sorry, this section isn't available for wireless users at this time."
More specifically, I can't access mysite.com but I can access mysite.com/forum/ (I have SimplePortal and PrettyURLs installed).

I can access my other forum (which doesn't have SimplePortal installed, but does have PrettyURLs) by using the same phone just fine, so I think that might be the case?



It's been confirmed as a bug: http://simpleportal.devira.info/index.php?topic=192.msg961#msg961

Quote from: christinedlrp on September 03, 2008, 04:37:14 AM
I really do like this Portal.  Thanks to whoever created it.  My small problem is I can't figure how to make my custom blocks be the same width as the provided ones.  Are there files/settings I need to tweak to get all blocks to be the same width?  Thanks for your help.  :)

How exactly are you making your custom blocks?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on September 03, 2008, 01:42:58 PM
F.L.A.M.E.R:

I couldn't get your problem. But for now, blocks just appear on portal page.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Amun on September 03, 2008, 03:54:20 PM
I don't want to sound critical of this mod because on the contrary it looks like you did a wonderful job on it. I'm just curious what was the motivation of making this? When there is already a great well known portal system for smf. Or maybe a better question would be, is there an advantage of using this one over the other?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Adish - (F.L.A.M.E.R) on September 03, 2008, 05:01:43 PM
Quote from: [SiNaN] on September 03, 2008, 01:42:58 PM
F.L.A.M.E.R:

I couldn't get your problem. But for now, blocks just appear on portal page.

Oh okay.. can i make my forum appear on the portal page just under the blocks I have added ? Coz i am a bit lost in these settings. 1stly i activated my portal. That causes no changes. Then I added a top block. It remove the whole forum from that page and left just the top block. So i now want it like the top block to appear up along with the forum. Kind of non explainable but i think you might get my point...
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ccbtimewiz on September 03, 2008, 05:04:52 PM
Quote from: evilicy on September 03, 2008, 03:54:20 PM
I don't want to sound critical of this mod because on the contrary it looks like you did a wonderful job on it. I'm just curious what was the motivation of making this? When there is already a great well known portal system for smf. Or maybe a better question would be, is there an advantage of using this one over the other?

It's really up to the individual person to make a decision in which portal system they want to use. The Simple Portal Team in its entirety strive to make a portal that is simplistic-- that is easy to mod, to add additions to, and to easily operate in terms of website administration.

While we are fully aware that another portal system exists, that doesn't compensate the destruction or inability to create our own, and one to our liking.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: christinedlrp on September 03, 2008, 07:08:15 PM
Quote
How exactly are you making your custom blocks?


I go to the Portal Administration, then click "Add Block" and choose HTML Block.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: BigMike82 on September 04, 2008, 12:42:23 AM
Hi Everyone,

I posted this on the Portal Support page too:
http://simpleportal.devira.info/index.php?topic=206.0

Simply, I wanted to know where I can change the content in each block. Which page do I need to modify?

Also, Just wanted to know how to create a block that would show top topics from a specific board, ordered by most replies to that topic.
http://simpleportal.devira.info/index.php?topic=216.0


Thanks,
Mike
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ash1 on September 06, 2008, 04:52:19 PM
hi, i've installed simple portal mod and i think its cool :)

but, i've little problem with some tipe of error at the upper side, look at this:

http://www.evertech.info/forum2/

:(
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on September 06, 2008, 04:55:31 PM
Can you attach your Modifications.english.php file?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Adish - (F.L.A.M.E.R) on September 06, 2008, 05:13:05 PM
Quote from: F.L.A.M.E.R on September 03, 2008, 05:01:43 PM
Quote from: [SiNaN] on September 03, 2008, 01:42:58 PM
F.L.A.M.E.R:

I couldn't get your problem. But for now, blocks just appear on portal page.

Oh okay.. can i make my forum appear on the portal page just under the blocks I have added ? Coz i am a bit lost in these settings. 1stly i activated my portal. That causes no changes. Then I added a top block. It remove the whole forum from that page and left just the top block. So i now want it like the top block to appear up along with the forum. Kind of non explainable but i think you might get my point...
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ash1 on September 06, 2008, 06:08:10 PM
Quote from: [SiNaN] on September 06, 2008, 04:55:31 PM
Can you attach your Modifications.english.php file?

sorry but where i can find it? :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 06, 2008, 06:13:45 PM
@ash1,
You will find it in at '/themes/default/languages/Modifications.english.php'.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ash1 on September 06, 2008, 06:31:41 PM
ok, i find it :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 06, 2008, 06:38:59 PM
Fixed file is attached. :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ash1 on September 06, 2008, 06:45:16 PM
thanks!!!
its run all well now, what do you fix?
i want to learn more about smf code :D
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 06, 2008, 07:00:33 PM
I found the closing php tag ?> and then moved it to the end of the file. That causes an error, because the language strings/variables for SimplePortal were there as html, meaning that when SMF opened that file, it displayed that php code as html instead of running it as php.
?>
Title: Re: SimplePortal (2.0.4 Released!)
Post by: dwd2000 on September 06, 2008, 07:21:02 PM
Sorry, but I didn't read all 63 pages of this topic, but I did search the topic and didn't find what I was looking for. If the answer was here, I'm sorry.

I would like to edit what the "Who's Online Block" says.


I've searched the files that came with Simple Portal, but wasn't sure what to edit.  O:)

By the way, of the pages I DID read, I read that one person wasn't happy about your copyright. SMF, and the authors of the mods offer what they do for free, as well as EXCELLENT support. I have no problem showing my support to SMF and the mod teams. It's more than a fair trade.



Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 06, 2008, 07:29:49 PM
Do a search for 'sp_whosOnline()' in the '/sources/SPortal.php' file. That is the function which you want to edit. The html is near the end of that function. You will have to change the '$txt['var']' parts of the code to the strings that you want, although I can show you how to do it differently if you want to retain multiple language support. ;)

By the way. I would like to remind everyone that you can also receive support for Simple Portal, on our very own website - SimplePortal.net (http://www.simpleportal.net). :D
Title: Re: SimplePortal (2.0.4 Released!)
Post by: dwd2000 on September 06, 2008, 08:03:16 PM
Quote from: LHVWB on September 06, 2008, 07:29:49 PM
Do a search for 'sp_whosOnline()' in the '/sources/SPortal.php' file. That is the function which you want to edit. The html is near the end of that function. You will have to change the '$txt['var']' parts of the code to the strings that you want, although I can show you how to do it differently if you want to retain multiple language support. ;)

By the way. I would like to remind everyone that you can also receive support for Simple Portal, on our very own website - SimplePortal.net (http://www.simpleportal.net). :D

Usually, I have no problem altering stuff, but in this case, I'm going to have to ask you to actually give me the codes I need and where to put them.

I have 3 websites using SMF and use quite a few mods. I find it a little easier to use the main SMF site for support. If I have anything else after this issue, I promise to use your site.  O:)
P.S. - I just registered there.  ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on September 07, 2008, 07:09:31 AM
Quote from: F.L.A.M.E.R on September 06, 2008, 05:13:05 PM
Quote from: F.L.A.M.E.R on September 03, 2008, 05:01:43 PM
Quote from: [SiNaN] on September 03, 2008, 01:42:58 PM
F.L.A.M.E.R:

I couldn't get your problem. But for now, blocks just appear on portal page.

Oh okay.. can i make my forum appear on the portal page just under the blocks I have added ? Coz i am a bit lost in these settings. 1stly i activated my portal. That causes no changes. Then I added a top block. It remove the whole forum from that page and left just the top block. So i now want it like the top block to appear up along with the forum. Kind of non explainable but i think you might get my point...

As I said, blocks just appear on portal page for now. We are testing the functionality we want now on simpleportal.net.

Quote from: dwd2000 on September 06, 2008, 08:03:16 PM
Quote from: LHVWB on September 06, 2008, 07:29:49 PM
Do a search for 'sp_whosOnline()' in the '/sources/SPortal.php' file. That is the function which you want to edit. The html is near the end of that function. You will have to change the '$txt['var']' parts of the code to the strings that you want, although I can show you how to do it differently if you want to retain multiple language support. ;)

By the way. I would like to remind everyone that you can also receive support for Simple Portal, on our very own website - SimplePortal.net (http://www.simpleportal.net). :D

Usually, I have no problem altering stuff, but in this case, I'm going to have to ask you to actually give me the codes I need and where to put them.

I have 3 websites using SMF and use quite a few mods. I find it a little easier to use the main SMF site for support. If I have anything else after this issue, I promise to use your site.  O:)
P.S. - I just registered there.  ;)

Just look for the words in the ../Themes/default/languages/SPortal.english.php and change them as you wish.

Title: Re: SimplePortal (2.0.4 Released!)
Post by: dwd2000 on September 07, 2008, 10:43:09 AM
Quote
Quote from: dwd2000 on September 06, 2008, 08:03:16 PM
Quote from: LHVWB on September 06, 2008, 07:29:49 PM
Do a search for 'sp_whosOnline()' in the '/sources/SPortal.php' file. That is the function which you want to edit. The html is near the end of that function. You will have to change the '$txt['var']' parts of the code to the strings that you want, although I can show you how to do it differently if you want to retain multiple language support. ;)

By the way. I would like to remind everyone that you can also receive support for Simple Portal, on our very own website - SimplePortal.net (http://www.simpleportal.net). :D

Usually, I have no problem altering stuff, but in this case, I'm going to have to ask you to actually give me the codes I need and where to put them.

I have 3 websites using SMF and use quite a few mods. I find it a little easier to use the main SMF site for support. If I have anything else after this issue, I promise to use your site.  O:)
P.S. - I just registered there.  ;)

Just look for the words in the ../Themes/default/languages/SPortal.english.php and change them as you wish.

Sorry, but I'm still confused.

I think this is the part of the code in SPortal.php you are talking about:

function sp_whosOnline()

{

global $scripturl, $db_prefix, $user_info, $txt, $settings, $online;



$result = db_query("

SELECT

lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,

mg.onlineColor, mg.ID_GROUP

FROM {$db_prefix}log_online AS lo

LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)

LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);



$online['users'] = array();

$online['guests'] = 0;

$online['hidden'] = 0;

$online['buddies'] = 0;

$show_buddies = !empty($user_info['buddies']);



while ($row = mysql_fetch_assoc($result))

{

if (!isset($row['realName']))

$online['guests']++;

elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))

{

// Some basic color coding...

if (!empty($row['onlineColor']))

$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';

else

$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';



// Bold any buddies.

if ($show_buddies && in_array($row['ID_MEMBER'], $user_info['buddies']))

{

$online['buddies']++;

$link = '<b>' . $link . '</b>';

}



$online['users'][$row['logTime'] . $row['memberName']] = array(

'id' => $row['ID_MEMBER'],

'username' => $row['memberName'],

'name' => $row['realName'],

'group' => $row['ID_GROUP'],

'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],

'link' => $link,

'hidden' => empty($row['showOnline']),

'is_last' => false,

);

}

else

$online['hidden']++;

}

mysql_free_result($result);



if (!empty($online['users']))

{

krsort($online['users']);

$userlist = array_keys($online['users']);

$online['users'][$userlist[count($userlist) - 1]]['is_last'] = true;

}

$online['num_users'] = count($online['users']) + $online['hidden'];

$online['total_users'] = $online['num_users'] + $online['guests'];



echo '<table>

<tr>

<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>

<td>', $txt['sp-onlineguest'], '</td>

<td>:</td>

<td>', $online['guests'],'</td>

</tr>

<tr>

<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>

<td>', $txt['sp-onlineuser'], '</td>

<td>:</td>

<td>', $online['num_users'],'</td>

</tr>

<tr>

<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>

<td>', $txt['sp-onlinehuser'], '</td>

<td>:</td>

<td>', $online['hidden'],'</td>

</tr>

<tr>

<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>

<td>', $txt['sp-onlinetuser'], '</td>

<td>:</td>

<td>', $online['total_users'],'</td>

</tr>';

if(!empty($online['users']))

echo ' <tr>

<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" />

</td><td>', $txt['sp-onlineouser'], '</td>

<td>:</td>

<td>&nbsp;</td>

</tr>';



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>';

}


I have also attached SPortal.english.php. I can't find the '$txt['var']' that refers to the wording. I can see the '$txt['var']' in SPortal.php, but can't find the corresponding place to make the edits.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: dwd2000 on September 07, 2008, 10:46:02 AM
Quote from: dwd2000 on September 07, 2008, 10:43:09 AM
Quote
Quote from: dwd2000 on September 06, 2008, 08:03:16 PM
Quote from: LHVWB on September 06, 2008, 07:29:49 PM
Do a search for 'sp_whosOnline()' in the '/sources/SPortal.php' file. That is the function which you want to edit. The html is near the end of that function. You will have to change the '$txt['var']' parts of the code to the strings that you want, although I can show you how to do it differently if you want to retain multiple language support. ;)

By the way. I would like to remind everyone that you can also receive support for Simple Portal, on our very own website - SimplePortal.net (http://www.simpleportal.net). :D

Usually, I have no problem altering stuff, but in this case, I'm going to have to ask you to actually give me the codes I need and where to put them.

I have 3 websites using SMF and use quite a few mods. I find it a little easier to use the main SMF site for support. If I have anything else after this issue, I promise to use your site.  O:)
P.S. - I just registered there.  ;)

Just look for the words in the ../Themes/default/languages/SPortal.english.php and change them as you wish.

Sorry, but I'm still confused.

I think this is the part of the code in SPortal.php you are talking about:

function sp_whosOnline()

{

global $scripturl, $db_prefix, $user_info, $txt, $settings, $online;



$result = db_query("

SELECT

lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,

mg.onlineColor, mg.ID_GROUP

FROM {$db_prefix}log_online AS lo

LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)

LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);



$online['users'] = array();

$online['guests'] = 0;

$online['hidden'] = 0;

$online['buddies'] = 0;

$show_buddies = !empty($user_info['buddies']);



while ($row = mysql_fetch_assoc($result))

{

if (!isset($row['realName']))

$online['guests']++;

elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))

{

// Some basic color coding...

if (!empty($row['onlineColor']))

$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';

else

$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';



// Bold any buddies.

if ($show_buddies && in_array($row['ID_MEMBER'], $user_info['buddies']))

{

$online['buddies']++;

$link = '<b>' . $link . '</b>';

}



$online['users'][$row['logTime'] . $row['memberName']] = array(

'id' => $row['ID_MEMBER'],

'username' => $row['memberName'],

'name' => $row['realName'],

'group' => $row['ID_GROUP'],

'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],

'link' => $link,

'hidden' => empty($row['showOnline']),

'is_last' => false,

);

}

else

$online['hidden']++;

}

mysql_free_result($result);



if (!empty($online['users']))

{

krsort($online['users']);

$userlist = array_keys($online['users']);

$online['users'][$userlist[count($userlist) - 1]]['is_last'] = true;

}

$online['num_users'] = count($online['users']) + $online['hidden'];

$online['total_users'] = $online['num_users'] + $online['guests'];



echo '<table>

<tr>

<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>

<td>', $txt['sp-onlineguest'], '</td>

<td>:</td>

<td>', $online['guests'],'</td>

</tr>

<tr>

<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>

<td>', $txt['sp-onlineuser'], '</td>

<td>:</td>

<td>', $online['num_users'],'</td>

</tr>

<tr>

<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>

<td>', $txt['sp-onlinehuser'], '</td>

<td>:</td>

<td>', $online['hidden'],'</td>

</tr>

<tr>

<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>

<td>', $txt['sp-onlinetuser'], '</td>

<td>:</td>

<td>', $online['total_users'],'</td>

</tr>';

if(!empty($online['users']))

echo ' <tr>

<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" />

</td><td>', $txt['sp-onlineouser'], '</td>

<td>:</td>

<td>&nbsp;</td>

</tr>';



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>';

}


I have also attached SPortal.english.php. I can't find the '$txt['var']' that refers to the wording. I can see the '$txt['var']' in SPortal.php, but can't find the corresponding place to make the edits.

I found the problem.
I was still using 2.0.2
I upgraded to 2.0.4 and found the place to make the edits.  :o
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on September 07, 2008, 11:24:45 AM
So did you solve your problem? :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: dwd2000 on September 07, 2008, 11:31:05 AM
Quote from: [SiNaN] on September 07, 2008, 11:24:45 AM
So did you solve your problem? :)

Yes.  ;D

Now, I'm just trying to figure out how to put the number of spiders in the place of "Hidden Users". I've changed the text from "Hidden Users" to "Spiders", but just have to put the right code in place.

Thanks.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nibogo on September 07, 2008, 02:30:21 PM
SPortal in spanish:

http://www.simplemachines.org/community/index.php?topic=252307.msg1694414#msg1694414
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Marcus Forsberg on September 11, 2008, 08:26:34 AM
Is there any swedish translation for this?
If not I'll make one ;D
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Sudhakar Arjunan on September 11, 2008, 11:41:46 AM
Hey Nascar, hope Simple Portal does not have Swedish Translation so far.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 11, 2008, 05:25:58 PM
@Nascar,
If you are interesting in doing an official translation then you should sign up on our forums (http://simpleportal.net/index.php?action=forum) and make a topic there. ;)

(http://simpleportal.net/simpleportal.net-logo-small.gif) (http://simpleportal.net/index.php?action=forum)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: robbie93 on September 11, 2008, 06:19:19 PM
hi I tried to manually install but there is a lot of the text on index.php that isnt the same as in the manual install,  can anybody help? :D
Title: Re: SimplePortal (2.0.4 Released!)
Post by: dwd2000 on September 11, 2008, 06:20:08 PM
Quote from: dwd2000 on September 07, 2008, 11:31:05 AM
Quote from: [SiNaN] on September 07, 2008, 11:24:45 AM
So did you solve your problem? :)

Yes.  ;D

Now, I'm just trying to figure out how to put the number of spiders in the place of "Hidden Users". I've changed the text from "Hidden Users" to "Spiders", but just have to put the right code in place.

Thanks.

Any ideas or suggestions?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: learjet45 on September 11, 2008, 06:45:01 PM
Quote from: robbie93 on September 11, 2008, 06:19:19 PM
hi I tried to manually install but there is a lot of the text on index.php that isnt the same as in the manual install,  can anybody help? :D
Did you ever try installing using the package manager?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Captain Marvel on September 11, 2008, 10:22:32 PM
I just wanted to say thank you. I have this Mod installed on my forum and everyone just loves it. Nice job. :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 12, 2008, 02:29:40 AM
@robbie93,
You already have TinyPortal install on your website (or at least there is some tinyportal code in that file). It would be extremely difficult to use both portals at the same time, so you should try to use one or the other. ;)

@dwd2000,
Try replacing your entire 'sp_whosOnline()' function with this code.
function sp_whosOnline()
{
    global $scripturl, $db_prefix, $user_info, $txt, $settings, $online, $modSettings;

    $result = db_query("
        SELECT
            lo.ID_MEMBER, lo.logTime, lo.url, mem.realName, mem.memberName, mem.showOnline,
            mg.onlineColor, mg.ID_GROUP
        FROM {$db_prefix}log_online AS lo
            LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
            LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);

    $online['users'] = array();
    $online['guests'] = 0;
    $online['hidden'] = 0;
    $online['buddies'] = 0;
     $online['spiders'] = array();
    $online['num_spiders'] = 0;   
    $show_buddies = !empty($user_info['buddies']);

    while ($row = mysql_fetch_assoc($result))
    {
        if (empty($row['realName']))
        {
            // Get the request parameters..
            $actions = @unserialize($row['url']);
           
            // Is a spider?
            $is_spider = ob_googlebot_getAgent($actions['USER_AGENT'], $spider_name, $agent);
           
            if (!$is_spider)
                $context['num_guests']++;
            else
            {
                $context['num_spiders']++;
               
                if ($modSettings['ob_googlebot_display_agent'])
                    $spider_name = $agent;
               
                if ($modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
                    $context['spiders'][] = $spider_name;
                else
                    $context['spiders'][$agent] = $spider_name;
            }
           
            continue;
        }
        elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))
        {
            // Some basic color coding...
            if (!empty($row['onlineColor']))
                $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
            else
                $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';

            // Bold any buddies.
            if ($show_buddies && in_array($row['ID_MEMBER'], $user_info['buddies']))
            {
                $online['buddies']++;
                $link = '<b>' . $link . '</b>';
            }

            $online['users'][$row['logTime'] . $row['memberName']] = array(
                'id' => $row['ID_MEMBER'],
                'username' => $row['memberName'],
                'name' => $row['realName'],
                'group' => $row['ID_GROUP'],
                'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
                'link' => $link,
                'hidden' => empty($row['showOnline']),
                'is_last' => false,
            );
        }
        else
            $online['hidden']++;
    }
    mysql_free_result($result);

    if (!empty($online['users']))
    {
        krsort($online['users']);
        $userlist = array_keys($online['users']);
        $online['users'][$userlist[count($userlist) - 1]]['is_last'] = true;
    }
    $online['num_users'] = count($online['users']) + $online['hidden'];
    $online['total_users'] = $online['num_users'] + $online['guests'];
    ksort($online['spiders']);

    // Allowed user to see spiders online?
    if (!allowedTo('googlebot_view'))
        $online['spiders'] = array();
   
    // Don't count all instances of a spider, only 1 for each different spider
    if (!empty($context['spiders']) && !$modSettings['ob_googlebot_count_all_instances'])
        $online['num_spiders'] = count($context['spiders']);
       
    // Diplay how many instances of each spider
    if (!empty($online['spiders']) && $modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
    {
        $spider_grouped = array_count_values($context['spiders']);
       
        $online['spiders'] = array();
        foreach ($spider_grouped as $k => $v)
            $online['spiders'][$k] = $k . ($v == 1 ? '' : ' (' . $v . ')');
    }

        echo '<table>
        <tr>
            <td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
            <td>', $txt['sp-onlineguest'], '</td>
            <td>:</td>
            <td>', $online['num_spiders'],'</td>
        </tr>
        <tr>
            <td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
            <td>', $txt['sp-onlineuser'], '</td>
            <td>:</td>
            <td>', $online['num_users'],'</td>
        </tr>
        <tr>
            <td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
            <td>', $txt['sp-onlinehuser'], '</td>
            <td>:</td>
            <td>', $online['hidden'],'</td>
        </tr>
        <tr>
            <td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
            <td>', $txt['sp-onlinetuser'], '</td>
            <td>:</td>
            <td>', $online['total_users'],'</td>
        </tr>';
                if(!empty($online['users']))
                echo '    <tr>
            <td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" />
            </td><td>', $txt['sp-onlineouser'], '</td>
            <td>:</td>
            <td>&nbsp;</td>
        </tr>';

        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>';
}


If that doesn't work, then please make a post on our dedicated support forums (http://www.simpleportal.net/). Its harder to solve individual coding issues like this, in such a cluttered topic. ;)

@Captain Marvel,
The team is glad that you like it! :D
Title: Re: SimplePortal (2.0.4 Released!)
Post by: mathmission on September 12, 2008, 04:49:37 PM
Running SMF 1.1.6

Running Portal 2.0.4

Trying to use the More Style template (http://custom.simplemachines.org/themes/index.php?lemma=1000)

Are there instructions to install this mod for that theme? I've run into problems... I can edit the display.template just fine, but the others don't work out so well, as they're written differently. Is there any way this can be resolved? Excellent mod, just would like to see it here on that theme :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 12, 2008, 08:13:44 PM
@mathmission,
The only other template edit that this theme requires is the template edit to add the 'forums' button to the 'index.template.php' file. You will need to edit the 'template_menu()' function from that file to add a new button. I should be able to do it for you, if you post your 'index.template.php' file as an attachment. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Dret on September 12, 2008, 08:44:06 PM
At first... thank to developers for this fantastic mod!

I made myself modification to integrate the new last features in the old releases... but were too much... "rough"  :D ... compared to this last version...!!

Congratulation...

I would like to contribute to your work... in attchment you find the Italian (UTF-8) translation for SPortal...!! (someone already do it?)

I Have also a little question... i try to use the "Articles character limit " but seems work not fine if  you leave 0 (no limit).
Someone have the same problem... or is only mine?

Thanks again!
Bye

Dret.

BEWARE
Attachment is been modifiied for a critical error in php code... but now is correct!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 12, 2008, 09:00:19 PM
@Dret,
If you are interested in becoming an 'official' translator then you can make a post about it on our very own forums (we don't currently have an italian translation):
http://simpleportal.net/index.php?action=forum

Also, if you have a look at the bottom of the 'install.xml' file in the Simple Portal package, you will notice that there are more language strings that will need translation. ;)

About the article issue. Try making the setting something like 10000 charaters, does that remove the error? I will have a look into this to see if its a bug, which version of Simple Portal are you running?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Dret on September 12, 2008, 09:49:57 PM
For translation... no problem... I'will do...!! ;)

For the character limit problem... I'm using the last Sportal version (downloaded the last week) on SMF 1.1.6 (unpgraded from 1.1.5).
With your suggest the problem is solved.... (using a limit of 10000).

Bye!
Dret!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: probablepossible on September 12, 2008, 09:54:42 PM
Quote from: learjet45 on September 11, 2008, 06:45:01 PM
Quote from: robbie93 on September 11, 2008, 06:19:19 PM
hi I tried to manually install but there is a lot of the text on index.php that isnt the same as in the manual install,  can anybody help? :D
Did you ever try installing using the package manager?
No, and I sure would like to! where is the darn thing? I went round and round in SF modifications site, and then I looked in packages manager on my new forum site, and I do not see any way to get to a package for simpleportal.  GRRR! :p
Title: Re: SimplePortal (2.0.4 Released!)
Post by: learjet45 on September 12, 2008, 10:29:31 PM
Alright.
First off, click this link:
http://custom.simplemachines.org/mods/index.php?action=download;mod=1104;id=65064
And then save the file somewhere on your computer.
At your forum, go to the admin control panel ( http://your-forum-url.com/index.php?action=admin should work)
On the left hand side of the page, you should see something similar to the photo in the attachment (you shouldnt have anything about the gallery). Click on where it says 'Packages' and go to the 'Download Packages' page. ( http://your-forum-url.com/index.php?action=packageget should work)
Upload the .zip file and then it will be uploaded to your server. Then hit apply mod, install, and youre done.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: probablepossible on September 12, 2008, 10:56:07 PM
Quote from: learjet45 on September 12, 2008, 10:29:31 PM
Alright.
First off, click this link:
http://custom.simplemachines.org/mods/index.php?action=download;mod=1104;id=65064
And then save the file somewhere on your computer.
At your forum, go to the admin control panel ( http://your-forum-url.com/index.php?action=admin should work)
On the left hand side of the page, you should see something similar to the photo in the attachment (you shouldnt have anything about the gallery). Click on where it says 'Packages' and go to the 'Download Packages' page. ( http://your-forum-url.com/index.php?action=packageget should work)
Upload the .zip file and then it will be uploaded to your server. Then hit apply mod, install, and youre done.
YESSSSS! Thank you for a perfectly clear little how-to!  :D
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Adish - (F.L.A.M.E.R) on September 13, 2008, 05:32:02 PM
i just uninstalled simple portal due to the option i needed to show it over on the front page instead on separate one.. anyways.. i am getting this error..

8: Undefined index: can_make_article
File: /home/goldysun/public_html/Themes/default/Display.template.php (main sub template - eval?)
Line: 208

And also another problem is that i have is .. in the admin panel.. i see sportal in there.. i uninstalled properly as i removed the test failed codes.. what maybe the edit which the package manager didnt do ? any information would be helpful..
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 13, 2008, 10:21:36 PM
Those errors will be related to the mod not uninstalling correctly. If you post your 'subs.php' and 'Display.template.php' files, then I can manually remove the last parts of the portal code. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: feelingshehides on September 13, 2008, 10:59:24 PM
Great mod <3 is there any eta for 2.0 beta 4 ? i assume this doesn't work the latest beta.. thou i tried to apply it lol:

Installing this package will perform the following actions:
      Type    Action    Description
*    1.    Execute Modification    ./index.php    Test successful
      1.    Replace    ./index.php    Test successful
      2.    Replace    ./index.php    Test successful
      3.    Replace    ./index.php    Test successful
      4.    Replace    ./index.php    Test successful
*    2.    Execute Modification    ./Sources/BoardIndex.php    Test failed
      1.    Replace    ./Sources/BoardIndex.php    Test failed
*    3.    Execute Modification    ./Sources/Display.php    Test failed
      1.    Replace    ./Sources/Display.php    Test successful
      2.    Replace    ./Sources/Display.php    Test successful
      3.    Replace    ./Sources/Display.php    Test failed
*    4.    Execute Modification    ./Sources/Load.php    Test failed
      1.    Replace    ./Sources/Load.php    Test successful
      2.    Replace    ./Sources/Load.php    Test failed
      3.    Replace    ./Sources/Load.php    Test failed
      4.    Replace    ./Sources/Load.php    Test failed
      5.    Replace    ./Sources/Load.php    Test failed
*    5.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
      1.    Replace    ./Sources/ManagePermissions.php    Test failed
*    6.    Execute Modification    ./Sources/Recent.php    Test failed
      1.    Replace    ./Sources/Recent.php    Test failed
      2.    Replace    ./Sources/Recent.php    Test failed
      3.    Replace    ./Sources/Recent.php    Test failed
*    7.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Replace    ./Sources/Subs.php    Test successful
      2.    Replace    ./Sources/Subs.php    Test failed
*    8.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed
      2.    Replace    ./Themes/default/index.template.php    Test failed
      3.    Replace    ./Themes/default/index.template.php    Test failed
*    9.    Execute Modification    ./Themes/default/Display.template.php    Test successful
      1.    Replace    ./Themes/default/Display.template.php    Test successful
*    10.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
*    11.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
      1.    Replace    ./Themes/default/languages/Who.english.php    Test successful
*    12.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
*    13.    Execute Modification    ./Themes/default/languages/Who.english-utf8.php    Test successful
      1.    Replace    ./Themes/default/languages/Who.english-utf8.php    Test successful
   14.    Extract File    ./Sources/SPortal.php    
   15.    Extract File    ./Sources/SPortalAdmin.php    
   16.    Extract File    ./Sources/Subs-SPortal.php    
   17.    Extract File    ./Themes/default/SPortal.template.php    
   18.    Extract File    ./Themes/default/SPortalAdmin.template.php    
   19.    Extract File    ./Themes/default/SPortalArticle.template.php    
   20.    Extract File    ./Themes/default/languages/SPortal.english.php    
   21.    Extract File    ./Themes/default/languages/SPortal.english-utf8.php    
   22.    Extract File    ./Themes/default/images/arrow.gif    
   23.    Extract File    ./Themes/default/images/dot.gif    
   24.    Execute Code    install.php

too many fails    
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 13, 2008, 11:15:54 PM
@feelingshehides,
Serious lolz. :D

We are currently working on a version for SMF 2 Beta 4.0, which is currently a fairly stable alpha version. Hopefully sometime in the near future we should be able to release a version for SMF 2 Beta. ;D
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Adish - (F.L.A.M.E.R) on September 14, 2008, 05:45:17 AM
@feelingshehides,
Serious lolz. :D

Hahahahaha... i think u have like millions of mods installed there..

@LHVWB
I will try it myself and see the results.. if it doesnt solve i will let you know..
Title: Re: SimplePortal (2.0.4 Released!)
Post by: feelingshehides on September 14, 2008, 01:20:24 PM
Quote from: F.L.A.M.E.R on September 14, 2008, 05:45:17 AM
@feelingshehides,
Serious lolz. :D

Hahahahaha... i think u have like millions of mods installed there..

=o No.. i only have 5 mods installed x.x

   Member Color Link     3.0.5     
   The Rules    1.06    
   SMF Media Gallery    1.0.1    
   Custom_Greeting_Depending_on_Time    0.7
   YouTube BBCode    2.3

XD

Title: 406 Not Acceptable
Post by: wizeguy17 on September 14, 2008, 04:42:12 PM
Error resulted: 406

Message:
Not Acceptable

An appropriate representation of the requested resource /index.php could not be found on this server.

smf v1.1.6
simpleportal v2.0.4
No other mods or themes installed


This happens whenever I try to modify or delete a category, html block, and I suspect anything else similar.
I have spent hours researching this error and have tried using .htaccess to turn off any sort of mod_security, which I do not believe exists in the first place. The server api runs with CGI (suphp) and I have options to use php.ini files but nothing in my phpinfo tells me that mod_security is the case: lasvegasjournals.com/phpinfo.php
As you can see, session.use_trans_sid is "0" which is older suggested fix that seems not to apply either.
I can pm someone the admin login info if you'd like to see for yourself. Thanks in advance for any help.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 14, 2008, 05:31:43 PM
@feelingshehides and F.L.A.M.E.R,
It isn't the number of mods that feelingshehides has that counts, its the fact that he's trying to install it on a completly different version of SMF.

@wizeguy17,
As Eliana said on the SimplePortal.net website, I don't believe that this error is related to SimplePortal, try asking in the correct support forum (http://www.simplemachines.org/community/index.php?board=9.0).
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Adish - (F.L.A.M.E.R) on September 14, 2008, 06:05:58 PM
Quote from: LHVWB on September 14, 2008, 05:31:43 PM
@feelingshehides and F.L.A.M.E.R,
It isn't the number of mods that feelingshehides has that counts, its the fact that he's trying to install it on a completly different version of SMF.

rolf... didnt notice that...but yet the number of mods also affects it as the modified codes are all over the place and hence those  problems can be caused.. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: wizeguy17 on September 14, 2008, 06:40:42 PM
Quote from: LHVWB on September 14, 2008, 05:31:43 PM
@wizeguy17,
As Eliana said on the SimplePortal.net website, I don't believe that this error is related to SimplePortal, try asking in the correct support forum (http://www.simplemachines.org/community/index.php?board=9.0).
Thank you for that link, I have been making some progress by getting it to work on another similar hosting plan, so you are right about it NOT being mod-specific. I'll come back to edit those posts to confirm that after the fix. I have to compare some configuration settings.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Eliana Tamerin on September 14, 2008, 07:43:15 PM
wizeguy17, I've seen this issue before, and it's ALWAYS related to server configuration. There's little that the SimplePortal team can do to help with your issues. That's best left up to SMF, hence why I gave you the link here. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on September 15, 2008, 01:46:26 PM
That's the annoying mod_security problem. If .htaccess doesn't work, contact to your host. We know the fix at the mod end, but it needs some time to implement it. Though, in the future you will have the same problem but with other mods. I suggest better get that mod_security disabled.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: lakechurch on September 15, 2008, 03:46:22 PM
Hi, first of all thank you for this great mod!

I got a question. A lot of users post pictures (as attachment in the post). So if you watch the topic you see the picture. With SP I can not see the pictures on the frontpage.

Is there a way to edit the files so also on the frontpage it displays the pictures?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: dragm1 on September 17, 2008, 04:23:02 PM
i need to add a button that goes to my forum page (how it looks when simpleportal is not active)

how do i do this?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: learjet45 on September 17, 2008, 06:27:58 PM
Quote from: dragm1 on September 17, 2008, 04:23:02 PM
i need to add a button that goes to my forum page (how it looks when simpleportal is not active)

how do i do this?
What theme are you using?
Adding a forum button would involve editing your index.template.php file.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: dragm1 on September 17, 2008, 08:02:50 PM
black and blue arcade theme (1.1)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: learjet45 on September 17, 2008, 09:37:21 PM
If it has its own index.template.php file you will need to edit it so the button is added. I cant help you with that though.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 18, 2008, 03:54:01 AM
@lakechurch,
Which specific block are you referring to?

@dragm1,
The process will follow a similar format to the documentation below:
How do you add custom tabs to the Core (default) theme menu? (http://docs.simplemachines.org/index.php?topic=564)

If you post your 'index.template.php' file as an attachment then I will add it for you. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: lakechurch on September 18, 2008, 08:18:37 AM
Quote from: LHVWB on September 18, 2008, 03:54:01 AM
@lakechurch,
Which specific block are you referring to?

I am sorry for the unclearance, I don't mean a block but an article. If you make a post and make it an article everything goes good except it doesn't show the attachment (image) on the frontpage but only in the post. Is it possible that it shows the image (included as an attachment) also in the article?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ownedbyamedic.com on September 18, 2008, 12:47:42 PM
Having trouble using this with membergroups?  I just made 3 new membergroups and copied the same permissions the regular one had and none of the new groups can see the portal.  They see the portal page but none of the blocks show up.

Any ideas?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Running With Scissors on September 18, 2008, 01:38:26 PM
Is this going to come out for 2.0 beta 4
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Eliana Tamerin on September 18, 2008, 02:47:56 PM
Quote from: Running With Scissors on September 18, 2008, 01:38:26 PM
Is this going to come out for 2.0 beta 4

Yes, we are currently working on a version compatible with SMF 2.0 beta 4. Fear not! :D
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Running With Scissors on September 18, 2008, 05:30:32 PM
Quote from: Eliana Tamerin on September 18, 2008, 02:47:56 PM
Quote from: Running With Scissors on September 18, 2008, 01:38:26 PM
Is this going to come out for 2.0 beta 4

Yes, we are currently working on a version compatible with SMF 2.0 beta 4. Fear not! :D
Sweet! I know this might be a annoying question but when are you estimating this project to be done? I understand if you are not allowed to say.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Eliana Tamerin on September 18, 2008, 08:42:05 PM
Quote from: Running With Scissors on September 18, 2008, 05:30:32 PM
Quote from: Eliana Tamerin on September 18, 2008, 02:47:56 PM
Quote from: Running With Scissors on September 18, 2008, 01:38:26 PM
Is this going to come out for 2.0 beta 4

Yes, we are currently working on a version compatible with SMF 2.0 beta 4. Fear not! :D
Sweet! I know this might be a annoying question but when are you estimating this project to be done? I understand if you are not allowed to say.

When it's ready.

Sound familiar? Yeah, SMF uses it, too. We thought it fit so well, no need to give ourselves time limits and deadlines to degrade the quality of the product.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Running With Scissors on September 18, 2008, 10:36:46 PM
Quote from: Eliana Tamerin on September 18, 2008, 08:42:05 PM
Quote from: Running With Scissors on September 18, 2008, 05:30:32 PM
Quote from: Eliana Tamerin on September 18, 2008, 02:47:56 PM
Quote from: Running With Scissors on September 18, 2008, 01:38:26 PM
Is this going to come out for 2.0 beta 4

Yes, we are currently working on a version compatible with SMF 2.0 beta 4. Fear not! :D
Sweet! I know this might be a annoying question but when are you estimating this project to be done? I understand if you are not allowed to say.

When it's ready.

Sound familiar? Yeah, SMF uses it, too. We thought it fit so well, no need to give ourselves time limits and deadlines to degrade the quality of the product.

Ok take your time, it's better to have to wait a little bit for a quality portal then rush and make a bad one.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 19, 2008, 03:07:11 AM
@lakechurch,
At the moment, that is not possible. The articles page on the front can't show a list of attachments. Although it will show images that are posted within the posts themselves, would it be possible for you to attach the images to the post and then put them in the post as well using [img][/img] tags? (You can get the image/attachment location by right clicking and clicking the 'Properties'/'Copy image location' option).

@ownedbyamedic.com,
You will have to change the permissions for each block so that they can see them. We are going to do an overhaul of the block permissions system in a future version, which may make it easier for you to do stuff like that. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: dbm on September 19, 2008, 07:06:05 AM
    Type     Action     Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Display.php    Test successful
4.    Execute Modification    ./Sources/Load.php    Test successful
5.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
6.    Execute Modification    ./Sources/Recent.php    Test successful
7.    Execute Modification    ./Sources/Subs.php    Test successful
8.    Execute Modification    ./Themes/default/index.template.php    Test successful
9.    Execute Modification    ./Themes/default/Display.template.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
11.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
13.    Execute Modification    ./Themes/default/languages/Who.english-utf8.php    Skipping file
14.    Extract File    ./Sources/SPortal.php    
15.    Extract File    ./Sources/SPortalAdmin.php    
16.    Extract File    ./Sources/Subs-SPortal.php    
17.    Extract File    ./Themes/default/SPortal.template.php    
18.    Extract File    ./Themes/default/SPortalAdmin.template.php    
19.    Extract File    ./Themes/default/SPortalArticle.template.php    
20.    Extract File    ./Themes/default/languages/SPortal.english.php    
21.    Extract File    ./Themes/default/languages/SPortal.english-utf8.php    
22.    Extract File    ./Themes/default/images/arrow.gif    
23.    Extract File    ./Themes/default/images/dot.gif    
24.    Execute Code    install.php    

i got problem with this.... what should i do now ?:( im using 1.1.6 version ;\
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 19, 2008, 07:46:28 AM
@dbm,
Can you please post your 'ManagePermissions.php' file as an attachment?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: dbm on September 19, 2008, 09:12:44 AM
Yeah sure, here u go mate
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 19, 2008, 09:16:55 AM
Okay, ignore that error and proceed with the mod install. Then upload the attached file and replace your old one with it. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: dbm on September 19, 2008, 09:18:57 AM
in a moment. sec
Title: Re: SimplePortal (2.0.4 Released!)
Post by: dbm on September 19, 2008, 09:24:50 AM
Now its only shows this at index... there is no categorys or threads ...
check attach..
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 19, 2008, 09:29:33 AM
You will have to create some new blocks for your portal in the Admin panel, under "Sportal Admin". ;)

If you want to disable the portal temporarily then you can disable the 'Portal is active?' setting in that admin area. You may want to try to add a new 'forum' tab to your menu so that you can easily access the forums. If you post your custom themes 'index.template.php' file then I can show you the edit.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: jmil on September 19, 2008, 11:19:35 AM
Quote from: dragm1 on September 17, 2008, 04:23:02 PM
i need to add a button that goes to my forum page (how it looks when simpleportal is not active)

how do i do this?

If this helps anyone (Hope you dont mind simpleportal team) - I simply Created a HTML block linked to a Image Saying (Straight to the Forum). It was simple easy with not having to change the code plus the buttons are kinda small for your typical user and the fact you can link to an image is cool.

Here is an example block of code to use:

<html></head><h1 align=center>
<body><ahref="http://Yourstiename.here/index.php?action=forum"></a>Enter the Fray</b><hr width="20"><a href="http://yoursitenamehere.com/index.php?action=forum"><img src="http://Your Image for the link here"></a></p></body>
</html>

See what I did here:

www.forums.midatlanticxriders.com (http://www.forums.midatlanticxriders.com)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on September 19, 2008, 11:33:56 AM
It will break up the XHTML validity. Use something like this:

<div style="text-align: center;">
<h1><a href="http://Yourstiename.here/index.php?action=forum">Enter the Fray</a></h1>
<hr width="20" />
<a href="http://yoursitenamehere.com/index.php?action=forum"><img src="http://Your Image for the link here" alt="forum" /></a>
</div>
Title: Re: SimplePortal (2.0.4 Released!)
Post by: lakechurch on September 19, 2008, 11:36:53 AM
Quote from: LHVWB on September 19, 2008, 03:07:11 AM
@lakechurch,
At the moment, that is not possible. The articles page on the front can't show a list of attachments. Although it will show images that are posted within the posts themselves, would it be possible for you to attach the images to the post and then put them in the post as well using [img][/img] tags? (You can get the image/attachment location by right clicking and clicking the 'Properties'/'Copy image location' option).

Thank you for your answer. I will do it the way you told me, I only get the pictures double in the post now but they show up in the article. Thank you again.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: jmil on September 19, 2008, 11:44:57 AM
I just upgraded to 2.0.4 - Not an issue - not a problem - seamless!!

Hailz to the Portal Team - Excellent work and the Portal is a hit with my members!

:D :D :D :D :D :D
Title: Re: SimplePortal (2.0.4 Released!)
Post by: jmil on September 20, 2008, 09:36:21 AM
Since I am working on the portal - I saw a sight that added the Calender to the Portal. I saw a thread that their was an answer at simpleportal.net - but my search there show no matches.

How can I add the Calender block to the portal?

Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on September 20, 2008, 09:54:05 AM
I guess it was here:

http://simpleportal.net/index.php?topic=89.0
Title: Re: SimplePortal (2.0.4 Released!)
Post by: jmil on September 20, 2008, 10:09:13 AM
That is it - Thanks - I will give it a shot and let you know how it goes!!

Title: Re: SimplePortal (2.0.4 Released!)
Post by: ruckstande on September 20, 2008, 09:47:23 PM
Since I had to download separate files for 2.0.2 will I have a problem with 2.0.4?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: jusplay77 on September 21, 2008, 07:07:53 PM
SiNaN, you never cease to amaze!  I've had your Simple Portal mod on my older forum since it's creation and now that I have come back to add it again to my new forum; It has been improved 10 times over!  Great work!

Which brings me to my question :)




I have recently upgraded from SMF Gallery Lite 1.9 to SMF Media Gallery 1.0.2 (http://www.simplemachines.org/community/index.php?topic=260821.0) as it is far superior and free (compared to the SMF Gallery Pro).  However the pre-programmed Gallery Block in the Portal does not work with SMF Media Gallery 1.0.2.

While I can navigate through php fairly well, I am not to the point where I can write my own php.  Could you please post the code I would need to add a PHP block and have it work as a Random Gallery Image from the new SMF Media Gallery.

Thanks!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on September 21, 2008, 07:24:27 PM
Quote from: ruckstande on September 20, 2008, 09:47:23 PM
Since I had to download separate files for 2.0.2 will I have a problem with 2.0.4?

Couldn't get what you mean.

Quote from: jusplay77 on September 21, 2008, 07:07:53 PM
SiNaN, you never cease to amaze!  I've had your Simple Portal mod on my older forum since it's creation and now that I have come back to add it again to my new forum; It has been improved 10 times over!  Great work!

Which brings me to my question :)




I have recently upgraded from SMF Gallery Lite 1.9 to SMF Media Gallery 1.0.2 (http://www.simplemachines.org/community/index.php?topic=260821.0) as it is far superior and free (compared to the SMF Gallery Pro).  However the pre-programmed Gallery Block in the Portal does not work with SMF Media Gallery 1.0.2.

While I can navigate through php fairly well, I am not to the point where I can write my own php.  Could you please post the code I would need to add a PHP block and have it work as a Random Gallery Image from the new SMF Media Gallery.

Thanks!

Thanks for the nice comments. As it became a quite large mod, now SimplePortal has an experienced team and a new site.

I've posted a quick code here a few days ago for your question:

http://simpleportal.net/index.php?topic=336.0

I'm sure you will get a better support if you try there. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: jmil on September 23, 2008, 10:45:19 AM
FYI Sinan - You should update the Compatibility to 1.1.6 - Perfect install!

Best mod out there right now and best support.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: [SiNaN] on September 23, 2008, 02:15:14 PM
Thanks really, for nice comments and reminding me. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: learjet45 on September 24, 2008, 12:33:34 AM
I was just thinking about it.
Although it might now seem like a big deal, it might be nice to have some larger boxes for the code you enter for the PHP, HTML, and BBC code blocks.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 24, 2008, 12:39:09 AM
@learjet45,
I completely agree with this. I was meaning to add the extendable box like the post box, for the SMF 2 Beta versions (they aren't public yet). Although it would be nice to have something similar for the SMF 1.1.x versions. I will add this to our project tracker and we will see what we can do for the next version.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: learjet45 on September 24, 2008, 12:41:32 AM
Sweet, sounds like a good plan. Especially for the BB code block. I dont generally go in to notepad or something and then premake the BB code for the block I want, although I can see people using notepad to edit HTML or PHP code for the blocks. It would just be a lot easier to find things in notepad, even with a larger box to edit the codes.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Eliana Tamerin on September 24, 2008, 10:16:51 AM
A new announcement has been made over at SimplePortal.net. You can read it by following the link here: http://simpleportal.net/index.php?topic=425.0
Title: Re: SimplePortal (2.0.4 Released!)
Post by: haiwasnm on September 24, 2008, 10:22:59 AM
HI,[SiNaN]

I can not change Article Category like this


when i what send new topic , this Article Category dont show for me !

Hope help !
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Talismen on September 24, 2008, 02:32:29 PM
Does anyone know if SP 2.0.x (a.k.a. "classic") will run ok with this mod:
http://custom.simplemachines.org/themes/index.php?lemma=158

Thanks!
Tal

(PS - I heard Sinan is "retiring" from the SP project. Sinan - I wish you all the best, and thank you (and the SP team) once again for this fantastic mod! *hugs* )
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Talismen on September 24, 2008, 02:39:41 PM
Quote from: Talismen on September 24, 2008, 02:32:29 PM
Does anyone know if SP 2.0.x (a.k.a. "classic") will run ok with this mod:
http://custom.simplemachines.org/themes/index.php?lemma=158

Thanks!
Tal

(PS - I heard Sinan is "retiring" from the SP project. Sinan - I wish you all the best, and thank you (and the SP team) once again for this fantastic mod! *hugs* )


Nevermind...just tried it.
It didn't work.

;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Eliana Tamerin on September 24, 2008, 03:28:48 PM
Quote from: Talismen on September 24, 2008, 02:32:29 PM
Does anyone know if SP 2.0.x (a.k.a. "classic") will run ok with this mod:
http://custom.simplemachines.org/themes/index.php?lemma=158

Thanks!
Tal

(PS - I heard Sinan is "retiring" from the SP project. Sinan - I wish you all the best, and thank you (and the SP team) once again for this fantastic mod! *hugs* )

That's a theme?

Quote from: Talismen on September 24, 2008, 02:39:41 PM
Nevermind...just tried it.
It didn't work.

;)

What didn't work? You'll have to make manual edits for that theme to work properly. Two or three if I recall.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Talismen on September 24, 2008, 03:55:31 PM
Quote from: Eliana Tamerin on September 24, 2008, 03:28:48 PM
Quote from: Talismen on September 24, 2008, 02:32:29 PM
Does anyone know if SP 2.0.x (a.k.a. "classic") will run ok with this mod:
http://custom.simplemachines.org/themes/index.php?lemma=158

Thanks!
Tal

(PS - I heard Sinan is "retiring" from the SP project. Sinan - I wish you all the best, and thank you (and the SP team) once again for this fantastic mod! *hugs* )

That's a theme?

Quote from: Talismen on September 24, 2008, 02:39:41 PM
Nevermind...just tried it.
It didn't work.

;)

What didn't work? You'll have to make manual edits for that theme to work properly. Two or three if I recall.

Yep...finding that out.
If I had more time, I'd handle it but...not a biggy ;)


I've got my default theme copied and the copy is tweaked the way I like it. It took me forever to do that. (I'm not good with themes. Wish I was though,...I'd have a copy of the default rigged up for autumn, halloween, Christmas and new year's.)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Costa on September 24, 2008, 06:39:43 PM
Wich file I need to translate and post here?

I want to translate to Brazilian

Thanks for the answers

EDIT

Thak you ccbtimewiz
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ccbtimewiz on September 24, 2008, 06:42:38 PM
Quote from: Costa on September 24, 2008, 06:39:43 PM
Wich file I need to translate and post here?

I want to translate to Brazilian

Thanks for the answers

   
Foi já traduzido. http://simpleportal.net/index.php?board=26.0
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Costa on September 24, 2008, 06:59:46 PM
puts!

Fiz uma busca e não achei  :P
Obrigado pela resposta  ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Soms on September 24, 2008, 07:07:18 PM
Quote from: Talismen on September 24, 2008, 02:32:29 PM
(PS - I heard Sinan is "retiring" from the SP project. Sinan - I wish you all the best, and thank you (and the SP team) once again for this fantastic mod! *hugs* )

What a shame! Sinan, thanks for your creativity, vision and support. For me you'll always be Mr. Simple Portal. Good luck in your new endeavours.  O:) O:)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Maliante on September 25, 2008, 01:23:38 AM
i want use the side boxes but i don't want use the index.php. I want my users enter and dont see index.php i want everybody use index.php?action=forum  by defaulf home page.

Please help me.

Maliante
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Bancherd on September 25, 2008, 03:12:38 AM
Quote from: Soms on September 24, 2008, 07:07:18 PM
Quote from: Talismen on September 24, 2008, 02:32:29 PM
(PS - I heard Sinan is "retiring" from the SP project. Sinan - I wish you all the best, and thank you (and the SP team) once again for this fantastic mod! *hugs* )

What a shame! Sinan, thanks for your creativity, vision and support. For me you'll always be Mr. Simple Portal. Good luck in your new endeavours.  O:) O:)

Thanks for everything, SiNaN.  Your early version of "simpleportal" is a classic.(IMHO). :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on September 25, 2008, 04:20:53 AM
@Maliante,
So you want to use blocks in your forum? At the moment Simple Portal doesn't have that, although we are currently developing it. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: edi67 on September 25, 2008, 08:59:33 AM
I installed your Portal very nice and simple but i have one problem i cannot find anymore the button FORUM (from menu BAR is missing )  i dont understand what happened some help ?

take a look :
http://viet.altervista.org/index.php
Title: Re: SimplePortal (2.0.4 Released!)
Post by: kat on September 25, 2008, 09:03:24 AM
That's because the portal, like other mods, is only applied to the SMF dfault theme.

You have to edit custom themes, manually. That's why none of the images show, too.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: edi67 on September 25, 2008, 09:29:08 AM
Quote from: Kat on September 25, 2008, 09:03:24 AM
That's because the portal, like other mods, is only applied to the SMF dfault theme.

You have to edit custom themes, manually. That's why none of the images show, too.

thx everything is ok now :)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Gà Mái on October 01, 2008, 12:05:13 PM
When i use the Default theme it has FORUM, but when i use other theme, it have not.

Default theme:
(http://upnhanh.com/userimages/images/UpNhAnHdotC0M2008092927240odgzmtfiot18432.jpeg)

----

Web 2.0 theme
(http://upnhanh.com/userimages/images/UpNhAnHdotC0M2008092927240ndjmndc1mg15255.jpeg)

Thanks!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Gà Mái on October 01, 2008, 01:07:46 PM
I want my board like http://simpleportal.net that -> when i click any link on my site, the theme will always show left side blocks. When i click on the HOME tab, it has left side blocks and right side blocks.
My board, when i click the FORUM tab, it has only forum theme, the left side blocks is not apear.

Help me pls! Thanks!!!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on October 01, 2008, 10:06:21 PM
@Gà Mái,
This portal, just like all other mods is only applied to the SMF core theme. You will have to manually add buttons/tabs for all of your custom themes, I can help you with that if necessary.

Also the feature that you described, with blocks in the forum itself is a part of an unreleased version of SimplePortal 2.1, which we are planning to release within a fairly short period of time.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Gà Mái on October 02, 2008, 12:47:53 AM
many thanks. I'll wait your unreleased version. I like this portal very much.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Truff on October 02, 2008, 04:09:43 PM
Thanks for this mod - using it with great success but I'm hitting the usual problem of having to modify custom themes to work with it.

The theme I want to try is Classic Red - I've attached the index.template.php - I'd be very grateful for any help with making the necessary changes on this.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ディン1031 on October 03, 2008, 02:26:30 AM
Uhhh.... how can someone do that... a one line menu... very difficult to find the correct position ;).

Okay i hope this will work :).

The only thing you need is a image "sp-forum.gif" so that it work.

Bye
DIN1031
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Kosedragen on October 03, 2008, 08:37:25 AM
Uhm.. Why am I not allowed to create articles that are NOT linked to any topic? =p I find that stupid..

Oh and also; can someone explain how I can make the left blocks visible in the forum, and not just on the index? (I don't want the right blocks to be shown in the forum)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on October 03, 2008, 09:11:11 AM
1) Forum-Independant Articles is a feature that we are looking at adding in a later version.

2) Having blocks in the forum is a feature of the 2.1 version of SimplePortal, it isn't public yet, although it should be made public in the near future.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Kosedragen on October 03, 2008, 09:15:41 AM
Aah, great :3 Thanks, I'll keep that in mind and look for updates then.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: The Saviour on October 03, 2008, 09:50:08 AM
I just installed this mod to my SMF 1.1.6 forum...and I'm hoping it'll help with an issue I'm experiencing.

Here's the problem:

Every time I install a new mod...depending on the mod...it will install a new tab to the navigation menu.

Is there any way to add a block that will only show the links I want certain users to see...depending on permissions?  If so...I can then remove some of the tabs from my navigation menu...making it a little shorter and cleaner looking for registered members.  The new block will show these links/tabs instead.

I hope I explained it clearly enough.  If not, please reply and I'll try to be a little more specific.

Thank you for a wonderful mod...now all I have to do is learn it. ;D
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on October 03, 2008, 09:49:54 PM
You should be able to add a block with links in it, using permissions as well. With the 'PHP' block type, although at the moment you can't use blocks throughout your forum, so you may not get the wanted effect.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: mr703himself on October 03, 2008, 10:00:30 PM
i get an error before i install, how do i fix this or how do i install without gettin errors?

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Display.php    Test successful
4.    Execute Modification    ./Sources/Load.php    Test successful
5.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
6.    Execute Modification    ./Sources/Recent.php    Test successful
7.    Execute Modification    ./Sources/Subs.php    Test successful
8.    Execute Modification    ./Themes/default/index.template.php    Test successful
9.    Execute Modification    ./Themes/default/Display.template.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
11.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
13.    Execute Modification    ./Themes/default/languages/Who.english-utf8.php    Skipping file
14.    Extract File    ./Sources/SPortal.php    
15.    Extract File    ./Sources/SPortalAdmin.php    
16.    Extract File    ./Sources/Subs-SPortal.php    
17.    Extract File    ./Themes/default/SPortal.template.php    
18.    Extract File    ./Themes/default/SPortalAdmin.template.php    
19.    Extract File    ./Themes/default/SPortalArticle.template.php    
20.    Extract File    ./Themes/default/languages/SPortal.english.php    
21.    Extract File    ./Themes/default/languages/SPortal.english-utf8.php    
22.    Extract File    ./Themes/default/images/arrow.gif    
23.    Extract File    ./Themes/default/images/dot.gif    
24.    Execute Code    install.php
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on October 03, 2008, 10:14:37 PM
@mr703himself,
Proceed with the install and then post your 'ManagePermissions.php' file and I can manually perform that edit for you. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: mr703himself on October 03, 2008, 10:52:48 PM
heres the file, what exactly do i have to do for this to showup on a custom theme?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on October 03, 2008, 11:12:02 PM
The file is attached.

You will have to add a 'forum' button for each custom theme (and make the minor alterations for that to work), that is it. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: mr703himself on October 03, 2008, 11:24:34 PM
what is the minor alterations? can u take me step by step?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on October 03, 2008, 11:29:44 PM
The actual code which will add the button depends entirely on the theme itself, the edit below is for the default theme, it will probably be different for your custom theme.

Here is a general edit to add the button itself (for the default theme):
Find this code:
    // Show the [help] button.

Replace with this code:
    // 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>' : '';

    // Show the [help] button.


The edits below, will add code so that the correct button is the 'current' or 'highlighted' button at the correct time. If your theme doesn't have any highlighting or changing of color for the current tab, then the edits aren't necessary.

These edits are for the '/themes/{themenames}/index.templates.php'.

Find this code:
, 'login', 'help', 'pm'

Replace with this code:
, 'login', 'help', 'pm', 'forum', 'spadmin'

Find this code:
        $current_action = 'search';

Replace with this code:
        $current_action = 'search';
    if (isset($_GET['board']) || isset($_GET['topic']))
        $current_action = 'forum';
    if ($context['current_action']=='spadmin')
        $current_action = 'admin';
Title: Re: SimplePortal (2.0.4 Released!)
Post by: mr703himself on October 04, 2008, 12:52:56 AM
THANX
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Kosedragen on October 04, 2008, 07:38:18 AM
Oh gawd, I have that exact problem, and I don't know how to fix it. I have 6 custom themes, and all have the same problem: They don't have the Forum or Staff buttons, as well as missing all dots and arrows from SP. Can someone please tell me how to fix this problem? =)

EDIT: Also the "My messages" button is missing >:

EDIT2: No wait, that's not true. The "Messages"-button is only missing in the Mercury theme.

The 6 custom themes are:
-Aero79
-Amber
-DarkSilver Equinox
-Mercury
-Mystic Multi
-SMF Gunge
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on October 04, 2008, 07:42:59 AM
Firstly, did you read that post where I gave the edits for adding new buttons (look up two posts)? That should help you to add the new buttons.

For the images, you can copy the '/Themes/default/images/arrow.gif' and '/Themes/default/images/dot.gif' files into your '/Themes/{themename}/images/' folders.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Kosedragen on October 04, 2008, 09:06:17 AM
Allright =D Thanks.

Meh, I did the edits and I still see no new buttons =p I found an replaced the exact texts you wrote.

And the second thing I have no idea how I can do e__e

EDIT again: Nope, it just wont work for me. I've tried two different themes now; both gave the same result. No new buttons.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on October 04, 2008, 05:22:31 PM
I think that you issue is that you "found an replaced the exact texts (I) wrote", that means that you just copied that code that the default theme uses for a button. That was merely an example of how it needs to be done, for each theme the code for a button will be slightly different, you will need to look at the 'template_menu()' function for each theme to work out the code for each button. You should be able to base it off the 'home' button, you will need to change the url, action and language string.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: runebergen on October 05, 2008, 07:02:33 PM
what  :o :( :-X :'(  Just learned that [SiNaN] has retired from this project....

Hope that wont affect one of the very best mods there is for SMF. 

[SiNaN] has a view and instinct for features lots of us want want, and sad to hear him leave this project....

Just want to express my utter appreciation for all the mods [SiNaN] has done, as its made SMF shine on my sites...

O:)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: FITE-COMMANDER on October 05, 2008, 11:58:59 PM
Quote from: runebergen on October 05, 2008, 07:02:33 PM
what  :o :( :-X :'(  Just learned that [SiNaN] has retired from this project....

Hope that wont affect one of the very best mods there is for SMF. 

[SiNaN] has a view and instinct for features lots of us want want, and sad to hear him leave this project....

Just want to express my utter appreciation for all the mods [SiNaN] has done, as its made SMF shine on my sites...

O:)

Oh man i feel you. That was a great mod. Great mods are hard work and lots of time. And good workers with such a skill are hard to find. I hope this mod expansion is not effected as much like Tiny Portal.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: kat on October 06, 2008, 02:05:22 PM
Silly question time...

In the News block, I have a thread that I want to show.

I got it OK, but it changes every time a post is made on the same board.

The post's sticky, too, which seems to complicate things.

How do I discover what the post ID is?

The link is http://www.tlakoc.org.uk/index.php/topic,7022.0.html and using 7022, 7022.0 and 0 don't work.

Any clues, please?
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ccbtimewiz on October 06, 2008, 02:54:47 PM
Quote from: runebergen on October 05, 2008, 07:02:33 PM
what  :o :( :-X :'(  Just learned that [SiNaN] has retired from this project....

Hope that wont affect one of the very best mods there is for SMF. 

[SiNaN] has a view and instinct for features lots of us want want, and sad to hear him leave this project....

Just want to express my utter appreciation for all the mods [SiNaN] has done, as its made SMF shine on my sites...

O:)

Quote from: FITE-COMMANDER on October 05, 2008, 11:58:59 PM
Oh man i feel you. That was a great mod. Great mods are hard work and lots of time. And good workers with such a skill are hard to find. I hope this mod expansion is not effected as much like Tiny Portal.

http://simpleportal.net/index.php?topic=425.0;view=article
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Haitisports on October 06, 2008, 09:55:27 PM
Help please.

I want to use Sportal for my forum. Unfortunately, it doesn't work for me.

I know, I know, I know I should go through all the comments and replies as I am pretty sure someone must have already asked for this kind of help. But, geez! we are already at page 69! That would take me a week to go through all that :D

Can somebody simply tell me what I need to do to make it work?

Thanks in advance.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: learjet45 on October 06, 2008, 10:40:17 PM
We cant help without an explanation of what isnt working. Otherwise, we would be taking wild guesses as to what is wrong giving wild answers to someting that most likely wouldnt work.
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ディン1031 on October 07, 2008, 01:01:23 AM
Quote from: Kat on October 06, 2008, 02:05:22 PM
Silly question time...

In the News block, I have a thread that I want to show.

I got it OK, but it changes every time a post is made on the same board.

The post's sticky, too, which seems to complicate things.

How do I discover what the post ID is?

The link is http://www.tlakoc.org.uk/index.php/topic,7022.0.html and using 7022, 7022.0 and 0 don't work.

Any clues, please?
Board News Block? ;)

It work like the SSI Function Board News, and this function will output the threads first post only in order how the threads are created. You can only select a board for this kind of news.

If you like specific threads first post as news, than enable the article system and make the thread to an article, this would be the easiest way i think :).

Bye
DIN1031
Title: Re: SimplePortal (2.0.4 Released!)
Post by: kat on October 07, 2008, 07:26:27 AM
Well, by trial and error, I found an ID that works.

It'll change, of course, the next time there's a post on that board, sadly. When that happens, I'll give that a try, ディン1031.

Not sure how the "Article" thing works, to be honest. I guess I'll try things out and screw things up see what happens.

Ta!
Title: Re: SimplePortal (2.0.4 Released!)
Post by: ディン1031 on October 07, 2008, 10:01:08 AM
Quote from: Kat on October 07, 2008, 07:26:27 AM
Well, by trial and error, I found an ID that works.

It'll change, of course, the next time there's a post on that board, sadly. When that happens, I'll give that a try, ディン1031.

Not sure how the "Article" thing works, to be honest. I guess I'll try things out and screw things up see what happens.

Ta!
On Version 2.0.5 there will be a short help description for each parameter, so it will be easier to know what you can do there ;).

Bye
DIN1031
Title: Re: SimplePortal (2.0.4 Released!)
Post by: kat on October 07, 2008, 10:09:37 AM
Now THAT seems like a plan! Thanks!

I've got it sorted, now, hopefully. I even managed to get an "xat" chatroom on the portal and made it private, which could be useful.

http://xat.com/

I really must learn some php...

(http://www.augk18.dsl.pipex.com/LOLCats/baby-eats-black-cat-tail.jpg)

Title: Re: SimplePortal (2.0.4 Released!)
Post by: Gà Mái on October 08, 2008, 10:43:23 PM
I have a problem. My Article on Home not show exactly.
For example: My post is: "We hope you enjoy using your forum." but the article on Home only show: "We hope..." It's not show the full post
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on October 08, 2008, 11:55:02 PM
@Gà Mái,
Change the 'Article character limit:' setting in your admin area under 'SPortal Admin' -> 'General Settings'. You will need to increase that setting. ;)
Title: Re: SimplePortal (2.0.4 Released!)
Post by: Nathaniel on October 10, 2008, 04:29:48 AM
SimplePortal Classic 2.0.5 Released! (http://simpleportal.net/index.php?topic=527)
SimplePortal Classic 2.0.5 has now been release, click the link above to see the annoucement topic. :D
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: babjusi on October 10, 2008, 10:21:19 AM
Quote from: LHVWB on October 10, 2008, 04:29:48 AM
SimplePortal Classic 2.0.5 Released! (http://simpleportal.net/index.php?topic=527)
SimplePortal Classic 2.0.5 has now been release, click the link above to see the annoucement topic. :D


Congratulations on this new release :)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: genieuk on October 10, 2008, 11:55:13 AM
Just installed the latest release.

WOW! :D

I did not understand this mod very much so i installed it to see what i could do.

It installed first time with no errors or problems got it working already, i am learning to as i managed to add a forum button in my custom theme. All seems good ;)

Happy I installed it!

Thank you,
Mathew
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: mathmission on October 10, 2008, 12:01:05 PM
I'm really not sure why it took me so long to get back to you here. Here is my index.template.php file. Just needs the button.

Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: genieuk on October 10, 2008, 12:11:30 PM
What am i doing wrong......

I created a php block,

Bassically it to tell people about my forum etc.

Now i done this as i want the person if possible to be greeted by there username or if not logged in greeted as guest, below is what i put but in the box i then get an error so i must be doing something wrong, it is a PHP block and no i have not added the <? thingys.

Hello {$username} ,

Welcome to {$boardname} ,

I get this error instead of the above that i put in the PHP box
Quote
Parse error: syntax error, unexpected '<' in /home/sites/foreverlastingfriends.co.cc/public_html/Sources/SPortal1-1.php(1646) : eval()'d code on line 1

Is it possible what i am trying to do? and ifso how do i do it so it greets them by guest (if not logged in) or username if logged in?

also how about a shoutbox on the simple portal page? :)

Thank you,
Mathew

Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Gà Mái on October 10, 2008, 12:51:00 PM
Quote from: LHVWB on October 10, 2008, 04:29:48 AM
SimplePortal Classic 2.0.5 Released! (http://simpleportal.net/index.php?topic=527)
SimplePortal Classic 2.0.5 has now been release, click the link above to see the annoucement topic. :D

Wow... Cheer !!!!
Thank you very much. I love this mod !!! (^_-)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Gà Mái on October 10, 2008, 01:47:58 PM
Quote from: Gà Mái on October 01, 2008, 01:07:46 PM
I want my board like http://simpleportal.net that -> when i click any link on my site, the theme will always show left side blocks. When i click on the HOME tab, it has left side blocks and right side blocks.
My board, when i click the FORUM tab, it has only forum theme, the left side blocks is not apear.

Help me pls! Thanks!!!

Quote from: LHVWB on October 01, 2008, 10:06:21 PM
@Gà Mái,
This portal, just like all other mods is only applied to the SMF core theme. You will have to manually add buttons/tabs for all of your custom themes, I can help you with that if necessary.

Also the feature that you described, with blocks in the forum itself is a part of an unreleased version of SimplePortal 2.1, which we are planning to release within a fairly short period of time.

I still wait :D
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: learjet45 on October 10, 2008, 06:10:47 PM
Nvm, I got all my issues fixed myself.
I feel proud. Now lets see if I can get SimplePortal installed again.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Pwn Kyuubi on October 10, 2008, 09:22:42 PM
This addon works in the BlackRain theme on smf 2.0beta4 ???
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: learjet45 on October 10, 2008, 09:47:19 PM
You will most likely have to change the themes index.template.php file (I believe) if it has a custom one to add the Forum button.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Nathaniel on October 10, 2008, 10:03:42 PM
@babjusi and genieuk,
I am glad that you like it, thanks for the comments. :D

@mathmission,
Use the file attached. I have added the button to it.

@genieuk,
1) You need to use PHP code inside those blocks, to show html code you can use the 'echo' function. The code below should work for you.
global $mbname, $user_info;
echo '
Hello ', !empty($user_info['username']) ? ($user_info['username']) :  'Guest', ',<br />
Welcome to ', $mbname, ',';

2) We don't currently have a shoutbox block, although you should be able to add one with another PHP block, by putting the code from a shoutbox mod there. Also, if you want help with making a block or want someone to create a new one, then you can ask about it in our Blocks board on SimplePortal.net (http://simpleportal.net/index.php?board=39.0).

@Gà Mái
Thank you for your patience, the SimplePortal 2.1 version should be ready within the next week or two, hopefully you won't have to wait much longer! ;)

@learjet45,
I am glad that you managed to resolve your issue.

@Pwn Kyuubi,
learjet45 is correct, you will have to add your own button for that theme. I can do it for you if you post your '/Themes/{themename}/index.template.php' file as an attachment.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Gà Mái on October 10, 2008, 10:25:06 PM
Quote from: LHVWB on October 10, 2008, 10:03:42 PM


@Gà Mái
Thank you for your patience, the SimplePortal 2.1 version should be ready within the next week or two, hopefully you won't have to wait much longer! ;)

Thank you very much! When my site comlete, i'll show you! ;D
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: learjet45 on October 10, 2008, 11:08:54 PM
I thought I posted my issues.
I cant access Sportal admin the error is

Fatal error: require_once() [function.require]: Failed opening required '/home/c977th/public_html/clanless/Sources/SPortalAdmin.php' (include_path='.:/usr/local/php52/pear') in /home/c977th/public_html/clanless/index.php on line 382


And there is nothing at the bottom of the page about simple portal like there should be.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Nathaniel on October 10, 2008, 11:16:46 PM
@learjet45,
They may have gotten lost in the flood of posts. ;)

What is your origional version of SimplePortal? And what SimplePortal versions have you upgraded it with? Its appears that your 'SPortalAdmin.php' file is missing.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Apllicmz on October 10, 2008, 11:28:31 PM
Quote from: Gà Mái on October 10, 2008, 12:51:00 PM
Quote from: LHVWB on October 10, 2008, 04:29:48 AM
SimplePortal Classic 2.0.5 Released! (http://simpleportal.net/index.php?topic=527)
SimplePortal Classic 2.0.5 has now been release, click the link above to see the annoucement topic. :D

Wow... Cheer !!!!
Thank you very much. I love this mod !!! (^_-)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: learjet45 on October 11, 2008, 11:24:57 AM
Package manager shows 2.0.5 installed and running with 2.0.4 in there with the option to delete it. I think I went through, managed to get back to 2.0.4, uninstalled it, and then installed 2.0.5 to see if that would work but im still having issues. I dont know if it is just me but I've been in my sources file and I dont think all the SP files are there that should be.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Sudhakar Arjunan on October 11, 2008, 11:31:00 AM
No Reply at Simple Portal for last 2 days.

http://simpleportal.net/index.php?topic=532.0 - Install error for Simpleportal 2.0.5
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on October 11, 2008, 12:31:04 PM
Quote from: asudhakar on October 11, 2008, 11:31:00 AM
No Reply at Simple Portal for last 2 days.

http://simpleportal.net/index.php?topic=532.0 - Install error for Simpleportal 2.0.5


Be aware that we're all volunteers here. Our team is small, and more often than not you're going to get support from a Dev or Customizer, rather than a Support specialist (well, seeing as we have none yet, that would be the case). So just keep in mind that our Team is very busy right now, trying to get SP 2.1 out, and cleaning up from SP 2.0.5. Hopefully you'll be assisted soon, though you may  have to be patient for a little while longer. Thanks for understanding.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: edi67 on October 11, 2008, 01:44:58 PM
everything work ok with Simpleportal only one little graphic problem for me, viewing the article i have one double line HR after the title of article look pics attached

here my url:
http://ediboard.altervista.org/index.php

there is way for remove this line?

also NNEONSHOUTBOX not work and my chat too because i have this ERROR:
Notice: Undefined index: sp-forum in /membri/ediboard/Sources/Subs.php on line 3994


QuoteLine 3994 in BOLD
   //   Add a forum button for the Simple Portal Mod.
         'forum' => array(
         'title' => $txt['sp-forum'],
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: HateFlavor on October 11, 2008, 08:46:32 PM
Hello!

This is an excellent portal, it's much easier to ad and remove things than the old XMB system I was using I thank you!

I do have a small issue with the Recent Topics Block, I can't seem to find where I can remove some of the information from that block.

Like I want to remove the Forum name, User who posted name, and the Time stamp
Right now it looks like this

OCTOBER 9TH @ VINOS - SAVIOURS w/ DEADBIRD and SEAHAG
[Show Announcements]    Rev408
Today at 12:27:14 PM

I would like it to wrap within the box and only have the topic information like this

OCTOBER 9TH @ VINOS - SAVIOURS w/ DEADBIRD and SEAHAG

Have I missed something?
http://www.midsouthmetal.com/SMF/index.php

EDIT:
Nevermind I found a solution from the simple portal board
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: mymktp1 on October 12, 2008, 02:13:08 AM
Hi, I was wondering how to have all guests and members to be able to view the html Blocks ? At the moment it only displays the articles for the guests.... however if you log in you then are able to view the blocks ... I want my guests to be able to see the portal blocks...
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: mymktp1 on October 12, 2008, 02:42:06 AM
Oh... Also I tried upgrading to a 2.0.5 and I got this error ...

Unknown column 'force_view' in 'field list'
File: /hsphere/local/home/kitping/timsradio.net/smf/Sources/Subs-SPortal1-1.php
Line: 43

can you please help me with this
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Sanity on October 12, 2008, 03:56:55 AM
Ok this is my first time doing this, i uploaded the portal and i got these errors..
right click view image if its to hard to see.
(http://i37.tinypic.com/2viijw6.jpg)

What should i do?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on October 13, 2008, 07:56:27 AM
Quote from: edi67 on October 11, 2008, 01:44:58 PM
everything work ok with Simpleportal only one little graphic problem for me, viewing the article i have one double line HR after the title of article look pics attached

here my url:
http://ediboard.altervista.org/index.php

there is way for remove this line?

also NNEONSHOUTBOX not work and my chat too because i have this ERROR:
Notice: Undefined index: sp-forum in /membri/ediboard/Sources/Subs.php on line 3994


QuoteLine 3994 in BOLD
   //   Add a forum button for the Simple Portal Mod.
         'forum' => array(
         'title' => $txt['sp-forum'],
I don't know why this happen... because we insert a text for it, i hope this solve the problem.
http://simpleportal.net/index.php?topic=534.msg3707#msg3707

Quote from: mymktp1 on October 12, 2008, 02:42:06 AM
Oh... Also I tried upgrading to a 2.0.5 and I got this error ...

Unknown column 'force_view' in 'field list'
File: /hsphere/local/home/kitping/timsradio.net/smf/Sources/Subs-SPortal1-1.php
Line: 43

can you please help me with this
Unpack the Package File, and than upload the Upgrade1-1.php to your server, and call the file. It will upgarde any database Version...

Quote from: mymktp1 on October 12, 2008, 02:13:08 AM
Hi, I was wondering how to have all guests and members to be able to view the html Blocks ? At the moment it only displays the articles for the guests.... however if you log in you then are able to view the blocks ... I want my guests to be able to see the portal blocks...
How are your current permission settings for the blocks?
Easiest way for this is to set the permission type to "ignore permissions" :).

Bye
DIN1031
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ousu on October 14, 2008, 01:32:51 AM
I am using SimplePortal 2.0.4  and smf 1.1.5 version.

I would like to add recent posts in softwares and recent posts in tollywood etc....in my home page.

How can I add the code ???

Please help me
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on October 14, 2008, 01:37:50 AM
Please upgrade to SimplePortal 2.0.5. This fixes many bugs and adds a few new features. You might find it a little easier to use as well. ;)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: legend 1234 on October 14, 2008, 04:02:53 AM
mm ive just added this mod and i really like it

but im getting a couple things wrong

how can i change the size of the Recent Topics board on the right

for some reason it wont go any smaller

how can i make it the same size as recept posts

and also how come all the images are appearing as a box with a red x in them ?

thanks heaps

ps. url is http://advanced-scape.110mb.com/forum/index.php
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Nathaniel on October 14, 2008, 05:03:04 AM
@legend 1234,
Firstly the 'Recent Topics" and "Recent Posts" blocks are coded to look like that, if you want to make them smaller then you will have to reduce the actual content within the block. I can help you to edit those blocks if you want to do that, just make sure you describe what you want clearly.

You should be able to fix the image issue, by putting the attached image files into your '/Themes/{themename}/images/' folder.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: legend 1234 on October 14, 2008, 05:28:53 AM
thank you very much

its all fixed :)

love the mod btw

thanks heaps  :D
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ousu on October 14, 2008, 11:38:43 AM
Can I just upgrade to 2.0.4 to 2.0.5 with out un-installing 2.0.4 ?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on October 14, 2008, 11:40:34 AM
Yes. However, if you have custom coding, then there may be some failures. Uninstalling SP will not remove your data, however, so if you run into errors due to coding, you can uninstall SP and install the newer version.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on October 15, 2008, 01:35:16 AM
Quote from: ousu on October 14, 2008, 11:38:43 AM
Can I just upgrade to 2.0.4 to 2.0.5 with out un-installing 2.0.4 ?
Yes you can upgrade it, but you will lose costum changes on the SPortal.php, because this file will be replaced with SPortal1-1.php. All database things will be leave like before, and will be updated to the newest version :).

Bye
DIN1031
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Sudhakar Arjunan on October 16, 2008, 04:17:39 PM
I have installed in smf 2.0.4, the version i use 2.0.5 classic.

It shows this error ever click made on Portal Page.

8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 18

8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 19

8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 20

....
..
.
.
.
.
.
.

..
...

8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 31
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on October 17, 2008, 01:01:09 AM
Quote from: asudhakar on October 16, 2008, 04:17:39 PM
I have installed in smf 2.0.4, the version i use 2.0.5 classic.

It shows this error ever click made on Portal Page.

8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 18

8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 19

8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 20

....
..
.
.
.
.
.
.

..
...

8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 31
*drop* i answered this already... but okay
http://simpleportal.net/index.php?topic=593.msg3901#msg3901

Bye
DIN!031


Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: PatrickSBF on October 18, 2008, 03:18:42 PM
Hi all, as you can see this will be my first post/question, I hope to not make this a habit.

I'm wondering, how do I get the "main" forum to appear in the center between my left and right blocks without having to use pieces of the forum.

I like the forum to appear the same in the center as like I wasn't using a portal and just add a couple
blocks on each side of it.

Thanks for any help,
Pat
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Haitisports on October 18, 2008, 04:34:50 PM
Hi all. After I downloaded the new sportal version, I see this in my home page:

"Unknown column 'permission_type' in 'field list'
File: /home/www/haiti-sports.com/smf/Sources/Subs-SPortal1-1.php
Line: 43

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

How can I do that? (pleeeease!)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on October 20, 2008, 01:29:56 AM
Quote from: PatrickSBF on October 18, 2008, 03:18:42 PM
Hi all, as you can see this will be my first post/question, I hope to not make this a habit.

I'm wondering, how do I get the "main" forum to appear in the center between my left and right blocks without having to use pieces of the forum.

I like the forum to appear the same in the center as like I wasn't using a portal and just add a couple
blocks on each side of it.

Thanks for any help,
Pat
This will come in Version 2.1 ;).

Quote from: Haitisports on October 18, 2008, 04:34:50 PM
Hi all. After I downloaded the new sportal version, I see this in my home page:

"Unknown column 'permission_type' in 'field list'
File: /home/www/haiti-sports.com/smf/Sources/Subs-SPortal1-1.php
Line: 43

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

How can I do that? (pleeeease!)
In the packaged is a File called Upgrade1-1.php. (Normal this file should be called on an upgrade...).
Unpack this file upload it to your FTP and call the Upgrade1-1.php with your browser.
Than your SPortal Database will be up to date after that.

Bye
DIN1031

Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 20, 2008, 11:32:12 PM
Is there a way to upgrade from SimplePortal 2.0 to 2.0.5?

It'll take a lot of manual edits to uninstall 2.0 then install 2.0.5 on my 2 forums.
I'm using the Dilber MC Theme by HarzeM on both forums, and numerous other mods.

On both forums, when click uninstall, I get:

1.     Execute Modification     ./index.php     Test failed
4.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
8.    Execute Modification    ./Themes/default/index.template.php    Test failed

Yet, that does not include all the other manual edits to my theme.
Any ideas on what to do?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on October 21, 2008, 12:14:42 AM
I installed 2.0.5 version of this today and the installation was fine.  After playing around with what I wanted to see on the page, I looked back at my error log and I have 22 pages of the same error posted below.

Looks like all the members are causing it and not just one.  Here is the log and the part of the file.

using on v2.0 b4.0 on default theme (just color changes)

Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on October 21, 2008, 12:39:45 AM
Quote from: BurkeKnight on October 20, 2008, 11:32:12 PM
Is there a way to upgrade from SimplePortal 2.0 to 2.0.5?

It'll take a lot of manual edits to uninstall 2.0 then install 2.0.5 on my 2 forums.
I'm using the Dilber MC Theme by HarzeM on both forums, and numerous other mods.

On both forums, when click uninstall, I get:

1.     Execute Modification     ./index.php     Test failed
4.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
8.    Execute Modification    ./Themes/default/index.template.php    Test failed

Yet, that does not include all the other manual edits to my theme.
Any ideas on what to do?
Hum i thought we leave the old Version 2.0.4 on the site...

Upgrade first to 2.0.4 after that you can upgrade to 2.0.5... i attache the old 2.0.4 here... so that you can upgrade first to that version...

Quote from: tk2012 on October 21, 2008, 12:14:42 AM
I installed 2.0.5 version of this today and the installation was fine.  After playing around with what I wanted to see on the page, I looked back at my error log and I have 22 pages of the same error posted below.

Looks like all the members are causing it and not just one.  Here is the log and the part of the file.

using on v2.0 b4.0 on default theme (just color changes)


Hum a forgotten text string...

The $txt['smf82'] should be replaced with $txt['board'].

Bye
DIN1031
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on October 21, 2008, 12:43:19 AM
Thanks ディン1031!

Will try that now!

BTW- Really like the mod!
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 21, 2008, 08:24:32 AM
Showed a couple of errors in upgrading to 2.0.4 yet none for 2.0.5 so I guess it worked...

I hope there were no real changes to the theme files, from 2.0 to 2.0.5 as if so, I'd have a hard time updating those...lol
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: psynx on October 21, 2008, 09:02:02 AM
hello, i have a few concerns. please look at the image below

(http://d.imagehost.org/0156/images.jpg)

how do i get rid of this 'dot' and 'arrow' ?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on October 21, 2008, 09:03:44 AM
Add the dot.gif and arrow.gif to your /Themes/yourtheme folder, where yourtheme is the name of the theme. You can find the dot.gif and arrow.gif files in the unzipped SimplePortal mod package.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: HuRRR on October 21, 2008, 03:17:29 PM
Have only one thing to say...

WOW !
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ke4obt on October 22, 2008, 09:39:29 PM
I have this code: global $scripturl, $modSettings, $sourcedir;

require_once("/****/html/hraus/SSI.php");

$now = mktime() + $modSettings['time_offset'] * 3600;
         $today = date('j',$now);
         $year = date("Y",$now);
         $month = date("n",$now);
         $days = array();

         $day_name_length = 3;
         $month_href = $scripturl . '?action=calendar';
         $first_day = 0;
         $pn = array();

$first_of_month = gmmktime(0,0,0,$month,1,$year);
#remember that mktime will automatically correct if invalid dates are entered
# for instance, mktime(0,0,0,12,32,1997) will be the date for Jan 1, 1998
# this provides a built in "rounding" feature to generate_calendar()

#retrieve this month events, holydays and birthdays
$days_in_month = gmdate('t',$first_of_month);
include_once($sourcedir . '/Calendar.php');
$low_date = $year.'-'.$month.'-01';
$high_date = $year.'-'.$month.'-'.$days_in_month;
$events = calendarEventArray($low_date, $high_date);
$birthdays = calendarBirthdayArray($low_date, $high_date);

#add important days to the days array
foreach($events as $startdate => $value)
$days[substr($startdate,8)] = array(NULL,NULL,'<a class="smalltext" style="color: steelblue; font-weight: bold; background-color: '.(substr($startdate,8)<$today ? 'lightblue' : 'yellow').'; padding: 0px 4px 0px 4px;" href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($event['start_date'],8).'" target="_self">'.substr($startdate,8).'</a>');

foreach($birthdays as $startdate => $value)
$days[substr($startdate,8)] = array(NULL,NULL,'<a class="smalltext" style="color: steelblue; font-weight: bold; background-color: '.(substr($startdate,8)<$today ? 'lightblue' : 'yellow').'; padding: 0px 4px 0px 4px;" href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($birth['start_date'],8).'" target="_self">'.substr($startdate,8).'</a>');

$today_date = $year.'-'.($month<10 ? '0'.$month : $month).'-'.$today;

if(empty($events[$today_date]))
$days[$today] = array(NULL,NULL,'<a class="smalltext" style="color: steelblue; font-weight: bold; border: solid 1px black; background-color: white; padding: 0px 4px 0px 4px;" href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.$today.'</a>');
else
$days[$today] = array(NULL,NULL,'<a class="smalltext" style="color: steelblue; font-weight: bold; border: solid 1px black; background-color: yellow; padding: 0px 4px 0px 4px;" href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.$today.'</a>');


$day_names = array(); #generate all the day names according to the current locale
for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400) #January 4, 1970 was a Sunday
$day_names[$n] = ucfirst(gmstrftime('%A',$t)); #%A means full textual day name

list($month, $year, $month_name, $weekday) = explode(',',gmstrftime('%m,%Y,%B,%w',$first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; #adjust for $first_day
$title   = htmlentities(ucfirst($month_name)).' '.$year;  #note that some locales don't capitalize month and day names

#Begin calendar. Uses a real <caption>. See http://diveintomark.org/archives/2002/07/03
@list($p, $pl) = each($pn); @list($n, $nl) = each($pn); #previous and next links, if applicable
if($p) $p = '<span class="smalltext">'.($pl ? '<a href="'.htmlspecialchars($pl).'">'.$p.'</a>' : $p).'</span> ';
if($n) $n = ' <span class="smalltext">'.($nl ? '<a href="'.htmlspecialchars($nl).'">'.$n.'</a>' : $n).'</span>';
$calendar = '<table>'."\n".
'<caption >'.$p.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title).$n."</caption>\n<tr>";

if($day_name_length){ #if the day names should be shown ($day_name_length > 0)
#if day_name_length is >3, the full name of the day will be printed
foreach($day_names as $d)
$calendar .= '<th class="smalltext" abbr="'.htmlentities($d).'">'.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).'</th>';
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}

if($weekday > 0) $calendar .= '<td class="smalltext" colspan="'.$weekday.'"> </td>'; #initial 'empty' days
for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++){
if($weekday == 7){
$weekday   = 0; #start a new week
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}
if(isset($days[$day]) and is_array($days[$day])){
@list($link, $classes, $content) = $days[$day];
if(is_null($content))  $content  = $day;
$calendar .= '<td "'.($classes ? ' class="'.htmlspecialchars($classes).'">' : '>').
($link ? '<a href="'.htmlspecialchars($link).'">'.$content.'</a>' : $content).'</td>';
}
else
{
$calendar .= "<td class=\"smalltext\" style=\"padding-right:4px;\"><a";
if(((($weekday+$first_day) % 7)==0))
{
$calendar .= ' style="color:#C00000;"';
}
$calendar .= " href=\"".$scripturl."?action=calendar;sa=post;month=".$month.";year=".$year.";day=".$day."\" target=\"_self\">$day</a></td>";
}
}
if($weekday != 7) $calendar .= '<td class="smalltext" colspan="'.(7-$weekday).'"> </td>'; #remaining "empty" days

echo $calendar.'</tr>';

#crate notice for the next N days events. N is set in Settings.
if (ssi_todaysCalendar('')) {
$result = ssi_todaysCalendar('');
if(!empty($result['birthdays'])){
echo '<tr><td><hr></td><td colspan="5" class="smalltext" align="center"><b>Birthdays</b></td><td><hr></td></tr><td colspan="7" class="smalltext">';
$birthdays = $result['birthdays'];
echo '
<span style="color: #' . $modSettings['cal_bdaycolor'] . ';">' . $txt['calendar3b'] . '</span><br />';
foreach( $birthdays as $member )
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['name'], isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', '<br />';
echo '</td></tr>';
}
if(!empty($result['events']))
{
echo '<tr><td><hr></td><td colspan="5" class="smalltext" align="center"><b>Upcomings</b></td><td><hr></td></tr><td colspan="7" class="smalltext">';
echo '
<span style="color: #' . $modSettings['cal_eventcolor'] . ';">' . $txt['calendar4b'] . '</span><br /> ';
$events = $result['events'];
foreach ($events as $event)
{
echo '
'.substr($event['start_date'],8).'/'.substr($event['start_date'],5 , 2).':';
if ($event['can_edit'])
echo '
<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ';
echo '
' . $event['link'] . '<br />';
}
}
  echo '</td></tr>';
}

echo '</table>';


it is to show the birthdays and events in the calendar block in simple portal. I would like to have it also show the holidays under the birthdays and events.
Can someone show me how to do that?
The code is not part of simple portal, I got it from someone else who was trying to help me.
Thanks in advance,
Flip
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: BOS4O on October 23, 2008, 06:31:21 PM
:o
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: PAPABEAR on October 24, 2008, 10:44:43 AM
Is it possible to make this portal show when at forum list and not just on home page? I am testing on the latest version of SMF 2.0 beta,
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on October 24, 2008, 11:44:43 AM
That feature won't be available until SimplePortal 2.1. Thanks.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: BOS4O on October 25, 2008, 10:56:48 AM
Quote from: BOS4O on October 23, 2008, 06:31:21 PM
hey something go wrong whn i installed the new version... i have 2 copyrights now... how to remove one of them?  :o

where is the creator of this thing to help me ?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: dgandy on October 25, 2008, 01:19:41 PM
Quote from: BOS4O on October 25, 2008, 10:56:48 AM
Quote from: BOS4O on October 23, 2008, 06:31:21 PM
hey something go wrong whn i installed the new version... i have 2 copyrights now... how to remove one of them? this is my forum seee the bottom http://lfs-bg.net  :o

where is the creator of this thing to help me ?

He's probably trying to get some sleep. LOL
There is a real simple fix....

You can search for sportal_vital(); code in Sources/Subs.php and delete one.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: BOS4O on October 25, 2008, 02:59:50 PM
oh tnx  :P
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 25, 2008, 03:56:44 PM
Look, I understand and respect, the need for the copyright, but I don't understand the need of the extra space between it and the other copyrights in the version for SMF 2.0 Beta 4.

How would I remove the extra line space after the SimplePortal copyright, so it does not look like this?

SimplePortal Classic 2.0.5

Copyright © 2008 - BurkeKnight Enterprises.
Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC

I'd like it to look like:

SimplePortal Classic 2.0.5
Copyright © 2008 - BurkeKnight Enterprises.
Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Sudhakar Arjunan on October 25, 2008, 04:07:17 PM
yes you are Right, BurkeKnight.

I agree with your statement.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: dgandy on October 25, 2008, 04:13:52 PM
You're welcome Bos40

I'm not sure about that one BurkeKnight. I am running SMF 1.1.6. It looks like there may be a <br /> after sportal_vital(); or before your copyright (Copyright © 2008 - BurkeKnight Enterprises.) that can be removed. Just be careful not to delete anything in the SMF copyright code.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 25, 2008, 04:32:19 PM
Already looked for that.
Does not appear to be one in index.template.php or on subs.php...

I'm using the Custom Copyright code. Have tried without it, and the SimplePortal copyright still has the line break.

What file is the SimplePortal copyright in?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: BOS4O on October 25, 2008, 05:53:09 PM
look too in the custom copyright thing for <br />  :-\
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 25, 2008, 05:56:48 PM
I did. The only one is AFTER the custom.

I posted what the index.template.php has. The only <br /> is after the custom, so it's not on same line as the SMF one.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Nathaniel on October 25, 2008, 06:28:11 PM
@BurkeKnight, asudhakar, dgandy and BOS4O,
Unfortionately the copyright cannot be in the SMF copyright function (as it used to be), and putting it in the template means that people will have to perform another template edit. Because of that, it uses a different method that puts it above the SMF copyright, there actually isn't any 'br', its just padding on the 'footerarea' div.

Try this edit in your 'index.template.php' file. Find this code:
<div id="footerarea"
Replace with this code:
<div id="footerarea" style="padding-top:0px;"

That may work, although it will depend on your theme.

@BurkeKnight,
Could you please try to avoid posting important copyright sections of code? It may help some people to remove the copyright. I am more than happy to help people edit the style, but not remove it. ;)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: dgandy on October 25, 2008, 06:49:07 PM
I don't understand why people want to remove the SMF copyright. I'm proud to display it on my site.   :)


The '<br />', before the theme copyright is what is causing the space. If that was removed, would it mess up the official copyright?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 25, 2008, 06:54:58 PM
@LHVWB

Nope, did not do it. I'm using the Default theme, which I had just edited images and the colors.

@dgandy

1. Not trying to remove the copyright, only the extra line space.
2.
QuoteThe
'<br />',
before the theme copyright is what is causing the space. If that was removed, would it mess up the official copyright?

Is NOT the problem. Like I said before, the '<br />', before the theme copyright, is for the custom copyright code. Which is located AFTER the SimplePortal one.
AQlso, just to be sure it was not it, I had tried without the custom copyright code, and the space was larger, 2 lines...
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ccbtimewiz on October 25, 2008, 07:21:17 PM
By "custom copyright", are you referring to my mod?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 25, 2008, 07:28:24 PM
I do believe so. I know there's no line break above it, just at the end to make it so it's not on same line as the SMF one.

However, the code above did not move it down much, but it is ok, I guess. Just was curios to why the SimplePortal one was so high up. Seeing how things are coded in SMF 2.0, I can see how things are a bit harder for coders...
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ccbtimewiz on October 25, 2008, 07:55:46 PM
Link to website so I can get a visual?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 25, 2008, 07:57:57 PM
http://www.bkgta.co.cc

Right now, I got the SimplePortal copyright lowered a bit. Not like I wanted it, but better than it was.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: BOS4O on October 25, 2008, 08:08:41 PM
remove this

<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=4149277;
var sc_invisible=1;
var sc_partition=51;
var sc_click_stat=1;
var sc_security="b4fc931c";
</script>

<script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><div class="statcounter"><a title="web analytics" href="http://www.statcounter.com/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/4149277/0/b4fc931c/1/" alt="web analytics" ></a></div></noscript>

<!-- End of StatCounter Code -->


and lets see the results  ::)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 25, 2008, 08:18:28 PM
No difference. I had tried that before, too.
That's inserted using the Ad Management mod. ;)

Who says that mod is just for ads? LOL
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: BOS4O on October 25, 2008, 09:15:48 PM
hmmm... in this forum is the same like yours... http://www.foreverlastingfriends.com/index.php
if you want remove the copyright from there and post it into your custom copyright area  :)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 25, 2008, 09:23:16 PM
Thanks anyway, BOS4O, but that site is using a very custom theme, unlike my modded default.
Like I said, I got it close enough now. Not as close as was hoping for, bur at least it looks better. :)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Nathaniel on October 25, 2008, 09:39:46 PM
@BurkeKnight,
Okay, I worked out how to fix it for your site, and hopefully the fix will be the same for others as well, if they are using SMF 2 Beta.

Find this code or similar in your '/Themes/{themename}/css/index.css' (change the default if your theme doesn't have that file):
#footerarea ul li.copywrite
{
   display: block;
   line-height: 1;
   font-size: small;
   padding: 1em;
}


Replace with this code:
#footerarea ul li.copywrite
{
   display: block;
   line-height: 1;
   font-size: small;
   padding: 0;
}


@BOS4O,
Try adding 'background:black;' to the style property of the 'div' tag in the sportal_vital() function, and 'style="color:white;"' to the 'a' tag.

Then you can perform this edit. Find this code from your '/Themes/{themename}/style.css' file:
#footerarea {
    text-align: center;
    padding: 17px;
}


Replace with this code:
#footerarea {
    text-align: center;
    padding: 0px;
}



To everyone:
The current copyright/link for SimplePortal, does have issues with how it is displayed, this is because we recently had to change it because it edited the SMF copyright function that shouldn't be edited. We will have a look into other methods of showing the link, so hopefully we can improve it so that it will work better with custom themes. :)

As you can see with the fixes above, you can fix the issues by changing the css of your footer and the css in the sportal_vital() function. There is no need to alter the link or move it at all.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 25, 2008, 09:43:23 PM
Thank you, LHVWB, It worked great!

However, I just noticed something.
I have Gallery installed, yet there is no block for the Gallery, like on my 1.1.6 forums.
In the add block, there are a few missing ones...
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Nathaniel on October 25, 2008, 09:46:22 PM
When we making the 2.0.5 version of SimplePortal the galleries for SMF 2 Beta were just new, so we hadn't made any blocks for them yet. I believe that its on the list of things that our customisation team needs to do. Although I seem to remember something about it on our website (http://simpleportal.net), try asking there. :)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 25, 2008, 09:51:36 PM
Funny, I just registered there... What gives me the feeling you knew that? LOL
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: BOS4O on October 26, 2008, 06:55:35 AM
tnx LHVWB   :D

i removed the original simple-portal copyright and i posted it as "middle-bottom" block in the portal  :)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on October 26, 2008, 09:47:27 AM
Hi BOS40,

While I respect your right to customize SP to your liking, please do not advertise or assist anyone in altering their SimplePortal copyright. The copyright, and the link contained within it, is our main means of spreading the word about SP. Altering it deprives us of that opportunity, and could also get you in trouble.

I see that you altered the SMF copyright as well on your site. I would strongly encourage you to restore the SMF copyright to its original state, as violators of the SMF license (this includes altering the copyright) are strongly prosecuted by the SMF Team.

But just to restate, please do not make further comments or explain edits for altering copyright. If there are any individual copyright issues (such as a duplicate copyright) the SP Team will deal with those support requests.

Thank you.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: BOS4O on October 26, 2008, 10:59:57 AM
ok, no problem  ;)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on October 27, 2008, 12:22:52 AM
Just to let you know, I seem to be getting a lot of errors in my SMF 2.0 Beta 4 site.

Quote8: Undefined index: smf82
Apply Filter: Only show the errors from this file
File: /Sources/SPortal2.php
Line: 1010
Quote8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 58
Quote8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 8
Quote8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 5
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on October 27, 2008, 01:39:58 PM
SMF v2.0 b4.0
default theme (w/ color changes)

I'm getting the following error listed about 40-50 times every two days.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on October 27, 2008, 05:24:10 PM
Go into SPortal.{language}.php where {language} is your language file (most likely English) and see if $txt[sp-forum] exists. If not, insert the following line before the ?> at the bottom.

$txt['sp-forum'] = 'Forum';

Save and upload and it should be fixed.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on October 28, 2008, 10:30:44 AM
Quote from: BurkeKnight on October 27, 2008, 12:22:52 AM
Just to let you know, I seem to be getting a lot of errors in my SMF 2.0 Beta 4 site.

Quote8: Undefined index: smf82
Apply Filter: Only show the errors from this file
File: /Sources/SPortal2.php
Line: 1010
Quote8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 58
Quote8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 8
Quote8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 5
Please insert in your custom php blocks the global $scripturl;. At the first line.

The smf82 is a know bug and forgotten replaced language string.
You can replace $txt['smf82'] with $txt['board'] on the sportal.template.php but than it's possible that the mod will not upgradeable. Or you insert a simple $txt['smf82'] = $txt['board']; near the end of the index.english.php and refresh the cache after that. (Than the mod will be upgradable).

Bye
DIN1031
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: fiveflat on October 29, 2008, 01:20:01 PM
I've searched the forum but not sure if I searched properly.  I can't believe I'm the only one that can't get the "gallery" block to see the SMF Media Gallery?

I added the built in simpleportal block "SMF Gallery" to my blocks, but I get an error in the block that says:

QuoteCould not find the gallery installation
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Bugpac ™ on October 29, 2008, 11:06:15 PM
Quote from: Evil Eli on October 27, 2008, 05:24:10 PM
Go into SPortal.{language}.php where {language} is your language file (most likely English) and see if $txt[sp-forum] exists. If not, insert the following line before the ?> at the bottom.

$txt['sp-forum'] = 'Forum';

Save and upload and it should be fixed.

I am getting the same error in default theme, I just checked and that line is in my sportal.english.php file. any other ideas?
Title: Re: SimplePortal (2.0.5 Released!)
Post by: chrisb on October 31, 2008, 05:28:41 PM
Database Error
Unknown column 'permission_type' in 'field list'
File: /home/cxtxtsju/public_html/forum/Sources/Subs-SPortal1-1.php
Line: 43

When i have installed this on to our forum this will come up
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ccbtimewiz on October 31, 2008, 05:58:28 PM
Quote from: SimplePortal Team on March 10, 2008, 11:16:07 PM

  • Link to Support/Management Website (http://simpleportal.net/index.php)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on October 31, 2008, 08:02:01 PM
Quote from: fiveflat on October 29, 2008, 01:20:01 PM
I've searched the forum but not sure if I searched properly.  I can't believe I'm the only one that can't get the "gallery" block to see the SMF Media Gallery?

I added the built in simpleportal block "SMF Gallery" to my blocks, but I get an error in the block that says:

QuoteCould not find the gallery installation

Because SMF Gallery block is for the SMF Gallery mod. There is not yet a block made for the SMF Media Gallery mod, sorry.
Title: Re: SimplePortal (2.0.5 Released!)
Post by: ディン1031 on November 01, 2008, 07:17:38 AM
Quote from: chrisb on October 31, 2008, 05:28:41 PM
Database Error
Unknown column 'permission_type' in 'field list'
File: /home/cxtxtsju/public_html/forum/Sources/Subs-SPortal1-1.php
Line: 43

When i have installed this on to our forum this will come up
Unpack the package tar.gz file, and upload the included Upgrade1-1.php into the forums base directory and call that file with the browser.

Bye
DIN1031
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: nirfet on November 01, 2008, 01:44:15 PM
Hi! I have Hack's Park shout box on my forum ... and since i istalled SimplePortal shout box isn't shown  on the forum :S
Any idea what is wrong with it?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: chrisb on November 01, 2008, 06:14:46 PM
Quote from: ディン1031 on November 01, 2008, 07:17:38 AM
Quote from: chrisb on October 31, 2008, 05:28:41 PM
Database Error
Unknown column 'permission_type' in 'field list'
File: /home/cxtxtsju/public_html/forum/Sources/Subs-SPortal1-1.php
Line: 43

i cant find the file you have suggested

When i have installed this on to our forum this will come up
Unpack the package tar.gz file, and upload the included Upgrade1-1.php into the forums base directory and call that file with the browser.

Bye
DIN1031
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Bugpac ™ on November 01, 2008, 09:31:22 PM
Quote from: Bugpac ™ on October 29, 2008, 11:06:15 PM
Quote from: Evil Eli on October 27, 2008, 05:24:10 PM
Go into SPortal.{language}.php where {language} is your language file (most likely English) and see if $txt[sp-forum] exists. If not, insert the following line before the ?> at the bottom.

$txt['sp-forum'] = 'Forum';

Save and upload and it should be fixed.

I am getting the same error in default theme, I just checked and that line is in my sportal.english.php file. any other ideas?

BTT
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on November 01, 2008, 09:45:28 PM
sources/Load.php


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


Replace 'Forum' with what you want. :)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tuguex on November 02, 2008, 10:37:31 AM
I change my theme recently, and now i dont have the "Forum" button.
Anyone can help me to create one ?

I'm using Outline theme
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Talismen on November 02, 2008, 12:06:31 PM
I'm using the default theme, and noticed that upon my "apply files" of 2.0.5 (from 2.0.4), that when I log in, I'm taken to the forum, and not the portal. Was this by design?

If so, can I change it, or will there be a choice in upcoming versions of SP?

I'd like to log in and be taken directly to my portal.
It seems like, in the past, that was always the case, with past versions. (Hopefully I'm remembering that correctly.)

Also, I noticed that when I loaded the 2.0.5 package, I didn't have a "upgrade" tag, only "Apply files" and "List files". Should I have had an "upgrade" tag as well?

Here's a list of the packages I have installed:

Quote
1. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0  [ List Files ] [ Delete ] 
2. SMF 1.0.14 / 1.1.6 Update 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
3. Order News 1.0.5   [ List Files ] [ Delete ] 
4. SimplePortal 2.0.2  [ List Files ] [ Delete ] 
5. Welcome Topic Mod 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
6. SimplePortal 2.0.4  [ List Files ] [ Delete ] 
7. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0   [ List Files ] [ Delete ] 
8. SimplePortal 2.0.1  [ List Files ] [ Delete ] 
9. SimplePortal Classic 2.0.5   [ Uninstall ] [ List Files ] [ Delete ] 
10. SMF 1.0.11 / 1.1.3 Update 1.1  [ List Files ] [ Delete ] 

Each time there is an upgrade package, should I uninstall and delete all past versions except the most recent, before I apply the newest version?


Thanks,
Tal
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Manu.G on November 02, 2008, 02:12:35 PM
Quote from: Talismen on November 02, 2008, 12:06:31 PM
I'm using the default theme, and noticed that upon my "apply files" of 2.0.5 (from 2.0.4), that when I log in, I'm taken to the forum, and not the portal. Was this by design?

If so, can I change it, or will there be a choice in upcoming versions of SP?

I'd like to log in and be taken directly to my portal.
It seems like, in the past, that was always the case, with past versions. (Hopefully I'm remembering that correctly.)
http://simpleportal.net/index.php?topic=551.0 (http://simpleportal.net/index.php?topic=551.0)
Quote from: LHVWB
Find and remove this code from your 'Subs.php' file. Remember that it will remove it for all redirects.
//We need the empty redirect for the smf portal go to the action=forum site =)
   if((empty($setLocation) || $scripturl == $setLocation) && !empty($modSettings['portalactive']))
      $setLocation = 'action=forum';

Be sure, when you make manual edits in SimplePortal files, it can be happen, you can't make any upgrades.  ;)

Quote from: Talismen on November 02, 2008, 12:06:31 PM
Also, I noticed that when I loaded the 2.0.5 package, I didn't have a "upgrade" tag, only "Apply files" and "List files". Should I have had an "upgrade" tag as well?

Could be you will find the "upgrade" link direct in the list of the installed packages. That's what I did, I loaded up the new version via package manager, went back to my list of mods and there I saw in the row of the SimplePortal Mod the "upgrade" link
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Talismen on November 02, 2008, 08:16:02 PM
Quote from: Manu0372 on November 02, 2008, 02:12:35 PM
Quote from: Talismen on November 02, 2008, 12:06:31 PM
I'm using the default theme, and noticed that upon my "apply files" of 2.0.5 (from 2.0.4), that when I log in, I'm taken to the forum, and not the portal. Was this by design?

If so, can I change it, or will there be a choice in upcoming versions of SP?

I'd like to log in and be taken directly to my portal.
It seems like, in the past, that was always the case, with past versions. (Hopefully I'm remembering that correctly.)
http://simpleportal.net/index.php?topic=551.0 (http://simpleportal.net/index.php?topic=551.0)
Quote from: LHVWB
Find and remove this code from your 'Subs.php' file. Remember that it will remove it for all redirects.
//We need the empty redirect for the smf portal go to the action=forum site =)
   if((empty($setLocation) || $scripturl == $setLocation) && !empty($modSettings['portalactive']))
      $setLocation = 'action=forum';

Be sure, when you make manual edits in SimplePortal files, it can be happen, you can't make any upgrades.  ;)

Quote from: Talismen on November 02, 2008, 12:06:31 PM
Also, I noticed that when I loaded the 2.0.5 package, I didn't have a "upgrade" tag, only "Apply files" and "List files". Should I have had an "upgrade" tag as well?

Could be you will find the "upgrade" link direct in the list of the installed packages. That's what I did, I loaded up the new version via package manager, went back to my list of mods and there I saw in the row of the SimplePortal Mod the "upgrade" link

Thanks for the 'Subs.php' info. I'll try that. That should do the trick ;)

As for the "upgrade" link....I guess I won't worry too much about it. Everything seems to be working properly (*shrugs). I was just wondering if I should panic because I *didn't* see it, (and thus didn't "upgrade" instead of using "apply files" as I did). I'm guessing that unless one of the SP devs thinks it's an issue, I won't worry too much about it. I DO appreciate your info though ;)
I did locate the "upgrade" file in the "List files" for SP 2.0.5, so it *is* in there, but, I just didn't get the "upgrade" link tag after I uploaded the package.


Thanks much!
Tal
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on November 04, 2008, 10:44:12 AM
Quote from: Eliana Tamerin on October 27, 2008, 05:24:10 PM
Go into SPortal.{language}.php where {language} is your language file (most likely English) and see if $txt[sp-forum] exists. If not, insert the following line before the ?> at the bottom.

$txt['sp-forum'] = 'Forum';

Save and upload and it should be fixed.

I did this, but am still getting errors.  These are the errors that I am now receiving (along with that same one)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on November 04, 2008, 11:13:46 AM
Quote from: tk2012 on November 04, 2008, 10:44:12 AM
Quote from: Eliana Tamerin on October 27, 2008, 05:24:10 PM
Go into SPortal.{language}.php where {language} is your language file (most likely English) and see if $txt[sp-forum] exists. If not, insert the following line before the ?> at the bottom.

$txt['sp-forum'] = 'Forum';

Save and upload and it should be fixed.

I did this, but am still getting errors.  These are the errors that I am now receiving (along with that same one)
Sorry for the problems, that is a bug on SMF 2 Versions, it happen on xml/ajax use, because than the language of SPortal is not loaded. For example if you install Thank-O-Matic or some of the Shoutboxes this will happen offen. (And normal the files are not needed for that) ;)

There you can find the fix:
http://simpleportal.net/index.php?topic=534.msg3707#msg3707

Bye
DIN1031


Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on November 04, 2008, 11:37:24 AM
Well, now I have a template parse error.  Here it is:


I'll attach all that I did
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on November 04, 2008, 12:16:53 PM
I cleaned the cache and then I got this template parse error.  The entire forum is crashed now. 

I read that link you posted and I didn't get the error until I went into the Maintenance area and cleaned my cache... but, as you can see, I can't do a thing now.

www.motorstorm-rpms.org/community/index.php


The code posted by Eliana was supposed to go into SPortal.english.php.  I figured that replaced code shown to me by ディン1031 on your forum was to be in the same file, right?  Cause that's all that I did.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on November 04, 2008, 03:07:18 PM
I just tried putting the files back to how they were previously, but no dice.  Still can't get into forum at all.  So, I have it back to the way it was when the error presented itself after doing what was instructed on your forum.

Oddly I'm just getting this now when I got to my site...
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on November 04, 2008, 03:47:26 PM
I've a question... what did you exactly do? :X

Bye
DIN1031
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on November 04, 2008, 03:52:06 PM
1 - I did what Eliana said to do in a previous post to me.  The part which was quoted.  I went to Sportal2.english.php and added the code she posted.

2- I got the same errors

3- I reposted here earlier with the quoted parts above at which time you gave me a link to the post on the SP forum.

4- I went ahead and changed out the code that was shown in that thread to:
'title' => (!isset($txt['sp-forum']) ? '' : $txt['sp-forum']),

5- Then, I cleared the forum cache (as it wasn't stated which cache to clear) and posted got the template parse error with the DOUBLE_ARROW which I posted.

6- I turned off my laptop and turned it back on and the error changed to the other Template Parse error

Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on November 04, 2008, 03:54:14 PM
Quote from: tk2012 on November 04, 2008, 03:52:06 PM
1 - I did what Eliana said to do in a previous post to me.  The part which was quoted.  I went to Sportal2.english.php and added the code she posted.

2- I got the same errors

3- I reposted here earlier with the quoted parts above at which time you gave me a link to the post on the SP forum.

4- I went ahead and changed out the code that was shown in that thread to:
'title' => (!isset($txt['sp-forum']) ? '' : $txt['sp-forum']),

5- Then, I cleared the forum cache (as it wasn't stated which cache to clear) and posted got the template parse error with the DOUBLE_ARROW which I posted.

6- I turned off my laptop and turned it back on and the error changed to the other Template Parse error
Okay :)

Did you reupload the old English file?

This change must be done on the Subs.php... not on the language file.

Than change on the Subs.php follow thing:
'title' => $txt['sp-forum'],
to
'title' => (!isset($txt['sp-forum']) ? '' : $txt['sp-forum']),

Bye
DIN1031
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on November 04, 2008, 03:56:38 PM
yes, i went back and uploaded the file as it was to begin with and nothing changed, so I uploaded the files to how they were when the error happened, so I would know where things stood

The php file attached in the above post are how they appear on my server
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on November 04, 2008, 04:01:20 PM
Okay and now everything work?
Or is the template parse error there?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on November 04, 2008, 04:03:05 PM
no..  nothing works

There's the problem!  (sorry, didn't see your other reply when I responded.)


The edit that Eliana is talking about is supposed to be in which file?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on November 04, 2008, 04:05:17 PM
Okay i see.

So please upload the files before the change.
To clear the cache, change on the server into the cache directory and delete all files in there.
Than the cache is cleared and normal it should work again.

Bye
DIN1031
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on November 04, 2008, 04:07:37 PM
Quote from: tk2012 on November 04, 2008, 04:03:05 PM
no..  nothing works

There's the problem!  (sorry, didn't see your other reply when I responded.)


The edit that Eliana is talking about is supposed to be in which file?
Arg to many posts at the same time xD.
So the change Eliana mention is not working, because the string what you insert there should normal in that file oO. (If not than I'm blind xD).

So that you can upload the old version without anything new in it.

Bye
DIN1031
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on November 04, 2008, 04:17:29 PM
ok, I am re-uploading the sportal2.english.php file without ANY edits to it.

I am starting at that point.

I deleted the cache on the forum (and my browser) and the forum is back up.

Now... where do I start because I was still getting these errors today
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on November 04, 2008, 04:19:37 PM
I was getting these errors with the string that Eliana posted

But, I put them in the sportal2.english.php file.  The errors above appeared despite doing that.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on November 04, 2008, 04:22:06 PM
Quote from: tk2012 on November 04, 2008, 04:19:37 PM
I was getting these errors with the string that Eliana posted

But, I put them in the sportal2.english.php file.  The errors above appeared despite doing that.
Than do now follow changes on the $sourcedir/Subs.php:
Serach for
'title' => $txt['sp-forum'],
and replace it with
'title' => (!isset($txt['sp-forum']) ? '' : $txt['sp-forum']),

But be aware it could be possible that you can not upgrade to new versions ;).

Bye
DIN1031
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on November 04, 2008, 04:23:58 PM
ok, now, before I do that...

Should I still put the edit that Eliana posted or not?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on November 04, 2008, 04:26:20 PM
No you don't need to do that what eliana postet, because the other thing will remove the eval error that only happen on xml things ;).

Bye
DIN1031
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: tk2012 on November 04, 2008, 04:52:06 PM
whew, ok... did that edit and cleared out my old errors. 

Will see if anything appears.  Sorry for the confusion there.  It looked like the code that was being replaced was the same code that Eliana posted, so I was using the same file.  Thanks for squaring that away!
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on November 04, 2008, 06:22:42 PM
And this is why you always back up your files before you edit. ;)

Glad you got it resolved.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on November 04, 2008, 06:53:36 PM
Quote from: Eliana Tamerin on November 04, 2008, 06:22:42 PM
And this is why you always back up your files before you edit. ;)

That must explain why I have about 30 directories on my hard drive all with about 10 different SMF files....LOL
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on November 04, 2008, 07:18:43 PM
Quote from: BurkeKnight on November 04, 2008, 06:53:36 PM
Quote from: Eliana Tamerin on November 04, 2008, 06:22:42 PM
And this is why you always back up your files before you edit. ;)

That must explain why I have about 30 directories on my hard drive all with about 10 different SMF files....LOL

Sounds about right.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: nosoyelmejor on November 04, 2008, 11:19:10 PM
Can you help me please?

http://www.simplemachines.org/community/index.php?topic=272351.0

Thanks in advance for your help.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on November 04, 2008, 11:36:04 PM
http://simpleportal.net/index.php?board=37.0

Feel free to post your issue there, on SP.net's Spanish language board.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ディン1031 on November 05, 2008, 12:36:25 AM
Quote from: tk2012 on November 04, 2008, 04:52:06 PM
whew, ok... did that edit and cleared out my old errors. 

Will see if anything appears.  Sorry for the confusion there.  It looked like the code that was being replaced was the same code that Eliana posted, so I was using the same file.  Thanks for squaring that away!
No Problem could be happen :).
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: spoontosser on November 05, 2008, 03:10:46 PM
I just finished a manual,install on SMF 1.1.6 and everything seemed to go well, however I get this error message:

QuoteTable 'bdm721_smf1.smf_sp_blocks' doesn't exist
File: /home/bdm721/public_html/forum/Sources/Subs-SPortal1-1.php
Line: 43

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

Not sure how to fix or upgrade the database. Can anyone help me?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Costa on November 05, 2008, 03:13:24 PM
I've a similar problem, the solution came from SimplePortal.net (http://simpleportal.net/index.php?topic=628.msg4095#msg4095)

Quote from: ディン1031
Unpack the Simple Portal 2.0.5 Package. Upload the Upgrade1-1.php. Call this file with the browser. And than you forums database is upto date.

Bye
DIN1031

Farewell
- Costa
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: spoontosser on November 05, 2008, 03:33:46 PM
That did it...thanks!
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: fext on November 06, 2008, 04:42:15 AM
Hi Guys,

Firstly GREAT MOD! Somethinf i have needed for ages.

On to the problem I have... it might only be a small issue but the other day i installed simple portal by Sinan on one site and it all worked as it should have.

Now recently the members on my forum have all donated to put towards a new site which recently got set up and i have started work on it. Now the issue is that every thime i log out of the simple portal it redirects to the forum which i would rather it did not - have i missed something with the installation? I only installed it thru the packages area - would i need to edit anything in the theme i am using? It worked on the other installed without me needing to do this?

I have signed up on the simplePortal site as well but cannot activate my account till i get home from work tonight.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Bugpac ™ on November 06, 2008, 01:34:21 PM
How would i put the random images from this mod " http://www.simplemachines.org/community/index.php?topic=260821.0;topicseen " onto the portal page, so they stay random...
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: chrisb on November 10, 2008, 04:26:41 AM
Database Error
Unknown column 'permission_type' in 'field list'
File: /home/cxtxtsju/public_html/forum/Sources/Subs-SPortal1-1.php
Line: 43

When i have installed this on to our forum this will come up

which file do i upload to fix these issues

and when i run the upgrade script i get the following error


Updating Settings.php... Successful.
Updating and creating indexes... Unsuccessful!
This query:

    ALTER TABLE smf_smileys
    ORDER BY LENGTH(code) DESC;

Caused the 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 'LENGTH(code) DESC' at line 2

Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: haito on November 10, 2008, 04:39:08 AM
can simple portal add left side bar in forum??
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: nosoyelmejor on November 10, 2008, 07:35:08 PM
Hello everybody,
I have installed the SMF 1.1.7 with the Theme Kozakelebegi and the SimplePortal 2.0.5
I would like to set something similar to show the recent Topics but to be seen as the

following image that I attached.
http://i225.photobucket.com/albums/dd171/nosoyelmejor/Portada.jpg

I would like to be able to choose the boards where this is going to be applied.
The image would be the first to be shown in the body of the message, but

redimensioning to 150x206, or in the boards that have been
choosen, after the subject will ask to fill the information where the image address

appears, this address should be stored in a new field in the database.

I hope I have made myself clear enough to be understood, and because I can´t find

another way to explain it better.

thank you
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Hunchik on November 11, 2008, 02:46:24 PM
Quote from: haito on November 10, 2008, 04:39:08 AM
can simple portal add left side bar in forum??

I don't think we can do this right now. Maybe in the next version like 2.1? I also would like to do the same.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Costa on November 11, 2008, 04:00:48 PM
Quote from: Hunchik on November 11, 2008, 02:46:24 PM
Quote from: haito on November 10, 2008, 04:39:08 AM
can simple portal add left side bar in forum??

I don't think we can do this right now. Maybe in the next version like 2.1? I also would like to do the same.
In the next version of SP that would be available

Visit SimplePortal.net (http://simpleportal.net) for update news and more features from SP

Farewell
- Costa
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: sombra on November 13, 2008, 03:35:30 PM
hello here.

nice mod. i have a little question.

y had installed the mod im using 2.04 smf and theme darkbreak

and im getting dots for images how can i fix it

example

(http://i36.tinypic.com/al52m8.jpg)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Costa on November 13, 2008, 03:36:48 PM
upload the dot.gif and arrow.gif to your images folder from that theme

Farewell
- Costa
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: sombra on November 13, 2008, 04:25:10 PM
thanks fixed

now i see some error on my log from simple portal how can i fixed them or it dosent matter?

http://.../index.php?action=admin;area=packages;sa=install;package=simpleportalclassic2.0.5.tar.gz
Apply Filter: Only show the errors with the same message
2: fclose(): supplied argument is not a valid stream resource


Apply Filter: Only show the errors from this file
File: /home/..../public_html/Sources/Subs-Package.php


http://..../index.php?action=admin;area=packages;sa=install;package=simpleportalclassic2.0.5.tar.gz
Apply Filter: Only show the errors with the same message
2: fopen(/home/.../public_html/Themes/default/languages/Who.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
Apply Filter: Only show the errors from this file
File: /home/..../public_html/Sources/Subs-Package.php
Line: 2410

http://..../index.php?action=admin;area=packages;sa=install;package=simpleportalclassic2.0.5.tar.gz
Apply Filter: Only show the errors with the same message
2: fclose(): supplied argument is not a valid stream resource

thse are some of the error oin total i have 22 of the same mod

and other thing how can i make a principal menu of the forum in my portal?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Costa on November 13, 2008, 04:27:35 PM
For a more efficient help, please post in the SimplePortal (http://simpleportal.net) support website

Farewell
- Costa

PS: I have no Idea why you got those errors :P
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: ccbtimewiz on November 13, 2008, 04:27:59 PM
Quote from: sombra on November 13, 2008, 04:25:10 PM
thanks fixed

now i see some error on my log from simple portal how can i fixed them or it dosent matter?

http://.../index.php?action=admin;area=packages;sa=install;package=simpleportalclassic2.0.5.tar.gz
Apply Filter: Only show the errors with the same message
2: fclose(): supplied argument is not a valid stream resource


Apply Filter: Only show the errors from this file
File: /home/..../public_html/Sources/Subs-Package.php


http://..../index.php?action=admin;area=packages;sa=install;package=simpleportalclassic2.0.5.tar.gz
Apply Filter: Only show the errors with the same message
2: fopen(/home/.../public_html/Themes/default/languages/Who.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
Apply Filter: Only show the errors from this file
File: /home/..../public_html/Sources/Subs-Package.php
Line: 2410

http://..../index.php?action=admin;area=packages;sa=install;package=simpleportalclassic2.0.5.tar.gz
Apply Filter: Only show the errors with the same message
2: fclose(): supplied argument is not a valid stream resource

thse are some of the error oin total i have 22 of the same mod

and other thing how can i make a principal menu of the forum in my portal?

Be sure your host doesn't have SAFEMODE on. Likewise make sure you don't have mod_security on either.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: sombra on November 13, 2008, 04:36:24 PM
but you think this error can cause a problem in the feature?

and the other question how can i make a main menu of my forum in the simple portal?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: haito on November 13, 2008, 04:55:08 PM
how to remove simpleportal manually??

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Type     Action     Description
1.    Execute Modification    ./index.php    Test failed
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Display.php    Test successful
4.    Execute Modification    ./Sources/Load.php    Test successful
5.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
6.    Execute Modification    ./Sources/Recent.php    Test successful
7.    Execute Modification    ./Sources/Subs.php    Test successful
8.    Execute Modification    ./Sources/Help.php    Test successful
9.    Execute Modification    ./Sources/ManageServer.php    Test successful
10.    Execute Modification    ./Themes/default/index.template.php    Test successful
11.    Execute Modification    ./Themes/default/Display.template.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
13.    Execute Modification    ./Themes/default/languages/Who.english-utf8.php    Skipping file
14.    Delete File    ./Sources/SPortal1-1.php    
15.    Delete File    ./Sources/SPortalAdmin1-1.php    
16.    Delete File    ./Sources/Subs-SPortal1-1.php    
17.    Delete File    ./Themes/default/SPortal1-1.template.php    
18.    Delete File    ./Themes/default/SPortalAdmin1-1.template.php    
19.    Delete File    ./Themes/default/languages/SPortal.english.php    
20.    Delete File    ./Themes/default/languages/SPortal.english-utf8.php    
21.    Delete File    ./Themes/default/languages/SPortalAdmin.english.php    
22.    Delete File    ./Themes/default/languages/SPortalAdmin.english-utf8.php    
23.    Delete File    ./Themes/default/languages/SPortalHelp.english.php    
24.    Delete File    ./Themes/default/languages/SPortalHelp.english-utf8.php    
25.    Delete File    ./Themes/default/images/arrow.gif    
26.    Delete File    ./Themes/default/images/dot.gif
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: sombra on November 13, 2008, 05:54:34 PM
that web page is down

http://simpleportal.net/

Database Error: MySQL server has gone away
File: /home/spadmin/public_html/Sources/Security.php
Line: 279

Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on November 13, 2008, 06:17:25 PM
It's working now.

Sometimes server do tend to have minor troubles.
Always best to check again after a few minutes, before you report a site as down. :)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: sombra on November 13, 2008, 06:39:34 PM
i did cheked onece and then 15 minutes later ;) but nice if its working now
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: sombra on November 13, 2008, 06:42:17 PM
still i have the problem :D
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on November 13, 2008, 07:16:19 PM
Clear you browser's cache, then flush your DNS:

C:\WINDOWS\system32\ipconfig.exe /flushdns

If that does not work, then it may be a problem with their site going on and off, as every time I load it, it comes up.... (That happens a lot to people...LOL)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: sombra on November 13, 2008, 07:39:55 PM
i was saying abot my mod problem not that site hehe
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on November 13, 2008, 10:37:07 PM
Quote from: sombra on November 13, 2008, 03:35:30 PM
hello here.

nice mod. i have a little question.

y had installed the mod im using 2.04 smf and theme darkbreak

and im getting dots for images how can i fix it

example

(http://i36.tinypic.com/al52m8.jpg)

Just for future reference, for anyone using SMF 2.0.x (Beta/RC/Final), when installing SimplePortal, click on "Install in other themes" which should drop down into a list of themes you have and the various files to be edited and actions to be performed.

Two actions are moving adding images, named dot.gif and arrow.gif. If there are no failures in that theme, I suggest checking the box next to the theme name to perform the installation to that theme. If there are failures/errors for that theme, I would not suggest checking the box, but manually moving the images.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: sombra on November 14, 2008, 02:34:19 PM
i did that and its working great

but now i have a question i have put an chatango cbox in the rigth side noww i want to put top poster below and im seeng that it isint showing of rigth look for your self and sorry for my bad english

(http://i35.tinypic.com/euj2c6.jpg)

how can i expand it to be more width?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: [SiNaN] on November 15, 2008, 07:43:58 AM
Here is a fix for that:

http://simpleportal.net/index.php?topic=661.0
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: darkon on November 18, 2008, 10:10:28 PM
Is there a Block for the "User Online Today" (http://custom.simplemachines.org/mods/index.php?mod=217)-Mod avaible?


Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: princehull on November 19, 2008, 02:59:31 AM
Hi
I just installed simple portal classic 2.0.5 on my forums but am having a problem.  All of my boards that I previously created are gone.  They show up under boards in admin but not on my main page and I can't figure out how to get the back on there. 
Could someone PLEASE help??
Thanks!
Prince
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: moonstreaker on November 19, 2008, 03:04:26 AM
Having a very minor issue. When using Simple Portal with themes other than the default the "home" button on the menu is highlighted when I'm on my forum page instead of the "forum" button. Same issue with every theme I've attempted to use this mod on. Any guidence would be appreciated...thanks.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: [SiNaN] on November 19, 2008, 03:26:40 AM
Quote from: darkon on November 18, 2008, 10:10:28 PM
Is there a Block for the "User Online Today" (http://custom.simplemachines.org/mods/index.php?mod=217)-Mod avaible?

I don't think so. Maybe you can ask the mod author to create one for you.

Quote from: princehull on November 19, 2008, 02:59:31 AM
Hi
I just installed simple portal classic 2.0.5 on my forums but am having a problem.  All of my boards that I previously created are gone.  They show up under boards in admin but not on my main page and I can't figure out how to get the back on there. 
Could someone PLEASE help??
Thanks!
Prince

They are in this url: www.yoursite.com/index.php?action=forum. You need to add a 'forum' button to your custom themes index.template.php file manually. See this topic for details: http://simpleportal.net/index.php?topic=148

Quote from: moonstreaker on November 19, 2008, 03:04:26 AM
Having a very minor issue. When using Simple Portal with themes other than the default the "home" button on the menu is highlighted when I'm on my forum page instead of the "forum" button. Same issue with every theme I've attempted to use this mod on. Any guidence would be appreciated...thanks.

This is fixed in the new version of mod, which will be out very soon. You can use this fix for now: http://simpleportal.net/index.php?topic=788.0
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: princehull on November 19, 2008, 03:43:09 AM
Thanks for the help Blue Dream!  I appreciate it!
Prince
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: [SiNaN] on November 19, 2008, 03:45:00 AM
You're welcome. Hope you like SimplePortal. ;)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Bugpac ™ on November 19, 2008, 11:10:26 AM
Quote from: Bugpac ™ on November 06, 2008, 01:34:21 PM
How would i put the random images from this mod " http://www.simplemachines.org/community/index.php?topic=260821.0;topicseen " onto the portal page, so they stay random...

BTT
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: [SiNaN] on November 19, 2008, 11:49:46 AM
New version will have that by default, just some patience please. ;)
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Bugpac ™ on November 19, 2008, 02:59:54 PM
Quote from: Blue Dream on November 19, 2008, 11:49:46 AM
New version will have that by default, just some patience please. ;)

Thank you very much, I will be waiting... :D
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: nosoyelmejor on November 19, 2008, 08:06:18 PM
SMF 1.1.7
I want to use the Recent Topics Block, but I have a problem with this block.
I want to show recently New Topics (threads), ignoring replies to this Topic.
When i use this block, if someone replied to an Topic, this message is placed in top.
How do I teach only the latest New Topics?

Thanks in advance.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Bugpac ™ on November 22, 2008, 11:39:31 AM
Found what i believe to be a bug, but maybe i am doing something wrong.. I added a new membergroup "vip" i inherited the permissions from regular members, when i make my test account a vip 90% of the info on the portal page disapears, when i leave it as a regular member, it is all there, if i add vip as an aditional member group and not make it primary, it is still at 90% loss... I dont see anywere to set permission for simple portal beside activating it etc... any help would be great...
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on November 22, 2008, 11:42:17 AM
Make sure all blocks are set for the new membergroup to see it.

Go into the settings for each block, then click Select permissions for each group
and make sure that all membergroups are checkmarked.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: The Saviour on November 23, 2008, 11:22:51 AM
Absolutely love this mod!

Thanks, SimplePortal Team...

I was wondering, though...if someone may be able to help me out...give me a little guidance...or just supply me with the coding I need to do the following for this mod:

My navigation menu has gotten to the point where it's totally out of control.  What I'd like to do is create a PHP block that will have links to certain pages already in the navigation menu, like the "arcade, chat, profile, donations, articles and links" pages.  Whether or not a user sees the links in this new block will be based on permissions.  Should this work...I'd like to be able to remove those links from the navigation menu.

Anyone care to tell me if this is possible...what I'd have to do (as far as coding the new PHP block)...and how to remove the afore mentioned links from the navigation menu?

Thanks in advance for your help...
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on November 23, 2008, 01:19:14 PM
Just set up a HTML block, and use regular HTML you would use in setting up links on a web page.

Or, could use a BBC block, and use the BBC way of making links.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Jade Elizabeth on November 23, 2008, 01:24:45 PM
Removing the stuff from the menu depends on SMF version :).
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: The Saviour on November 23, 2008, 01:28:38 PM
Quote from: BurkeKnight on November 23, 2008, 01:19:14 PM
Just set up a HTML block, and use regular HTML you would use in setting up links on a web page.

Or, could use a BBC block, and use the BBC way of making links.

I've thought about going this route...and it's much easier to do...but the problem is the links will show regardless of permissions, correct?

Quote from: Jade on November 23, 2008, 01:24:45 PM
Removing the stuff from the menu depends on SMF version :).

SMF 1.1.7
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Burke ♞ Knight on November 23, 2008, 01:30:24 PM
Indeed.

There will not be permissions on the links, unless you set the block to only be accessed by certain member groups.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Jade Elizabeth on November 23, 2008, 01:31:56 PM
Quote from: The Saviour on November 23, 2008, 01:28:38 PM
Quote from: Jade on November 23, 2008, 01:24:45 PM
Removing the stuff from the menu depends on SMF version :).

SMF 1.1.7

Okay, well you're going to be editing the index.template.php of any theme that needs the buttons removed. I can do it if you like :).
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: The Saviour on November 23, 2008, 01:40:16 PM
Basically...what my intentions are (just in case they weren't understood from the beginning) is to have a link menu based on group permissions...links are only viewable if you're a registered member...within a PHP block.  I don't want the block, itself, with permissions...just the link content inside it.  Like the navigation menu...certain tabs are viewable once a member is logged in.

Once the above is accomplished...I want to remove the menu tabs from the navigation menu.  This way... the navigation menu is less cluttered, but the links are viewable in the PHP block from the portal homepage...based on permissions, of course.

Once I get the PHP block created...then the removal of the tabs in the navigation menu is the easy part.

Quote from: Jade on November 23, 2008, 01:31:56 PMOkay, well you're going to be editing the index.template.php of any theme that needs the buttons removed. I can do it if you like :).


I only use the default template...
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on November 23, 2008, 02:04:29 PM
I believe a Link Block is planned for future SP releases. However, you can probably get more dedicated support if you post your request in SimplePortal.net's Blocks board (http://simpleportal.net/index.php?board=39.0).
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: The Saviour on November 23, 2008, 02:09:20 PM
Quote from: Eliana Tamerin on November 23, 2008, 02:04:29 PM
I believe a Link Block is planned for future SP releases. However, you can probably get more dedicated support if you post your request in SimplePortal.net's Blocks board (http://simpleportal.net/index.php?board=39.0).

To me...that's just one more registration I'd rather not have to deal with.  It seems if you want to get dedicated support around here...you need to register at 15 - 25 different websites.  Not what I have in mind.

If a mod is posted here...it should be supported here, as well.

No offense...just using common sense.

Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Jade Elizabeth on November 23, 2008, 02:10:34 PM
Attach the template and tell me what to remove and I'll do it :)

Quote from: The Saviour on November 23, 2008, 02:09:20 PM
Quote from: Eliana Tamerin on November 23, 2008, 02:04:29 PM
I believe a Link Block is planned for future SP releases. However, you can probably get more dedicated support if you post your request in SimplePortal.net's Blocks board (http://simpleportal.net/index.php?board=39.0).

To me...that's just one more registration I'd rather not have to deal with.  It seems if you want to get dedicated support around here...you need to register at 15 - 25 different websites.  Not what I have in mind.

If a mod is posted here...it should be supported here, as well.

No offense...just using common sense.



It is, but the topic gets very busy, we dont want your help to get lost!
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: The Saviour on November 23, 2008, 02:12:54 PM
Thanks, Jade...

Before I decide to remove any of the menu links from navigation...I want to see if I can get this block created, first...okay?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Jade Elizabeth on November 23, 2008, 02:21:19 PM
Yup, cool by me.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: The Saviour on November 23, 2008, 08:14:42 PM
Thanks...

On another note...

There seems to be a problem with this mod when it comes to W3C XHTML validation.

Please see the following:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.saviourpc.com%2Fforums%2Findex.php

Looks like I'm going to have to register at that site and post the issues I'm having with this mod.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: Eliana Tamerin on November 23, 2008, 09:45:36 PM
I understand your qualms, but it's difficult to keep track of support issues in this topic. Without having a dedicated board, it just get mixed up in a jumble. I'm happy that we do try to keep up with support here, but you really would probably get a better support experience at SP.net.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: The Saviour on November 23, 2008, 09:58:01 PM
Thanks...

I've registered there...and have posted with the issues I'm facing.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: The Saviour on November 24, 2008, 09:12:09 AM
They posted over at SimplePortal that the XHTML validation was fixed...however, as soon as you move a block...any block...it breaks the validation process, again.

Here's the link:  http://simpleportal.net/index.php?topic=947.msg6216#msg6216

I uninstalled and re-installed the portal mod and the problem was initially fixed...until you moved the blocks around.  Then validation fails, again.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: [SiNaN] on November 24, 2008, 09:26:49 AM
Quote from: The Saviour on November 24, 2008, 09:12:09 AM
I uninstalled and re-installed the portal mod and the problem was initially fixed...until you moved the blocks around.  Then validation fails, again.

I'm not sure what you mean by "moving the blocks" around but, all XHTML errors found were fixed; but with 2.1. Which is not out yet.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: The Saviour on November 24, 2008, 09:30:52 AM
Once you posted over at SimplePortal that the XHTML was fixed...regarding the post I made...

I removed my previous installation of SimplePortal and then downloaded the mod again...uploaded...applied mod...and installed.

I then went to the portal homepage and checked validation...it passed.

I went into SimplePortal Admin and moved the blocks around in the left block list.

Went to validate at W3C...and it failed.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: [SiNaN] on November 24, 2008, 09:36:42 AM
Did you add new blocks, or just moved them?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: The Saviour on November 24, 2008, 09:41:45 AM
Quote from: Blue Dream on November 24, 2008, 09:36:42 AM
Did you add new blocks, or just moved them?

Both...

Added a new HTML block...then moved the other blocks up/down in the left block list.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: [SiNaN] on November 24, 2008, 09:43:27 AM
Can you paste here the contents of you HTML block?
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: nosoyelmejor on November 24, 2008, 03:25:18 PM
Hello everybody,

I'm looking for something that shows me the new topics open at the forum, independently of the messages in it, then if someone writes a
message in a topic, the topic is not going to the top of the messages, I only want the last topics open.

Do you know any Mod. working properly for that? Right now, everyone that I have tried put the old subjects at the top if someone answer it.


$request = db_query("

SELECT

m.posterTime, ms.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName,

IFNULL(mem.realName, m.posterName) AS posterName, " . ($user_info['is_guest'] ? '1 AS isRead, 0 AS new_from' : '

IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= m.ID_MSG_MODIFIED AS isRead,

IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from') . ", LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon

FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)

LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "

LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)

LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)" : '') . "

WHERE t.ID_LAST_MSG >= " . ($modSettings['maxMsgID'] - 35 * min($num_recent, 5)) . "

AND t.ID_LAST_MSG = m.ID_MSG

AND b.ID_BOARD = t.ID_BOARD" . (empty($exclude_boards) ? '' : "

AND b.ID_BOARD NOT IN (" . implode(', ', $exclude_boards) . ")") . "

AND $user_info[query_see_board]

AND ms.ID_MSG = t.ID_FIRST_MSG

ORDER BY t.ID_LAST_MSG DESC

LIMIT $num_recent", __FILE__, __LINE__);


That's my problem! Any sagestion?

Thanks.
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: [SiNaN] on November 25, 2008, 08:45:52 AM
This query will do it:

$request = db_query("
SELECT
m.posterTime, m.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, " . ($user_info['is_guest'] ? '1 AS isRead, 0 AS new_from' : '
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= m.ID_MSG_MODIFIED AS isRead,
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from') . ", LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)" : '') . "
WHERE t.ID_FIRST_MSG >= " . ($modSettings['maxMsgID'] - 35 * min($num_recent, 5)) . "
AND t.ID_FIRST_MSG = m.ID_MSG
AND b.ID_BOARD = t.ID_BOARD" . (empty($exclude_boards) ? '' : "
AND b.ID_BOARD NOT IN (" . implode(', ', $exclude_boards) . ")") . "
AND $user_info[query_see_board]
ORDER BY t.ID_FIRST_MSG
LIMIT $num_recent", __FILE__, __LINE__);
Title: Re: SimplePortal (2.0.5 Released!) (SMF 2 Beta Compatible!)
Post by: nosoyelmejor on November 25, 2008, 11:51:33 AM
Thanks so much for your help
Title: Re: SimplePortal (2.1 Released!)
Post by: [SiNaN] on November 26, 2008, 09:39:16 AM
SimplePortal 2.1 is released. Check this announcement for details:

http://simpleportal.net/index.php?topic=970.0;view=article
Title: Re: SimplePortal (2.1 Released!)
Post by: AlenNS on November 26, 2008, 10:12:04 AM
Works fine!
Title: Re: SimplePortal (2.1 Released!)
Post by: Lady Night Owl on November 26, 2008, 10:26:02 AM
The portal seems to work fine for me, no error messages.

But the copyright info at the bottom is smushed together with the SMF copyright info.
Title: Re: SimplePortal (2.1 Released!)
Post by: [SiNaN] on November 26, 2008, 10:32:09 AM
Quote from: Lady Night Owl on November 26, 2008, 10:26:02 AM
The portal seems to work fine for me, no error messages.

But the copyright info at the bottom is smushed together with the SMF copyright info.

Do a hard refresh to your browser. (Press Ctrl+F5)

That's because stylesheet is cached.
Title: Re: SimplePortal (2.1 Released!)
Post by: Lady Night Owl on November 26, 2008, 10:43:58 AM
Didn't work :(
Title: Re: SimplePortal (2.1 Released!)
Post by: [SiNaN] on November 26, 2008, 10:51:53 AM
Name of the theme you are using?

Attach your style.css and ../Themes/your_theme/css/index.css if you have.




Found it.

../Themes/Sylphs2/css/index.css.

Find:

#footerarea ul li.copywrite
{
display: block;
line-height: 0;


Replace:

#footerarea ul li.copywrite
{
display: block;
line-height: 1;


Note for SMF 2.x users: When installing, check the "Install to other themes" option as this version has a few template edits within.
Title: Re: SimplePortal (2.1 Released!)
Post by: Lady Night Owl on November 26, 2008, 10:58:18 AM
Oh lol, okay, I'll do that.

Yes, that works better. :) Thank you.
Title: Re: SimplePortal (2.1 Released!)
Post by: [SiNaN] on November 26, 2008, 11:24:21 AM
After two hours we had to replace the package because a typo. Please download the current package and re-install the mod. Sorry for the inconvenience.
Title: Re: SimplePortal (2.1 Released!)
Post by: Lady Night Owl on November 26, 2008, 11:42:02 AM
Oh boy, I'm getting this error now. This was before and after the replacement mentioned in the previous post.


2: unlink(/Themes/default/SPortalBlocks1-1.template.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /Sources/Subs-Package.php
Line: 1367


When the portal is enabled (with no blocks), there is nothing - no forum.

When blocks are added, they display, but the forum does not.
Title: Re: SimplePortal (2.1 Released!)
Post by: The Saviour on November 26, 2008, 01:55:00 PM
Original Classic version 2.05 installed with no issues...however, the uninstall process fails (probably due to additional mods installed).

What's the procedure for uninstall when this happens?  I'd like to upgrade as soon as possible.

During the uninstall process the following returned "Test Failed" errors:  Subs.php and index.template.php


Thank you...
Title: Re: SimplePortal (2.1 Released!)
Post by: Jade Elizabeth on November 26, 2008, 03:25:54 PM
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402) <Manually uninstall it!
Title: Re: SimplePortal (2.1 Released!)
Post by: The Saviour on November 26, 2008, 04:14:58 PM
Thank you...
Title: Re: SimplePortal (2.1 Released!)
Post by: Jade Elizabeth on November 26, 2008, 05:46:08 PM
Lol.. I saw the sarcasm in that :P
Title: Re: SimplePortal (2.1 Released!)
Post by: The Saviour on November 26, 2008, 06:34:35 PM
Thought, you would... ;D
Title: Problem after upgrading to SimplePortal 2.1
Post by: jayman2 on November 27, 2008, 02:03:11 PM
Hi,
I hope this is the right place for this post.

I wanted to upgrade my Simpleportal to version 2.1.  According to the instructions, you have to uninstall v2.0.5 first.  When I went to uninstall, I got an error message but went on and unistalled it anyway.

Then I started getting error messages about index.php.  I looked at the line that was creating the error and it was referencing sportal.  So I deleted that line.  After this I was able to bring up my forum and go in and install simpleportal 2.1 without any errors.  When I'm on as Admin, everything works great.  I can access my forum, Calendar and gallery just fine in my Custom template.  BUT, when I log in as a test user, simple portal comes up just fine in my Custom template, but every link I click on takes me to the smf default view.  When I click on Home, I'm taken back to my Custom theme again.

Does anyone know what's causing this? 
Title: Re: SimplePortal (2.1 Released!)
Post by: AlenNS on November 27, 2008, 02:18:40 PM
You should manualy modify files that have errors on uninstalling.
I hope you have backup.
If you have, put back backup and then uninstall SP 2.0.5 and before you click on uninstall you should open all the files that contain errors on uninstall and modify them from the popup windows instructions.
Then you click uninstall and that's it.
Title: Re: SimplePortal (2.1 Released!)
Post by: jayman2 on November 27, 2008, 03:04:08 PM
Quote from: AlenNS on November 27, 2008, 02:18:40 PM
You should manualy modify files that have errors on uninstalling.
I hope you have backup.
If you have, put back backup and then uninstall SP 2.0.5 and before you click on uninstall you should open all the files that contain errors on uninstall and modify them from the popup windows instructions.
Then you click uninstall and that's it.
Thanks for the suggestion.  I'm going to try that.
Title: Re: SimplePortal (2.1 Released!)
Post by: jayman2 on November 27, 2008, 03:21:17 PM
Quote from: jayman2 on November 27, 2008, 03:04:08 PM
Quote from: AlenNS on November 27, 2008, 02:18:40 PM
You should manualy modify files that have errors on uninstalling.
I hope you have backup.
If you have, put back backup and then uninstall SP 2.0.5 and before you click on uninstall you should open all the files that contain errors on uninstall and modify them from the popup windows instructions.
Then you click uninstall and that's it.
Thanks for the suggestion.  I'm going to try that.
I got lucky!  What I did was since I was going to put up my backup anyway, I first uninstalled sp 2.1.  I didn't recieve any errors, so something told me to try and reinstall it again.  So that's what I did, with no errors.  Then I logged out as admin and in as a test user.  And sure enough, everything works perfectly.  I can now go to calendar, forum, gallery, or anywhere and stay on my custom template. 

The next time I get an error message, I'll do as you suggested.

Thanks again for your help.
Title: Re: SimplePortal (2.1 Released!)
Post by: princehull on November 27, 2008, 06:29:22 PM
Hello
I was wondering if there is a way so the blocks show up on all pages within the forum and not just on the home page.
Thanks for your help!
Prince
Title: Re: SimplePortal (2.1 Released!)
Post by: AlenNS on November 27, 2008, 07:21:06 PM
@jayman2 No problem. :)

@princehull Go to SP Admin page and when you're adding a new block there is additional option that asks you where do you want to show your blocks.

That's ofcourse 2.1 feature. :)
Title: Re: SimplePortal (2.1 Released!)
Post by: princehull on November 27, 2008, 07:43:26 PM
AlenRS, thanks.  I guess I will have to install 2.1.............
Title: Re: SimplePortal (2.1 Released!)
Post by: AlenNS on November 27, 2008, 07:46:52 PM
Quote from: princehull on November 27, 2008, 07:43:26 PM
AlenRS, thanks.  I guess I will have to install 2.1.............
AlenNS ;)
No problem :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on November 30, 2008, 07:10:14 AM
The quick fix patch, SimplePortal 2.1.1 is relased. It includes the upgrade feature only from SimplePortal 2.1 version. Check the relase topic for details:

http://simpleportal.net/index.php?topic=1034.0;view=article
Title: Re: SimplePortal (2.1.1 Released!)
Post by: psynx on November 30, 2008, 11:16:55 PM
hello,

i have few concerns. i hope someone will help me out.

how do i change the color boarder of the block? i want it to make the same color with my theme so it would look like there is no block separation. thank you.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: vivithemage on December 01, 2008, 04:17:42 PM
if I install simpleportal, will I have the option to have my board/forums in a seperate directory?

like this ..

root/board

and within the board, is obviously, my SMF installation, and in root, would have my index and portal files? Is this possible?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 02, 2008, 11:34:50 AM
psynx:

SPortalBlocksxx.template.php file is where you should be looking for. You can edit the template_block() function in that file.

vivithemage:

Of course. Check this post:

http://simpleportal.net/index.php?topic=939.msg6221#msg6221

Make sure you change the SSI path to fit yours.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: vivithemage on December 02, 2008, 01:07:11 PM
great, thank you! But where is the 'attached' file in that post? I am at work, so maybe it is web sensed...but I do not see anything attached to your post in that thread.

and under your name it says
QuoteI'm loosing my mind...
it should be
QuoteI'm losing my mind...
^_^
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gà Mái on December 03, 2008, 12:45:25 AM
I have a problem when install thru Package Manager:

=> FTP Information Required
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.

=> An Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.

Pls help me! Thanks!!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 03, 2008, 02:08:40 AM
vivithemage:

Hmmm, probably you should be registered to view that. Attach to this post for you.

And for the personal text: ROFL thanks. ;D

Gà Mái:

http://www.simplemachines.org/community/index.php?topic=276952.msg1818982#msg1818982
Title: Re: SimplePortal (2.1.1 Released!)
Post by: k662 on December 03, 2008, 02:29:54 AM
I have been running SimplePortal on my new site for 3 weeks now with no issues.  All of the sudden tonight it slowed WAAAAY down.  It is only the simpleportal page, though.  All my other pages load at normal speeds.  If I disable simpleportal everything loads quickly, too.

Any ideas what this could be?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gà Mái on December 03, 2008, 02:43:38 AM
Quote from: Blue Dream on December 03, 2008, 02:08:40 AM


Gà Mái:

http://www.simplemachines.org/community/index.php?topic=276952.msg1818982#msg1818982
Thank you!

Now i can install SimplePortal but i have this problem when i try to add block:

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
File: /home/d1343p02/public_html/Sources/SPortalAdmin1-1.php
Dòng: 398

Note: Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 03, 2008, 02:54:12 AM
k662:

Is it possible to view the page? Which block do you have enabled?

Gà Mái:

Sorry, I'm not good with charset issues.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: k662 on December 03, 2008, 02:58:00 AM
Blue Dream, I will enable it now for you.  I don't want to leave it up too long as it makes the home page TERRIBLY slow.

Oh yeah, the site: http://justforwilmington.com/community/forum/index.php

Sometimes it wont even load with the portal enabled.  This literally started happening just a few hours ago.  Though, some members had said its been happening to them for a while...I just thought it was a connection issue on their end.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 03, 2008, 02:59:15 AM
The speed was okay for me but try disabling the "Current Weather" block. Then check again.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: k662 on December 03, 2008, 03:00:42 AM
Just disabled it, still very slow.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 03, 2008, 03:06:49 AM
Do you have any member-only blocks?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: k662 on December 03, 2008, 03:11:39 AM
No, I just checked them all and they are viewable by every membergroup including guests.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: k662 on December 03, 2008, 03:14:23 AM
Blue Dream, I take that back.

I did have a new membergroup I just created set to NOT be able to view the blocks (because I forgot to enable it for them).

I think that was the problem.  After I enabled it for them and refreshed a couple of times it seems to be back up to speed.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 03, 2008, 03:20:29 AM
Hmmm, that could be related to sp_allowedTo() function. I'll check that. Thanks for reporting.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: k662 on December 03, 2008, 03:21:57 AM
Thanks for resolving it before I lost my 50 members ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: ディン1031 on December 03, 2008, 08:21:06 AM
Hmmm strange normal the function load the allowed things only 1 time for the page, after that it will be cached... but i will look into this, possible i find a way to speed up this ;).

How many groups are you using on your board?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: vivithemage on December 03, 2008, 09:23:08 AM
Thanks!

Looks great.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gà Mái on December 03, 2008, 10:09:44 AM
I can not add block, helpppp !!!

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
File: /home/d1343p02/public_html/Sources/SPortalAdmin1-1.php
line: 398

Note: Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.

Many thanksss!!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: vivithemage on December 03, 2008, 10:24:09 AM
I had to remove
Quotesportal_init();
from the index.php as my blocks were showing up twice...will that cause any issues?

so far I do not see any issues with this.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 03, 2008, 10:26:00 AM
Yeah. I forgot that we included it by default in SSI.php. Thanks for reminding. ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: vivithemage on December 03, 2008, 11:40:47 AM
no problem, and I also have the enabled portal option, so I can see the blocks within my forum :

www.pt2hq.com
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gà Mái on December 03, 2008, 12:08:11 PM
Quote from: Gà Mái on December 03, 2008, 10:09:44 AM
I can not add block, helpppp !!!

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
File: /home/d1343p02/public_html/Sources/SPortalAdmin1-1.php
line: 398

Note: Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.

Many thanksss!!
I still have this problem. Some block are ok, but some block have this problem so i can not add.
Can anyone help me!
Thanks!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Burke ♞ Knight on December 03, 2008, 12:11:23 PM
1. What language is your site running?
2. What blocks are giving you the errors?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: SA™ on December 03, 2008, 01:34:20 PM
hello i not shore about this but here goes there seems to be a conflict with sp 2.1.1 and my multiplayer mod

with sp 2.1.1 installed when i goto multiplayer i get this

Fatal error: Cannot redeclare template_block() (previously declared in C:\wdm\htdocs\test\Sources\Load.php(1730) : eval()'d code:67) in C:\wdm\htdocs\test\Sources\Load.php(1730) : eval()'d code on line 1189

without sp 2.1.1 installed it works perfect any ideas

thanks wdm2005


never mind i had one of the game templates called block renamed it and it works:)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gà Mái on December 03, 2008, 10:42:08 PM
Quote from: BurkeKnight on December 03, 2008, 12:11:23 PM
1. What language is your site running?
2. What blocks are giving you the errors?
Thank for your attention!
It's ok now. i use wrong font :D (My font is not supported)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: psynx on December 03, 2008, 11:48:02 PM
hello,

gudDay.

just a little concern, is there a way i can fake the number of members ang guest viewing the forum without affecting the real or original members in my forum? pls? O:)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Burke ♞ Knight on December 03, 2008, 11:52:14 PM
Quote from: psynx on December 03, 2008, 11:48:02 PM
hello,

gudDay.

just a little concern, is there a way i can fake the number of members ang guest viewing the forum without affecting the real or original members in my forum? pls? O:)

Hmmm.... Sounds more like a SMF issue, not a SimplePortal issue.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 04, 2008, 06:14:05 AM
psynx:

You can do that by changing the who's online variables in sp_whosOnline() function in SPortal1-1.php file.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gadget.. on December 05, 2008, 01:44:21 AM
I love this mod, but I have only one question...I use a theme & I seem to be missing a function from the default theme in comparision.  I mean when I am on the default theme & I view threads posted by users I have the quick link button to click "ADD AN ARTICLE" & it quickly adds it to my portal but if I am on other themes this button does not show anymore.  Seems I need to do some template editing, & ALL I know is that I need some type of code that has something like this in it...

/index.php?sa=addarticle;message=72;return=61.0;sesc=ef4e3a569ef6d17d4cb64efa7bed8370

but I could not find ?sa=addarticle this in my templates...Or else I would have added it...Can you help me make it so this button shows on other themes,...Thank you...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on December 05, 2008, 04:25:09 AM
Hi Gadget,

I think you need to do the following (taken from the manual install instructions on mod page)

Please note
You will need to check the theme directory you are using so instead of:
Quote./Themes/default/Display.template.php

You would need to browse to your Theme directory:
Quote./Themes/THEMENAME/Display.template.php

Also make sure you make a back up of any files you modify.

Quote
./Themes/default/Display.template.php
Find
// Show the page index... "Pages: [1]".

Replace with
// Make Article Button
if ($context['can_make_article'])
$normal_buttons['article'] = array('text' => 'sp-make_article', 'image' => 'addarticle.gif', 'lang' => true, 'url' => $scripturl . '?sa=addarticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);

// Show the page index... "Pages: [1]".

Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gadget.. on December 05, 2008, 08:25:26 AM
Quote from: Youngiiie on December 05, 2008, 04:25:09 AM
Hi Gadget,

I think you need to do the following (taken from the manual install instructions on mod page)

Please note
You will need to check the theme directory you are using so instead of:
Quote./Themes/default/Display.template.php

You would need to browse to your Theme directory:
Quote./Themes/THEMENAME/Display.template.php

Also make sure you make a back up of any files you modify.

Quote
./Themes/default/Display.template.php
Find
// Show the page index... "Pages: [1]".



Well thanks for the response!!!  I did not see the manual install instructions on mod page, sorry I am new here... However, I also could not find "Find
// Show the page index... "Pages: [1]"."

Below I will place my whole display.template.php code so you can see & maybe if you are willing you can try to help me further.

<?php
// Version: 1.1; Display

function template_main()
{
   global 
$context$settings$options$txt$scripturl$modSettings;

   
   
// Show the anchor for the top and for the first message. If the first message is new, say so.
   
echo '
<a name="top"></a>
<a name="msg'
$context['first_message'], '"></a>'$context['first_new_message'] ? '<a name="new"></a>' '';



   
// Is this topic also a poll?
   
if ($context['is_poll'])
   {
      echo 
'
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 2ex;">
   <tr>
      <td class="titlebg" colspan="2" valign="middle" style="padding-left: 6px;">
         <img src="'
$settings['images_url'], '/topic/'$context['poll']['is_locked'] ? 'normal_poll_locked' 'normal_poll''.gif" alt="" align="bottom" /> '$txt['smf43'], '
      </td>
   </tr>
   <tr>
      <td width="5%" valign="top" class="windowbg"><b>'
$txt['smf21'], ':</b></td>
      <td class="windowbg">
         '
$context['poll']['question'];
      if (!empty(
$context['poll']['expire_time']))
         echo 
'
               &nbsp;('
, ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': '$context['poll']['expire_time'], ')';

      
// Are they not allowed to vote but allowed to view the options?
      
if ($context['poll']['show_results'] || !$context['allow_vote'])
      {
         echo 
'
         <table>
            <tr>
               <td style="padding-top: 2ex;">
                  <table border="0" cellpadding="0" cellspacing="0">'
;

            
// Show each option with its corresponding percentage bar.
         
foreach ($context['poll']['options'] as $option)
            echo 
'
                     <tr>
                        <td style="padding-right: 2ex;'
$option['voted_this'] ? 'font-weight: bold;' '''">'$option['option'], '</td>'$context['allow_poll_view'] ? '
                        <td nowrap="nowrap">' 
$option['bar'] . ' ' $option['votes'] . ' (' $option['percent'] . '%)</td>' '''
                     </tr>'
;

         echo 
'
                  </table>
               </td>
               <td valign="bottom" style="padding-left: 15px;">'
;

         
// If they are allowed to revote - show them a link!
         
if ($context['allow_change_vote'])
            echo 
'
               <a href="'
$scripturl'?action=vote;topic='$context['current_topic'], '.'$context['start'], ';poll='$context['poll']['id'], ';sesc='$context['session_id'], '">'$txt['poll_change_vote'], '</a><br />';

         
// If we're viewing the results... maybe we want to go back and vote?
         
if ($context['poll']['show_results'] && $context['allow_vote'])
            echo 
'
                  <a href="'
$scripturl'?topic='$context['current_topic'], '.'$context['start'], '">'$txt['poll_return_vote'], '</a><br />';

         
// If they're allowed to lock the poll, show a link!
         
if ($context['poll']['lock'])
            echo 
'
                  <a href="'
$scripturl'?action=lockVoting;topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';

         
// If they're allowed to edit the poll... guess what... show a link!
         
if ($context['poll']['edit'])
            echo 
'
                  <a href="'
$scripturl'?action=editpoll;topic='$context['current_topic'], '.'$context['start'], '">'$txt['smf39'], '</a>';

         echo 
'
               </td>
            </tr>'
$context['allow_poll_view'] ? '
            <tr>
               <td colspan="2"><b>' 
$txt['smf24'] . ': ' $context['poll']['total_votes'] . '</b></td>
            </tr>' 
'''
         </table><br />'
;
      }
      
// They are allowed to vote! Go to it!
      
else
      {
         echo 
'
         <form action="'
$scripturl'?action=vote;topic='$context['current_topic'], '.'$context['start'], ';poll='$context['poll']['id'], '" method="post" accept-charset="'$context['character_set'], '" style="margin: 0px;">
            <table>
               <tr>
                  <td colspan="2">'
;

         
// Show a warning if they are allowed more than one option.
         
if ($context['poll']['allowed_warning'])
            echo 
'
                     '
$context['poll']['allowed_warning'], '
                  </td>
               </tr><tr>
                  <td>'
;

         
// Show each option with its button - a radio likely.
         
foreach ($context['poll']['options'] as $option)
            echo 
'
                     '
$option['vote_button'], ' '$option['option'], '<br />';

         echo 
'
                  </td>
                  <td valign="bottom" style="padding-left: 15px;">'
;

         
// Allowed to view the results? (without voting!)
         
if ($context['allow_poll_view'])
            echo 
'
                     <a href="'
$scripturl'?topic='$context['current_topic'], '.'$context['start'], ';viewResults">'$txt['smf29'], '</a><br />';

         
// Show a link for locking the poll as well...
         
if ($context['poll']['lock'])
            echo 
'
                     <a href="'
$scripturl'?action=lockVoting;topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';

         
// Want to edit it? Click right here......
         
if ($context['poll']['edit'])
            echo 
'
                     <a href="'
$scripturl'?action=editpoll;topic='$context['current_topic'], '.'$context['start'], '">'$txt['smf39'], '</a>';

            echo 
'
                  </td>
               </tr><tr>
                  <td colspan="2"><input type="submit" value="'
$txt['smf23'], '" /></td>
               </tr>
            </table>
            <input type="hidden" name="sc" value="'
$context['session_id'], '" />
         </form>'
;
      }

      echo 
'
      </td>
   </tr>
</table>'
;
   }


   
// Does this topic have some events linked to it?
   
if (!empty($context['linked_calendar_events']))
   {
      echo 
'
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 3ex;">
      <tr>
            <td class="titlebg" valign="middle" align="left" style="padding-left: 6px;">
                  '
$txt['calendar_linked_events'], '
            </td>
      </tr>
      <tr>
            <td width="5%" valign="top" class="windowbg">
                  <ul>'
;
      foreach (
$context['linked_calendar_events'] as $event)
         echo 
'
                        <li>
                           '
, ($event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: red;">*</a> ' ''), '<b>'$event['title'], '</b>: '$event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' $event['end_date'] : ''), '
                        </li>'
;
      echo 
'
                  </ul>
            </td>
      </tr>
</table>'
;
   }

   echo 
'
<table width="100%" cellpadding="0" cellspacing="4" border="0">
               </td>
               <td align="left" style="font-size: smaller;">'
;

   
$buttonArray = array();
   if (
$context['can_reply'])
      
$buttonArray[] = '<a href="' $scripturl '?action=post;topic=' $context['current_topic'] . '.' $context['start'] . ';num_replies=' $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/reply.gif" alt="' $txt[146] . '" border="0" />' $txt[146]) . '</a>';
   
if (
$context['can_reply'])
      
$buttonArray[] = '<a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_topic.gif" alt="' $txt[33] . '" border="0" />' $txt[33]) . '</a>';
   
   echo 
implode($context['menu_separator'], $buttonArray);


   echo 
'</td>
<td align="right" style="padding-right: 1ex;">
<td align="right" class="middletext2">'
$txt[139], ': '$context['page_index'];// Show a "go down" link?
   
if (!empty($modSettings['topbottomEnable']))
      echo 
$context['menu_separator'], '<a href="#bot">'$settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/go_down.gif" alt="' $txt['topbottom5'] . '" border="0" align="top" />' $txt['topbottom5'], '</a>';  echo '</td>


            </tr>
         
      </td>
   </tr>
</table>'
;   
      
   
// Show the topic information - icon, subject, etc.
   
echo '

<div class="tborder" >
<table width="100%" cellpadding="5" cellspacing="1" border="0" style="border-bottom: 0;">
      <tr>
                        
            <td class="catbg" valign="middle" width="74%" style="padding-left: 6px;" id="top_subject">
                  <font style="font-size: 8pt;">'
$txt[118], ': '$context['subject'], ' &nbsp;('$txt[641], ' '$context['num_views'], ' '$txt[642], ')
            </font></td>
<td class="catbg" id="threadtools" nowrap="nowrap">
      <a href="'
$scripturl'#quicklinks2" onClick="return overlay(this, \'quicklinks2\',\'bottom\')">',$txt['smf11112'],'<img src="' $settings['images_url'] .  '/menu_open.gif" /></a>
            <!--Do not remove outer most DIV tag with id="quicklinks2"-->
      <DIV id="quicklinks2" style="position:absolute; border: 2px solid #3d3d3d; background-color: black; width: 200px; padding: 2px; display:none">
   <table width="100%" border="0" cellpadding="0" cellspacing="1">

'
;
   echo
'
      <tr vAlign=bottom><td style="border-top:1px solid #ffffff;" valign="middle"  class="vbmenu_option"><img src="' 
$settings['images_url'] . '/printer.gif">&nbsp;<a href="' $scripturl '?action=printpage;topic=' $context['current_topic'] . '.0" target="_blank" alt="' $txt[465] . '">' .$txt[465] . '</a></td></tr>';
      if (
$context['user']['is_guest'])
      echo
'
      <tr vAlign=bottom><td style="border-top:1px solid #ffffff;" valign="middle"  class="vbmenu_option"><img src="' 
$settings['images_url'] . '/subscribe.gif">&nbsp;<a href="'$scripturl'?action=register">',$txt[80069],'</a></td></tr>';
      
      if (
$context['can_send_topic'])
      {
      echo
'   <tr><td style="border-top:1px solid #ffffff;"  valign="middle" class="vbmenu_option"><img src="' $settings['images_url'] . '/sendtofriend.gif">&nbsp;<a href="' $scripturl '?action=sendtopic;topic=' $context['current_topic'] . '.0" alt="' $txt[707] . '">',$txt[707],'</a></td></tr>';      
      }
      if (
$context['can_add_poll'])
      {
      echo
'<tr vAlign=bottom><td style="border-top:1px solid #ffffff;" valign="middle"  class="vbmenu_option"><img src="' $settings['images_url'] . '/addpoll.gif">&nbsp;<a href="' $scripturl '?action=editpoll;add;topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '">',$txt['add_poll'],'</a></td></tr>';
      }
      if (
$context['can_mark_notify'])
      {
      echo
'<tr><td style="border-top:1px solid #ffffff;"  valign="middle" class="vbmenu_option"><img src="' $settings['images_url'] . '/subscribe.gif">&nbsp;<a href="' $scripturl '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' 'on') . ';topic=' $context['current_topic'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');" alt="' $txt[131] . '">' $txt[131] . '</a></td></tr>';
      }
     


echo
'
   </table>
      <div class="catbg" align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'quicklinks2\'); return false"><img align="absmiddle" src="'
$settings['images_url'], '/kapat.gif" border="0" /></a></div>

      </DIV>
   </td>
   
      <td class="catbg" id="threadsearch" nowrap="nowrap" valign="middle" width="84%" style="padding-left: 6px;" id="top_subject">
         <a href="'
$scripturl'?action=search" onClick="return overlay(this, \'subcontent\',\'bottom\')">'$txt['smf11113'],'<img src="' $settings['images_url'] .  '/menu_open.gif" /></a>
<DIV id="subcontent" style="position:absolute; border: 2px solid #3d3d3d; background-color: black; width: 250px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">'
$txt['smf11113'],'</td>
</tr>
<tr>
         <td class="windowbg" title="">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">

            <div class="middletext"><input type="text" name="search" value="" size="25" tabindex="1001"/>

            
         <input type="submit" class="button" value="Go!" tabindex="1004" /></div>
         <input type="hidden" name="advenced" value="0"  size="25" tabindex="1001">
         </td>
      </tr>
      
         <tr>         <td style="border-top:1px solid #ffffff;border-bottom:1px solid #ffffff;"    class="windowbg"><a href="'
$scripturl'?action=search;advanced" accesskey="4" rel="nofollow">',$txt['smf298'], '</a></td>
      </tr></form>
      </table>
      
<div align="right" class="catbg" style="font-size:10px;"><a href="#" onClick="overlayclose(\'subcontent\'); return false"><img align="absmiddle" src="'
$settings['images_url'], '/kapat.gif" border="0" /></a></div>

</DIV>
      </td>
      </tr>'
;
   if (!empty(
$settings['display_who_viewing']))
   {
      echo 
'
      <tr>
            <td colspan="3" class="smalltext">'
;

      
// Show just numbers...?
      
if ($settings['display_who_viewing'] == 1)
            echo 
count($context['view_members']), ' 'count($context['view_members']) == $txt['who_member'] : $txt[19];
      
// Or show the actual people viewing the topic?
      
else
         echo empty(
$context['view_members_list']) ? '0 ' $txt[19] : implode(', '$context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' ' (+ ' $context['view_num_hidden'] . ' ' $txt['hidden'] . ')');

      
// Now show how many guests are here too.
      
echo $txt['who_and'], $context['view_num_guests'], ' '$context['view_num_guests'] == $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
            </td>
      </tr>'
;
   }

   echo 
'
</table>'
;   //if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $context['can_remove_post'])
      
echo '
<form action="'
$scripturl'?action=quickmod2;topic='$context['current_topic'], '.'$context['start'], '" method="post" accept-charset="'$context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return in_edit_mode == 1 ? modify_save(\'' $context['session_id'] . '\') : confirm(\'' $txt['quickmod_confirm'] . '\');">';

   echo 
'
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor">'
;

   
// Get all the messages...
   
while ($message $context['get_message']())
   {
      echo 
'
   <tr><td style="padding: 1px 1px 0 1px;">'
;

      
// Show the message anchor and a "new" anchor if this message is new.
      
if ($message['id'] != $context['first_message'])
         echo 
'
      <a name="msg'
$message['id'], '"></a>'$message['first_new'] ? '<a name="new"></a>' '';

      echo 
'
      <table cellpadding="3" cellspacing="0" border="0" width="100%">
         <tr><td class="'
$message['alternate'] == 'windowbg' 'windowbg2''">';

      
// Show information about the poster of this message.
      
echo '
            <table width="100%" cellpadding="5" cellspacing="0">
               <tr>
                  <td valign="top" width="22%" rowspan="2" class="windowbg" style="overflow: hidden;"><center>
                     '
;                  
   echo
' <div class="smalltext">';
// Don't show these things for guests.
      
if (!$message['member']['is_guest'])
      {
   
      if(
$message['member']['group'] == 'Banned') { $banned true;
echo 
'<span style="text-decoration:line-through">'; } else $banned false; echo '<a href="'$message['member']['href'], '" onClick="return overlay(this, \'profil_'$message['member']['name'], '\',\'bottom\')"><center><img src="'$settings['images_url'], '/animated_arrow.gif" alt="profil" border="0"><b>'$message['member']['name'], '</b></a><DIV id="profil_'$message['member']['name'], '" style="position:absolute; border: 1px solid #000000; width: 210px; padding: 1px; display:none" bordercolor="#FFFFFF">
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="windowbg">
<tr>
<td class="titlebg"  width="97%" class="titlebg" align="left">'
$message['member']['name'], '</td>
<td class="titlebg"  width="3%" class="titlebg"><a href="#" onClick="overlayclose(\'profil_'
$message['member']['name'], '\'); return false"><img align="absmiddle" src="'$settings['images_url'], '/kapat.gif" border="0" /></a></td>

</tr>
<tr>
<td valign="middle" align="left">
<a href="'
$message['member']['href'], '"><font size="2"><span style="font-size: 8pt">',$txt['profil1'], '</span></a>
</td>
</tr>

<tr>
<td valign="middle" align="left">
<A href="'
$scripturl'?action=pm;sa=send;u='$message['member']['id'], '"><span style="font-size: 8pt">',$txt['profil2'], '</span></a>
</td>
</tr>
<tr>
<td valign="middle" align="left">
<A href="'
$scripturl'?action=profile;u='$message['member']['id'], ';sa=showPosts"><span style="font-size: 8pt">',$txt['profil3'], '</span></a>
</td>
</tr>
<tr>
<td valign="middle" align="left">
<a href="'
$scripturl'?action=buddy;u='$message['member']['id'], ';sesc='$context['session_id'], '"><span style="font-size: 8pt">',$txt['profil4'], '</span></a>


</td>
</tr>
</table>
</DIV><br />'
$banned '</span>' '''
                                                        '
;
if(
$banned)
         echo 
'
               <b>Banned-Yasakli</b><br />'
;

}

// Show the member's custom title, if they have one.
                
if (isset($message['member']['title']) && $message['member']['title'] != '' && !$banned)
                       echo 
'<Center>
                                                                '
$message['member']['title'], '</Center>';


// Show the member's primary group (like 'Administrator') if they have one.
      
if (isset($message['member']['group']) && $message['member']['group'] != '')
         echo 
'
                        '
$message['member']['group'], '<br />';

      
// Don't show these things for guests.
      
if (!$message['member']['is_guest'])
      {
   
         
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
         
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
            echo 
'
                        '
$message['member']['post_group'], '<br />';
         echo 
'
                        '
$message['member']['group_stars'], '<br />';
// Show avatars, images, etc.?
         
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']))
            if (empty(
$message['member']['avatar']['image']))
            echo 
'<div style="overflow: auto; width: 100%;"><img src="'$settings['images_url'], '/noavatar.gif" alt="" /></div><br />';
            else
            echo 
'<div style="overflow: auto; width: 100%;">'$message['member']['avatar']['image'],'</div><br />';

         
// Show their personal text?
         
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo 
'<marquee><b>'$message['member']['blurb'], '</b></marquee>
                        <br />'
;      

      

         
// Is karma display enabled?  Total or +/-?
         
if ($modSettings['karmaMode'] == '1')
            echo 
'
                        <br />
                        '
$modSettings['karmaLabel'], ' '$message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
         elseif (
$modSettings['karmaMode'] == '2')
            echo 
'
                        <br />
                        '
$modSettings['karmaLabel'], ' +'$message['member']['karma']['good'], '/-'$message['member']['karma']['bad'], '<br />';

         
// Is this user allowed to modify this member's karma?
         
if ($message['member']['karma']['allow'])
            echo 
'
                        <a href="'
$scripturl'?action=modifykarma;sa=applaud;uid='$message['member']['id'], ';topic='$context['current_topic'], '.' $context['start'], ';m='$message['id'], ';sesc='$context['session_id'], '">'$modSettings['karmaApplaudLabel'], '</a>
                        <a href="'
$scripturl'?action=modifykarma;sa=smite;uid='$message['member']['id'], ';topic='$context['current_topic'], '.'$context['start'], ';m='$message['id'], ';sesc='$context['session_id'], '">'$modSettings['karmaSmiteLabel'], '</a><br />';

   
// Don't show these things for guests.
      
if (!$message['member']['is_guest'])
      {      
// Show online and offline buttons?
         
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
            echo 
'
                        '
$context['can_send_pm'] ? '<a href="' $message['member']['online']['href'] . '" title="' $message['member']['online']['label'] . '">' ''$settings['use_image_buttons'] ? '<img src="' $message['member']['online']['image_href'] . '" alt="' $message['member']['online']['text'] . '" border="0" align="middle" />' $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' ''$settings['use_image_buttons'] ? '<span class="smalltext"> ' $message['member']['online']['text'] . '</span>' '''<br /><br />';

// Don't show these things for guests.
      
if (!$message['member']['is_guest'])
      {         
// Show the member's gender icon?
         
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
            echo 
'
                        '
$txt[231], ': '$message['member']['gender']['image'], '<br />';

         
// Show how many posts they have made.
         
echo '
                        '
$txt[26], ': '$message['member']['posts'], '<br />
                        '
;

} echo
' ';   // Favorites by TosTos
if (empty($message['member']['options']['Takimim'])) {
             
$message['member']['options']['Takimim']='Other';
         }
         echo 
'<fieldset>
            <legend><b>Favorite Gaming System</b></legend>
           Gaming System : '
$message['member']['options']['Takimim'] , ' <img src="'$settings['images_url'], '/'$message['member']['options']['Takimim'], '.gif" /> </fieldset>';         
if (empty(
$message['member']['options']['Burcum'])) {
             
$message['member']['options']['Burcum']='Hiden';
         }
         echo 
'<fieldset>
            <legend><b>'
,$txt['smf11131'],'</b></legend>
           '
,$txt['smf11133'],' : '$message['member']['options']['Burcum'] , ' <img src="'$settings['images_url'], '/'$message['member']['options']['Burcum'], '.gif" /> </fieldset>';               //uyari puani by rallyproco

if (empty($message['member']['options']['uyari'])) {
             
$message['member']['options']['uyari']['value']='';
         }
         echo 
'<fieldset>
            <legend><b>'
,$txt['uyari'],'</b></legend>
             <img src="'
$settings['images_url'], '/uyari'$message['member']['options']['uyari']['value'], '.gif" />% '$message['member']['options']['uyari']['value'] , '0';if ($context['allow_admin'])
                        {
                        echo
'
      <a href="'
$message['member']['href'], ';sa=forumProfile"><img src="' $settings['images_url'] . '/uyaributon.gif" alt="Warn the user! (uyari puani ver)" border="0" /></fieldset>';      

         
// This shows the popular messaging icons.
         
echo '
                        '
$message['member']['icq']['link'], '
                        '
$message['member']['msn']['link'], '
                        '
$message['member']['yim']['link'], '
                        '
$message['member']['aim']['link'], '<br />';

         
// Show the profile, website, email address, and personal message buttons.
         
if ($settings['show_profile_buttons'])
         {
            
// Don't show the profile button if you're not allowed to view the profile.
            
if ($message['member']['can_view_profile'])
               echo 
'
                        <a href="'
$message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/icons/profile_sm.gif" alt="' $txt[27] . '" title="' $txt[27] . '" border="0" />' $txt[27]), '</a>';

            
// Don't show an icon if they haven't specified a website.
            
if ($message['member']['website']['url'] != '')
               echo 
'
                        <a href="'
$message['member']['website']['url'], '" title="' $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/www_sm.gif" alt="' $txt[515] . '" border="0" />' $txt[515]), '</a>';

            
// Don't show the email address if they want it hidden.
            
if (empty($message['member']['hide_email']))
               echo 
'
                        <a href="mailto:'
$message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/email_sm.gif" alt="' $txt[69] . '" title="' $txt[69] . '" border="0" />' $txt[69]), '</a>';

            
// Since we know this person isn't a guest, you *can* message them.
            
if ($context['can_send_pm'])
               echo 
'
                        <a href="'
$scripturl'?action=pm;sa=send;u='$message['member']['id'], '" title="'$message['member']['online']['label'], '">'$settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' 'off') . '.gif" alt="' $message['member']['online']['label'] . '" border="0" />' $message['member']['online']['label'], '</a>';
         }
      }
      }
      }
      
// Otherwise, show the guest's email.
      
elseif (empty($message['member']['hide_email']))
         echo 
'
                        <br />
                        <br />
                        <a href="mailto:'
$message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/email_sm.gif" alt="' $txt[69] . '" title="' $txt[69] . '" border="0" />' $txt[69]), '</a>';

   if (
$message['member']['is_guest'])
   echo
' '$message['member']['link'], '';         // Done with the information about the poster... on to the post itself.
      
echo '
                     </span>
                  </td>
                  <td valign="top" width="85%" height="100%">
                     <table width="100%" border="0"><tr>
                        <td align="left" valign="middle"><a href="'
$message['href'], '"><img src="'$message['icon_url'] . '" alt="" border="0" /></a></td>
                        <td align="left" valign="middle">
                           <div style="font-weight: bold;" id="subject_'
$message['id'], '">
                              <a href="'
$message['href'], '">'$message['subject'], '</a>
                           </div>'
;

      
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
      
echo '
                           <span class="smalltext">&#38;#171; <b>'
, !empty($message['counter']) ? $txt[146] . ' #' $message['counter'] : ''' '$txt[30], ':</b> '$message['time'], ' &#38;#187;</span></td>
                        <td align="right" valign="bottom" height="20" nowrap="nowrap" style="font-size: smaller;">'
;

      
// Can they reply?  Have they turned on quick reply?
      
if ($context['can_reply'] && !empty($options['display_quick_reply']))
         echo 
'
                           <a href="'
$scripturl'?action=post;quote='$message['id'], ';topic='$context['current_topic'], '.'$context['start'], ';num_replies='$context['num_replies'], ';sesc='$context['session_id'], '" onclick="doQuote('$message['id'], ', \''$context['session_id'], '\'); return false;">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/quote.gif" alt="' $txt[145] . '" border="0" />' $txt[145]), '</a>';
      
// So... quick reply is off, but they *can* reply?
      
elseif ($context['can_reply'])
         echo 
'
                           <a href="'
$scripturl'?action=post;quote='$message['id'], ';topic='$context['current_topic'], '.'$context['start'], ';num_replies='$context['num_replies'], ';sesc='$context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/quote.gif" alt="' $txt[145] . '" border="0" />' $txt[145]), '</a>';

      
// Can the user modify the contents of this post?
      
if ($message['can_modify'])
         echo 
'
                           <a href="'
$scripturl'?action=post;msg='$message['id'], ';topic='$context['current_topic'], '.'$context['start'], ';sesc='$context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/buttons/modify.gif" alt="' $txt[66] . '" border="0" />' $txt[17]), '</a>';

      
// How about... even... remove it entirely?!
      
if ($message['can_remove'])
         echo 
'
                           <a href="'
$scripturl'?action=deletemsg;topic='$context['current_topic'], '.'$context['start'], ';msg='$message['id'], ';sesc='$context['session_id'], '" onclick="return confirm(\''$txt[154], '?\');">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/delete.gif" alt="' $txt[121] . '" border="0" />' $txt[31]), '</a>';

   
Well, my whole code would not post in here...I should have assumed so, but I can attach the whold code on a txt if you wish to see it?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on December 05, 2008, 09:42:54 AM
Funnily enough the button does not show on my theme either which is wierd? The edits i pointed out should be made when you select the theme in the SimplePortal admin area - it made the changes for me and I then checked my Display.template.php file and the correct changes where in there so I don't know whay the add article button does not work?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gadget.. on December 05, 2008, 01:51:33 PM
Quote from: Youngiiie on December 05, 2008, 09:42:54 AM
Funnily enough the button does not show on my theme either which is wierd? The edits i pointed out should be made when you select the theme in the SimplePortal admin area - it made the changes for me and I then checked my Display.template.php file and the correct changes where in there so I don't know whay the add article button does not work?

Well I do appreciate you trying to help me,...

I will see if I can maybe re-write this to make it work on my theme,... If I get something to work I will post it for others ...

/me crosses fingers.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on December 08, 2008, 07:01:31 AM
Cool - I also noticed there is no button/gif in the zip file and i looked at the source code when veiwing portal and could see no ref calling the button in so I am not sure if something is missing?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on December 08, 2008, 07:02:57 AM
Quick question: are there plans to have the ability to have 4 columns instead of left, center, right? I could certainly utilise it but not sure how much hassle it would be?

Also are there plans to have a media block - something that could hold flash maybe? Or is that what the HTML block is for?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 08, 2008, 09:57:46 PM
I created a new membergroup and they can not see the blocks on the portal, I am certain i have all the permissions set correctly. Any help?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Burke ♞ Knight on December 08, 2008, 09:59:44 PM
If make new membergroup after setting up blocks, have to edit each block and add the group to the selected group permissions area.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 08, 2008, 10:11:18 PM
Quote from: BurkeKnight on December 08, 2008, 09:59:44 PM
If make new membergroup after setting up blocks, have to edit each block and add the group to the selected group permissions area.

got it, i didnt remember setting permissions when i made the blocks, thank you...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gadget.. on December 08, 2008, 10:38:58 PM
Well I got a button to show & work on my other themes if anyone is intrested:

After:
      // What about splitting it off the rest of the topic?
      if ($context['can_split'])
         echo '
                           <a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/split.gif" alt="' . $txt['smf251'] . '" border="0" />' : $txt['smf251']), '</a>';


I added:
// Make Article Button
      if ($context['can_make_article'])
         echo '
                           <a href="', $scripturl, '?sa=addarticle;message=', $context['topic_first_message'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . 'addarticle.gif" alt="Make Article" border="0" />' : $txt['smf251']), '</a>';


& now the button works, it operates a little differently then the normal one installed on the default theme.  It brings you to the portal when adding an article (i dont mind) Rather then popping up like the other default one does...I think it has something to do with me missing the array in my code but w/e it works perfectly!!!  Of course you will need to add a button accordingly or it will show as text...  I hope this helps others as it did the job for me!!!~
Title: Re: SimplePortal (2.1.1 Released!)
Post by: haito on December 09, 2008, 02:29:48 AM
1.     Execute Modification     ./index.php     Test failed
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Display.php    Test successful
4.    Execute Modification    ./Sources/Load.php    Test successful
5.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
6.    Execute Modification    ./Sources/Recent.php    Test successful
7.    Execute Modification    ./Sources/Subs.php    Test successful
8.    Execute Modification    ./Sources/Help.php    Test successful
9.    Execute Modification    ./Sources/ManageServer.php    Test successful
10.    Execute Modification    ./Themes/default/index.template.php    Test successful
11.    Execute Modification    ./Themes/default/Display.template.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
13.    Execute Modification    ./Themes/default/languages/Who.english-utf8.php    Skipping file

help  :( i wanna unninstall 2.05 and upgrade to 2.1
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on December 09, 2008, 06:40:24 AM
Quote from: Gadget.. on December 08, 2008, 10:38:58 PM
Well I got a button to show & work on my other themes if anyone is intrested:

After:
      // What about splitting it off the rest of the topic?
      if ($context['can_split'])
         echo '
                           <a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/split.gif" alt="' . $txt['smf251'] . '" border="0" />' : $txt['smf251']), '</a>';


I added:
// Make Article Button
      if ($context['can_make_article'])
         echo '
                           <a href="', $scripturl, '?sa=addarticle;message=', $context['topic_first_message'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . 'addarticle.gif" alt="Make Article" border="0" />' : $txt['smf251']), '</a>';


& now the button works, it operates a little differently then the normal one installed on the default theme.  It brings you to the portal when adding an article (i dont mind) Rather then popping up like the other default one does...I think it has something to do with me missing the array in my code but w/e it works perfectly!!!  Of course you will need to add a button accordingly or it will show as text...  I hope this helps others as it did the job for me!!!~

Does not work for me at all - but my theme is not built with tables it is built tabless - pure CSS.

Also Where does the button show as I cannot see the placement of it on the portal OR on default theme?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on December 09, 2008, 07:46:07 AM
Found it - on the posts :P

Funny that your code works but the created code does not.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gadget.. on December 09, 2008, 08:43:34 AM
Quote from: Youngiiie on December 09, 2008, 07:46:07 AM
Found it - on the posts :P

Funny that your code works but the created code does not.

Lol, so it does work for you then?!  Sounds like it does & I am glad to hear so...& YEs I was a little surprised the button code the author supplied didn't work,...But I wanted that button makes it easier to quickly add threads to the portal without accessing the admincp... :D

But nonetheless I am just happy it is there now.. I am still very new to this editing..
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Burke ♞ Knight on December 09, 2008, 09:09:00 AM
I hope you both realize, that the button code supplied, is for the Default theme.
95% of custom themes use a different coding, that makes it hard for mod makers to supply the correct codes for those themes. That is why the manual edits are needed, so people can MODIFY the code to fit the themes they are using.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: speedfreak87 on December 09, 2008, 12:37:46 PM
How do I use the POLL block?  I added it but no poll shows up, I even created a poll in one of the forums and it still didn't show.. correction, the block shows up, but the poll content does not.. what do I need to do?  ( I would have started my own thread but can't in here for some reason)..


Title: Re: SimplePortal (2.1.1 Released!)
Post by: taha116 on December 09, 2008, 02:13:28 PM
Hi, im using 2.0 beta 4 and I am having a small issue with the top posters block.

I have disabled increase of post count in certain boards however people who post there still have their count increased in the block...
Why is that happening?

Ive just noticed someting... its not just the block its in genreal it apears to be happening at the profile so im gona check all my settings again, any suggestions while i do this?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Burke ♞ Knight on December 09, 2008, 02:16:29 PM
Quote from: speedfreak87 on December 09, 2008, 12:37:46 PM
How do I use the POLL block?  I added it but no poll shows up, I even created a poll in one of the forums and it still didn't show.. correction, the block shows up, but the poll content does not.. what do I need to do?  ( I would have started my own thread but can't in here for some reason)..

You need to be sure to enter the poll ID into the area for it in editing the block. The poll ID is the same as the Topic ID.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: bullbreedluverz on December 09, 2008, 05:51:48 PM
in my forum error log i keep getting this error message

8: Undefined index: ID_MSG
File: /home/bullbree/public_html/smf/Sources/SPortal1-1.php
Line: 278


any ideas how to iradicate this as im getting 20/30 pages of errors in a day
Title: Re: SimplePortal (2.1.1 Released!)
Post by: speedfreak87 on December 09, 2008, 10:31:59 PM
Quote from: BurkeKnight on December 09, 2008, 02:16:29 PM
Quote from: speedfreak87 on December 09, 2008, 12:37:46 PM
How do I use the POLL block?  I added it but no poll shows up, I even created a poll in one of the forums and it still didn't show.. correction, the block shows up, but the poll content does not.. what do I need to do?  ( I would have started my own thread but can't in here for some reason)..

You need to be sure to enter the poll ID into the area for it in editing the block. The poll ID is the same as the Topic ID.

by ID, do you mean the URL?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gadget.. on December 09, 2008, 11:00:03 PM
Quote from: BurkeKnight on December 09, 2008, 09:09:00 AM
I hope you both realize, that the button code supplied, is for the Default theme.
95% of custom themes use a different coding, that makes it hard for mod makers to supply the correct codes for those themes. That is why the manual edits are needed, so people can MODIFY the code to fit the themes they are using.

Nope I did not know that & that kind of sucks for adding mods for nooßs because I dont think hardly anyone uses the default theme but I understand what you mean now, & thanks for letting me know,...

Title: Re: SimplePortal (2.1.1 Released!)
Post by: Burke ♞ Knight on December 09, 2008, 11:15:01 PM
Quote from: speedfreak87 on December 09, 2008, 10:31:59 PM
Quote from: BurkeKnight on December 09, 2008, 02:16:29 PM
Quote from: speedfreak87 on December 09, 2008, 12:37:46 PM
How do I use the POLL block?  I added it but no poll shows up, I even created a poll in one of the forums and it still didn't show.. correction, the block shows up, but the poll content does not.. what do I need to do?  ( I would have started my own thread but can't in here for some reason)..


You need to be sure to enter the poll ID into the area for it in editing the block. The poll ID is the same as the Topic ID.

by ID, do you mean the URL?

Say the topic you posted the poll in has it's url end like this:

index.php?topic=122.0

The poll ID would be 122

:)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: speedfreak87 on December 09, 2008, 11:30:45 PM
ha! thanks!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 10, 2008, 07:38:29 AM
haito:

Ignore the error and replace your files with the attached. Make you take a back-up though.

Also, while installing 2.1.1, you will get an error in index.php; ignore that too.

taha116:

It looks like a bug in SMF 2.0, as the post count of the member increases every time for me. I'll check it.

bullbreedluverz:

Which version are you using?

Gadget..:

Not much we can do. We, too, wish that all theme authors follow the SMF standard.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on December 10, 2008, 07:41:03 AM
Quote from: Gadget.. on December 09, 2008, 08:43:34 AM
Quote from: Youngiiie on December 09, 2008, 07:46:07 AM
Found it - on the posts :P

Funny that your code works but the created code does not.

Lol, so it does work for you then?!  Sounds like it does & I am glad to hear so...& YEs I was a little surprised the button code the author supplied didn't work,...But I wanted that button makes it easier to quickly add threads to the portal without accessing the admincp... :D

But nonetheless I am just happy it is there now.. I am still very new to this editing..

Yeah it works and the permissions still work too - kudos on edting the code correctly - I'm a noob to PHP myself but I am learning - I use CSS and XHTML more as well as JS and AS.

I have my site setup to only use text instead of images in most places.

Quote from: BurkeKnight on December 09, 2008, 09:09:00 AM
I hope you both realize, that the button code supplied, is for the Default theme.
95% of custom themes use a different coding, that makes it hard for mod makers to supply the correct codes for those themes. That is why the manual edits are needed, so people can MODIFY the code to fit the themes they are using.

Yeah I know that :P I just was not sure where the button was meant to display - when reviewing the code after selecting which theme to enable Portal on I noticed the code was placed with the 'Pages' bit you see that falls under the Articles on the main Portal homepage - I was expecting it there.

As for installing mods on custom themes I find it a cool thing to do and lets you get your hands dirty but it sucks when for example you have a mod that uses tables and you have a theme that uses tableless - becomes more of a challenge but all good so far. I'll post my site up when I have finished setting it up if anyone is interested :)

Cheers for the advice bro :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: taha116 on December 10, 2008, 07:26:04 PM
Blue Dream

Didn't fully understand your post did you mean that you have the same problem? Anyways id really like that fixed. Do you have any ideas on what i should do or maybe i may have conflicting settings in which case can you think of any settings that may conflict with the don't increase post count feature?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on December 10, 2008, 09:57:01 PM
Quote from: taha116 on December 10, 2008, 07:26:04 PM
Blue Dream

Didn't fully understand your post did you mean that you have the same problem? Anyways id really like that fixed. Do you have any ideas on what i should do or maybe i may have conflicting settings in which case can you think of any settings that may conflict with the don't increase post count feature?

Yeah, he said it's probably a bug.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: haito on December 11, 2008, 01:42:44 AM
@blue dream..
how to add side bar at forum page?
no option in my SPadmin
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 11, 2008, 08:25:21 AM
This may be a stupid question, but is 2.1.1 really new like in the last couple weeks? I have 2.0.4 should i upgrade it?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Jade Elizabeth on December 11, 2008, 08:26:20 AM
Quote from: Bugpac ™ on December 11, 2008, 08:25:21 AM
This may be a stupid question, but is 2.1.1 really new like in the last couple weeks?

Yes, it is the last announcement on the home site :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Burke ♞ Knight on December 11, 2008, 08:27:15 AM
It is highly recommended to upgrade, as 2.1.1 fixes a lot of bugs and adds few features.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on December 11, 2008, 09:21:42 AM
Actually, we at least recommend upgrading to 2.0.5. If you do not wish to have the sidebars within the forum, then the Classic version (or 2.0.x) is the version you'll want. 2.1.x essentially does the same thing, with a few added features.

At least upgrade to 2.0.5. If you want more features, then upgrade to 2.1.1.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 11, 2008, 10:30:52 AM
How do i go about upgrading, do i need to uninstall the 2.0.4 first?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Jade Elizabeth on December 11, 2008, 10:32:20 AM
The announcements on the SimplePortal website will help with that.
http://simpleportal.net/
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 11, 2008, 10:56:17 AM
I actually have 2.0.5, I also have 2.0.4 in the packages but its not installed, 2.1.1 gives me an error on istall, I like the 2.0.5 but i want random gallery images to display on the portal...Besides that i had a poll on my fourm and 90% of the vote liked portal as well... :D
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on December 11, 2008, 11:43:59 AM
You have to uninstall 2.0.5 to install 2.1.1. If you have errors, post them here or check out our new Install and Upgrade (http://simpleportal.net/index.php?board=54.0) support board.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 11, 2008, 11:45:55 AM
ya i did that, i reinstalled 2.0.5 , 2.1.1 just wouldn't rewrite the style.css sheet... now back to the 2.0.5 the copyright is overlapped gain, Cant remember how i fixed it last time now...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on December 11, 2008, 02:14:34 PM
Ctrl+F5 refreshes your cache. Should fix the issue.

Also, the style.css changes are minimal. If you attach your style.css here, we could help you apply those changes so you can upgrade to 2.1.1.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Burke ♞ Knight on December 11, 2008, 04:35:32 PM
I have noticed, that if the Custom Copyright mod is installed before SimplePortal 2.1.1, the CSS edit fails for SP. That is because the Custom Copyright mod does the very same change. This means, if that is installed, then the css part is already done for you, and you can continue without doing that change.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 11, 2008, 05:24:50 PM
ok i upgraded to 2.1.1 and it went but the copyright is still overlapped...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Burke ♞ Knight on December 11, 2008, 05:31:31 PM
Did you do a force refresh?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 11, 2008, 06:27:12 PM
Did now... :D
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Jade Elizabeth on December 11, 2008, 07:37:37 PM
And did it fix it?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: haito on December 11, 2008, 09:14:02 PM
I've upgraded to 2.1,
but i cant add sidebar at forum page...
Why?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fiveflat on December 12, 2008, 03:00:31 PM
Does simpleportal 2.1.1 work with the SMF Media Gallery now?  or is that a media gallery issue?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 12, 2008, 03:57:31 PM
mine wont pull random images from dragoons media..
Title: Re: SimplePortal (2.1.1 Released!)
Post by: tridirk on December 13, 2008, 02:18:07 AM
I installed this today...  Everything looked great, package manager, said no errors, I installed and this is what I get?

QuoteUnknown column 'permission_type' in 'field list'
File: /home/u7/tridirk1/html/smf/Sources/Subs-SPortal1-1.php
Line: 44

I can't get any other part of my forum, or even back to the package manager to uninstall this?

Help please.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on December 13, 2008, 02:43:23 AM
Quote from: fiveflat on December 12, 2008, 03:00:31 PM
Does simpleportal 2.1.1 work with the SMF Media Gallery now?  or is that a media gallery issue?


Should work. What's not working?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: bullbreedluverz on December 13, 2008, 05:55:43 AM
@ BLUEDREAM

Im using version 2.1 - theres link to my site in my signature if thats of any use
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 17, 2008, 08:13:05 AM
haito:

While you are creating a block, you will see the options, as a separate block at the bottom.

tridirk:

Extract the package. Copy the install1-1.php file and upload to your forum root. Then run it from your browser. Once you see the message saying the db changes are completed, remove the file.

bullbreedluverz:

2.1 has some serious bugs, update to 2.1.1. That issue was addressed with 2.1.1 too.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on December 17, 2008, 08:20:28 PM
Think i have found a bug.

When in the forum and i am viewing a topic and i click on the main title of the forum section it takes me back to the portal page instead of the thread listing of the forum?

For example if I click on 'Modifications and Packages' in this thread it should take me back to the index of 'Modifications and Packages' but instead it would direct me to the portal homepage?

Is this a known bug?

I am running SMF V1.1.7 wth the following mods:
   
1.    Welcome Topic Mod    1.1
2.    Quote Always WYSIWYG    1.01
3.    Change_All_Subjects    1.0
4.    Last Post On MemberList    1
5.    Auto Embed Video/Audio Clips    4.0.2
6.    Custom Board Sort    1.0.1
7.    last login in post    1.0
8.    nneonneo's AJAX ShoutBox    1.22
9.    Enhanced Calendar    1.1
10.    Last Topics of Person    1.0
11.    Default Avatar    1.1.1    
12.    Redirect on Login and/or Logout mod    0.2
13.    RSS Feed Poster    1.1
14.    Advanced Popup Xbox Gamertag    1.1
15.    Recycle Bin Cleaner    1.0
16.    View Single PM    1.3
17.    Cilickable posts    0.1    
18.    Inline Hover Spoiler    1.2    
19.    PM On Registration    1.0.2    
20.    SimplePortal    2.1.1

Would any of the above be causing a conflict?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 18, 2008, 05:48:07 AM
http://simpleportal.net/index.php?topic=1126.msg7858#msg7858
Title: Re: SimplePortal (2.1.1 Released!)
Post by: glennk on December 18, 2008, 07:50:22 AM
Sorry to post this here. I have asked the question elsewhere on the forum but no answers are forthcoming.

I want a frontend for my forum. In particular I want somewhere for users to add articles.

My main concerns are : ease of use and SEO

Is Simple portal the one for me ? also been looking at ez and tiny and the articles mod.

Whats best ?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 18, 2008, 08:40:49 AM
Well, currently SimplePortal does not support forum-independent articles, if that is what you are looking for. You can only select topics to be displayed on portal as articles ATM.

Currently a new articles feature is being developed. SEO will be one thing we would keep in mind while coding.

And to note; there isn't any portal with articles feature and SMF 2.0 support right now, except SimplePortal. You may consider some integration alternative if you need something more advanced.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on December 18, 2008, 09:51:00 AM
Quote from: Blue Dream on December 18, 2008, 05:48:07 AM
http://simpleportal.net/index.php?topic=1126.msg7858#msg7858

Thanks bud!

Is there any reason that was in there - will it impact future upgrades?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on December 18, 2008, 09:57:07 AM
I have one more Question - Is there a way to make a forum button? My theme is not built with Tables but it built with CSS and the navigation is built with UL LI tags - I think I saw a way to do it in this thread somewhere but the code was too different to what I have?

At the moment I have made a custom button but when you are on the page the button links to the button is not highlighted? Any ideas?

Here is my code:

// the [forum] button
if ($context['user']['is_logged'])
echo '<li><a href="/forum/index.php?action=forum" title="Forum">Forum</a></li>';


Can someone point me to proper instructions or point out the correct code? Also do i need to edit anything else other than my themes index.template file?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 18, 2008, 12:14:26 PM
For the first, I hope it won't, and probably won't...

What's your theme? Can you link to that? If you can't, would be glad if you can attach your index.template.php file.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Filipina on December 18, 2008, 12:15:53 PM
Ok hi sorry cannot find this questions so here goes.  First, I just uploaded the latest version and never used simple portal before :) I love it! 

I was making blocks on the left specified max width of 160.  Some blocks were fine, while other blocks would stretch across half my board.  Like most recent topics for example.  Why is it not keeping at 160?

One more thing.  Please see this image and tell me if the alignment looks wrong in the attachment. The left blocks are set up hiring than the boards?  What could be causing this?

Thanks for any suggestions :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 18, 2008, 12:17:50 PM
I can't see the linked image.

Use "Recent Side Block" if you want to show recent posts/topics on the side blocks. "Recent Posts Block" or "Recent Topics Block" is just for the center areas.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Filipina on December 18, 2008, 12:19:21 PM
oops sorry there is the image :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 18, 2008, 12:35:15 PM
Blocks seems okay to me. Logically, they should be at the left of everything, except the header; and they are... But I'm not sure what is the problem you mean exactly.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Filipina on December 18, 2008, 12:42:04 PM
Sorry thought the "latest member" side block should be in line with "news" main block?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 18, 2008, 04:00:58 PM
Should simple portal display gallery images from this? SMF Media Gallery 1.5 RC 2, Mine does not it says the gallery is empty..
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Filipina on December 18, 2008, 08:30:22 PM
Quote from: Bugpac ™ on December 18, 2008, 04:00:58 PM
Should simple portal display gallery images from this? SMF Media Gallery 1.5 RC 2, Mine does not it says the gallery is empty..

Not sure this is the same issue but if I select "random image" instead of "latest image" for the SMF Gallery it usually says  "Sorry! There are no pictures in the gallery yet. "  I have 4000 pictures in the gallery so not sure what bug is causing this?

Edit - Actually I put an affiliate banner in a HTML box and it has the same problem.  The forum seems to have trouble loading and the image never appears. Strange 
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 18, 2008, 09:01:03 PM
This sounds stupid, but look down at the bottom for media gallery, I didnt even see it down there at first, my problem is solved...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Filipina on December 18, 2008, 09:08:00 PM
I am using the box one for the SMF gallery.  It seems to have a real problem pulling random images
Title: Re: SimplePortal (2.1.1 Released!)
Post by: ruckstande on December 19, 2008, 12:22:17 AM
Just tried showing birthdays. It says there aren't any. Am I missing something?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on December 19, 2008, 06:18:38 AM
Quote from: Blue Dream on December 18, 2008, 12:14:26 PM
For the first, I hope it won't, and probably won't...

What's your theme? Can you link to that? If you can't, would be glad if you can attach your index.template.php file.

The theme is this one: http://custom.simplemachines.org/themes/index.php?lemma=382

The index.template is attached (mainly because i have made a few modifications to my site manually).

Cheers,

Youngie
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 19, 2008, 11:00:46 AM
Quote from: Filipina on December 18, 2008, 09:08:00 PM
I am using the box one for the SMF gallery.  It seems to have a real problem pulling random images

there is two different gallery mods, try the other as i said, it will work...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 19, 2008, 11:28:29 AM
Quote from: Filipina on December 18, 2008, 12:42:04 PM
Sorry thought the "latest member" side block should be in line with "news" main block?

Not really. Linktree is part of forum.

Quote from: Filipina on December 18, 2008, 09:08:00 PM
I am using the box one for the SMF gallery.  It seems to have a real problem pulling random images

SMF Media Gallery block should be fine. But there might be problems with SMF Gallery Random image. I'll check that.

Quote from: ruckstande on December 19, 2008, 12:22:17 AM
Just tried showing birthdays. It says there aren't any. Am I missing something?

You use the calendar block?

Quote from: Youngiiie on December 19, 2008, 06:18:38 AM
The theme is this one: http://custom.simplemachines.org/themes/index.php?lemma=382

The index.template is attached (mainly because i have made a few modifications to my site manually).

Your file is attached.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Filipina on December 19, 2008, 12:45:38 PM
thanks blue dream.. last night while installing and moving different blocks I got caught up trying to get to the main portal page.  I had just installed a block latest posts in the center and popular boards when my server became unresponsive (I am on VPS) and I could not move. 

At one point I logged in to my Cpanel (after getting hung up there too) and saw my server load was 23.3  Wow I thought what the heck happened it is normally always below 1.5 or less.  My host immediately contacted me (nice customer service :) and said what scripts are you running. Just as the server load go to 34  I was able to complete the uninstall and things returned to normal.  My error logs were turned off so I have no idea what happened.

I had zero errors when  installing the newest Simple Portal and I have no clue what caused this.  I was really having a good time with it actually.  I wonder if I should try again or not? :(
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 19, 2008, 12:46:49 PM
Do not use the SMF Gallery block and you should be okay. I'll revise that as soon as possible.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on December 19, 2008, 01:50:01 PM
Quote from: Blue Dream on December 19, 2008, 11:28:29 AM
Quote from: Youngiiie on December 19, 2008, 06:18:38 AM
The theme is this one: http://custom.simplemachines.org/themes/index.php?lemma=382

The index.template is attached (mainly because i have made a few modifications to my site manually).

Your file is attached.

Cheers bro - works great!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: ruckstande on December 20, 2008, 11:47:14 AM
Quote from: Blue Dream on December 19, 2008, 11:28:29 AM
Quote from: Filipina on December 18, 2008, 12:42:04 PM
Sorry thought the "latest member" side block should be in line with "news" main block?

Not really. Linktree is part of forum.

Quote from: Filipina on December 18, 2008, 09:08:00 PM
I am using the box one for the SMF gallery.  It seems to have a real problem pulling random images

SMF Media Gallery block should be fine. But there might be problems with SMF Gallery Random image. I'll check that.

Quote from: ruckstande on December 19, 2008, 12:22:17 AM
Just tried showing birthdays. It says there aren't any. Am I missing something?

You use the calendar block?

Quote from: Youngiiie on December 19, 2008, 06:18:38 AM
The theme is this one: http://custom.simplemachines.org/themes/index.php?lemma=382

The index.template is attached (mainly because i have made a few modifications to my site manually).

Your file is attached.
My mistake. I must have selected the wrong block.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Filipina on December 20, 2008, 07:09:23 PM
Quote from: Blue Dream on December 19, 2008, 12:46:49 PM
Do not use the SMF Gallery block and you should be okay. I'll revise that as soon as possible.

I reinstalled no problems thanks... The issue for me now is I cannot get the blocks to cooperate.  I set up 4 running down the "left" width standard 200.  I set up one at the "right" width standard 200.  I then set up an HTML box for the "top" width (tried 350 and 400) and it wants to span all the way to the right, and the right box ends up at the bottom of the forum.  I have double checked and tried to figure this out but no luck.  Can you think of something that would cause this? :) 
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Burke ♞ Knight on December 20, 2008, 07:22:24 PM
Don't set a width for center blocks. That is auto, depending on the side block sizes.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Filipina on December 20, 2008, 11:40:52 PM
Quote from: BurkeKnight on December 20, 2008, 07:22:24 PM
Don't set a width for center blocks. That is auto, depending on the side block sizes.

Yippy It took me one uninstall and a few mistakes but I got my Simple Portal looking great!  For all those others using this great Mod don't do what I did and start assigning width to your center HTML blocks.  It just screws things up :)  Also, stay clear of the SMF gallery block until that is squared away because it causes serious issues.  Thanks BurkeKnight and all those involved with the Simple Portal!  Awesome and it will remain a permanent part of my site :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fiveflat on December 21, 2008, 09:58:08 AM
I would like some help modifying the "recent topics" block so the format looks like this mod:
http://custom.simplemachines.org/mods/index.php?mod=1399

I installed that mod and it is so much easier on the eyes and easier to 'understand' it would be great if the portal block was the same way.
Can anyone help me with this?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: alex30 on December 21, 2008, 11:42:58 PM
Hi guys!

I uninstalled portal, but this white area still stays in admin panel!

What should I remove in code to remove white area?

(http://i43.tinypic.com/wn3a9.jpg)

Thanks.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 22, 2008, 09:49:42 AM
fiveflat:

SPortal1-1.php

Find:

<a href="', $post['href'], '">', $post['subject'], '</a>
', $post['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>', '<br />[', $post['board']['link'], ']
</td>
<td align="right" nowrap="nowrap">
', $post['poster']['link'], '<br />', $post['time'], '
</td>


Replace:

<a href="', $post['href'], '">', $post['subject'], '</a>
', $post['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>', '<br />', $post['poster']['link'], '
</td>
<td align="right" nowrap="nowrap">
', $post['time'], '
</td>


It appears two times. The second one if for recentTopics.

alex30:

Make sure you take the changes back made in Subs.php file.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fiveflat on December 22, 2008, 12:23:16 PM
Blue Dream:
Thanks, I made those changes, but it didn't seem to do anything.  I am using the default theme as well...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: slnurajar on December 22, 2008, 12:47:36 PM
Hi simple portal team i need your help please help me, i am using extreme 6 with smf2.0beta4 , when i tried to install the simple portal , i am getting error, please check the screenshots for error, please help me

(http://img90.imageshack.us/img90/9489/simpleportalerrorjm2.png) (http://img90.imageshack.us/img90/9489/simpleportalerrorjm2.png)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 22, 2008, 09:25:03 PM
Quote from: fiveflat on December 22, 2008, 12:23:16 PM
Blue Dream:
Thanks, I made those changes, but it didn't seem to do anything.  I am using the default theme as well...

Hard refresh? contrl f5?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fiveflat on December 22, 2008, 09:33:53 PM
Quote from: Bugpac ™ on December 22, 2008, 09:25:03 PM
Quote from: fiveflat on December 22, 2008, 12:23:16 PM
Blue Dream:
Thanks, I made those changes, but it didn't seem to do anything.  I am using the default theme as well...

Hard refresh? contrl f5?
Yup, done that too...   :-[
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Fat_Man on December 23, 2008, 04:44:29 AM

Is there some form of modification needed to be done on themes to get this going?

I'm using the DILBER theme, and when I install and use SimplePortal, it ends up removing my forum, and just showing the user name, the menu and the forum header.

Any ideas whats going on here?

Many thanks in advance.

Title: Re: SimplePortal (2.1.1 Released!)
Post by: Burke ♞ Knight on December 23, 2008, 06:25:46 AM
Quote from: Fat_Man on December 23, 2008, 04:44:29 AM

Is there some form of modification needed to be done on themes to get this going?

I'm using the DILBER theme, and when I install and use SimplePortal, it ends up removing my forum, and just showing the user name, the menu and the forum header.

Any ideas whats going on here?

Many thanks in advance.



You do have to go to the blocks and make them. They do not come all set up. ;)
However, you may also have to add a button to the menu.

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: slnurajar on December 23, 2008, 12:14:36 PM
can any one help me with my problem
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Fat_Man on December 23, 2008, 06:29:04 PM
Quote from: BurkeKnight on December 23, 2008, 06:25:46 AM

You do have to go to the blocks and make them. They do not come all set up. ;)
However, you may also have to add a button to the menu.

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)

Hmmm... yes...
Many Thanks for that BurkeKnight - you've got on me back on track now.

Cheers!!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 23, 2008, 08:58:29 PM
Quote from: slnurajar on December 23, 2008, 12:14:36 PM
can any one help me with my problem

Probably need to do a manual install, goto the download and under each file there is a box for the parser i guess its called, click it for your version and manual install as it says...

http://custom.simplemachines.org/mods/index.php?mod=1104

Title: Re: SimplePortal (2.1.1 Released!)
Post by: psynx on December 24, 2008, 06:17:19 AM
hello,

i need help on creating a separate blocks that i could put on top or under my other blocks? i mean a full block that expands 100% on page?

i have attached an image, please check the block in red color. that is what i mean full block. thank you.

(http://e.imagehost.org/0349/blocks.jpg)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: indonesia on December 24, 2008, 04:15:05 PM
i dont know what's wrong..

this mod really kill my forum.. :(

thx anyway
Title: Re: SimplePortal (2.1.1 Released!)
Post by: jkrlvgn on December 24, 2008, 04:47:17 PM
Quote from: psynx on December 24, 2008, 06:17:19 AM
hello,

i need help on creating a separate blocks that i could put on top or under my other blocks? i mean a full block that expands 100% on page?

i have attached an image, please check the block in red color. that is what i mean full block. thank you.

(http://e.imagehost.org/0349/blocks.jpg)

I'm pretty sure that Simple Portal doesn't do blocks like that quite yet.  I know that TinyPortal does for sure, but I think that the blocks like that are coming in a later release.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on December 24, 2008, 06:15:44 PM
Hi,

I have 1.1.7
sellersarena.com

I Uninstalled 2.0.5 and installed 2.1.1. All of my bottom and right side blocks are not showing. I have them enabled. I have tried to disable the center/top blocks, the left blocks and still nothing.

All I have is left blocks and my top and center blocks that fill up the rest of the page to the right.

Can some please advise as to what I need to do to get these fixed.

Also I have Community Blogs 2.0.2 and the portal is showing on the blogs but I don't have it checked to show anywhere but the portal.

Thanks in advance!! :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 24, 2008, 10:28:39 PM
My portal shows a page index at the bottom "Page[1]" How do i add a second page?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 25, 2008, 04:00:24 AM
fiveflat:

Can you show me what you want exactly? Cause the codes I gave should be changing the view of recent topics to be the same as in your forum. Also attach your SPortal1-1.php file here.

slnurajar:

Create a new directory in "Packages" directory and name it "temp". Set chmod to 777 for both "Packages" and new created "temp" directory. Then try again.

psynx:

Currently, we do not support those areas. Hopefully that will be available in the next major release.

dkillers:

Well, this mod has been downloaded ~30,000 times from the Mod Site. (I don't count the downloads in it's own) I doubt there is something in the mod, that would crash your forum. If you give us more information about the error you are getting, we may help you.

LaughOften:

I quite couldn't get what your error is. Can you attached some screenshots of the problem? Also, Blog is a custom action, we don't support them yet. If you have blocks, which you only want to be displayed on portal, select the simple display setting "Only Portal" option.

Bugpac ™:

It will be created automatically, once the article count is more than the "Articles per page" value set in "SPortal Admin" >> "General Settings" area.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Acans on December 25, 2008, 05:56:36 AM
Whats happening with the simple portal website, is it temp down or someting?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 25, 2008, 08:03:33 AM
It's okay for me now. Are you still having problems?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 25, 2008, 10:03:42 AM
Quote from: Blue Dream on December 25, 2008, 04:00:24 AM
fiveflat:

Can you show me what you want exactly? Cause the codes I gave should be changing the view of recent topics to be the same as in your forum. Also attach your SPortal1-1.php file here.

slnurajar:

Create a new directory in "Packages" directory and name it "temp". Set chmod to 777 for both "Packages" and new created "temp" directory. Then try again.

psynx:

Currently, we do not support those areas. Hopefully that will be available in the next major release.

dkillers:

Well, this mod has been downloaded ~30,000 times from the Mod Site. (I don't count the downloads in it's own) I doubt there is something in the mod, that would crash your forum. If you give us more information about the error you are getting, we may help you.

LaughOften:

I quite couldn't get what your error is. Can you attached some screenshots of the problem? Also, Blog is a custom action, we don't support them yet. If you have blocks, which you only want to be displayed on portal, select the simple display setting "Only Portal" option.

Bugpac ™:

It will be created automatically, once the article count is more than the "Articles per page" value set in "SPortal Admin" >> "General Settings" area.

Is there anyway to define a blocks height, so it will just add a slidebar? Have a look..Using a rss feed that is very very long...

http://dtsfab.com/index/index.php
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on December 25, 2008, 10:19:49 AM
We don't have it yet. Though, sounds like a good request.

For now, you can edit the SPortal1-1.template.php file.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Bugpac ™ on December 25, 2008, 11:20:46 AM
Quote from: Blue Dream on December 25, 2008, 10:19:49 AM
We don't have it yet. Though, sounds like a good request.

For now, you can edit the SPortal1-1.template.php file.

Any idea how i would do that?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on December 25, 2008, 11:54:41 AM
After installing SP I only have left, top and center blocks. I am missing the bottom and right side blocks. I have them enabled but they won't show up. They worked fine in 2.0.5.

I have the portal only option checked as well.

Thanks!!

Title: Re: SimplePortal (2.1.1 Released!)
Post by: CHICALI on December 25, 2008, 07:17:32 PM
PROBLEM SOLVED:  the Admin Lock Mod screws with this file that makes it fail, i uninstalled it and everything in the simple portal came out successful.

Hi i have a problem installing the new mod.  i have the helios theme and smf 1.1.7 but i get a failed error message in the package for ./Sources/Load.php file.  before the install and have choosen not to install it until asking about it here.  All other test say test successful.


Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/BoardIndex.php Test successful
3. Execute Modification ./Sources/Display.php Test failed
4. Execute Modification ./Sources/Load.php Test successful
5. Execute Modification ./Sources/ManagePermissions.php Test successful
6. Execute Modification ./Sources/QueryString.php Test successful
7. Execute Modification ./Sources/Recent.php Test successful
8. Execute Modification ./Sources/Subs.php Test successful
9. Execute Modification ./Sources/Help.php Test successful
10. Execute Modification ./Sources/ManageServer.php Test successful
11. Execute Modification ./Sources/Admin.php Test successful
12. Execute Modification ./SSI.php Test successful
13. Execute Modification ./Themes/default/index.template.php Test successful
14. Execute Modification ./Themes/default/Display.template.php Test successful
15. Execute Modification ./Themes/default/languages/Who.english.php Test successful

Title: Re: SimplePortal (2.1.1 Released!)
Post by: frantic on December 25, 2008, 08:14:38 PM
i acutally have a question about this great mod.  I am using Helios_final theme and smf 1.1.7

The parser told me to edit the helios theme file index.template.php

But i can't find the quote labed in green below, can anyone help?

QuoteFind:       $current_action = 'search';
Replace with:
      $current_action = 'search';
   if ((isset($_GET['board']) || isset($_GET['topic']) || in_array($context['current_action'], array('unread', 'unreadreplies'))) && !empty($context['portalactive']))
      $current_action = 'forum';
   if ($context['current_action']=='spadmin')
      $current_action = 'admin';

closes code i have to it

Quote// How about the [search] button?
        if ($context['allow_search'])
                echo '<td><a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 0px 0;" border="0" />' : $txt[182]), '</a></td>';

        // Is the user allowed to administrate at all? ([admin])
        if ($context['allow_admin'])
                echo '<td><a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 0px 0;" border="0" />' : $txt[2]), '</a></td>';

        // Edit Profile... [profile]
        if ($context['allow_edit_profile'])
                echo '<td><a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 0px 0;" border="0" />' : $txt[467]), '</a></td>';

        // The [calendar]!
        if ($context['allow_calendar'])
                echo '<td><a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 0px 0;" border="0" />' : $txt['calendar24']), '</a></td>';

        // If the user is a guest, show [login] and [register] buttons.
        if ($context['user']['is_guest'])
        {
Title: Re: SimplePortal (2.1.1 Released!)
Post by: frantic on December 26, 2008, 12:59:30 AM
never mind, someone fix it for me.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: slnurajar on December 26, 2008, 03:07:30 PM
Hi i am using smf 2.0 beta 4 with fade2white theme,i uploaded the package through ftp and created temp directory also, when i tried to install the simple portal i am getting this error after clicking install now button, can any one say whats the error, and solution for it

QuoteFatal error: require() [function.require]: Failed opening required '/www/hostrator.com/i/t/a/itaforum/htdocs/forum/Packages/temp/install2.php' (include_path='.:/usr/lib/php') in /www/hostrator.com/i/t/a/itaforum/htdocs/forum/Sources/Packages.php on line 899

QuoteInstallations actions for "SimplePortal":
Installing this package will perform the following actions:
      Type    Action    Description
*    1.    Execute Modification    ./index.php    Test successful
      1.    Replace    ./index.php    Test successful
      2.    Replace    ./index.php    Test successful
      3.    Replace    ./index.php    Test successful
      4.    Replace    ./index.php    Test successful
*    2.    Execute Modification    ./Sources/Subs-BoardIndex.php    Test successful
      1.    Replace    ./Sources/Subs-BoardIndex.php    Test successful
*    3.    Execute Modification    ./Sources/Display.php    Test successful
      1.    Replace    ./Sources/Display.php    Test successful
      2.    Replace    ./Sources/Display.php    Test successful
*    4.    Execute Modification    ./Sources/Help.php    Test successful
      1.    Replace    ./Sources/Help.php    Test successful
*    5.    Execute Modification    ./Sources/Load.php    Test successful
      1.    Replace    ./Sources/Load.php    Test successful
*    6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Replace    ./Sources/ManagePermissions.php    Test successful
      2.    Replace    ./Sources/ManagePermissions.php    Test successful
      3.    Replace    ./Sources/ManagePermissions.php    Test successful
*    7.    Execute Modification    ./Sources/ManageServer.php    Test successful
      1.    Replace    ./Sources/ManageServer.php    Test successful
*    8.    Execute Modification    ./Sources/QueryString.php    Test successful
      1.    Replace    ./Sources/QueryString.php    Test successful
*    9.    Execute Modification    ./Sources/Recent.php    Test successful
      1.    Replace    ./Sources/Recent.php    Test successful
      2.    Replace    ./Sources/Recent.php    Test successful
      3.    Replace    ./Sources/Recent.php    Test successful
*    10.    Execute Modification    ./Sources/Subs.php    Test successful
      1.    Replace    ./Sources/Subs.php    Test successful
      2.    Replace    ./Sources/Subs.php    Test successful
      3.    Replace    ./Sources/Subs.php    Test successful
      4.    Replace    ./Sources/Subs.php    Test successful
*    11.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Replace    ./Sources/Admin.php    Test successful
      2.    Replace    ./Sources/Admin.php    Test successful
      3.    Replace    ./Sources/Admin.php    Test successful
      4.    Replace    ./Sources/Admin.php    Test successful
*    12.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
      1.    Replace    ./Sources/Subs-Boards.php    Test successful
*    13.    Execute Modification    ./Sources/Poll.php    Test successful
      1.    Replace    ./Sources/Poll.php    Test successful
*    14.    Execute Modification    ./SSI.php    Test successful
      1.    Replace    ./SSI.php    Test successful
      2.    Replace    ./SSI.php    Test successful
*    15.    Execute Modification    ./Themes/default/Display.template.php    Test successful
      1.    Replace    ./Themes/default/Display.template.php    Test successful
*    16.    Execute Modification    ./Themes/default/css/dropmenu.css    Test successful
      1.    Replace    ./Themes/default/css/dropmenu.css    Test successful
*    17.    Execute Modification    ./Themes/default/css/index.css    Test successful
      1.    Replace    ./Themes/default/css/index.css    Test successful
*    18.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
      1.    Replace    ./Themes/default/languages/Who.english.php    Test successful
   19.    Execute Modification    ./Themes/default/languages/Who.english-utf8.php    Skipping file
   20.    Execute Code    install2.php   
   21.    Extract File    ./Sources/SPortal2.php   
   22.    Extract File    ./Sources/SPortalAdmin2.php   
   23.    Extract File    ./Sources/Subs-SPortal2.php   
   24.    Extract File    ./Themes/default/SPortal2.template.php   
   25.    Extract File    ./Themes/default/SPortalAdmin2.template.php   
   26.    Extract File    ./Themes/default/SPortalBlocks2.template.php   
   27.    Extract File    ./Themes/default/languages/SPortal.english.php   
   28.    Extract File    ./Themes/default/languages/SPortal.english-utf8.php   
   29.    Extract File    ./Themes/default/languages/SPortalAdmin.english.php   
   30.    Extract File    ./Themes/default/languages/SPortalAdmin.english-utf8.php   
   31.    Extract File    ./Themes/default/languages/SPortalHelp.english.php   
   32.    Extract File    ./Themes/default/languages/SPortalHelp.english-utf8.php   
   33.    Extract File    ./Themes/default/images/arrow.gif   
   34.    Extract File    ./Themes/default/images/dot.gif   
   35.    Extract File    ./Themes/default/images/selected1.gif
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on December 27, 2008, 06:17:39 PM
Quote from: LaughOften on December 25, 2008, 11:54:41 AM
After installing SP I only have left, top and center blocks. I am missing the bottom and right side blocks. I have them enabled but they won't show up. They worked fine in 2.0.5.

I have the portal only option checked as well.

Thanks!!

Any help on this would be appreciated. I have also asked on the SP site for help on this days ago and not getting any response.

Thanks!!  :)

Thanks!!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Burke ♞ Knight on December 27, 2008, 06:19:32 PM
Link to site would be useful. :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on December 27, 2008, 06:57:44 PM
Hi,

I added it previously but sure here it is again  :):

www.sellersarena.com (http://www.sellersarena.com)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Acans on December 27, 2008, 08:48:17 PM
Quote from: Blue Dream on December 25, 2008, 08:03:33 AM
It's okay for me now. Are you still having problems?

i get 401 time out requests
Title: Re: SimplePortal (2.1.1 Released!)
Post by: slnurajar on December 28, 2008, 10:31:37 AM
can any one help me with my error
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on December 28, 2008, 02:09:31 PM
RSS Feed Posts - Is it possible, when using an RSS box, to only show (#) feeds?  Currently I have a feed on my home page, but it shows 10 items, is it possible to change that to 5?

Article Management - Also, is it possible to set up a membergroup, or allow permissions to a membergroup  who can add articles? I would like to be able to have certain members which I can allow to post their own articles to the home instead of having to wait for me to do it from the admin panel.

Newest Member(s) Block - Is it possible to show the (#) newest members? Currently it's set up to show on THE newest member, but I would like to show the 5 newest members.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: learjet45 on December 29, 2008, 04:43:09 PM
Quote from: KahneFan on December 28, 2008, 02:09:31 PM
Article Management - Also, is it possible to set up a membergroup, or allow permissions to a membergroup  who can add articles? I would like to be able to have certain members which I can allow to post their own articles to the home instead of having to wait for me to do it from the admin panel.
That is actually very easy. I believe if you set a membergroup to "Automatic article approval" under the permissions for the member group, that will solve your problem. Or, if you want, the "Can add article" permission will allow someone to submit an article, but would need to be approved before it displays.


As for the RSS Feed Posts, I would also like to know if there is a way to limit the # of items shown. I would like to display between 3-5 items of a feed that by default lists 50 items.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on December 29, 2008, 06:14:45 PM
Quote from: learjet45 on December 29, 2008, 04:43:09 PM
That is actually very easy. I believe if you set a membergroup to "Automatic article approval" under the permissions for the member group, that will solve your problem. Or, if you want, the "Can add article" permission will allow someone to submit an article, but would need to be approved before it displays.

Perfect, thanks!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on December 29, 2008, 10:15:37 PM
Quote from: LaughOften on December 27, 2008, 06:17:39 PM
Quote from: LaughOften on December 25, 2008, 11:54:41 AM
After installing SP I only have left, top and center blocks. I am missing the bottom and right side blocks. I have them enabled but they won't show up. They worked fine in 2.0.5.

I have the portal only option checked as well.

Thanks!!

Any help on this would be appreciated. I have also asked on the SP site for help on this days ago and not getting any response.

Thanks!!  :)

Thanks!!

Can I PLEASE get this resolved?  This has not worked since I upgraded over a week ago and I can't seem to get any solution.

Thanks!! :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on December 30, 2008, 09:35:59 PM
Okay last try here. I can't believe this. Over a week and no results.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on December 30, 2008, 09:52:21 PM
Have you tried on the simple portal site?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on December 30, 2008, 10:00:54 PM
Since the 19th!!  :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on December 31, 2008, 01:14:46 AM
Just makin' sure :D
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on December 31, 2008, 01:45:35 AM
Quote from: KahneFan on December 31, 2008, 01:14:46 AM
Just makin' sure :D

I appreciate it! :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: blakey on December 31, 2008, 03:26:07 AM
I have instaled simple portal, I see the admin features but it is not displaying on my site, any sugestions? worldwidechristiansonline.co.uk
Title: Re: SimplePortal (2.1.1 Released!)
Post by: learjet45 on January 01, 2009, 01:34:38 PM
Quote from: blakey on December 31, 2008, 03:26:07 AM
I have instaled simple portal, I see the admin features but it is not displaying on my site, any sugestions? worldwidechristiansonline.co.uk
Did you enable simple portal?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: blakey on January 01, 2009, 04:23:46 PM
yes it is.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on January 01, 2009, 10:20:44 PM
blakey, looks like some of the mod didn't install properly.


Fatal error: Call to undefined function sportal_vital() in /home/christia/public_html/Sources/Subs.php on line 3453


Can you please upload your Subs.php here (when you post, click Additional Options and then use the attachments to upload the file).
Title: Re: SimplePortal (2.1.1 Released!)
Post by: blakey on January 02, 2009, 12:12:40 PM
Hi,

Simple portal completely crashed my forum, when I removed the package, parts of coding were left throughout my forum files which caused more problems and the was completly unacessable. I have managed to delete the coding thanks to helpful people on this site. Im not sure I can trust Simple Portal again?

Thanks
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on January 02, 2009, 04:37:33 PM
Removing a mod package does not uninstall the mod. I was attempting to help you, but you didn't follow my instructions. So whatever resulted was not the fault of SimplePortal.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on January 02, 2009, 05:12:32 PM
Quote from: LaughOften on December 29, 2008, 10:15:37 PM
Quote from: LaughOften on December 27, 2008, 06:17:39 PM
Quote from: LaughOften on December 25, 2008, 11:54:41 AM
After installing SP I only have left, top and center blocks. I am missing the bottom and right side blocks. I have them enabled but they won't show up. They worked fine in 2.0.5.

I have the portal only option checked as well.

Thanks!!

Any help on this would be appreciated. I have also asked on the SP site for help on this days ago and not getting any response.

Thanks!!  :)

Thanks!!

Can I PLEASE get this resolved?  This has not worked since I upgraded over a week ago and I can't seem to get any solution.

Thanks!! :)

Okay. It was suggested that maybe it was my Blog Community. So I seleted the Blog and all modifications from the files.

SimplePortal still does not show bottom or right side blocks. All are enabled. It is set to Portal only.

Can Anyone Fix This for me???????????
Title: Re: SimplePortal (2.1.1 Released!)
Post by: psynx on January 04, 2009, 08:19:13 AM
hello,

i need the newly upgraded simpleportal 2.1.1

how do i upgrade my portal? i am currently using the classic portal 2.0.5

but actually i also have simpleportal 2.0.4 before but i was not able to uninstall it and maybe the files from old portal 2.0.4 is still on my site so im afraid it will be messed up.

so how do i upgrade to the new released portal? guide me pls....
thank you in advance.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on January 04, 2009, 12:38:10 PM
You need to uninstall and remove the old portal, then reinstall the new portal.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: psynx on January 04, 2009, 01:29:07 PM
actually i tried that and my forum was lost. there were conflict in files from my old portal files when installing the new portal.

there is no 'uninstall' with simple portal package 2.0.4 so i don't know how to install it.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on January 04, 2009, 01:41:16 PM
From the package manager there's no uninstall? Unless I'm mistaken, anything you install through your package manager should have an uninstall feature.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: psynx on January 04, 2009, 01:47:01 PM
yeah, there isn't 'uninstall' for old simple portal 2.0.4 in my package manager. just 'list files' and 'delete'

if i delete the files, it will messed up
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on January 04, 2009, 01:49:10 PM
You may want to look at the installation instructions for that package and work them in reverse to manually unsinstall the package then.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: psynx on January 04, 2009, 01:59:22 PM
perhaps that is the only choice i have right now.

this will take long but i will just try it
Title: Re: SimplePortal (2.1.1 Released!)
Post by: bullbreedluverz on January 05, 2009, 12:16:19 PM
could anyone help me out with removing SP 2.1 on 1.1.7 default theme (with a little bit of modifying of the theme but not major changes) - im having a complete nightmare with it as it wont clean install via package manager and leaves lots the edits in the files and ive tried to remove them manually but not getting anywhere with it and keep ending up with parse errors all the time

edit

ignore this as im gunna rip my forum apart and install clean files to remove the problems caused by the version of SP i have
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on January 06, 2009, 10:34:37 AM
I'm sorry, Gmans, but we don't allow SimplePortal to be distributed by 3rd parties. Simplemachines.org and Simpleportal.net are the only two sites that have permission to distribute the mod. That's why I removed your link.

You are welcome to share your Russian translation on SimplePortal.net. We have a Russian translator already, but perhaps Mavn needs some help. Feel free to make an account there and contact LHVWB or Jade for more information, or contact the current Russian translator, Mavn, to see if you can provide any assistance.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gmans on January 06, 2009, 02:59:52 PM
But why you not to use the language files of this package for making the russian version? :)
You apropos designer in command does not need? :P
The most Beautiful avatar  ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on January 06, 2009, 03:15:37 PM
Because we already have a Russian translator and Russian translation files for 2.0.5.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gmans on January 06, 2009, 03:23:24 PM
heh  :-[

ok, verry nice , i will wait new russian versions , because SP really nice
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on January 07, 2009, 09:51:45 AM
ok can someone look into my account on sp??

i was registered i know a few months back, but now im not.

i registered again, but put the wrong email addy..

i have a client that wants to use this portal, there is some errors in the log, no fix here on smf, but yet my umm membership isnt there on sp anymore.. any idea why?? drop me a pm please.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: BOS4O on January 07, 2009, 07:36:43 PM
hi,
hot to add this code in one php block in the simple portal

this is the code for random images from the SMF Media Gallery

// Random items?
if(!empty($context['random_items'])) {
echo '
<div class="catbg item_heading">',$txt['mgallery_random_items'],'</div>
<div id="random_pics">
<ul id="pics">';
foreach($context['random_items'] as $i) {
echo '
<li class="windowbg smalltext">
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'">',$i['item_title'],'</a><br />
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'"><img alt="" src="',$galurl,'sa=getmedia;id=',$i['id_thumb'],'" /></a><br />
',$txt['mgallery_views'],' : ',$i['views'],'<br />
',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$i['member_id'],'">',$i['member_name'],'</a><br />
',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$i['id_album'],'">',$i['album_name'],'</a>
',$i['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
</li>';
}
echo '</ul>
</div>
<br style="clear: left;" />';
}


and these are the includes

global $context, $mgalSettings, $txt, $galurl, $galurl2, $scripturl, $settings;

when i try to add something like that

global $context, $mgalSettings, $txt, $galurl, $galurl2, $scripturl, $settings;
// Random items?
if(!empty($context['random_items'])) {
echo '
<div class="catbg item_heading">',$txt['mgallery_random_items'],'</div>
<div id="random_pics">
<ul id="pics">';
foreach($context['random_items'] as $i) {
echo '
<li class="windowbg smalltext">
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'">',$i['item_title'],'</a><br />
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'"><img alt="" src="',$galurl,'sa=getmedia;id=',$i['id_thumb'],'" /></a><br />
',$txt['mgallery_views'],' : ',$i['views'],'<br />
',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$i['member_id'],'">',$i['member_name'],'</a><br />
',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$i['id_album'],'">',$i['album_name'],'</a>
',$i['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
</li>';
}
echo '</ul>
</div>
<br style="clear: left;" />';
}
echo '
</div>';
?>


i cant see nothing in the S.Portal block  :(
this is my forum http://lfs-bg.net its on the last block

--------------------------

when making a new table for the smf gallery is tells me

Table 'bos4o_smf.smf_gallery_pic' doesn't exist
File: /www/hostrator.com/b/o/s/bos4o/htdocs/Sources/SPortal.php
Line: 1357

it needs to be bos4o_smf_gallery_pic how to fix it?
it tells me a error like that for the smf shop too
i need to remove the one smf from this here
bos4o_smf.smf_gallery_pic
how?  :(
Title: Re: SimplePortal (2.1.1 Released!)
Post by: bullbreedluverz on January 08, 2009, 11:48:38 AM
I had a lot problems with SP 2.1 and have had to completely strip my forum back and rebuild it as that was the onlyway i could get rid of SP 2.1 but i do like SP and want to install 2.1.1 and my question lies in that the database tables for 2.1 are still there, will this cause a problem if i try to install 2.1.1 or will the new version just use the same tables without any problems?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on January 08, 2009, 12:13:20 PM
What problems did you encounter? Just saying "I had a lot of problems" doesn't help us pinpoint the cause and help you fix it.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on January 08, 2009, 12:22:10 PM
Quote from: bullbreedluverz on January 08, 2009, 11:48:38 AM
I had a lot problems with SP 2.1 and have had to completely strip my forum back and rebuild it as that was the onlyway i could get rid of SP 2.1 but i do like SP and want to install 2.1.1 and my question lies in that the database tables for 2.1 are still there, will this cause a problem if i try to install 2.1.1 or will the new version just use the same tables without any problems?

It is okay to have database tables there. You can install if files are fresh.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: bullbreedluverz on January 08, 2009, 12:25:28 PM
ive already fixed the problems - which basically was about 40 pages of errors a day

Warning: require_once(/home1/bullbree/public_html/smf/Sources/SPortal1-1.php) [function.require-once]: failed to open stream: No such file or directory in /home/bullbree/public_html/smf/index.php on line 62

Fatal error: require_once() [function.require]: Failed opening required '/home1/bullbree/public_html/smf/Sources/SPortal1-1.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bullbree/public_html/smf/index.php on line 62

line 62 is

require_once($sourcedir . '/SPortal1-1.php')


and was told to remove the 2.1 and upgrade but had a nightmare getting rid of it as it wouldnt clean install and i couldnt undo it with manual edits so basically ripped out the files and stuck clean 1s in place and got basically a clean install of SMF


*** but blue dream has just answered my question as im typing this lol cheers blue dream
Title: Re: SimplePortal (2.1.1 Released!)
Post by: bullbreedluverz on January 08, 2009, 05:39:05 PM
ok back with another problem, im getting an error on install on index.php

the mod replaces

// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}


with

// Action and board are both empty... SPortal!
if (empty($board) && empty($topic) && !empty($modSettings['portalactive']))
{
require_once($sourcedir . '/SPortal1-1.php');
return 'SPortal';
}
// Action and board are still both empty but no portal... BoardIndex
elseif (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}


but i have Hack's Park shoutbox and that is interupting the install as the code is changed

/ Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');

# Hack's Park //
require_once($sourcedir . '/HP_shoutBox_Subs.php');
HPSub_shoutBox_load('boardindex');
# // Hack's Park
return 'BoardIndex';
}


would it work to manual edit to this ?

// Action and board are both empty... SPortal!
      if (empty($board) && empty($topic) && !empty($modSettings['portalactive']))
      {
         require_once($sourcedir . '/SPortal1-1.php');
         return 'SPortal';
      }
      // Action and board are still both empty but no portal... BoardIndex
      elseif (empty($board) && empty($topic))
      {
         require_once($sourcedir . '/BoardIndex.php');

         # Hack's Park //
         require_once($sourcedir . '/HP_shoutBox_Subs.php');
         HPSub_shoutBox_load('boardindex');
         # // Hack's Park
         return 'BoardIndex';
      }
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on January 08, 2009, 05:52:09 PM
The final code you posted looks like it'll work. Back up your index.php and try it. If it doesn't work, you can always replace the index.php with the one you backed up.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: bullbreedluverz on January 08, 2009, 05:56:27 PM
cheers, just wanted to check the shoutbox code wouldnt interfere with SP code
Title: Re: SimplePortal (2.1.1 Released!)
Post by: lawlwhat on January 08, 2009, 08:20:43 PM
I'm having a problem where my article box displays lower than my blocks, and without the border. I'm using the morestyle theme (http://custom.simplemachines.org/themes/index.php?lemma=1000).

You can see an image of what I mean here: http://i40.tinypic.com/t04ujc.jpg

As you can see, the article bit is lower down on the page than the other two blocks. I want it to be in line with them. How do I do that?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Gmans on January 09, 2009, 03:21:08 AM
Quote from: lawlwhat on January 08, 2009, 08:20:43 PM
I'm having a problem where my article box displays lower than my blocks, and without the border. I'm using the morestyle theme (http://custom.simplemachines.org/themes/index.php?lemma=1000 (http://custom.simplemachines.org/themes/index.php?lemma=1000)).

You can see an image of what I mean here: http://i40.tinypic.com/t04ujc.jpg (http://i40.tinypic.com/t04ujc.jpg)

As you can see, the article bit is lower down on the page than the other two blocks. I want it to be in line with them. How do I do that?

MMMM :) Nice theme
Maybe.... open forum/themes/default/ directory
If you forum Smf 2 version, open Sportal2.template.php in notepad and find this
  <table class="bordercolor" width="100%">
stroke 150
and replace
 <table cellspacing="0" class="bordercolor" width="100%">            
Smf 1.1.x 
In smf 1.1.x did not try, but think process not differs
Sorry ;) , my english bad
Title: Re: SimplePortal (2.1.1 Released!)
Post by: lawlwhat on January 09, 2009, 05:05:03 AM
Quote from: Gmans on January 09, 2009, 03:21:08 AM
MMMM :) Nice theme
Maybe.... open forum/themes/default/ directory
If you forum Smf 2 version, open Sportal2.template.php in notepad and find this
<table class="bordercolor" width="100%">
stroke 150
and replace
<table cellspacing="0" class="bordercolor" width="100%">            
Smf 1.1.x
In smf 1.1.x did not try, but think process not differs
Sorry ;) , my english bad

Thanks a lot, that fixed it!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on January 09, 2009, 09:40:51 AM
Hi Guys,

I just modified my SPortal php file specifically for the userinfo block - I made the user posts clickable - I used the clickable posts mod as a guide.

Not sure if anyone is interested but some might like to use it.

Find:
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt[21], ': ',$memberContext[$member_id]['posts'],'<br />'

Replace with:
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt[21], ': <a href="', $scripturl, '?action=profile;u=', $message['member']['id'], ';sa=showPosts">',$memberContext[$member_id]['posts'],'</a><br />'

Hopefully it should work but please do make a backup of the original file so if it goes wrong you can revert it.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: lawlwhat on January 09, 2009, 05:36:47 PM
Oh god ><

I wanted to get rid of the 'time to stay logged in' box on the userinfo block, so I tried to uninstall SimplePortal so I could reinstall it with an edited SPortal.php file. But it didn't uninstall properly or something, because well...

QuoteWarning: require_once(/home/www/hotsaucekj.com/Sources/SPortal1-1.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/hotsaucekj.com/index.php on line 63

Fatal error: require_once() [function.require]: Failed opening required '/home/www/hotsaucekj.com/Sources/SPortal1-1.php' (include_path='.:/usr/local/php5/share/pear') in /home/www/hotsaucekj.com/index.php on line 63

Please tell me I can fix this D:
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on January 09, 2009, 05:40:35 PM
you will need to manually edit the files that the mod affected, then re install..

the info you are looking to remove can be found in the index.template.php file in the theme directory you are using ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: lawlwhat on January 09, 2009, 05:52:07 PM
Quote from: SmokyBlue on January 09, 2009, 05:40:35 PM
you will need to manually edit the files that the mod affected, then re install..

the info you are looking to remove can be found in the index.template.php file in the theme directory you are using ;)

Well that was obvious and easily fixed.

Thanks  :D
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on January 10, 2009, 12:41:46 AM
glad its working for you now ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: The_Wii_Nes_Boy on January 10, 2009, 01:09:03 AM
This Mod is great nice work, fantastic for a quick overview of whats happening on your site.

Keep up the good work :D
Title: Re: SimplePortal (2.1.1 Released!)
Post by: drroot on January 11, 2009, 11:32:19 AM
How to show the images uploaded or linked in the posted article for the portal page?

Now it simply display the source code

[img]http://.../....jpg[/img]


I've also tried to upload the image to the forum, but no image could be shown.


Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on January 11, 2009, 05:19:32 PM
I'm using Google's AdSense with Global Headers and Footers mod and on the index page of the portal, it's shoving the Google Ads below my top blocks. It's not a real big deal to me, except I may miss CPC revenue, but for others that might have header style graphics, it might mess a forum up.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: videoman57 on January 11, 2009, 07:24:44 PM
why does your site say that I am banned as a guest...I never used your software or did anything to it?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on January 11, 2009, 09:04:59 PM
I Post You Post?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: videoman57 on January 11, 2009, 09:10:56 PM
I downloaded this simplePortal and it does not work...I get all sorts of errors...?
I guess I will stick with tinyportal...at least it works well.
Thanks
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on January 11, 2009, 09:43:09 PM
Quote from: videoman57 on January 11, 2009, 09:10:56 PM
I downloaded this simplePortal and it does not work...I get all sorts of errors...?
I guess I will stick with tinyportal...at least it works well.
Thanks

What doesn't work and what are your errors?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: videoman57 on January 11, 2009, 10:04:38 PM
I installed the new smf 2.0.4b

and received these following errors...and I have no other mods installed yet.

Installing this package will perform the following actions:
      Type    Action    Description
*    1.    Execute Modification    ./index.php    Test successful
      1.    Replace    ./index.php    Test successful
      2.    Replace    ./index.php    Test successful
      3.    Replace    ./index.php    Test successful
      4.    Replace    ./index.php    Test successful
*    2.    Execute Modification    ./Sources/Subs-BoardIndex.php    Test failed
      1.    Replace    ./Sources/Subs-BoardIndex.php    Test failed
*    3.    Execute Modification    ./Sources/Display.php    Test successful
      1.    Replace    ./Sources/Display.php    Test successful
      2.    Replace    ./Sources/Display.php    Test successful
*    4.    Execute Modification    ./Sources/Help.php    Test successful
      1.    Replace    ./Sources/Help.php    Test successful
*    5.    Execute Modification    ./Sources/Load.php    Test successful
      1.    Replace    ./Sources/Load.php    Test successful
*    6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Replace    ./Sources/ManagePermissions.php    Test successful
      2.    Replace    ./Sources/ManagePermissions.php    Test successful
      3.    Replace    ./Sources/ManagePermissions.php    Test successful
*    7.    Execute Modification    ./Sources/ManageServer.php    Test successful
      1.    Replace    ./Sources/ManageServer.php    Test successful
*    8.    Execute Modification    ./Sources/QueryString.php    Test successful
      1.    Replace    ./Sources/QueryString.php    Test successful
*    9.    Execute Modification    ./Sources/Recent.php    Test failed
      1.    Replace    ./Sources/Recent.php    Test failed
      2.    Replace    ./Sources/Recent.php    Test failed
      3.    Replace    ./Sources/Recent.php    Test failed
*    10.    Execute Modification    ./Sources/Subs.php    Test successful
      1.    Replace    ./Sources/Subs.php    Test successful
      2.    Replace    ./Sources/Subs.php    Test successful
      3.    Replace    ./Sources/Subs.php    Test successful
      4.    Replace    ./Sources/Subs.php    Test successful
*    11.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Replace    ./Sources/Admin.php    Test successful
      2.    Replace    ./Sources/Admin.php    Test successful
      3.    Replace    ./Sources/Admin.php    Test successful
      4.    Replace    ./Sources/Admin.php    Test successful
*    12.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
      1.    Replace    ./Sources/Subs-Boards.php    Test failed
*    13.    Execute Modification    ./Sources/Poll.php    Test successful
      1.    Replace    ./Sources/Poll.php    Test successful
*    14.    Execute Modification    ./SSI.php    Test successful
      1.    Replace    ./SSI.php    Test successful
      2.    Replace    ./SSI.php    Test successful
*    15.    Execute Modification    ./Themes/default/Display.template.php    Test successful
      1.    Replace    ./Themes/default/Display.template.php    Test successful
*    16.    Execute Modification    ./Themes/default/css/dropmenu.css    Test failed
      1.    Replace    ./Themes/default/css/dropmenu.css    Test failed
*    17.    Execute Modification    ./Themes/default/css/index.css    Test failed
      1.    Replace    ./Themes/default/css/index.css    Test failed
*    18.    Execute Modification    ./Themes/default/languages/Who.english.php    Test failed
      1.    Replace    ./Themes/default/languages/Who.english.php    Test failed
   19.    Execute Modification    ./Themes/default/languages/Who.english-utf8.php    Skipping file
   20.    Execute Code    install2.php    
   21.    Extract File    ./Sources/SPortal2.php    
   22.    Extract File    ./Sources/SPortalAdmin2.php    
   23.    Extract File    ./Sources/Subs-SPortal2.php    
   24.    Extract File    ./Themes/default/SPortal2.template.php    
   25.    Extract File    ./Themes/default/SPortalAdmin2.template.php    
   26.    Extract File    ./Themes/default/SPortalBlocks2.template.php    
   27.    Extract File    ./Themes/default/languages/SPortal.english.php    
   28.    Extract File    ./Themes/default/languages/SPortal.english-utf8.php    
   29.    Extract File    ./Themes/default/languages/SPortalAdmin.english.php    
   30.    Extract File    ./Themes/default/languages/SPortalAdmin.english-utf8.php    
   31.    Extract File    ./Themes/default/languages/SPortalHelp.english.php    
   32.    Extract File    ./Themes/default/languages/SPortalHelp.english-utf8.php    
   33.    Extract File    ./Themes/default/images/arrow.gif    
   34.    Extract File    ./Themes/default/images/dot.gif    
   35.    Extract File    ./Themes/default/images/selected1.gif
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on January 11, 2009, 10:12:17 PM
if you want to install this, and its coming up test failed, you will need to manually insert the code..  ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: videoman57 on January 11, 2009, 10:13:57 PM
what is involved to do this manually.?   I do not know that procedure
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on January 11, 2009, 10:15:48 PM
go back to where you downloaded the mod and it will tell you what files the mod edits..  :)

the little tab that asks what version of smf you have
Title: Re: SimplePortal (2.1.1 Released!)
Post by: bullbreedluverz on January 12, 2009, 06:31:22 AM
On SMF 1.1.7 with SP2.1.1 on default theme Im getting flooded over and over with the same error, literally 2 pages of them anytime anyone goes on the portal

8: Undefined variable: scripturl
File: /home/bullbree/public_html/smf/Themes/default/SPortal1-1.template.php (portal_below sub template - eval?)
Line: 58


Ive compared my SPortal1-1.template.php with a clean copy and mine has a space between every line of coding, so i FTP'd the copy i unzipped thinking the spacing might be causing the problem but cleared the error log and went on portal and back to error log and it done it again


Solved...... removed it and give up on it
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on January 12, 2009, 11:29:27 AM
that could have been fixed, but guess it is solved now  :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on January 13, 2009, 08:49:16 AM
Such errors are mostly caused by custom PHP blocks.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: illmakeyouscream on January 14, 2009, 08:44:18 PM
Alright, so we have to like download this right?

Anyways, if so how I don't get this part.
It pops up with codes and I don't understand.

Someone said we should try simple portal but if so how do we get our stats and that to look like this because that's part of portal I know that because smf for free has that well not exactly like what i'm going to show but similar....

Please explain thank you :)

the picture of the stats and users online right here: the pic
sorry if i keep repeating but this just isn't making any sense.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on January 17, 2009, 01:57:56 PM
You can see how portal looks like in this site:

www.simpleportal.net
Title: Re: SimplePortal (2.1.1 Released!)
Post by: erisa on January 17, 2009, 02:22:12 PM
my right block is not showing anything. after i upgrade 2.1.1 for 2.04
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on January 18, 2009, 03:35:06 AM
Quote from: erisa on January 17, 2009, 02:22:12 PM
my right block is not showing anything. after i upgrade 2.1.1 for 2.04

May I have a link to your forum?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: tonyluzzi on January 20, 2009, 05:48:28 AM
For some reason I can't register on the SP website, clock verification always fails. 

I've been trying to find a way to have custom HTML pages integrated into the portal.  I've seen several websites that had index.php?page=2 page=20 etc. and I was looking at how I could do that.

Right now I'm using a stupid workaround.  I created a forum Category and used <iframe> html  top blocks and had them only show when someone went to that category and maintained the Portal blocks through advanced options.

Got this idea as I'm using <iframe> for several of my Custom Actions Mod that link to outside websites, but couldn't integrate them into the portal.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on January 20, 2009, 10:02:59 AM
Custom Action Mod (http://custom.simplemachines.org/mods/index.php?mod=331) is what you need. SP will hopefully have it's own page module with the next major release.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: lepard on January 20, 2009, 03:36:38 PM
Can we expect a version compatible with 2.0 RC1 anytime soon?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on January 20, 2009, 04:52:04 PM
It is compatible. Installation just will fail on dropdown.css file, which you can ignore.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: aw06 on January 20, 2009, 08:49:41 PM
Im getting this error

Quote8: Undefined index: 01
File: /home/!!!!##$@@/public_html/forum/Themes/default/SPortal.template.php (eval?)
Line: 228

Line 228 doesnt even exist .. any ideas ?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on January 20, 2009, 10:42:57 PM
Quote from: tonyluzzi on January 20, 2009, 05:48:28 AM
For some reason I can't register on the SP website, clock verification always fails.  >>>

Me too :(

I'm looking for some basic documentation for SP. Maybe I'm dense, but I can't seem to find any.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on January 21, 2009, 03:09:47 AM
Quote from: aw06 on January 20, 2009, 08:49:41 PM
Line 228 doesnt even exist .. any ideas ?

Any PHP blocks you have?

Quote from: Tiribulus on January 20, 2009, 10:42:57 PM
I'm looking for some basic documentation for SP. Maybe I'm dense, but I can't seem to find any.

I'll check the issue.

We don't have a documentation yet. You can ask here things you want to learn.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: aw06 on January 21, 2009, 07:18:52 AM
Yeah, i have a php calender block .. im almost sure its responsible ..

/*
Calender DIN1031 Version 11-11-2008-1
This is a costumizable calendar php block
It will show a calendar, and add the Today Events, Holidays and Birthdays.
Normal it's programmed and tested for SMF 1.1.X
I don't use any SSI.php, because all data that needed is loaded.
*/
global $scripturl, $modSettings, $sourcedir, $txt;

//With that you can start the calander on a other day
//-1 = Start on Saturaday, 0 = Start on Sunday, 1 = Start on Monday, 2 = Start on Thusday...
$first_day = 0;

//How many day in future should be shown in the events on today? (If you disable today nothing will work ;D)
$eventes_future = 5;

//Show Weeksnumber? 1 = on 0 = off
$show_weeknumber = 0;

//How long should the day, if the number higher 3 than the complete dayname will be shown
$day_name_length = 0; //0 is short day name 1 is full day name :)

//The background color of days with Events, birthdays or holidays, you can use css colors
$color_background_items_mixed = 'lightblue';
$color_background_items_event = 'lightblue';
$color_background_items_birthday = 'lightblue';
$color_background_items_holiday = 'lightblue';

//The textcolor of days with Events, birthdays or holidays, you can use css colors
$color_text_items_mixed = 'steelblue';
$color_text_items_event = 'steelblue';
$color_text_items_birthday = 'steelblue';
$color_text_items_holiday = 'steelblue';

//The Color of the todays background / text
$color_background_today = 'white';
$color_text_today = 'green';

//The Textcolor for the standard days
$color_text = 'steelblue';

//The Textcolor for the Sundays
$color_text_sunday = '#C00000';

//The Textcolor for the Week Number
$color_text_week = '#990000';

//If you have a diffrent calender you can change the link to it here
$month_href = $scripturl . '?action=calendar';

//What should the callendar show?
$show_events = 1; //0 No, 1 Yes
$show_birthdays = 1; //0 No, 1 Yes
$show_holidays = 1; //0 No, 1 Yes
//Show the single events and items of the day :)
$show_today = 1; //0 No, 1 Yes

//Dateformat of day you can use %y for year %d for day and %m for month (Only digital numbers!)
$currentDateFormat = '%m/%d';

//This Variable is only for mulitple blocks of this type, please change it only if you know what you do ;)
//If show today disabled than this will not work and is disabled!
$enableJavaScript = 1;
$javascript_idFix = 'calendarDIN1031_';

//Okay please don't do anything here if you not now what you do
/**************************************************************/
// You can't do anything if the calendar is off!
if (empty($modSettings['cal_enabled']))
fatal_lang_error('calendar_off', false);

//First try to make it compatible between versions SMF 1.1 and 2.0 ;) (Not Working, text problems ;P)
if(file_exists($sourcedir . '/Subs-Calendar.php')) {
require_once($sourcedir . '/Subs-Calendar.php');
$smcFunc['getEvents'] = 'getEventRange';
$smcFunc['getBirthdays'] = 'getBirthdayRange';
$smcFunc['getHolidays'] = 'getHolidayRange';
}
else {
require_once($sourcedir . '/Calendar.php');
$smcFunc['getEvents'] = 'calendarEventArray';
$smcFunc['getBirthdays'] = 'calendarBirthdayArray';
$smcFunc['getHolidays'] = 'calendarHolidayArray';
}

//Fix possible mistakes by user
$eventes_future = (int) $eventes_future;
$eventes_future = !empty($eventes_future) ? abs($eventes_future) : 0;

//Easier and faster to handel =).
$show_weeknumber = !empty($show_weeknumber);

//Enable the Javascript?
$enableJavaScript = !empty($enableJavaScript) && !empty($show_today);

//Built some standard dates
$now = time() + $modSettings['time_offset'] * 3600;
$today = date('j',$now);
$year = date("Y",$now);
$month = date("n",$now);
$days = array();
$pn = array();

$first_of_month = gmmktime(0,0,0,$month,1,$year);

//retrieve this month events, holydays and birthdays
$days_in_month = gmdate('t',$first_of_month);
//Built Month low and high date :)
$low_date = $year.'-'.$month.'-01';
$high_date = $year.'-'.$month.'-'.$days_in_month;

//Premission Checkup
$can_post_calendar = allowedTo('calendar_post');
$calendarDataToday = array('events' => array(), 'birthdays' => array(), 'holidays' => array());
$collectionDays = array(); //This is for the java script build :)
$calendarEventsFuture = array();

$todayDate = date("Y-m-d", time());

//add important days to the days array
if(!empty($show_events)) {
$insert_date = true;
//Special Case the high date of events can be more in the future than normal
$event_future_time = $now + $eventes_future * 86400;
if($eventes_future != 0) {
$month_event = date("n",$event_future_time);
//Next Month?
if($month_event != $month) {
$day_event = date("j",$event_future_time);
$year_event = date("Y",$event_future_time); //This is need, could be possible that this jan next year.
$event_future_date = $year_event.'-'.$month_event.'-'.$day_event;
}
else
$event_future_date = $high_date;
}
else
$event_future_date = $high_date;
$events = $smcFunc['getEvents']($low_date, $event_future_date);
foreach($events as $startdate => $event) {
list($cyear, $cmonth, $cday) = explode('-', $startdate);
$current_timestamp = mktime(0,0,0, $cmonth, $cday, $cyear);
//This insert the today events and future events if they exist
if($startdate == $todayDate || ($current_timestamp >= $now && $current_timestamp <= $event_future_time)) {
if($startdate == $todayDate)
$calendarDataToday['events'] = $event;
else
$calendarEventsFuture[$startdate] = $event;
}
//We must select between create or only show!
$href_calendar = $enableJavaScript ? '#day'.$cday.'" onclick="return '.$javascript_idFix.'selectCalendarDate(\'day'.$cday.'\');' : $month_href;
//Insert only the current informtions
if($cmonth == $month) //Next month is not avaible ;)
$days[$cday] = '<a class="smalltext" style="color: '.$color_text_items_event.'; font-weight: bold; background-color: '.$color_background_items_event.'; padding: 0px 4px 0px 4px;" href="'.$href_calendar.'" target="_self">'.$cday.'</a>';
if($cmonth == $month && $startdate != $todayDate)
$collectionDays[$startdate] = $cday;
}
//Correct the order :)
if(!empty($calendarEventsFuture))
ksort($calendarEventsFuture, SORT_NUMERIC);
}
//Add holidays into the day array?
if(!empty($show_birthdays)) {
$birthdays = $smcFunc['getBirthdays']($low_date, $high_date);
foreach($birthdays as $startdate => $birth) {
//This insert the today events if they exist
if($todayDate == $startdate)
$calendarDataToday['birthdays'] = $birth;
$cday = (int) substr($startdate,8,2);
//We must select between create or only show!
$href_calendar = $enableJavaScript ? '#day'.$cday.'" onclick="return '.$javascript_idFix.'selectCalendarDate(\'day'.$cday.'\');' : $month_href;
//Mixed color?
$text_color = !empty($days[$cday]) ? $color_text_items_mixed : $color_text_items_birthday;
$background_color = !empty($days[$cday]) ? $color_background_items_mixed : $color_background_items_birthday;
$days[$cday] = '<a class="smalltext" style="color: '.$text_color.'; font-weight: bold; background-color: '.$background_color.'; padding: 0px 4px 0px 4px;" href="'.$href_calendar.'" target="_self">'.$cday.'</a>';
if($startdate != $todayDate)
$collectionDays[$startdate] = $cday;
}
}
//Add holidays into the day array?
if(!empty($show_holidays)) {
$holidays = $smcFunc['getHolidays']($low_date, $high_date);
foreach($holidays as $startdate => $holiday) {
//This insert the today events if they exist
if($todayDate == $startdate)
$calendarDataToday['holidays'] = $holiday;
$cday = (int) substr($startdate,8,2);
//We must select between create or only show!
$text_color = !empty($days[$cday]) ? $color_text_items_mixed : $color_text_items_holiday;
$background_color = !empty($days[$cday]) ? $color_background_items_mixed : $color_background_items_holiday;
$href_calendar = $enableJavaScript ? '#day'.$cday.'" onclick="return '.$javascript_idFix.'selectCalendarDate(\'day'.$cday.'\');' : $month_href;
$days[$cday] = '<a class="smalltext" style="color: '.$text_color.'; font-weight: bold; background-color: '.$background_color.'; padding: 0px 4px 0px 4px;" href="'.$href_calendar.'" target="_self">'.$cday.'</a>';
if($startdate != $todayDate)
$collectionDays[$startdate] = $cday;
}
}

//So Todays it's an diffrent color :D
$href_calendar = $enableJavaScript ? '#today" onclick="return '.$javascript_idFix.'selectCalendarDate(\'today\');' : $month_href;
$days[$today] = '<a class="smalltext" style="color: '.$color_text_today.'; font-weight: bold; border: solid 1px black; background-color: '.$color_background_today.'; padding: 0px 4px 0px 4px;" href="'.$href_calendar.'" target="_self">'.$today.'</a>';

//Wellcome to the smf way of Day building with existing Language strings :D
$day_names = $txt['days'];
$day_names_short = $txt['days_short'];
//So lets see $firstday = 0 means sunday this is the first day :)
//if there is a higher number than i need to resort them
//negativ values can also be used :)
if(!empty($first_day)) {
if($first_day < 0)
$first_day = 7-(abs($first_day)%7);
else
$first_day = ($first_day%7);
}
if(!empty($first_day)) {
$old = $day_names;
$old_s = $day_names_short;
$day_names = array();
$day_names_short = array();
//Create the new day order :)
for($n=0; $n<7; $n++) {
$c = (($first_day+$n)%7);
$day_names[$n] = $old[$c];
$day_names_short[$n] = $old_s[$c];
}
}

list($month, $year, $weekday) = explode(',',gmstrftime('%m,%Y,%w',$first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; //adjust for $first_day
$title = $txt['months_titles'][$month].' '.$year;  //This is the SMF Text string, so it should be corrected for ut8 or iso

//Insert the Java Sciptfunction
if($enableJavaScript) {
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var '.$javascript_idFix.'current_block = "'.$javascript_idFix.'today";

function '.$javascript_idFix.'selectCalendarDate (day) {
var blockid = "'.$javascript_idFix.'" + day;
if(blockid == '.$javascript_idFix.'current_block) {
return false;
}
document.getElementById('.$javascript_idFix.'current_block).style.display = "none";
'.$javascript_idFix.'current_block = blockid + "";
document.getElementById(blockid).style.display = "block";
return false;
}
// ]]></script>';
}
/* Begin calendar. Uses a real <caption>. See http://diveintomark.org/archives/2002/07/03 */
$calendar = '
<table align="center" style="display:block; width:100%;" width="100%">
<caption>'.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title)."</caption>
<tr>";

//Show the weekday?
if($show_weeknumber)
$calendar .= '
<th class="smalltext" abbr="'.$txt['calendar51'].'">'.$txt['calendar51'].'</th>';

//Put out the Daynames :)
foreach($day_names as $k => $d)
$calendar .= '
<th class="smalltext" abbr="'.$d.'">'.(!empty($day_name_length) ? $d : $day_names_short[$k]).'</th>';
$calendar .= "
</tr>
<tr style=\"text-align:right;\">";

if($show_weeknumber)
$calendar .= '
<td class="smalltext" abbr="'.$txt['calendar51'].'" align="center"><span style="color:'.$color_text_week.'">'.gmdate('W', $first_of_month).'</span></td>';
if($weekday > 0) $calendar .= '
<td class="smalltext" colspan="'.$weekday.'"> </td>'; //initial 'empty' days
for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++){
if($weekday == 7){
$weekday   = 0; //start a new week
$calendar .= "
</tr>
<tr style=\"text-align:right;\">";
if($show_weeknumber)
$calendar .= '
<td class="smalltext" abbr="'.$txt['calendar51'].'" align="center"><span style="color:'.$color_text_week.'">'.gmdate('W', gmmktime(0,0,0, $month ,$day, $year)).'</span></td>';
}
if(isset($days[$day])){
$calendar .= '
<td>'.$days[$day].'</td>';
}
else
{
$href_calendar = $enableJavaScript ? '#none" onclick="return '.$javascript_idFix.'selectCalendarDate(\'none\');' : $month_href;
$calendar .= "
<td class=\"smalltext\" style=\"padding-right:4px;\"><a";
if(((($weekday+$first_day) % 7)==0))
{
$calendar .= ' style="color:'.$color_text_sunday.';"';
}
$calendar .= " href=\"".$href_calendar."\" target=\"_self\">$day</a></td>";
}
}
if($weekday != 7) $calendar .= '
<td class="smalltext" colspan="'.(7-$weekday).'"> </td>'; //remaining "empty" days

$calendar .= '
</tr>
</table>';
echo $calendar;

if(!empty($show_today)) {
echo '
<div style="display:block; width:100%;" align="center">';
if (!empty($calendarDataToday['events']) || !empty($calendarDataToday['birthdays']) || !empty($calendarDataToday['holidays']) || !empty($calendarEventsFuture)) {
//Standard Output :)
echo '
<table id="'.$javascript_idFix.'today" align="center" style="display:block; width:100%;">';
if(!empty($calendarDataToday['holidays'])){
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_holiday . ';">
<b>Holidays</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" style="width:100%;">';
echo implode('<br />', $calendarDataToday['holidays']);
echo '
</td>
</tr>';
}

if(!empty($calendarDataToday['birthdays'])){
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_birthday . ';">
<b>Birthdays</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" style="width:100%;">';
foreach( $calendarDataToday['birthdays'] as $member )
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['name'], isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', '<br />';
echo '
</td>
</tr>';
}

if(!empty($calendarDataToday['events']))
{
$dayOutput = str_replace(array('%y','%m','%d'), explode('-', $todayDate), $currentDateFormat);
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_event . ';">
<b>Events ('.$dayOutput.')</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" align="left" style="width:100%;">';
foreach ($calendarDataToday['events'] as $event)
{
if ($event['can_edit'])
echo '
<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ';
echo '
' . $event['link'] . '<br />';
}
echo '
</td>
</tr>';
}
if(!empty($calendarEventsFuture))
{
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_event . ';" style="width:100%;">
<b>Upcoming Events</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" align="left">';
foreach ($calendarEventsFuture as $startdate => $future_events)
{
//Okay tell the user the date of this even...
$dayOutput = str_replace(array('%y','%m','%d'), explode('-', $startdate), $currentDateFormat);
foreach($future_events as $event) {
if ($event['can_edit'])
echo '
<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ';
echo '
' . $dayOutput . ' ' . $event['link'] . '<br />';
}
}
echo '
</td>
</tr>';
}
echo '
</table>';
}
else
echo '
<table id="'.$javascript_idFix.'today" align="center" width="100%" style="display:block; width:100%;">
<tr>
<td>
No Entries Found.
</td>
</tr>
</table>';

//Okay Start he Java Script insert :)
if($enableJavaScript) {
//First the Table for none ;)
echo '
<table id="'.$javascript_idFix.'none" align="center" width="100%" style="display:none; width:100%;">
<tr>
<td class="smalltext">
No Entries Found.
</td>
</tr>
</table>';
foreach($collectionDays as $startdate => $day) {
echo '
<table id="'.$javascript_idFix.'day'.$day.'" align="center" width="100%" style="display:none; width:100%;">';
if(!empty($holidays[$startdate])){
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_holiday . ';">
<b>Holidays</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" style="width:100%;">';
echo implode('<br />', $holidays[$startdate]);
echo '
</td>
</tr>';
}
if(!empty($birthdays[$startdate])){
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_birthday . ';">
<b>Birthdays</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" style="width:100%;">';
foreach( $birthdays[$startdate] as $member )
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['name'], isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', '<br />';
echo '
</td>
</tr>';
}
if(!empty($events[$startdate]))
{
$dayOutput = str_replace(array('%y','%m','%d'), explode('-', $startdate), $currentDateFormat);
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_event . ';">
<b>Events ('.$dayOutput.')</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" align="left" style="width:100%;">';
foreach ($events[$startdate] as $event)
{
if ($event['can_edit'])
echo '
<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ';
echo '
' . $event['link'] . '<br />';
}
echo '
</td>
</tr>';
}
echo '
</table>';
}
}
echo '
</div>';
}
Title: Re: SimplePortal (2.1.1 Released!)
Post by: eledhel on January 21, 2009, 07:48:22 AM
Hi

I installed SP on my forum and it looks great, the only slight annoyance is that when you're in the forum and you click on a category instead of taking you back to the category header it throws you back to the front page

eg, looking in forum>community>games, if I then click to go back to community it takes me straight back to the front page

I've checked then unchecked everything in the admin, I have redirect to portal unchecked but it still happens

my site is www.insimenator.org if you need to see it as I've not explained it brilliantly!

thanks
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on January 21, 2009, 08:08:44 AM
aw06:

I have no idea about those codes and can't check right now. Would be glad if you can drop a post in the related topic on sp.net. I'll try to check it in a few days.

eledhel:

Welcome to SMF and SP eledhel!

That's a known issue and can be fixed easily. Have a look at the post here:

http://simpleportal.net/index.php?topic=1126.msg7858#msg7858
Title: Re: SimplePortal (2.1.1 Released!)
Post by: aw06 on January 21, 2009, 08:19:34 AM
Quote from: Blue Dream on January 21, 2009, 08:08:44 AM
aw06:

I have no idea about those codes and can't check right now. Would be glad if you can drop a post in the related topic on sp.net. I'll try to check it in a few days.

I did a few days ago
http://simpleportal.net/index.php?topic=1344.0
Title: Re: SimplePortal (2.1.1 Released!)
Post by: lepard on January 21, 2009, 04:43:10 PM
I get this error.
Table 'pulaskic_smf.sp_articles' doesn't exist
File: /home/pulaskic/public_html/smf/Packages/temp/install2.php
Line: 69

Quote from: Blue Dream on January 20, 2009, 04:52:04 PM
It is compatible. Installation just will fail on dropdown.css file, which you can ignore.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on January 21, 2009, 05:13:43 PM
OK folks,
Take this for what it's worth coming from somebody with about 4 days experience in anything having to do with PHP or adminning forums in general.

There have been issues from what I see with SP and the forum button in particular with many themes. I decided on a whim to change the extension on the index.template.php file for the "bright Forest" theme (so I could save a copy) and try something.

I opened it and the one from the default theme in Kate and copied the entire section, the whole shebang, dealing with the button bar or whatever it's called:

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' , $first , '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Show the [forum] button.
if(!empty($context['portalactive']))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</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>' : '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
</td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// The end of tab section.
echo '
<td class="maintab_' , $last , '">&nbsp;</td>
</tr>
</table>';


as seen here and pasted it over the entire matching section best as I could decipher in the one for Bright Forest. Lo and behold every single button showed up and the right color, the right size in the right place and works like a charm. It did however take the font from the default theme which is no issue for me. This was after a few other copy and paste adventures that didn't do so well ;)

Maybe this will help somebody else.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eclipse16V on January 22, 2009, 10:04:16 AM
Hi,

I have a problem with my SMF 1.1.7 and SP 2.1.1

After the Update it doesn´t view the right Blocks on the Portal Site.

Link: http://www.h0-welt.de
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on January 22, 2009, 11:15:15 AM
Anyone who reported a problem with the Anti-Bot Clock verification on SimplePortal.net's registration page should retry. This has been fixed now.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on January 22, 2009, 12:12:35 PM
Quote from: lepard on January 21, 2009, 04:43:10 PM
I get this error.
Table 'pulaskic_smf.sp_articles' doesn't exist
File: /home/pulaskic/public_html/smf/Packages/temp/install2.php
Line: 69

Quote from: Blue Dream on January 20, 2009, 04:52:04 PM
It is compatible. Installation just will fail on dropdown.css file, which you can ignore.

Have you installed SP before? Can you check if you have that table in your database?

Quote from: Eclipse16V on January 22, 2009, 10:04:16 AM
Hi,

I have a problem with my SMF 1.1.7 and SP 2.1.1

After the Update it doesn´t view the right Blocks on the Portal Site.

Link: http://www.h0-welt.de

This issue was reported by a few people too. But it is rare and I'm unable to reproduce it. I'd be glad if you can help me with debugging.

You can do that by adding this line to your Settings.php file:

$db_show_debug = true;

and providing me an admin account to check it.

Of course, if you want to...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: lepard on January 22, 2009, 01:08:08 PM
Upgraded to Simple Machines 2.0 RC1
-After installing SMF 2.0 RC1, when reinstalling the simple portal package(v. 2.1.1),  SP's 'install2.php' script did not take into consideration whether or not the simple portal tables already existed.  I had to rename the 4 simple portal tables already present and remove the table prefix for the install to work. An upgrade would go more seamlessly if the install script included a function for whether the tables exist or not and whether to create or use the current tables. Just a suggestion. Then again I understand this isn't released in the current version. Kudos to you MOD, I love it. You Rock! www.pulaskicountyweb.com/smf Your mod gave me ideas that have improved my whole site since now we have news feeds throughout. Thanks..


Quote from: Blue Dream on January 22, 2009, 12:12:35 PM
Quote from: lepard on January 21, 2009, 04:43:10 PM
I get this error.
Table 'pulaskic_smf.sp_articles' doesn't exist
File: /home/pulaskic/public_html/smf/Packages/temp/install2.php
Line: 69

Quote from: Blue Dream on January 20, 2009, 04:52:04 PM
It is compatible. Installation just will fail on dropdown.css file, which you can ignore.

Have you installed SP before? Can you check if you have that table in your database?

Quote from: Eclipse16V on January 22, 2009, 10:04:16 AM
Hi,

I have a problem with my SMF 1.1.7 and SP 2.1.1

After the Update it doesn´t view the right Blocks on the Portal Site.

Link: http://www.h0-welt.de

This issue was reported by a few people too. But it is rare and I'm unable to reproduce it. I'd be glad if you can help me with debugging.

You can do that by adding this line to your Settings.php file:

$db_show_debug = true;

and providing me an admin account to check it.

Of course, if you want to...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on January 22, 2009, 01:14:55 PM
I haven't checked, though I guess it is related to this bug:

Bug #2963: 'update', 'overwrite', and 'update_remove'  option for 'if_exists' on db_create_table function fails (http://dev.simplemachines.org/mantis/view.php?id=2963)

We are planning a better upgrade/install script for next version of SP.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: lepard on January 22, 2009, 01:30:34 PM
Again Thanks, you guys make me look like I know my stuff.. Shh don't tell people I am a novice..

Quote from: Blue Dream on January 22, 2009, 01:14:55 PM
I haven't checked, though I guess it is related to this bug:

Bug #2963: 'update', 'overwrite', and 'update_remove'  option for 'if_exists' on db_create_table function fails (http://dev.simplemachines.org/mantis/view.php?id=2963)

We are planning a better upgrade/install script for next version of SP.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: IndigoStar on January 22, 2009, 03:04:25 PM
A SMF newbie

Does the portal page take on the custom theme of the forum ?

Also how easy is it to add articles is it pulled from a forum ?

Thanks
Title: Re: SimplePortal (2.1.1 Released!)
Post by: lepard on January 22, 2009, 03:09:23 PM
Yes it takes on the theme, and it is very easy to add articles from the forum.

Quote from: IndigoStar on January 22, 2009, 03:04:25 PM
A SMF newbie

Does the portal page take on the custom theme of the forum ?

Also how easy is it to add articles is it pulled from a forum ?

Thanks
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eclipse16V on January 22, 2009, 04:09:30 PM
Debug is On.


QuoteTemplates: 3: index (babylon), SPortalBlocks1-1 (default), SPortal1-1 (default).
Sub templates: 5: init, main_above, portal_above, main, main_below.
Language files: 5: index.german (default), Modifications.german (default), SPortal.german (default), Stats.german (default), Stats.german (default).
Files included: 14 - 709KB. (show./index.php, ./Settings.php, ./Sources/QueryString.php, ./Sources/Subs.php, ./Sources/Errors.php, ./Sources/Load.php, ./Sources/Security.php, ./Sources/SPortal1-1.php, ./Sources/LoadPages.php, ./Sources/LoadAds.php, ./Sources/Subs-SPortal1-1.php, ./Sources/Subs-Aeva.php, ./Sources/Calendar.php, ./Sources/Subs-Aeva-Sites.php)
Queries used: 52.

[show queries]

When i put </td></tr></table> in the index.template.php bevor the PHP Buttons on the footer, the footer error is away but the right block you can´t see.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: IndigoStar on January 22, 2009, 04:26:25 PM
Thanks for the reply

Can the blocks be choosen so they don't appear on the forum page ? Just want them to be on the homepage

I know you must edit something on the custom theme how easy is that and anyone got any advice on how to do this please much appreciated

Star
Title: Re: SimplePortal (2.1.1 Released!)
Post by: ディン1031 on January 22, 2009, 05:30:30 PM
Quote from: aw06 on January 21, 2009, 07:18:52 AM
Yeah, i have a php calender block .. im almost sure its responsible ..

/*
Calender DIN1031 Version 11-11-2008-1

Please update to the latest Version of this php block... i post a link to you on simpleportal.net ;). (Sorry for my late answer...).
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on January 22, 2009, 05:31:57 PM
Quote from: Eclipse16V on January 22, 2009, 10:04:16 AM
Hi,

I have a problem with my SMF 1.1.7 and SP 2.1.1

After the Update it doesn´t view the right Blocks on the Portal Site.

Link: http://www.h0-welt.de

I also have had this problem and I was told to delete 2.1.1 and re-install 2.0.5 until they have this issue resolved. Is this now changed??
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on January 23, 2009, 01:47:39 PM
Uninstalled 2.1.1 and reinstalled 2.0.5 and it works perfect. Must be an issue in 2.1.1.

Thanks!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eclipse16V on January 23, 2009, 02:09:21 PM
OK
I uninstall the SP 2.1.1 and look at an other Portal.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on January 23, 2009, 02:51:41 PM
Sorry if this has been asked but I could not find it anywhere

SMF 1.1.7
SP 2.0.5

When a member wants to change their look and pick a different template it changes it everywhere but the home page of the portal. Is there a way to change this when they want to change their template?

Thanks in advance!!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: eledhel on January 25, 2009, 02:48:03 AM
Quote from: Blue Dream on January 21, 2009, 08:08:44 AM
eledhel:

Welcome to SMF and SP eledhel!

That's a known issue and can be fixed easily. Have a look at the post here:

http://simpleportal.net/index.php?topic=1126.msg7858#msg7858

thanks v much for the welcome and the help, much appreciated :D

(even if my eyes are goggling at reading so much code trying to figure out where to put the fix!!)
Title: Just not working
Post by: PerryM on January 25, 2009, 06:49:10 PM
Set up new 2.0 Beta 4 with NOTHING else added.

Uploaded Portamx 0.951 and all went fine.

See your front page and want to add my own.

Go to Block Manager and open Welcome page - its empty and no matter what I put in it the same old front page displays.

Added a new HTML block to the front page - same thing.  I see an empty block and when I try to edit it the result is the same - it saves blanks.

I guess this portal is not ready for actual use;  too bad it looked neat.

Can anyone help?

Thanks
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Rocko444 on January 25, 2009, 10:54:31 PM
Am using this, Works well. Good work!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LaughOften on January 26, 2009, 01:05:24 PM
Quote from: LaughOften on January 23, 2009, 02:51:41 PM
Sorry if this has been asked but I could not find it anywhere

SMF 1.1.7
SP 2.0.5

When a member wants to change their look and pick a different template it changes it everywhere but the home page of the portal. Is there a way to change this when they want to change their template?

Thanks in advance!!

Can anyone help with this?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: learjet45 on January 28, 2009, 05:47:10 PM
Do you mean that if they do something like choose a new theme, it doesn't change on the portal?
If so, the portal needs to be set to show the theme "Forum Default". That should fix it.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on January 28, 2009, 09:48:15 PM
Is it possible to set certain blocks so that they're collapsed by default? In other words when the page loads some, but not all are collapsed and users must expand tham to see what they are?
Thanks
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Wkr on January 29, 2009, 06:59:07 AM
I have installed SMF 1.1.7 + Simple Portal 2.1.1

I have a problem with the block RSS. To take the feed a wordpress with utf-8 in Spanish language the charset is displayed incorrectly.

Can you help me?

Thanks
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on January 30, 2009, 11:22:03 PM
Sorry if this was answered before. Is it possible to make the latest member block have more than 1? (2.0b4)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Sudhakar Arjunan on January 31, 2009, 06:00:40 PM
I have tried to disable the simple portal.

And found that the forum button is invisible.

So the drop downs i have created under forum button were vanished.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: LOVELORD on January 31, 2009, 08:01:21 PM
I have  a problem with SP.... Need a table in mysql???

What table i must insert into the tabe, when i create a teble in mysql?

Error message is this:

Table 'balkandd_iis.iis_sp_blocks' doesn't exist
File: /home/balkandd/public_html/iis/Sources/Subs-SPortal1-1.php
Line: 44

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: aw06 on January 31, 2009, 08:48:57 PM
seeing these errors in my logs ..

Using SP 2.1 with SMF 1.1.7
Quote8: Undefined index: block_info
File: /home/xxxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 382

Quote8: Undefined index: sp-forum
File: /home/xxxxx/public_html/forum/Themes/default/Login.template.php (eval?)
Line: 329

Quote8: Undefined index: DESCRIPTION
File: /home/xxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 2222

Quote8: Undefined index: LINK
File: /home/xxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 2221

Quote8: Undefined index: TITLE
File: /home/xxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 2221

Quote8: Undefined index: sp-forum
File: /home/xxxxx/public_html/forum/Themes/default/Login.template.php (eval?)
Line: 329
Title: Re: SimplePortal (2.1.1 Released!)
Post by: nomnomfish on February 01, 2009, 12:37:07 PM
i am using simpleportal.
is there any way to change the width of the boards so i do not have to scroll when viewing 1024x768 rez?
i noticed that i can change the width of the left and right blocks, but not the top blocks or the boards.
any help would be appreciated.  :)
thanks

btw, if you would like to see my site, its: http://swampratracing.com/forum (http://swampratracing.com/forum)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: B.SkiLLs on February 02, 2009, 05:43:15 PM
Can somebody help me out with this issue and see what maybe they think it might be coming from.

Weird errors help (http://www.simplemachines.org/community/index.php?topic=287313.msg1888263#msg1888263)

Sorry i happen to post it there in the admin support even tho it had the sp_forum info in the errors (if you read that thread you will see why i did and posted there but)

Thanks

Title: Re: SimplePortal (2.1.1 Released!)
Post by: vivithemage on February 04, 2009, 11:49:40 AM
is there an automatic installation, or is it only manual?

I am installing for 1.1.7...there is no readme file in that download, so I am kind of lost...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 04, 2009, 03:22:27 PM
LOVELORD:

Run this query from phpMyAdmin:

CREATE TABLE IF NOT EXISTS `smf_sp_articles` (
  `ID_ARTICLE` int(10) NOT NULL auto_increment,
  `ID_CATEGORY` int(10) NOT NULL default '0',
  `ID_MESSAGE` int(10) NOT NULL default '0',
  `approved` tinyint(2) NOT NULL default '0',
  PRIMARY KEY  (`ID_ARTICLE`)
) ENGINE=MyISAM ;

CREATE TABLE IF NOT EXISTS `smf_sp_blocks` (
  `ID_BLOCK` int(10) unsigned NOT NULL auto_increment,
  `label` tinytext NOT NULL,
  `type` text NOT NULL,
  `content` text NOT NULL,
  `parameters` tinytext NOT NULL,
  `col` tinyint(4) unsigned NOT NULL default '0',
  `row` tinyint(4) unsigned NOT NULL default '0',
  `state` tinyint(4) NOT NULL default '1',
  `allowed_groups` text NOT NULL,
  `force_view` tinyint(2) unsigned NOT NULL default '0',
  `permission_type` tinyint(2) unsigned NOT NULL default '0',
  `display` text NOT NULL,
  PRIMARY KEY  (`ID_BLOCK`)
) ENGINE=MyISAM ;

CREATE TABLE IF NOT EXISTS `smf_sp_categories` (
  `ID_CATEGORY` int(10) unsigned NOT NULL auto_increment,
  `name` tinytext NOT NULL,
  `picture` tinytext NOT NULL,
  `articles` tinyint(4) NOT NULL default '0',
  `publish` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`ID_CATEGORY`)
) ENGINE=MyISAM ;

CREATE TABLE IF NOT EXISTS `smf_sp_functions` (
  `ID_FUNCTION` tinyint(4) NOT NULL auto_increment,
  `name` tinytext NOT NULL,
  `parameter` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`ID_FUNCTION`)
) ENGINE=MyISAM ;

INSERT INTO `smf_sp_functions` (`ID_FUNCTION`, `name`, `parameter`) VALUES
(18, 'sp_php', 0),
(17, 'sp_html', 0),
(16, 'sp_smfGallery', 1),
(15, 'sp_smfArcade', 1),
(14, 'sp_smfShop', 0),
(13, 'sp_news', 0),
(12, 'sp_boardNews', 5),
(11, 'sp_recentTopics', 1),
(10, 'sp_recentPosts', 1),
(9, 'sp_topTopics', 2),
(8, 'sp_topBoards', 1),
(7, 'sp_topPoster', 1),
(6, 'sp_quickSearch', 0),
(5, 'sp_boardStats', 0),
(4, 'sp_showPoll', 1),
(3, 'sp_whosOnline', 0),
(2, 'sp_latestMember', 0),
(1, 'sp_userInfo', 0),
(19, 'sp_bbc', 0),
(20, 'sp_attachmentImage', 1),
(21, 'sp_attachmentRecent', 1),
(22, 'sp_mgallery', 2),
(23, 'sp_recent', 2),
(24, 'sp_calendarInformation', 4),
(25, 'sp_rssFeed', 1);


rsanchez78118:

../Themes/BlackRainV2/style.css

Find:
1090

Replace:

820

B.SkiLLs:

That's a hard to figure out bug, but let's try this:

SPortal1-1.php

Find:

// Why bother for wireless? Its not worth it. ;D
if(WIRELESS)
return;

$sportal_version = '2.1.1';

$context['page_title'] = $context['forum_name'];
$context['portalactive'] = !empty($modSettings['portalactive']);

require_once($sourcedir . '/Subs-SPortal1-1.php');

//Why not? We need it anyway 8)
if(loadLanguage('SPortal', '', false) === false)
loadLanguage('SPortal', 'english', false);


Replace:

$sportal_version = '2.1.1';

$context['page_title'] = $context['forum_name'];
$context['portalactive'] = !empty($modSettings['portalactive']);

require_once($sourcedir . '/Subs-SPortal1-1.php');

//Why not? We need it anyway 8)
if(loadLanguage('SPortal', '', false) === false)
loadLanguage('SPortal', 'english', false);

// Why bother for wireless? Its not worth it. ;D
if(WIRELESS)
return;


vivithemage:

There is the package. Just install it using your Package Manager.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: BOS4O on February 04, 2009, 03:31:59 PM
Quote from: BOS4O on January 07, 2009, 07:36:43 PM
hi,
hot to add this code in one php block in the simple portal

this is the code for random images from the SMF Media Gallery

// Random items?
if(!empty($context['random_items'])) {
echo '
<div class="catbg item_heading">',$txt['mgallery_random_items'],'</div>
<div id="random_pics">
<ul id="pics">';
foreach($context['random_items'] as $i) {
echo '
<li class="windowbg smalltext">
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'">',$i['item_title'],'</a><br />
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'"><img alt="" src="',$galurl,'sa=getmedia;id=',$i['id_thumb'],'" /></a><br />
',$txt['mgallery_views'],' : ',$i['views'],'<br />
',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$i['member_id'],'">',$i['member_name'],'</a><br />
',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$i['id_album'],'">',$i['album_name'],'</a>
',$i['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
</li>';
}
echo '</ul>
</div>
<br style="clear: left;" />';
}


and these are the includes

global $context, $mgalSettings, $txt, $galurl, $galurl2, $scripturl, $settings;

when i try to add something like that

global $context, $mgalSettings, $txt, $galurl, $galurl2, $scripturl, $settings;
// Random items?
if(!empty($context['random_items'])) {
echo '
<div class="catbg item_heading">',$txt['mgallery_random_items'],'</div>
<div id="random_pics">
<ul id="pics">';
foreach($context['random_items'] as $i) {
echo '
<li class="windowbg smalltext">
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'">',$i['item_title'],'</a><br />
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'"><img alt="" src="',$galurl,'sa=getmedia;id=',$i['id_thumb'],'" /></a><br />
',$txt['mgallery_views'],' : ',$i['views'],'<br />
',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$i['member_id'],'">',$i['member_name'],'</a><br />
',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$i['id_album'],'">',$i['album_name'],'</a>
',$i['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
</li>';
}
echo '</ul>
</div>
<br style="clear: left;" />';
}
echo '
</div>';
?>


this is my forum http://lfs-bg.net

--------------------------

when making a new table for the smf gallery is tells me

Table 'bos4o_smf.smf_gallery_pic' doesn't exist
File: /www/hostrator.com/b/o/s/bos4o/htdocs/Sources/SPortal.php
Line: 1357

it needs to be bos4o_smf_gallery_pic how to fix it?
it tells me a error like that for the smf shop too
i need to remove the one smf from this here
bos4o_smf.smf_gallery_pic
how?  :(

Title: Re: SimplePortal (2.1.1 Released!)
Post by: vivithemage on February 04, 2009, 03:38:50 PM
thanks!!!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 04, 2009, 03:39:35 PM
BOS4O:

Do you have a kind of gallery mod installed on your forum? If yes, which is that?

vivithemage:

Thanks for you too, for using SimplePortal.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: flamechica on February 04, 2009, 04:31:20 PM
HELP PLEASE! I am freaking out. I have SP and I was trying to put a gallery block at the bottom center of my forum. I got an error saying my database was 1.1.6 and my forum was 1.1.7 so, I figured out how to fix that, but then I was still getting an error saying I needed to update my mysql, so I sent off an email to to my server to try to get that straightened out. So, I figured this was no big deal and that I would leave the gallery block on my forum with the error message, that it shouldn't hurt nothing. However, I had noticed that since I had added the gallery block to the bottom center that my 2 blocks that I had put on the right side of the page had disappeared. I thought well, maybe I can adjust the position of the bottom center one to the left a bit. So, I went into the admin panel and was looking at the "Block List" page and noticed the little left and right arrows. So, I clicked the left one. Once I did that it messed everything up. Now, if I try to get into my forum all I get is one big white blank page.

Please, Please say you can help. I really don't want to have to start over, I have put so much work and time into this already.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: BOS4O on February 04, 2009, 05:15:30 PM
Quote from: Blue Dream on February 04, 2009, 03:39:35 PM
BOS4O:

Do you have a kind of gallery mod installed on your forum? If yes, which is that?

vivithemage:

Thanks for you too, for using SimplePortal.

yes, i have the " SMF Media Gallery © SMF-Media.com "
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on February 05, 2009, 04:36:47 PM
Am I correct in assuming that SP is not ready for SMF 2 RC1?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: nomnomfish on February 05, 2009, 07:16:56 PM
Quote from: Blue Dream on February 04, 2009, 03:22:27 PM
LOVELORD:

Run this query from phpMyAdmin:

CREATE TABLE IF NOT EXISTS `smf_sp_articles` (
  `ID_ARTICLE` int(10) NOT NULL auto_increment,
  `ID_CATEGORY` int(10) NOT NULL default '0',
  `ID_MESSAGE` int(10) NOT NULL default '0',
  `approved` tinyint(2) NOT NULL default '0',
  PRIMARY KEY  (`ID_ARTICLE`)
) ENGINE=MyISAM ;

CREATE TABLE IF NOT EXISTS `smf_sp_blocks` (
  `ID_BLOCK` int(10) unsigned NOT NULL auto_increment,
  `label` tinytext NOT NULL,
  `type` text NOT NULL,
  `content` text NOT NULL,
  `parameters` tinytext NOT NULL,
  `col` tinyint(4) unsigned NOT NULL default '0',
  `row` tinyint(4) unsigned NOT NULL default '0',
  `state` tinyint(4) NOT NULL default '1',
  `allowed_groups` text NOT NULL,
  `force_view` tinyint(2) unsigned NOT NULL default '0',
  `permission_type` tinyint(2) unsigned NOT NULL default '0',
  `display` text NOT NULL,
  PRIMARY KEY  (`ID_BLOCK`)
) ENGINE=MyISAM ;

CREATE TABLE IF NOT EXISTS `smf_sp_categories` (
  `ID_CATEGORY` int(10) unsigned NOT NULL auto_increment,
  `name` tinytext NOT NULL,
  `picture` tinytext NOT NULL,
  `articles` tinyint(4) NOT NULL default '0',
  `publish` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`ID_CATEGORY`)
) ENGINE=MyISAM ;

CREATE TABLE IF NOT EXISTS `smf_sp_functions` (
  `ID_FUNCTION` tinyint(4) NOT NULL auto_increment,
  `name` tinytext NOT NULL,
  `parameter` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`ID_FUNCTION`)
) ENGINE=MyISAM ;

INSERT INTO `smf_sp_functions` (`ID_FUNCTION`, `name`, `parameter`) VALUES
(18, 'sp_php', 0),
(17, 'sp_html', 0),
(16, 'sp_smfGallery', 1),
(15, 'sp_smfArcade', 1),
(14, 'sp_smfShop', 0),
(13, 'sp_news', 0),
(12, 'sp_boardNews', 5),
(11, 'sp_recentTopics', 1),
(10, 'sp_recentPosts', 1),
(9, 'sp_topTopics', 2),
(8, 'sp_topBoards', 1),
(7, 'sp_topPoster', 1),
(6, 'sp_quickSearch', 0),
(5, 'sp_boardStats', 0),
(4, 'sp_showPoll', 1),
(3, 'sp_whosOnline', 0),
(2, 'sp_latestMember', 0),
(1, 'sp_userInfo', 0),
(19, 'sp_bbc', 0),
(20, 'sp_attachmentImage', 1),
(21, 'sp_attachmentRecent', 1),
(22, 'sp_mgallery', 2),
(23, 'sp_recent', 2),
(24, 'sp_calendarInformation', 4),
(25, 'sp_rssFeed', 1);


rsanchez78118:

../Themes/BlackRainV2/style.css

Find:
1090

Replace:

820

B.SkiLLs:

That's a hard to figure out bug, but let's try this:

SPortal1-1.php

Find:

// Why bother for wireless? Its not worth it. ;D
if(WIRELESS)
return;

$sportal_version = '2.1.1';

$context['page_title'] = $context['forum_name'];
$context['portalactive'] = !empty($modSettings['portalactive']);

require_once($sourcedir . '/Subs-SPortal1-1.php');

//Why not? We need it anyway 8)
if(loadLanguage('SPortal', '', false) === false)
loadLanguage('SPortal', 'english', false);


Replace:

$sportal_version = '2.1.1';

$context['page_title'] = $context['forum_name'];
$context['portalactive'] = !empty($modSettings['portalactive']);

require_once($sourcedir . '/Subs-SPortal1-1.php');

//Why not? We need it anyway 8)
if(loadLanguage('SPortal', '', false) === false)
loadLanguage('SPortal', 'english', false);

// Why bother for wireless? Its not worth it. ;D
if(WIRELESS)
return;


vivithemage:

There is the package. Just install it using your Package Manager.

thanks for your response blue dream, but i have already tried that. that adjusts the forum width to 820, but not the image i have on top, which is 1065x88. the image ends up going over the right side. is there any way for the image to automatically adjust based on who is viewing it? or do i have to make a new one?

i would just change it to an 820px width like u suggested, but i dont have enough space because then the right blocks go over the side.  >:(

thanks  :D
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on February 05, 2009, 07:22:35 PM
Quote from: Tiribulus on February 05, 2009, 04:36:47 PM
Am I correct in assuming that SP is not ready for SMF 2 RC1?

It's OK as far as I can tell. If you're running it on b4 and are going to upgrade, I would suggest uninstalling it before the upgrade, the reinstalling it after. (that goes for all mods)

I have it running on a site with RC1 running as well.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on February 05, 2009, 09:39:16 PM
Quote from: KahneFan on February 05, 2009, 07:22:35 PM
Quote from: Tiribulus on February 05, 2009, 04:36:47 PM
Am I correct in assuming that SP is not ready for SMF 2 RC1?

It's OK as far as I can tell. If you're running it on b4 and are going to upgrade, I would suggest uninstalling it before the upgrade, the reinstalling it after. (that goes for all mods)

I have it running on a site with RC1 running as well.

I'm getting this:

*     16.     Execute Modification     ./Themes/default/css/dropmenu.css     Test failed
      1.    Replace    ./Themes/default/css/dropmenu.css    Test failed

The line it's telling me to replace in dropmenu.css doesn't exist
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Lamarck on February 06, 2009, 10:57:17 PM
I have a problem: I updated to RC1 (before,I uninstalled simpleportal).Now,when I install it,I get a db error.Even with that error,SP installs fine BUT the problem is that it keeps appearing as not installed in the package list so I can't uninstall/upgrade or whatever.
Any help?
Title: Re: SimplePortal (2.1.1 Released!) not compatible with 2.0 RC1
Post by: PerryM on February 07, 2009, 02:20:37 PM
2.1.1 is not compatible with smf 2.0 RC1.

Brand new install gives the following error when SimplePortal is  Apply Mod to install:

16 ./Themes/default/css/dropmenu.css test failed


Absolutely nothing else installed.

Can't live without SimplePortal!!!

Thanks for a super module.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: navjotjsingh on February 07, 2009, 02:34:22 PM
One more error for fresh install on 2.0 RC1:


10.  Execute Modification  ./Sources/Subs.php  Test failed
1. Replace ./Sources/Subs.php Test successful
2. Replace ./Sources/Subs.php Test successful
3. Replace ./Sources/Subs.php Test failed
4. Replace ./Sources/Subs.php Test successful
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 07, 2009, 03:10:51 PM
dropmenu.css edit is okay to ignore.

----

It does not fail in Subs.php. There should be a problem with your files, as I myself have installed it more than 10 times in the last two days. Which edit is that?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on February 07, 2009, 03:47:22 PM
For some reason I am having no end of woe. Ignoring the dropmenu thing gets me this:

Database Error
Table 'smf2.sp_articles' doesn't exist
File: /srv/www/htdocs/forum1/Packages/temp/install2.php
Line: 50

and it doesn't install.

Maybe I should delete the folder and database and start over. This is a totally beta forum anyway.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 07, 2009, 03:48:47 PM
Quote from: Tiribulus on February 07, 2009, 03:47:22 PM
For some reason I am having no end of woe. Ignoring the dropmenu thing gets me this:

Database Error
Table 'smf2.sp_articles' doesn't exist
File: /srv/www/htdocs/forum1/Packages/temp/install2.php
Line: 50

and it doesn't install.

Maybe I should delete the folder and database and start over. This is a totally beta forum anyway.

That's because you already have those tables on your database. Removing those tables from your database or the install script inside the package should do it. That's a known issue about SMF database functions.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on February 07, 2009, 04:08:40 PM
Quote from: Blue Dream on February 07, 2009, 03:48:47 PM
Quote from: Tiribulus on February 07, 2009, 03:47:22 PM
For some reason I am having no end of woe. Ignoring the dropmenu thing gets me this:

Database Error
Table 'smf2.sp_articles' doesn't exist
File: /srv/www/htdocs/forum1/Packages/temp/install2.php
Line: 50

and it doesn't install.

Maybe I should delete the folder and database and start over. This is a totally beta forum anyway.

That's because you already have those tables on your database. Removing those tables from your database or the install script inside the package should do it. That's a known issue about SMF database functions.

The error says that table doesn't exist, you're it's because it DOES already exist? I'm definitely not arguing, just trying to understand. When I search for that table in the DB I get no results.

As for the install script, are you saying to remove this:

// Finally create the Articles table.
$smcFunc['db_create_table']('sp_articles', $columns, $indexes, array(), 'update_remove');

// Set up the columns for the Blocks Table
$columns = array(
array(
'name' => 'id_block',
'type' => 'int',
'size' => '10',
'auto' => true,
),
array(
'name' => 'label',
'type' => 'tinytext',
),
array(
'name' => 'type',
'type' => 'text',
),
array(
'name' => 'content',
'type' => 'text',
),
array(
'name' => 'parameters',
'type' => 'tinytext',
),
array(
'name' => 'col',
'type' => 'tinyint',
'size' => '4',
'default' => 0,
),
array(
'name' => 'row',
'type' => 'tinyint',
'size' => '4',
'default' => 0,
),
array(
'name' => 'state',
'type' => 'tinyint',
'size' => '4',
'default' => 1,
),
array(
'name' => 'allowed_groups',
'type' => 'text',
'size' => '4',
),
array(
'name' => 'force_view',
'type' => 'tinyint',
'size' => '2',
'default' => 0,
),
array(
'name' => 'permission_type',
'type' => 'tinyint',
'size' => '2',
'default' => 0,
),
array(
'name' => 'display',
'type' => 'text',
),
);


?

Thanks BTW.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on February 07, 2009, 04:14:17 PM
PerryM, I received the same error, but as BD says, it's OK to skip it, it still runs fine.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: PerryM on February 07, 2009, 04:18:46 PM
Quote from: KahneFan on February 07, 2009, 04:14:17 PM
PerryM, I received the same error, but as BD says, it's OK to skip it, it still runs fine.

Yea, I'm up and running.  Thanks for the concern, I appreciate it.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 07, 2009, 04:22:26 PM
Quote from: Tiribulus on February 07, 2009, 04:08:40 PM
The error says that table doesn't exist, you're it's because it DOES already exist? I'm definitely not arguing, just trying to understand. When I search for that table in the DB I get no results.

Yeah, I'm pretty sure that they exists (Error doesn't say that, I know). Have you checked smf_sp_articles ({your_db_prefix}sp_articles) table?

Extract package; remove install2.php file; pack it up again; use that package.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: PerryM on February 07, 2009, 04:37:39 PM
I have upgraded my smf to 2.0 RC1 now and everything looks fine.

However I have a post that I added to my front page on SimplePortal and now want to remove it from that page - I don't see how to do this.

I never did it on Beta 4 so I'm assuming its not a bug but just how do I remove the post (not the real post) from the front page?

I got it on the front page by clicking "Add and Article" on the post - it should have changed to "Remove this Article" to make it easy.

Thanks,
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 07, 2009, 04:48:46 PM
You can manage your articles from

Admin CP >> SimplePortal >> Articles

area.

Quote from: PerryM on February 07, 2009, 04:37:39 PMI got it on the front page by clicking "Add and Article" on the post - it should have changed to "Remove this Article" to make it easy.

and yeah, a good idea. Thanks, noted.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: PerryM on February 07, 2009, 04:53:28 PM
Quote from: Blue Dream on February 07, 2009, 04:48:46 PM
You can manage your articles from

Admin CP >> SimplePortal >> Articles

area.

Quote from: PerryM on February 07, 2009, 04:37:39 PMI got it on the front page by clicking "Add and Article" on the post - it should have changed to "Remove this Article" to make it easy.

and yeah, a good idea. Thanks, noted.

I've been there and I see no articles to delete.  It seems to bring me to the Articles Module which is independent of your module.  I've never added an article in that system.

I'm stumped...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on February 07, 2009, 04:56:50 PM
Quote from: Blue Dream on February 07, 2009, 04:22:26 PM
Quote from: Tiribulus on February 07, 2009, 04:08:40 PM
The error says that table doesn't exist, you're it's because it DOES already exist? I'm definitely not arguing, just trying to understand. When I search for that table in the DB I get no results.

Yeah, I'm pretty sure that they exists (Error doesn't say that, I know). Have you checked smf_sp_articles ({your_db_prefix}sp_articles) table?

Extract package; remove install2.php file; pack it up again; use that package.

You're right the table is there. I'm using Webmin on a Linux box for this and I must have misspelled the table name before, but manually looking through  the tables I see it there. However, running the installer without install2.php, ignoring the dropmenu.css error got me a blank white browser display and then going back into packages shows nothing installed. This isn't any kind of emergency as this forum is just for me to eventually get used to 2.0. I do appreciate your help though.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 07, 2009, 04:59:28 PM
Quote from: PerryM on February 07, 2009, 04:53:28 PM
I've been there and I see no articles to delete.  It seems to bring me to the Articles Module which is independent of your module.  I've never added an article in that system.

I'm stumped...

I guess you have a mod using the same admin area. Can you link to the mod?

Quote from: Tiribulus on February 07, 2009, 04:56:50 PM
You're right the table is there. I'm using Webmin on a Linux box for this and I must have misspelled the table name before, but manually looking through  the tables I see it there. However, running the installer without install2.php, ignoring the dropmenu.css error got me a blank white browser display and then going back into packages shows nothing installed. This isn't any kind of emergency as this forum is just for me to eventually get used to 2.0. I do appreciate your help though.

Looks like it didn't like file not being there. Would you try the attached package?

Title: Re: SimplePortal (2.1.1 Released!)
Post by: PerryM on February 07, 2009, 05:05:06 PM
I have SMF Articles installed and it seems to have some problems - won't install in RC1. 

I went back to  backups and brought up Beta 4 again and then tried to uninstall SMF Articles and got this error message:

5. Execute Modification ./Sources/Admin.php Test failed
  1. Replace ./Sources/Admin.php Test failed

6. Execute Modification ./Sources/Subs.php Test failed
  1. Replace ./Sources/Subs.php Test failed
  2. Replace ./Sources/Subs.php Test failed

7. Execute Modification ./Sources/ManagePermissions.php Test failed
  1. Replace ./Sources/ManagePermissions.php Test failed
  2. Replace ./Sources/ManagePermissions.php Test failed

8. Delete File ./Sources/Articles2.php

I'm guessing there is a conflict between the two modules?

Yes there is a conflict.

On a brand new install of just RC1 and SimplePortal I get a totally different "article List" and "Add Article" then if SMF Articles is installed.

I'm ok, no big deal.  But there is a conflict.

P.S.
Now that I see your "Article List" page I see how to remove an article.  Is there a way to change the order of the articles?

Thanks,
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on February 07, 2009, 05:15:06 PM
Quote from: Blue Dream on February 07, 2009, 04:59:28 PM
. Would you try the attached package?

It looks like that worked with the only weirdness being the copyright stuff kinda stacked on the bottom. What did you wind up doing if you don't mind my asking?
Thanks
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 07, 2009, 05:18:15 PM
PerryM:

Thanks for informing. Looks like we will be changing a lot with the new version.

Tiribulus:

Just removed this code from package_info.xml:

<code>install2.php</code>

That code was there to run the install script, you know what would happen when you remove it.

And for copyright, press Ctrl+F5 and that should fix it. Mod makes a change in style.css, which is cached by the browser and hard refresh would make it turn into normal. Fixed that in the next version FYI.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on February 07, 2009, 06:13:06 PM
Quote from: Blue Dream on February 07, 2009, 05:18:15 PM
<<< Tiribulus:

Just removed this code from package_info.xml:

<code>install2.php</code>

That code was there to run the install script, you know what would happen when you remove it.

And for copyright, press Ctrl+F5 and that should fix it. Mod makes a change in style.css, which is cached by the browser and hard refresh would make it turn into normal. Fixed that in the next version FYI.

You're a scary dude 8)
Thanks

Man I wish I would have started fiddling with this stuff years ago.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: edemars on February 09, 2009, 06:44:15 AM
I suppose I can do this manually, but with Package Manager I get this:

SMF 2.0 RC1
SimplePortal 2.1.1


Quote
11.     Execute Modification     ./Sources/Admin.php     Test failed
      1.    Replace    ./Sources/Admin.php    Test successful
      2.    Replace    ./Sources/Admin.php    Test failed
      3.    Replace    ./Sources/Admin.php    Test successful
      4.    Replace    ./Sources/Admin.php    Test successful
Title: Re: SimplePortal (2.1.1 Released!)
Post by: navjotjsingh on February 09, 2009, 07:00:09 AM
Quote from: Blue Dream on February 07, 2009, 03:10:51 PM
dropmenu.css edit is okay to ignore.

----

It does not fail in Subs.php. There should be a problem with your files, as I myself have installed it more than 10 times in the last two days. Which edit is that?

It seems, Pretty Urls was installed first and it was causing error. The code which failed was :


global $scripturl, $context, $modSettings, $db_show_debug, $db_cache;

   // In case we have mail to send, better do that - as obExit doesn't always quite make it...
   if (!empty($context['flush_mail']))
      AddMailQueue(true);

   $add = preg_match('~^(ftp|http)?://~', $setLocation) == 0 && substr($setLocation, 0, 6) != 'about:';
   
   // Redirect to the forums action not the portal, when Simple Portal is active.
   if((empty($setLocation) || $scripturl == $setLocation) && !empty($modSettings['portalactive']) && empty($modSettings['sp_disableForumRedirect'])) $setLocation = 'action=forum';
[/forum]

Now here, prettyurl added one more variable in the first global line called $sourcedir which was resulting in the fail. I would suggest to make the package installer to only add the last line.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: PerryM on February 09, 2009, 07:09:56 AM
Quote from: navjotjsingh on February 09, 2009, 07:00:09 AM
Quote from: Blue Dream on February 07, 2009, 03:10:51 PM
dropmenu.css edit is okay to ignore.

----

It does not fail in Subs.php. There should be a problem with your files, as I myself have installed it more than 10 times in the last two days. Which edit is that?

It seems, Pretty Urls was installed first and it was causing error. The code which failed was :


global $scripturl, $context, $modSettings, $db_show_debug, $db_cache;

// In case we have mail to send, better do that - as obExit doesn't always quite make it...
if (!empty($context['flush_mail']))
AddMailQueue(true);

$add = preg_match('~^(ftp|http)[s]?://~', $setLocation) == 0 && substr($setLocation, 0, 6) != 'about:';

// Redirect to the forums action not the portal, when Simple Portal is active. ;)
if((empty($setLocation) || $scripturl == $setLocation) && !empty($modSettings['portalactive']) && empty($modSettings['sp_disableForumRedirect'])) $setLocation = 'action=forum';
[/forum]

Now here, prettyurl added one more variable in the first global line called $sourcedir which was resulting in the fail. I would suggest to make the package installer to only add the last line.


Pretty URLs causes a lot of module to screw up - you just can't use it; at least I don't.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 09, 2009, 07:22:04 AM
edemars:

Ignore the error and install the mod. Make that edit manually.

Of course, don't forget to take back-ups.

navjotjsingh:

Thanks for informing, I'll change that edit then. For now, you can make the change manually.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: navjotjsingh on February 09, 2009, 07:41:41 AM
I have done the edit and its working perfectly.
Title: Suggestions
Post by: PerryM on February 09, 2009, 09:17:13 AM
I love this module!!!

A suggestion: articles displayed on the front page should follow the permissions under the forum they were created.  E.g. a forum for a Guest should display ONLY to guests on the front page.  A Gold Member (like I sell) should ONLY see Gold Member posts on the front page.

Another suggestion:
I really need a Wiki type thread - just the top post would allow anyone with permission to post to that thread to change just the top/first post.  The old post would simply be deleted and put in a Wiki holding forum so the Admin could go back and make an old post the current one.

That's it, no need to compare posts or have the [new page] type of stuff - if I want to link somewhere I can do it by hand with the Insert Hyperlink.


But what you have now is fantastic and thanks for the hard work.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Janet Merai on February 09, 2009, 02:25:17 PM
Would it at all be possible to make a block to allow particular images and particular categories (selectable) to display in a block?

I am talking about SMF Media Gallery (Simple Machines Forum Media Gallery)

Also, its quite a pain to make a block, later not like it and have to delete it to make a different one, could you not just allow one to edit it regardless of what they do?

I like flexibility, and being limited like that is kind of annoying lol

http://janetmerai.byethost15.com is my website
Title: Re: SimplePortal (2.1.1 Released!)
Post by: learjet45 on February 12, 2009, 07:49:06 PM
Janet -
You are using PortaMx, not SimplePortal.
Title: Media Gallery
Post by: jmil on February 13, 2009, 07:52:33 PM
I have read nearly post in this thread - but does anyone have a solution for adding a random image for SMF Media Gallery in a block of the Portal?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on February 13, 2009, 09:47:20 PM
I may be missing the question here, but with SMF 2.0x + SMG + SP; ADMIN --> BLOCKS --> ADD BLOCK --> MEDIA GALLERY BLOCK --> "Display type (1 random, 0 latest)" [___1____]
Title: Re: SimplePortal (2.1.1 Released!)
Post by: ɔɔɔɔɔɔuɥoɾ on February 13, 2009, 09:55:46 PM
So is this Mod officially compatible with SMF 2.0 RC1 yet, looking at the last few pages of post, it would appear some people can get it and others cant?

if it is possible, how, and where can i download compatible version

Thanks
JohnCcCcCc

Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on February 13, 2009, 11:05:46 PM
It is possible, the 2.0b4 works fine with it. You will receive an error message during install in regards to dropdown.css, but you don't have to worry about it, it will still work. I have it running on my RC1 site right now and it works fine.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 14, 2009, 03:36:31 AM
It works with RC1. Just ignore the dropdown.css edit error.
Title: TRying to Upgrade
Post by: jmil on February 14, 2009, 08:36:36 AM
Currently utilizing SMF 1.1.8 - Custom Theme
SP - 2.0.4

Following the install Instructions I go to Uninstall 2.0.4 before installing 2.1.1 but get the following error on the uninstall admin page:

7.    Execute Modification    ./Sources/Subs.php    Test failed

12.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test failed


Should I continue with the uninstall??
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 14, 2009, 10:50:51 AM
Yes, of course with a back-up. Then using the manual installation instructions on the Mod Site for the 2.0.4 package, remove the edits from those files too.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: PJC2006 on February 14, 2009, 07:43:31 PM
Dont worry my question was already answered a few pages back :S
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Balaban on February 15, 2009, 10:29:06 AM
Quote from: Blue Dream on February 14, 2009, 03:36:31 AM
It works with RC1. Just ignore the dropdown.css edit error.

is this a problem ...can we do manuel for working ?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 15, 2009, 03:55:15 PM
As I said, just ignore it.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: adp on February 15, 2009, 06:40:26 PM
If i unistall my old version and install the 2.1.1 version all my portal setting will be lost? All my selected articles and blocks configs will be lost?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Eliana Tamerin on February 15, 2009, 07:04:02 PM
They shouldn't be, since SimplePortal stores its information in tables in your forum database, and they are not removed upon uninstallation. However, every installation of modifications carries some risk of corruption, so if you're in doubt, back up your database (there's an easy backup utility through your SMF Admin panel, which you can read about here (http://docs.simplemachines.org/index.php?board=64.0;sort=subject)).
Title: Re: SimplePortal (2.1.1 Released!)
Post by: edogawaconan on February 16, 2009, 11:42:49 PM
I'm having problem installing. Here's the error:

QuoteDatabase Error
Table 'forum.sp_articles' doesn't exist
File: /the/path/to/forum/Packages/temp/install2.php
Line: 50
using SMF 2.0 RC1 (upgraded from 2.0 Beta 4), SimplePortal 2.1.1 recently downloaded from mod site
Title: Re: SimplePortal (2.1.1 Released!)
Post by: iceman~ on February 17, 2009, 06:16:15 AM
If installed on RC1 ....
It gves a login, logout problem ...
A member can login only from the user info box of simpleportal and not from the smf welcome area ...
Any help on this would be much appreciated ...
Simple portal does rule and is way better then any other portal as of now ...
Thanks guys.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 17, 2009, 06:38:40 AM
edogawaconan:

Download the package.
Extract it.
Open install2.php with Notepad.
Make this edit:

Find:

'update_remove'

Replace:

'ignore'

Make sure you replace all instances, there are more than one.

Save the file and pack it up as .zip.
Use that package.

iceman~:

Can you provide a test accound and a link to your forum?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: iceman~ on February 17, 2009, 07:57:04 AM
Blue Dream
Have uninstalled simple portal as of now ... :(
Do you want me to install it again and give you a test account ?
Thanks for replying soon mate ...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 17, 2009, 08:46:47 AM
Well, I've never heard/seen such an issue yet. What was the error and did it disappear when you uninstalled the mod?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Kasyx on February 17, 2009, 08:49:44 AM
I have just attempted to install SP2.1.1 onto SMF 2.0RC1. According to the SMF package installation, there were no problems (except for dropmenu.css, which I ignored). It told me installation was successful, however absolutely nothing has changed on my forum, regardless of which theme I use. There is no way to access SP via the Admin console, nor has it changed the index of my site; it basically appears as if SP were never installed in the first place.

Is there any reason for this? It's as if the package installation manager lied to me about installing SP in the first place.

Any help would be greatly appreciated.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 17, 2009, 08:51:35 AM
That sounds like a general package manager issue to me. Have you tried installing another mod? Is this problem only appears with SimplePortal?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Kasyx on February 17, 2009, 09:01:45 AM
I can't check because every mod I have tried to install since SimplePortal has thrown errors at me. I think it would be best if I just do a full reinstall of the SMF software and start again. Is there a way to reimport a database backed up from the Admin console through the admin console? Or do I have to do it via phpmyadmin?

Thanks for the help.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: iceman~ on February 17, 2009, 09:12:17 AM
Quote from: Blue Dream on February 17, 2009, 08:46:47 AM
Well, I've never heard/seen such an issue yet. What was the error and did it disappear when you uninstalled the mod?

There was no error mate ... Simple portal worked perfect ( like usual )
Just could not login or logout using the welcome screen ( default ) section ...
Yes after i uninstaled it ... the login issue is sorted ..
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 17, 2009, 09:16:03 AM
Quote from: Kasyx on February 17, 2009, 09:01:45 AM
I can't check because every mod I have tried to install since SimplePortal has thrown errors at me. I think it would be best if I just do a full reinstall of the SMF software and start again. Is there a way to reimport a database backed up from the Admin console through the admin console? Or do I have to do it via phpmyadmin?

Thanks for the help.

Errors like what?

You have to do it with phpMyAdmin.

Quote from: iceman~ on February 17, 2009, 09:12:17 AM
Quote from: Blue Dream on February 17, 2009, 08:46:47 AM
Well, I've never heard/seen such an issue yet. What was the error and did it disappear when you uninstalled the mod?

There was no error mate ... Simple portal worked perfect ( like usual )
Just could not login or logout using the welcome screen ( default ) section ...
Yes after i uninstaled it ... the login issue is sorted ..

Well, what I want to know is, what is the issue? I mean a blank page, an error or whatever happens when you do the login/logout?




You know, you have to mention all details possible. We already are far away from your system and it becomes more difficult to identify the issue and provide a solution, when we are not provided enough information about the problem. :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Dariano on February 17, 2009, 09:30:59 AM
Hello

I have some trouble installing this mod. After installing and applying this mod, when it says it's leading me to the settings page, it says an error has occurred. What should I do? I'm using 1.1.5 and the Blue Ace theme if it helps. This mod will be really useful. Thanks in advance.

Peace out
Dariano
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 17, 2009, 09:37:57 AM
I can't say it works without errors on 1.1.5. But do you see anything else on the page other than "an error has occurred"?

You really should consider upgrading to SMF version 1.1.8 as some critical security issues were addressed until. You can update easily by following the instructions in Admin CP. You can look for support in Install and Upgrade Help (http://www.simplemachines.org/community/index.php?board=10.0) board if you will experience any issues during upgrade.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Kasyx on February 17, 2009, 11:28:34 AM
Well... I just did a full reinstall of SMF2.0RC1 and installed Simple Portal 2.1.1 as my first mod, and have the exact same problem. I installed it through the package manager, it told me it was installed successfully and yet there is nothing in the Admin console vaguely related to Simple Portal. What is going on here? What should there be in the admin console, because I see nothing out of the ordinary...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Kasyx on February 17, 2009, 12:43:34 PM
I have now attempted to install Simple Portal 2.1.1 on a completely fresh install of SMF2.0RC1, and have the exact same problem. It just doesn't seem to want to install via the package manager.

I am completely at a loss here...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: flamechica on February 19, 2009, 05:44:34 AM
Hello,

I have SMF 1.1.8 and am using SimplePortal 2.1.1 

Anyways, I placed the "Who's Online" block on my forum and in firefox it says "Dot" before each line of text (i.e. before "Online Guests," "Online Users," etc. If I am not mistaken there should be a bullet point there, not the word "Dot." in IE it has the little box with the red "X' that is displayed when a picture cannot be displayed.

How do I go about fixing this or is this a bug?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 19, 2009, 06:15:27 AM
Quote from: Kasyx on February 17, 2009, 12:43:34 PM
I have now attempted to install Simple Portal 2.1.1 on a completely fresh install of SMF2.0RC1, and have the exact same problem. It just doesn't seem to want to install via the package manager.

I am completely at a loss here...

You still didn't tell what error you get exactly when you try installing a mod other than SimplePortal.

Quote from: flamechica on February 19, 2009, 05:44:34 AM
Hello,

I have SMF 1.1.8 and am using SimplePortal 2.1.1 

Anyways, I placed the "Who's Online" block on my forum and in firefox it says "Dot" before each line of text (i.e. before "Online Guests," "Online Users," etc. If I am not mistaken there should be a bullet point there, not the word "Dot." in IE it has the little box with the red "X' that is displayed when a picture cannot be displayed.

How do I go about fixing this or is this a bug?

Extract the SimplePortal 2.1.1 package you downloaded. Copy dot.gif and arrow.gif images to ../Themes/your_custom_theme/images directory. It is because package manager only makes changes for the default theme.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: shadownexusruler on February 19, 2009, 10:00:01 AM
the error i get when installing simple portal on smf 2.0rc1 has to do with the dropdown.css
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 19, 2009, 10:20:57 AM
Ignore the error and install the mod, if it is only dropdown.css. It fixed a bug in SMF default theme, but it have been fixed with SMF 2.0 RC1. The rest should be fine.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: flamechica on February 19, 2009, 03:31:26 PM
Quote from: Blue Dream on February 19, 2009, 06:15:27 AM
Quote from: flamechica on February 19, 2009, 05:44:34 AM
Hello,

I have SMF 1.1.8 and am using SimplePortal 2.1.1 

Anyways, I placed the "Who's Online" block on my forum and in firefox it says "Dot" before each line of text (i.e. before "Online Guests," "Online Users," etc. If I am not mistaken there should be a bullet point there, not the word "Dot." in IE it has the little box with the red "X' that is displayed when a picture cannot be displayed.

How do I go about fixing this or is this a bug?

Extract the SimplePortal 2.1.1 package you downloaded. Copy dot.gif and arrow.gif images to ../Themes/your_custom_theme/images directory. It is because package manager only makes changes for the default theme.

Thanks! I usually don't have to tweak things like this since I use default variations. Thanks for your help.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: AlenNS on February 19, 2009, 11:25:11 PM
Quote16.     Izvrši modifikaciju     ./Themes/default/css/dropmenu.css     Test nije uspeo
      1.    Zameni    ./Themes/default/css/dropmenu.css            Test nije uspeo

I have SMF 2.0 RC1 fresh install and this is error on installation.

There isn't part of the code from installation package in dropmenu.css.

Quoteul.admin_menu { display: table-cell; background: url(../images/admintab_right.gif) top right no-repeat; width: 34em; } 
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 20, 2009, 02:12:25 AM
Quote from: Blue Dream on February 19, 2009, 10:20:57 AM
Ignore the error and install the mod, if it is only dropdown.css. It fixed a bug in SMF default theme, but it have been fixed with SMF 2.0 RC1. The rest should be fine.

We will get rid of that edit with 2.2 version which will be released very soon.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: AlenNS on February 20, 2009, 08:52:43 AM
Blue Dream Can you see my problem, is it possible that there isn't that part of code?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 20, 2009, 10:37:50 AM
Did you read the post above yours carefully, including the quoted text?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: AlenNS on February 20, 2009, 11:18:27 AM
I am really sorry. That was stupid.
I didn't sleap last night. :S
Sorry againg... And tnx.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: AlenNS on February 20, 2009, 11:20:54 AM
After I've clicked install, I've got this:

QuoteGreška u bazi podataka                                     Table 'baklja_smf1.sp_articles' doesn't exist
Datoteka: /home/baklja/public_html/forum/Packages/temp/install2.php
Linija: 50

Napomena: Izgleda da vaša baza podataka zahteva ažuriranje. Datoteke vašeg foruma su trenutno na verziji SMF 2.0 RC1 dok je vaša baza podataka verzije SMF 2.0 Beta 4. Preporučujemo da izvršite poslednju verziju datoteke upgrade.php.
Database error,
I upgrade my forum to RC1 and now it asks to upgrade database from Beta 4. :S
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 20, 2009, 11:23:15 AM
No problems. Answer to your new problem is here:

Quote from: Blue Dream on February 17, 2009, 06:38:40 AM
Download the package.
Extract it.
Open install2.php with Notepad.
Make this edit:

Find:

'update_remove'

Replace:

'ignore'

Make sure you replace all instances, there are more than one.

Save the file and pack it up as .zip.
Use that package.

It is due to a bug in SMF 2.0 RC1. Will be fixed in the next version of SimplePortal.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: JFlame on February 20, 2009, 11:28:50 AM
Ok, so I installed SimplePortal and most things are good.  One thing is really bothering me though and I can't figure it out.

In the linktree, I have this when I go to the Forums, and into the default "General Discussion" board which is part of the "General Category":

Forum > General Category > General Discussion

The problem is that the url that is linked to for the "General Category" part of the linktree is incorrect.  It still points to "http://myboard.com/index.php#1", when it should now point to "http://myboard.com/index.php?action=forum#1".

Does anybody know where I went wrong or where I need to go to fix this?  When you click on the "General Category" link as currently defined it directs back to the portal page instead of the forum like it should.

I did a complete pristine install of SMF 1.1.8 and then only applied the SimplePortal 2.1.1 mod and I get these results, so I'm beginning to think this must be a bug in SimplePortal or SMF 1.1.8.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 20, 2009, 11:45:22 AM
That's a know bug and will be fixed with new version which is currently being tested.

For now:

SPortal1-1.php

Find:

#c

Replace:

#

There are more than one instances, make sure you change them all.
Title: Bug with module
Post by: PerryM on February 21, 2009, 03:54:50 AM
I love this module but I can't incorporate it into my smf 2.0 RC1 sites because I'm scared to death of this error:

   
[/t] 16. Execute Modification ./Themes/default/css/dropmenu.css Test failed
[/t][/t]
[/t] 1. Replace ./Themes/default/css/dropmenu.css Test failed 

I get this all the time on my test sites when I install/uninstall modules and this module is involved.

Many times I can't un-installed this module because of this error and if I install some other modules before this module I get this error.

If you could look into this error and fix it I can then use your module.

Thanks much.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 21, 2009, 05:23:01 AM
It is perfect to ignore it, if that is the only test failed error.

Quote from: Blue Dream on February 20, 2009, 02:12:25 AM
Quote from: Blue Dream on February 19, 2009, 10:20:57 AM
Ignore the error and install the mod, if it is only dropdown.css. It fixed a bug in SMF default theme, but it have been fixed with SMF 2.0 RC1. The rest should be fine.

We will get rid of that edit with 2.2 version which will be released very soon.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: PerryM on February 21, 2009, 12:00:44 PM
Quote from: Blue Dream on February 21, 2009, 05:23:01 AM
It is perfect to ignore it, if that is the only test failed error.

Quote from: Blue Dream on February 20, 2009, 02:12:25 AM
Quote from: Blue Dream on February 19, 2009, 10:20:57 AM
Ignore the error and install the mod, if it is only dropdown.css. It fixed a bug in SMF default theme, but it have been fixed with SMF 2.0 RC1. The rest should be fine.

We will get rid of that edit with 2.2 version which will be released very soon.


Thanks for the great support.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 21, 2009, 12:03:51 PM
That should appear every time on RC1. In SMF 2.0 Beta 4, there was a admin menu bug and the edit fails was to fix that. Now it is fixed in RC1, so that edit is no longer needed. Edit fails because codes are changed as you may guess.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: tbk22 on February 21, 2009, 04:32:25 PM
Is it compatible with custom themes/templates?

sry i wasnt able to find that information in the topic
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 21, 2009, 05:07:29 PM
Yes, it is compatible with all SMF themes. Only you should add 'forum' button to your custom theme for SMF 1.1 and a single CSS file edit for SMF 2.0 manually. You can use the mod parser in the Mod Site to see manual installation instructions.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: tbk22 on February 21, 2009, 06:10:21 PM
thanks alot for the info
Title: Re: SimplePortal (2.1.1 Released!)
Post by: abbyh on February 22, 2009, 01:46:04 AM
 :(

Hi,

I tried installing this mod but after installation, I get database error on my board like this.

Database Error
Table 'abbyh_smfgm.smf_sp_blocks' doesn't exist
File: /home/abbyh/public_html/greenmidori/Sources/Subs-SPortal2.php
Line: 53 


Hope, somebody help me to figure this out. Thanks.


Edit. I figured it out now. I tried the upload package installation and it said I installed it successfully. :)

Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 22, 2009, 04:04:56 AM
Glad that you could solve it. ;)
Title: Linktree no longer showing forum title?
Post by: JFlame on February 22, 2009, 10:47:05 PM
Hello.  After installing SimplePortal my linktree no longer shows the Forum Title, instead it just shows "Forum."

Before:

MySite >> General Category >> General Discussion

After:

Forum >> General Category >> General Discussion

This setting used to be controlled by the "Forum Title" setting in the server settings.  It is still set to "MySite", but appears to not be used in the linktree any more. 

Any ideas?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: jossanaijr on February 23, 2009, 12:23:30 PM
Hi,
how to create a list of last X members that paid a subscription?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: victoryrock on February 23, 2009, 02:45:46 PM
So I tried to install using Install Manager, but I got this error:

7. Execute Modification ./Sources/Recent.php Test failed

Can someone look at it and maybe tell me what is wrong with it?  I am new at manually modifiying code and do not want to mess things up.

File Attached

Thanks!!!
Title: Re: SimplePortal (2.1.1 Released!)
Post by: jossanaijr on February 24, 2009, 08:47:20 AM
Hi,
installed and working fine but sometimes in my "Last image attached" block the image does not load and it shows an "X".  Any help?
If I modify the post and delete and attach again the image the block starts to work fine again and load the image.
Have already tried with different browsers and Ctr+F5 too...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 24, 2009, 10:28:28 AM
JFlame:

That's an intended behavior. Once you install the portal, the first item of the linktree will redirect users to forum, not main page.

jossanaijr:

I'll try that later.

victoryrock:

I've applied the changes to your file manually. Ignore the errors and install the mod. Then use the file attached.

jossanaijr:

When it is broken, do you see it as it should be in topic view?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: jossanaijr on February 24, 2009, 10:43:46 AM
Quotejossanaijr:
When it is broken, do you see it as it should be in topic view?

Just checked it.
No, at first I cannot see the image in my post, only the image icon and file name.  If I click icon then it reloads and image appears.  But then if I return to portal it is not showing.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: victoryrock on February 24, 2009, 11:15:21 AM
Blue Dream,

Do you want me to install it first ignoring the errors, and then replace the new file?  OR Vice Versa?

VR

Quote from: Blue Dream on February 24, 2009, 10:28:28 AM

victoryrock:

I've applied the changes to your file manually. Ignore the errors and install the mod. Then use the file attached.

Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 24, 2009, 11:47:02 AM
If you don't see image correctly in topic, then its related to SMF I'm afraid.

----

First install the mod ignoring error. Then replace your file with the one I attached.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: JFlame on February 26, 2009, 11:04:45 AM
Quote from: Blue Dream on February 24, 2009, 10:28:28 AM
JFlame:

That's an intended behavior. Once you install the portal, the first item of the linktree will redirect users to forum, not main page.


I can see your point of view, and I'll offer you mine.

SMF out of the box is a Forum.  That's it.  It makes sense then for the linktree to have at its base the forum itself, even if it goes under an alias such as "MySite." 

When you install a portal and other modifications, SMF grows to be more than just a forum.  For example, if you start with SMF Forums, and then add Classifieds, Gallery, and Articles, you have a pretty full featured site that is way more than just forums. 

It does not make sense in my example to continue to use the forums as the root of the linktree.  I don't view something like the Gallery as a subset of Forums, I view it as a peer.  In my mind, extending the base SMF package with mods creates this type of structure:

Portal
---->Forums
---->Gallery
---->Classifieds
---->Articles

Whereas you are suggesting this structure:

Portal
Forums
---->Galery
---->Classifieds
---->Articles

This is evident by the way that the linktree will show Forums->Gallery after installing the Gallery mod, even though Gallery is arguably a peer of Forums, not a child.

The linktree actually made more sense when it was aliased with the site name, so at least it LOOKED like Gallery was a peer, rather than a child:

Example:  MySite->Gallery (Pre-SimplePortal installation)
vs  Forums->Gallery (after SimplePortal installation)

The purpose of the linktree is to provide the user reference for where they are, as well as the structure of the site.  I think it's confusing to have top level menu options such as "Home, Forum, Gallery, etc," which implies peer relationship, yet show a parent/child relationship in the linktree.

Food for thought.

Title: Re: SimplePortal (2.1.1 Released!)
Post by: willerby on February 26, 2009, 06:31:44 PM
Sorry, I've read a dozen or so pages on this mod but can't find what  I'm looking for.

If I install SimplePortal on a live site do guests/members etc see its effects or is default set to admin only until page layout / content finalised?

Can content be customised depending upon user group?

Simple stuff but this thread has got too big!

Thanks
Title: Re: SimplePortal (2.1.1 Released!)
Post by: KahneFan on February 26, 2009, 06:55:53 PM
It's "live" as soon as you install it. However, you can turn it "off" while you build your blocks. The hardest part about this, and maybe someone can figure this out, there's no way to preview a block until it's live. So you can build your blocks and content while the portal is off, you just can't preview them per say until it's live.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on February 26, 2009, 07:23:08 PM
unless you have a test site.. then just transfer your info from test site to live site  ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on February 26, 2009, 09:12:36 PM
Quote from: willerby on February 26, 2009, 06:31:44 PM
<<< Can content be customised depending upon user group? >>>

Block content inherits it's permissions wherever it's pulled, if it's pulled from within your site.

In other words if you have it set to not allow non members to view your gallery they won't be able to view the contents of the gallery block either.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 26, 2009, 11:40:29 PM
You can set permissions for each group too.

About the portal preview; I see the need, I think we can do something about that.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: willerby on February 27, 2009, 03:14:59 AM
Thanks all, that was really helpful. Building live in frnt of my users probably not a good idea so maybe play around late at night putting forum under 'administration'

EDIT: found an easier fix to this issue - change the Subs.php so that the Portal button is 'show' => $context['allow_admin'],
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on February 27, 2009, 05:56:28 AM
you can either test local on your pc, using easyphp, xamp, lamp, etc., or try creating a new forum on your server (i dont recommend this as its easy to get the 2 mixed up) but that is what i would do.. that way there is no need in putting the site into "maintenance mod" and if your members get up in the middle of the might, they wont be worried about the site and have the confidence in you that the site will be good O:)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: spazz on February 27, 2009, 06:14:24 AM
Okay here is my question is there anyway to make the portal a different tab from the forum and not having it ontop of the forum? i dont think this is the right portal... i looked on about 20 pages outta the 97 and see nothing but install issues  :D i think im getting a migrane. Hahaha but okay here is my old forum. www.setitoffcreations.smfforfree4.com see i have a tab for the portal and one for the forum. Hopefully there is some way around this?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on February 27, 2009, 06:34:52 AM
you will have to add the forum button, if you are using a custom theme.. you can find out how in the docs, search for  adding a button:

http://docs.simplemachines.org/
Title: Re: SimplePortal (2.1.1 Released!)
Post by: spazz on February 27, 2009, 07:41:03 AM
im just using the default-core...i dont see where u were directing me anything about a extra tab?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 27, 2009, 07:46:01 AM
You can do that, but it would be quite painful.

I don't have the codes with me ATM, but I may post you some edits that would do it, sometime later.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: spazz on February 27, 2009, 08:50:37 AM
Quite painful? how encouraging...lol make it sound user friendly since im new to paid forums!

Lol i look forward to the help
Title: Re: SimplePortal (2.1.1 Released!)
Post by: madinmex on February 27, 2009, 12:35:20 PM
Blue Dream,

Many many, thanks for a great Mod. I am sure I must be the "simple" in your title  ;)  As a non techie , geek etc everything is a labour but I enjoy it. Just  gotta find out how to add a forum tab and then to venture to custom themes. I actually Installed mine whilst online using a test board for initial impressions and tabbing between the two took me about 1 hour and whilst not up to pro standards am quite impressed.

again many thanks

Title: Re: SimplePortal (2.1.1 Released!)
Post by: aw06 on February 28, 2009, 02:49:43 PM
how do i add the add article button to a custom theme....

My theme uses buttons, not text, wen i add the code below i get no add article link.

// Make Article Button
if ($context['can_make_article'])
$normal_buttons['article'] = array('text' => 'sp-make_article', 'image' => 'addarticle.gif', 'lang' => true, 'url' => $scripturl . '?sa=addarticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);

// Show the page index... "Pages: [1]".


And this is how my theme calls in a similar button
/ Show a "go down" link?
if (!empty($modSettings['topbottomEnable']))
echo $context['menu_separator'], '<a href="#bot">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_down.gif" alt="' . $txt['topbottom5'] . '" border="0" align="top" />' : $txt['topbottom5'], '</a>';

echo '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" style="font-size: smaller;">';

$buttonArray = array();
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
if ($context['can_mark_notify'])
$buttonArray[] = '<a href="' . $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/notify.gif" alt="' . $txt[131] . '" border="0" />' : $txt[131]) . '</a>';

Title: Re: SimplePortal (2.1.1 Released!)
Post by: cme1st2302 on February 28, 2009, 05:04:43 PM
I tried to upgrade to version 2.1.1 and I get the following error

QuoteUnknown column 'display' in 'field list'
File: /home/content/b/u/c/buc240/html/eastcoastastro/forums/Sources/Subs-SPortal1-1.php
Line: 44

My whole site is down!!!  Can anyone help me fix this?

Chris
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on February 28, 2009, 07:18:38 PM
Chris:

Run this query via phpMyAdmin:

ALTER TABLE smf_sp_blocks
ADD display TEXT NOT NULL

Others:

You'll have to wait until I find a computer, sorry.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: cme1st2302 on February 28, 2009, 08:28:23 PM
Thanks a million Blue Dream that got the site working again!!!   :D

One more question.  My forum was at 1.1.8 but now when I go into the admin section it says it is at 1.1.6 and I should update.  I try to run the update and all the tests fail.  Could it be that my database or something else just has the wrong number and I have to manually have to change it back?

Chris
Title: Re: SimplePortal (2.1.1 Released!)
Post by: cme1st2302 on February 28, 2009, 09:09:18 PM
Nevermind I found it in index.php.  Just wanted to say thanks again Blue Dream for helping me get things back up again.  It is people like you who truly make this site what it is today.

Chris
Title: Re: SimplePortal (2.1.1 Released!)
Post by: c5Quad on March 02, 2009, 06:09:43 PM
I tried searching and looking but I didn't see this.  Did I just over look it?

The SimplePortal 2.1.1 footer is overlapping the Powered by SMF 2.0 RC1..etc

Look at the footer http://ipostyoupost.com/ (http://ipostyoupost.com/)

Edit: Never mind seems to be the Tabs Free theme.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on March 03, 2009, 02:20:20 AM
You should apply the index.css edit to your custom theme index.css file.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: protonxl on March 05, 2009, 11:32:07 AM
Hey!

This is by far one of my fav smf plugins.

I have a question tho

I wanna upgrade to the latest one but I have these errors

Installing this package will perform the following actions:

   Type    Action    Description
1.    Execute Modification    ./index.php    Test failed
8.    Execute Modification    ./Themes/default/index.template.php    Test failed

these two files failed to uninstall.

I did not continue, I still have it installed.
Whats the next step?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: sheryltoo on March 05, 2009, 11:46:29 AM
I am using an html block for the top block and unless I put several line breaks in my codes, the text from line to line overlaps each other.
Is there a way to prevent this from happening without having to put in several line breaks?
Sheryl
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on March 05, 2009, 11:54:23 AM
Quote from: protonxl on March 05, 2009, 11:32:07 AM
Hey!

This is by far one of my fav smf plugins.

I have a question tho

I wanna upgrade to the latest one but I have these errors

Installing this package will perform the following actions:

   Type    Action    Description
1.    Execute Modification    ./index.php    Test failed
8.    Execute Modification    ./Themes/default/index.template.php    Test failed

these two files failed to uninstall.

I did not continue, I still have it installed.
Whats the next step?

Did you completely uninstall the old version before installing the new one?

Quote from: sheryltoo on March 05, 2009, 11:46:29 AM
I am using an html block for the top block and unless I put several line breaks in my codes, the text from line to line overlaps each other.
Is there a way to prevent this from happening without having to put in several line breaks?
Sheryl


As it is an HTML block, that is related to the codes you are using. I can't say for sure that I can help you with that, but you can paste the codes you are using so that I can have a look.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: sheryltoo on March 05, 2009, 12:54:38 PM
I'm not sure if you want the codes for the entire page, if you do let me know. Otherwise, here's some of the codes I'm using and if I don't put in more then one <br>, the lines are almost on top of each other.

<table align="center" background="http://img.photobucket.com/albums/v200/sheryltoo/backgrounds/blstrps02.jpg"  cellpadding="20" cellspacing="0" width="100%"
border="2" bordercolor="#476c8e">
<tr>
<td>
<TABLE borderColor=#476c8e cellSpacing=0 cellPadding=10 width="100%"
background="http://img.photobucket.com/albums/v200/sheryltoo/SMF/brtns01.jpg" border=1>
<tr>
<td>
<TABLE borderColor=#476c8e cellSpacing=0 cellPadding=10 width="100%" background="http://img.photobucket.com/albums/v200/sheryltoo/SMF/smf12.jpg" border=1>

<tr>

<td align="center">
<br>
<P align=center><FONT face="Comic sans ms" color=#476c8e size=5>PSP Addicts
<br><br>
Pull up a chair and come share your
<br> <br>PSP talents with us.</FONT></P>
Title: Re: SimplePortal (2.1.1 Released!)
Post by: protonxl on March 05, 2009, 03:06:51 PM
Quote from: Blue Dream on March 05, 2009, 11:54:23 AM
Quote from: protonxl on March 05, 2009, 11:32:07 AM
Hey!

This is by far one of my fav smf plugins.

I have a question tho

I wanna upgrade to the latest one but I have these errors

Installing this package will perform the following actions:

   Type    Action    Description
1.    Execute Modification    ./index.php    Test failed
8.    Execute Modification    ./Themes/default/index.template.php    Test failed

these two files failed to uninstall.

I did not continue, I still have it installed.
Whats the next step?

Did you completely uninstall the old version before installing the new one?


No, I did not install the new one.
I read the description and it says to UNINSTALL the old version.
I went to packages, Simple Portal >>>> Clicked on Uninstall
and these two failed.
1.    Execute Modification    ./index.php    Test failed
8.    Execute Modification    ./Themes/default/index.template.php    Test failed

I did not continue, i left it installed until i find a way to uninstall old version safely.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: jhd_20 on March 07, 2009, 11:19:07 PM
Can somebody help me with this problem I'm encountering..? First I uploaded this to my test site and then tried to installed it using install packages but everytime this error occured:

screenshot:
(http://usera.imagecave.com/Skavenger/newzone/2009-66-22-8-37-1-simple.JPG)

And then I have also tried to manually edit files as showed on the manual on modification area but I I just end up messing around my database so again I re-install everything from the beginning using the smf v1.1.8 and tried to upload and install this modification again but it gives me the same error as before that was same on the screenshot above..

I've tried chmod the files but it was already set to 777 and one more thing how can you chmod a zip file anyway...

Please help... I really need this to work on my test site before trying to do the same on my live site.. Thank you so much...

jhd_20
Title: Re: SimplePortal (2.1.1 Released!)
Post by: kitekid on March 07, 2009, 11:30:58 PM
I recently installed ver. 2.1.1 on my SMF 1.1.8 forum.  Set it up and started running just fine ... until I added a second article to the portal.  Decided that I didn't like it there so deleted it.   Went back to the portal to see how it looked and got an Internal System Error 500.  All other pages were fine.  Uninstalled Simple Portal and then reinstalled ... no joy ... same error.
Any suggestions for fixing this?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: jhd_20 on March 08, 2009, 05:27:44 AM
Quote from: jhd_20 on March 07, 2009, 11:19:07 PM
Can somebody help me with this problem I'm encountering..? First I uploaded this to my test site and then tried to installed it using install packages but everytime this error occured:

screenshot:
(http://usera.imagecave.com/Skavenger/newzone/2009-66-22-8-37-1-simple.JPG)

And then I have also tried to manually edit files as showed on the manual on modification area but I I just end up messing around my database so again I re-install everything from the beginning using the smf v1.1.8 and tried to upload and install this modification again but it gives me the same error as before that was same on the screenshot above..

I've tried chmod the files but it was already set to 777 and one more thing how can you chmod a zip file anyway...

Please help... I really need this to work on my test site before trying to do the same on my live site.. Thank you so much...

jhd_20

Please can somebody lend a hand on this?

jhd_20
Title: Re: SimplePortal (2.1.1 Released!)
Post by: [SiNaN] on March 08, 2009, 08:58:33 AM
sheryltoo:

Those codes at least should be like this:

<table align="center" background="http://img.photobucket.com/albums/v200/sheryltoo/backgrounds/blstrps02.jpg"  cellpadding="20" cellspacing="0" width="100%"
border="2" bordercolor="#476c8e">
<tr>
<td>
<TABLE borderColor=#476c8e cellSpacing=0 cellPadding=10 width="100%"
background="http://img.photobucket.com/albums/v200/sheryltoo/SMF/brtns01.jpg" border=1>
<tr>
<td>
<TABLE borderColor=#476c8e cellSpacing=0 cellPadding=10 width="100%" background="http://img.photobucket.com/albums/v200/sheryltoo/SMF/smf12.jpg" border=1>

<tr>

<td align="center">
<br>
<P align=center><FONT face="Comic sans ms" color=#476c8e size=5>PSP Addicts
<br><br>
Pull up a chair and come share your
<br> <br>PSP talents with us.</FONT></P>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>


protonxl:

You can't install the new version, without uninstalling the old version first. Attach the files that gives errors when you try uninstalling and I'll remove SP from them manually.

jhd_20:

Please do not bump your posts.

Do you get the same error with other mods you are installing or is this specific to SP? Make sure the files are writable for Package Manager to edit them. From the error, I see the path you entered does not seem to be valid.

kitekid:

Try this:

SPortal1-1.php

Find:

LEFT JOIN {$db_prefix}messages AS m ON (m.ID_MSG = a.ID_MESSAGE)
LEFT JOIN {$db_prefix}boards AS b ON (b.ID_BOARD = m.ID_BOARD)


Replace:

INNER JOIN {$db_prefix}messages AS m ON (m.ID_MSG = a.ID_MESSAGE)
INNER JOIN {$db_prefix}boards AS b ON (b.ID_BOARD = m.ID_BOARD)


Find:

LEFT JOIN {$db_prefix}messages AS m ON (m.ID_MSG = a.ID_MESSAGE)
LEFT JOIN {$db_prefix}boards AS b ON (b.ID_BOARD = m.ID_BOARD)


Replace:

INNER JOIN {$db_prefix}messages AS m ON (m.ID_MSG = a.ID_MESSAGE)
INNER JOIN {$db_prefix}boards AS b ON (b.ID_BOARD = m.ID_BOARD)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: @L3 on March 08, 2009, 09:21:48 AM
look this: http://www.simplemachines.org/community/index.php?topic=222212.0

Bye, @L3! ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: wickedstangs on March 08, 2009, 11:02:53 PM
just downloaded this mod and tried to install and getting this error. Do I continue or stop?
Type                                      Action         Description
16.    Execute Modification    ./Themes/default/css/dropmenu.css    Test failed
     1.  Replace    ./Themes/default/css dropmenu.css    Test failed
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on March 08, 2009, 11:05:06 PM
continue on wickedstangs  ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Jade Elizabeth on March 08, 2009, 11:42:46 PM
Exactly as Smoky says, don't worry bout it :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: wickedstangs on March 09, 2009, 12:55:31 AM
sweet thanks I went ahead with the process and looks to be working outstanding... Thank You..

www.modularfoxmustangs.com
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on March 09, 2009, 01:16:47 AM
glad it worked out for you  ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: sheryltoo on March 09, 2009, 08:28:46 AM
BlueDream, I actually had those closing tags but I just didn't copy them in my post. Sorry about that confusion.
But I'm still wondering if there's a way to make it so I don't have to put two breaks in the coding in order to prevent one line from overlapping the next.

I was wondering if I could copy some text to show you how close each line is to the next with only 1 break and when I highlighted the two lines, the second highlighted background was actually overlapping the highlighted line above it.
If this doesn't make sense let me know and I'll do a screen shot for you.
Right now I have to run out so I don't have time.
Thanks.
Sheryl
Title: Re: SimplePortal (2.1.1 Released!)
Post by: tfs on March 09, 2009, 11:15:43 AM
I recently installed SP 2.1.1 on SM 2.0 RC1.  A great combination!

I also have installed SMF Media Gallery 1.5.5, and in Simple Portal I'm displaying a "Media Gallery Block" random item.  But I don't really want to display non-images.  Could you add a filter to pick the file extensions to display?  A second wish would be to be able to pick the gallery where the random items comes from.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on March 09, 2009, 11:31:45 AM
Sheryl, what box is it going into? is the box wide enough for the code?? cuz everyone knows, size matters  ;)  might be a contributing factor there as well just a thought, even though i havent looked at the code itself.. Blue knows what he is doing.. so try his out as well..  O:)

good ideas tfs 8)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: wickedstangs on March 09, 2009, 11:34:39 AM
Quote from: SmokyBlue on March 09, 2009, 11:31:45 AM
Sheryl, what box is it going into? is the box wide enough for the code?? cuz everyone knows, size matters  ;) 
:)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Cudamine on March 09, 2009, 12:25:32 PM
QuoteType                                Action                Description
1.    Execute Modification    install1-1.xml    Modification parse error
2.    Execute Modification    -                      Modification parse error
3.    Execute Modification    english.xml       Modification parse error
4.    Execute Modification    -                      Modification parse error

I get this while trying to install on the package manager.

Anyone knows what to do?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: sheryltoo on March 09, 2009, 05:34:12 PM
I added a top html block and added a few more lines to Blue's codes with only one line break in between some of the sentences so you could see what I mean.
Here's a screen shot of how the page looks when I only add one
Quote<br>
in between some sentences.

(http://img.photobucket.com/albums/v200/sheryltoo/sp.jpg)

And here are the codes for the page?
Should it fit on that block?

<table align="center" background="http://img.photobucket.com/albums/v200/sheryltoo/backgrounds/blstrps02.jpg"  cellpadding="20" cellspacing="0" width="100%"
border="2" bordercolor="#476c8e">
<tr>
<td>
<TABLE borderColor=#476c8e cellSpacing=0 cellPadding=10 width="100%"
background="http://img.photobucket.com/albums/v200/sheryltoo/SMF/brtns01.jpg" border=1>
<tr>
<td>
<TABLE borderColor=#476c8e cellSpacing=0 cellPadding=10 width="100%" background="http://img.photobucket.com/albums/v200/sheryltoo/SMF/smf12.jpg" border=1>

<tr>

<td align="center">
<br>
<P align=center><FONT face="Comic sans ms" color=#476c8e size=5>PSP Addicts
<br><br>
Pull up a chair and come share your
<br> <br>PSP talents with us.
<br>
This is just a test to see how close the lines are.
<br>
I added one break in between these last two sentences.
<br>
<br>
Here is a sentence with two line breaks above it.
</FONT></P>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

Sheryl
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on March 09, 2009, 06:01:49 PM
Sheryl, the few things i caught was you have 3 images in that code, so your db is going to ask for 3, when you could combine those, and make one image out of it, saving the db work. even if you arent hosting them, it still makes calls to the database..

on the size, you said a top box, but what is the size? if you look, the center isnt right, see the top of the PSP Addicts? and also, if you are coding your theme, you can have it use its own color, like this one:

color=#476c8e and use the border color for the boarder..  would save you a bit of effort there as well.. might want to think on taking out the tables and using divs.. just a thought..  :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on March 09, 2009, 06:03:28 PM
Quote from: Cudamine on March 09, 2009, 12:25:32 PM
QuoteType                                Action                Description
1.    Execute Modification    install1-1.xml    Modification parse error
2.    Execute Modification    -                      Modification parse error
3.    Execute Modification    english.xml       Modification parse error
4.    Execute Modification    -                      Modification parse error

I get this while trying to install on the package manager.

Anyone knows what to do?

what smf version and you might have to do a manual install.. meaning read the .xml file and find your edits to it..  ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: sheryltoo on March 09, 2009, 06:45:16 PM
I was using 3 different images for 3 different backgrounds so I could make a triple background but maybe that's not a good idea for the portal or a database?

As for the centering, are you going by my codes or the screen shot since the screenshot isn't the entire page. I just cut out a portion of it so show how the lines overlap from one line to the next with only one line break.
And I'm not really sure what the size is.
I have a left block that's set to 120 but I don't see any place to set the top block so I guess it's the defaul, what ever that is.

I will have to read up on divs. I've never used them to create triple backgrounds.
Sheryl

Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on March 09, 2009, 06:55:35 PM
yeps i would try to create one background image veruses 3 Sheryl.. makes things smooth..

now on the centering, you have the code you are using to be centered within the code.. but it looks like it isnt doing a very good jhob to me.. perhaps if you would like to search on how to center, you cna, but i mainly use: margin: auto auto.. what size is your monitor too, all this comes into play believe it or not on how codes show up..   O:)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: sheryltoo on March 09, 2009, 07:25:41 PM
I guess I'm a little rusty using html, lol.
I've got a lot of reading to do before I attempt to fix that page.
Sheryl
Title: Re: SimplePortal (2.1.1 Released!)
Post by: jhd_20 on March 09, 2009, 10:32:10 PM
Quote from: Blue Dream on March 08, 2009, 08:58:33 AM


jhd_20:

Please do not bump your posts.

Do you get the same error with other mods you are installing or is this specific to SP? Make sure the files are writable for Package Manager to edit them. From the error, I see the path you entered does not seem to be valid.

Sorry for bumping my own post.. But as per your question.. Nope I did not get same error like that on any other modifications since I've tried three or two and they are all installed successfully... And about the chmod how could I cmod it when it's on zip...? But anyway I might go and try the manual installation anyway..

Just one more question if I got to follow the manual installation is it only the install1-1.php that I will upload on the root directory or should I upload the install1-1.xml, install2.xml stuff like that?

jhd_20
Title: Re: SimplePortal (2.1.1 Released!)
Post by: jhd_20 on March 11, 2009, 08:25:58 PM
Thread up...!!

Sorry guys..

jhd_20
Title: Re: SimplePortal (2.1.1 Released!)
Post by: TroyG on March 12, 2009, 02:14:18 AM
Dumb question

Which version do I use for 1.1.8
Title: Re: SimplePortal (2.1.1 Released!)
Post by: .HuNTeR. on March 15, 2009, 02:29:48 AM
adding a block for Download System (http://custom.simplemachines.org/mods/index.php?mod=992) will be great
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on March 15, 2009, 05:20:41 AM
you could just call it thru ssi .hunter.  ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: SA™ on March 15, 2009, 06:57:32 AM
Quote from: .HuNTeR. on March 15, 2009, 02:29:48 AM
adding a block for Download System (http://custom.simplemachines.org/mods/index.php?mod=992) will be great

i have a block for the download system but its for smf 2


Global $smcFunc;
echo '<table  cellspacing="10px" cellpadding="10px" border="0">
<tr>
<td>';
$request = $smcFunc['db_query']('', "SELECT f.ID_FILE, f.id_member, f.date, f.ID_CAT, f.title AS ftitle, f.totaldownloads,
c.title, m.real_name, m.id_member AS mid_member
FROM {db_prefix}down_file AS f, {db_prefix}down_cat AS c, {db_prefix}members AS m
WHERE f.ID_CAT = c.ID_CAT
AND f.approved = '1'
AND f.id_member = m.id_member
ORDER BY RAND()
LIMIT 1");

$row = $smcFunc['db_fetch_assoc']($request);

echo '
<ul style="padding: 0; list-style-type: none;">
<li><a href="',$scripturl,'?action=downloads;sa=view;id=',$row['ID_FILE'],'">',$row['ftitle'],'</a></li>
<li style="font-size: x-small"><hr />Uploaded:</li>
<li style="font-size: x-small"><i>('.timeformat($row['date']).')</i></li>
<li style="font-size: x-small"><i>Submitted by: <a href="',$scripturl,'?action=profile;u=',$row['id_member'],'">',$row['real_name'],'</a></i></li>
<li style="font-size: x-small">Downloads: <b>', $row['totaldownloads'] ,'</b></li>
<li style="font-size: x-small">Category: <b><a href="' . $scripturl . '?action=downloads;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></b></li>';
echo '</ul>';echo '</td>
<td></td>
</tr>
</table>';
Title: Re: SimplePortal (2.1.1 Released!)
Post by: .HuNTeR. on March 15, 2009, 08:05:46 AM
i personally use this code
but i think this portal should have this ability ;)

Global $db_prefix, $scripturl;
$request = db_query("SELECT ID_FILE, title
FROM ${db_prefix}down_file
WHERE approved = '1'
ORDER BY date DESC
LIMIT 5", __FILE__, __LINE__);
while($row = mysql_fetch_assoc($request))
echo '
<a href="',$scripturl,'?action=downloads;sa=view;id=',$row['ID_FILE'],'">',$row['title'],'</a><br/><br/>';

Title: Re: SimplePortal (2.1.1 Released!)
Post by: .HuNTeR. on March 16, 2009, 09:04:58 AM
OK i want to report some bugs

first the arcade block in opera 9.52 shown with scroll bars and not moving

most of aligns set to left and not checking is the language right to left or not (i have a list of them and can share with)

there is a address bar thing in topic's (navigation bar?! i don't know what it called?)
something like this:
My Community > General Category > General Discussion >
the second part "general category" linked to index.php?#X but when simple portal enabled it should be index.php?action=forum#X

suggestion:
end of articles a "...more" button to topic will be good
Title: Re: SimplePortal (2.1.1 Released!)
Post by: fext on March 19, 2009, 10:35:43 AM
Quote from: .HuNTeR. on March 16, 2009, 09:04:58 AM

suggestion:
end of articles a "...more" button to topic will be good

Take a look at this post on their site bro:
http://simpleportal.net/index.php?topic=250.0
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Aramaki on March 23, 2009, 06:57:22 AM
found an error

when browsing topic board link in top breadcrumbs menu (Customizing SMF on this forum for example)  doesn't include action=forum so it goes to the portal

Fix: Sources/Load.php line 662

replace
'url' => $scripturl . '#' . $board_info['cat']['id'],
with
'url' => $scripturl . '?action=forum#' . $board_info['cat']['id'],
Title: Re: SimplePortal (2.1.1 Released!)
Post by: karbaciun on March 24, 2009, 12:41:50 PM
hi

tinyportal or simple portal are beter? why?
Title: Re: SimplePortal (2.1.1 Released!)
Post by: PalmBeachPreps on March 24, 2009, 03:38:08 PM
Quote from: karbaciun on March 24, 2009, 12:41:50 PM
hi

tinyportal or simple portal are beter? why?
Anyone?  I'm interested in such opinions as well.  i have tp installed, but I'm not too fond of it.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: AlenNS on March 24, 2009, 03:57:06 PM
Simple Portal is better for me and my needs.
I'm really satisfied with new options to insert some blocks in specific parts of forum.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Asude on March 24, 2009, 06:22:35 PM
Well, yeah, it depends on your needs.

TinyPortal is modular like a mini-CMS. However SimplePortal is only a portal page, currently.

They are both quite same in customizing blocks, but SimplePortal has more built-in blocks with more options.

However, with TinyPortal you can arrange your Front Page in many different ways with various panels and sides, but SimplePortal only has 4 sides that a usual portal may need. They both have options to select the pages to show certain blocks.

SimplePortal only supports forum-posts-based articles. But TinyPortal has an advanced article system.

So SimplePortal can serve quite the same page with an easier management interface. But if you are looking for a more modular extension TinyPortal might be a better choice for you.

Have a look at both of their sites www.simpleportal.net and www.tinyportal.net where you can download and test them.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Manu.G on March 25, 2009, 06:09:39 PM
Quote from: karbaciun on March 24, 2009, 12:41:50 PM
hi

tinyportal or simple portal are beter? why?

I personal dislike to compare things. I think it's up what you want to have and need.
I think both portals are great, but for people like me, with no php-knowledge or those who don't
know cms-stuff, as me too, Simpleportal is the best solution. ;)

I tried to use tinyportal and mkportal, but I gave up to get them work. I saw simpleportal, downloaded it, installed it via package-manager and felt in love with it. :D
Title: Re: SimplePortal (2.1.1 Released!)
Post by: karbaciun on March 28, 2009, 09:20:46 AM
Quote from: Manu0372 on March 25, 2009, 06:09:39 PM
Quote from: karbaciun on March 24, 2009, 12:41:50 PM
hi

tinyportal or simple portal are beter? why?

I personal dislike to compare things. I think it's up what you want to have and need.
I think both portals are great, but for people like me, with no php-knowledge or those who don't
know cms-stuff, as me too, Simpleportal is the best solution. ;)

I tried to use tinyportal and mkportal, but I gave up to get them work. I saw simpleportal, downloaded it, installed it via package-manager and felt in love with it. :D

thank you ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: mrtrc266 on March 28, 2009, 10:54:34 PM
Hello, I just upgrade to RC1 from 118 and all went well...

But it you take a look at the first pic below before I log in to my site this is what it looks like.

And after I log in, in the 2nd pic the User Info Block I dont see the word "Posts" This is all I see : 1137

2 pics attatched.

Thank you very much in advance for your assistance.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on March 29, 2009, 03:50:01 PM
if that is a custom theme you must edit it with what mods you have so they will show up..

failure to do this will give you what you are seeing..

if you want to know what edits, read this: http://docs.simplemachines.org/index.php?topic=402
Title: Re: SimplePortal (2.1.1 Released!)
Post by: flamechica on March 29, 2009, 03:54:13 PM
I use SMF 1.1.8 and I have added the Calendar Block to my forum. For some reason my Calendar Block has stopped showing upcoming holidays and such. It showed St. Patrick's day awhile back. I have it set to show 7 days in advance and it is not showing April Fool's on there, even though it is on the calendar and displayed on the board index as a holiday.

I would like to let the developer know that when there are no events to display it says "Sorry! There are no calendar items avaible at the moment."   Available is spelled wrong...
Title: Re: SimplePortal (2.1.1 Released!)
Post by: mrtrc266 on March 29, 2009, 11:59:19 PM
Quote from: SmokyBlue on March 29, 2009, 03:50:01 PM
if that is a custom theme you must edit it with what mods you have so they will show up..

failure to do this will give you what you are seeing..

if you want to know what edits, read this: http://docs.simplemachines.org/index.php?topic=402

Thanks Smoky, I do use a custom theme but I don't see any edits that require editing a theme. I didn't have to do any edits for the same theme in 1.1.8 ???
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on March 30, 2009, 12:28:25 AM
She's saying that for any mod, including simple portal, if there are changes made to files inside the /themes/default folder and the theme your using has it's own version of those same files in the themes/your_theme folder, you'll need to edit those files manually with the same edits that the mod does to the ones for the default theme.

Ex:

SimplePortal makes changes to the index.template.php, Display.template.php, and the Who.English.php files for the default theme which is in the /themes/default directory (some in sub directories).

For themes other than default where you find those same files you will need to make those identical edits to those files yourself. On the page for the mod, in this instance SimplePortal, you see in the upper left the package parser. You click the button for the version of the mod you will be using and click submit. It will show you exactly what is being done to the DEFAULT theme by installing that mod. Any time you see an edit for any file inside any folder under themes/default, you check the folder for your theme and see if it uses it's own copies of any of those files and duplicate the edits to them that you saw in the package parser for the default theme.

WHEW! I hope all that made sense. Make sure you back up the files you're editing BEFORE doing your edits, especially if your inexperienced in so doing. If anything goes awry you can just copy back the original unedited file/s. It's not too difficult once you get a grip on how stuff works, but it doesn't take much to be out of place for all manner of havoc to be wreaked upon your forum so be careful and keep those back ups.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: mrtrc266 on March 30, 2009, 12:50:09 AM
Thanks for the response,

I understand what she's saying I have added TONS of Mods to TONS of Themes but these are the only Theme Edits aside from addiing some pics and the language edits.

./Themes/default/Display.template.php
./Themes/default/css/dropmenu.css
./Themes/default/languages/Who.english.php

My theme does NOT have a language folder, it uses the default, according to the Parser my theme does NOT have any files to edit???
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on March 31, 2009, 05:06:42 PM
so mrtrc, you are saying its based off the default?

is there an index.template.php file there? what theme is it?

more info you give the better the help you will get..

side note: hey Blue.. if you could make it to where the blocks can have option of name or no name would be good..

my blog in a block isnt looking to hot with the name twice..  :'(
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Tiribulus on March 31, 2009, 05:36:31 PM
Quote from: mrtrc266 on March 30, 2009, 12:50:09 AM
Thanks for the response,

I understand what she's saying I have added TONS of Mods to TONS of Themes but these are the only Theme Edits aside from addiing some pics and the language edits.

./Themes/default/Display.template.php
./Themes/default/css/dropmenu.css
./Themes/default/languages/Who.english.php

My theme does NOT have a language folder, it uses the default, according to the Parser my theme does NOT have any files to edit???

oh...   nevermind :)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on March 31, 2009, 05:59:51 PM
/me kicks back waiting on a blue dream...  :-\ ;)
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Yağız... on March 31, 2009, 06:24:43 PM
Quote from: SmokyBlue on March 31, 2009, 05:06:42 PM
side note: hey Blue.. if you could make it to where the blocks can have option of name or no name would be good..

my blog in a block isnt looking to hot with the name twice..  :'(
This will be available in the new version.
Title: Re: SimplePortal (2.1.1 Released!)
Post by: mrtrc266 on April 01, 2009, 12:49:13 AM
Quote from: SmokyBlue on March 31, 2009, 05:06:42 PM
so mrtrc, you are saying its based off the default?

is there an index.template.php file there? what theme is it?

more info you give the better the help you will get..

side note: hey Blue.. if you could make it to where the blocks can have option of name or no name would be good..

my blog in a block isnt looking to hot with the name twice..  :'(

Hi Smoke, sorry for the lack of info.

Yes there is an index.template.php file and I'm using the Extreme 6 Themes (http://custom.simplemachines.org/themes/index.php?lemma=1078)

SP 2.1.1 and SMF RC1

And here's my site Monsters Mansion (http://monsters-mansion.com/index.php)

Thanks for the help
Title: Re: SimplePortal (2.1.1 Released!)
Post by: Smoky "Rider" Blue on April 01, 2009, 01:03:24 AM
you need to make the right theme edits so you wont have any errors in your log..

read the file that is in the sp mod package for your version install2.xml (or use the parser, located under the download button on the site here for sp) either way will work..

and follow the directions, of what to put where, and you can find that in the package_info.xml file

if you have issues with doing that, then drop me a pm if you want me to fix it.. also you might want to size your theme, in a 1024 screen size, your right hand blocks are overlapping, while fine on a 1660px screen.. you want to make your site as good looking for all members/guests with varying screens..

if you need further help with any mods, more than welcome to drop by my site..

hope this helps, its the same info spread thru this thread, but i know how confusing things can be when you are just starting out ;)

i wish you good luck!

Quote from: Yağız... on March 31, 2009, 06:24:43 PM
Quote from: SmokyBlue on March 31, 2009, 05:06:42 PM
side note: hey Blue.. if you could make it to where the blocks can have option of name or no name would be good..

my blog in a block isnt looking to hot with the name twice..  :'(
This will be available in the new version.

/me heads off to pout..  :'(
Title: Re: SimplePortal (2.1.1 Released!)
Post by: flamechica on April 01, 2009, 06:48:19 AM
Quote from: flamechica on March 29, 2009, 03:54:13 PM
I use SMF 1.1.8 and I have added the Calendar Block to my forum. For some reason my Calendar Block has stopped showing upcoming holidays and such. It showed St. Patrick's day awhile back. I have it set to show 7 days in advance and it is not showing April Fool's on there, even though it is on the calendar and displayed on the board index as a holiday.

I would like to let the developer know that when there are no events to display it says "Sorry! There are no calendar items avaible at the moment."   Available is spelled wrong...

Anyone going to help with my calendar block prob????
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 02, 2009, 07:06:46 AM
The SimplePortal Team is now celebrating the long awaited release of SimplePortal 2.2! The build up to this release has been long and we would like to thank our many dedicated supporters for their patience and continued support during the development of this version. The SimplePortal Team is as excited as you are by this release, so we hope that you enjoy using it!

What's new?

The richest world of blocks
With 30 built-in blocks, SimplePortal now serves you the richest world of blocks. It includes 27 highly customizable predefined blocks, and 3 types of custom content based blocks (for BBC, HTML and PHP content). With this version, every single block has been re-coded so that it is more efficient and better meets your needs.

Your portal is where you want it!
Our new version of SimplePortal introduces two new portal modes; "Standalone" and "Integration". Turn your forum into a CMS with "Frontpage" mode, switch to the "Integration" mode to use blocks in forum, or use the revolutionary "Standalone" mode to run your portal in a different directory. Your portal is where you want it!

SimplePortal is the first portal modification for SMF with full-standalone support!

Full control over block styles
The new Advanced Style Options give you full control over the styles of each block in your portal. You can now select default classes, set custom styles, or choose not to display title and/or body at all!

Intelligent blocks
SimplePortal introduces a new term to the world of portals: Intelligent blocks. Intelligent blocks are capable of detecting relevant mods and displaying information from them. Currently, SimplePortal includes 5 intelligent blocks and supports 7 popular SMF mods: Users Online Today, SMF Gallery, SMF Media Gallery, SMF Arcade, E-Arcade, SMF Shop and zCommunity!

Custom Display Options
SimplePortal 2.2 also comes with Custom Display Options. This feature allows you to fully control the display options of a block, allowing you to choose exactly where your blocks are shown. With this new powerful system, you will be able to choose which blocks are shown for custom actions and dynamic or static URLs!

Database Tools
The new SimplePortal Database Tool is designed to fix any database issues related to SimplePortal in seconds! This will also allow you to upgrade your portal database in the future, instead of uninstalling and reinstalling it!

Right to Left Language Support
Version 2.2, now fully supports RTL (right to left language) with special CSS designed for this purpose. Although we don't have any Right to Left Language translations, if you are interested in translating SimplePortal into your language, contact Jade (http://simpleportal.net/index.php?action=profile;u=7) or LHVWB (http://simpleportal.net/index.php?action=profile;u=4) via PM.


Download SimplePortal 2.2 Now!
- from The official SMF Mod site (http://custom.simplemachines.org/mods/index.php?mod=1104).
- or from Our very own SimplePortal downloads page (http://simpleportal.net/index.php?action=download).


Upgrading from older versions
There has been a large development jump with many code and feature changes. Because of this, you will have to uninstall older versions of SimplePortal, if you have any installed. None of your SimplePortal data will be lost from SimplePortal 2.x versions, as the uninstall process will preserve your settings, blocks and articles.

Three easy steps to upgrade your portal!

What's in store for the future?
As of now, SimplePortal has a fairly developed block system. So, in further versions the focus will be on making SimplePortal more modular. This will include an advanced article system, custom pages, and possibly a shoutbox. Of course, your feedback will guide the direction of any future release.

Thanks for reading! We hope that you enjoy using SimplePortal as much as we continue to enjoy creating and supporting it!

(http://www.simpleportal.net/sp/r221.PNG) (http://www.simpleportal.net/sp/r222.PNG) (http://www.simpleportal.net/sp/r223.PNG)

(http://www.simpleportal.net/sp/r224.PNG) (http://www.simpleportal.net/sp/r225.PNG) (http://www.simpleportal.net/sp/r226.PNG)

Regards,
The SimplePortal Team
Title: Re: SimplePortal (2.2 Released!)
Post by: Smoky "Rider" Blue on April 02, 2009, 07:37:53 AM
thanks Blue.. now i can fix that front page of mine..  O:)
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on April 02, 2009, 11:02:39 AM
It gave me this:

Database Error
Unknown column 'sp_smfGallery' in 'where clause'
File: /srv/www/htdocs/Packages/temp/install1-1.php
Line: 566


In the smf interface when I installed the new version. No failures either way, uninstalling or installing the new version. Anybody with some insight would be highly regarded.
Thanks
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 02, 2009, 11:13:28 AM
We had to replace the install script inside the package due to a bug in block update query. This only affects SMF 1.1 version with SimplePortal installed before. If you didn't get this error while installing, you do not have to do anything.

Database Error
Unknown column 'sp_smfGallery' in 'where clause'
File: /srv/www/htdocs/Packages/temp/install1-1.php
Line: 566


If you get this error, download the package again and use it.
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on April 02, 2009, 11:29:17 AM
Quote from: Blue Dream on April 02, 2009, 11:13:28 AM
We had to replace the install script inside the package due to a bug in block update query. This only affects SMF 1.1 version with SimplePortal installed before. If you didn't get this error while installing, you do not have to do anything.

Database Error
Unknown column 'sp_smfGallery' in 'where clause'
File: /srv/www/htdocs/Packages/temp/install1-1.php
Line: 566


If you get this error, download the package again and use it.

If I'm understanding you correctly it did give me the error while installing. I uploaded it, no failures, clicked install and that was the next thing I saw in the install dialog. The home page was then the forum index instead of SP.
Anyway,
I deleted it and went to install 2.1.1 for now and then it gave me this:

Apply Filter: Only show the error messages of this URL  http://gregnmary.gotdns.com:8080/index.php?action=packages;sa=install2;package=SimplePortal2.1.1.zip
Apply Filter: Only show the errors with the same message
Database Error: Column count doesn't match value count at row 1
File: /srv/www/htdocs/Packages/temp/install1-1.php
Line: 171


Had to restore from last nights backup and all seems to be well at the moment. Wait a second, are you going to tell me that I needed to go into the CP and enable it again? :-[
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 02, 2009, 11:33:57 AM
Well, all you have to do is uninstall 2.1.1 completely, download a new 2.2 package and install it. The replaced package should have solved your issue.
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on April 02, 2009, 11:44:17 AM
Quote from: Blue Dream on April 02, 2009, 11:33:57 AM
Well, all you have to do is uninstall 2.1.1 completely, download a new 2.2 package and install it. The replaced package should have solved your issue.

I ran it again after uninstalling 2.1.1 with no issues and it again gave this error after clicking the install button

http://gregnmary.gotdns.com:8080/index.php?action=packages;sa=install2;package=SimplePortal_2.2.zip
Database Error: Unknown column 'sp_smfGallery' in 'where clause'
File: /srv/www/htdocs/Packages/temp/install1-1.php
Line: 566


I have no SP admin option in the CP and it appears SP is not installed at all. This is SMF 1.1.8 btw. Is it possible an edit I did a while back makng the gallery button in the nav bar go to media gallery could be causing this?
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 02, 2009, 11:46:34 AM
No, you just still have the old package on your server. Do this and you should be fine:

1) Go to mod page and download SimplePortal_2.2.zip
2) Admin CP >> Packages >> Browse Packages
3) Delete SimplePortal 2.2.
4) Admin CP >> Packages >> Download Packages
5) Upload the package you just downloaded from mod site.
6) Install it.

Everything should be fine then. If you still get error after these, you can pm me an admin account to check it if you want to.
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on April 02, 2009, 11:48:59 AM
Quote from: Blue Dream on April 02, 2009, 11:46:34 AM
No, you just still have the old package on your server. Do this and you should be fine:

1) Go to mod page and download SimplePortal_2.2.zip
2) Admin CP >> Packages >> Browse Packages
3) Delete SimplePortal 2.2.
4) Admin CP >> Packages >> Download Packages
5) Upload the package you just downloaded from mod site.
6) Install it.

Everything should be fine then. If you still get error after these, you can pm me an admin account to check it if you want to.

I will do so sir. Thanks. I'll let ya know.

EDIT: Sorry, for step 2 are you saying to just delete it or uninstall it first?
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 02, 2009, 11:49:15 AM
Okay, good luck! :)
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on April 02, 2009, 01:47:56 PM
Turns out I had 2 copies of the 2.2 package in the folder. Thanks to Blue Dream for the help. All is well now. I did have to do some quick edits to recover the forum button in the top nav bar and change the margin back to auto for it to align to center, but no big deal at all. Looks good. When I get a chance I'll dig around in the settings.
Title: Re: SimplePortal (2.2 Released!)
Post by: fext on April 03, 2009, 09:21:13 AM
Quick couple of questions on the new upgrade (Awesome BTW!)


// Show the [home] button.
echo '<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';

        //the [forum] button
        if(!empty($context['portalactive']))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="' , $current_action == 'forum' ? 'current' : '' , '"><a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a></li>';


How would I adapt the above - I have altered all the other bits as per the manual install instructions?


Will fixing the index.template file fix both issues?

I have attached my index.template.php file
Title: Re: SimplePortal (2.2 Released!)
Post by: Ncen on April 03, 2009, 09:48:57 AM
What is it that makes it remember which blocks has been closed/open? I'm curious because for one of my themes i want to code in a block manually. :) Or is this a secret? ^^

Thanks.

By the way; of course i'll also be using the mod. :)
Title: Re: SimplePortal (2.2 Released!)
Post by: Filipina on April 04, 2009, 12:45:50 AM
Looks great thanks for the update!  Two question I cannot figure out. 

1) My who is online block now displays users online today too, causing this scrolling thing. How can I just show users online now like before and remove the users online today part? 

2) I added the latest members block with avatars but the avatars are not being displayed. Could this have anything to do with me moving the avatars out of the attachment directory?

Thanks for any assistance :)
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 04, 2009, 05:20:45 AM
Youngiiie:

You got the answer on simpleportal.net.

Innocenzia:

JavaScript is in the header, sp_collapseBlock() function. It is added with sportal_init() function SPortal(1-1|2).php file.

Filipina:

1) There is an option to remove UOT mod support with a single line edit in SPortal(1-1|2).php file.

Find:

//return;

Replace:

return;

3) It no longer displays avatar. Description for that block is wrong actually. We may include this in later versions though.
Title: Re: SimplePortal (2.2 Released!)
Post by: Filipina on April 04, 2009, 09:43:32 AM
ok thanks Blue Dream I have made the edit and understand the second part about the avatars :)

1) I changed that code in the SPortal1-1.php file which got me down to one scroll bar instead of two.  I remember the box use to just expand long enough to show the number of users currently online v/s having a scroll bar. Another edit to SPortal1-1.php?   

2) ok I got some strange blank space on right side. The portal is enabled as the front page of my forum.  I have not altered this setting. However, now when I go inside threads they are pushed to the left and the right has empty space. This is only happening in the threads.  In case it matters the "Display Blocks in Forum" settings is not checked just like the previous version.

It goes away when I disable the portal. I tried enabling the portal but disabling all the blocks but the problem continues. The space is sometimes smaller or larger depending on the thread I am in but always on the right.

Edit ok this is so weird now I have no clue. If I am signed in as ADMIN I see the big open space on right which causing everything pushed to the left. If I am signed in as Global Mod there are no problems. Also, some people with IE are reporting seeing this problem while others do not.  :-\ 
Title: Re: SimplePortal (2.2 Released!)
Post by: PRaDiUS on April 04, 2009, 02:31:14 PM
Where do I get the SimplePortal block for SMF Media Gallery?
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on April 04, 2009, 03:10:22 PM
Quote from: PRaDiUS on April 04, 2009, 02:31:14 PM
Where do I get the SimplePortal block for SMF Media Gallery?

I don't remember exactly how I did it at the moment, but I used the regular gallery block and add an "m" to a couple places. might've been just one, and it works fine. I'll see if I can dig it up if nobody else answers before then.

Don't know if this exactly what you're asking about and I am no expert, but this got my galley block pointing at media gallery.

QuoteOn line 1773 of sportal1-1.php added the  m to this

<a href="' . $scripturl . '?action=mgallery

piece and that block at least now does what I want.
Title: Re: SimplePortal (2.2 Released!)
Post by: candidosa2 on April 04, 2009, 05:31:01 PM
Good work
thank you
Title: Re: SimplePortal (2.2 Released!)
Post by: Blinker on April 04, 2009, 09:05:47 PM
Hi guys, I really need some help here.

I uninstalled 2.1.1, that went fine and I was ready to install 2.2. I uploaded the package and got no "Test Failed" errors prior to applying the mod.

After I clicked apply mod and waited about 10 secs (the usual) I got this 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 '(4) NOT NULL default ''' at line 2
File: /home/content/x/x/x/xxxxxxxx/html/forum/Packages/temp/install1-1.php
Line: 852

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


I clicked the 'back' link at the end of the error and checked my ftp. All the files are there and a random sampling of a couple of files (index.php & boardindex.php) shows the code has been inserted. My guess is whatever changes it makes to the DB have not been applied.

I tried a second time and got the same error. I have now deleted the package and rolled back to the backup created by the forum at the start of the install.

Any ideas?
Title: Re: SimplePortal (2.2 Released!)
Post by: Smoky "Rider" Blue on April 04, 2009, 09:16:11 PM
blinker, you will need to go into your myphpadmin and export the sp tables, then install the mod, drop the table sit installed and then readd yours..

it will work again and you keep your same info  ;)
Title: Re: SimplePortal (2.2 Released!)
Post by: Blinker on April 04, 2009, 09:31:04 PM
Hi SmokyBlue, thanks for the speedy reply.

I need to clarify a few things:

1. "export the sp tables" - do you mean export the 3 tables currently there from 2.1.1 (smf_sp_articles, smf_sp_blocks, smf_sp_categories)? If so, export them as sql to my PC?

2. "then install the mod" - won't it give me the same DB error? I don't see how I can drop the table it installs if the install doesn't even get far enough for it to create those tables.

3 "readd yours" - do you mean import them?

I have a fair bit of experience with mods and editing php files but very little with my DB and MPA. I hate to say it but I kinda need this stuff spelt out. :)
Title: Re: SimplePortal (2.2 Released!)
Post by: PRaDiUS on April 05, 2009, 03:01:59 AM
I got it now, thanks very much for your help.

Quote from: Tiribulus on April 04, 2009, 03:10:22 PM
I don't remember exactly how I did it at the moment, but I used the regular gallery block and add an "m" to a couple places. might've been just one, and it works fine. I'll see if I can dig it up if nobody else answers before then.

Don't know if this exactly what you're asking about and I am no expert, but this got my galley block pointing at media gallery.

QuoteOn line 1773 of sportal1-1.php added the  m to this

<a href="' . $scripturl . '?action=mgallery

piece and that block at least now does what I want.
Title: Re: SimplePortal (2.2 Released!)
Post by: learjet45 on April 05, 2009, 09:56:46 AM
ok. I just went to upgrade and I have one issue. I get a "Test Failed" for index.php. Should I go in and make the manual change from what is added/changed to 2.1.1 to before installing 2.1.1 and then should I uninstall 2.1.1. Then should I install 2.2?
Title: Re: SimplePortal (2.2 Released!)
Post by: Filipina on April 05, 2009, 11:55:20 AM
Quote from: learjet45 on April 05, 2009, 09:56:46 AM
ok. I just went to upgrade and I have one issue. I get a "Test Failed" for index.php. Should I go in and make the manual change from what is added/changed to 2.1.1 to before installing 2.1.1 and then should I uninstall 2.1.1. Then should I install 2.2?

Are you talking about the index.template.php file?
Title: Re: SimplePortal (2.2 Released!)
Post by: learjet45 on April 05, 2009, 01:56:26 PM
No. The Index.php file in the main forum directory.
Title: Re: SimplePortal (2.2 Released!)
Post by: karbaciun on April 07, 2009, 04:39:05 AM
I translate simple portal 2.1.1 to persian language

after install, my theme be left to right in IE but on the firefox and safari working good
provided my language is right to left

even befor add block and on the default theme
why?
and how solution this problem?

tnx a lot
Title: Re: SimplePortal (2.2 Released!)
Post by: Blinker on April 07, 2009, 05:02:21 AM
Hi guys, I'm still looking for help for my issue a few posts up. Please? My members want their portal back! :)
Title: Re: SimplePortal (2.2 Released!)
Post by: karbaciun on April 07, 2009, 05:10:27 AM
Quote from: Blinker on April 07, 2009, 05:02:21 AM
Hi guys, I'm still looking for help for my issue a few posts up. Please? My members want their portal back! :)

no understand :(
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 07, 2009, 10:44:25 AM
Quote from: Blinker on April 07, 2009, 05:02:21 AM
Hi guys, I'm still looking for help for my issue a few posts up. Please? My members want their portal back! :)

Can you pm me an admin account to check it?

Quote from: karbaciun on April 07, 2009, 04:39:05 AM
I translate simple portal 2.1.1 to persian language

after install, my theme be left to right in IE but on the firefox and safari working good
provided my language is right to left

even befor add block and on the default theme
why?
and how solution this problem?

tnx a lot

Where exactly the problem appears? Can you provide some screen shots?
Title: Re: SimplePortal (2.2 Released!)
Post by: karbaciun on April 07, 2009, 01:17:12 PM
after install simple portal the verificationcode image not loading in the registering page
on the all theme and all language setting
Title: Re: SimplePortal (2.2 Released!)
Post by: daveaite on April 08, 2009, 04:36:36 AM
I can't find the location of the button to:

-re-enable left side blocks
Title: Re: SimplePortal (2.2 Released!)
Post by: Robbo_ on April 08, 2009, 10:12:20 AM
Quote from: daveaite on April 08, 2009, 04:36:36 AM
I can't find the location of the button to:

-re-enable left side blocks
Go into simple portal -> configuration -> block settings to enable the blocks and the size of them.

Then go into simple portal -> blocks and make sure there are some left blocks to be shown.
Title: Re: SimplePortal (2.2 Released!)
Post by: tfs on April 08, 2009, 06:50:14 PM
Future birthdays...

I'm displaying a "Calendar Information" type block and would like it to show upcoming birthdays for the next month.  Currently it only shows a birthday if it's today.  I have "Events In Future:" set to 30.

Also, the verbage on the new "Calendar" type block seems to be wanting for days when there's no activities scheduled.  It just says "No calendar events were found" even though there are dates in the month that have an event.  There should be some indicator to the user that they need to click on BOLD numbers in the GUI calendar to see the scheduled activities for those dates.  Additionally, the BOLD numbers don't really grab the eye.  They should be color coded somehow to indicate that something's scheduled.
Title: Re: SimplePortal (2.2 Released!)
Post by: mrtrc266 on April 08, 2009, 07:21:42 PM
Quote from: tfs on April 08, 2009, 06:50:14 PM
Future birthdays...

I'm displaying a "Calendar Information" type block and would like it to show upcoming birthdays for the next month.  Currently it only shows a birthday if it's today.  I have "Events In Future:" set to 30.

Also, the verbage on the new "Calendar" type block seems to be wanting for days when there's no activities scheduled.  It just says "No calendar events were found" even though there are dates in the month that have an event.  There should be some indicator to the user that they need to click on BOLD numbers in the GUI calendar to see the scheduled activities for those dates.  Additionally, the BOLD numbers don't really grab the eye.  They should be color coded somehow to indicate that something's scheduled.

I agree with you 100% the old Custom Block Code was much better than the 2 calendar blocks that are now the default for SP 2.2. You can see it here

http://monsters-mansion.com/index.php
Title: Re: SimplePortal (2.2 Released!)
Post by: Afro on April 08, 2009, 07:24:14 PM
every other code installed on my indexphp except thie one

// Load some SP stuff.
sportal_init();.

That means the blocks cannot load.
what can i do?

i added the code manually but it collapsed the entire forum

with this error

Parse error: syntax error, unexpected $end in /home/afrowall/public_html/SSI.php on line 2115

help!
Title: Re: SimplePortal (2.2 Released!)
Post by: haito on April 08, 2009, 09:16:19 PM
ihave this error when unninstall 2.1.1


1. Execute Modification ./index.php Test failed
2. Execute Modification ./Sources/BoardIndex.php Test successful
3. Execute Modification ./Sources/Display.php Test successful
4. Execute Modification ./Sources/Load.php Test successful
5. Execute Modification ./Sources/ManagePermissions.php Test failed
6. Execute Modification ./Sources/QueryString.php Test successful
7. Execute Modification ./Sources/Recent.php Test successful
8. Execute Modification ./Sources/Subs.php Test failed
9. Execute Modification ./Sources/Help.php Test successful
10. Execute Modification ./Sources/ManageServer.php Test successful
11. Execute Modification ./Sources/Admin.php Test failed
12. Execute Modification ./SSI.php Test successful
13. Execute Modification ./Themes/default/index.template.php Test failed
14. Execute Modification ./Themes/default/Display.template.php Test successful
15. Execute Modification ./Themes/default/languages/Who.english.php Test successful
16. Execute Modification ./Themes/default/languages/Who.english-utf8.php Skipping file
17. Delete File ./Sources/SPortal1-1.php
18. Delete File ./Sources/SPortalAdmin1-1.php
19. Delete File ./Sources/Subs-SPortal1-1.php
20. Delete File ./Themes/default/SPortal1-1.template.php
21. Delete File ./Themes/default/SPortalAdmin1-1.template.php
22. Delete File ./Themes/default/SPortalBlocks1-1.template.php
23. Delete File ./Themes/default/languages/SPortal.english.php
24. Delete File ./Themes/default/languages/SPortal.english-utf8.php
25. Delete File ./Themes/default/languages/SPortalAdmin.english.php
26. Delete File ./Themes/default/languages/SPortalAdmin.english-utf8.php
27. Delete File ./Themes/default/languages/SPortalHelp.english.php
28. Delete File ./Themes/default/languages/SPortalHelp.english-utf8.php
29. Delete File ./Themes/default/images/arrow.gif
30. Delete File ./Themes/default/images/dot.gif
31. Delete File ./Themes/default/images/selected1.gif
Title: Re: SimplePortal (2.2 Released!)
Post by: daveaite on April 08, 2009, 10:58:36 PM
Quote from: Robbo_ on April 08, 2009, 10:12:20 AM
Quote from: daveaite on April 08, 2009, 04:36:36 AM
I can't find the location of the button to:

-re-enable left side blocks
Go into simple portal -> configuration -> block settings to enable the blocks and the size of them.

Then go into simple portal -> blocks and make sure there are some left blocks to be shown.

Thanks for the fast response. For some reason, when I uploaded simple portal 2.2, it never parsed in

'blocksettings' => array($txt['sp-adminBlockSettingsName']),
'articlesettings' => array($txt['sp-adminArticleSettingsName']),

into admin.php.

fixed.
Title: Re: SimplePortal (2.2 Released!)
Post by: willerby on April 09, 2009, 04:05:18 AM
Quote from: mrtrc266 on April 08, 2009, 07:21:42 PM
I agree with you 100% the old Custom Block Code was much better than the 2 calendar blocks that are now the default for SP 2.2. You can see it here

http://monsters-mansion.com/index.php

Do you have a link to that custom code that will work with SP2.2 and SMF2.0RC1?
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 09, 2009, 04:27:50 AM
Filipina:

1) Exactly.

Sources/SPortal1-1.php

Find and remove:

class="sp_online_flow"

2) Being discussed in other forum.

learjet45:

Just attach the file giving Test Failed error.

karbaciun:

Can you provide a link to your forum to check the issue? Does it turn back to normal when you uninstall the mod?

tfs:

Future events is just for events as it says in the title. It won't show Birthdays or Holidays.

By default, events, birthdays and holidays on that day are displayed under the calendar, unless user clicks on another date. What's wrong with that? It isn't a good idea to color days when there are 1000+ themes in the Theme Site.

sam_milla:

Well, we can't do anything to your file unless you attach it here. The only solution is to apply that change...

haito:

Attach the files that gives Test Failed error here and I'll remove the edits manually for you.

willerby:

I'm guessing that you can find the codes in this (http://simpleportal.net/index.php?topic=89.0) topic.
Title: Re: SimplePortal (2.2 Released!)
Post by: Afro on April 09, 2009, 04:46:42 AM
Ot blue, thanks.

here is my index.php.

its the only file that is giving test failed.

Title: Re: SimplePortal (2.2 Released!)
Post by: tfs on April 09, 2009, 12:40:40 PM
Quote from: Blue Dream on April 09, 2009, 04:27:50 AM
Future events is just for events as it says in the title. It won't show Birthdays or Holidays.

Then an option to add birthdays would be appropriate.

Quote
By default, events, birthdays and holidays on that day are displayed under the calendar, unless user clicks on another date. What's wrong with that? It isn't a good idea to color days when there are 1000+ themes in the Theme Site.

Giving the option to color is what is good.  I use the default theme, even though some others would be more fun, specifically so that I don't have to concern myself with theme problems.

When a user arrives on the page where the calendar is displayed, if there's nothing to display for today's date the calendar says "No calendar events were found", which verbally gives the sense that there's nothing in the calendar.  No events, birthdays or holidays.  Keep in mind that my forum is nearly 100% computer illiterate people.  They don't pick up on the fact that there's square brackets around the number which represents today's date, and if they did they still would probably not figure out that what that means is that they have to start clicking from date to date to look for stuff.  And since all of the dates are actually hyperlinks, the soft blue color does not stand out when it's bold, so those dates which actually have a event/birthday hardly stand out at all.

So what I'm saying is that the verbage is poor on the graphical calendar.  It should not say "No calendar events were found", but something more along the lines of "No calendar events were found for < date >", which gives a clue that there's other dates available which may have events.  And in this context, the word "EVENTS" is being used, but you indicate that there's a strict demarcation between events and birthdays.   Shouldn't it then be saying that "No calendar events, holidays or birthdays were found for < date >"?

My forum is 100% private, and the users are all members of the same family.   Aunts, uncles, cousins, siblings, grandparents & grandchildren, etc.  As a group they're not computer savvy, though I'm working on them little by little.  But one thing they appreciate is seeing up and coming birthdays, which is why this is important to me.
Title: Re: SimplePortal (2.2 Released!)
Post by: mrtrc266 on April 09, 2009, 01:17:59 PM
@ tfs, not sure if you saw my post above but there is a custom calendar php block that you can use to get what you're requesting, you can color code your events, holidays and birthdays so that the number on the calendar pops out and say "Hey, we have something going on this day!" Also you can set out how many days to show upcoming events and it shows the text below the calendar seperated by birthdays, events, holidays.

Once again you can see it HERE (http://monsters-mansion.com/index.php)

And you can get it here ( I use the DIN1031CalenderBlockV3.php )
http://simpleportal.net/index.php?topic=89.msg5205#msg5205

Hope that helps
Title: Re: SimplePortal (2.2 Released!)
Post by: tfs on April 09, 2009, 03:21:12 PM
Quote from: mrtrc266 on April 09, 2009, 01:17:59 PM
@ tfs, not sure if you saw my post above but there is a custom calendar php block that you can use to get what you're requesting, you can color code your events, holidays and birthdays so that the number on the calendar pops out and say "Hey, we have something going on this day!" Also you can set out how many days to show upcoming events and it shows the text below the calendar seperated by birthdays, events, holidays.

Once again you can see it HERE (http://monsters-mansion.com/index.php)

And you can get it here ( I use the DIN1031CalenderBlockV3.php )
http://simpleportal.net/index.php?topic=89.msg5205#msg5205

Hope that helps

Indeed, that's much nicer.  Thanks!  It lets me customize the text for when there's no activity on a particular date.  I changed it to "No entries for this date."

Now I'm on a hunt for a way to show a list of the next 30 days worth of events and birthdays, and make it nest in just below the custom PHP that you gave me above.
Title: Re: SimplePortal (2.2 Released!)
Post by: mrtrc266 on April 09, 2009, 03:37:40 PM
Glad you like it, I find it much more functional as well. ;)

You should be able to set this out to whatever you like

//How many day in future should be shown in the events on today? (If you disable today nothing will work)
$eventes_future = 5;
Title: Re: SimplePortal (2.2 Released!)
Post by: tfs on April 09, 2009, 03:46:21 PM
Quote from: mrtrc266 on April 09, 2009, 03:37:40 PM
Glad you like it, I find it much more functional as well. ;)

You should be able to set this out to 30

//How many day in future should be shown in the events on today? (If you disable today nothing will work ;D)
$eventes_future = 5;


The first thing I did was to set that to 30.  I wonder if you'd know how I can get it to show future birthdays?

I posted a note at simpleportal.net about a glitch I seem to have found, where not all events are being displayed.
Title: Re: SimplePortal (2.2 Released!)
Post by: willerby on April 09, 2009, 04:27:37 PM
Quote from: mrtrc266 on April 09, 2009, 03:37:40 PM
Glad you like it, I find it much more functional as well. ;)

You should be able to set this out to whatever you like

//How many day in future should be shown in the events on today? (If you disable today nothing will work)
$eventes_future = 5;


Thanks for the link - that's one cool calendar block.
Title: Re: SimplePortal (2.2 Released!)
Post by: learjet45 on April 09, 2009, 11:24:37 PM
I believe this is the correct file:
Title: Re: SimplePortal (2.2 Released!)
Post by: Blinker on April 10, 2009, 02:22:48 AM
For original post see: http://www.simplemachines.org/community/index.php?topic=227599.msg2003956#msg2003956

I dropped the 3 SP tables from my DB before attempting another 2.2 install.

The problem re-occurred, :( with a similar error message:

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 '(4) NOT NULL ,
`force_view` tinyint(2) NOT NULL default '0',

File: /home/content/x/x/x/xxxxxxxx/html/forum/Packages/temp/install1-1.php
Line: 784

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


Quote from: Blue Dream on April 07, 2009, 10:44:25 AM
Quote from: Blinker on April 07, 2009, 05:02:21 AM
Hi guys, I'm still looking for help for my issue a few posts up. Please? My members want their portal back! :)

Can you pm me an admin account to check it?

Thanks for the offer Blue Dream, and as much as I'd love the help, I run a private forum and I can't give you access.

What else could I be doing to fix this?

Edit: Not sure if this helps but I successfully installed 2.2 on my 2.0 RC1 test forum. It's on the same hosting server but runs it's own DB. I've noticed it's running php5 whereas my 1.1.8 is on php4. Would php4 be causing this?
Title: Re: SimplePortal (2.2 Released!)
Post by: Blinker on April 11, 2009, 08:45:48 PM
Managed to get 2.2 installed on my localhost test forum that uses Vertigo. I have a feeling this has something to do with MySQL now, not php.

My live forum is on v4 for php and MySQL, whereas my localhost is on v5 for both.

Please can someone help?

BTW I noticed that 2.2 adds two extra tables to the DB - functions and parameters.
Title: Re: SimplePortal (2.2 Released!)
Post by: Smoky "Rider" Blue on April 11, 2009, 11:14:39 PM
you might want to ask your host to up the version of your php Blinker..  ;)
Title: Re: SimplePortal (2.2 Released!)
Post by: R.Bourne on April 11, 2009, 11:16:22 PM
Excellent MOD, folks. Nice, clean and extremely easy to use and configure. We switched to this MOD after about 2 months playing with TinyPortal which unfortunately did not meet our expectations.

FYI, our SMF version is 1.1.8.

Thanks again! :)
Title: Re: SimplePortal (2.2 Released!)
Post by: minos on April 12, 2009, 01:55:46 AM
there's a way to select just a few boards from boardnews block?


thanks
Title: Re: SimplePortal (2.2 Released!)
Post by: Nathaniel on April 12, 2009, 02:13:31 AM
@minos,

Have a look at the topic below:
http://simpleportal.net/index.php?topic=1927.msg13132#msg13132
Title: Re: SimplePortal (2.2 Released!)
Post by: minos on April 12, 2009, 03:27:56 AM
thanks...

great portal
Title: Houston, we have a problem!
Post by: R.Bourne on April 12, 2009, 03:55:25 AM
OK, after a few hours testing, here is an update!

We've disabled all the forum integrations for this MOD as we don't require them. On the portal page (front page), we have calendar and forum staff block as well as the main custom HTML article enabled. That's all.

SMF version is 1.1.8 and the theme is helios_multi11final.

The screen capture of the issue is attached.

The following browsers behave correctly:
Safari 3.xx (Windows and OS X), Firefox 3.xx (Windows/OS X/Linux), IE 8 (Compatibility mode DISABLED)


The following browsers have issues:
Camino 1.6.7 (OS X), IE 8 (Compatibility mode ENABLED)

As you know, there is a problem with IE 8 and SMF as discussed in this forum. So, we need to enable this option. Or, as suggested by someone else,  this line can also be added to index.template.php file (<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />).

IF, we check off the "Maintenance Mode" for the MOD, things are back to normal!

Any suggestions, please?


EDIT #1 ---> Looks like this issue has been already reported here http://www.simplemachines.org/community/index.php?topic=227599.msg2003227#msg2003227

EDIT #2 ---> When the portal is in "Maintenance Mode", the Admin or Global Moderators don't have this issue using any browsers.

EDIT #3 ---> (FINAL!), we decided to uninstall this MOD as well. However, I leave my comment as a reference in case the developer/s would like to fix the issues.

As one general suggestion, which in fact applies to the majority of MODs out there, please .... PLEASE ... allow a complete cleanup after uninstalling your MODS. Considering the size of MySQL databases, even 1 MB data is too much when the MOD is no longer installed. Thanks for your attention.
Title: Re: SimplePortal (2.2 Released!)
Post by: Afro on April 12, 2009, 07:41:16 AM
How and what file do i edit to make the TOP BOARDS show only the boards instead of also showing the number of posts and topics?


I mean where it says

SPORTS -  topics 44, posts 97

I just want it to show SPORTS
Title: Re: SimplePortal (2.2 Released!)
Post by: Walgermo on April 12, 2009, 01:13:49 PM
Hi

Im using smf 2.0rc1 and sp 2.2.

First i want to say that i like simple portal more and more for every day!! great job  ;)

But! i got some errors trying to display rss feed blocks!

i got one feed to work (english):
http://www.powerliftingwatch.com/node/feed

but when im trying to add a new feed from a norwegian site:
http://www.styrkeloft.no/index.php?format=feed&type=rss

i get the following error: XML error: Invalid character at line 6

and a another feed i like to add:
http://sesam.no/search/?c=m&x=0&y=0&q=styrkel%C3%B8ft+OR+benkpress&layout=rss

i get the following error: XML error: Invalid character at line 4

__________

The problem is to view æøå in the feeds

is there someway to edit the feed-code to encode this chars, or is it something else i can do?

someone please help :)
Title: Re: SimplePortal (2.2 Released!)
Post by: karbaciun on April 15, 2009, 09:48:00 AM
Quote from: karbaciun on April 07, 2009, 01:17:12 PM
after install simple portal the verificationcode image not loading in the registering page
on the all theme and all language setting

hi
too in simple portal 2.2
with uinstall the mod, the registering page is good. :(
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on April 17, 2009, 09:47:04 AM
Might as well post this over here too:
Can anybody think of a reason why when I put html in an html block all I get is the title bar? Existing blocks are working, new ones give me only the title bar. Even when I copy and paste the code from a working existing block the new block still gives me only the title bar.
Thanks

EDIT: I also can't edit existing blocks. I just tried and reduced it to only the title bar. This is brand new. I was playing with gadgets earlier today and they worked. I have changed nothing at all and there are no errors. Previews don't work either.

EDIT: If it's any clue I have a bunch of errors in my Apache log:
http://gregnmary.gotdns.com:8080/index.php?action=spadmin;area=blocks;sa=edit
[Thu Apr 16 23:47:40 2009] [error] [client 192.168.1.1] File does not exist: /srv/www/htdocs/\\\\\\"http:, referer: http://gregnmary.gotdns.com:8080/index.php?action=spadmin;area=blocks;sa=edit
[Thu Apr 16 23:48:35 2009] [error] [client 192.168.1.1] File does not exist: /srv/www/htdocs/\\"http:, referer:


Another EDIT: Alright folks, see those extra slashes that I just now noticed in the Apache errors above. They are being added when I either preview or add the block.
1> copy from source and paste into block editor.

2> Click either preview, add or edit the block.

3>extra slashes are spontaneously inserted into the code I pasted, seemingly after = signs and before " marks.

4>If I just click preview several times and build up these groups of several rogue slashes each and then manually backspace them all out and click edit the block works. If I manually edit them out without building up the groups they come back. It's possible I'm missing one before they become obvious by building several up :o

Somebody impress the livin hell outta me and tell me why this is so
Title: Re: SimplePortal (2.2 Released!)
Post by: dry3210 on April 17, 2009, 12:00:47 PM
Does simpleportal have a feature that allows you to link to a certain article category?  And then clicking it lists all the articles that are in that category?  Seems to be the only thing I'd want that it doesn't seem to have already but maybe I'm just missing it
Title: Re: SimplePortal (2.2 Released!)
Post by: Filipina on April 17, 2009, 03:54:26 PM
Quote from: R.Bourne on April 12, 2009, 03:55:25 AM

EDIT #1 ---> Looks like this issue has been already reported here http://www.simplemachines.org/community/index.php?topic=227599.msg2003227#msg2003227

EDIT #2 ---> When the portal is in "Maintenance Mode", the Admin or Global Moderators don't have this issue using any browsers.

That would be me but I am still trying to find a way to fix it. I spent a lot of time and love the Portal, I customized the Blocks, and my members all love it. I have issues in IE7 and IE8. Someone is trying to help me find a solution now and I will report back her if I get it fixed.   
Title: Re: SimplePortal (2.2 Released!)
Post by: R.Bourne on April 17, 2009, 04:32:44 PM
I just checked your web site with Safari and I was surprised to see the same exact problem with IE. The developer/s should certainly fix this as it's a big show-stopper.

As I mentioned before, I decided to uninstall the Portal as I had a feeling that this is going to take some time to get fixed.
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on April 17, 2009, 05:59:14 PM
I'm not having this issue either with IE7 or 8 with or without compatibility mode as either admin or regular user. I'm not trying to minimize it for you guys, but unless you can reproduce it on my site I can't make it happen. I don't know.
Title: Re: SimplePortal (2.2 Released!)
Post by: R.Bourne on April 17, 2009, 06:31:46 PM
Quote from: Tiribulus on April 17, 2009, 05:59:14 PM
I'm not having this issue either with IE7 or 8 with or without compatibility mode as either admin or regular user. I'm not trying to minimize it for you guys, but unless you can reproduce it on my site I can't make it happen. I don't know.

Thankfully, your site appears to be working fine. Good for you :)

I uninstalled it already so I really don't care but I compared your site with Filipina's and noticed couple of things:

1) On all message forums, you have this portal.css as stylesheet but not on Filipina's!

2) I think it might have something to do with the theme that you're using. Maybe, if you switch to default SMF, we could duplicate this issue. Then again, maybe not! Either case, I am out of here :D
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on April 17, 2009, 07:16:45 PM
Quote from: R.Bourne on April 17, 2009, 06:31:46 PM
Quote from: Tiribulus on April 17, 2009, 05:59:14 PM
I'm not having this issue either with IE7 or 8 with or without compatibility mode as either admin or regular user. I'm not trying to minimize it for you guys, but unless you can reproduce it on my site I can't make it happen. I don't know.

Thankfully, your site appears to be working fine. Good for you :)

I uninstalled it already so I really don't care but I compared your site with Filipina's and noticed couple of things:

1) On all message forums, you have this portal.css as stylesheet but not on Filipina's!

2) I think it might have something to do with the theme that you're using. Maybe, if you switch to default SMF, we could duplicate this issue. Then again, maybe not! Either case, I am out of here :D

I didn't mean it as a "Nah Nah Nah' Nah Nah" I was only trying to add some info that may help you guys get your issue resolved.
Title: Re: SimplePortal (2.2 Released!)
Post by: R.Bourne on April 17, 2009, 07:30:43 PM
LOL ... I know. And, I appreciate your time trying to help. :)
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on April 17, 2009, 07:37:44 PM
OK, you seemed a bit irritated near as that's able to be determined on a web forum. No trouble :)
Title: Re: SimplePortal (2.2 Released!)
Post by: R.Bourne on April 17, 2009, 08:10:23 PM
OK, now I understand. Let me clarify. The reason for my comment re: " .... I am out of of here" was because I already uninstalled this MOD, however, it was not only because of this issue. In my case, after testing it for a while, I figured we wouldn't need it. That's all.
Title: Re: SimplePortal (2.2 Released!)
Post by: HostDash on April 18, 2009, 02:05:35 AM
It's a great Portal I would highly suggest using if your looking for a portal. [Or TinyPortal].
Title: Re: SimplePortal (2.2 Released!)
Post by: darkacex on April 18, 2009, 10:07:59 PM
Hey, you know the line that divides the Topic and the post below it in board news? I have two of them. How do i remove one. Heres the link to my site.

http://www.rpg-rush.com/index.php
Title: Re: SimplePortal (2.2 Released!)
Post by: Filipina on April 22, 2009, 07:38:24 PM
Quote from: R.Bourne on April 12, 2009, 03:55:25 AM
The following browsers have issues:
Camino 1.6.7 (OS X), IE 8 (Compatibility mode ENABLED)

As you know, there is a problem with IE 8 and SMF as discussed in this forum. So, we need to enable this option. Or, as suggested by someone else,  this line can also be added to index.template.php file (<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />).

IF, we check off the "Maintenance Mode" for the MOD, things are back to normal!

Any suggestions, please?

[SiNaN] found the answer to the posts being squeezed to the left side with the big open space on the right.  I want to say thanks to him for his efforts and making my forum look right again. It has to do with the Ignore Users Mod. I have it, and  R.Bourne I think you have this Mod too.

This all goes back to my post here

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

Sources/Display.php

Code: (Find)

//-Ignore MOD- START
$context['html_headers']  = '


Code: (Replace With)
//-Ignore MOD- START
$context['html_headers']  .= '


Yest there is a difference if you look closely and that little difference fixed my forum!
Title: Re: SimplePortal (2.2 Released!)
Post by: orelanic on April 23, 2009, 07:41:44 AM
Very nice portal.
Is there a basic user guide for noobs :)
I just need to find out some info on what does what when and how stuff.
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 23, 2009, 07:48:12 AM
Try the demo to see how it works: http://demo.simpleportal.net
Title: Re: SimplePortal (2.2 Released!)
Post by: Shades. on April 25, 2009, 02:42:21 PM
How can I make it so that the boxes for new posts on the portal page don't show the coding from the post? (See attachment to see what I'm talking about)
Title: Re: SimplePortal (2.2 Released!)
Post by: mpforum on April 26, 2009, 12:28:30 AM
Need a bit of advice.

I set up a HTML block and I placed a picture and linked it to another site (www.rapidbikes.com.au (http://www.rapidbikes.com.au)) through the HTML code.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

</head>

<body>
<div align="center"><a href="www.rapidbikes.com.au"><img src="/Ads/rapid/rapid.jpg" /></a>
</body>
</html>


Problem is, the link points to http://www.mpforum.com.au/www.rapidbikes.com.au (http://www.mpforum.com.au/www.rapidbikes.com.au)

How can I fix this?

Thanks in advance,
Dean.
Title: Re: SimplePortal (2.2 Released!)
Post by: candidosa2 on April 26, 2009, 12:40:02 AM
let me check
but you puty wrong cod to html
Title: Re: SimplePortal (2.2 Released!)
Post by: mrtrc266 on April 26, 2009, 10:37:11 AM
Quote from: mpforum on April 26, 2009, 12:28:30 AM
Need a bit of advice.

I set up a HTML block and I placed a picture and linked it to another site (www.rapidbikes.com.au (http://www.rapidbikes.com.au)) through the HTML code.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

</head>

<body>
<div align="center"><a href="www.rapidbikes.com.au"><img src="/Ads/rapid/rapid.jpg" /></a>
</body>
</html>


Problem is, the link points to http://www.mpforum.com.au/www.rapidbikes.com.au (http://www.mpforum.com.au/www.rapidbikes.com.au)

How can I fix this?

Thanks in advance,
Dean.

Try using just this
<p align="center"><a href="http://www.rapidbikes.com.au/home.php"><img src="/Ads/rapid/rapid.jpg" /></a>
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 27, 2009, 05:16:40 AM
Quote from: BoZilla on April 25, 2009, 02:42:21 PM
How can I make it so that the boxes for new posts on the portal page don't show the coding from the post? (See attachment to see what I'm talking about)

This will be fixed in the new bug fix version, which will be out very very soon.
Title: Re: SimplePortal (2.2 Released!)
Post by: Shades. on April 27, 2009, 11:32:18 AM
Quote from: Blue Dream on April 27, 2009, 05:16:40 AM
Quote from: BoZilla on April 25, 2009, 02:42:21 PM
How can I make it so that the boxes for new posts on the portal page don't show the coding from the post? (See attachment to see what I'm talking about)

This will be fixed in the new bug fix version, which will be out very very soon.

Great, Thanks!
Title: Re: SimplePortal (2.2 Released!)
Post by: mpforum on April 28, 2009, 09:52:51 AM
Quote from: mrtrc266 on April 26, 2009, 10:37:11 AM
Try using just this
<p align="center"><a href="http://www.rapidbikes.com.au/home.php"><img src="/Ads/rapid/rapid.jpg" /></a>


Cheers, worked perfectly.
Title: Re: SimplePortal (2.2 Released!)
Post by: Praatwurst on April 28, 2009, 03:06:15 PM
How do I enable the function to let users react on a Block? :)
Title: Re: SimplePortal (2.2 Released!)
Post by: Chair on April 28, 2009, 05:48:12 PM
Um, I'm getting parse errors whenever I use a php block...And I really wanna add the treasury mod to my homepage. How do I fix this?
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 29, 2009, 05:14:00 AM
Quote from: Praatwurst on April 28, 2009, 03:06:15 PM
How do I enable the function to let users react on a Block? :)

What do you mean by react?

Quote from: impennetrate on April 28, 2009, 05:48:12 PM
Um, I'm getting parse errors whenever I use a php block...And I really wanna add the treasury mod to my homepage. How do I fix this?

Would you copy here the codes you are using in a PHP block?
Title: Re: SimplePortal (2.2 Released!)
Post by: Chair on April 29, 2009, 05:28:49 AM
Any php script doesn't work...

global $sourcedir;
include("$sourcedir/DonationBlock.php");
Title: Re: SimplePortal (2.2 Released!)
Post by: PAPABEAR on April 29, 2009, 08:07:10 AM
thanks for this awesome mod
Title: Re: SimplePortal (2.2 Released!)
Post by: Praatwurst on April 29, 2009, 08:24:20 AM
Quote from: Blue Dream on April 29, 2009, 05:14:00 AM
Quote from: Praatwurst on April 28, 2009, 03:06:15 PM
How do I enable the function to let users react on a Block? :)

What do you mean by react?
Response, reply, react, answer, comments.

Kinda lika a blog where people can response on the written blogs ;)
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 30, 2009, 05:35:55 AM
Quote from: impennetrate on April 29, 2009, 05:28:49 AM
Any php script doesn't work...

global $sourcedir;
include("$sourcedir/DonationBlock.php");


Does this work:

global $sourcedir;
require_once($sourcedir . '/DonationBlock.php');


If doesn't would you copy the exact error here? If it says you have syntax errors in the code, you can disable the PHP validation by enabling the Admin > SimplePortal > General Settings > Disable PHP Validation option.

Quote from: Praatwurst on April 29, 2009, 08:24:20 AM
Quote from: Blue Dream on April 29, 2009, 05:14:00 AM
Quote from: Praatwurst on April 28, 2009, 03:06:15 PM
How do I enable the function to let users react on a Block? :)

What do you mean by react?
Response, reply, react, answer, comments.

Kinda lika a blog where people can response on the written blogs ;)

You can of course. You can see an example at www.simpleportal.net, the shoutbox block. It just has some PHP codes within. However, it really depends on what you want exactly.
Title: Re: SimplePortal (2.2 Released!)
Post by: Praatwurst on April 30, 2009, 11:43:26 AM
Quote from: Blue Dream on April 30, 2009, 05:35:55 AM

Quote from: Praatwurst on April 29, 2009, 08:24:20 AM
Quote from: Blue Dream on April 29, 2009, 05:14:00 AM
Quote from: Praatwurst on April 28, 2009, 03:06:15 PM
How do I enable the function to let users react on a Block? :)

What do you mean by react?
Response, reply, react, answer, comments.

Kinda lika a blog where people can response on the written blogs ;)

You can of course. You can see an example at www.simpleportal.net, the shoutbox block. It just has some PHP codes within. However, it really depends on what you want exactly.
It's the 'Read More | Write Comment' I mean,
How do I enable it?
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on April 30, 2009, 12:50:43 PM
They appear by default for articles and board news block.
Title: Re: SimplePortal (2.2 Released!)
Post by: Praatwurst on April 30, 2009, 02:25:52 PM
Quote from: Blue Dream on April 30, 2009, 12:50:43 PM
They appear by default for articles and board news block.
Can't find it anywhere, could you tell me step by step please? :)
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 01, 2009, 02:51:37 AM
Admin > SimplePortal > Blocks > Add Block > Board News

Configure the settings as you wish and click on "Add Block".
Title: Re: SimplePortal (2.2 Released!)
Post by: kkattfish on May 01, 2009, 04:27:39 PM
i'm using the camo theme, and my users and i don't have the link to forum from this portal.  am i missing something?  it does work with the default theme.
Title: Re: SimplePortal (2.2 Released!)
Post by: Chair on May 02, 2009, 09:35:52 AM
Nope that php script doesn't work either. Even if I disable php validation...

Also, custom html doesn't work because it automatically links within my site. So if i add this url: http://www.google.com/

i'll get this: http://www.mysite.com/http://www.google.com/

I think these two problems may be linked <.<
Title: Re: SimplePortal (2.2 Released!)
Post by: mrtrc266 on May 02, 2009, 10:17:22 AM
Quote from: impennetrate on May 02, 2009, 09:35:52 AM

Also, custom html doesn't work because it automatically links within my site. So if i add this url: http://www.google.com/ (http://www.google.com/)

i'll get this: http://www.mysite.com/http://www.google.com/ (http://www.mysite.com/http://www.google.com/)

I think these two problems may be linked <.<

For the custom HTML you have to use HTML

EXAMPLE: if you want http://www.google.com/ (http://www.google.com/) to be displayed as a link it would look like this
<a href="http://www.google.com/">http://www.google.com/</a>

Or if you want it to look like this Google (http://www.google.com/) then it would look like this
<a href="Google'>http://www.google.com/">Google</a>

Title: Re: SimplePortal (2.2 Released!)
Post by: Chair on May 02, 2009, 12:18:35 PM
I know that. I'm saying that if I enter
<a href="http://www.google.com/">http://www.google.com/</a>,

I will not get www.google.com

Instead, I get http://www.mysite.com/www.google.com
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on May 02, 2009, 04:56:44 PM
Quote from: impennetrate on May 02, 2009, 12:18:35 PM
I know that. I'm saying that if I enter
<a href="http://www.google.com/">http://www.google.com/</a>,

I will not get www.google.com

Instead, I get http://www.mysite.com/www.google.com

If you put exactly what you have, that is <a href="http://www.google.com/">http://www.google.com/</a> it should return exactly http://www.google.com as a live link.

This <a href="http://www.google.com/">google</a> would get you google as a live link to google. Your're not going to get www.google.com with any of the options you have here. That would be <a href="http://www.google.com/">www.google.com/</a>. If you do know all this and entering <a href="http://www.google.com/">google</a> does NOT  for instance get you google as a live link them something is indeed wrong.
Title: Re: SimplePortal (2.2 Released!)
Post by: Galaxy Computers on May 02, 2009, 07:18:18 PM
I am using a block and my images are to big how can I shrink the images to a smaller size?
Title: Re: SimplePortal (2.2 Released!)
Post by: Electro-X- on May 02, 2009, 07:43:04 PM
How do i add the forum button on the top menu on any other themes? The forum button only appear on the default " core" theme. Lets say how do i add the forum button to a babylon theme? or is it the same for any other theme?
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on May 02, 2009, 08:44:41 PM
Quote from: Electro-X- on May 02, 2009, 07:43:04 PM
How do i add the forum button on the top menu on any other themes? The forum button only appear on the default " core" theme. Lets say how do i add the forum button to a babylon theme? or is it the same for any other theme?

TRY THIS (http://simpleportal.net/index.php?topic=2126.0)
Title: Re: SimplePortal (2.2 Released!)
Post by: Galaxy Computers on May 02, 2009, 08:47:56 PM
I have setup a block and I have a image in the block and the image is way to big. How can I make the image smaller than the orignal size?
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on May 02, 2009, 09:00:10 PM
I'm not the most l33t codemeister here by any hilarious stretch , but this is might work if you play around with it:

<a href="URL"><img src="PATH TO IMAGE" border="XXX" width="XXX" height="XXX"/>

This would return an image that is also a clickable link. At least it does for me in global headers and footers.
Title: Re: SimplePortal (2.2 Released!)
Post by: Galaxy Computers on May 02, 2009, 09:37:30 PM
Quote from: Tiribulus on May 02, 2009, 09:00:10 PM
I'm not the most l33t codemeister here by any hilarious stretch , but this is might work if you play around with it:

<a href="URL"><img src="PATH TO IMAGE" border="XXX" width="XXX" height="XXX"/>

This would return an image that is also a clickable link. At least it does for me in global headers and footers.

I have done that it didn't work at all.
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on May 02, 2009, 11:42:54 PM
Quote from: mtechama on May 02, 2009, 09:37:30 PM
Quote from: Tiribulus on May 02, 2009, 09:00:10 PM
I'm not the most l33t codemeister here by any hilarious stretch , but this is might work if you play around with it:

<a href="URL"><img src="PATH TO IMAGE" border="XXX" width="XXX" height="XXX"/>

This would return an image that is also a clickable link. At least it does for me in global headers and footers.

I have done that it didn't work at all.

I don't know then chief. If you click on the link to my site and see the spam poison image, that's how I did that. Before posting my response to you above I played with the height and width and it worked for me. Of course that's not in a block, but it is html nonetheless and you'd think it should work. Somebody else I'm sure knows more than I do.
Title: Re: SimplePortal (2.2 Released!)
Post by: Galaxy Computers on May 02, 2009, 11:54:05 PM
Is there anyone else can help me on this?
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 03, 2009, 07:10:21 AM
Quote from: kkattfish on May 01, 2009, 04:27:39 PM
i'm using the camo theme, and my users and i don't have the link to forum from this portal.  am i missing something?  it does work with the default theme.

http://simpleportal.net/index.php?topic=148.0

Quote from: impennetrate on May 02, 2009, 09:35:52 AM
Nope that php script doesn't work either. Even if I disable php validation...

Also, custom html doesn't work because it automatically links within my site. So if i add this url: http://www.google.com/

i'll get this: http://www.mysite.com/http://www.google.com/

I think these two problems may be linked <.<

"Doesn't work." doesn't help us really. What is the result? An error?

Second issue about HTML block is related to your codes. I may help you if you can provide the full codes you are using.

Quote from: mtechama on May 02, 2009, 07:18:18 PM
I am using a block and my images are to big how can I shrink the images to a smaller size?

Paint, Photoshop, GIMP?

Quote from: Electro-X- on May 02, 2009, 07:43:04 PM
How do i add the forum button on the top menu on any other themes? The forum button only appear on the default " core" theme. Lets say how do i add the forum button to a babylon theme? or is it the same for any other theme?

http://simpleportal.net/index.php?topic=148.0
Title: Re: SimplePortal (2.2 Released!)
Post by: willerby on May 03, 2009, 11:32:59 AM
Quote from: mtechama on May 02, 2009, 08:47:56 PM
I have setup a block and I have a image in the block and the image is way to big. How can I make the image smaller than the orignal size?

Try www.shrinkpictures.com if you don't have image editing software...
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 04, 2009, 01:28:01 PM
hello,

what a wonderful portal, i have been looking for it for 2 months. very easy to use, the most userfriendly portal. i really love it.

but it is a pity that the image attachment blocks show only list of attachments, can you make it directly show images (optional it will be to set the image's width)? please.

Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 04, 2009, 01:30:47 PM
I add a php custom block, the php code is:

"require("/home/veryeuro/public_html/SSI.php");

ssi_recentPostsAttach();"

then when i run it, it get this error:

Fatal error: Cannot redeclare ssi_shutdown() (previously declared in /home/veryeuro/public_html/SSI.php:192) in /home/veryeuro/public_html/SSI.php on line 194


while i can use the php code with EzPortal, you can check at:

www.chatinchinese.com

THANK YOU VERY MUCH!
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 04, 2009, 03:10:24 PM
Replied both at simpleportal.net.
Title: Re: SimplePortal (2.2 Released!)
Post by: ɔɔɔɔɔɔuɥoɾ on May 05, 2009, 12:48:41 PM
everything is perfect with the mod, even using it for displaying my ads lol..

im having an issue which is caused by this mod

my admin panel and profile navigation buttons are messed up after installing the mod

here is an image
(http://i43.tinypic.com/ruzf2w.jpg)

any ideas on a fix?
Title: Re: SimplePortal (2.2 Released!)
Post by: Nathaniel on May 06, 2009, 01:42:17 AM
@johncccccc,
Which version of SMF are you using? I believe that was an issue that was resolved with SMF 2 RC1.

If you have SMF 2 RC1 then its possible that your custom theme has its own '/Themes/{themename}/css/dropdown.css' file that needs updating.
Title: Re: SimplePortal (2.2 Released!)
Post by: ɔɔɔɔɔɔuɥoɾ on May 06, 2009, 07:07:49 PM
Im using SMF RC1


anyways, im using a SMF BETA 4 theme, (author said it should work fine on RC1)

I can change the/add the classes or attributes myself, but i dont know what to put lol..

I could attact my dropdown.css, my theme does have its own dropdown.css file
Title: Re: SimplePortal (2.2 Released!)
Post by: Nathaniel on May 07, 2009, 01:48:12 AM
@johncccccc,
The issue is your custom theme's 'dropdown.css' file then. Its likely that it doesn't really change anything important, try temporarily renaming, so that the default dropdown.css file gets loaded instead. If there are no issues with using the default css file, then you should be able to delete the renamed 'dropdown.css' file form your custom themes css folder (as its would be unnecessary).

Otherwise post the file and I'll see what I can do.
Title: Re: SimplePortal (2.2 Released!)
Post by: ɔɔɔɔɔɔuɥoɾ on May 07, 2009, 12:58:31 PM
Quote from: Nathaniel on May 07, 2009, 01:48:12 AM
@johncccccc,
The issue is your custom theme's 'dropdown.css' file then. Its likely that it doesn't really change anything important, try temporarily renaming, so that the default dropdown.css file gets loaded instead. If there are no issues with using the default css file, then you should be able to delete the renamed 'dropdown.css' file form your custom themes css folder (as its would be unnecessary).
Otherwise post the file and I'll see what I can do.
Thanks, I tried that but they all turned into white buttons instead.

I will attach the file, if you see the problem, please tell, so I can learn lol...

Thanks in Advanced :)
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 07, 2009, 01:08:23 PM
Hello,

i use simple portal and love it, but i got this strange ????, it doesn't show correctly the title of the block in Chinese, please look at the attachment i marked within the white circle, i am using chinese version of SMF.

thank you!
Title: Re: SimplePortal (2.2 Released!)
Post by: naijaweb on May 08, 2009, 02:19:48 AM
Hello, i really love simple portal, i installed a new smf 1.1.8 forum. Then i tried installing simple portal 2.2 and i got this error
Database Error
Field 'content' doesn't have a default value
File: /www/110mb.com/n/i/g/e/r/i/a/t/nigeriatest/htdocs/Packages/temp/install1-1.php
Line: 1073
please i need a solution
Title: Re: SimplePortal (2.2 Released!)
Post by: ディン1031 on May 08, 2009, 04:05:19 AM
Quote from: neverhurry on May 07, 2009, 01:08:23 PM
Hello,

i use simple portal and love it, but i got this strange ????, it doesn't show correctly the title of the block in Chinese, please look at the attachment i marked within the white circle, i am using chinese version of SMF.

thank you!
Are you work with UTF-8 or with an other encoding type?
Possible if you work with UTF-8 that the database things of Simple Portal are not in the correct encoding type.

Quote from: naijaweb on May 08, 2009, 02:19:48 AM
Hello, i really love simple portal, i installed a new smf 1.1.8 forum. Then i tried installing simple portal 2.2 and i got this error
Database Error
Field 'content' doesn't have a default value
File: /www/110mb.com/n/i/g/e/r/i/a/t/nigeriatest/htdocs/Packages/temp/install1-1.php
Line: 1073
please i need a solution
Possible this will help you -> http://simpleportal.net/index.php?topic=1906.0
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 08, 2009, 05:12:27 AM
Quote from: ディン1031 on May 08, 2009, 04:05:19 AM
Are you work with UTF-8 or with an other encoding type?
Possible if you work with UTF-8 that the database things of Simple Portal are not in the correct encoding type.

Yes, i work with UTF-8, I did that using PHPMyAdmin to set the database charactor setting to UTF8-general-ci, still there is "??", please look at the attachment, after setting when i click preview then it displays the Chinese characters correctly, but when i click "edit block" it gets this "??".
There is no problem with English letters.
Title: Re: SimplePortal (2.2 Released!)
Post by: kat on May 09, 2009, 05:59:18 AM
I'd just like to report that I upgraded SP on five sites and each went without a blip.


Nice work, SP team! Thanks!
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 09, 2009, 06:16:52 AM
naijaweb:

Use the SimplePortal_2.2.zip package attached to this post.

neverhurry:

Download the attached file install1-1.php.
Upload it to your forum root, where index.php file is.
Run it with your browser like: http://yoursite.com/install1-1.php.
Remove the file.

Kat:

Thanks for choosing SimplePortal!
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 09, 2009, 09:40:31 AM
SimplePortal 2.2.1

SimplePortal Team is proud to announce the release of SimplePortal 2.2.1. This release includes several fixes for bugs found in the 2.2 version.

We urge all users to upgrade to SimplePortal 2.2.1 as soon as possible to take advantage of these fixes. A summary of the fixes is as follows:

For users currently running SimplePortal 2.2; you can upgrade to 2.2.1 version using the SimplePortal 2.2.1 installation package.

If you are running an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.

Announcement: http://simpleportal.net/index.php?topic=2246.0
Title: Re: SimplePortal (2.2 Released!)
Post by: kitekid on May 09, 2009, 11:45:41 AM
Upgraded from 2.1.1 with out a hitch.
Thanks guys.  Works great!
Title: Re: SimplePortal (2.2 Released!)
Post by: Filipina on May 09, 2009, 01:47:12 PM
great upgraded without a hitch.. awesome... ok this is where i ask the dumb question

7. SimplePortal 2.2.1   
8. SimplePortal 2.2 
16. SimplePortal 2.1.1 

Can I safely delete 2.1.1 only, or can I delete 2.2 off my package manager too :)   Something tells me I should leave 2.2 in place
Title: Re: SimplePortal (2.2 Released!)
Post by: kat on May 09, 2009, 02:32:44 PM
You'd be correct!
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on May 09, 2009, 04:59:38 PM
Quote from: kitekid on May 09, 2009, 11:45:41 AM
Upgraded from 2.1.1 with out a hitch.
Thanks guys.  Works great!

Same here.
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on May 09, 2009, 09:22:17 PM
I spoke too soon. Could very well be something on my end, but my quick check earlier didn't reveal that on all OSes and browsers I now get this after the 2.2.1 install:

(http://gregnmary.gotdns.com/pix/sp221is.jpg)

I restored a backup from yesterday and all went back to normal. Reinstalled 2.2.1 and it's back like the above screener. Installs fine, no errors in the log. If one of the SP folks has any idea why I'd sure appreciate it.
Thanks.
Title: Re: SimplePortal (2.2 Released!)
Post by: Blinker on May 10, 2009, 03:02:10 AM
I never managed to sort out my database install issue from back when you first released 2.2 so I just left it. We've all missed our portal!

Anyways, tried 2.2.1 today and it installed without a hitch! Awesome work and thank you for fixing whatever little something (pretty sure it was sql related) was stopping it creating the tables in the DB.

Quick question: My board has no guest access and previously when you navigate to my forum's URL (http://myforum.org/forum/index.php) it would land on the Home button and show the warning saying you have to be a registered member, then it would have the login section below that.

Now, the Home and Forum buttons show and the http://myforum.org/forum/index.php link takes you to a blank section with just the forum name displayed the way it does on the linktree when you're logged in.

You need to click on either the Forum or Login buttons to get the main login box.

How can I get it to default back to the Forum or Login page?
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 10, 2009, 06:05:55 AM
Quote from: Filipina on May 09, 2009, 01:47:12 PM
great upgraded without a hitch.. awesome... ok this is where i ask the dumb question

7. SimplePortal 2.2.1   
8. SimplePortal 2.2 
16. SimplePortal 2.1.1 

Can I safely delete 2.1.1 only, or can I delete 2.2 off my package manager too :)   Something tells me I should leave 2.2 in place

Just leave 2.2.1 and you can delete all others.

Quote from: Tiribulus on May 09, 2009, 09:22:17 PM
I spoke too soon. Could very well be something on my end, but my quick check earlier didn't reveal that on all OSes and browsers I now get this after the 2.2.1 install:

I restored a backup from yesterday and all went back to normal. Reinstalled 2.2.1 and it's back like the above screener. Installs fine, no errors in the log. If one of the SP folks has any idea why I'd sure appreciate it.
Thanks.

Probably the new property (table-layout: fixed;) in portal.css file caused this issue. It was added to some bugs about the main table for SMF 2.0. It should have been okay with SMF 1.1.8, however, I guess it caused issue because of the numerous HTML errors in your theme. If you are happy with how 2.2 looks, just remove this line from Themes/default/portal.css:

table-layout: fixed;

Quote from: Blinker on May 10, 2009, 03:02:10 AM
Quick question: My board has no guest access and previously when you navigate to my forum's URL (http://myforum.org/forum/index.php) it would land on the Home button and show the warning saying you have to be a registered member, then it would have the login section below that.

Now, the Home and Forum buttons show and the http://myforum.org/forum/index.php link takes you to a blank section with just the forum name displayed the way it does on the linktree when you're logged in.

You need to click on either the Forum or Login buttons to get the main login box.

How can I get it to default back to the Forum or Login page?

There was a fix about this in 2.2.1 too. Any chance I see your forum, with a test account, as it is quite hard to get with words?
Title: Re: SimplePortal (2.2 Released!)
Post by: ɔɔɔɔɔɔuɥoɾ on May 10, 2009, 10:53:09 AM
I also have updated, went perfect, even though i didnt notice any bugs before lol..
nice work :)

im still have the problem here though
http://www.simplemachines.org/community/index.php?topic=227599.msg2045290#msg2045290

I had uploaded dropmenu.css here, as requested, but no downloads of it . . .
http://www.simplemachines.org/community/index.php?topic=227599.msg2048168#msg2048168
Title: Re: SimplePortal (2.2 Released!)
Post by: kitekid on May 10, 2009, 12:48:54 PM
Quote from: Blinker on May 10, 2009, 03:02:10 AM
... Quick question: My board has no guest access and previously when you navigate to my forum's URL (http://myforum.org/forum/index.php) it would land on the Home button and show the warning saying you have to be a registered member, then it would have the login section below that.

Now, the Home and Forum buttons show and the http://myforum.org/forum/index.php link takes you to a blank section with just the forum name displayed the way it does on the linktree when you're logged in.

You need to click on either the Forum or Login buttons to get the main login box.

How can I get it to default back to the Forum or Login page?

My apologies if I misunderstood your question, but ...
Simple Portal Admin > Configuration > General Settings.  Select "Integration" for the "Portal Mode then save. 

BTW ... the url you provided appears to go to a link farm.
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 10, 2009, 12:55:48 PM
Quote from: johncccccc on May 10, 2009, 10:53:09 AM
I also have updated, went perfect, even though i didnt notice any bugs before lol..
nice work :)

im still have the problem here though
http://www.simplemachines.org/community/index.php?topic=227599.msg2045290#msg2045290

I had uploaded dropmenu.css here, as requested, but no downloads of it . . .
http://www.simplemachines.org/community/index.php?topic=227599.msg2048168#msg2048168

I do suggest that you request an update from the theme author.
Title: Re: SimplePortal (2.2 Released!)
Post by: Tyrsson on May 10, 2009, 01:44:43 PM
Quote from: johncccccc on May 05, 2009, 12:48:41 PM
everything is perfect with the mod, even using it for displaying my ads lol..

im having an issue which is caused by this mod

my admin panel and profile navigation buttons are messed up after installing the mod

here is an image
(http://i43.tinypic.com/ruzf2w.jpg)

any ideas on a fix?
I will try to get with you on IM later today or tomorrow and show you how to fix that.
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 10, 2009, 02:32:02 PM
Quote from: Blue Dream on May 09, 2009, 06:16:52 AM

neverhurry:

Download the attached file install1-1.php.
Upload it to your forum root, where index.php file is.
Run it with your browser like: http://yoursite.com/install1-1.php.
Remove the file.


Hello, I've run the install1-1.php, but i got this error, as shown in the attachment.

what's wrong?
Title: Re: SimplePortal (2.2 Released!)
Post by: ɔɔɔɔɔɔuɥoɾ on May 10, 2009, 03:12:23 PM
Quote from: Tyrsson on May 10, 2009, 01:44:43 PM
Quote from: johncccccc on May 05, 2009, 12:48:41 PM
everything is perfect with the mod, even using it for displaying my ads lol..

im having an issue which is caused by this mod

my admin panel and profile navigation buttons are messed up after installing the mod

here is an image
(http://i43.tinypic.com/ruzf2w.jpg)

any ideas on a fix?
I will try to get with you on IM later today or tomorrow and show you how to fix that.

Thanks Tyrsson
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 10, 2009, 03:21:31 PM
Hello,

i upgrade to 2.2.1 but there is still the problem, that is: the attachment image is from a certain forum where only a special group members have permission to see, but the fact is all members can see the attachment images, and when you click the image if can show if the original size of the image.
i use smf 1.1.8, simple portal 2.2.1 and Integration Mode.

and honestly i don't understand very much these:
Permission Settings:     
One Membergroup
All Membergroups
Ignore Permissions

the explanation to this is:

"This option enables permissions to be used on blocks. If the member needs to be in all of the groups allowed to see the block, one of the groups, or none of the groups (which would be ignoring permissions) it can be set here."

i tried all of them which resulted the same.

it seems to me that the permission has problems.

thank you!
Title: Re: SimplePortal (2.2 Released!)
Post by: Tiribulus on May 10, 2009, 04:03:47 PM
Quote from: Blue Dream on May 10, 2009, 06:05:55 AM
Quote from: Tiribulus on May 09, 2009, 09:22:17 PM
I spoke too soon. Could very well be something on my end, but my quick check earlier didn't reveal that on all OSes and browsers I now get this after the 2.2.1 install:

I restored a backup from yesterday and all went back to normal. Reinstalled 2.2.1 and it's back like the above screener. Installs fine, no errors in the log. If one of the SP folks has any idea why I'd sure appreciate it.
Thanks.

Probably the new property (table-layout: fixed;) in portal.css file caused this issue. It was added to some bugs about the main table for SMF 2.0. It should have been okay with SMF 1.1.8, however, I guess it caused issue because of the numerous HTML errors in your theme. If you are happy with how 2.2 looks, just remove this line from Themes/default/portal.css:

table-layout: fixed;

Mr. Reliable :) You are correct, that fixed it. Also, yes, my site doesn't do so hot on the validation deal, but I haven't made any effort to fix the errors because it hasn't been giving me any trouble. I should get around to doing that I suppose.
Thanks
Title: Re: SimplePortal (2.2 Released!)
Post by: ディン1031 on May 11, 2009, 06:43:14 AM
@neverhurry
Is the problem solved with the title?

Quote from: neverhurry on May 10, 2009, 03:21:31 PM
Permission Settings:     
One Membergroup
All Membergroups
Ignore Permissions
I try to explain it better:
One Membergroup:
You can select multiple groups, if the user is in one of them he/she is allowed to see the block
All Membergroups:
The User must be in all groups than he/she is allowed to see the block.
Ignore Permissions:
Block will show everytime.

Hmmm the attachment permission problem, it's logical that it not work... i will post a fix for it later... the checkup if a user allowed to see this board is not done.




So neverhurry
You can use this fix on own risk, it's complete untested...

Change in SPortal1-1.php


function sp_attachmentImage($parameters, $id, $return_parameters = false)
{
global $db_prefix, $modSettings, $scripturl, $txt, $settings;


Replace:

function sp_attachmentImage($parameters, $id, $return_parameters = false)
{
global $db_prefix, $modSettings, $scripturl, $txt, $settings, $user_info;


Search for:

att.width, att.height" . (empty($modSettings['attachmentShowImages']) || empty($modSettings['attachmentThumbnails']) ? "" : ", IFNULL(thumb.ID_ATTACH, 0) AS id_thumb, thumb.width AS thumb_width, thumb.height AS thumb_height") . "
FROM {$db_prefix}attachments AS att
INNER JOIN {$db_prefix}messages AS m ON (m.ID_MSG = att.ID_MSG)
INNER JOIN {$db_prefix}topics AS t ON (t.ID_TOPIC = m.ID_TOPIC)


Replace:

att.width, att.height" . (empty($modSettings['attachmentShowImages']) || empty($modSettings['attachmentThumbnails']) ? "" : ", IFNULL(thumb.ID_ATTACH, 0) AS id_thumb, thumb.width AS thumb_width, thumb.height AS thumb_height") . "
FROM {$db_prefix}attachments AS att
INNER JOIN {$db_prefix}messages AS m ON (m.ID_MSG = att.ID_MSG)
INNER JOIN {$db_prefix}topics AS t ON (t.ID_TOPIC = m.ID_TOPIC)
LEFT JOIN {$db_prefix}boards AS b ON (b.ID_BOARD = t.ID_BOARD)


Search for

WHERE att.attachmentType = 0
AND att.width != 0
$boards


Replace

WHERE att.attachmentType = 0
AND att.width != 0
AND $user_info[query_see_board]
$boards


Bye
DIN1031
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 11, 2009, 07:57:48 AM
Quote from: ディン1031 on May 11, 2009, 06:43:14 AM
@neverhurry
Is the problem solved with the title?


no, because i got that error (shown in the attached images), i couldn't run the repairing file install1-1.php.
can you help?
thank you!
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 11, 2009, 08:15:03 AM
Quote from: ディン1031 on May 11, 2009, 06:43:14 AM


Change in SPortal1-1.php


function sp_attachmentImage($parameters)
{
global $db_prefix, $modSettings, $scripturl, $txt, $settings;


Replace:

function sp_attachmentImage($parameters)
{
global $db_prefix, $modSettings, $scripturl, $txt, $settings, $user_info;



Bye
DIN1031

Hi Din,

i can not find "function sp_attachmentImage($parameters)" in the SPortal1-1.php file, i tried very hard. Can you still help?
Title: Re: SimplePortal (2.2 Released!)
Post by: ディン1031 on May 11, 2009, 08:57:45 AM
Sorry my mistake <<..., I fixed the code, should be correct now.

Quote from: neverhurry on May 11, 2009, 07:57:48 AM
Quote from: ディン1031 on May 11, 2009, 06:43:14 AM
@neverhurry
Is the problem solved with the title?


no, because i got that error (shown in the attached images), i couldn't run the repairing file install1-1.php.
can you help?
thank you!
Okay, i've a question why do you want to run this file? Normal the upgrade do this automatic? What kind of error appear there?

Bye
DIN1031
Title: Re: SimplePortal (2.2 Released!)
Post by: dry3210 on May 11, 2009, 09:36:09 AM
Quote from: Filipina on April 22, 2009, 07:38:24 PM
Quote from: R.Bourne on April 12, 2009, 03:55:25 AM
The following browsers have issues:
Camino 1.6.7 (OS X), IE 8 (Compatibility mode ENABLED)

As you know, there is a problem with IE 8 and SMF as discussed in this forum. So, we need to enable this option. Or, as suggested by someone else,  this line can also be added to index.template.php file (<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />).

IF, we check off the "Maintenance Mode" for the MOD, things are back to normal!

Any suggestions, please?

[SiNaN] found the answer to the posts being squeezed to the left side with the big open space on the right.  I want to say thanks to him for his efforts and making my forum look right again. It has to do with the Ignore Users Mod. I have it, and  R.Bourne I think you have this Mod too.

This all goes back to my post here

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

Sources/Display.php

Code: (Find)

//-Ignore MOD- START
$context['html_headers']  = '


Code: (Replace With)
//-Ignore MOD- START
$context['html_headers']  .= '


Yest there is a difference if you look closely and that little difference fixed my forum!

Nice!  Worked for me
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 11, 2009, 09:39:19 AM
Quote from: ディン1031 on May 11, 2009, 08:57:45 AM
Sorry my mistake <<..., I fixed the code, should be correct now.

Quote from: neverhurry on May 11, 2009, 07:57:48 AM
Quote from: ディン1031 on May 11, 2009, 06:43:14 AM
@neverhurry
Is the problem solved with the title?


no, because i got that error (shown in the attached images), i couldn't run the repairing file install1-1.php.
can you help?
thank you!
Okay, i've a question why do you want to run this file? Normal the upgrade do this automatic? What kind of error appear there?

Bye
DIN1031

blue dream told me: "Download the attached file install1-1.php.
Upload it to your forum root, where index.php file is.
Run it with your browser like: http://yoursite.com/install1-1.php.
Remove the file."

that is why i runned that file.
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 11, 2009, 09:56:00 AM
DIN, works like a charm. Great job you've done. Thank you very much. Really love Simple portal.
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 12, 2009, 03:57:46 AM
Quote from: neverhurry on May 07, 2009, 01:08:23 PM
Hello,

i use simple portal and love it, but i got this strange ????, it doesn't show correctly the title of the block in Chinese, please look at the attachment i marked within the white circle, i am using chinese version of SMF.

thank you!

that is OK now, though i don't know if it is because the upgrade to 2.2.1?
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 12, 2009, 04:49:56 AM
Yeah, 2.2.1 install and upgrade scripts fixes the issues related to charset too.
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 12, 2009, 04:59:47 AM
hello,

can anybody tell me where is the file "SPortal.php", i need to do some changes there but can not find this file. Thank you very much.
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 12, 2009, 05:09:11 AM
It's in Sources directory and depending on your version it should be SPortal1-1.php or SPortal2.php.
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 12, 2009, 06:42:06 AM
Quote from: Blue Dream on May 12, 2009, 05:09:11 AM
It's in Sources directory and depending on your version it should be SPortal1-1.php or SPortal2.php.

thank you! i found SPortal1-1.php. i uses simple portal 2.2.1.
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 12, 2009, 06:43:52 AM
About the attachment image block, i asked these questions at simpleportal.net some days ago:

1. where can i edit "posted by" to simply "by"?
2. where can i change the width of the images to "150px"?
3. right now both the name of the images and the images link to the real size images, would be better, or can you make an option to let the image link to the posts?
...

i got answers from SiNaN:

Quote
1. You can edit that going to your SPortal.php

Code (find) Select
', $txt['posted_by'], '

Code (replace to) Select
by

2. You can change the width going to SSI.php, i think since the block requires ssi_recentattachments

3. You can edit that in Sportal.php too

...




I tried today so hard, but i can not find anywhere "', $txt['posted_by'], '",

I can not find the "ssi_recentattachments" either,

maybe i am too stupid, but can anyone give me a hint?
Title: Re: SimplePortal (2.2 Released!)
Post by: ディン1031 on May 12, 2009, 08:50:09 AM
Normal we use the tumbs which are created by smf , so i think it will not change the size.


For the other thing with the link:
$sourcdir/SPortal1-1.php

'link' => '<a href="' . $scripturl . '?action=dlattach;topic=' . $row['ID_TOPIC'] . '.0;attach=' . $row['ID_ATTACH'] . ';image"><img src="' . $scripturl . '?action=dlattach;topic=' . $row['ID_TOPIC'] . '.0;attach=' . $id_thumb . ';image" alt="' . $filename . '"' . (empty($row['ID_THUMB']) ? ' width="100"' : '') . ' /></a>',

could be changed to

'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#msg' . $row['ID_MSG'] . '"><img src="' . $scripturl . '?action=dlattach;topic=' . $row['ID_TOPIC'] . '.0;attach=' . $id_thumb . ';image" alt="' . $filename . '"' . (empty($row['ID_THUMB']) ? ' width="100"' : '') . ' /></a>',

Now it will go to the post instead of the image ;).



I think you would like to replace the $txt['sp-downloadsPoster'] to $txt[525] than there should be stand only by ;).

But think on next update this could be not avaible anymore ;).
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 12, 2009, 08:53:51 AM
DIN, you are so friendly, thank you very much. Will try it asap.
(http://www.veryeurope.com/Smileys/skype/rose.gif)
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 12, 2009, 09:01:53 AM
DIN, works like charm! Thank you! (http://www.veryeurope.com/Smileys/skype/rose.gif)(http://www.veryeurope.com/Smileys/skype/rose.gif)(http://www.veryeurope.com/Smileys/skype/rose.gif)(http://www.veryeurope.com/Smileys/skype/thanks.gif)

do you know where can i edit the text "posted by" to simply "by"?  THANK YOU!!!
Title: Re: SimplePortal (2.2 Released!)
Post by: ディン1031 on May 12, 2009, 10:36:58 AM
Quote from: neverhurry on May 12, 2009, 09:01:53 AM
DIN, works like charm! Thank you! (http://www.veryeurope.com/Smileys/skype/rose.gif)(http://www.veryeurope.com/Smileys/skype/rose.gif)(http://www.veryeurope.com/Smileys/skype/rose.gif)(http://www.veryeurope.com/Smileys/skype/thanks.gif)

do you know where can i edit the text "posted by" to simply "by"?  THANK YOU!!!

Normal this will change it to by :X

Quote
I think you would like to replace the $txt['sp-downloadsPoster'] to $txt[525] than there should be stand only by ;).

But think on next update this could be not available anymore
Okay i forgot the file SPortal1-1.php ;).

But if you like than you can change the $txt['sp-downloadsPoster'] in the SPortal.english.php.

Bye
DIN1031
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 12, 2009, 02:16:57 PM
DIN, my fault, I didn't read your post carefully. Now i understand. Thank you!!!
(http://www.veryeurope.com/Smileys/skype/flower.gif)(http://www.veryeurope.com/Smileys/skype/flower.gif)(http://www.veryeurope.com/Smileys/skype/flower.gif)
Title: Re: SimplePortal (2.2 Released!)
Post by: c5Quad on May 12, 2009, 04:26:26 PM
I have a question, I've been trying to wait for SMF RC2 to be released before I started my webpage, but we don't know how long that might be.

What I want to know is if I build my site with SimplePortal 2.2.1 and SMF RC1 will I have to wipe out everything and completely start over when SMF RC2 comes out?

Thanks
Title: Re: SimplePortal (2.2 Released!)
Post by: dry3210 on May 12, 2009, 04:52:36 PM
I did a search and didn't get anything and I'm not reading through 108 pages to see if its there so any help would be appreciated

1. Clicking "Mark All Messages Read" on the main page makes the user go to the home/portal page.  I'd rather it stay where it is.  Any fix for this?

2. I get this error in Explorer
Quote
Line: 14
Char: 1
Error: 'is_ie5up' is undefined
Code: 0
URL: http://www.northeastsportbikes.com/index.php?action=forum

I'm assuming it's because I'm using IE6?  But I can't upgrade cause its a work computer.  Any way to fix this?
Title: Re: SimplePortal (2.2 Released!)
Post by: ディン1031 on May 13, 2009, 12:37:05 AM
Quote from: c5Quad on May 12, 2009, 04:26:26 PM
I have a question, I've been trying to wait for SMF RC2 to be released before I started my webpage, but we don't know how long that might be.

What I want to know is if I build my site with SimplePortal 2.2.1 and SMF RC1 will I have to wipe out everything and completely start over when SMF RC2 comes out?

Thanks
Don't know ;). We will see it when it avaible.

Quote from: dry3210 on May 12, 2009, 04:52:36 PM
I did a search and didn't get anything and I'm not reading through 108 pages to see if its there so any help would be appreciated

1. Clicking "Mark All Messages Read" on the main page makes the user go to the home/portal page.  I'd rather it stay where it is.  Any fix for this?

2. I get this error in Explorer
Quote
Line: 14
Char: 1
Error: 'is_ie5up' is undefined
Code: 0
URL: http://www.northeastsportbikes.com/index.php?action=forum

I'm assuming it's because I'm using IE6?  But I can't upgrade cause its a work computer.  Any way to fix this?
Which SMF version and Portal Version are you useing?

Bye
DIN1031
Title: Re: SimplePortal (2.2 Released!)
Post by: dry3210 on May 13, 2009, 12:39:01 AM
Quote from: dry3210 on May 12, 2009, 04:52:36 PM
I did a search and didn't get anything and I'm not reading through 108 pages to see if its there so any help would be appreciated

1. Clicking "Mark All Messages Read" on the main page makes the user go to the home/portal page.  I'd rather it stay where it is.  Any fix for this?

2. I get this error in Explorer
Quote
Line: 14
Char: 1
Error: 'is_ie5up' is undefined
Code: 0
URL: http://www.northeastsportbikes.com/index.php?action=forum

I'm assuming it's because I'm using IE6?  But I can't upgrade cause its a work computer.  Any way to fix this?
Which SMF version and Portal Version are you useing?
[/quote]

SMF 1.1.8
Portal 2.2.1
Title: Re: SimplePortal (2.2 Released!)
Post by: ディン1031 on May 13, 2009, 11:19:48 AM
Okay a possible Fix (it's untested) ;).
Change in sp_pngfix.js (it's normal in you default theme dir)

if (is_ie5up && !is_ie7up && document.body.filters)


Replace with


// Some very basic browser detection
var ua = navigator.userAgent.toLowerCase();
var is_opera = ua.indexOf("opera") != -1;
var is_ie = ua.indexOf("msie") != -1  && !is_opera;
var is_ie4 = is_ie && ua.indexOf("msie 4") != -1;
var is_ie5 = is_ie && ua.indexOf("msie 5") != -1;
var is_ie50 = is_ie && ua.indexOf("msie 5.0") != -1;
var is_ie55 = is_ie && ua.indexOf("msie 5.5") != -1;
var is_ie5up = is_ie && !is_ie4;
var is_ie6 = is_ie && ua.indexOf("msie 6") != -1;
var is_ie6up = is_ie5up && !is_ie55 && !is_ie5;
var is_ie6down = is_ie6 || is_ie5 || is_ie4;
var is_ie7 = is_ie && ua.indexOf("msie 7") != -1;
var is_ie7up = is_ie6up && !is_ie6;
var is_ie7down = is_ie7 || is_ie6 || is_ie5 || is_ie4;

if (is_ie5up && !is_ie7up && document.body.filters)

Use is on you're own risk! And think if you insert it it could be possible that you can not upgrade to newer versions!

Bye
DIN1031
Title: Re: SimplePortal (2.2 Released!)
Post by: DarkSynopsis on May 15, 2009, 01:03:47 PM
Is it possible to move the Topic name closer to the Message Icon since I feel its just a bit to far apart on my site.

If so what file am I looking to edit and what line? Thanks :)

I'm using SMF 1.1.8 & SimplePortal 2.2.1
Title: Re: SimplePortal (2.2 Released!)
Post by: alex_sercan on May 15, 2009, 02:20:41 PM
Hi, is it working properly on Windows hosting ?

Thanks.
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 15, 2009, 03:18:30 PM
hello,

i use smf 1.1.8
sp 2.2.1
and i add a custom html block to the bottom blocks and i got this strange layout. pls look at the attachment.
but when i activated a blcok "board news" then it displays normally (shown in the attachment just below the problematic custom html block).

thank you very much in advance,



block content:

<div><p>欢迎加入《非常欧洲》,如果您喜欢这个独特的网站,那么请您帮《非常欧洲》宣传几句。只需要您把一个文字链接或者一个图片链接加到您的个人网站,或者Myspace、Facebood等社会网站,或者您所属的任何论坛的个人资料页或签名中。办法非常简单,只需要复制下面的代码然后拷贝就行了。</p><br />

<table width="96%" border="0">
  <tr>
    <td width="50%">文字链接:</td>
    <td width="50%"><span style="float: left;">文字链接显示:</span></td>
  </tr>
  <tr>
    <td><textarea rows="1" cols="70"><a href="http://www.veryeurope.com">自豪的《非常欧洲》论坛会员</a></textarea></td>
    <td><a href="http://www.veryeurope.com/">自豪的《非常欧洲》论坛会员</a></td>
  </tr>
  <tr>
    <td><span style="float: left;">图片链接:</span></td>
    <td><span style="float: left;">图片链接显示:</span></td>
  </tr>
  <tr>
    <td><textarea name="textarea" cols="70" rows="2"><a href="http://www.veryeurope.com" title="《非常欧洲》" target="_blank"><img border="0" src="http://www.veryeurope.com/images/ouwang.gif" /></a></textarea></td>
    <td><a href="http://www.veryeurope.com/" title="《非常欧洲》" target="_blank"><img src="http://www.veryeurope.com/images/ouwang.gif" alt="非常欧洲" border="0" /></a></td>
  </tr>
</table>
<br>
</div>
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 16, 2009, 04:17:34 AM
Quote from: DarkSynopsis on May 15, 2009, 01:03:47 PM
Is it possible to move the Topic name closer to the Message Icon since I feel its just a bit to far apart on my site.

If so what file am I looking to edit and what line? Thanks :)

I'm using SMF 1.1.8 & SimplePortal 2.2.1

./Themes/default/portal.css

Code (Find) Select
td.sp_recent_icon
{
vertical-align: middle;
width: 5%;
}
td.sp_recent_subject
{
width: 60%;
}


Change the widths there. You can make it:

td.sp_recent_icon
{
vertical-align: middle;
width: 3%;
}
td.sp_recent_subject
{
width: 62%;
}


Quote from: alex_sercan on May 15, 2009, 02:20:41 PM
Hi, is it working properly on Windows hosting ?

Thanks.

Yes, it does.

Quote from: neverhurry on May 15, 2009, 03:18:30 PM
hello,

i use smf 1.1.8
sp 2.2.1
and i add a custom html block to the bottom blocks and i got this strange layout. pls look at the attachment.
but when i activated a blcok "board news" then it displays normally (shown in the attachment just below the problematic custom html block).

thank you very much in advance,

You can't use HTML codes inside a textarea tag, you should use entities instead. Try this code:

<div><p>欢迎加入《非常欧洲》,如果您喜欢这个独特的网站,那么请您帮《非常欧洲》宣传几句。只需要您把一个文字链接或者一个图片链接加到您的个人网站,或者Myspace、Facebood等社会网站,或者您所属的任何论坛的个人资料页或签名中。办法非常简单,只需要复制下面的代码然后拷贝就行了。</p><br />

<table width="96%" border="0">
  <tr>
    <td width="50%">文字链接:</td>
    <td width="50%"><span style="float: left;">文字链接显示:</span></td>
  </tr>
  <tr>
    <td><textarea rows="1" cols="70">&lt;a href=&quot;http://www.veryeurope.com&quot;&gt;自豪的《非常欧洲》论坛会员&lt;/a&gt;</textarea></td>
    <td><a href="http://www.veryeurope.com/">自豪的《非常欧洲》论坛会员</a></td>
  </tr>
  <tr>
    <td><span style="float: left;">图片链接:</span></td>
    <td><span style="float: left;">图片链接显示:</span></td>
  </tr>
  <tr>
    <td><textarea name="textarea" cols="70" rows="2">&lt;a href=&quot;http://www.veryeurope.com&quot; title=&quot;《非常欧洲》&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.veryeurope.com/images/ouwang.gif&quot; /&gt;&lt;/a&gt;</textarea></td>
    <td><a href="http://www.veryeurope.com/" title="《非常欧洲》" target="_blank"><img src="http://www.veryeurope.com/images/ouwang.gif" alt="非常欧洲" border="0" /></a></td>
  </tr>
</table>
<br>
</div>
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 16, 2009, 04:54:45 AM
Hi Blue Dream,

thank you very much, but the code you provide didn't work either. then I delete every blocks in Bottom blocks and tried just one block (recent topics), surprisingly it has the same problem. In this case should i reinstall the Simple Portal (but when i tried to uninstall it says: ./SSI.php     test failed)?

i use simple portal 2.2.1 and in Integration mode.

please have a look at the attachments.
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 16, 2009, 05:09:01 AM
You really don't need to re-install mods every time you get an error. I doubt it is something related to SimplePortal. May I see the forum itself.
Title: Re: SimplePortal (2.2 Released!)
Post by: Sabre™ on May 16, 2009, 05:15:25 AM
This Mod has come a very long way, and is looking pretty good.
Congrats on your progress and very hard work :)
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 16, 2009, 05:26:58 AM
Thanks for the nice comments Sabre™. I have to confess that earlier versions was a bit hopeless. However, with version 2.2, SimplePortal became a completely different mod. We're looking forward to turn it into a mini-CMS, but still keep the thing that brought us success: Ultimate Simplicity. ;)
Title: Re: SimplePortal (2.2 Released!)
Post by: DarkSynopsis on May 16, 2009, 05:36:37 AM
Quote from: Blue Dream on May 16, 2009, 04:17:34 AM
Quote from: DarkSynopsis on May 15, 2009, 01:03:47 PM
Is it possible to move the Topic name closer to the Message Icon since I feel its just a bit to far apart on my site.

If so what file am I looking to edit and what line? Thanks :)

I'm using SMF 1.1.8 & SimplePortal 2.2.1

./Themes/default/portal.css

Code (Find) Select
td.sp_recent_icon
{
vertical-align: middle;
width: 5%;
}
td.sp_recent_subject
{
width: 60%;
}


Change the widths there. You can make it:

td.sp_recent_icon
{
vertical-align: middle;
width: 3%;
}
td.sp_recent_subject
{
width: 62%;
}

Thanks but does not seem to have changed.
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 16, 2009, 06:11:44 AM
Try making a hard refresh to your browser. (Ctrl+F5)
Title: Re: SimplePortal (2.2 Released!)
Post by: DarkSynopsis on May 16, 2009, 07:19:53 AM
Quote from: Blue Dream on May 16, 2009, 06:11:44 AM
Try making a hard refresh to your browser. (Ctrl+F5)

First thing I tried, just tried it again and still the same.
Title: Re: SimplePortal (2.2 Released!)
Post by: [SiNaN] on May 16, 2009, 07:30:18 AM
Which block are you trying to do this for then?
Title: Re: SimplePortal (2.2 Released!)
Post by: DarkSynopsis on May 16, 2009, 07:55:18 AM
Quote from: Blue Dream on May 16, 2009, 07:30:18 AM
Which block are you trying to do this for then?

Board News
Title: Re: SimplePortal (2.2 Released!)
Post by: Neverhurry on May 16, 2009, 02:02:38 PM
Quote from: Blue Dream on May 16, 2009, 05:09:01 AM
You really don't need to re-install mods every time you get an error. I doubt it is something related to SimplePortal. May I see the forum itself.

Yes, it is very nice of you indeed. The admin name and password are in the PM to you. please check.
(http://www.cinask.com/Smileys/skype/thanks.gif)
Title: Re: SimplePortal (2.2 Released!)
Post by: alex_sercan on May 16, 2009, 03:12:29 PM
Thank you lots. I will try this soon. ;)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 17, 2009, 07:10:45 AM
Quote from: DarkSynopsis on May 16, 2009, 07:55:18 AM
Quote from: Blue Dream on May 16, 2009, 07:30:18 AM
Which block are you trying to do this for then?

Board News

The code I gave will affect Recent Topics/Posts block. It would have been better if you mentioned for which block you wanted this. Anyway,

Sources/SPortal1-1.php

Code (Find) Select
<td class="sp_middle">', $news['icon'], '</td>

Code (Replace) Select
<td class="sp_middle" style="padding: 0 0 0 5px;">', $news['icon'], '</td>

Quote from: neverhurry on May 16, 2009, 02:02:38 PM
Quote from: Blue Dream on May 16, 2009, 05:09:01 AM
You really don't need to re-install mods every time you get an error. I doubt it is something related to SimplePortal. May I see the forum itself.

Yes, it is very nice of you indeed. The admin name and password are in the PM to you. please check.
(http://www.cinask.com/Smileys/skype/thanks.gif)

Replied your pm.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: dry3210 on May 19, 2009, 04:28:58 PM
Quote from: ディン1031 on May 13, 2009, 11:19:48 AM
Okay a possible Fix (it's untested) ;).
Change in sp_pngfix.js (it's normal in you default theme dir)

if (is_ie5up && !is_ie7up && document.body.filters)


Replace with


// Some very basic browser detection
var ua = navigator.userAgent.toLowerCase();
var is_opera = ua.indexOf("opera") != -1;
var is_ie = ua.indexOf("msie") != -1  && !is_opera;
var is_ie4 = is_ie && ua.indexOf("msie 4") != -1;
var is_ie5 = is_ie && ua.indexOf("msie 5") != -1;
var is_ie50 = is_ie && ua.indexOf("msie 5.0") != -1;
var is_ie55 = is_ie && ua.indexOf("msie 5.5") != -1;
var is_ie5up = is_ie && !is_ie4;
var is_ie6 = is_ie && ua.indexOf("msie 6") != -1;
var is_ie6up = is_ie5up && !is_ie55 && !is_ie5;
var is_ie6down = is_ie6 || is_ie5 || is_ie4;
var is_ie7 = is_ie && ua.indexOf("msie 7") != -1;
var is_ie7up = is_ie6up && !is_ie6;
var is_ie7down = is_ie7 || is_ie6 || is_ie5 || is_ie4;

if (is_ie5up && !is_ie7up && document.body.filters)

Use is on you're own risk! And think if you insert it it could be possible that you can not upgrade to newer versions!

Bye
DIN1031


I think that may have worked.  Thank you very much.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: TheListener on May 20, 2009, 12:49:10 AM
Out of Tiny Portal ezportal and simple portal this is definately the best one.

The support from the sp team is second to none.

AND they have a sense of humour too.

Have a look at the portal on www.visionaryhosting.info/phforum

Title: Re: SimplePortal (2.2.1 Released!)
Post by: dzinerfusion on May 20, 2009, 07:31:57 PM
HI i checked my error log and found some errors. Can you help me fix them???



8: Undefined variable: modSettings
File: /-----------------/htdocs/forum/Themes/default/SPortal2.template.php (body_above sub template - eval?)
Line: 341

Line:339

Line:330
Title: Re: SimplePortal (2.2.1 Released!)
Post by: TheListener on May 20, 2009, 07:39:11 PM
I would suggest you visit www.simpleportal.net for a quicker response.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: Tiribulus on May 20, 2009, 10:48:53 PM
I just did the 1.1.8 to 1.1.9 upgrade automatically from the SMF interface and thought I should share this for Simple Portal users. It erred on the index.php file. I went ahead and let the rest do it's thing except I had to do the following manually.

It looks like SP inserts some of it's code in this section of the main index.php file which is one of the targets of this upgrade:
elseif (empty($modSettings['allow_guestAccess']) && !(!empty($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && !empty($_REQUEST['type']) && $_REQUEST['type'] == 'avatar') && !(empty($_REQUEST['action']) && empty($board) && empty($topic) && $modSettings['sp_portal_mode'] == 1) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', '.xml', 'verificationcode'))))

The way I got it working was by using KDIFF to figure out that the presence of '.xml', toward the end there was the difference.

I changed that section to:
elseif (empty($modSettings['allow_guestAccess']) && !(!empty($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && !empty($_REQUEST['type']) && $_REQUEST['type'] == 'avatar') && !(empty($_REQUEST['action']) && empty($board) && empty($topic) && $modSettings['sp_portal_mode'] == 1) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', 'verificationcode'))))

And everything appears to be good. No errors and everything looks to be working.

Of course I defer to the honchos for their much more reliable input, but thought this might be helpful.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: TheListener on May 20, 2009, 10:52:41 PM
Can I still do the update despite the index php failure?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: Tiribulus on May 20, 2009, 11:29:46 PM
I can only tell you how it went for me. I ran the auto install link from the adminCP ignoring the error and did that edit above myself as the SP code is surrounded by the SMF code. Of course I checked all this out before proceeding once I got the error.

Title: Re: SimplePortal (2.2.1 Released!)
Post by: jellie on May 20, 2009, 11:47:10 PM
Thankyou, I followed your advice and it worked perfectly for me :D
Title: Re: SimplePortal (2.2.1 Released!)
Post by: jellie on May 21, 2009, 12:09:16 AM
Hmm, maybe I spoke too soon.

The only problem I have is in the package manager when I click Download Packages I get

Parse error: syntax error, unexpected T_ELSE in /home/***/***.com/forum/Sources/PackageGet.php on line 395

Is that going to be related to this or should I post this in the upgrade support?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: Filipina on May 21, 2009, 12:35:59 AM
QuoteThe way I got it working was by using KDIFF to figure out that the presence of '.xml', toward the end there was the difference.

Hmmm I did a manual on the index.php file because mine was showing fail but i did not alter the edit supplied. My Portal is ok I think, so I guess I will leave well enough alone  :P
Title: Re: SimplePortal (2.2.1 Released!)
Post by: jellie on May 21, 2009, 01:06:11 AM
Nevermind, fixed it. There was a doubleup on a line of code somehow.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 21, 2009, 04:04:40 AM
For users getting index.php "Test Failed" error on upgrade to SMF 1.1.9 or 2.0 RC1-1 and have SimplePortal 2.2.1 installed

./index.php

For SMF 2.0

Code (Find) Select
'reminder', 'activate', 'help', 'smstats', '.xml',

Code (Replace) Select
'reminder', 'activate', 'help', 'smstats',

For SMF 1.1

Code (Find) Select
'reminder', 'activate', 'smstats', 'help', '.xml',

Code (Replace) Select
'reminder', 'activate', 'smstats', 'help',

Then you can ignore the error if it is *only* for index.php and continue with the upgrade.

This is not a bug at our end nor at SMF end. It is just a conflict between searches these two packages make.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: TheListener on May 21, 2009, 04:07:02 AM
Ha!

Nathaniel got out of being water bombed  :(

He said to me to uninstall the portal upgrade then reinstall.

Solved it.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 21, 2009, 04:09:03 AM
That's an alternative too. However, this might be easier. It's a pity that SMF upgrade package searches for the whole line, which SimplePortal makes an edit to, and not a part of it.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: Kingus on May 21, 2009, 04:16:07 AM
Hello, i would really like to commend you guys for the wonderful work done on simple portal. I just created a new forum and I immediately started encountering problems When i installed simple portal. It wrecked the design of my tabs and the forum tabs appears twice. View my site here (http://www.naijaloft.com)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 21, 2009, 04:20:50 AM
SimplePortal installation package does not add Forum button to the Dilber MC Theme, so you added it yourself. The issue is with that edit. Would attach your index.template.php file here?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: Kingus on May 21, 2009, 08:23:11 AM
thanks for your offer of help, i encoutered the same problem when i installed the custom tab mod. my index.template file is attached
Title: Re: SimplePortal (2.2.1 Released!)
Post by: Tiribulus on May 21, 2009, 09:34:20 AM
Quote from: Blue Dream on May 21, 2009, 04:04:40 AM
For users getting index.php "Test Failed" error on upgrade to SMF 1.1.9 or 2.0 RC1-1 and have SimplePortal 2.2.1 installed

./index.php

Code (Find) Select
'reminder', 'activate', 'smstats', 'help', '.xml',

Code (Replace) Select
'reminder', 'activate', 'smstats', 'help',

Then you can ignore the error if it is *only* for index.php and continue with the upgrade.

This is not a bug at our end nor at SMF end. It is just a conflict between searches these two packages make.

Ya made my day buddy. Now I feel like I'm learning something. 8) I'm sure it took you a lot less time than it did me, but that's exactly the conclusion I came to on the previous page. No big deal to work around really once you know what it is.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 21, 2009, 10:34:53 AM
Quote from: Kingus on May 21, 2009, 08:23:11 AM
thanks for your offer of help, i encoutered the same problem when i installed the custom tab mod. my index.template file is attached

There is a problem with attachment system on this forum. So I won't be able to download your file until its fixed. If it is urgent for you, create a topic at simpleportal.net.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: Boxerforum on May 21, 2009, 10:56:32 AM
Quote from: Blue Dream on May 21, 2009, 04:04:40 AM
For users getting index.php "Test Failed" error on upgrade to SMF 1.1.9 or 2.0 RC1-1 and have SimplePortal 2.2.1 installed

./index.php

Code (Find) Select
'reminder', 'activate', 'smstats', 'help', '.xml',

Code (Replace) Select
'reminder', 'activate', 'smstats', 'help',

Then you can ignore the error if it is *only* for index.php and continue with the upgrade.

This is not a bug at our end nor at SMF end. It is just a conflict between searches these two packages make.

I have tried this and searched in my index.php but I cannot find these lines with my editor, where do I have to search specifically ??
We work with a CPanel
Title: Re: SimplePortal (2.2.1 Released!)
Post by: Tiribulus on May 21, 2009, 11:04:10 AM
For me they're around line 200
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 21, 2009, 11:12:55 AM
Quote from: Hondenfora on May 21, 2009, 10:56:32 AM
I have tried this and searched in my index.php but I cannot find these lines with my editor, where do I have to search specifically ??
We work with a CPanel

There seems to be a tiny difference between SMF 1.1 and 2.0 versions. I've updated my post, please check it again.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: Boxerforum on May 21, 2009, 11:42:21 AM
Thanks we will try, such a little change, its no wonder we couldnt find it !!
Title: Re: SimplePortal (2.2.1 Released!)
Post by: romper on May 23, 2009, 07:36:01 PM
Can I please get help with install....I removed everything and wanted to go with SP but I got:
   Execute Modification     ./index.php     Test failed

What I did is install anyway and then manualy rewrite index.php with manual instructions given. Is that ok or shuold I uninstall and give you index.php file.?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: mirahalo on May 23, 2009, 11:28:12 PM
if you did the changes manually then you should be fine, theres no more to do but enjoy your portal ;)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 24, 2009, 03:36:29 AM
Quote from: romper on May 23, 2009, 07:36:01 PM
Can I please get help with install....I removed everything and wanted to go with SP but I got:
   Execute Modification     ./index.php     Test failed

What I did is install anyway and then manualy rewrite index.php with manual instructions given. Is that ok or shuold I uninstall and give you index.php file.?

Yeah, it should be fine if you've applied the changes manually.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 25, 2009, 12:30:54 PM
Hello!!
First of all, thanks for this wonderful MOD!! :D

I have SMF installed in /forum directory (i've created a subdomain, so in the browser it's forum.mysite.com), is it possibile to install simpleportal and have the portal in the home page?

I try to explain better... I'd like to have the simpleportal page displayed in www.mysite.com but continue to have the forum in /forum...

Thanks in advance!! ;)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: TommyJoe on May 25, 2009, 01:15:59 PM
Is there a way to have multiple portal pages?

I have several feeds on the portal page and scrolling down I find "Pages: [1] " and then
it continues on below that? Am I missing something in the setup for the portal?

TIA
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 25, 2009, 01:29:57 PM
Quote from: lorenzone92 on May 25, 2009, 12:30:54 PM
Hello!!
First of all, thanks for this wonderful MOD!! :D

I have SMF installed in /forum directory (i've created a subdomain, so in the browser it's forum.mysite.com), is it possibile to install simpleportal and have the portal in the home page?

I try to explain better... I'd like to have the simpleportal page displayed in www.mysite.com but continue to have the forum in /forum...

Thanks in advance!! ;)

Yeah, we have the standalone support. Select "Standalone" as the portal mode from Admin > SimplePortal > Configuration > General Settings area. Then open the SPStandalone.php file in your root with a text editor (like Notepad) and follow the instructions written with comment lines.

Quote from: TommyJoe on May 25, 2009, 01:15:59 PM
Is there a way to have multiple portal pages?

Not yet, but it will be included in 2.3 version, which is at the very early alpha stages now. There are several custom pages/action mods in the Mod Site, you can use them until 2.3 is out.

Quote from: TommyJoe on May 25, 2009, 01:15:59 PM
I have several feeds on the portal page and scrolling down I find "Pages: [1] " and then
it continues on below that? Am I missing something in the setup for the portal?

Not sure about this one, would you attach a screen shot?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: TommyJoe on May 25, 2009, 01:35:16 PM
Quote from: TommyJoe on May 25, 2009, 01:15:59 PM
Is there a way to have multiple portal pages?

Not yet, but it will be included in 2.3 version, which is at the very early alpha stages now. There are several custom pages/action mods in the Mod Site, you can use them until 2.3 is out.

Quote from: TommyJoe on May 25, 2009, 01:15:59 PM
I have several feeds on the portal page and scrolling down I find "Pages: [1] " and then
it continues on below that? Am I missing something in the setup for the portal?

Not sure about this one, would you attach a screen shot?
[/quote]


Thanks for all the hard work, this is a great addition to any board!
Here is the screen shot!

also if necessary, the site is http://southbendforums.com
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 25, 2009, 01:58:59 PM
Admin > SimplePortal > Configuration > Article Settings > Enable Articles

Make sure that the option is unchecked.

If it is already like that, do you have any board news block?

And you're welcome. Glad that you find the mod useful.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 25, 2009, 02:20:11 PM
Quote from: [SiNaN] on May 25, 2009, 01:29:57 PM
Quote from: lorenzone92 on May 25, 2009, 12:30:54 PM
Hello!!
First of all, thanks for this wonderful MOD!! :D

I have SMF installed in /forum directory (i've created a subdomain, so in the browser it's forum.mysite.com), is it possibile to install simpleportal and have the portal in the home page?

I try to explain better... I'd like to have the simpleportal page displayed in www.mysite.com but continue to have the forum in /forum...

Thanks in advance!! ;)

Yeah, we have the standalone support. Select "Standalone" as the portal mode from Admin > SimplePortal > Configuration > General Settings area. Then open the SPStandalone.php file in your root with a text editor (like Notepad) and follow the instructions written with comment lines.
Thanks for the reply!!
Well... I've installed SimplePortal, then I've selected "Standalone" and setted as standalone url www.mysite.com/portal.php.
Then I've opened SPStandalone.php and I've setted // Should be the full path! to $forum_dir = '/forum';
Then I moved the file to my root (mysite.com) and renamed it to portal.php but... if i visit portal.php it doesn't work... pheraps I've missed something...
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 25, 2009, 02:22:34 PM
What do you mean by "it doesn't work". The error you are getting or the result?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 25, 2009, 02:29:24 PM
Quote from: [SiNaN] on May 25, 2009, 02:22:34 PM
What do you mean by "it doesn't work". The error you are getting or the result?
it simply redirects to my root...
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 25, 2009, 02:35:43 PM
Do you have anything to rewrite URLs, or a redirection of some kind with .htaccess in the root? Does it work when you move it to some other directory?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: romper on May 25, 2009, 04:47:27 PM
Yes, it worked....but now I'm trying all portals to see which one looks the best for me! SP is very high on my list, but have one quick question. Tiny portal has much nicer (smaller) member information at the top. SP has huge avatar, then thing after that and itb takes half of my page...it's too big for my taste, can that be changed easily?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 25, 2009, 06:14:42 PM
Quote from: [SiNaN] on May 25, 2009, 02:35:43 PM
Do you have anything to rewrite URLs, or a redirection of some kind with .htaccess in the root? Does it work when you move it to some other directory?
No... my .htaccess only had:
errordocument 404 /
errordocument 403 /
errordocument 500 /

Now i've removed them too, and it's blank...

Here is the file, so you can understand better the error: http://www.rockciclopedia.com/portal.php

This is the screen in the settings:
http://img35.imageshack.us/img35/1395/smfsettings.png

...and this is the portal.php file:
http://img29.imageshack.us/img29/893/portalfile.png

Summing up... my forum url is: forum.rockciclopedia.com, I'd like to have the portal in rockciclopedia.com/portal.php ...

Thanks for you really fast replies! ;)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: arockets on May 25, 2009, 09:35:28 PM
Great Mod :)  thanks alot.  I do have a question although.  I don't have a "FORUM" menu option in my top menu, is this correct?  I saw a screenshot of the mod in one of the very first post's here, and saw that that one had it.  How can I resolve this?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 26, 2009, 04:45:04 AM
lorenzone92:

Are you sure that you set the $forum_dir correctly first? See if this works:

$forum_dir = dirname(__FILE__) . '/forum';

arockets:

Glad that you find the mod useful. Check out this topic for your question:

http://simpleportal.net/index.php?topic=148.0
Title: Re: SimplePortal (2.2.1 Released!)
Post by: zorro18 on May 26, 2009, 06:21:46 AM
Hi all,

I have updated smf from 1.1.9 to 2.0 RC 1-1 yesterday. I uninstalled previous sp(2.2.1) before the forum upgrade and reinstalled it today on 2.0 RC 1-1.

But there are a lot issues that came up with this re installation.

1. There are no right side blocks, even though we set some, they don't appear

2. Recent Posts error message
QuoteDatabase error, given array of integer values is empty. (include_boards)

3. I used to have mgallery, which has been uninstalled during the forum upgrade, the images in the gallery still appear in the SP.

4. SP still behaves like the old install with all the html still there.

What has to be done now to make a SP look and behave like a complete new install.?

Kindly help. I cant imagine a forum without SP. Thank you

you can see the sp live here (http://andhraconnect.com)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 26, 2009, 09:12:15 AM
Hey! Now it works!! Don't know why... I've removed portal.php, reuploaded SPStandalone.php and now it works!

Now there's another problem... I can't login in SPStandalone.php...
I'm logged in the forum, but if I visit the portal ( www.rockciclopedia.com/SPStandalone2.php ) I can't login, if I try, I'm redirected to the forum (where I'm already logged), so I re-enter password and username but it doesn't login in the portal!
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 26, 2009, 09:50:57 AM
Admin > Server Settings > Cookies and Sessions

Enable local storage of cookies => unchecked
Use subdomain independent cookies => checked

Make sure your settings are like that.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 26, 2009, 09:57:51 AM
Quote from: [SiNaN] on May 26, 2009, 09:50:57 AM
Use subdomain independent cookies => checked
This was unchecked... I checked it, cleared the cache in SMF but... the same..

EDIT: I only had to logout... fixed!! ;)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 26, 2009, 10:08:53 AM
Another question... :P
How can I change the forum title in the welcome area?
...and remove the board name above the first block?

(http://img38.imageshack.us/img38/7789/simpleportal.png)

...and, really last!, is it possibile to change the "description" and "keywords" meta tags?

Thanks for your patience!!!! :P

P.S.: This portal is really awesome!!
Title: Re: SimplePortal (2.2.1 Released!)
Post by: arockets on May 26, 2009, 10:22:51 AM
Quote from: [SiNaN] on May 26, 2009, 04:45:04 AM
lorenzone92:

Are you sure that you set the $forum_dir correctly first? See if this works:

$forum_dir = dirname(__FILE__) . '/forum';

arockets:

Glad that you find the mod useful. Check out this topic for your question:

http://simpleportal.net/index.php?topic=148.0


That did the trick, thanks again :)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 26, 2009, 10:24:15 AM
lorenzone92:

First; do you want to remove them all over the forum or just the portal page?

Second; check SPortal2.php file. There is a commented out line in sportal_init() function. If you take the lines out, it will remove it.

Third; again, is it just for the portal page or for all forum you want to change meta tags and keywords?

arockets:

You're welcome. ;)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 26, 2009, 10:39:14 AM
I'd like to change 'em only in the portal... :)

In SPortal2.php I see this:
function sportal_init($standalone = false)
{
   global $context, $sourcedir, $scripturl, $modSettings, $txt;
   global $settings, $options, $boarddir, $maintenance, $sportal_version;
   static $initialized;
Title: Re: SimplePortal (2.2.1 Released!)
Post by: LOVELORD on May 26, 2009, 02:02:43 PM
hove to make all block same? heigh and weith to be same...

etc:

left block 15 % middle 60% and right 15%

also down block to be 95 %
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 27, 2009, 11:09:20 AM
Quote from: lorenzone92 on May 26, 2009, 10:39:14 AM
I'd like to change 'em only in the portal... :)

Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:

if (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';


Quote from: lorenzone92 on May 26, 2009, 10:39:14 AM
In SPortal2.php I see this:

You should be able to see more than that, no? ;)

Code (Find) Select
// If you want to remove Forum link when it is
// alone, take out the following two comment lines.
//if (empty($context['linktree'][1]))
// $context['linktree'] = array();


Code (Replace) Select
// If you want to remove Forum link when it is
// alone, take out the following two comment lines.
if (empty($context['linktree'][1]))
$context['linktree'] = array();


Quote from: LOVELORD on May 26, 2009, 02:02:43 PM
hove to make all block same? heigh and weith to be same...

etc:

left block 15 % middle 60% and right 15%

also down block to be 95 %

I'm not sure if I understood you, can you elaborate?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: LOVELORD on May 27, 2009, 11:27:14 AM
I want to make all blocks into left, right or top same size in procent of display. Now if I open form IE blocks isn't same size.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 27, 2009, 11:57:54 AM
Specify the width in pixels like: 200px
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 27, 2009, 12:40:40 PM
Quote from: [SiNaN] on May 27, 2009, 11:09:20 AM
Quote from: lorenzone92 on May 26, 2009, 10:39:14 AM
I'd like to change 'em only in the portal... :)

Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:

if (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';

Mmh.. what do this code do? And in which file I have to put it?

Quote from: [SiNaN] on May 27, 2009, 11:09:20 AM
Quote from: lorenzone92 on May 26, 2009, 10:39:14 AM
In SPortal2.php I see this:

You should be able to see more than that, no? ;)

Code (Find) Select
// If you want to remove Forum link when it is
// alone, take out the following two comment lines.
//if (empty($context['linktree'][1]))
// $context['linktree'] = array();


Code (Replace) Select
// If you want to remove Forum link when it is
// alone, take out the following two comment lines.
if (empty($context['linktree'][1]))
$context['linktree'] = array();

OK, thanks!!! :D
It works! ;)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: LOVELORD on May 27, 2009, 01:01:37 PM
Quote from: [SiNaN] on May 27, 2009, 11:57:54 AM
Specify the width in pixels like: 200px

where?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: Shades. on May 27, 2009, 10:50:25 PM
I'm using SimplePortal 2.2.1 and have a question about the "Recent Post" block. Is there anyway to just show the topic that was started once instead of a new one each time someone replies? Maybe just update the topic date and time when there are new replies?

(See attachment for image of what I'm talking about)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: ディン1031 on May 28, 2009, 02:14:10 AM
Quote from: BoZilla on May 27, 2009, 10:50:25 PM
I'm using SimplePortal 2.2.1 and have a question about the "Recent Post" block. Is there anyway to just show the topic that was started once instead of a new one each time someone replies? Maybe just update the topic date and time when there are new replies?

(See attachment for image of what I'm talking about)
As far i know for this is the "Recent Topics" Block ;).

Bye
DIN1031
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 28, 2009, 02:25:52 AM
Quote from: lorenzone92 on May 27, 2009, 12:40:40 PM
Quote from: [SiNaN] on May 27, 2009, 11:09:20 AM
Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:

if (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';

Mmh.. what do this code do? And in which file I have to put it?

Using $context['standalone'], as I showed in the example, you can hide or show things you want only on portal. In your case, you'll have to edit your index.template.php to hide things as in the example.

Quote from: LOVELORD on May 27, 2009, 01:01:37 PM
Quote from: [SiNaN] on May 27, 2009, 11:57:54 AM
Specify the width in pixels like: 200px

where?

Admin > SimplePortal > Configuration > Block Settings

Left side width and Right side width settings.

Quote from: BoZilla on May 27, 2009, 10:50:25 PM
I'm using SimplePortal 2.2.1 and have a question about the "Recent Post" block. Is there anyway to just show the topic that was started once instead of a new one each time someone replies? Maybe just update the topic date and time when there are new replies?

(See attachment for image of what I'm talking about)

Yeah, as ディン1031 noted above, Recent Topics block does that.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: Shades. on May 28, 2009, 03:05:02 AM
Quote from: [SiNaN] on May 28, 2009, 02:25:52 AM
Quote from: lorenzone92 on May 27, 2009, 12:40:40 PM
Quote from: [SiNaN] on May 27, 2009, 11:09:20 AM
Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:

if (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';

Mmh.. what do this code do? And in which file I have to put it?

Using $context['standalone'], as I showed in the example, you can hide or show things you want only on portal. In your case, you'll have to edit your index.template.php to hide things as in the example.

Quote from: LOVELORD on May 27, 2009, 01:01:37 PM
Quote from: [SiNaN] on May 27, 2009, 11:57:54 AM
Specify the width in pixels like: 200px

where?

Admin > SimplePortal > Configuration > Block Settings

Left side width and Right side width settings.

Quote from: BoZilla on May 27, 2009, 10:50:25 PM
I'm using SimplePortal 2.2.1 and have a question about the "Recent Post" block. Is there anyway to just show the topic that was started once instead of a new one each time someone replies? Maybe just update the topic date and time when there are new replies?

(See attachment for image of what I'm talking about)

Yeah, as ディン1031 noted above, Recent Topics block does that.

Thanks to both of you! :)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: noelchiew on May 28, 2009, 04:23:54 AM
The button images (move up, down etc) in my Block List page are not showing. I check the links and they are searching for the image files in my root directory. It should be looking for the images in the theme's images directory since that is where the images were installed (Images/SP folder).

How do I point them in the right folder path?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 28, 2009, 04:37:04 AM
Do you have any errors in your Forum Error Log?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: noelchiew on May 28, 2009, 04:55:17 AM
Oh yes now that you mention it... this is the error:

Undefined index: sp_images_url
File: /home/cravchi7/public_html/forum/Sources/Subs-SPortal1-1.php
Line: 1062

The line there is:
$image = '<img src="' . $settings['sp_images_url'] . '/' . $name . '.png" alt="' . $alt . '"' . (!empty($title) ? ' title="' . $title . '"' : '') . (!empty($width) ? ' width="' . $width . '"' : '') . (!empty($height) ? ' height="' . $height . '"' : '') . (!empty($id) ? ' id="' . $id . '"' : '') . ' class="png_fix" />';
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 28, 2009, 05:01:01 AM
Do you have portal disabled ATM?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: noelchiew on May 28, 2009, 07:23:35 AM
Yes that's right... I have it disabled cos I want to finish customising the blocks etc first before revealing it as a new feature to my members :)

Is that the problem? If I enabled the portal there will not be any errors? I still have other errors actually but I think the one that I posted has to do with the images issue that I have.

The other errors that I have:

Undefined index: portal_url
File: /home/cravchi7/public_html/forum/Themes/default/Profile.template.php (eval?)
Line: 86

Undefined index: portal_url
File: /home/cravchi7/public_html/forum/Themes/default/Display.template.php (main sub template - eval?)
Line: 198

Undefined index: portal_url
File: /home/cravchi7/public_html/forum/Themes/default/Who.template.php (eval?)
Line: 86

Undefined index: cannot_sp_moderate
File: /home/cravchi7/public_html/forum/Sources/Security.php
Line: 764
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 28, 2009, 08:45:10 AM
Quote from: [SiNaN] on May 28, 2009, 02:25:52 AM
Quote from: lorenzone92 on May 27, 2009, 12:40:40 PM
Quote from: [SiNaN] on May 27, 2009, 11:09:20 AM
Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:

if (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';

Mmh.. what do this code do? And in which file I have to put it?

Using $context['standalone'], as I showed in the example, you can hide or show things you want only on portal. In your case, you'll have to edit your index.template.php to hide things as in the example.
So, for example, to modify the "description" meta tag, I have to replace the code with this:

<meta name="description" content="if (!empty($context['standalone']))
echo 'This is the description of the portal';
else
echo 'This is the description of the forum';" />


Is it correct?

P.S.: I've selected, instead of "Standalone" mode, "Integration"... do I have to use $context['standalone'] or $context['integration']
Title: Re: SimplePortal (2.2.1 Released!)
Post by: JM2Chen on May 28, 2009, 11:45:04 AM
I tried to add simple portal. Nice
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 28, 2009, 11:54:41 AM
Quote from: lorenzone92 on May 28, 2009, 08:45:10 AM
Is it correct?
Uhm... I receive a template parse error here:
<meta name="description" content="if (!empty($context['standalone']))

syntax error, unexpected T_STRING, expecting ',' or ';'
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 28, 2009, 11:57:09 AM
Quote from: lorenzone92 on May 28, 2009, 08:45:10 AM
P.S.: I've selected, instead of "Standalone" mode, "Integration"... do I have to use $context['standalone'] or $context['integration']

If you have changed to Integration mode, than you won't have a portal page. So you want to hide info on board index?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 28, 2009, 12:11:14 PM
I'm going to use the portal as my home page...

So I want to modify the info on board index, instead of "MYSITE FORUM", I'd like to have "MYSITE HOME"...
Then I'd like to change also the "description" metatag, 'cause it's different...

I tried with:
<meta name="description" content="if (!empty($context['standalone']))
   echo 'This is the description of the portal';
else
   echo 'This is the description of the forum';" />


...but I think I've missed something... :P
Title: Re: SimplePortal (2.2.1 Released!)
Post by: noelchiew on May 28, 2009, 02:04:01 PM
Quote from: JM2Chen on May 28, 2009, 11:45:04 AM
I tried to add simple portal. Nice
Looks like it really is simple for you though not simple for me... pun intended. :)

Come to think of it, since I have disabled the portal at the moment, wonder why these errors are there...
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 28, 2009, 04:00:13 PM
If you want to disable it while you are custumizing the portal, enable portal maintenance mode. It will make it so that only users who can manage SimplePortal will see the portal. Then you can safely enable the portal. It shouldn't be causing errors then.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: noelchiew on May 28, 2009, 04:34:18 PM
Mystery solved! I was just tinkering around on my own I just found this out... if I were to enable the portal (while in maintenance mode as I don't want my members to use it yet), the images are all appearing. When I set it back to disable, the images are gone again. So I guess this is more of a bug?

Also after doing the above, all the errors don't appear anymore except for this:

Guest
Undefined index: cannot_sp_moderate
File: ...forum/Sources/Security.php
Line: 764

Which I found out to be Google when I checked the IP as I was curious why a guest would be causing this error. I don't think anything can be done about Google, I too get other errors from Google, I think it is just crawling the web? Maybe this 'bug' will be taken care of in the next version of SP? :)

Thanks for the help, appreciate it!
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 29, 2009, 04:17:19 AM
lorenzone92:

It should be something like this:


<meta name="description" content="';

if (!empty($context['standalone']))
echo 'This is the description of the portal';
else
echo 'This is the description of the forum';

echo '" />


noelchiew:

It is kind of bug. But you wouldn't use portal when it is disabled. So some functions are not loaded. When you are working on portal and you don't want others to see it, just turn on the portal maintenance and it should be fine.

For the error; are you constantly getting this error?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: noelchiew on May 29, 2009, 05:21:52 AM
At the moment, portal is now in maintenance mod and I still get errors from 'guests' and when I traced the IP I found them out to be from Google, Microsoft, Yahoo... are these just crawling the web for the web search engines?

http://ws.arin.net/whois/?queryinput=66.249.68.11
http://ws.arin.net/whois/?queryinput=65.55.208.82
http://ws.arin.net/whois/?queryinput=65.55.109.121
http://ws.arin.net/whois/?queryinput=72.30.142.254
http://ws.arin.net/whois/?queryinput=65.55.208.83


I checked my error log again and I am still getting these errors:
When a member views the who's online page:
Undefined index: portal_url
File: /home/cravchi7/public_html/forum/Themes/default/Who.template.php (eval?)
Line: 86

When a member views a member's profile page:
Undefined index: portal_url
File: /home/cravchi7/public_html/forum/Themes/default/Profile.template.php (eval?)
Line: 86

Are these 2 errors actually bugs that happens when the portal is in maintenance mode?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 29, 2009, 09:17:47 AM
I see. As they won't be able to see the portal, similarly some things are not loaded for them. You can ignore those errors as they won't cause any issues. Once you finish customizing your portal, just clear you error log and you should be fine. This will be fixed with the release which will be out soon.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: noelchiew on May 29, 2009, 09:35:25 AM
Ok got it... thanks! :)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 29, 2009, 10:54:35 AM
Quote from: [SiNaN] on May 29, 2009, 04:17:19 AM
lorenzone92:

It should be something like this:


<meta name="description" content="';

if (!empty($context['standalone']))
echo 'This is the description of the portal';
else
echo 'This is the description of the forum';

echo '" />

Yeeaah!!! It works!! ..and you rock!! :D

Now.. another thing.. :P

How can I change the forum name to have something like this:
In forum display "Forum Name", in Portal "Forum Portal"...

I think that the code to edit is this:

<h1>';

if (empty($settings['header_logo_url']))
echo $context['forum_name_html_safe'];
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';

echo '
</h1>


...but I don't know how to add the if (!empty($context['standalone'])) condition, 'cause it already has "if"...
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 29, 2009, 11:04:12 AM
Code (Find) Select
   if (empty($settings['header_logo_url']))
      echo $context['forum_name_html_safe'];


Code (Replace) Select
   if (empty($settings['header_logo_url']))
      echo empty($context['standalone']) ? $context['forum_name_html_safe'] : 'Forum Portal';
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 30, 2009, 08:30:11 AM
Thanks!! :D

Now I'm trying to have.. for example.. an about page as in your site: http://simpleportal.net/index.php?action=about
But... not as an action (?action=about) but in an external file (example: about.html)...

Is it possible?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 30, 2009, 08:39:27 AM
You could create a page with SSI. A sample code:

<?php

require_once('path/to/SSI.php');

obExit(true);

function 
template_main()
{
echo 'Hello! I\'m some HTML code!';
}

?>
Title: Re: SimplePortal (2.2.1 Released!)
Post by: TheListener on May 30, 2009, 08:53:57 AM
How do I add some colour to the main html welcome block?

Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 30, 2009, 09:02:16 AM
Quote from: TheListener on May 30, 2009, 08:53:57 AM
How do I add some colour to the main html welcome block?
If you are in "Standalone" mode, open index.template.php, find the part you want to modify and add
if (!empty($context['standalone']))
   echo '<span style="something">YOUR COLOURED TEXT</span>';
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 30, 2009, 09:04:23 AM
Quote from: TheListener on May 30, 2009, 08:53:57 AM
How do I add some colour to the main html welcome block?

This is my uncolored text.

<span style="color: red;">Now this text is colored red. ;D</span>
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 30, 2009, 09:05:05 AM
Quote from: [SiNaN] on May 30, 2009, 08:39:27 AM
You could create a page with SSI. A sample code:

<?php

require_once('path/to/SSI.php');

obExit(true);

function 
template_main()
{
echo 'Hello! I\'m some HTML code!';
}

?>

Ook! :)
And how can I add a condition... example... how can I create something like this: if (!empty($context['aboutpage'])) to use in index.template.php...?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 30, 2009, 09:16:40 AM
Code (Find) Select
obExit(true);

Code (Replace) Select
$context['aboutpage'] = true;

obExit(true);
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 30, 2009, 09:43:33 AM
Ook!! :D
And how can I modify the "active button"? the page shows the "forum" button as active, how can I change it - for instance - to the "search" button (and show it as active)?
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 30, 2009, 09:50:54 AM
Code (Find) Select
require_once('path/to/SSI.php');

Code (Replace) Select
$_GET['action'] = 'search';

require_once('path/to/SSI.php');
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on May 30, 2009, 11:10:06 AM
How can I add 2 conditions here:

if (empty($settings['header_logo_url']))
echo empty($context['standalone']) ? $context['forum_name_html_safe'] : 'RockCiclopedia';
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';

... to have the name "About - RockCiclopedia" for the 'aboutpage'...? I tried with this but it duplicates the names...:

if (empty($settings['header_logo_url']))
echo empty($context['standalone']) ? $context['forum_name_html_safe'] : 'RockCiclopedia';
if (empty($settings['header_logo_url']))
echo empty($context['aboutpage']) ? $context['forum_name_html_safe'] : 'About - RockCiclopedia';
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';


Unfortunately I'm not so expert with the syntax.. :(

Really thanks for all the replies your giving to me!! :)

P.S.:
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 31, 2009, 03:42:45 AM
Code (Find) Select

if (empty($settings['header_logo_url']))
echo empty($context['standalone']) ? $context['forum_name_html_safe'] : 'RockCiclopedia';
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';


Code (Replace) Select
if (empty($settings['header_logo_url']))
{
if (!empty($context['standalone']))
echo 'RockCiclopedia';
elseif (!empty($context['aboutpage']))
echo 'About - RockCiclopedia';
else
echo $context['forum_name_html_safe'];
}
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';


For further coding support, visit SMF Coding Discussion (http://www.simplemachines.org/community/index.php?board=60.0) board.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: mrbolsonator on May 31, 2009, 01:21:00 PM
I am having a problem trying to remove a picture from all the articles. I am not very good with coding and cannot figure out how to delete it. Can anyone help?

www.fuelcrazyamerica.com
Title: Re: SimplePortal (2.2.1 Released!)
Post by: [SiNaN] on May 31, 2009, 02:15:25 PM
Which picture are you trying to remove? If you mean the category image, just edit the category and delete image URL in the picture URL text box.
Title: Re: SimplePortal (2.2.1 Released!)
Post by: mrbolsonator on May 31, 2009, 10:19:07 PM
thank you thank you thank you
Title: Re: SimplePortal (2.2.1 Released!)
Post by: arockets on June 04, 2009, 09:56:09 AM
I have an error in my log:

Mod Settings
Line 531
SPortal1-1.template.php

Any suggestions :)
Title: Re: SimplePortal (2.2.1 Released!)
Post by: MultiformeIngegno on June 05, 2009, 03:52:16 AM
Hello! :)
How can I hide the - for example - "profile" and "help" buttons only in the portal?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 06, 2009, 07:02:37 AM
The SimplePortal Team is proud to announce the release of SimplePortal 2.2.2. This release includes several fixes for bugs found in the 2.2 versions and some essential minor features.

We urge all users to upgrade to SimplePortal 2.2.2 as soon as possible to take advantage of these fixes. A summary of the fixes and features is as follows:

Fixes

Features

For users that are currently running SimplePortal 2.2 or SimplePortal 2.2.1; you can upgrade to 2.2.2 using the SimplePortal 2.2.2 installation package.

If you are running an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.

Thanks for all your support, and keep those bug reports and feature requests coming!
-The SimplePortal Team
Title: Re: SimplePortal (2.2.2 Released!)
Post by: willerby on June 06, 2009, 12:09:11 PM
Quote from: [SiNaN] on June 06, 2009, 07:02:37 AM
For users that are currently running SimplePortal 2.2 or SimplePortal 2.2.1; you can upgrade to 2.2.2 using the SimplePortal 2.2.2 installation package.

As always, simple to upgrade. Smooth as glass; if only all mod upgrades went like this...

Thanks
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Tiribulus on June 06, 2009, 02:17:56 PM
This time I gave it a bit more thorough going over, but like the guy above. 2 minute upgrade and no problems near as I can tell.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: smldmr on June 06, 2009, 04:34:17 PM
Hello, i updated my SP form 2.2.1 to 2.2.2.

- Now all the thumbnails on portal are bigger then in Forum. The forum scales all images to 100x100 but now this images are on Portal not 100x100. How can i fix this?

- How cann i use the cutt-off function?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: candidosa2 on June 07, 2009, 01:51:01 AM
Thank you for Update
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Neverhurry on June 08, 2009, 04:15:23 AM
Hi,

i don't know why every time when i need to edit a block, it breaks the layout, please have a look at the attachment. thank you!

the code i use in that block is:


<div><p>欢迎加入《21世纪艺术论坛》,如果您喜欢这个独特的网站,那么请您帮《21世纪艺术论坛》宣传几句。只需要您把一个文字链接或者一个图片链接加到您的个人网站,或者Myspace、Facebood等社会网站,或者您所属的任何论坛的个人资料页或签名中。办法非常简单,只需要复制下面的代码然后拷贝就行了。点击右上角"-"号可以折叠本版块。谢谢!</p><br />

<table width="96%" border="0">
  <tr>
    <td width="50%">文字链接:</td>
    <td width="50%"><span style="float: left;">文字链接显示:</span></td>
  </tr>
  <tr>
    <td><textarea rows="4" cols="70">
html代码:
<a href="http://www.21arte.com">《21世纪艺术论坛》会员</a>

bbc代码:
[url=http://www.21arte.com]《21世纪艺术论坛》会员[/url] </textarea></td>
    <td><a href="http://www.21arte.com/">《21世纪艺术论坛》会员</a></td>
  </tr>
  <tr>
    <td><span style="float: left;">图片链接:</span></td>
    <td><span style="float: left;">图片链接显示:</span></td>
  </tr>
  <tr>
    <td><textarea name="textarea" cols="70" rows="8">
html代码:
<a href="http://www.21arte.com" title="《21世纪艺术论坛》" target="_blank"><img border="0" src="http://www.21arte.com/images/ouwangbig.gif" /></a>

bbc代码:
[url=http://www.21arte.com/][img]http://www.21arte.com/images/ouwangbig.gif[/img][/url]</textarea></td>
    <td><a href="http://www.21arte.com/" title="《21世纪艺术论坛》" target="_blank"><img src="http://www.21arte.com/images/ouwangbig.gif" alt="21世纪艺术论坛" border="0" /></a></td>
  </tr>
</table>
</div>
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 08, 2009, 08:44:48 AM
Quote from: smldmr on June 06, 2009, 04:34:17 PM
- Now all the thumbnails on portal are bigger then in Forum. The forum scales all images to 100x100 but now this images are on Portal not 100x100. How can i fix this?

May I see your forum? Feel free to pm me the link if you don't want to post it public.

Quote from: smldmr on June 06, 2009, 04:34:17 PM
- How cann i use the cutt-off function?

The change is technical actually. I mean, there is no change at how you set cut-off, but how it is done technically.

Quote from: neverhurry on June 08, 2009, 04:15:23 AM
Hi,

i don't know why every time when i need to edit a block, it breaks the layout, please have a look at the attachment. thank you!

the code i use in that block is:

As I said before, there is no problem with the HTML block of SimplePortal. Just make sure your HTML codes are correct and do not use html and body tags in your HTML codes.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Neverhurry on June 08, 2009, 09:04:56 AM
sorry, i made a mistake when i paste the code, i corrected it, there is no html or body tags now, but the problem is still there.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: saibaworld on June 10, 2009, 12:24:51 PM
My forum at www.allnigeria.info is relatively and is on SMF 1.1.9.

I have never used any portal before but liked all the reviews i saw on Simple Portal.
I just downloaded Simple Portal 2.2.2 from the SMF mod site; and then uploaded via my package manager. But instead of uploading, i get this message:

An error has occured.
Could not upload package, please check directory permissions!


Pls wat do i do now?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: noelchiew on June 10, 2009, 12:40:14 PM
You probably need to go to your cpanel file manager to change the packages folder permissions :) Give it a try change it to 755.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: saibaworld on June 10, 2009, 01:06:05 PM
Thanks, but am sorry if i sound dumb, but am still new at all this.  :-[

How do i get to d cpanel manager in the 1st place?
And if i change the settings to 755, do i have to change it back to the original setting after uploading the Simple Portal 2.2.2?  ???
Title: Re: SimplePortal (2.2.2 Released!)
Post by: noelchiew on June 10, 2009, 01:16:12 PM
You should be given instructions how to log into your site's cpanel by your webhost. Usually it would be yoursite.com/cpanel but your log in details would be given by your webhost. No you don't have to change the settings back :)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: saibaworld on June 10, 2009, 01:23:09 PM
Thanks so much.  :D
Will contact my webhost now
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Gmans on June 11, 2009, 02:08:16 PM
Big thank you :)
I was happy if you have included support mod Atachment in messege :) (in portal page)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: kat on June 11, 2009, 03:16:23 PM
Silly question time...

We're thinking of using SP as a kind of front page, open to guests. We don't want anybody to be able to get past the portal, though, until they login/register.

Is that possible, with SP, as-is (v2.2)?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: tbk22 on June 11, 2009, 04:34:17 PM
Is it compatible with custom themes even if these custom themes weren't made for simple portal?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Nathaniel on June 11, 2009, 07:38:05 PM
@drtonik,
You should be able to enter your FTP information into the package manager, so that it can fix the issue. See the documentation below:
http://docs.simplemachines.org/index.php?topic=93.msg4908

Otherwise you will need to Chmod your 'packages' directory to 0777.
See this documentation on chmod: http://docs.simplemachines.org/index.php?topic=477.msg686#msg686

@Kat,
At the moment SimplePortal ignores the setting relating to stoping guests from browsing your forum, if you enable that setting, then guests will be able to view the portal, but not any other page without registering or logging in.

@tbk22,
SimplePortal is compatible with any almost custom theme, most of the time you have to apply one or two edits (unless the theme breaks SP's layout or visa versa). The 'Display.template.php' edit is also non-crucial, as you can add articles from the admin area.

If you are using SMF 2 the only edit you will need to make is if your theme has its own 'Display.template.php' file.
If you are using SMF 1.1.x then you will have to add the 'Forum' button (see this (http://simpleportal.net/index.php?topic=148.0) topic), and if your theme has its own 'Display.template.php' file then that will require another edit.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Asude on June 12, 2009, 04:13:43 AM
Quote from: Kat on June 11, 2009, 03:16:23 PM
Silly question time...

We're thinking of using SP as a kind of front page, open to guests. We don't want anybody to be able to get past the portal, though, until they login/register.

Is that possible, with SP, as-is (v2.2)?

It requires two minor edits:

http://simpleportal.net/index.php?topic=2508.msg16596#msg16596

----

Other waiting responses; Nathaniel replied them all in the last post of page 144, don't miss them.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: kat on June 12, 2009, 07:24:15 AM
That's how I'd thought it.

Thanks!!!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Angelina Belle on June 15, 2009, 03:28:51 PM
Great demo!
I'm seriously considering it.  Any chance of having a news fader block in the near future?  I've grown quite fond of it.  I wonder how difficult it would be for me to create a news fader block myself...
Title: Re: SimplePortal (2.2.2 Released!)
Post by: sepulchre on June 15, 2009, 05:11:51 PM
Guys, I've recently installed SMF and simpleportal 2.2.2 but I'm getting the following error -

8: Undefined index: error_sp_no_post_found
File: /home/xxxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 1411

Any suggestions?

TIA :)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: willerby on June 15, 2009, 05:26:22 PM
Quote from: AngelinaBelle on June 15, 2009, 03:28:51 PM
Great demo!
I'm seriously considering it.  Any chance of having a news fader block in the near future?  I've grown quite fond of it.  I wonder how difficult it would be for me to create a news fader block myself...

Code for a custom php block for this is available here http://simpleportal.net/index.php?topic=1763.0
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Angelina Belle on June 15, 2009, 07:10:11 PM
Quote from: willerby on June 15, 2009, 05:26:22 PM
Quote from: AngelinaBelle on June 15, 2009, 03:28:51 PM
Any chance of having a news fader block in the near future? 

Code for a custom php block for this is available here http://simpleportal.net/index.php?topic=1763.0
That was easy!
Thanks
Title: Re: SimplePortal (2.2.2 Released!)
Post by: xPreatorianx on June 18, 2009, 01:46:03 PM
Hello I have Black rain V.2 theme with SMF 1.1.9 and I was wondering what is the custom code for the index.template.php specifically for the home and forum button. The theme is not coded like the default theme so when I copy and paste the code it messes up the button. So how do I fix that?

Below I will show the default coding for the home button on my theme and then the custom code that was provided for the mod. If someone can translate the code to show my themes buttons that would be great.

// How about the [home] button?
echo '<ul><li', $current_action == 'home' ? ' id="active"' : '', '><a href="', $scripturl, '"><span>'.$txt[103].'</span></a></li>';


The custom code for the mod that was provided with the parser :

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', ($modSettings['sp_portal_mode'] == 3 ? $modSettings['sp_standalone_url'] : $scripturl), '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Show the [forum] button.
if (in_array($modSettings['sp_portal_mode'], array(1, 3)))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Also im getting this error  :

8: Undefined variable: modSettings
File: /home/preat/public_html/Themes/default/languages/SPortalHelp.english.php (main_above sub template - eval?)
Line: 505
Title: Re: SimplePortal (2.2.2 Released!)
Post by: katbloke on June 20, 2009, 06:06:25 AM
just installed the portal and when i click home it takes me to the portal where it used to take me to the forum index, using the clean blue theme how can i add a forum button because i like the look of the portal
Title: Re: SimplePortal (2.2.2 Released!)
Post by: sombra on June 20, 2009, 03:12:39 PM
im using the version before this one do you recomend to update? or wait for another version 

what normal problems can i get for updating or what advanteges

thanks wondurfull mod
Title: Re: SimplePortal (2.2.2 Released!)
Post by: nodent on June 21, 2009, 03:17:06 PM
I was looking up forum stuff on your website, as now it seems to be hijacked by an ad.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: nopity4u on June 21, 2009, 08:55:41 PM
I'm getting the following 2 errors when viewing the home page (Front page mode)

2: Invalid argument supplied for foreach()
File: /home/username/public_html/Sources/Subs-SPortal1-1.php
Line: 967

2: array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array
File: /home/username/public_html/Sources/Subs-SPortal1-1.php
Line: 965


This seems to be the part of code that is causing the error:
// MemberColorLink compatible, chache more data, handle also some special member color link colors
if (!empty($modSettings['MemberColorLinkInstalled']))
{
$colorDatas = load_onlineColors($users);
Line965 -> $loaded_ids = array_keys($colorDatas);

Line967 -> foreach($loaded_ids as $id)
{
if(!empty($id) && !isset($color_profile[$id]['link']))
{
$color_profile[$id]['link'] = $colorDatas[$id]['colored_link'];
$color_profile[$id]['colored_name'] = $colorDatas[$id]['colored_name'];
}
}


Here are the installed mods:
Quote1.     SMFBlog      1.0       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    SMFShop    3.1.1    [ Uninstall ] [ List Files ] [ Delete ]
3.    Additional Membergroups on Profile    1.0    [ Uninstall ] [ List Files ] [ Delete ]
4.    RSS Feed Poster    1.1    [ Uninstall ] [ List Files ] [ Delete ]
5.    Admin Notepad    1.0    [ Uninstall ] [ List Files ] [ Delete ]
6.    Invite    1.14    [ Uninstall ] [ List Files ] [ Delete ]
7.    Global Headers Footers    1.4.1    [ Apply Mod ] [ List Files ] [ Delete ]
8.    Topic Solved    1.22    [ Uninstall ] [ List Files ] [ Delete ]
9.    SSI Topic and Replies    0.1    [ Uninstall ] [ List Files ] [ Delete ]
10.    Aeva ~ Auto-Embed Video & Audio    6.9.99    [ Uninstall ] [ List Files ] [ Delete ]
11.    SimplePortal    2.2.2    [ Uninstall ] [ List Files ] [ Delete ]
12.    Images On Board    2.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    Group Moderators    1.4    [ Uninstall ] [ List Files ] [ Delete ]
15.    Password Protect Boards    0.2    [ Uninstall ] [ List Files ] [ Delete ]
16.    reCAPTCHA for SMF    0.9.5.4b    [ Uninstall ] [ List Files ] [ Delete ]
17.    SMF Arcade    2.0.18    [ Uninstall ] [ List Files ] [ Delete ]
18.    Search Time Limitation    1.0    [ Uninstall ] [ List Files ] [ Delete ]
19.    SMF Media Gallery    1.5.6    [ Uninstall ] [ List Files ] [ Delete ]
20.    Advanced Reputation System    0.1.3    [ Uninstall ] [ List Files ] [ Delete ]
21.    Custom Profile Field Mod    3.20    [ Uninstall ] [ List Files ] [ Delete ]
22.    Global Announcements    1.0    [ Uninstall ] [ List Files ] [ Delete ]
23.    Download Quota    1.0    [ Uninstall ] [ List Files ] [ Delete ]
24.    VisualWarning    1.42    [ Uninstall ] [ List Files ] [ Delete ]
25.    SMF Arcade    2.5 Beta 5    [ List Files ] [ Delete ]
26.    User Control Panel By Alan S    2.0    [ Uninstall ] [ List Files ] [ Delete ]
29.    Additional Membergroups on Profile    1.0    [ Uninstall ] [ List Files ] [ Delete ]
30.    Stop Spammer    2.2    [ Uninstall ] [ List Files ] [ Delete ]
31.    [HTML] Permission Mod    1.01    [ Uninstall ] [ List Files ] [ Delete ]
32.    Buddy Message Highlight    1.2    [ Uninstall ] [ List Files ] [ Delete ]
33.    hidden for guests    1.0.3    [ List Files ] [ Delete ]
34.    Paid Subscriptions    0.18    [ Uninstall ] [ List Files ] [ Delete ]
35.    Advanced Reputation System    1.7.4    [ List Files ] [ Delete ]
36.    Hack's Park Shoutbox    2.0    [ Uninstall ] [ List Files ] [ Delete ]
37.    MCLegendII.2    3.0    [ Uninstall ] [ List Files ] [ Delete ]
38.    Moderator Activity Report for SMF1.1.4    1.2    [ Uninstall ] [ List Files ] [ Delete ]
39.    View Any Topic Permission Mod    1.9    [ Uninstall ] [ List Files ] [ Delete ]
40.    Pm_Informer    2.0    [ Uninstall ] [ List Files ] [ Delete ]
41.    Favicon    1.2    [ Uninstall ] [ List Files ] [ Delete ]
43.    Karma Buttons    1.1    [ Uninstall ] [ List Files ] [ Delete ]
44.    Custom Form Mod    1.4    [ Uninstall ] [ List Files ] [ Delete ]
45.    Download Quota    1.0    [ Uninstall ] [ List Files ] [ Delete ]
46.    Member Color Link    3.0.7    [ Uninstall ] [ List Files ] [ Delete ]
47.    Smiley Pops 1.1.3    1.1.3    [ Uninstall ] [ List Files ] [ Delete ]
Installed mods: current version older version
Title: Re: SimplePortal (2.2.2 Released!)
Post by: DJBoddington on June 21, 2009, 09:05:15 PM
tried installing it but got:
Quote1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./SSI.php    Test successful
3.    Execute Modification    .Sources/Admin.php    Test successful
4.    Execute Modification    .Sources/BoardIndex.php    Test successful
5.    Execute Modification    .Sources/Display.php    Test successful
6.    Execute Modification    .Sources/Help.php    Test successful
7.    Execute Modification    .Sources/Load.php    Test successful
8.    Execute Modification    .Sources/ManagePermissions.php    Test failed
9.    Execute Modification    .Sources/ManageServer.php    Test successful
10.    Execute Modification    .Sources/QueryString.php    Test successful
11.    Execute Modification    .Sources/Recent.php    Test successful
12.    Execute Modification    .Sources/Subs.php    Test successful
13.    Execute Modification    .Themes/default/index.template.php    Test successful
14.    Execute Modification    .Themes/default/Display.template.php    Test successful
15.    Execute Modification    .Themes/default/languages/Who.english.php    Test successful
16.    Execute Modification    .Themes/default/languages/Who.english-utf8.php    Skipping file

i didnt see anyone else post this
Title: Re: SimplePortal (2.2.2 Released!)
Post by: nopity4u on June 21, 2009, 09:26:59 PM
More than likely just another mod installed to change the way the permissions file was made up. You should still be able to install it manually.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: DJBoddington on June 21, 2009, 11:02:09 PM
ah yea okay :)

??? this seems a stupid question to ask but I Am Stupid so what the hell; how do i install it manually ???
Title: Re: SimplePortal (2.2.2 Released!)
Post by: nopity4u on June 21, 2009, 11:22:46 PM
http://custom.simplemachines.org/mods/index.php?mod=1104

At the top right, click the radio button for the version you've installed and select your version of SMF from the dropdown box and click the parse button.

Be sure to backup any files you intend to change. In this case you're going to be manually editing ManagePermissions.php.

So go ahead and install the mod even though ManagePermissions.php is failing, then open ManagePermissions.php up in a text editor and apply the edits yourself. If this is beyond something you can do I'd be willing to go onto your site and do it for you if you're cool with that.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: DJBoddington on June 21, 2009, 11:30:54 PM
ah okay thanks!

urmm okay yea could be better - im not good at editing files, you use a FTP Client?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: amlucent on June 21, 2009, 11:38:15 PM
Did simpleportal.net get hacked?  I cant visit anything but the front page without getting some vitamin ad spam.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on June 21, 2009, 11:38:31 PM
Quote from: nodent on June 21, 2009, 03:17:06 PM
I was looking up forum stuff on your website, as now it seems to be hijacked by an ad.

I'm working with my host to resolve it. I'll keep you guys updated here until it gets back up.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: learjet45 on June 22, 2009, 01:21:11 AM
Did somebody forget to pay a bill? :P

Quote from: katbloke on June 20, 2009, 06:06:25 AM
just installed the portal and when i click home it takes me to the portal where it used to take me to the forum index, using the clean blue theme how can i add a forum button because i like the look of the portal
You need to make a custom edit to the index.template.php file for your theme. If you attach it to a post, I'm sure someone would be happy to take care of it if you don't know how to.

Quote from: sombra on June 20, 2009, 03:12:39 PM
im using the version before this one do you recomend to update? or wait for another version 

what normal problems can i get for updating or what advanteges

thanks wondurfull mod
Updates are released for a reason :) It is also very easy to update simple portal. If you are indeed using 2.2.1, then all you have to do to update is upload the 2.2.2 package and then instead of a new install it will update 2.2.1.

Quote from: DJBoddington on June 21, 2009, 11:30:54 PM
ah okay thanks!

urmm okay yea could be better - im not good at editing files, you use a FTP Client?
If you need help making custom edits to a file, then I suggest you post the file as an attachment in this thread. I'm sure someone would be more than willing to make the edits for you. I'm more than happy to do it myself. As nopity said, just install the mod even though the test fails, then upload the new ManagePermissions.php file. Be sure to back things up first.

nopity, what version of SMF are you using? Do you have Disable Colored Member Links setting enabled or disabled?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: mrtrc266 on June 22, 2009, 02:23:40 AM
Quote from: Eliana Tamerin on June 21, 2009, 11:38:31 PM
Quote from: nodent on June 21, 2009, 03:17:06 PM
I was looking up forum stuff on your website, as now it seems to be hijacked by an ad.

I'm working with my host to resolve it. I'll keep you guys updated here until it gets back up.

LOL You might be able to either sue or get royalties from Pure Acai Slim Co and Rachel Ray. Could be the catalyst to launch SP into the next dimension if you get millions :D
Title: Re: SimplePortal (2.2.2 Released!)
Post by: _Anthony_ on June 22, 2009, 03:10:22 AM
It's been a while since I looked at this mod, looks like it's gotten far good job SimplePortal devs!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on June 22, 2009, 11:16:05 AM
Alright, for anyone still wondering what was going on last night, I checked with my host and this seems to have been a breach of the server level, not account. So SMF wasn't compromised and all our data is safe. The DNS controls were manipulated, and at a higher level than I could see, since they all looked fine to me.

Regardless, the site is back and working now, as far as I can see. If anyone is still experiencing problems with it, please let me know directly by PM.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: DJBoddington on June 22, 2009, 11:24:28 AM
Quote from: learjet45 on June 22, 2009, 01:21:11 AM
Quote from: DJBoddington on June 21, 2009, 11:30:54 PM
ah okay thanks!

urmm okay yea could be better - im not good at editing files, you use a FTP Client?
If you need help making custom edits to a file, then I suggest you post the file as an attachment in this thread. I'm sure someone would be more than willing to make the edits for you. I'm more than happy to do it myself. As nopity said, just install the mod even though the test fails, then upload the new ManagePermissions.php file. Be sure to back things up first.

ah okay! I installed it and heres the file :D
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Paolo Bitta on June 22, 2009, 11:41:58 AM
Just to let you know that I encountered a problem with the installation of SP 2.2.2 and SMF 1.1.9.

in file Subs.php the test failed because of a series of blank spaces instead of a TAB in a line of code.
after reading manual installation instructions, I verified the code and found the issue....

Maybe this hint will be useful for fixing the installation script, I don't really know how the package manager works..

anyway, great mod!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: mirahalo on June 22, 2009, 01:09:50 PM
@DJBoddington

ok, here is your file, just a little misunderstanding with SMFShop mod  ;D

this is what I added:

'sp' => array(
'sp_moderate' => false,
'sp_add_article' => false,
'sp_auto_article_approval' => false,
),


greetings!

Title: Re: SimplePortal (2.2.2 Released!)
Post by: DJBoddington on June 22, 2009, 01:45:26 PM
Ah thank you very much :D

Cheers!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: alke on June 22, 2009, 05:11:43 PM
Is there/will there be, a block for SMF Quiz (http://custom.simplemachines.org/mods/index.php?mod=1650)?
Maybe one to show top players/top favourite quizes.
Like the arcade block.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on June 22, 2009, 06:01:14 PM
@alke: http://simpleportal.net/index.php?topic=2517.0
Title: Re: SimplePortal (2.2.2 Released!)
Post by: learjet45 on June 22, 2009, 08:27:17 PM
I still cant get on the site. I'm getting the Acai power slim thing.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on June 22, 2009, 08:42:40 PM
What address are you using? And where are you from, a geographic location could help my host pinpoint the DNS issue.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: learjet45 on June 22, 2009, 09:35:19 PM
I tried clicking the link you posted and it still came up with the acai stuff.
I live near denver, colorado.
A tracert of simpleportal.net takes me through all the various comcast points, eventually directing to the IPs listed in the attached file
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on June 23, 2009, 11:14:47 AM
Have you tried flushing your DNS cache? If you're running Windows, go to Start > Run and enter in

ipconfig /flushdns
Title: Re: SimplePortal (2.2.2 Released!)
Post by: learjet45 on June 23, 2009, 11:49:09 AM
Thanks Eliana! That worked!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: alke on June 23, 2009, 05:28:35 PM
Quote from: Eliana Tamerin on June 22, 2009, 06:01:14 PM
@alke: http://simpleportal.net/index.php?topic=2517.0

Thanks again Eliana, Thats twice today! and a third thank you for Simple Portal.
So simple to use, even I can use it.  ;D
Title: Re: SimplePortal (2.2.2 Released!)
Post by: willerby on June 23, 2009, 05:48:32 PM
Still seem to be some problems with simpleportal.net site...
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on June 23, 2009, 05:53:32 PM
/me sighs

In the process of transferring the domain to a more secure registrar, it seems the DNS settings got reset. I had to configure the nameservers again, and now it just needs to propagate.

I'm very sorry for all the inconveniences.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: willerby on June 23, 2009, 06:01:45 PM
No problem. I feel for you...
Title: Re: SimplePortal (2.2.2 Released!)
Post by: sombra on June 23, 2009, 10:45:45 PM
hello thanks for this great mod i upgraded and since im having a little problem

i have rigth block of recent topics and its breaking the theme

(http://img193.imageshack.us/img193/6816/portall.jpg)

how can i fix this

im using smf 2.0 rc1-1

Title: Re: SimplePortal (2.2.2 Released!)
Post by: ディン1031 on June 24, 2009, 12:42:21 AM
Which block did you use for the Recent Topcis?

Title: Re: SimplePortal (2.2.2 Released!)
Post by: sombra on June 24, 2009, 03:43:39 AM
Recent Topics

but i notice that it fixed him self

----------------------------------------------------------------
Hi,

I have a menu with a IFRAME showing up in my principal page. I want to use the standard html custom block code in SMF instead of the inline frames. I generated my html code with Fireworks CS3 and fixed the location of the pictures with Dreamweaver CS3 (it does it automatically). Then i uploaded the folder with all the images to my root server (www folder) in the same location as my index. But for some reason when i paste the code to smf it doesnt recognize the images. Maybe the mod for html custom code search the photos some where else. Any ideas?

Here is the page that the iframe display: http://todoilegal.net/TodoIlegalMenuIndex.html

The code that i want to put in the custom html block is the html source code of the previous mentioned page.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: ディン1031 on June 24, 2009, 04:14:42 AM
Quote from: sombra on June 24, 2009, 03:43:39 AM
Recent Topcis

but i notice that it fixed him self
oO okay...
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Snowy on June 24, 2009, 07:08:16 AM
I installed this but when I go to the forum, my forum index page is only about half my screen size wide. How can I fix this? And How can I edit the text on the portal page in the center?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 24, 2009, 07:11:08 AM
Quote from: Snowy on June 24, 2009, 07:08:16 AM
I installed this but when I go to the forum, my forum index page is only about half my screen size wide. How can I fix this?

Never seen such an issues, would you link to your forum so that we check it?

Quote from: Snowy on June 24, 2009, 07:08:16 AM
And How can I edit the text on the portal page in the center?

Admin > SimplePortal > Blocks

you need to edit "Welcome" block.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Snowy on June 24, 2009, 07:16:37 AM
Here's the link. Click on the Flrum tab and you'll see waht I mean. And those banners were at the bottom before.:

http://metaldetectingmaine.com/index.php
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 24, 2009, 07:26:25 AM
Your "User in Chat" area at the bottom breaks the SimplePortal table. It doesn't have the table tags. I can try fixing it for you if you can attach your BoardIndex.template.php file here.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Snowy on June 24, 2009, 07:47:27 AM
Awesome.... The chat code you are looking for is near the bottom. Start from the bottom and work your way up and you'll find it. The chat code will have to be adjusted in all the other theme board indexes as well, so if you could point out changes you make That'd be great so I can go make them in the other themes.

Sure appreciate the help!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Snowy on June 24, 2009, 08:03:41 AM
I have to leave so I'm taking out the portal for now. I'll give it a try later tonight with the code change you provide.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 24, 2009, 08:40:11 AM
Try this:

Code (Find) Select
// flashchat users
echo '
<tr>
<td class="catbg" colspan="2">Users in Chat</td>
</tr>
<tr>
<td class="windowbg">&nbsp;</td>
<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/ourchatroom/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe></td>
</tr>';


Code (Replace) Select
// flashchat users
echo '
<table width="100%">
<tr>
<td class="catbg" colspan="2">Users in Chat</td>
</tr>
<tr>
<td class="windowbg">&nbsp;</td>
<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/ourchatroom/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe></td>
</tr>
</table>';
Title: Re: SimplePortal (2.2.2 Released!)
Post by: sombra on June 24, 2009, 11:37:22 AM
Hi,

I have a menu with a IFRAME showing up in my principal page. I want to use the standard html custom block code in SMF instead of the inline frames. I generated my html code with Fireworks CS3 and fixed the location of the pictures with Dreamweaver CS3 (it does it automatically). Then i uploaded the folder with all the images to my root server (www folder) in the same location as my index. But for some reason when i paste the code to custom block of simpleportal html it doesnt recognize the images. Maybe the mod for html custom code search the photos some where else. Any ideas?

Here is the page that the iframe display: http://todoilegal.net/TodoIlegalMenuIndex.html

The code that i want to put in the custom html block is the html source code of the previous mentioned page.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: mirahalo on June 24, 2009, 12:07:43 PM
yo have to put this code in your index.template.php file:
make sure yo put the corretc url here: @import url("Web Menu/TImenu.css"); and here src="Web Menu/mm_css_menu.js">

nesecitas poner esto en tu archivo index.template.php
asegurate de poner la direccion correcta aqui: @import url("Web Menu/TImenu.css"); y aqui src="Web Menu/mm_css_menu.js">



<style type="text/css" media="screen">
@import url("Web Menu/TImenu.css");
</style>
<script language="JavaScript1.2" type="text/javascript" src="Web Menu/mm_css_menu.js"></script>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}
//-->
</script>


between <head> and </head> tags, also, yo need to change your <body> tag for this:
again, make sure of the urls


entre las etiquetas <head> y </head> , tambien tienes que cambiar tu etiqueta <body> por esto:

asegurate de que las direcciones sean correctas

<body onLoad="MM_preloadImages('Web Menu/TImenu_r2_c2_f3.jpg','Web Menu/TImenu_r2_c2_f2.jpg','Web Menu/TImenu_r2_c2_f4.jpg','Web Menu/TImenu_r4_c2_f3.jpg','Web Menu/TImenu_r4_c2_f2.jpg','Web Menu/TImenu_r4_c2_f4.jpg','Web Menu/TImenu_r6_c2_f3.jpg','Web Menu/TImenu_r6_c2_f2.jpg','Web Menu/TImenu_r6_c2_f4.jpg','Web Menu/TImenu_r8_c2_f3.jpg','Web Menu/TImenu_r8_c2_f2.jpg','Web Menu/TImenu_r8_c2_f4.jpg','Web Menu/TImenu_r10_c2_f3.jpg','Web Menu/TImenu_r10_c2_f2.jpg','Web Menu/TImenu_r10_c2_f4.jpg','Web Menu/TImenu_r12_c2_f3.jpg','Web Menu/TImenu_r12_c2_f2.jpg','Web Menu/TImenu_r12_c2_f4.jpg','Web Menu/TImenu_r14_c2_f3.jpg','Web Menu/TImenu_r14_c2_f2.jpg','Web Menu/TImenu_r14_c2_f4.jpg','Web Menu/TImenu_r16_c2_f3.jpg','Web Menu/TImenu_r16_c2_f2.jpg','Web Menu/TImenu_r16_c2_f4.jpg','Web Menu/TImenu_r18_c2_f3.jpg','Web Menu/TImenu_r18_c2_f2.jpg','Web Menu/TImenu_r18_c2_f4.jpg','Web Menu/TImenu_r20_c2_f3.jpg','Web Menu/TImenu_r20_c2_f2.jpg','Web Menu/TImenu_r20_c2_f4.jpg','Web Menu/TImenu_r22_c2_f3.jpg','Web Menu/TImenu_r22_c2_f2.jpg','Web Menu/TImenu_r22_c2_f4.jpg')">

so the images could be loaded, then put the rest of the code in a html block.

para que se puedan cargar las imagenes, despues pon el resto de tu codigo dentro de un bloque de html.


greetings!
saludos!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: italo_anonimo on June 24, 2009, 02:06:24 PM
Quote from: Eliana Tamerin on June 23, 2009, 11:14:47 AM
Have you tried flushing your DNS cache? If you're running Windows, go to Start > Run and enter in

ipconfig /flushdns


Quote from: Eliana Tamerin on June 23, 2009, 05:53:32 PM
/me sighs

In the process of transferring the domain to a more secure registrar, it seems the DNS settings got reset. I had to configure the nameservers again, and now it just needs to propagate.

I'm very sorry for all the inconveniences.

simpleportal.net its down? i can't entry... i runn ipconfig /flushdns but no response...



thanks
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on June 24, 2009, 03:07:24 PM
Updates:

I've got good news and bad news, folks.

The good news is, the domain is ready (again) for normal usage.

The bad news is, the my host thinks the account was abusing resources and suspended it. I can't see anything on my end for resource abuse, so I've put a support ticket in to request an answer.

Hopefully I'll have one soon. Sorry for all the issues, this just hasn't been a good week for SP.

The last bit of good news is that Sinan's vacation has been extended for a few more hours. Anyone wanting a beach drink from a coconut, talk to Sinan about sharing. :P
Title: Re: SimplePortal (2.2.2 Released!)
Post by: italo_anonimo on June 24, 2009, 04:10:11 PM
ok, thanks for the reply, I hope that everything will be resolved soon.

thanks for this portal.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Meeturmaker on June 24, 2009, 06:51:12 PM
could anyone  give an example of how to use standalone if my forum is located in /public html
thank you.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Snowy on June 24, 2009, 06:54:46 PM
Quote from: [SiNaN] on June 24, 2009, 08:40:11 AM
Try this:

Code (Find) Select
// flashchat users
echo '
<tr>
<td class="catbg" colspan="2">Users in Chat</td>
</tr>
<tr>
<td class="windowbg">&nbsp;</td>
<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/ourchatroom/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe></td>
</tr>';


Code (Replace) Select
// flashchat users
echo '
<table width="100%">
<tr>
<td class="catbg" colspan="2">Users in Chat</td>
</tr>
<tr>
<td class="windowbg">&nbsp;</td>
<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/ourchatroom/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe></td>
</tr>
</table>';



Worked perfectly! Thanks bunches!!!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on June 24, 2009, 06:58:02 PM
Since upgrading to 2.0 RC1-1 members going from the forum to the portal page find themselves having to log in again.

If moving back to the forum without doing so yhey are still logged in except the users online gives their ip as a guest as well as a member.

Any ideas?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Özgür on June 24, 2009, 07:28:38 PM
Quote from: Eliana Tamerin on June 23, 2009, 05:53:32 PM
/me sighs

In the process of transferring the domain to a more secure registrar, it seems the DNS settings got reset. I had to configure the nameservers again, and now it just needs to propagate.

I'm very sorry for all the inconveniences.
Can you give newly server ip? Maybe we can edit our "host" file for permatently. :)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on June 24, 2009, 08:02:22 PM
Quote from: Eliana Tamerin on June 24, 2009, 03:07:24 PM
Updates:

I've got good news and bad news, folks.

The good news is, the domain is ready (again) for normal usage.

The bad news is, the my host thinks the account was abusing resources and suspended it. I can't see anything on my end for resource abuse, so I've put a support ticket in to request an answer.

Hopefully I'll have one soon. Sorry for all the issues, this just hasn't been a good week for SP.

The last bit of good news is that Sinan's vacation has been extended for a few more hours. Anyone wanting a beach drink from a coconut, talk to Sinan about sharing. :P

I can give you the IP, but it's not going to do you any good right now.

I'm duking it out with my host. Either the site was under heavy attack, or heavy visitors over the course of the past day or so. I'm wary of either, SP is popular, but nothing close to the levels of SM.org or sites like Slashdot and Digg.

You guys didn't all invite your friends to check out SP.net while it was down, did you? :P
Title: Re: SimplePortal (2.2.2 Released!)
Post by: aED on June 25, 2009, 08:28:14 AM
Hi I cannot install this on a freshly installed SMF 2.0 RC1-1 Is there a new version out there?

EDIT: Fixed the problem it doesn't detect SMF 2.0 RC1-1 so It tries to install the 1.1.9 version I emulated 2.0 only and it works.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Paolo Bitta on June 25, 2009, 09:27:15 AM
I experience this error(s) since I installed the mod:
8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/languages/SPortalAdmin.english.php (portal_above sub template - eval?)
Line: 9

8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/Errors.template.php (portal_above sub template - eval?)
Line: 9

8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/Login.template.php (portal_above sub template - eval?)
Line: 9

8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/MessageIndex.template.php (portal_above sub template - eval?)
Line: 9


well, the error is over a lot of files... I reported these just to clarify.

any hints on how to resolve it?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Snowy on June 25, 2009, 08:35:07 PM
I have a member who says their computer freezes up since I installed the portal. They are using AOL, but they said it does the same with IE for them. Any thoughts on what might cause this? I really don't want to take the portal down.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Angelina Belle on June 25, 2009, 10:06:23 PM
If you are using the 1.1 version of simpleportal, there is a bug that could cause a browser to hang up after loading the portal page.

I am using SMF 1.1.9, and am using the SPStandalone portal page.
I encountered a problem with the onload event, due to a bug in sportal_init.php.  It affected IE7 (actually IE8 in compatability mode), but not IE8 (because IE8 was not detected by SMF).  The page loaded fine, but then the browser window froze for a long time while the onload event did an infinite recursion, and finally gave an out-of-memory error.  I only observed the freezing problem on the portal page.

The fix turned out to be very easy:
http://simpleportal.net/index.php?topic=2613.msg17355#msg17355
Add one line to sportal_init.php to prevent a block of js from being written to the page twice.

(after I finally narrowed the problem down: http://simpleportal.net/index.php?topic=2613.msg17250#msg17250 )

I hope this fix solves your user's problem.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on June 26, 2009, 12:07:33 AM
Quote from: Snowy on June 25, 2009, 08:35:07 PM
I have a member who says their computer freezes up since I installed the portal. They are using AOL, but they said it does the same with IE for them. Any thoughts on what might cause this? I really don't want to take the portal down.

AOL is built on IE's Trident engine, that's why. If they want different, use Firefox, or Opera or Chrome or some real browser. :P

And IE8 isn't detected because IE8 uses a standards-compliant engine that doesn't typically need additional tweaks to make it work on normal pages.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Snowy on June 26, 2009, 05:55:47 AM
No, I've installed the latest of simpleportal ~ 2.2.2 ....

Another member said it does the same thing for him at work but not at home. I don't get it...
Title: Re: SimplePortal (2.2.2 Released!)
Post by: zeljko on June 26, 2009, 10:17:52 AM
I have problem with forum button ..

bad look
(http://img196.imageshack.us/img196/7356/warezkakonetreba.png)

should  to look like:
(http://img140.imageshack.us/img140/7330/warezdugme.png)

problem is in these code:

// Show the [home] button.
   echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
               <a href="', ($modSettings['sp_portal_mode'] == 3 ? $modSettings['sp_standalone_url'] : $scripturl), '">' , $txt[103] , '</a>
            </td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Show the [forum] button.
   if (in_array($modSettings['sp_portal_mode'], array(1, 3)))
      echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
               <a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</a>
            </td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


my orginal code is :

// Show the [home] button.
   echo '
               <li', $current_action == 'home' ? ' id="active"' : '', '><a href="', $scripturl, '">', $txt[103], '</a></li>';

   // Show the [help] button.
   echo '
               <li', $current_action == 'help' ? ' id="active"' : '', '><a href="', $scripturl, '?action=help">', $txt[119], '</a></li>';


Thanks  ::)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: learjet45 on June 26, 2009, 10:34:51 AM
zeljko -

// Show the [forum] button
   echo '
               <li', $current_action == 'forum' ? ' id="active"' : '', '><a href="', $scripturl, '?action=forum">', $txt['sp-forum'], '</a></li>';



There are also a few other custom edits that need to be made to the index.template.php file.
Title: need to uninstall early version of SimplePortal
Post by: digit on June 26, 2009, 02:40:44 PM
Would you happen to have older versions of the simpleportal mod download?

I have an ancient version... and just realized it was causing a VERY hard to find bug - where the title in profile summaries was not showing up.

I would like to reinstall the latest.

Thanks in advance.

p.s., here is some of the code I have in Load.php (if it helps you determine what version I am running!)
// We will SPortal too.
loadLanguage('SPortal', '', false);

// Initialize the theme.
loadSubTemplate('init', 'ignore');


p.s., why are you blocking my PM's  ???
Title: Re: SimplePortal (2.2.2 Released!)
Post by: learjet45 on June 26, 2009, 09:45:42 PM
digit -
Down at the bottom of your screen where the SMF copyrights shows up, there should also be a SimplePortal copyright that displays the version.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on June 27, 2009, 01:54:51 AM
Quote from: digit on June 26, 2009, 02:40:44 PM
p.s., why are you blocking my PM's  ???

Who are you speaking to?

Most people seriously supporting SMF here request that you not use the PM system to get support. The reason is generally two-fold.

One, that getting a bunch of PMs about support is annoying. I'd like to get a PM from someone telling me that they liked the obscure joke or reference I put in a post, not nagging me to support their forum.

Two is that if you get support by PM, then that question, and its solution, is hidden. The easiest way (and most avoided, unfortunately) to get support is to search the forum to see if your answer has been resolved already. I know there's an issue where code likes to pop up first, but a google search of our specific site sometimes helps (like "problem question site:simplemachines.org"). If you get your issue resolved by PM, then it's not on the boards, it can't be searched for. So then you have at least five other people, all asking the same question, when they could have found that answer by searching instead. That means more work for the people who help with support, and ultimately longer wait times for unanswered support questions or potential bugs.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on June 27, 2009, 04:21:11 AM
Quote from: Eliana Tamerin on June 27, 2009, 01:54:51 AM
Quote from: digit on June 26, 2009, 02:40:44 PM
p.s., why are you blocking my PM's  ???
Who are you speaking to?

I was referring to.... SimplePortal Team (http://www.simplemachines.org/community/index.php?action=profile;u=174836)

I sent a pm, and was told the user is blocking your pm's or something to that effect....

Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on June 27, 2009, 04:22:45 AM
Quote from: learjet45 on June 26, 2009, 09:45:42 PM
digit -
Down at the bottom of your screen where the SMF copyrights shows up, there should also be a SimplePortal copyright that displays the version.

COOL!  SOOOO - I need to uninstall 2.0.4  :P  Does anyone have that original installer?


Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheMistress on June 27, 2009, 04:52:19 AM
hi there! :D just a quick question- do you have a shoutbox that can be used on the portal?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Snowy on June 27, 2009, 05:36:45 AM
Quote from: AngelinaBelle on June 25, 2009, 10:06:23 PM
If you are using the 1.1 version of simpleportal, there is a bug that could cause a browser to hang up after loading the portal page.

I am using SMF 1.1.9, and am using the SPStandalone portal page.
I encountered a problem with the onload event, due to a bug in sportal_init.php.  It affected IE7 (actually IE8 in compatability mode), but not IE8 (because IE8 was not detected by SMF).  The page loaded fine, but then the browser window froze for a long time while the onload event did an infinite recursion, and finally gave an out-of-memory error.  I only observed the freezing problem on the portal page.

The fix turned out to be very easy:
http://simpleportal.net/index.php?topic=2613.msg17355#msg17355
Add one line to sportal_init.php to prevent a block of js from being written to the page twice.

(after I finally narrowed the problem down: http://simpleportal.net/index.php?topic=2613.msg17250#msg17250 )

I hope this fix solves your user's problem.

I'm using the 2.2.2 version of sportal.
For now, I've told him to make the forum page his home page so he doesn't get snagged by the portal.
Some others are having the trouble as well, but I can't figure it out.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 27, 2009, 05:57:59 AM
Apply the suggested edits here:

http://www.simplemachines.org/community/index.php?topic=318651.msg2117125#msg2117125
http://simpleportal.net/index.php?topic=2613.msg17295#msg17295
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 27, 2009, 05:58:36 AM
Quote from: digit on June 27, 2009, 04:22:45 AM
Quote from: learjet45 on June 26, 2009, 09:45:42 PM
digit -
Down at the bottom of your screen where the SMF copyrights shows up, there should also be a SimplePortal copyright that displays the version.

COOL!  SOOOO - I need to uninstall 2.0.4  :P  Does anyone have that original installer?




http://simpleportal.net/index.php?action=downloads;area=cat4
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Snowy on June 27, 2009, 06:17:13 AM
Quote from: [SiNaN] on June 27, 2009, 05:57:59 AM
Apply the suggested edits here:

http://www.simplemachines.org/community/index.php?topic=318651.msg2117125#msg2117125
http://simpleportal.net/index.php?topic=2613.msg17295#msg17295

Thanks... will work on this tonight after I get home form work. Appreciate the help! I'll let you know if it works out.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on June 27, 2009, 11:27:08 AM
Quote from: digit on June 27, 2009, 04:21:11 AM
Quote from: Eliana Tamerin on June 27, 2009, 01:54:51 AM
Quote from: digit on June 26, 2009, 02:40:44 PM
p.s., why are you blocking my PM's  ???
Who are you speaking to?

I was referring to.... SimplePortal Team (http://www.simplemachines.org/community/index.php?action=profile;u=174836)

I sent a pm, and was told the user is blocking your pm's or something to that effect....



That's because the user is a dummy user, intended to convey that SP is a Team effort rather than headed by just one person. He blocks PMs because nobody logs on frequently to check PMs, so we'd prefer you to PM a specific developer or other Team member instead if you have a PMable issue.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: L'AltroWeb on June 27, 2009, 01:33:46 PM
Hi!
I know is not the right place to post this info but i'm really angry for this problem.
I've request this:
http://simpleportal.net/index.php?topic=2677.msg17609#msg17609
after eliana answer i've send this pm:
(http://img3.imageshack.us/img3/9876/16214666.jpg) (http://img3.imageshack.us/img3/9876/16214666.jpg)
and i've edit my profile (removed avatar, sign, mail and any other ifno and i've change username).
After of this eliana as banned me:
(http://img3.imageshack.us/img3/9738/bannedh.jpg) (http://img3.imageshack.us/img3/9738/bannedh.jpg)
and it have renamed back my username.
Now i've send a mail to SiNaN but without any answer.
Monday i will go to my legal with all screenshot and pages (saved for precaution).
(http://img4.imageshack.us/img4/7892/pagesk.jpg) (http://img4.imageshack.us/img4/7892/pagesk.jpg)
I hope that SiNaN want resolve this problem (simply delete or rename my account).
Anyway simpleportal still remain a very good portal.

-
I already know that this post will be deleted very soon...
(PS i've saved also this entire page).
Title: Re: SimplePortal (2.2.2 Released!)
Post by: willerby on June 27, 2009, 02:01:02 PM
DW,

Your entire profile on SP consists of the name Dark-Wolf and 4 posts. Why so angry that they won't delete your alias and posts you have made?

On here, I can tell your name (through your link to your website),  and age, I can see 273 posts you have made, and the town you live in. It really is not worth the stress...
Title: Re: SimplePortal (2.2.2 Released!)
Post by: L'AltroWeb on June 27, 2009, 02:06:28 PM
Quote from: willerby on June 27, 2009, 02:01:02 PM
DW,

Your entire profile on SP consists of the name Dark-Wolf and 4 posts. Why so angry that they won't delete your alias and posts you have made?

On here, I can tell your name (through your link to your website),  and age, I can see 273 posts you have made, and the town you live in. It really is not worth the stress...
i've already explained my reason here: http://simpleportal.net/index.php?topic=576.msg17273#msg17273
Anyway i think is my right to request (like others good forum) to remove my info (for me it can maintain my post).
PS: i repeat: i've changed my username and Eliana have renamed it back.
Also in this site (and in all other than i know) i can request to delete my account in every moment.
IMHO the point isn't "why" but "why-not?"
-
In my site (like any other site i know) an user can request to delete their account and i accept without problem.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: zeljko on June 27, 2009, 03:06:46 PM
Quote from: learjet45 on June 26, 2009, 10:34:51 AM
zeljko -

// Show the [forum] button
   echo '
               <li', $current_action == 'forum' ? ' id="active"' : '', '><a href="', $scripturl, '?action=forum">', $txt['sp-forum'], '</a></li>';



There are also a few other custom edits that need to be made to the index.template.php file.

Thanks man,problem is fixed.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: qubbah on June 28, 2009, 11:22:30 AM
where is the setup option to make portal go directly to the forum?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: mirahalo on June 28, 2009, 12:45:24 PM
there are three diferent modes of simpleportal, all locate in admin/simpleportal/configuration/general settings:

?action=spadmin;area=config;sa=generalsettings

SimplePortal can run in several modes. This option enables you to select the mode you wish to use. Supported modes include:

Disabled: This will completely disable the portal.

Frontpage: This is the default setting. The portal page will greet viewers instead of the board index. Members will be able to access the board index by using the "forum" action, which can be accessed through the "forum" button.

Integration: This will disable the portal page. Blocks are only usable in forum.

Standalone: This will enable the portal to be displayed at a different url, away from the forum. The portal page appears in the url defined for the "Standalone URL" option. For details, check the SPStandalone.php file found inside the forum root.

greetings!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: ɔɔɔɔɔɔuɥoɾ on June 28, 2009, 07:07:20 PM
Hi there
Thanks for the great mod! :)

I have just noticed a problem though, not a big problem, im quiet sure a little minor code addition will fix it too.

The Jump to Forum drop down menu box, its does not account for the  " index.php?action=forum"

instead when using the drop menu box the address bar just goes to " index.php#c2 " I'm sure its supposed to link to  "  index.php?action=forum#c2 "

any help would be appreciated thanks :)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Bruno36 on June 29, 2009, 02:02:15 AM
   
Hello!

How to view the forum on the portal
Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on June 29, 2009, 12:45:31 PM
Ok thanks for the non response - due to absolutely unreal SUCKO problems related to the external css file, and javascript bs AND erratic signal Segmentation faults, I AM DELETING THIS MOD.

We need a way to rate mods!

FRUSTRATED TO THE CORE.


Ultimately very happy sorry for the outburst!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 29, 2009, 12:55:41 PM
Quote from: Bruno36 on June 29, 2009, 02:02:15 AM
   
Hello!

How to view the forum on the portal

Trying switching to the "Integration" mode from SimplePortal > Configuration > General Settings > Portal Mode setting.

Quote from: digit on June 29, 2009, 12:45:31 PM
Ok thanks for the non response - due to absolutely unreal SUCKO problems related to the external css file, and javascript bs AND erratic signal Segmentation faults, I AM DELETING THIS MOD.

We need a way to rate mods!

FRUSTRATED TO THE CORE.


Sorry, I've missed your issue as you edited your post and didn't post a new one. This should have fixed your issue:

SPortal1-1.php

Code (Find) Select
$context += array(
'portal_url' => $modSettings['sp_standalone_url'],
'page_title' => $context['forum_name'],
);


Code (Replace) Select
{
$context['portal_url'] = $modSettings['sp_standalone_url'];
if ($stanlone)
$context['page_title'] = $context['forum_name'];
}


Thanks for trying out SimplePortal though.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on June 29, 2009, 12:59:34 PM
Ok, well... For the record, I am using it in standalone mode, and am disappointed in the way it embeds the external css file AND javascript files in the forum too!

My forum is ALL screwed up - forms not displaying correctly, as well as the issues mentioned above.

It SHOULD IMHO only embed those files in the standalone version!

I hope that helps fix, what to be honest I liked! (v. 2.0.4 anyway!)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 29, 2009, 01:07:22 PM
Quote from: digit on June 29, 2009, 12:59:34 PM
Ok, well... For the record, I am using it in standalone mode, and am disappointed in the way it embeds the external css file AND javascript files in the forum too!

Users still want to be able to display their blocks in forum pages, even when they run the portal on standalone mode. So they are required.

Quote from: digit on June 29, 2009, 12:59:34 PM
My forum is ALL screwed up - forms not displaying correctly, as well as the issues mentioned above.

Can you provide more details? First apply this edit which fixes a know issue with headers though:

SPortal1-1.php

Code (Find) Select
$context['template_layers'][] = 'portal';

Code (Replace) Select
$context['template_layers'][] = 'portal';
$initialized = true;


Quote from: digit on June 29, 2009, 12:59:34 PM
I hope that helps fix, what to be honest I liked! (v. 2.0.4 anyway!)

I'm sorry to hear things didn't go well for you. If you still want to use the latest version, we'd be glad to help you sort out your issues.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 29, 2009, 01:46:36 PM
Quote from: digit on June 29, 2009, 01:26:56 PM
The Profile Summary page title issue is WHY I manually uninstalled 2.0.4... (it was my only - hard to find - issue with it)...   so to go through a manual uninstall and manual install, just to see I STILL had the title issue, PLUS a whole host of other issues was frustrating to say the least! 

You can see how long I was trying to figure out WHY I no longer had usernames in the profile summaries here.....

http://www.simplemachines.org/community/index.php?topic=288021.msg1893568#msg1893568

MONTHS!

Well, as I said I'm sorry about it. But we never got a report about the issue and as you pointed out it was a very minor issue which is hard to even notice. As you can imagine, we do not put bugs in the mod intentionally to frustrate our users.

Quote from: digit on June 29, 2009, 01:26:56 PM
I just manually uninstalled 2.2.2 - and am thinking about going to an earlier version - maybe 2.0.4 - unless there is a more recent version that doesn't effect my css (or add javascript doohickies to my forum!)  Let me know ok?

Sorry for venting!

Thanks!

Those CSS and JavaScript stuff is a part of this mod. Saying "they break my forum" does not help us providing a solution to you really. If you feel comfortable with using an older version, no problems here.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on June 29, 2009, 01:49:55 PM
Well, the problems were reported by my users....     most of them unreproducible on my Mac running Safari....  well except for the erratic segment fault errors....   I could not leave the mod installed when I had no way to debug it....

To be honest I am going to try to create my own custom portal using the custom action mod - wish me luck!  :P  <-- EDIT: Bad idea.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 29, 2009, 01:53:46 PM
Again, thanks for trying out SimplePortal. Good luck! ;)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on June 29, 2009, 01:57:41 PM
This is NOT going to be fun...  :P  don't get me wrong - I LIKE simpleportal  - it's an awesome piece of work... THANKS!

Maybe my forum is just a bit too heavily modified! (or MAYBE  for standalone users, the css and js stuff shouldn't be loaded in the forum! - just maybe! ;-))  Isn't there a way to say..... if standalone - don't load that stuff?


Title: Re: SimplePortal (2.2.2 Released!)
Post by: PRaDiUS on June 29, 2009, 06:33:52 PM
Since updating to 2.2.2 the topics that show up on my portal no longer just have a short summary... it is showing the entire text of the topics. Also it is no longer putting the scroll bar beneath videos that are too large for the square. Instead it seems to be running into the side blocks on the right.

(http://www.rgxbox.com/images/aevaerror.jpg)

Any idea how I can fix this?

UPDATE: I think i solved the part of the problem with video overlapping side blocks.. Not really sure how thou. For some reason I still can't get the portal to summarize the recent topics displayed rather than showing the entire topic posted. Alot of the topics being posted are just too long to be shown in their full form on the portal. Thank you for any help you can give.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on June 30, 2009, 02:21:56 AM
ok, I uninstalled 2.2.2, and re-installed 2.0.5

So - put this in as an official request.

I would like to see "standalone" really mean "standalone".

Maybe there could be a new type of SP... "stand-along with forum blocks".

I LIKE what you've done with 2.2.2 ALOT.  I just wish the css and javascript were totally separate from the forum...  in the stand alone version!

Thanks and sorry for venting.... simpleportal is definitely a great product!  :)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 30, 2009, 02:54:04 AM
PRaDiUS:

Do you use any [html] tags in your post? Does this happen with articles or board news block?

digit:

If you replace the attached file with the one in your Sources directory in 2.2.2 version, it will not load anything in forum other than SP admin area.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on June 30, 2009, 04:03:40 AM
VERY VERY COOL!  Thanks!  8)  Now if I can figure out why I am getting these segment faults -resulting in a blank page, I'll be in great shape!  8)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 30, 2009, 04:19:57 AM
Can I see the error myself?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on June 30, 2009, 04:25:13 AM
PM sent :)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on June 30, 2009, 04:30:02 AM
What's your browser? I don't have a problem with FF 3 and IE 7.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: PRaDiUS on June 30, 2009, 10:12:50 PM
No HTML. Have not tried articles yet. These are the 5 most recent topics posted on the forum being shown @ the portal. When I was running 2.2 is only showed a summary of the topics, but after updating to 2.2.2 it is showing the entire topic posted. I have not tried it with articles. I haven't even created a category yet, but I plan to. It is a nice feature.

Quote from: [SiNaN] on June 30, 2009, 02:54:04 AM
Do you use any [html] tags in your post? Does this happen with articles or board news block?

UPDATE: I think I have solved the problem. It is now showing a summary of topics on the portal and so far my videos do not seem to be overlapping the side blocks anymore. Thanks anyway for taking interest in helping me resolve the issue. If anything else comes up, I will come to you. Thanks again.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on July 01, 2009, 05:37:32 AM
In an effort to track down why I was getting the segment fault error (blank page), I disabled several blocks - sorry I didn't have the time to go through them systematically - yet anyway.... I disabled the user info, board stats, arcade stats, and compact recent blocks, and as of right now the segment fault errors SEEM to have ended.  Just FYI.

Which blocks in your opinion are the most cpu intensive?

Thanks for hanging in there, I know I was ranting a bit much - at any rate, any frustrations users may have installing simpleportal - is well worth it!  8)



Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 01, 2009, 06:23:49 AM
I see you have 1,5+ million posts on your forum. So recent posts/topics queries might be giving a hard time for your server. We use ssi functions to query recent posts/topics for those blocks. However, I can try optimizing them for your forum. You have these errors only on portal page, right?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on July 01, 2009, 06:52:38 AM
Quote from: [SiNaN] on July 01, 2009, 06:23:49 AM
You have these errors only on portal page, right?

yes.  One of the changes I made was I changed the recent from the compact form to standard... (unfortunately with a few other changes - so I wasn't systematic about it) but since those changes, the errors SEEM to have gone away...  but this is a slow period - so I may not know until a later!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 01, 2009, 08:24:30 AM
Both block types use the same SSI function. So it may not help much. In the mean time, I'll look into separating the recent query into two for you to see if it helps.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on July 01, 2009, 08:42:03 AM
Thanks a BUNCH!
:P
Title: How to create a button in Simpleportal custom HTML block?
Post by: pkrpkr on July 01, 2009, 11:32:15 AM
Does anybody know how to create a button in a SimplePortal custom HTML block?

I want someone who clicks the button to be sent to a specific URL.

HTML below works half, i.e. the button doesn't change color when hovering over it with a mouse (using 2 different rollover images).

   <a href="http://www.vintage-camera-online.com/smf/index.php?action=forum" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Nothanks','','/images/1184259649button_0.gif1191570045button_0.gif'>,1)"><img src="/images/1184259649button_0.gif" alt="No thanks - let me in" border="0"></a>

This is a button in the Welcome block, and redirects the visitor to the forum when the button is clicked.

Any help appreciated. Thanks.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: qubbah on July 01, 2009, 06:25:31 PM
how can i make/set go diectly to the forum like tp?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: kaniagbon05 on July 01, 2009, 07:15:16 PM
i got this error.. i use SQLITE...
WTF..

SQL logic error or missing database
near "EXISTS": syntax error
File: C:\xampp\htdocs\Forum\Packages\temp\install2.php
Line: 262
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on July 01, 2009, 11:06:22 PM
@qubbah: In the SimplePortal General Settings, change Portal Mode from Frontpage to Integration. You may have to adjust each block's display properties to show up on the Forum after that, though.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Chaos Dragon on July 02, 2009, 02:03:32 AM
Just wondering how do I change the Welcome?


Never mind I see how it is done after I noticed images weren't there that didn't upload during install......Should of checked that right away since it seems to be the norm here...Installs say a ok for the go ahead and next thing I know codes and images or files in general aren't there that needed to be. Any who Sorry about that.
I would like to say though, excellent work. Of all the items I have installed this gave me really no hassle and no manual installing except a few images no biggie. I'd rather just upload a few images then hunt through files and codes to get them working.
Good Luck with everything and keep up the good work.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Paolo Bitta on July 02, 2009, 03:11:01 AM
Quote from: Paolo Bitta on June 25, 2009, 09:27:15 AM
I experience this error(s) since I installed the mod:
8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/languages/SPortalAdmin.english.php (portal_above sub template - eval?)
Line: 9

8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/Errors.template.php (portal_above sub template - eval?)
Line: 9

8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/Login.template.php (portal_above sub template - eval?)
Line: 9

8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/MessageIndex.template.php (portal_above sub template - eval?)
Line: 9


well, the error is over a lot of files... I reported these just to clarify.

any hints on how to resolve it?

any hints?
This error is filling my log every time somebody loads any page.......
Title: Re: SimplePortal (2.2.2 Released!)
Post by: qubbah on July 02, 2009, 08:45:53 AM
Quote from: Eliana Tamerin on July 01, 2009, 11:06:22 PM
@qubbah: In the SimplePortal General Settings, change Portal Mode from Frontpage to Integration. You may have to adjust each block's display properties to show up on the Forum after that, though.

ok very nice..
tq..

then how about to change panel witdh?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 02, 2009, 09:35:35 AM
Quote from: digit on July 01, 2009, 08:42:03 AM
Thanks a BUNCH!
:P

I'll look into this later today.

Quote from: pkrpkr on July 01, 2009, 11:32:15 AM
Does anybody know how to create a button in a SimplePortal custom HTML block?

I want someone who clicks the button to be sent to a specific URL.

HTML below works half, i.e. the button doesn't change color when hovering over it with a mouse (using 2 different rollover images).

   <a href="http://www.vintage-camera-online.com/smf/index.php?action=forum" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Nothanks','','/images/1184259649button_0.gif1191570045button_0.gif'>,1)"><img src="/images/1184259649button_0.gif" alt="No thanks - let me in" border="0"></a>

This is a button in the Welcome block, and redirects the visitor to the forum when the button is clicked.

Any help appreciated. Thanks.

Try this in an HTML block:

<a href="http://www.vintage-camera-online.com/smf/index.php?action=forum"><img src="http://www.vintage-camera-online.com/images/1184259649button_0.gif" alt="" id="my_button" onmouseover="changeimage('in');" onmouseout="changeimage('out');" /></a>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function changeimage(mode)
{
document.getElementById("my_button").src = (mode == "in" ? "http://www.vintage-camera-online.com/images/1191570045button_0.gif" : "http://www.vintage-camera-online.com/images/1184259649button_0.gif");
}
// ]]></script>


Quote from: kaniagbon05 on July 01, 2009, 07:15:16 PM
i got this error.. i use SQLITE...
WTF..

SQL logic error or missing database
near "EXISTS": syntax error
File: C:\xampp\htdocs\Forum\Packages\temp\install2.php
Line: 262

Try the attached package, SimplePortal_2.2.2.zip.

Quote from: Chaos Dragon on July 02, 2009, 02:03:32 AM
Just wondering how do I change the Welcome?


Never mind I see how it is done after I noticed images weren't there that didn't upload during install......Should of checked that right away since it seems to be the norm here...Installs say a ok for the go ahead and next thing I know codes and images or files in general aren't there that needed to be. Any who Sorry about that.
I would like to say though, excellent work. Of all the items I have installed this gave me really no hassle and no manual installing except a few images no biggie. I'd rather just upload a few images then hunt through files and codes to get them working.
Good Luck with everything and keep up the good work.

Which images exactly? If you can provide some more details we can help you solving the issue.

Quote from: Paolo Bitta on July 02, 2009, 03:11:01 AM
any hints?
This error is filling my log every time somebody loads any page.......

I'm not sure if this is related to SimplePortal at all. Follow the instructions given in the quote below which will give you more details on the error:

Quote from: [SiNaN] on June 06, 2009, 11:02:09 AM
The error message isn't very useful.

Try running this query in PHPMyAdmin (replace 'smf_' with your forums db prefix):
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);

That should allow us to see where the error is actually occuring, post the error message that SMF gives you then.

You can then run this query to turn eval back on:
DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';

Quote from: qubbah on July 02, 2009, 08:45:53 AM
ok very nice..
tq..

then how about to change panel witdh?

Admin > SimplePortal > Configuration > Block Settings
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Chaos Dragon on July 02, 2009, 03:58:16 PM
Quote from: Chaos Dragon on July 02, 2009, 02:03:32 AM
Just wondering how do I change the Welcome?


Never mind I see how it is done after I noticed images weren't there that didn't upload during install......Should of checked that right away since it seems to be the norm here...Installs say a ok for the go ahead and next thing I know codes and images or files in general aren't there that needed to be. Any who Sorry about that.
I would like to say though, excellent work. Of all the items I have installed this gave me really no hassle and no manual installing except a few images no biggie. I'd rather just upload a few images then hunt through files and codes to get them working.
Good Luck with everything and keep up the good work.

Which images exactly? If you can provide some more details we can help you solving the issue.

It was all the images you would find for the admin panel that didn't upload. It is fine now I manually uploaded the missing images.
Like I said in the last post it is the norm for me to have to do something manually. At least with this one it was only a few images and not having to go code hunting. This is the first one that i installed that I did not have to manually edit the code to get it working. I wish they all did that.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Paolo Bitta on July 03, 2009, 05:37:38 AM
Quote from: [SiNaN] on July 02, 2009, 09:35:35 AM

I'm not sure if this is related to SimplePortal at all. Follow the instructions given in the quote below which will give you more details on the error:

..[cut]..


I forgot to tell you that i'm running a SMF 1.1.9 version.
I can't find that variable in smf_setting table...  ???


EDIT:
I resolved it myself...
It is surely a problem of/from simpleportal, because with no manual changes this error has appeared after SP installation. The problem is that a define is missing somewhere.
The fix was obtained by introducing the instruction:
define("N","N");
in index.php (probably there's a very better place to put this code, but I'm afraid to mess up something).

bye
Paolo Bitta
Title: Re: SimplePortal (2.2.2 Released!)
Post by: psynx on July 03, 2009, 06:53:44 AM
hello,

i have simple portal mod and this latest 1.5.6 media gallery

my guess can not see the images from my gallery to the gallery block on my portal. i have allowed my guess to access gallery page but still they can not see the images from my gallery to the gallery block on my portal.

when im login i can view the images in my gallery block on my portal.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: patalete on July 05, 2009, 06:51:05 AM
--- EDIT ---

Issue now posted in Simple Portal Forums.

http://simpleportal.net/index.php?topic=2759.0
Title: Re: SimplePortal (2.2.2 Released!)
Post by: nwobhm on July 07, 2009, 03:43:37 PM
EDIT--- posted this "problem" to simpleportal :)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: totaltutankoll on July 07, 2009, 05:31:09 PM
Can someone please explain some of the functionality of articles in SP ::)

Where on earth is the article listing supposed to turn up on the forum? IS there a setting outside to SP CP somewhere I may have missed ???

I have a category, I have some articles attached to it but where the heck will I find them :D
Title: Re: SimplePortal (2.2.2 Released!)
Post by: totaltutankoll on July 07, 2009, 06:08:56 PM
Quote from: totaltutankoll on July 07, 2009, 05:31:09 PM
Can someone please explain some of the functionality of articles in SP ::)

Where on earth is the article listing supposed to turn up on the forum? IS there a setting outside to SP CP somewhere I may have missed ???

I have a category, I have some articles attached to it but where the heck will I find them :D
Stupid me :-[ when finally asking the question I've found all the funcationality and coudl even set up the "thing" with seperate pictures for my just now two categories. Apparantly I forgot the part where you need to set up at block for the articles... Now I'm gonna get to work and do this in an excellent way.

By the way. It's a really nicelooking mod 8)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: totaltutankoll on July 07, 2009, 06:45:07 PM
here's a couple of questions.

I made some squares to mark my different news categories and they look all cute and nice in my browser and in photoshop but in the news menu they turn up huge! :( Anyone with an idea why?

Second of all, first my authors didn't show which I thought was great and suddenly they're showing which looks plain ugly ::) Any settings and if so, where? I've been looking at the block setting, the category config and the articles with no such luck..
Title: Re: SimplePortal (2.2.2 Released!)
Post by: totaltutankoll on July 07, 2009, 08:28:37 PM
Next question. I've sorted my articles according to category but I can not again find where these categories may be sorted in my portal/forum if anyone understand where I'm goind with this.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on July 07, 2009, 08:31:58 PM
You may find a quicker response at www.simpleportal.net
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Wingman7659 on July 08, 2009, 12:45:48 AM
Hi all,

I've installed the latest version Simple Portal and it works like a champ on my just-updated SMF RC1-1. My question is, can I change the "Forum" name into chinese? I have edited the general string in SPortal.english-utf8.php file. It works but other test of the forum "grow" a lot bigger, what have I done wrong?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Rhandy on July 09, 2009, 06:16:00 PM
I have a customized "SPortal2.php" file.
I'm just asking you if you can modify it.
I want that, when I post a Sticky Topic, it always shows in the first place of the "Recent Topics" Block.

Can you help me here please?

This is the link to the file:
http://rapidshare.com/files/253444381/SPortal2.php.html


P.D. I already tried what this post says:
http://simpleportal.net/index.php?topic=1974.0
But didn't worked for me...
I use SMF 2.0 RC1-1 and Simple Portal 2.2.2...

Thanks!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: IdanC on July 10, 2009, 08:19:02 AM
amazing mod!

yet, i really like my BoardIndex.
i couldn't figure out how i can put blocks around it, and not instead of it. any ideas?

have a great weekend!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on July 10, 2009, 08:20:11 AM
Do you mean so that some blocks from the portal can be viewed next to your main forum boards?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on July 10, 2009, 08:50:22 AM
Some of the blocks can be integrated onto your forum pages.

I have done this myself.

Title: Re: SimplePortal (2.2.2 Released!)
Post by: IdanC on July 10, 2009, 10:54:30 AM
Quote from: IdanC on July 10, 2009, 08:19:02 AM
amazing mod!
yet, i really like my BoardIndex.
i couldn't figure out how i can put blocks around it, and not instead of it. any ideas?

i feel like an idiot... could'nt figure out the integration mode until now.
so again - great mod, and thank you Listener for the replies.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: totaltutankoll on July 10, 2009, 01:54:27 PM
Quote from: TheListener on July 10, 2009, 08:50:22 AM
Some of the blocks can be integrated onto your forum pages.

I have done this myself.
Can you explain more about this. I wonder if you're sitting on the solution of a problem I'm experiencing.. ::)

:D
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 10, 2009, 02:25:01 PM
Quote from: Chaos Dragon on July 02, 2009, 03:58:16 PM
It was all the images you would find for the admin panel that didn't upload. It is fine now I manually uploaded the missing images.
Like I said in the last post it is the norm for me to have to do something manually. At least with this one it was only a few images and not having to go code hunting. This is the first one that i installed that I did not have to manually edit the code to get it working. I wish they all did that.

If you are on SMF 2.0 and you mean the admin menu images and you are using a custom theme; you need to upload those images manually. Actually it should have been copied if you enabled the option to install the mod to other themes too.

Quote from: Paolo Bitta on July 03, 2009, 05:37:38 AM
I forgot to tell you that i'm running a SMF 1.1.9 version.
I can't find that variable in smf_setting table...  ???


EDIT:
I resolved it myself...
It is surely a problem of/from simpleportal, because with no manual changes this error has appeared after SP installation. The problem is that a define is missing somewhere.
The fix was obtained by introducing the instruction:
define("N","N");
in index.php (probably there's a very better place to put this code, but I'm afraid to mess up something).

bye
Paolo Bitta

You don't need to find it, you need to insert a new one as instructed in the topic I linked.

Still, issue is not related to SimplePortal. We don't use a consant "N". It should be caused by another mod or a custom code.

Quote from: psynx on July 03, 2009, 06:53:44 AM
hello,

i have simple portal mod and this latest 1.5.6 media gallery

my guess can not see the images from my gallery to the gallery block on my portal. i have allowed my guess to access gallery page but still they can not see the images from my gallery to the gallery block on my portal.

when im login i can view the images in my gallery block on my portal.

Can you provide a link to your forum? Are you sure guests can view the images (not the gallery)?

Quote from: totaltutankoll on July 07, 2009, 06:08:56 PM
Quote from: totaltutankoll on July 07, 2009, 05:31:09 PM
Can someone please explain some of the functionality of articles in SP ::)

Where on earth is the article listing supposed to turn up on the forum? IS there a setting outside to SP CP somewhere I may have missed ???

I have a category, I have some articles attached to it but where the heck will I find them :D
Stupid me :-[ when finally asking the question I've found all the funcationality and coudl even set up the "thing" with seperate pictures for my just now two categories. Apparantly I forgot the part where you need to set up at block for the articles... Now I'm gonna get to work and do this in an excellent way.

By the way. It's a really nicelooking mod 8)

You can also select the Admin > SimplePortal > Configuration > Article Settings > Enable Articles option to display them at the center of portal like news.

Quote from: totaltutankoll on July 07, 2009, 06:45:07 PM
here's a couple of questions.

I made some squares to mark my different news categories and they look all cute and nice in my browser and in photoshop but in the news menu they turn up huge! :( Anyone with an idea why?

Second of all, first my authors didn't show which I thought was great and suddenly they're showing which looks plain ugly ::) Any settings and if so, where? I've been looking at the block setting, the category config and the articles with no such luck..

Any chance you can provide screenshots for both of your issues?

Quote from: totaltutankoll on July 07, 2009, 08:28:37 PM
Next question. I've sorted my articles according to category but I can not again find where these categories may be sorted in my portal/forum if anyone understand where I'm goind with this.

Are you using the articles block or usual articles (like board news)? What do you mean by "sorting them according to categories"?

Quote from: Wingman7659 on July 08, 2009, 12:45:48 AM
Hi all,

I've installed the latest version Simple Portal and it works like a champ on my just-updated SMF RC1-1. My question is, can I change the "Forum" name into chinese? I have edited the general string in SPortal.english-utf8.php file. It works but other test of the forum "grow" a lot bigger, what have I done wrong?

Any chance I can see your forum?

Quote from: totaltutankoll on July 10, 2009, 01:54:27 PM
Quote from: TheListener on July 10, 2009, 08:50:22 AM
Some of the blocks can be integrated onto your forum pages.

I have done this myself.
Can you explain more about this. I wonder if you're sitting on the solution of a problem I'm experiencing.. ::)

:D

If you don't want SimplePortal to replace your Board Index, then you can select "Integration" mode from Admin > SimplePortal > Configuration > General Settings > Portal Mode. That will remove SimplePortal from front page but you'll still be able to use blocks in forum.

If you want to display your blocks in forum too, you just need to edit a block and select the actions from "Display Options" area.
Title: css and alignment bugs
Post by: IdanC on July 10, 2009, 03:03:32 PM
hi, anyone has any idea why the posts page is messed up?
no vertical align, width problems, etc. (see att.)

all the other pages in forum looks great.

can i just remove the block from the posts page? i tried -~topic but it didnt do anything...
Title: Re: css and alignment bugs
Post by: IdanC on July 11, 2009, 07:45:12 AM
Quote from: IdanC on July 10, 2009, 03:03:32 PM
hi, anyone has any idea why the posts page is messed up?
no vertical align, width problems, etc. (see att.)

all the other pages in forum looks great.

can i just remove the block from the posts page? i tried -~topic but it didnt do anything...

please, could someone help? i went through every line in the code, and i could'nt find what causes it only in posts pages...
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on July 11, 2009, 12:27:40 PM
Have you left a post on the simple portal site?

www.simpleportal.net
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Rhandy on July 11, 2009, 02:17:52 PM
Quote from: Rhandy on July 09, 2009, 06:16:00 PM
I have a customized "SPortal2.php" file.
I'm just asking you if you can modify it.
I want that, when I post a Sticky Topic, it always shows in the first place of the "Recent Topics" Block.

Can you help me here please?

This is the link to the file:
http://rapidshare.com/files/253444381/SPortal2.php.html


P.D. I already tried what this post says:
http://simpleportal.net/index.php?topic=1974.0
But didn't worked for me...
I use SMF 2.0 RC1-1 and Simple Portal 2.2.2...

Thanks!

[SiNaN] What's with my problem?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: IdanC on July 11, 2009, 02:23:22 PM
Quote from: TheListener on July 11, 2009, 12:27:40 PM
Have you left a post on the simple portal site?

www.simpleportal.net

just did, problem solved.
for anyone else:

This custom display option should display block on all pages, but topics:

all, -~topic
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Wingman7659 on July 11, 2009, 03:39:26 PM
Quote from: [SiNaN] on July 10, 2009, 02:25:01 PM
Quote from: Wingman7659 on July 08, 2009, 12:45:48 AM
Hi all,

I've installed the latest version Simple Portal and it works like a champ on my just-updated SMF RC1-1. My question is, can I change the "Forum" name into chinese? I have edited the general string in SPortal.english-utf8.php file. It works but other test of the forum "grow" a lot bigger, what have I done wrong?

Any chance I can see your forum?



Here you are:

Before
(http://www.digiwok.com/files/Before.jpg)

After
(http://www.digiwok.com/files/After.jpg)

My url is www.digiwok.com
Title: Re: SimplePortal (2.2.2 Released!)
Post by: RedCairo on July 12, 2009, 04:05:56 AM
Hi, sorry to see your site is down -- hope that resolves soon.

This isn't a function problem just a usage question.

Since the Custom Pages mod author is taking awhile to get around to making that work for 1x SMF and I'm stuck there -- and had planned a website around it a month ago -- and Baker's Dozen mod doesn't work for 1x either, gahhhhhh -- I'm trying to figure out how I can use SP to the best effect for at least a few critical things.

After messing with the articles section, it seems like one doesn't post articles, one just posts regular message board posts and then makes them into 'articles'?  Is that so or do I misunderstand? I don't want members to be able to make these, I just want to be able to make a few at staff level (such as for rules, policies, some instructions, etc.).

I considered using 'Articles' for my pages: But I want to make some pages that only show up if they are directly linked to. I don't want them to be a normal post on the forum.

I considered using 'Blocks' for my pages, as custom html: But wherever they might reside, if they are content in a block, I do not have any actual 'place' for that block to show up (such as on portal or next to forum or whatever) UNLESS some kind of direct link could be made to it or... something... so that it would just come up on its own.

Actually ya know, if this isn't possible -- basically that you could call a custom block that would, if called with a certain parameter, be full-screen (vs. have forum blocks vs. have portal blocks) -- that would be a very interesting addition to the functionality of SP that would literally build in a 'pages' functionality.

Anyway. I just need to put a few 'pages' in SMF 1.1x without making them forum posts or having them show up unless a link leads someone to them. Is there any way to do this with SP??

Thanks in advance,
Palyne
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 12, 2009, 05:12:07 AM
Pages feature will be available in 2.3 version, which isn't out yet, but being tested these days.

You can use Custom Action mod by winrules until then.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Veliki Brat on July 12, 2009, 06:44:04 AM
Hi and thx for this simple but powerfull portal. I use it a lot and its a core of my site. Great stuff!!  :)

Please help me with this, how to put a recent posts from simple portal code into a custom page or custom action on site? I have some scripts like a tabview and I want to place a recent post into the tabview.

But I can't. Why?

Here is my site, please take a look. Simple portal recent posts are on the right side od site.. and a tabview is in the middle os site. Now I want to put a recent posts into a tabview.

P.S. Why a Simple Portal site not working?  :(
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Blinker on July 12, 2009, 07:56:20 AM
sloba, what kind of block are those tabbed boxes in your portal, the ones in the middle. I want them!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 12, 2009, 08:29:11 AM
Wingman7659:

It looks fine to me, were you able to solve the issue? From what I see looking at the screenshots, there is an extra char being output before everything else.

sloba:

You can use sp_recent() function with correct parameters passed in any PHP code you run on your forum. As I'm not sure how you create your tab thingies, I can't provide you the exact codes.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Blinker on July 12, 2009, 10:34:46 AM
Quote from: sloba on July 12, 2009, 09:48:35 AM
Quote from: Blinker on July 12, 2009, 07:56:20 AM
sloba, what kind of block are those tabbed boxes in your portal, the ones in the middle. I want them!

Tab view.. here is all you need to place it on your site. Enjoy.

Thanks sloba. How do I set it up? As in, how do I make it appear on my forum, in blocks etc...and also how to add content to it?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Blinker on July 12, 2009, 11:17:12 AM
Thanks a lot sloba. I managed to get a tab box to appear in a block.

I'm going to play around a little to do things like centring it, adding content etc.

I appreciate your help. Do you mind if I PM you for further advice?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: RedCairo on July 12, 2009, 01:00:38 PM
cool tabs.

I wonder if that is the same scrolling-tab-box javascript that I have in this blog (see theme link at bottom):
http://blog.dojopsi.info/


Title: Re: SimplePortal (2.2.2 Released!)
Post by: Rhandy on July 12, 2009, 03:25:27 PM
Quote from: Rhandy on July 09, 2009, 06:16:00 PM
I have a customized "SPortal2.php" file.
I'm just asking you if you can modify it.
I want that, when I post a Sticky Topic, it always shows in the first place of the "Recent Topics" Block.

Can you help me here please?

This is the link to the file:
http://rapidshare.com/files/253444381/SPortal2.php.html


P.D. I already tried what this post says:
http://simpleportal.net/index.php?topic=1974.0
But didn't worked for me...
I use SMF 2.0 RC1-1 and Simple Portal 2.2.2...

Thanks!

SO ??????????????
[SiNaN] WHY YOU ALWAYS IGNORE ME?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Jade Elizabeth on July 12, 2009, 04:18:39 PM
Please don't yell at Sinan. Also please attach your files here, not through Rapidshare :).

Thank you :)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Mraza on July 13, 2009, 04:14:31 AM
guys i even ask at your site but nobody is responding there please guys hep
Quote from: Mraza on July 07, 2009, 05:32:15 AM
hi guys i am using 1.1.9 smf with simpleportal 2.2. i wanted to show my choosen one boards to show posts in portal from recent posts blocks. so far i get this code but it is not working. can somebody help me in this, thanks. here is the code

(Find (SSI.php))function ssi_recentTopics($num_recent = 8, $exclude_boards = null, $output_method = 'echo')
(Replace)function ssi_recentTopics($num_recent = 8, $exclude_boards = null, $output_method = 'echo', $include_boards = null)


(Find (SSI.php))         AND t.ID_LAST_MSG = m.ID_MSG
         AND b.ID_BOARD = t.ID_BOARD" . (empty($exclude_boards) ? '' : "

(Replace)         AND t.ID_LAST_MSG = m.ID_MSG
         AND b.ID_BOARD = t.ID_BOARD" . (empty($include_boards) ? '' : "
         AND b.ID_BOARD IN (" . implode(', ', $include_boards) . ")") . (empty($exclude_boards) ? '' : "



(Find (Sources/SPortal1-1.php))$topics = ssi_recentTopics($limit, null, 'array');
(Replace)$topics = ssi_recentTopics($limit, null, 'array', array(1, 2, 3, 4));

array(1, 2, 3, 4)) on last line code is where i put my board ID but not working.

Title: Bandwidth limit at simpleportal.net
Post by: Angelina Belle on July 13, 2009, 10:07:05 AM
Well, congratulations, I guess, on reaching your bandwidth limit.  Or has your site been under attack?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 13, 2009, 10:41:30 AM
There are some server issues we are currently having at sp.net. Should be dissolved forever in the very near future. Sorry for inconvenience.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Mraza on July 13, 2009, 10:46:47 AM
Quote from: [SiNaN] on July 13, 2009, 10:41:30 AM
There are some server issues we are currently having at sp.net. Should be dissolved forever in the very near future. Sorry for inconvenience.
Thanks [SiNaN] ! i think i had written my problem on that site about 3-4 weeks ago. and i really hope somebody will help me to solve this method.

Regards
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Wingman7659 on July 13, 2009, 02:34:25 PM
Quote from: [SiNaN] on July 12, 2009, 08:29:11 AM
Wingman7659:

It looks fine to me, were you able to solve the issue? From what I see looking at the screenshots, there is an extra char being output before everything else.


I found that it happens when I duplicate the original english-utf8 language file, modify into into chinese and save into utf-8 coding. Is there anything to do with it?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: willerby on July 13, 2009, 05:03:49 PM
Quote from: palyne on July 12, 2009, 04:05:56 AM
Since the Custom Pages mod author is taking awhile to get around to making that work for 1x SMF and I'm stuck there -- and had planned a website around it a month ago -- and Baker's Dozen mod doesn't work for 1x either, gahhhhhh -- I'm trying to figure out how I can use SP to the best effect for at least a few critical things...
Palyne

I'd upgrade to SMF 2.0RC1 and be done with it.

I use SP, Articles Mod, Custom Pages, Dozen Pages and Custom Forms on my 2.0 site and all work great...
Title: Re: SimplePortal (2.2.2 Released!)
Post by: dzinerfusion on July 13, 2009, 09:20:56 PM
hope your site is back up soon!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: candidosa2 on July 14, 2009, 01:28:28 AM
did need somehelp...
about Hosting....
try send me PM Plaese
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Stef001 on July 14, 2009, 05:24:35 PM
I offer you free hosting for this great mod.
Give me a pm.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: shua on July 15, 2009, 05:07:09 PM
Agreed, SimplePortal rocks. I just implemented a sweet 404 page that incorporated Google AdSense custom search and the Top Boards block to try to keep people on the site when they encounter a 404.

www.waterxing.com/notfound.html (http://www.waterxing.com/notfound.html)

The way I did it was to create a custom 404 action using the Custom Action Mod.  I then created an html block and turned it on for the new action using Custom Display Options: ~action|404

If you try out the search on the 404 page, you'll also see that I created a custom action for my Google search results page so that people don't leave the site.

Lastly, I created an .htaccess entry to forward 404 handling to the new 404 action.

# Provide friendly 404 error handling
RewriteRule ^404.html$ /index.php?action=404

Title: Re: SimplePortal (2.2.2 Released!)
Post by: Bruno36 on July 16, 2009, 07:18:41 AM
   
Hello!

When I go on the portal I have a blank page :(
http://www.scooter-chinois-4t.com
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Stef001 on July 16, 2009, 10:44:04 AM
Quote from: Bruno36 on July 16, 2009, 07:18:41 AM
   
Hello!

When I go on the portal I have a blank page :(
http://www.scooter-chinois-4t.com

I see the portal.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Bruno36 on July 16, 2009, 01:13:02 PM
   
Now it works, I disable the block SMFMediaGallery
Title: Re: SimplePortal (2.2.2 Released!)
Post by: PRaDiUS on July 16, 2009, 02:38:55 PM
Quote from: [SiNaN] on July 12, 2009, 05:12:07 AM
Pages feature will be available in 2.3 version, which isn't out yet, but being tested these days.

Sweet. Will the shoutbox also be in that version? and is there an ETA on the release of 2.3?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 16, 2009, 02:52:44 PM
Ummm, shoutbox? Don't expect me to tell you that I am now making last tests on shoutbox(es) feature of SP 2.3 -which is to me the best ever- and we will start testing as soon as sp.net is up; because I won't. :P

We usually don't put release dates not to put extra stress and pressure on ourselves -which we already have a lot- and not to give you a false hope in case things don't go as expected -they never do actually-. But since we are about to start the beta testing, it is close enough. ;)

And sorry for the weird post; I'm too excited with the new version myself. ;D
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Verso on July 16, 2009, 03:26:12 PM
I have a question about blocks.........

If you look at my site http://www.suffolksportsforum.co.uk/index.php and go to any of the ?action pages you'll see an SWF banner.

Is there a way I can have this block only displayed on:-

?action=SMFPredictionLeague
?action=SMFQuiz
?action=arcade


For all the other ?action pages I'd like a different block..........
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on July 16, 2009, 04:50:49 PM
Quote from: [SiNaN] on July 16, 2009, 02:52:44 PM
Ummm, shoutbox? Don't expect me to tell you that I am now making last tests on shoutbox(es) feature of SP 2.3 -which is to me the best ever- and we will start testing as soon as sp.net is up; because I won't. :P

We usually don't put release dates not to put extra stress and pressure on ourselves -which we already have a lot- and not to give you a false hope in case things don't go as expected -they never do actually-. But since we are about to start the beta testing, it is close enough. ;)

And sorry for the weird post; I'm too excited with the new version myself. ;D

Please ignore the rantings of [SiNaN], he's quite out of his mind with all the development hell. Nothing he's saying is true, it's all false, there is no version 2.3. :P

Of course I'm just kidding!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Afro on July 16, 2009, 04:58:17 PM
Hi, how can i remove the dates and times o the RECENT TOPIC Module.

I mean the block that shows the recent topics...


it comes with the names of teh posters and dates.

how can i remove the date and time ?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on July 16, 2009, 05:13:55 PM
Quote from: Eliana Tamerin on July 16, 2009, 04:50:49 PM
Quote from: [SiNaN] on July 16, 2009, 02:52:44 PM
Ummm, shoutbox? Don't expect me to tell you that I am now making last tests on shoutbox(es) feature of SP 2.3 -which is to me the best ever- and we will start testing as soon as sp.net is up; because I won't. :P

We usually don't put release dates not to put extra stress and pressure on ourselves -which we already have a lot- and not to give you a false hope in case things don't go as expected -they never do actually-. But since we are about to start the beta testing, it is close enough. ;)

And sorry for the weird post; I'm too excited with the new version myself. ;D

Please ignore the rantings of [SiNaN], he's quite out of his mind with all the development hell. Nothing he's saying is true, it's all false, there is no version 2.3. :P

Of course I'm just kidding!

Like a kid at christmas isn't he?

;D
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 16, 2009, 06:05:08 PM
Nope, certainly not a kid. ;)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on July 16, 2009, 06:07:04 PM
Hey I call 21 year olds kid.

Besides 17 is still young enough to be a kid so there ya go kiddo.

:P
Title: Re: SimplePortal (2.2.2 Released!)
Post by: PRaDiUS on July 16, 2009, 09:43:44 PM
Haha. Excitement is a good thing! And now I'm pumped! Hope sp.net is back up SOON! ;D

Quote from: [SiNaN] on July 16, 2009, 02:52:44 PM
Ummm, shoutbox? Don't expect me to tell you that I am now making last tests on shoutbox(es) feature of SP 2.3 -which is to me the best ever- and we will start testing as soon as sp.net is up; because I won't. :P

We usually don't put release dates not to put extra stress and pressure on ourselves -which we already have a lot- and not to give you a false hope in case things don't go as expected -they never do actually-. But since we are about to start the beta testing, it is close enough. ;)

And sorry for the weird post; I'm too excited with the new version myself. ;D
Title: Re: SimplePortal (2.2.2 Released!)
Post by: RedCairo on July 17, 2009, 04:11:32 AM
If you ever need "a better idiot" for beta testing somewhere, I volunteer. You guys have an awesome product. (I know html, css, sql, cfml, but verrrrrrry little php.)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Afro on July 17, 2009, 05:16:36 AM
Quote from: Akpaka on July 16, 2009, 04:58:17 PM
Hi, how can i remove the dates and times o the RECENT TOPIC Module.

I mean the block that shows the recent topics...


it comes with the names of teh posters and dates.

how can i remove the date and time ?
bump
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Verso on July 17, 2009, 05:59:29 AM
Quote from: Verso on July 16, 2009, 03:26:12 PM
I have a question about blocks.........

If you look at my site http://www.suffolksportsforum.co.uk/index.php and go to any of the ?action pages you'll see an SWF banner.

Is there a way I can have this block only displayed on:-

?action=SMFPredictionLeague
?action=SMFQuiz
?action=arcade


For all the other ?action pages I'd like a different block..........


Just wondering?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: RedCairo on July 17, 2009, 06:30:20 AM
Oh, that's a good question. I'm just implementing some custom actions now and was wondering if there was any way to control what blocks got showed or not showed on it.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on July 17, 2009, 01:00:27 PM
You can choose which blocks you want to show on the portal via the admin section.

which smf version are you?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Rhandy on July 17, 2009, 03:17:29 PM
I have a customized "SPortal2.php" file.
I'm just asking you if you can modify it.
I want that, when I post a Sticky Topic, it always shows in the first place of the "Recent Topics" Block.

Can somebody help me here please?


P.D. I already tried what this post says:
http://simpleportal.net/index.php?topic=1974.0
But didn't worked for me...
I use SMF 2.0 RC1-1 and Simple Portal 2.2.2...

Thanks!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Brianpv on July 17, 2009, 04:30:09 PM
Seems there's a new message on http://simpleportal.net
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Brianpv on July 17, 2009, 04:33:01 PM
I see a Blank page on http://rpg-forum.co.cc :-X im using Google Chrome
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on July 17, 2009, 04:43:29 PM
There is indeed a new message on SP.net. We're working on the issue now, and SP.net should be back up tonight.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on July 17, 2009, 08:00:52 PM
And SP.net is back up. We're without the shoutbox for a while, and I'll make a post later on explaining everything. Thanks to all your patience, everybody.

And without further ado:

http://simpleportal.net (http://simpleportal.net)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on July 17, 2009, 08:02:10 PM
address not found
Title: Re: SimplePortal (2.2.2 Released!)
Post by: RedCairo on July 17, 2009, 08:15:14 PM
The link simply has an error due to some buggy/typo in the edit box.

http://www.simpleportal.net  works fine.

Title: Re: SimplePortal (2.2.2 Released!)
Post by: H on July 17, 2009, 08:45:56 PM
As the DNS has been updated to point to the new server it may take up to 48 hours for your computer/ISPs cache to update :)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: LC on July 18, 2009, 06:23:49 PM
Is there going to be a smf 1.1.10 compatible version?  ;D

Tried using the parsing tool from other sites, no luck.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on July 18, 2009, 06:29:15 PM
Quote from: LadyChaos on July 18, 2009, 06:23:49 PM
Is there going to be a smf 1.1.10 compatible version?  ;D

Tried using the parsing tool from other sites, no luck.

Simple Portal is compatible with 1.1.9, 1.1.10 and 2.0 rc1-1 and onwards.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: LC on July 18, 2009, 07:52:20 PM
Well I have a custom theme, so to install this mod I would need the parse for 1.1.10. Or am I wrong?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on July 18, 2009, 07:54:43 PM
Quote from: LadyChaos on July 18, 2009, 07:52:20 PM
Well I have a custom theme, so to install this mod I would need the parse for 1.1.10. Or am I wrong?

Have you tried to install the portal?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: LC on July 18, 2009, 08:01:28 PM
Yes, did it just now. It works with my theme, I wouldn't have expected that. :P I like being prepared, but this was very easy. Thanks.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 19, 2009, 12:35:50 PM
Updated version info on the Mod Site. Thanks!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: REGNARTS_ on July 20, 2009, 06:37:09 AM
Just a quick question, why do I have no icons here?

Image:
(http://i27.tinypic.com/wjdppz.png)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Blinker on July 20, 2009, 07:05:45 AM
REGNARTS_ it may be your custom theme. Try copying the images/sp directory over to your custom theme.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 20, 2009, 08:59:40 AM
They are admin images, so they don't have a fallback. If you had checked the option "Install the mod for the other themes" while installing the mod, it should have copied the images for you.

You can fix it by copying the contents of /Themes/default/images/admin directory to /Themes/{your_theme}/images/admin directory.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: REGNARTS_ on July 20, 2009, 05:39:06 PM
Quote from: [SiNaN] on July 20, 2009, 08:59:40 AM
They are admin images, so they don't have a fallback. If you had checked the option "Install the mod for the other themes" while installing the mod, it should have copied the images for you.

You can fix it by copying the contents of /Themes/default/images/admin directory to /Themes/{your_theme}/images/admin directory.

Superb! Thanks. If we ever meet, I'll buy you lunch. :D
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Blinker on July 21, 2009, 04:53:27 AM
Quote from: [SiNaN] on July 20, 2009, 08:59:40 AMThey are admin images, so they don't have a fallback.

Of course...didn't think of that [SiNaN], my bad... :-[
Title: Re: SimplePortal (2.2.2 Released!)
Post by: PRaDiUS on July 21, 2009, 04:27:21 PM
@ SiNaN

Hey bro. I'm having a slight issue with blocks expanding beyond their width and running into other blocks. When HD youtube videos are posted some of them are bigger then the middle blocks on the portal. So instead of auto-resizing them or adding the scroll left-right bar @ the bottom of the block. It just overlaps out and into another block. Namely the block I currently have on the right for showing recent items added to the media gallery. Although I am having the same problem with this block aswell. Sometimes users add images to my gallery with really long names and no spaces. Well when those names of gallery items are longer than the block it just expands the block out to the right and off of the page causing a nasty left-right scroll bar to appear @ the bottom of my forum. I have not edited or modded your script in anyway so it can't be anything I might have changed. Since this is happening in a few blocks with not only videos and images but text aswell -- I can only conclude maybe this is something you need to fix in the block code for the mod itself and add to your next update. If you could tell me how I could go in now and fix it myself that would be great! These overlapping blocks just look really crappy and unprofessional. Thanks in advance for any help you can give. I need it!

;)

(http://www.rgxbox.com/images/aevaerror.jpg)


July 24: I still cannot figure out what is wrong here. Does anyone know how to fix this please?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: REGNARTS_ on July 23, 2009, 11:34:23 PM
Does anyone know why I don't see the "Simple Portal" button under admin? I have SMF 2.0 RC1.2. I also check and it has installed successfully. Any help would be much appreciated.

Also, when I tried to uninstall it so that I can trying to install it again, I get an "Error in package installation" error with all the uninstall actions set to "Test Failed".
Title: Re: SimplePortal (2.2.2 Released!)
Post by: flamechica on July 27, 2009, 03:43:27 PM
I have set up a custom PHP block to use my ShoutMix ShoutBox on my forum. I have membergroups for my regular members set with post count restrictions. I was wondering if there was a way to set it so if I put a member in a certain membergroup that they could not see the custom PHP block? From what I can tell there is only 3 ways to set permissions by groups with the blocks (One Membergroup, All Membergroups & Ignore Permissions). None of these do what I want them to though.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on July 27, 2009, 04:15:12 PM
Select All Membergroups and then choose every group but the one you don't want to have access. Give that group to the people who don't want to see the shoutbox, and they'll be restricted from it.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: willerby on July 27, 2009, 04:38:53 PM
Wouldn't other membergroups be restricted from it as they don't belong to all the remaining membergroups?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on July 27, 2009, 04:46:08 PM
That's why you have to select every membergroup but the one you want to exclude.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on July 27, 2009, 04:54:37 PM
Is there a way for the image a sm.org member made for my forums twitter account can be used as the llink tfrom the portal to the account?


Attached is the image.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: willerby on July 28, 2009, 05:52:36 PM
Quote from: Eliana Tamerin on July 27, 2009, 04:46:08 PM
That's why you have to select every membergroup but the one you want to exclude.

Eliana, I'll try and explain what I mean. Your way only works if there are two membergroups - if there are more this happens...

A is a member of MemberGroup1
B is a member of MemberGroup2
C is a member of MemberGroup1 and 2

I want some members to not have access to shoutbox so I set up MemberGroup3 and as you suggest I set the permissions for shoutbox to 'Select All Membergroups' and then choose every group (Membergroup1 and 2) but not the one I don't want to have access (MemberGroup3).

If I add MemberGroup3 to C above he has All Membergroups and can see the shoutbox, But adding MemberGroup3 to A or B will still mean they are missing a membergroup (either MemberGroup1 or 2) so they won't be able to see the shoutbox...

I'd suggest rather than use the negative AllMembergroups the easier way is to have a ShoutboxMemberGroup, set permissions only for this group to see the shoutbox then add this MemberGroup to the profile of everyone you want to be able to access it. Those without this membergroup in their profile won't see it regardless of how many or which other MemberGroups they belong to.

Does that make sense?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on July 28, 2009, 06:28:35 PM
Your method works fine on a small forum or when you have a small number of people who need to access a block.

My method works a bit better on large forums (although not when you're changing membergroups a bunch, since it'd be a pain to edit the block each time) when it's easier to single out a small group of members to restrict and let the rest have at it.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: kai920 on July 28, 2009, 06:30:28 PM
I'm loving SimplePortal 2.2.2 and SMF 2.0 RC 1.2  :D
Title: Re: SimplePortal (2.2.2 Released!)
Post by: flamechica on July 29, 2009, 01:01:37 AM
Thanks for the responses, Eliana and Willerby!

Eliana, I thought "All Membergroups" meant that a member would have to belong to all the membergroups that are checked in order to see the shout box. So, I guess I am thinking along the same lines as willerby. Am I not understanding what the "All Membergroups" option means?

I completely get willerby's thinking on this. My forum is small for now, but I think it would be a pretty big pain if it were to get big.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: PalmBeachPreps on July 30, 2009, 02:47:28 AM
Can someone help me with this error? 
QuoteFatal error: Call to undefined function sp_languageSelect() in /home/content/p/a/l/palmbeachpreps/html/Sources/Admin.php on line 70
TIA!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: psynx on July 30, 2009, 11:25:47 AM
need help.

Table 'b4_14344_myforum.smf_sp_blocks' doesn't exist
File: ...../htdocs/Sources/Subs-SPortal1-1.php
Line: 112

Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 30, 2009, 12:25:57 PM
Quote from: TheListener on July 27, 2009, 04:54:37 PM
Is there a way for the image a sm.org member made for my forums twitter account can be used as the llink tfrom the portal to the account?


Attached is the image.


Use BBC block.

Quote from: PalmBeachPreps on July 30, 2009, 02:47:28 AM
Can someone help me with this error? 
QuoteFatal error: Call to undefined function sp_languageSelect() in /home/content/p/a/l/palmbeachpreps/html/Sources/Admin.php on line 70
TIA!

Quote from: psynx on July 30, 2009, 11:25:47 AM
need help.

Table 'b4_14344_myforum.smf_sp_blocks' doesn't exist
File: ...../htdocs/Sources/Subs-SPortal1-1.php
Line: 112



Well, something like the two issues above does not happen without doing anything. You need to provide more details of the error.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: PalmBeachPreps on July 30, 2009, 12:44:07 PM
Quote from: [SiNaN] on July 30, 2009, 12:25:57 PM
Well, something like the two issues above does not happen without doing anything. You need to provide more details of the error.
I reinstalled the mod after upgrading to 2.0 RC1.2 and that error came up.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 30, 2009, 12:49:02 PM
Did you get any Test Failed errors during the installation? Can you attach your index.php file here?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: PalmBeachPreps on July 30, 2009, 01:06:37 PM
The 'Test Failed' errors I edited manually.

The index is attached.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 30, 2009, 01:20:45 PM
index.php

Code (Find) Select
require_once($sourcedir . '/SPortal2.php');

Code (Replace) Select
require_once($sourcedir . '/SPortal2.php');
require_once($sourcedir . '/Subs-SPortal2.php');
Title: Re: SimplePortal (2.2.2 Released!)
Post by: PalmBeachPreps on July 30, 2009, 01:39:27 PM
Quote from: [SiNaN] on July 30, 2009, 01:20:45 PM
index.php

Code (Find) Select
require_once($sourcedir . '/SPortal2.php');

Code (Replace) Select
require_once($sourcedir . '/SPortal2.php');
require_once($sourcedir . '/Subs-SPortal2.php');



Same result.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 30, 2009, 01:46:53 PM
Can you attach your Subs-SPortal2.php file here then? Or try replacing it with an original file.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: PalmBeachPreps on July 30, 2009, 01:57:25 PM
Here it is:
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 30, 2009, 02:05:18 PM
Well, you have the function in that file. And that file is being included in every page load. I don't have an idea what might be causing that.

You may want to uninstall the mod completely and install again, as you seem to have some issues with SP copyright too.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: PalmBeachPreps on July 30, 2009, 03:36:18 PM
QuoteYou may want to uninstall the mod completely and install again, as you seem to have some issues with SP copyright too.

That worked.  Thanks!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: PalmBeachPreps on July 30, 2009, 05:48:54 PM
Spoke to soon!  Here's the latest error I need help on:
QuoteFatal error: require_once() [function.require]: Failed opening required '/home/content/p/a/l/palmbeachpreps/html/Sources/Articles2.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/p/a/l/palmbeachpreps/html/Sources/Admin.php on line 604
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on July 30, 2009, 06:02:33 PM
Error is saying that Articles2.php file doesn't exist in Sources directory. However, SimplePortal doesn't have/use such a file. I believe it is related to SMF Articles mod.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on July 30, 2009, 08:17:31 PM
What is the maximum size for a block in the centre?

I recently added a widget called 'Are Ghosts real?' and would like to fill the gaps slightly more.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: PalmBeachPreps on July 30, 2009, 10:19:08 PM
Quote from: [SiNaN] on July 30, 2009, 06:02:33 PM
Error is saying that Articles2.php file doesn't exist in Sources directory. However, SimplePortal doesn't have/use such a file. I believe it is related to SMF Articles mod.
Great Call!  SMF articles was the culprit.  Thanks!
Title: Re: SimplePortal (2.2.2 Released!)
Post by: arockets on July 31, 2009, 09:25:45 AM
Hello again :)

I just started to use articles, and have added a image.  Could someone help me with moving that image to the top of the Article?  Right now its to the right inside the box.  Maybe an option for the image position in 2.3?  :)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: plusev on July 31, 2009, 09:16:25 PM
How do I get rid of the Pages [1] on the portal page? Thx
Title: Re: SimplePortal (2.2.2 Released!)
Post by: royalsanga744 on August 03, 2009, 04:17:44 AM
Hi everyone....
i would like to have my own custom menu on standalone page not that of my forum. can anyone help me......

thanks
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Dirk1973 on August 03, 2009, 05:34:56 PM
Error Message: That object does not support this property or method

It seems that it has something to do with:

window.addEventListener("load", sp_image_resize, false);

Any Idea?

It's only in the IE - Firefox works perfekt.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Pinball Nation on August 03, 2009, 07:19:02 PM
Hello everyone,This a great mod an everything works for me.But there is one stange thing that happened after installing the mod.For some reason or the other i have ?> displayed at the top left corner of all my pages.The portal page the forum page you name it an its there.Im sure this happened after installing the mod.Im using smf version 1.1.10 an installed the newest version of simple portal.Everything works as it should but would like to get rid of the ?>.Can someone help me out?Thanks
Title: Re: SimplePortal (2.2.2 Released!)
Post by: primetime on August 03, 2009, 07:21:48 PM
Looking at my error log, I get see the following...

Undefined variable: count
Apply Filter: Only show the errors from this file
File: /home/reefersr/public_html/dev/Themes/default/SPortal2.template.php (body_above sub template - eval?)
Line: 330

Any ideas?
Title: Re: SimplePortal (2.2.2 Released!)
Post by: royalsanga744 on August 06, 2009, 01:36:15 PM
Quote from: royalsanga744 on August 03, 2009, 04:17:44 AM
Hi everyone....
i would like to have my own custom menu on standalone page not that of my forum. can anyone help me......

thanks


can u help.....
Title: Re: SimplePortal (2.2.2 Released!)
Post by: TheListener on August 06, 2009, 01:44:17 PM
Quote from: royalsanga744 on August 06, 2009, 01:36:15 PM
Quote from: royalsanga744 on August 03, 2009, 04:17:44 AM
Hi everyone....
i would like to have my own custom menu on standalone page not that of my forum. can anyone help me......

thanks


can u help.....

Have you tried asking on their website at www.simpleportal.net (http://www.simpleportal.net)
Title: Re: SimplePortal (2.2.2 Released!)
Post by: Eliana Tamerin on August 06, 2009, 02:29:48 PM
@royalsanga744: You can do that with a custom block. Choose a BBC block (or php/html if you're comfortable coding those) and lay it out like you want it, using [url] tags or [iurl] (for links in the same window) for links.

Then just select it to display on the Portal page, and save it. You should be good to go.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: ultide on August 06, 2009, 05:18:20 PM
My site is http://ultide.com

i hv smf 1.1.9 .

problem is that my frontpage and standalone pages point to http://www.ultide.com/index.php

but i want them to point http://ultide.com

how can i do this.

help me....thanks....
Title: Re: SimplePortal (2.2.2 Released!)
Post by: ultide on August 06, 2009, 10:44:09 PM
Quote from: ultide on August 06, 2009, 05:18:20 PM
My site is http://ultide.com

i hv smf 1.1.9 .

problem is that my frontpage and standalone pages point to http://www.ultide.com/index.php

but i want them to point http://ultide.com

how can i do this.

help me....thanks....


nyone there to help...
Title: Re: SimplePortal (2.2.2 Released!)
Post by: flamechica on August 07, 2009, 04:19:47 AM
Quote from: ultide on August 06, 2009, 05:18:20 PM
My site is http://ultide.com (http://ultide.com)

i hv smf 1.1.9 .

problem is that my frontpage and standalone pages point to http://www.ultide.com/index.php (http://www.ultide.com/index.php)

but i want them to point http://ultide.com (http://ultide.com)

how can i do this.

help me....thanks....

To change the standalone page go into the admin control panel, look down the left hand side and click on "Configuration" under the "Simple Portal" category. Then click on the "general settings" tab, put in the link to your standalone page where it says "Standalone URL"
Title: Re: SimplePortal (2.2.2 Released!)
Post by: [SiNaN] on August 08, 2009, 04:17:18 PM
SimplePortal 2.3 RC1 Released!

Quote from: [SiNaN] on August 08, 2009, 04:02:12 PM
The SimplePortal Team has been hard at work for the last several months developing the next version of SimplePortal, 2.3! We've heard your feedback, and included many requested features in our upcoming version.

Since we would like to have testing and feedback for our new version, in order to provide you the most stable product possible, we have decided to make our release candidate public. This means you can download the upcoming version now, test and report the bugs.

However, please note that: There will be no install/upgrade/uninstall support provided for/from RC1 version. Although this is a stable version, we strongly advise against using this package on your live forums. This package is only for testing purposes.

Your feedback is welcome here and in the related topics in Team Blogs (http://simpleportal.net/index.php?board=60.0) board. Please post any bugs to the Bugs (http://simpleportal.net/index.php?board=3.0) board.

You can download the package from Beta Packages (http://simpleportal.net/index.php?action=downloads;area=cat7) category in Downloads (http://simpleportal.net/index.php?action=downloads) area.

Thanks,
-The SimplePortal Team
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: psynx on August 13, 2009, 10:22:57 AM
hello,

i need some help.

i have this code below in my 'ssi.php' this mod is called the 'SSI Register Function'

// Show a form for guests to register.
function ssi_register($output_method = 'echo')
{
global $scripturl, $db_prefix, $txt, $settings, $modSettings, $context;

loadLanguage('Login');

// Generate a visual verification code to make sure the user is no bot.
$context['visual_verification'] = empty($modSettings['disable_visual_verification']) || $modSettings['disable_visual_verification'] != 1;
if ($context['visual_verification'])
{
$context['use_graphic_library'] = in_array('gd', get_loaded_extensions());
$context['verificiation_image_href'] = $scripturl . '?action=verificationcode;rand=' . md5(rand());

// Only generate a new code if one hasn't been set yet
if (!isset($_SESSION['visual_verification_code']))
{
// Skip I, J, L, O and Q.
$character_range = array_merge(range('A', 'H'), array('K', 'M', 'N', 'P'), range('R', 'Z'));

// Generate a new code.
$_SESSION['visual_verification_code'] = '';
for ($i = 0; $i < 5; $i++)
$_SESSION['visual_verification_code'] .= $character_range[array_rand($character_range)];
}
}

    // If we have GD, try the nice code.
    elseif (empty($_REQUEST['format']))
    {
        require_once($sourcedir . '/Subs-Graphics.php');

        if (in_array('gd', get_loaded_extensions()) && !showCodeImage($_SESSION['visual_verification_code'])) {
            header('HTTP/1.1 400 Bad Request');
die();
}
        // Otherwise just show a pre-defined letter.
        elseif (isset($_REQUEST['letter']))
        {
            $_REQUEST['letter'] = (int) $_REQUEST['letter'];
            if ($_REQUEST['letter'] > 0 && $_REQUEST['letter'] <= strlen($_SESSION['visual_verification_code']) && !showLetterImage(strtolower($_SESSION['visual_verification_code']{$_REQUEST['letter'] - 1}))) {
                header('HTTP/1.1 400 Bad Request');
die();
}
        }
        // You must be up to no good.
        else {
            header('HTTP/1.1 400 Bad Request');
die();
}
    }
    elseif ($_REQUEST['format'] === '.wav')
    {
        require_once($sourcedir . '/Subs-Sound.php');

        if (!createWaveFile($_SESSION['visual_verification_code'])) {
            header('HTTP/1.1 400 Bad Request');
die();
}
    }

if($output_method = 'echo' && $context['user']['is_guest']) {
echo '
    <div>
        <form action="'. $scripturl. '?action=register2" method="post" style="margin: 0px 1px 1px 0; text-align:left;" name="creator" id="creator">
                <table class="ssi_table">
                    <tr>
                        <td>', $txt[98], ':</td>
                        <td><input type="text" name="user" size="10"  maxlength="30" /></td>
</tr>
<tr>
                        <td>', $txt[81], ':</td>
                        <td><input type="password" name="passwrd1" size="10" /></td>
</tr>
<tr>
                        <td>', $txt[82], ': </td>
<td><input type="password" name="passwrd2" size="10" /></td>
</tr>
<tr>
<td>', $txt[69], ':</td>
                        <td><input name="email" type="text" size="10" /><input name="regagree" type="hidden" value="checked" /></td>
                    </tr>';
    if ($context['visual_verification'])
    {
        echo '
                    <tr>
                        <td>
                            ', $txt['visual_verification_label'], ':
                        </td>
                            <td><input type="text" name="visual_verification_code" size="10" /></td>
</tr>
<tr>';
        if ($context['use_graphic_library'])
            echo '
                            <td colspan="2"><img src="', $context['verificiation_image_href'], '" alt="', $txt['visual_verification_description'], '" id="verificiation_image" /></td>';
        else
            echo '
                            <td colspan="2"><img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['visual_verification_description'], '" id="verificiation_image_1" />
                            <img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['visual_verification_description'], '" id="verificiation_image_2" />
                            <img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['visual_verification_description'], '" id="verificiation_image_3" />
                            <img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['visual_verification_description'], '" id="verificiation_image_4" />
                            <img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['visual_verification_description'], '" id="verificiation_image_5" /></td>';
        echo '
</tr>
<tr>
                            <td class="smalltext" colspan="2">
<a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['visual_verification_sound'], '</a>
</td>
</tr>';
    }
echo'
                    <tr>
                        <td colspan="2" align="center"><input type="submit" value="', $txt[97], '" /></td>
                    </tr>
                </table>
        </form>
    </div>';
}
else
return false;
}


this function should appear where you want it to appear by calling ssi_register()

so i tried using the custom php since i have been using simple portal and wanted this function to appear in my portal but problem is, it won't show.

perhaps i entered the wrong code?

this is the code i used



<?php
require("my forum path directory/SSI.php");
ssi_register();

?>
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: Eliana Tamerin on August 13, 2009, 10:48:35 AM
The php block automatically enters the <?php and ?> tags for you. Remove those and the block should work.
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: vanquizhers on August 13, 2009, 10:59:13 AM
Hi.... I can somebody help me?

I use SMF 1.1.10, SP 2.2.2, SMF Media Gallery 2.0b4, and Outline theme by DzinerStudio,

How to show the forum and the gallery button button?
Can somebody give me the link how to mod it, or give me the tutorial? Thank You..  :)
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: Eliana Tamerin on August 13, 2009, 11:01:37 AM
http://simpleportal.net/index.php?topic=148.0
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: vanquizhers on August 13, 2009, 11:04:21 AM
Oh...Thank You sis, how about the gallery button?
Thank you..  :D
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: psynx on August 13, 2009, 11:14:34 AM
Quote from: Eliana Tamerin on August 13, 2009, 10:48:35 AM
The php block automatically enters the <?php and ?> tags for you. Remove those and the block should work.

i tried but it is still not showing.
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: Eliana Tamerin on August 13, 2009, 11:29:38 AM
Quote from: vanquizhers on August 13, 2009, 11:04:21 AM
Oh...Thank You sis, how about the gallery button?
Thank you..  :D

Gallery's not SimplePortal. This is for SP support. Try the support topic for SMG. ;)

But you should be able to copy those instructions and modify it for the gallery button.
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: vanquizhers on August 13, 2009, 11:45:43 AM
I already try in this link :
http://simpleportal.net/index.php?topic=148.0

but I dont understand in section

Quoteif (in_array($modSettings['sp_portal_mode'], array(1, 3)))

Quote// Show the [help] button.
   echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
            </td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

and

Quote// Show the [forum] button.
   if (in_array($modSettings['sp_portal_mode'], array(1, 3)))
      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 . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">'.$txt['sp-forum'].'</a>
            </td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';


:)
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: vanquizhers on August 13, 2009, 11:47:39 AM
I try another tutorial at http://simpleportal.net/index.php?topic=2829.0

but it can't display correctly in my themes...  :)
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: ScottDB on August 13, 2009, 01:13:20 PM
Hi all, I've posted this question in the SP forum and have not gotten an answer. Was looking for something else and found this thread. Didn't know that there was one on SMF for SP.

The question I have is for add as an article. Is there a way to have the button just show up on one category instead of every category on every post?

Oh, and I am running SMF 2.0 rc1.2 with SP 2.2.2
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: MultiformeIngegno on August 13, 2009, 03:58:14 PM
Thanks for this release!!!! I'm going to test it!! :D
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: kingkingston on August 13, 2009, 04:59:34 PM
I went to install it and got 1 problem

1.     Execute Modification     ./index.php     Test failed


Can someone help me please :D
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: Eliana Tamerin on August 13, 2009, 05:13:28 PM
Quote from: kingkingston on August 13, 2009, 04:59:34 PM
I went to install it and got 1 problem

1.     Execute Modification     ./index.php     Test failed


Can someone help me please :D

What version of SMF are you running, and what version of SP are you trying to install?
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: kingkingston on August 13, 2009, 05:18:43 PM
Quote from: Eliana Tamerin on August 13, 2009, 05:13:28 PM
Quote from: kingkingston on August 13, 2009, 04:59:34 PM
I went to install it and got 1 problem

1.     Execute Modification     ./index.php     Test failed


Can someone help me please :D

What version of SMF are you running, and what version of SP are you trying to install?
i am running 1.1.10 and i am trying to install 2.2.2
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: psynx on August 15, 2009, 07:07:38 AM
hello,

i have this mod installed in my forum.

i need help on how to align exactly my left blocks with my forum board category?

because when i use integration and apply a left block that shows on my forum page, it wont align to my forum board category and also the next board category shows below my left block. take a look at the attach image
(http://a.imagehost.org/0333/block.png)
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: TheListener on August 15, 2009, 07:11:56 AM
Which version is the forum?
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: psynx on August 15, 2009, 07:13:35 AM
smf version 1.1.10

simple portal version is 2.2.2
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: TheListener on August 15, 2009, 07:17:19 AM
What is the link to the forum?
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: psynx on August 15, 2009, 07:20:11 AM
www.mirc-chatters.isgreat.org
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: TheListener on August 15, 2009, 07:25:28 AM
Sorry bud but I'm not sure what to suggest.

Have you been to www.simpleportal.net (http://www.simpleportal.net)
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: ScottDB on August 15, 2009, 10:25:28 AM
Can I please get a yes or no answer as to whether there is a setting for this or not that I am missing?

QuoteHi all, I've posted this question in the SP forum and have not gotten an answer. Was looking for something else and found this thread. Didn't know that there was one on SMF for SP.

The question I have is for add as an article. Is there a way to have the button just show up on one category instead of every category on every post?

Oh, and I am running SMF 2.0 rc1.2 with SP 2.2.2                      

If not I guess I'll hire a programmer to see if I can get this done.
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: Eliana Tamerin on August 15, 2009, 10:32:15 AM
No, Scott, that's not a current feature of SP.
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: psynx on August 15, 2009, 11:34:14 AM
Quote from: psynx on August 15, 2009, 07:07:38 AM
hello,

i have this mod installed in my forum.

i need help on how to align exactly my left blocks with my forum board category?

because when i use integration and apply a left block that shows on my forum page, it wont align to my forum board category and also the next board category shows below my left block. take a look at the attach image
(http://a.imagehost.org/0333/block.png)

anybody please?
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: flamechica on August 15, 2009, 03:48:12 PM
I'm running SMF 2.0 RC1.2 & SP 2.3 RC1

For some reason, things look messed up on some of the pages. For instance on the multiplayer mod page the games show overlapping my left side blocks. Some of the posts do it too. I have another forum on SMF 1.1.0 & running SP 2.2.2 and this does not happen. Any suggestions on how to fix this?
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: ScottDB on August 16, 2009, 08:03:21 PM
Thank you
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: Costa on August 16, 2009, 08:08:36 PM
@flamechica

The RC version is an RC version :P

However, please note that: There will be no install/upgrade/uninstall support provided for/from RC1 version. Although this is a stable version, we strongly advise against using this package on your live forums. This package is only for testing purposes.

Farewell
-Costa
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: rgecy on August 17, 2009, 09:11:55 AM
I am having a problem with displaying gallery images horizontally in the top blocks.  If I set the number of images to say 5 or more, it breaks the margin and displays them all on one line, instead of dropping to the next line.

Any help on this issue?

Thanks,

RGecy
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: Sordell Media on August 18, 2009, 12:34:22 AM
Installed SimplePortal recently, and loving it so far, installed without a hitch even with all my other mods.

One query I've got is if theres any way to easily setup a block for moderation? I'd like to make my moderators jobs a bit easier by adding a block to ideally show any pending group memberships awaiting approval, but am not really sure how to go about setting it up. If anyone could give me some tips that'd be greatly appreciated.
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: tfs on August 18, 2009, 12:43:15 AM
Quote from: Sordell Media on August 18, 2009, 12:34:22 AM
One query I've got is if theres any way to easily setup a block for moderation?

Take a look at Admin Dashboard. (http://simpleportal.net/index.php?topic=2206.0)
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: Sordell Media on August 18, 2009, 02:57:36 AM
Quote from: tfs on August 18, 2009, 12:43:15 AM
Quote from: Sordell Media on August 18, 2009, 12:34:22 AM
One query I've got is if theres any way to easily setup a block for moderation?

Take a look at Admin Dashboard. (http://simpleportal.net/index.php?topic=2206.0)

Thanks... doesnt look like it has post moderation or membergroup requests, but that at least gives me something to work from, and I guess I'd just need to work out the relevent db queries and modify the code some. Cheers ;D
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: arockets on August 18, 2009, 06:11:46 PM
Quote from: arockets on July 31, 2009, 09:25:45 AM
Hello again :)

I just started to use articles, and have added a image.  Could someone help me with moving that image to the top of the Article?  Right now its to the right inside the box.  Maybe an option for the image position in 2.3?  :)

Can anyone help me?
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: psynx on August 24, 2009, 10:42:51 AM
hello,

i made the portal as my homepage, however google bots still acknowledges the forum site as the index page instead of the portal home page?

how do i make the portal - home page as the index page?
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: TheListener on August 24, 2009, 10:47:52 AM
Quote from: psynx on August 24, 2009, 10:42:51 AM
hello,

i made the portal as my homepage, however google bots still acknowledges the forum site as the index page instead of the portal home page?

how do i make the portal - home page as the index page?

I may be wrong but as far as I know everything in the forum is viewed on the portal anyway so there would be no need for what you are requesting.

Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: psynx on August 24, 2009, 12:16:04 PM
i used custom html blocks for my entire homepage.

in fact i even use dreamweaver to design my homepage.

so everything in the homepage is very important and that is why i want it to make as my index page instead of the forum page.
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 24, 2009, 12:58:18 PM
Quote from: psynx on August 24, 2009, 12:16:04 PM
i used custom html blocks for my entire homepage.

in fact i even use dreamweaver to design my homepage.

so everything in the homepage is very important and that is why i want it to make as my index page instead of the forum page.

yep, nice an easy with a custom HTML block with no title or body will give u a nice HTML layout, and adding some custom blocks on the sides looks great, all thanks to simple portal :)

I started working on mine the other day, using simple portal has got me way ahead, if I would have had to use PHP I would still be nowhere lol
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: rgecy on August 24, 2009, 05:33:47 PM
I am getting an "Out of Memory Error Line 49" when using IE7 and IE8. It only occurs on my portal page http://forums.sideimagingsoft.com/portal.php .

I am running SMF 1.1.9.

QuoteI had a few members mention they got it.  Its a popup that omes up.  I only get it using IE7 running windows XP.  But I am also getting other errors on the page as well using IE8.


Quote
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Timestamp: Mon, 24 Aug 2009 13:12:35 UTC

Message: Object doesn't support this property or method
Line: 45
Char: 3
Code: 0
URI: http://forums.sideimagingsoft.com/portal.php

Message: Object doesn't support this property or method
Line: 99
Char: 3
Code: 0
URI: http://forums.sideimagingsoft.com/portal.php

Thanks,

Robert
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: LC on August 24, 2009, 07:00:00 PM
I don't know if this has been asked or not but my forum error log keeps showing this error for SP.

Undefined index: error_sp_no_post_found
File: /home/mine/site/forum/Sources/SPortal1-1.php
Line: 1411

Any reason why? :)
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: DarkSynopsis on August 26, 2009, 12:38:26 PM
I was wondering how I turn off "Large images in articles and board news can now be resized" feature that came with SimplePortal 2.2.2 :)

I had all my images in news items set for the right size and now they get shrunk in some cases and has been bugging me for awhile.

Using SMF 2.0 RC1.2

Thanks
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: ElTaino on August 27, 2009, 12:37:55 PM
I'm using Simple Portal and I love it, but, for some reason I can't control the # of words before the topic sends to ''Read More''. I have limited the words to 250 and other numbers but my changes in the ACP don't seem to take any effect.

Maximum Characters Before Article Cut-off 250

But nothing happens  :(, help please. What I'm doing wrong???
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: rgecy on August 27, 2009, 09:51:43 PM
Any help on the "OUT OF MEMORY ERROR"?  Anyone.....Anyone......Bueler.....Bueler?

Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: Shades. on August 28, 2009, 04:47:03 PM
How do I change the text "Today Events" to "Today's Events" in the Calendar Information block?
(See attachment.)
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: cave_lion on August 29, 2009, 11:47:37 PM
I am reading that simple portal "blocks" should appear on the forum as well as the "Home" page--but this is not the case for me?  I have tried adjusting the settings in different ways:  changing "front page" to "Integration" and checking/unchecking the "Display blocks in forum" and "Hide Blocks in Forum Areas."  But nothing changes--the blocks only show on the homepage and no-where else...

I am using Firefox--but tried it on IE as well.  Using Vista 64bit.  Just installed SMF--so it is nearly untouched--the only other mod I put in is the Aeva (Auto-Embed Video & Audio).

Thanks for any help you can provide...
Gordo
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: plusev on August 30, 2009, 09:25:52 AM
Quote from: cave_lion on August 29, 2009, 11:47:37 PM
I am reading that simple portal "blocks" should appear on the forum as well as the "Home" page--but this is not the case for me?  I have tried adjusting the settings in different ways:  changing "front page" to "Integration" and checking/unchecking the "Display blocks in forum" and "Hide Blocks in Forum Areas."  But nothing changes--the blocks only show on the homepage and no-where else...

I am using Firefox--but tried it on IE as well.  Using Vista 64bit.  Just installed SMF--so it is nearly untouched--the only other mod I put in is the Aeva (Auto-Embed Video & Audio).

Thanks for any help you can provide...
Gordo

Go to Configuration>General Settings and set to Front Page. Go to Configuration>Block Settings and check display in forum. Then go to each Blocks>Actions>Modify>Display Options and put them where ever you want for each block.
Title: Re: SimplePortal (2.2.2, 2.3 RC1)
Post by: cave_lion on August 30, 2009, 09:35:28 AM
That's got it--Thanks for the help!

Quote from: cave_lion on Yesterday at 11:47:37 PM

    I am reading that simple portal "blocks" should appear on the forum as well as the "Home" page--but this is not the case for me?  I have tried adjusting the settings in different ways:  changing "front page" to "Integration" and checking/unchecking the "Display blocks in forum" and "Hide Blocks in Forum Areas."  But nothing changes--the blocks only show on the homepage and no-where else...

    I am using Firefox--but tried it on IE as well.  Using Vista 64bit.  Just installed SMF--so it is nearly untouched--the only other mod I put in is the Aeva (Auto-Embed Video & Audio).

    Thanks for any help you can provide...
    Gordo


Go to Configuration>General Settings and set to Front Page. Go to Configuration>Block Settings and check display in forum. Then go to each Blocks>Actions>Modify>Display Options and put them where ever you want for each block.
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 02, 2009, 09:51:27 AM
SimplePortal 2.3 Released!

http://simpleportal.net/index.php?topic=3196.0
Title: Re: SimplePortal - diff between articles and posts?
Post by: cave_lion on September 02, 2009, 10:17:08 AM
OK--call me stupid--but I am not getting what the point of "articles" is.  I've searched the net looking for info about any advantage to using an article instead of a post and can't find anything...

Can someone please tell me--what the difference is (they look identical to me)?  And what the advantage to using an article over a post is?

Thanks!
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 02, 2009, 10:30:54 AM
Do we get any commission for reccomending SP to sm.org users?
Title: Re: SimplePortal - 2.3 Released!
Post by: Blinker on September 02, 2009, 10:34:09 AM
Nice work SP crew. You guys are doing a great job!
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 02, 2009, 10:36:32 AM
Quote from: cave_lion on September 02, 2009, 10:17:08 AM
OK--call me stupid--but I am not getting what the point of "articles" is.  I've searched the net looking for info about any advantage to using an article instead of a post and can't find anything...

Can someone please tell me--what the difference is (they look identical to me)?  And what the advantage to using an article over a post is?

Thanks!

Currently articles are just selected topics all over the forum, only the ones you select as articles. 2.4 version will have the ability to create articles like pages, not based on forum.

Quote from: TheListener on September 02, 2009, 10:30:54 AM
Do we get any commission for reccomending SP to sm.org users?

Commission?
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 02, 2009, 10:37:11 AM
cash in hand

;D
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 02, 2009, 10:38:40 AM
Well, you'll only have my "Thanks!", at least until someone starts paying me for developing SP. ;)
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 02, 2009, 10:41:46 AM

Warning: require_oncel/Sources/SPortal2.php) [function.require-once]: failed to open stream: No such file or directory in /home/visionar/public_html/index.php on line 67

Fatal error: require_once() [function.require]: Failed opening required /Sources/SPortal2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in //public_html/index.php on line 67
Title: Re: SimplePortal - 2.3 Released!
Post by: Marcus Forsberg on September 02, 2009, 10:42:48 AM
Great work everyone involved! :)
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 02, 2009, 10:46:23 AM
Quote from: TheListener on September 02, 2009, 10:41:46 AM

Warning: require_oncel/Sources/SPortal2.php) [function.require-once]: failed to open stream: No such file or directory in /home/visionar/public_html/index.php on line 67

Fatal error: require_once() [function.require]: Failed opening required /Sources/SPortal2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in //public_html/index.php on line 67

How did you update? I have updated sp.net myself in seconds without having any issues.
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 02, 2009, 10:47:38 AM
went to add the upgrade then uninstall the previous.
Title: Re: SimplePortal - 2.3 Released!
Post by: mirahalo on September 02, 2009, 10:54:58 AM

SimplePortal rules !!!!!! (http://simpleportal.net/index.php?topic=3196.0)

:D

Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 02, 2009, 10:59:34 AM
Quote from: TheListener on September 02, 2009, 10:47:38 AM
went to add the upgrade then uninstall the previous.

Well, you should have uninstalled the old version. Then installed the new version. Isn't that what you have done? Can you attach your index.php and Subs.php files here?
Title: Re: SimplePortal - 2.3 Released!
Post by: plusev on September 02, 2009, 10:59:41 AM
Quote from: TheListener on September 02, 2009, 10:47:38 AM
went to add the upgrade then uninstall the previous.

You have to uninstall the previous then install the new.
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 02, 2009, 11:06:44 AM
That's what I thought I had done.

Ohh the exitement

:)
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 02, 2009, 11:14:04 AM
I have no idea how you managed to do that, but you seem to have some serious issues. Firstly, attached file should bring your forum back online. When you upload that, check if 2.3 version appears installed or not.
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 02, 2009, 11:29:09 AM
The forum is now back.

Now have: Fatal error: Call to undefined function sp_languageselect() in /Sources/Admin.php on line 71

:-[
Title: Re: SimplePortal - 2.3 Released!
Post by: Costa on September 02, 2009, 11:47:24 AM
congrats for the new 2.3 version dudes!
Farewell
Title: Re: SimplePortal - 2.3 Released!
Post by: MultiformeIngegno on September 02, 2009, 12:10:07 PM
Quote from: TheListener on September 02, 2009, 11:29:09 AM
Now have: Fatal error: Call to undefined function sp_languageselect() in /Sources/Admin.php on line 71
I can see your site "properly" now! :)
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 02, 2009, 12:11:42 PM
One problem it lacks a portal.
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 02, 2009, 11:17:03 AM
Can you attach your Admin.php file too?
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 02, 2009, 04:22:45 PM
Will do bud.

The forum looks bare without the portal now.




Edit: Hope ya meant he one in Sources.

Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 02, 2009, 11:32:40 AM
You should be able to reach to admin area after replacing your file with the attached one.
Title: Re: SimplePortal - 2.3 Released!
Post by: lilone2k9 on September 02, 2009, 04:39:50 PM
I just wanted to commend the team here!!! GREAT ... no SUPERB job, maybe I'm late but I'm loving the newest portal!... LOVVVVING IT!!!!  ;D :D :D :D :D
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 02, 2009, 11:42:10 AM
Thanks for the kind words. I'm glad you liked it. :)
Title: Re: SimplePortal - 2.3 Released!
Post by: Tiribulus on September 02, 2009, 11:51:59 AM
I am quite certain that whatever issues I'm having now and ones I may have later are entirely due to the almost 70 mods I have installed with most of them requiring manual edits.

Only had a minute to test and I did have to do some manual surgery this time. So far I'm getting the following repeatedly:

http://gregnmary.gotdns.com:8080/index.php
8: Undefined index: downloads
File: /srv/www/htdocs/Sources/PortalBlocks.php
Line: 1668

http://gregnmary.gotdns.com:8080/index.php
8: Undefined index: posted_by
File: /srv/www/htdocs/Sources/PortalBlocks.php
Line: 1669


I'm already running with eval off I believe.

If one of you fine SP folks could gimme a hand when you get a chance I would surely be grateful.
Thanks.
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 02, 2009, 12:27:20 PM
The portals there  nothing is showing.

I had a fail on index.php yet when I go to do the manual edit nthe required text isn't there.
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 02, 2009, 12:39:28 PM
Quote from: Tiribulus on September 02, 2009, 11:51:59 AM
I am quite certain that whatever issues I'm having now and ones I may have later are entirely due to the almost 70 mods I have installed with most of them requiring manual edits.

Only had a minute to test and I did have to do some manual surgery this time. So far I'm getting the following repeatedly:

http://gregnmary.gotdns.com:8080/index.php
8: Undefined index: downloads
File: /srv/www/htdocs/Sources/PortalBlocks.php
Line: 1668

http://gregnmary.gotdns.com:8080/index.php
8: Undefined index: posted_by
File: /srv/www/htdocs/Sources/PortalBlocks.php
Line: 1669


I'm already running with eval off I believe.

If one of you fine SP folks could gimme a hand when you get a chance I would surely be grateful.
Thanks.

It's our fault.

Sources/PortalBlocks.php

Code (Find) Select
' . $txt['downloads'] . ': ' . $item['file']['downloads'] . '<br />' : ''), ($showPoster ? '
' . $txt['posted_by'] . ': ' . $item['member']['link'] : ''), '


Code (Replace) Select
' . $txt['sp-downloadsCount'] . ': ' . $item['file']['downloads'] . '<br />' : ''), ($showPoster ? '
' . $txt['sp-downloadsPoster'] . ': ' . $item['member']['link'] : ''), '


I would be happy if you could file a bug report at sp.net.

Quote from: TheListener on September 02, 2009, 12:27:20 PM
The portals there  nothing is showing.

I had a fail on index.php yet when I go to do the manual edit nthe required text isn't there.

Well, any chance you could provide me a temporary FTP and forum admin access? That would make things a lot easier for me and for you.
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 02, 2009, 05:42:44 PM
Am about to pm ya Sinan.
Title: Re: SimplePortal - 2.3 Released!
Post by: LC on September 02, 2009, 01:11:55 PM
The resize image option doesn't resize pictures posted on the forum threads for the portal. The portal keeps them full size and they overlap like so. With the previous version, this wasn't a problem. I'm not getting any forum errors however.

(http://i32.tinypic.com/30ws0wj.gif)
Title: Re: SimplePortal - 2.3 Released!
Post by: Tiribulus on September 02, 2009, 01:52:32 PM
Quote from: [SiNaN] on September 02, 2009, 12:39:28 PM

It's our fault.

Sources/PortalBlocks.php

Code (Find) Select
' . $txt['downloads'] . ': ' . $item['file']['downloads'] . '<br />' : ''), ($showPoster ? '
' . $txt['posted_by'] . ': ' . $item['member']['link'] : ''), '


Code (Replace) Select
' . $txt['sp-downloadsCount'] . ': ' . $item['file']['downloads'] . '<br />' : ''), ($showPoster ? '
' . $txt['sp-downloadsPoster'] . ': ' . $item['member']['link'] : ''), '


I would be happy if you could file a bug report at sp.net.


You are on the job boss as usual. Good work. Thanks and I will.

EDIT: you're a wizard my friend...   fixed. Good job again.
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 02, 2009, 08:47:23 PM
Managed to sort the portal out.

The file was missing a lot of text.

How do I make the default text white instead of black?

The additional buttons ie bbc for font etc don't all show up.
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 02, 2009, 11:20:07 PM
Quote from: LadyChaos on September 02, 2009, 01:11:55 PM
The resize image option doesn't resize pictures posted on the forum threads for the portal. The portal keeps them full size and they overlap like so. With the previous version, this wasn't a problem. I'm not getting any forum errors however.

See if you have it enabled in Admin > SimplePortal > General Settings > Resizes images on portal

Quote from: Tiribulus on September 02, 2009, 01:52:32 PM
You are on the job boss as usual. Good work. Thanks and I will.

EDIT: you're a wizard my friend...   fixed. Good job again.

You're welcome.

Quote from: TheListener on September 02, 2009, 08:47:23 PM
Managed to sort the portal out.

The file was missing a lot of text.

How do I make the default text white instead of black?

The additional buttons ie bbc for font etc don't all show up.

I'll check your forum now.
Title: Re: SimplePortal - 2.3 Released!
Post by: JBlaze on September 02, 2009, 11:22:25 PM
Congrats to [SiNaN] and the rest of the SP team for yet another awesome release!

I am using this on both my personal website and my projects website. Keep it up.
Title: Re: SimplePortal - 2.3 Released!
Post by: LC on September 03, 2009, 04:30:08 AM
Quote from: [SiNaN] on September 02, 2009, 11:20:07 PM
Quote from: LadyChaos on September 02, 2009, 01:11:55 PM
The resize image option doesn't resize pictures posted on the forum threads for the portal. The portal keeps them full size and they overlap like so. With the previous version, this wasn't a problem. I'm not getting any forum errors however.

See if you have it enabled in Admin > SimplePortal > General Settings > Resizes images on portal

Quote from: LadyChaos on September 02, 2009, 01:11:55 PM
The resize image option doesn't resize pictures.
;) So what else could it be?
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 03, 2009, 05:29:07 AM
Quote from: JBlaze on September 02, 2009, 11:22:25 PM
Congrats to [SiNaN] and the rest of the SP team for yet another awesome release!

I am using this on both my personal website and my projects website. Keep it up.

Thanks JBlaze.

Quote from: LadyChaos on September 03, 2009, 04:30:08 AM
Quote from: [SiNaN] on September 02, 2009, 11:20:07 PM
Quote from: LadyChaos on September 02, 2009, 01:11:55 PM
The resize image option doesn't resize pictures posted on the forum threads for the portal. The portal keeps them full size and they overlap like so. With the previous version, this wasn't a problem. I'm not getting any forum errors however.

See if you have it enabled in Admin > SimplePortal > General Settings > Resizes images on portal

Quote from: LadyChaos on September 02, 2009, 01:11:55 PM
The resize image option doesn't resize pictures.
;) So what else could it be?


Well, then it's a bug.

Themes/default/portal.js

Code (Find) Select
"bbc_img sp_article"

Code (Replace) Select
"sp_article"

Only affects SMF 1.1 versions.
Title: Re: SimplePortal - 2.3 Released!
Post by: Pinball Nation on September 03, 2009, 06:46:33 AM
Hello everyone,I would like to say i have SP 2.2 installed an have enjoyed it alot with no problems.I have not installed 2.3 yet.My questions are i have Hackspark shout box installed.Can i leave this installed an make it the shoutbox on the portal when i install 2.3 with no problems. Its the only shoutbox i can install without errors.I was also going to asked.I have a couple of RSS feeds on the 2.2 portal now.If i install 2.3 will they be lost?Im using smf 1.1.10.
Title: Re: SimplePortal - 2.3 Released!
Post by: MultiformeIngegno on September 03, 2009, 06:53:49 AM
Quote from: Pinball Nation on September 03, 2009, 06:46:33 AM
Hello everyone,I would like to say i have SP 2.2 installed an have enjoyed it alot with no problems.I have not installed 2.3 yet.My questions are i have Hackspark shout box installed.Can i leave this installed an make it the shoutbox on the portal when i install 2.3 with no problems. Its the only shoutbox i can install without errors.I was also going to asked.I have a couple of RSS feeds on the 2.2 portal now.If i install 2.3 will they be lost?Im using smf 1.1.10.
Mmmh... Why do you want to leave the MOD installed?
In this release the team has just added shoutboxes in SP!! So you'll have a double feature....
Title: Re: SimplePortal - 2.3 Released!
Post by: bbmtalk on September 03, 2009, 09:41:51 AM
Congrats! Thanks for all the works.
Title: Re: SimplePortal - 2.3 Released!
Post by: LC on September 03, 2009, 11:51:43 AM
Quote from: [SiNaN] on September 03, 2009, 05:29:07 AM
Quote from: JBlaze on September 02, 2009, 11:22:25 PM
Congrats to [SiNaN] and the rest of the SP team for yet another awesome release!

I am using this on both my personal website and my projects website. Keep it up.

Thanks JBlaze.

Quote from: LadyChaos on September 03, 2009, 04:30:08 AM
Quote from: [SiNaN] on September 02, 2009, 11:20:07 PM
Quote from: LadyChaos on September 02, 2009, 01:11:55 PM
The resize image option doesn't resize pictures posted on the forum threads for the portal. The portal keeps them full size and they overlap like so. With the previous version, this wasn't a problem. I'm not getting any forum errors however.

See if you have it enabled in Admin > SimplePortal > General Settings > Resizes images on portal

Quote from: LadyChaos on September 02, 2009, 01:11:55 PM
The resize image option doesn't resize pictures.
;) So what else could it be?


Well, then it's a bug.

Themes/default/portal.js

Code (Find) Select
"bbc_img sp_article"

Code (Replace) Select
"sp_article"

Only affects SMF 1.1 versions.
Seems like that did the trick. Thanks a lot. :)
Title: Re: SimplePortal - 2.3 Released!
Post by: sepulchre on September 03, 2009, 02:34:19 PM
I've just begun the upgrade process, uninstalling v2.2.2 produced the following errors -

*     1.     Execute Modification     ./index.php     Test failed
      1.    Replace    ./index.php    Test successful
      2.    Replace    ./index.php    Test successful
      3.    Replace    ./index.php    Test successful
      4.    Replace    ./index.php    Test failed
      5.    Replace    ./index.php    Test successful
*    2.    Execute Modification    ./SSI.php    Test successful
      1.    Replace    ./SSI.php    Test successful
      2.    Replace    ./SSI.php    Test successful
*    3.    Execute Modification    ./Sources/Admin.php    Test failed
      1.    Replace    ./Sources/Admin.php    Test successful
      2.    Replace    ./Sources/Admin.php    Test failed

I've not gone any further and still have 2.2.2 installed. Is it safe to continue the uninstall or should I figure out the errors?
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 03, 2009, 03:11:46 PM
Hi!

I used to run Simple portal 2.2.2 and really liked it.
Then I upgraded to the 2.3 RC1 and the portal was partly funny looking.

Then now I updated to 2.3 and the problem started!
First the forum was totally gone and then I had to replace the index.php file and eventually also the Sources folder.

Now the forum is running but I cannot get the portal to work and also all other stuff I had working like a gallery is gone from the menu.

Can some one help out?

Thanks in advance
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 03, 2009, 05:09:07 PM
Can we see a link to your forum please.

Which version of smf are you using?
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 03, 2009, 05:58:47 PM
I am running SMF 2.0 RC1

this is the link
http://www.aggma.com/forum/ (http://www.aggma.com/forum/)
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 03, 2009, 06:02:00 PM
Were there any errors on install?

Title: Re: SimplePortal - 2.3 Released!
Post by: lepard on September 03, 2009, 06:17:54 PM
I have the latest version of the forum and the latest version of simple portal and some of my members are saying they can't see the portal. Any suggestions??

www.pulaskicountyweb.com/smf
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 03, 2009, 06:24:11 PM
Quote from: lepard on September 03, 2009, 06:17:54 PM
I have the latest version of the forum and the latest version of simple portal and some of my members are saying they can't see the portal. Any suggestions??

www.pulaskicountyweb.com/smf


Were there any errors on install?

Title: Re: SimplePortal - 2.3 Released!
Post by: lepard on September 03, 2009, 07:28:30 PM
None,  but I was going to uninstall it to go back to the old version and it had errors so I didn't uninstall it yet.

Quote from: TheListener on September 03, 2009, 06:24:11 PM
Quote from: lepard on September 03, 2009, 06:17:54 PM
I have the latest version of the forum and the latest version of simple portal and some of my members are saying they can't see the portal. Any suggestions??

www.pulaskicountyweb.com/smf


Were there any errors on install?


Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 03, 2009, 07:31:39 PM
Would you be willing to let me have a temp admin account?

If so please pm me.
Title: Re: SimplePortal - 2.3 Released!
Post by: TwitchisMental on September 03, 2009, 08:36:38 PM
Okay I got the mod to install correctly,but for some reason it isn't showing the simpleportal tab in the admincp.

I would like to know how to fix this :( .

Edit: nvm I just had to re add the langauge file and reinstall a few mods.
Title: Re: SimplePortal - 2.3 Released!
Post by: iosys on September 03, 2009, 11:30:47 PM
Thanks!  Love the new shoutbox
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 04, 2009, 12:53:44 AM
Quote from: TheListener on September 03, 2009, 06:02:00 PM
Were there any errors on install?

At first there were.
Then after I replaced the index.php and the Sources folder there were no errors when installed.

Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 04, 2009, 01:02:51 AM
That's a good start.
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 04, 2009, 01:19:33 AM
Perhaps.

But replacing the Sources folder created a whole lot of other problems.
Like that I cannot access my gallery..
And that the portal do not show..
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 04, 2009, 10:30:25 AM
Quote from: buckshot on September 04, 2009, 01:19:33 AM
Perhaps.

But replacing the Sources folder created a whole lot of other problems.
Like that I cannot access my gallery..
And that the portal do not show..


can we see a link please.
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 04, 2009, 11:08:59 AM
can we see a link to your forum please.
Title: Re: SimplePortal - 2.3 Released!
Post by: heinandar on September 04, 2009, 11:24:57 AM
Why not!
http://mmcybermedia.com
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 04, 2009, 11:33:52 AM
Can I have a temp admin account please.

can only see the registration section.
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 04, 2009, 11:56:12 AM
OK.
link to my site. www.aggma.com/forum

TheListener, I can give you the admin account if it would help.
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 04, 2009, 11:58:13 AM
Please do so Buckshot.
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 04, 2009, 01:56:35 PM
TheListener

You have PM
Title: Re: SimplePortal - 2.3 Released!
Post by: Pinball Nation on September 04, 2009, 03:26:57 PM
Hello,I want to add a script code in one of the SP blocks.Do i put this in the PHP block.Im going to upload html file to my server to a folder i created.The reason i ask is im not sure where i would place this script code.So i thought i would let SP do it for me since i want it on the portal page anyways.Im trying to add a radio player to my forum.An i can't find any mods to do this.Im using smf 1.1.10.Im still trying to learn how to do all this stuff.
Title: Re: SimplePortal - 2.3 Released!
Post by: LC on September 04, 2009, 03:43:42 PM
Quote from: Pinball Nation on September 04, 2009, 03:26:57 PM
Hello,I want to add a script code in one of the SP blocks.Do i put this in the PHP block.Im going to upload html file to my server to a folder i created.The reason i ask is im not sure where i would place this script code.So i thought i would let SP do it for me since i want it on the portal page anyways.Im trying to add a radio player to my forum.An i can't find any mods to do this.Im using smf 1.1.10.Im still trying to learn how to do all this stuff.
Go to Admin panel->add block then select custom html (near the bottom) and put the html in there. Then where you want it to show up, etc. Or if it's a php or bbc script, the same way.
Title: Re: SimplePortal (2.2.2 Released!)
Post by: digit on September 04, 2009, 03:48:50 PM
Quote from: [SiNaN] on June 30, 2009, 02:54:04 AM
digit:

If you replace the attached file with the one in your Sources directory in 2.2.2 version, it will not load anything in forum other than SP admin area.

Before I uninstall (manually - so does that mean drop all sp tables?) will this version effect my existing forum (load js and css stuff) when running in standalone mode? (or will I need to tweak SPortal1-1.php again?)

Thanks!
Title: Re: SimplePortal - 2.3 Released!
Post by: Pinball Nation on September 04, 2009, 04:03:55 PM
Thanks for the help LadyChaos.There are two codes i know one is html but not sure about the other.I will post an paste this may work better as im a newbie :)
Title: Re: SimplePortal - 2.3 Released!
Post by: Pinball Nation on September 04, 2009, 04:15:15 PM
Ok heres a copy of the post an code.
i have an internet radio player on my site and it works great. i create an html page for each station and put this into the html page. change all the red values to what you want. with this being an html page, you can add all the custom changes you want, like background pictures, ad banners, links to other sites, etc etc.

<HTML>
<BODY>
<TITLE>radio station title</TITLE>
<EMBED SRC="url of radio stream"  HEIGHT="42" WIDTH="100%" AUTOSTART="TRUE">
</BODY>

upload that html file to a folder on your server, i have a folder called radio_stations. then add this javascript to your home page again changing the values in red. i use tiny portal and just add it to a scriptbox. this script creates a dropdown list where people just choose the station then hit the go button. you duplicate the option value line for each station you have, and create a new html page for each a station as well.

<script>
<!--

var windowDoPop

function go(whichURL) {
    windowDoPop=window.open(whichURL[whichURL.selectedIndex].value,'doPop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=75');
    windowDoPop.focus();
}
//-->
</script>

<FORM>
<SELECT NAME="SelectURL" size="1">
<option value="url to html page">type name of station here</option>
</SELECT>
<INPUT TYPE="button" VALUE="GO!" onClick="go(this.form.SelectURL.options)">
</FORM>
Title: Re: SimplePortal - 2.3 Released!
Post by: LC on September 04, 2009, 09:49:24 PM
Quote from: Pinball Nation on September 04, 2009, 04:15:15 PM
Ok heres a copy of the post an code.
i have an internet radio player on my site and it works great. i create an html page for each station and put this into the html page. change all the red values to what you want. with this being an html page, you can add all the custom changes you want, like background pictures, ad banners, links to other sites, etc etc.

<HTML>
<BODY>
<TITLE>radio station title</TITLE>
<EMBED SRC="url of radio stream"  HEIGHT="42" WIDTH="100%" AUTOSTART="TRUE">
</BODY>

upload that html file to a folder on your server, i have a folder called radio_stations. then add this javascript to your home page again changing the values in red. i use tiny portal and just add it to a scriptbox. this script creates a dropdown list where people just choose the station then hit the go button. you duplicate the option value line for each station you have, and create a new html page for each a station as well.

<script>
<!--

var windowDoPop

function go(whichURL) {
    windowDoPop=window.open(whichURL[whichURL.selectedIndex].value,'doPop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=75');
    windowDoPop.focus();
}
//-->
</script>

<FORM>
<SELECT NAME="SelectURL" size="1">
<option value="url to html page">type name of station here</option>
</SELECT>
<INPUT TYPE="button" VALUE="GO!" onClick="go(this.form.SelectURL.options)">
</FORM>

That's HTML as well, where it starts as <script>. PinBall. :) I tested it out, it seems to be fine.
Title: Re: SimplePortal - 2.3 Released!
Post by: Pinball Nation on September 04, 2009, 10:51:11 PM
Thanks LadyChaos,So im good as long as i add the script part of the code to html block.But im correct on adding the first code to a folder on my server since i will be adding a file for each station.
Title: Re: SimplePortal - 2.3 Released!
Post by: Pinball Nation on September 05, 2009, 06:31:26 PM
Thanks for the help LadyChaos.I have a great radio player now. Thanks to LadyChaos an the great SP mod.
Title: Re: SimplePortal - 2.3 Released!
Post by: 4b11l on September 07, 2009, 02:47:56 AM
Excellent mod! Using 2.3 right now since upgrading from 2.0.

Quick question, is there a way to decrease the gap between the blocks?
Title: Re: SimplePortal - 2.3 Released!
Post by: kai920 on September 07, 2009, 05:11:18 AM
Quote from: 4b11l on September 07, 2009, 02:47:56 AM
Quick question, is there a way to decrease the gap between the blocks?

there's a br tag between each block. I'd add this to your CSS:

#sp_left br { display: none; }
#sp_left div br { display: block; }

(use #sp_right for the right column)
Title: Re: SimplePortal - 2.3 Released!
Post by: Kingus on September 07, 2009, 02:58:39 PM
Help When I tried to login to my smf 2.o rc1.2  forum today I was getting an error saying that  I cant login and i should check my cookie settings. I got this error on IE and opera, so i logged in using a proxy site, THen I went to package manager to uninstall simple portal 2.2.1 as I tried to do this it gave me two errors, one of them in index.php and the other in sources, but i went on to uninstall after which my forum (http://www.naijaloft.com) crashed. Now when i try to open any page I get this error

Warning: require_once(/home/naijalof/public_html/Sources/SPortal2.php) [function.require-once]: failed to open stream: No such file or directory in /home/naijalof/public_html/index.php on line 66

Fatal error: require_once() [function.require]: Failed opening required '/home/naijalof/public_html/Sources/SPortal2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/naijalof/public_html/index.php on line 66 PLease can someone help me with a solution
Title: Re: SimplePortal - 2.3 Released!
Post by: plusev on September 07, 2009, 04:41:58 PM
Quote from: kai920 on September 07, 2009, 05:11:18 AM
Quote from: 4b11l on September 07, 2009, 02:47:56 AM
Quick question, is there a way to decrease the gap between the blocks?

there's a br tag between each block. I'd add this to your CSS:

#sp_left br { display: none; }
#sp_left div br { display: block; }

(use #sp_right for the right column)

Exactly what I was looking for. Which css would that be for a custom theme?

Thx
Title: Re: SimplePortal - 2.3 Released!
Post by: 4b11l on September 07, 2009, 10:12:54 PM
Quote from: kai920 on September 07, 2009, 05:11:18 AM
Quote from: 4b11l on September 07, 2009, 02:47:56 AM
Quick question, is there a way to decrease the gap between the blocks?

there's a br tag between each block. I'd add this to your CSS:

#sp_left br { display: none; }
#sp_left div br { display: block; }

(use #sp_right for the right column)

Thanks!

Well, I guess I can't have the best of both worlds. I didn't want the space to disappear completely, rather; just decrease the space a bit. About the same as the vertical spacing would be great! I guess this isn't possible since it's separated with a br tag?
Title: Re: SimplePortal - 2.3 Released!
Post by: kai920 on September 08, 2009, 12:55:34 AM
Quote from: Kingus on September 07, 2009, 02:58:39 PM
Help When I tried to login to my smf 2.o rc1.2  forum today I was getting an error saying that  I cant login and i should check my cookie settings. I got this error on IE and opera, so i logged in using a proxy site, THen I went to package manager to uninstall simple portal 2.2.1 as I tried to do this it gave me two errors, one of them in index.php and the other in sources, but i went on to uninstall after which my forum (http://www.naijaloft.com) crashed. Now when i try to open any page I get this error

Warning: require_once(/home/naijalof/public_html/Sources/SPortal2.php) [function.require-once]: failed to open stream: No such file or directory in /home/naijalof/public_html/index.php on line 66

Fatal error: require_once() [function.require]: Failed opening required '/home/naijalof/public_html/Sources/SPortal2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/naijalof/public_html/index.php on line 66 PLease can someone help me with a solution

Do you have a backup of your index.php? There might be an automatic backup named index.php~ , see if it exists.

Quote from: plusev on September 07, 2009, 04:41:58 PM
Exactly what I was looking for. Which css would that be for a custom theme?

What I listed is SimplePortal's CSS so it should work in your custom theme. Try it and see if it makes a difference.

Quote from: 4b11l on September 07, 2009, 10:12:54 PM
Well, I guess I can't have the best of both worlds. I didn't want the space to disappear completely, rather; just decrease the space a bit. About the same as the vertical spacing would be great! I guess this isn't possible since it's separated with a br tag?

Sure you can... after you've hidden the br tag, you can do something like


div.sp_block {margin:5px 0;}

This will add 5px of margin above and below every block, including the top and bottom blocks.
Title: Re: SimplePortal - 2.3 Released!
Post by: 4b11l on September 08, 2009, 02:07:26 AM
Thanks a lot kai920!

Well, I got it to work, but it seems it messes with the admin formatting on the left.
It seems to of taken off the BR so all the settings are as a continuous sentence now..

So instead of

Administration Center
Support and Credits
News and newsletters
Packages

It's showing them all together without the next settings starting at the new line. It looks like it uses sp_center so when I remove the spacing for my middle blocks, it does so to my admin blocks too. >:(
Title: Re: SimplePortal - 2.3 Released!
Post by: Afro on September 08, 2009, 07:03:02 AM
error report

Fatal error: Cannot redeclare sportal_init() (previously declared in /home/afrowall/public_html/Sources/Subs-Portal.php:89) in /home/afrowall/public_html/Sources/SPortal1-1.php on line 307

i forgot to uninstall the previous version before upgrading to the 2.3

what do i do?
Title: Re: SimplePortal - 2.3 Released!
Post by: Foreclosurepedia on September 08, 2009, 07:46:44 PM
i searched the search area and could not find this answer so i am sorry if it is somewhere i have missed.  TheListener refered me to your main site and I tried to post there but never saw it appear.

first, smf 1.1.10, intifada theme, simpleportal 2.2.3.  http://www.ibrr.org/forum/ (http://www.ibrr.org/forum/)everything works great.  my question is this:  when i want to enter my shout into the shoutbox i have to click the 'shout' key.  is there some way to simple hit the 'enter' key?

thanx for all ya'll do and hey, this mod (especially the upgrade) has made my life GREAT and my members all said to tell ya'll THANX for adding the shoutbox!

a footnote:  thus far, we haven't experienced any major drag on the server side of things.  i wrote my provider as we're all hobos and don't really have much money to pay for bandwidth and no problems to date.  it stores 15 shouts and refreshes every 10 seconds.  there's about 4 of us that chat.
Title: Re: SimplePortal - 2.3 Released!
Post by: MATTEK on September 08, 2009, 09:12:02 PM
I'm runing 2.2.2


Should I use this one?
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 08, 2009, 09:14:49 PM
Please upgrade to the latest version.

There are many new features which have been added including a shoutbox.
Title: Re: SimplePortal - 2.3 Released!
Post by: Eliana Tamerin on September 08, 2009, 10:07:03 PM
The update is not required. However, it includes many bug fixes that will not be addressed in further 2.2.x versions (as there will be none).
Title: Re: SimplePortal - 2.3 Released!
Post by: Foreclosurepedia on September 08, 2009, 10:45:14 PM
i'm sorry, my version of simpleportal is 2.3, not 2.2.3
Title: Re: SimplePortal - 2.3 Released!
Post by: asma on September 10, 2009, 08:16:54 AM
Help Me... Database error how can i fix this..? :-[  SMF 1.1.10  simple portal 2.1.1

Unknown column 'content' in 'field list'
File: /home/jutatcom/public_html/Sources/Subs-SPortal1-1.php
Line: 44

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.10, while your database is at version 1.1.5. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 10, 2009, 08:21:49 AM
The portal you have is out of date.

The current version is 2.3 however before you do upgrade please attach the file so someone can have a look for you.

Are there any other errors in the error log?
Title: Re: SimplePortal - 2.3 Released!
Post by: asma on September 10, 2009, 08:27:42 AM
Quote from: TheListener on September 10, 2009, 08:21:49 AM
The portal you have is out of date.

The current version is 2.3 however before you do upgrade please attach the file so someone can have a look for you.

Are there any other errors in the error log?


Thanks for help, what file i need to attach here..?  i cannot see the error log because i can not log in to admin panel... 
Title: Re: SimplePortal - 2.3 Released!
Post by: c23_Mike on September 10, 2009, 10:25:12 AM
Hi there !

Can it be that the www.simpleportal.net website is down again? Cannot reach the site for the whole day?
Title: Re: SimplePortal - 2.3 Released!
Post by: Angelina Belle on September 10, 2009, 10:37:27 AM
May be they are having problems with their name server.
Title: Re: SimplePortal - 2.3 Released!
Post by: Eliana Tamerin on September 10, 2009, 02:54:49 PM
Should be back up now. Sorry about that, guys.
Title: Re: SimplePortal - 2.3 Released!
Post by: 4b11l on September 10, 2009, 03:20:14 PM
Is it possible to put the shoutbox on a seperate page?
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 10, 2009, 05:04:28 PM
Quote from: 4b11l on September 10, 2009, 03:20:14 PM
Is it possible to put the shoutbox on a seperate page?
What do you mean by seperate page?

If you mean so it appears on other pages of the forum then yes.
Title: Re: SimplePortal - 2.3 Released!
Post by: 4b11l on September 10, 2009, 09:25:34 PM
Quote from: TheListener on September 10, 2009, 05:04:28 PM
Quote from: 4b11l on September 10, 2009, 03:20:14 PM
Is it possible to put the shoutbox on a seperate page?
What do you mean by seperate page?

If you mean so it appears on other pages of the forum then yes.

Yes, I have the custom action mod installed. I would like to put it on a seperate page. How can I go about doing so?
Title: Re: SimplePortal - 2.3 Released!
Post by: Nathaniel on September 11, 2009, 09:47:42 PM
Sorry if I miss anyone with this post, you may want to post again if I do. ;)

To get faster support, and support for customization issues, please use our dedicated support site:
http://simpleportal.net

@sepulchre,
I believe that you are getting help over at SP.net, correct me if I am wrong.

@buckshot,
Do you have a backup from before you tried to install SimplePortal 2.3? If so, then upload it. You should not ignore errors when installing mods! If you can attach the files where edits failed then I can help you fix them.

Quote from: lepard on September 03, 2009, 06:17:54 PM
I have the latest version of the forum and the latest version of simple portal and some of my members are saying they can't see the portal. Any suggestions??

www.pulaskicountyweb.com/smf


I can see your portal just fine. Have you check over all your permisisons?

Quote from: Akpaka on September 08, 2009, 07:03:02 AM
error report

Fatal error: Cannot redeclare sportal_init() (previously declared in /home/afrowall/public_html/Sources/Subs-Portal.php:89) in /home/afrowall/public_html/Sources/SPortal1-1.php on line 307

i forgot to uninstall the previous version before upgrading to the 2.3

what do i do?

You will have to manually uninstall 2.3, then uninstall 2.2.2. See the 'Manual Install Instructions for SMF' function on the mod site, and follow them in reverse.

Quote from: ibrrorg on September 08, 2009, 07:46:44 PM
i searched the search area and could not find this answer so i am sorry if it is somewhere i have missed.  TheListener refered me to your main site and I tried to post there but never saw it appear.

first, smf 1.1.10, intifada theme, simpleportal 2.2.3.  http://www.ibrr.org/forum/ (http://www.ibrr.org/forum/)everything works great.  my question is this:  when i want to enter my shout into the shoutbox i have to click the 'shout' key.  is there some way to simple hit the 'enter' key?

thanx for all ya'll do and hey, this mod (especially the upgrade) has made my life GREAT and my members all said to tell ya'll THANX for adding the shoutbox!

a footnote:  thus far, we haven't experienced any major drag on the server side of things.  i wrote my provider as we're all hobos and don't really have much money to pay for bandwidth and no problems to date.  it stores 15 shouts and refreshes every 10 seconds.  there's about 4 of us that chat.

Its probably your theme or browser, the 'enter' button should work fine for the shoutbox.

@MATTEK,
You don't have to update to SP 2.3, but don't expect much support for bugs that you find in the older versio. ;)

@asma,
Uninstall your current version of SimplePortal and install the latest version - 2.3. Unless that is fatal error, then you can ignore it for now. Its likely been fixed since that old version of SP.

@4b11l,
Use the advanced display options for your shoutbox block, more specifically you want to add '~action|actioname' to the field within those options. (replace 'actionname' with your actions name as used in the url)
Title: Re: SimplePortal - 2.3 Released!
Post by: Foreclosurepedia on September 11, 2009, 10:53:00 PM
I reposted my question to your site.

Title: Re: SimplePortal - 2.3 Released!
Post by: plusev on September 12, 2009, 12:51:06 AM
Quote from: plusev on September 07, 2009, 04:41:58 PM
Exactly what I was looking for. Which css would that be for a custom theme?

What I listed is SimplePortal's CSS so it should work in your custom theme. Try it and see if it makes a difference.

Where would I pasted the code in the css? Anywhere?

Thx
Title: Re: SimplePortal - 2.3 Released!
Post by: 4b11l on September 12, 2009, 02:34:42 AM
@Nathaniel, thanks!

That worked excellently. I didn't even realize the advanced options until you told me about it.
Title: Re: SimplePortal - 2.3 Released!
Post by: TwitchisMental on September 12, 2009, 03:24:11 PM
I have a simple problem right now, the theme i am using - mystic blue, has all text centered on all categories names and such.

However it seems I can't get a custom block I made ti have centered text.

How would I go about doing this?
Title: Re: SimplePortal - 2.3 Released!
Post by: Nathaniel on September 12, 2009, 07:28:18 PM
Quote from: plusev on September 12, 2009, 12:51:06 AM
Quote from: plusev on September 07, 2009, 04:41:58 PM
Exactly what I was looking for. Which css would that be for a custom theme?

What I listed is SimplePortal's CSS so it should work in your custom theme. Try it and see if it makes a difference.

Where would I pasted the code in the css? Anywhere?

Thx

Add it to the 'portal.css' file in your default theme, and then you shouldn't have to add it to any other files (the custom themes will load that css file).

Quote from: NBK*Twitch on September 12, 2009, 03:24:11 PM
I have a simple problem right now, the theme i am using - mystic blue, has all text centered on all categories names and such.

However it seems I can't get a custom block I made ti have centered text.

How would I go about doing this?

Try adding 'text-align: center;' to the 'Custom Body Style' field for that block.
Title: Re: SimplePortal - 2.3 Released!
Post by: TwitchisMental on September 12, 2009, 08:35:06 PM
Quote from: Nathaniel on September 12, 2009, 07:28:18 PM
Quote from: plusev on September 12, 2009, 12:51:06 AM
Quote from: plusev on September 07, 2009, 04:41:58 PM
Exactly what I was looking for. Which css would that be for a custom theme?

What I listed is SimplePortal's CSS so it should work in your custom theme. Try it and see if it makes a difference.

Where would I pasted the code in the css? Anywhere?

Thx

Add it to the 'portal.css' file in your default theme, and then you shouldn't have to add it to any other files (the custom themes will load that css file).

Quote from: NBK*Twitch on September 12, 2009, 03:24:11 PM
I have a simple problem right now, the theme i am using - mystic blue, has all text centered on all categories names and such.

However it seems I can't get a custom block I made ti have centered text.

How would I go about doing this?

Try adding 'text-align: center;' to the 'Custom Body Style' field for that block.
That didn't work :[.
Title: Re: SimplePortal - 2.3 Released!
Post by: Kimmie on September 12, 2009, 08:37:05 PM
From a previous TinyPortal user, who was sad because I had to lose it when I upgraded to 2.0, I only have one thing to say...


BRAVO!!!! You all have outDONE yourselves!!  (http://i25.tinypic.com/2nav28g.jpg)
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on September 12, 2009, 08:58:20 PM
Kimmie have a look at the link in my sig which is my test forum or my main forum at www.paranormalhaunt.info if you want an idea of what simpleportal can do.
Title: Re: SimplePortal - 2.3 Released!
Post by: Nathaniel on September 12, 2009, 09:41:31 PM
@NBK*Twitch,
If you are using a PHP or HTML block, then make sure that you don't have HTML styles/tags which are overriding the main block's style. If you can post the code that you are using, then I can check over it.
Title: Re: SimplePortal - 2.3 Released!
Post by: ultide on September 13, 2009, 09:08:57 AM
hey all...
can i have both frontpage and integration at the same time...

if not...then any solution...plz tell me...
Title: Re: SimplePortal - 2.3 Released!
Post by: TwitchisMental on September 13, 2009, 01:23:43 PM
Quote from: Nathaniel on September 12, 2009, 09:41:31 PM
@NBK*Twitch,
If you are using a PHP or HTML block, then make sure that you don't have HTML styles/tags which are overriding the main block's style. If you can post the code that you are using, then I can check over it.

Here it is.(note it was the code i used when using ipbfree)

<center><div class='tableborder'><center><div class='maintitle'></div></center>
<table border='0' width='100%' cellspacing='1'><tr>
<td class='row4' align='center' align='center' height='130'>

<img src='http://i25.tinypic.com/w2gf9e.jpg'>

</td></tr></table></div></center>
Title: Re: SimplePortal - 2.3 Released!
Post by: Nathaniel on September 13, 2009, 05:28:22 PM
Quote from: ultide on September 13, 2009, 09:08:57 AM
hey all...
can i have both frontpage and integration at the same time...

if not...then any solution...plz tell me...

Turn on Frontpage, then you can still put blocks on the rest of your forum, using the Display options for each block. The only difference between those two mods is the Frontpage itself.

Quote from: NBK*Twitch on September 13, 2009, 01:23:43 PM
Quote from: Nathaniel on September 12, 2009, 09:41:31 PM
@NBK*Twitch,
If you are using a PHP or HTML block, then make sure that you don't have HTML styles/tags which are overriding the main block's style. If you can post the code that you are using, then I can check over it.

Here it is.(note it was the code i used when using ipbfree)

<center><div class='tableborder'><center><div class='maintitle'></div></center>
<table border='0' width='100%' cellspacing='1'><tr>
<td class='row4' align='center' align='center' height='130'>

<img src='http://i25.tinypic.com/w2gf9e.jpg'>

</td></tr></table></div></center>

That code seems unecessarily complicated, try the code below, with the custom style option from before.
<img src='http://i25.tinypic.com/w2gf9e.jpg'>
Title: Re: SimplePortal - 2.3 Released!
Post by: TwitchisMental on September 13, 2009, 06:35:16 PM
Well liek I said the code was first used for ipbfree.

It is nice to know smf doesn't require as much :D.

Anyways it still failed :[.
Title: Re: SimplePortal - 2.3 Released!
Post by: Shades. on September 13, 2009, 10:49:57 PM
Ok, I just upgraded to the latest portal 2.3 and turned on the forum links block on the left hand side. But when you hover over one of the links that has sub links, a scroll bar appears in the block at the bottom and half the links disappear! Using IE8 and the latest Opera browsers.

http://www.therallyboard.com

See attachment image!
Title: Re: SimplePortal - 2.3 Released!
Post by: Nathaniel on September 14, 2009, 01:53:20 AM
@NBK*Twitch,
What about this code? (it doesn't need the style option to be set)
<div style="width: 100%;" align="center"><img src='http://i25.tinypic.com/w2gf9e.jpg'></div>

@BoZilla,
At the moment there are some issues with that block and the displaying of the sub-menu links. There is a fix over at SP.net (http://simpleportal.net/index.php?topic=3246.msg21226#msg21226), which will remove the sub-menu 'popup' for 2.3.
Title: Re: SimplePortal - 2.3 Released!
Post by: Shades. on September 14, 2009, 08:55:52 AM
Quote from: Nathaniel on September 14, 2009, 01:53:20 AM
@NBK*Twitch,
What about this code? (it doesn't need the style option to be set)
<div style="width: 100%;" align="center"><img src='http://i25.tinypic.com/w2gf9e.jpg'></div>

@BoZilla,
At the moment there are some issues with that block and the displaying of the sub-menu links. There is a fix over at SP.net (http://simpleportal.net/index.php?topic=3246.msg21226#msg21226), which will remove the sub-menu 'popup' for 2.3.
I just tried those edits at the link above and got this error:
Parse error: syntax error, unexpected $end in /home/????/public_html/????/Sources/PortalBlocks.php on line 1
Title: Re: SimplePortal - 2.3 Released!
Post by: Nathaniel on September 14, 2009, 05:13:16 PM
@BoZilla,
You probably made a mistake when you edit the file. Could you please attach that file so I can have a look at it?
Title: Re: SimplePortal - 2.3 Released!
Post by: oistarbwoy on September 14, 2009, 05:51:30 PM
i have had a strange occurance.

i recently installed the latest version of simpleportal on my site. at first it seemed like everything was well... all my old block data still there from the old installation etc.

however i have realised that there is a problem in 1 specific theme. darkbreak by dziner studios every block has a vertical scroll bar on it. (but with only about 2px to scroll.) they have no point. my other themes are also by dziner studios and they all work fine.

the theme was fine with 2.2.2 no such problem and i cant figure out why it suddenly would have this issue.

if anyone has any clues or ideas please help. unfortunately the theme is crucial to my site and i cant just use another  :(

thanks in advance.

does anyone have any other ideas
Title: Re: SimplePortal - 2.3 Released!
Post by: Shades. on September 14, 2009, 06:07:26 PM
Quote from: Nathaniel on September 14, 2009, 05:13:16 PM
@BoZilla,
You probably made a mistake when you edit the file. Could you please attach that file so I can have a look at it?

Yep, here it is! :)
Title: Re: SimplePortal - 2.3 Released!
Post by: TwitchisMental on September 14, 2009, 07:07:52 PM
Quote from: Nathaniel on September 14, 2009, 01:53:20 AM
@NBK*Twitch,
What about this code? (it doesn't need the style option to be set)
<div style="width: 100%;" align="center"><img src='http://i25.tinypic.com/w2gf9e.jpg'></div>

@BoZilla,
At the moment there are some issues with that block and the displaying of the sub-menu links. There is a fix over at SP.net (http://simpleportal.net/index.php?topic=3246.msg21226#msg21226), which will remove the sub-menu 'popup' for 2.3.

Well the image centers,but the text does not.
Title: Re: SimplePortal - 2.3 Released!
Post by: Shades. on September 14, 2009, 08:37:27 PM
Just had a member post this:
Quoteso, when i get to my home page when first logging on, it on the left hand side, there is a thinger there that says home, forum, blah blah, listing everything.  then written right ON TOP of all of that, which it is all blended together, it has other stuff on there, like who is on line, etc.  i know its not suppose to be wrote on top of the other....so i am guessing is a fluke.

also, while i write this on this page, right under my avatar, it has that same list of stuff, and the whole thing is whited out.
I tried to recreate this scenario in different browsers but can't figure it out! Any idea what's is going on here? I knew I shouldn't have upgraded cause 2.2 was working fine and like the old saying goes, if it ain't broke...don't fix it!  ;)
Title: Re: SimplePortal - 2.3 Released!
Post by: Nathaniel on September 15, 2009, 02:12:26 AM
@BoZilla
Wow, did you edit that file with notepad or something? All the code is on the same line, which is never a good sign. Do you have a copy of the file from before you edited it? That would be more useful.

About the member's post, ask them which browser/s they use, and if they can post a screenshot of the issue.

@NBK*Twitch,
What text? If you are referring to the title of the block, then put 'text-align: center;' into the 'Custom Title Style' option.
Title: Re: SimplePortal - 2.3 Released!
Post by: Propaganistas on September 15, 2009, 04:10:24 AM
Hi,

I'm experiencing a parsing problem. The [list] doesn't seem to parse well in a custom bbc block and in a custom page. (see attachment below)

I also had the same problem when using the standalone Custom Pages mod, but as those are 2 seperate fora on 2 seperate hosts I think it has to be software/serverside?

Any help would be appreciated! :)

Propaganistas.
Title: Re: SimplePortal - 2.3 Released!
Post by: Shades. on September 15, 2009, 12:29:34 PM
Quote from: Nathaniel on September 15, 2009, 02:12:26 AM
@BoZilla
Wow, did you edit that file with notepad or something? All the code is on the same line, which is never a good sign. Do you have a copy of the file from before you edited it? That would be more useful.

About the member's post, ask them which browser/s they use, and if they can post a screenshot of the issue.

@NBK*Twitch,
What text? If you are referring to the title of the block, then put 'text-align: center;' into the 'Custom Title Style' option.
That's weird! Try this one! ;)
Title: Re: SimplePortal - 2.3 Released!
Post by: oistarbwoy on September 15, 2009, 12:32:43 PM
does anyone have idea about my problem a few posts earlier...

...well i have another one.

ive been spending an age sifting through posts about adding and renaming tabs on the main menu. i've generally got the hang of it. i need to add the button in subs.php and tell it to understand the word by adding a text string saying what i would want the button to say in languages/index.english.php

HOWEVER

i am able to rename buttons by simply changing their text string to say what i want in the file all except the one i wanted to change... the 'forum button' I cannot find it. as this button only exists because of the installation of simple portal im wondering if perhaps it is somewhere else. where can i find it does anybody know.

some discussion on either of my problems would be great, thanks.

im using 2.0 rc1.2
Title: Re: SimplePortal - 2.3 Released!
Post by: Propaganistas on September 15, 2009, 02:17:45 PM
Quote from: oistarbwoy on September 15, 2009, 12:32:43 PM
i am able to rename buttons by simply changing their text string to say what i want in the file all except the one i wanted to change... the 'forum button' I cannot find it. as this button only exists because of the installation of simple portal im wondering if perhaps it is somewhere else. where can i find it does anybody know.

You can find it in /Themes/default/languages/SPortal.english.php as the first text string.
Title: Re: SimplePortal - 2.3 Released!
Post by: oistarbwoy on September 15, 2009, 03:02:12 PM
correct you are... thank you, i now love you in ways previously unknown to man  :D
Title: Re: SimplePortal - 2.3 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on September 15, 2009, 06:08:00 PM
I just want to know, how do we create a block that you can choose only one member group to see excluding administrator.

I want to have guests see a message, but only guests, not admins I dont see how to "disable/hide" the block from admins?

Is it possible?
Title: Re: SimplePortal - 2.3 Released!
Post by: Ron Jeremy on September 15, 2009, 08:45:12 PM
This version have little bug  :( In the IE blocks have a blank space on the end.
Title: Re: SimplePortal - 2.3 Released!
Post by: clotilde on September 16, 2009, 01:23:52 AM
[quote author = Ron Jeremy link = topic = 227599.msg2261223 # msg2261223 date = 1253061912]
  Questa versione è piccolo bug: (nei blocchi di IE Hanno uno spazio vuoto alla fine.
  [/ Quote]

Sì è vero, devo tornare alla vecchia versione
Title: Re: SimplePortal - 2.3 Released!
Post by: Propaganistas on September 16, 2009, 05:23:11 AM
Quote from: johncccccc on September 15, 2009, 06:08:00 PM
I just want to know, how do we create a block that you can choose only one member group to see excluding administrator.

I want to have guests see a message, but only guests, not admins I dont see how to "disable/hide" the block from admins?

Is it possible?
Such a thing isn't possible. An administrator is 'doomed' to see all content on his forum. If you'd like to view your blocks as a regular member, you should create a test account with which you can play around :)
Title: Re: SimplePortal - 2.3 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on September 16, 2009, 09:19:33 AM
Well, the ad management mod has an option to disable ads for Admins, some other setting have similar things, surly if ad man mod can disable ads for admin, a block can be disabled for admin too.
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 16, 2009, 12:20:11 PM
I really like Simple Portal but now there is a problem

Some of my members wont see the portal.
They only gets a blank page.

what can be wrong?

WWW.aggma.com (http://www.aggma.com)
Title: Re: SimplePortal - 2.3 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on September 16, 2009, 12:42:27 PM
I see your portal fine, maybe check the permission settings for all member groups
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 16, 2009, 12:44:43 PM
Yes.

Guests can see it but not most of the users.

What permissions should I check?
Title: Re: SimplePortal - 2.3 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on September 16, 2009, 12:51:45 PM
For blocks:
which blocks are they not seeing

Go to the edit settings for the problem block and
open the [ Select permissions for each group ] drop down and make sure the member groups you want to see the block are all selected

EDIT:

the portal page, is it all blank or just the bottom?

EDIT 2, I signed up and see what you mean now a completely blank page

ok think i got it:

Standalone URL change the standalone setting to match you index.php file.

www.aggma.com/forum/index.php
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 16, 2009, 01:39:23 PM
Sorry for asking stupid questions..

but how do I do this??

edit:
I changed the Simple Portal to be "stand alone" and typed http://www.aggma.com/forum/index.php as the Stand Alone URL.
That only resulted in that I dont get any portal at all
Title: Re: SimplePortal - 2.3 Released!
Post by: Ron Jeremy on September 16, 2009, 02:33:21 PM
Just the bottom of the blocks. On my forum this is white color, on the www.aggma.com/forum/index.php this is a brown color.
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 16, 2009, 02:37:17 PM
what do you mean?
Title: Re: SimplePortal - 2.3 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on September 16, 2009, 03:45:01 PM
Quote from: buckshot on September 16, 2009, 01:39:23 PM
Sorry for asking stupid questions..

but how do I do this??

edit:
I changed the Simple Portal to be "stand alone" and typed http://www.aggma.com/forum/index.php as the Stand Alone URL.
That only resulted in that I dont get any portal at all

Hold on, so you were getting a 100% white completely screen before making any changes, because I logged on and that all I got.

What was the original problem, was it 100% blank or did you see anything?
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 16, 2009, 04:01:31 PM
When I log in as administrator or just visit as a guest the portal works.
But any other user just gets a white screen.

Title: Re: SimplePortal - 2.3 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on September 16, 2009, 08:02:22 PM
hmmm, thats very odd, it has to be a permission thing, but Im pretty sure we have gone through all the permission settings for it already
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 17, 2009, 01:01:21 AM
Yes, it feels like it. But I have no idea and my members thinks everything is down since they cannot see the portal.

Frustrating

Anyone have any idea of a solution?
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 17, 2009, 03:34:07 PM
Is this not something that can be fixed??

If not I just have to remove the portal..
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 17, 2009, 03:35:50 PM
You could pm a temporary admin account to check it.
Title: Re: SimplePortal - 2.3 Released!
Post by: buckshot on September 17, 2009, 04:02:43 PM
PM is sent.
Title: Re: SimplePortal - 2.3 Released!
Post by: TwitchisMental on September 17, 2009, 08:09:21 PM
Quote from: Nathaniel on September 15, 2009, 02:12:26 AM
@BoZilla
Wow, did you edit that file with notepad or something? All the code is on the same line, which is never a good sign. Do you have a copy of the file from before you edited it? That would be more useful.

About the member's post, ask them which browser/s they use, and if they can post a screenshot of the issue.

@NBK*Twitch,
What text? If you are referring to the title of the block, then put 'text-align: center;' into the 'Custom Title Style' option.

Still hasn't centered. I even cleared cache to be sure of it.
Title: Re: SimplePortal - 2.3 Released!
Post by: Keith99 on September 20, 2009, 04:51:35 AM
Just had a major problem.  I wanted to install the latest version, so I uninstalled the previous version, but now I can not use my forum.

www.mbdeals.co.uk

Anyone have any suggestions??

Luckily I backed up the forum before, simple put a few files back!!! It was index.php it messed up...
Title: Re: SimplePortal - 2.3 Released!
Post by: nsrforum on September 20, 2009, 12:19:28 PM
I tried downloading the simple portal for 1.1.10.
I downloaded but when i tried to install i get an "Error in Package Installation"
When it does the installation run through it says "test failed" beside ./Sources/ManagePermissions.php and ./Sources/Recent.php.
Can someone help?
Title: Re: SimplePortal - 2.3 Released!
Post by: MultiformeIngegno on September 20, 2009, 12:21:47 PM
@srforum: do you have other packages installed?
Title: Re: SimplePortal - 2.3 Released!
Post by: nsrforum on September 20, 2009, 12:29:35 PM
as in other mods???
Title: Re: SimplePortal - 2.3 Released!
Post by: Keith99 on September 21, 2009, 04:11:48 PM
I have a quick questions regarding simple portals, I want to get rid of the link to the forum between the top and the main page.  Mine says Matched Betting Deals and link back to the forum!

www.mbdeals.co.uk you can see it there

Decided to look on your forum! Great help on there found it there.  If anyone wants it then find the answer here

http://simpleportal.net/index.php?topic=3362.msg21556#msg21556
Title: Re: SimplePortal - 2.3 Released!
Post by: Kimmie on September 23, 2009, 01:46:57 PM
keep seeing this error in my logs:

action=jsoption;var=sp_block_10;val=0;sesc;1253722199838

Unable to verify referring url. Please go back and try again.


any ideas what is causing it? Thanks :)
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 23, 2009, 01:50:18 PM
What's your SMF version? What's your theme name? Can you attach the script.js file from your theme to here?
Title: Re: SimplePortal - 2.3 Released!
Post by: R.Bourne on September 24, 2009, 12:59:34 AM
Great work, as always.


SMF version is 1.1.10 and SP 2.3.

IE 8 users accessing the site, Forum Error Log fills up with this error message:

8: Undefined index: session_var
File: /home/content/r/a/m/2/html/Themes/default/PortalShoutbox.template.php
Line: 111

All other browsers have no issue.

Thanks in advance.
Title: Re: SimplePortal - 2.3 Released!
Post by: anto74 on September 24, 2009, 02:39:40 AM
Hi :-)
today i upgraded to Sp 2.3, but i have curious problem. I have manu block and in Sp 2.2 it's ok, but now the guest not views the blocks but only articles! The block permission Are ok
my forum is macroforum.org
sorry for my english
Antonio
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 24, 2009, 05:17:02 AM
Quote from: R.Bourne on September 24, 2009, 12:59:34 AM
Great work, as always.


SMF version is 1.1.10 and SP 2.3.

IE 8 users accessing the site, Forum Error Log fills up with this error message:

8: Undefined index: session_var
File: /home/content/r/a/m/2/html/Themes/default/PortalShoutbox.template.php
Line: 111

All other browsers have no issue.

Thanks in advance.

http://simpleportal.net/index.php?topic=3201.0

Quote from: anto74 on September 24, 2009, 02:39:40 AM
Hi :-)
today i upgraded to Sp 2.3, but i have curious problem. I have manu block and in Sp 2.2 it's ok, but now the guest not views the blocks but only articles! The block permission Are ok
my forum is macroforum.org
sorry for my english
Antonio

Can you provide a screenshot of how the permissions are set for a block?
Title: Re: SimplePortal - 2.3 Released!
Post by: anto74 on September 24, 2009, 06:39:53 AM
Quote from: [SiNaN] on September 24, 2009, 05:17:02 AM

Can you provide a screenshot of how the permissions are set for a block?
Thanks !
I attached screenshot of permission block ( recent topics)
In SP 2.2 it's all ok, now only admin views blocks, regular member and guest views only articles.
I checked all permission and they are ok... :(
If i create new block now with SP 2.3, the problem is same, only admin can views block...
Thanks
Antonio
Title: Re: SimplePortal - 2.3 Released!
Post by: [SiNaN] on September 24, 2009, 06:45:34 AM
See the "Permission Settings" option? Set it to "One Membergroup" and it should be fine.
Title: Re: SimplePortal - 2.3 Released!
Post by: Kingus on September 24, 2009, 06:49:53 AM
Hello I use simple portal 2.3 and its quite nice, I just have this problem. When I am using the gallery block I would like to select some categories where the images would be displayed from. I have tried and tried to no avail. Would you be so kind as to help.
Title: Re: SimplePortal - 2.3 Released!
Post by: Kingus on September 24, 2009, 06:50:27 AM
Hello I use simple portal 2.3 and its quite nice, I just have this problem. When I am using the gallery block I would like to select some categories where the images would be displayed from. I have tried and tried to no avail. Would you be so kind as to help.
Title: Re: SimplePortal - 2.3 Released!
Post by: anto74 on September 24, 2009, 07:18:27 AM
Quote from: [SiNaN] on September 24, 2009, 06:45:34 AM
See the "Permission Settings" option? Set it to "One Membergroup" and it should be fine.
Thanks!!!
I set all blocks with One membergroup and i solved!
Thanks!  ;)
Antonio
Title: Re: SimplePortal - 2.3 Released!
Post by: karbaciun on September 24, 2009, 09:09:24 AM
hi

this mod is in the version 2.3 very good.

but for me in the IE browser have a litte problem and it displayed in below image
in all theme ,but in fire fox have not problem
please help me.
tnx a lot
Title: Re: SimplePortal - 2.3 Released!
Post by: R.Bourne on September 24, 2009, 11:51:08 AM
Quote from: [SiNaN] on September 24, 2009, 05:17:02 AM
http://simpleportal.net/index.php?topic=3201.0


Thank You! I forgot to check your forum. Anyhow, problem solved in IE. Did a quick test with other browsers (Firefox, Opera, Chrome, Camino, Safari and a few others and they work as before no problem.

Thanks again :)


Title: Re: SimplePortal - 2.3 Released!
Post by: Kimmie on September 25, 2009, 10:27:05 PM
Quote from: [SiNaN] on September 23, 2009, 01:50:18 PM
What's your SMF version? What's your theme name? Can you attach the script.js file from your theme to here?

RC1.2 and the only theme that has that file is the default core theme (which nobody uses because I dont allow them to select that one). File is attached.

Title: Re: SimplePortal - 2.3 Released!
Post by: gisfreak on September 26, 2009, 01:41:50 PM
hello

i dunno whats wrong on my forum or my PC but it seems "Resizes images on portal" function seems have different result in each browser

in OPERA 10, those oversized pic will be cut in the right

in Firefox 3.5.3, the image will be exceed the center block boundary and goes to right, so it will overlap with right block

in google chrome 2, its have same result as firefox

in safari 4, its have same result as firefox

any clue bout this ?

i use SMF 1.1.10 with default themes from SMF and 6 other mods

regards, GISfreak

Title: Re: SimplePortal - 2.3 Released!
Post by: jmil on September 26, 2009, 03:44:57 PM
OMG  :D :D :D

I Finally Upgraded from 2.0.4 and the upgrade went absolutely FLAWLESS with a extremely Custom Theme. I had a few blocks going kinda weird, just went in and adjusted the settings to get them aligned. Wow - Nice Upgrade and a heck of a job by the Simple Portal Team! 8)

I have one question:

I enabled the Shout Box and really like it but I put the Shout box in my forum only! Can I move it to a different Location (Say between 2 different Boards)besides only the Top or Bottom?

Again - Job well done by the Team!
Title: Re: SimplePortal - 2.3 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on September 27, 2009, 12:18:11 AM
Thanks again for a great mod, this really can change the appearance of the forum and make it full or content even on the boards them selves, I also use it to display ads :D
Anyway this mod has made things so much easier for me, and I think I have a useful Idea as a great addition to this already great mod.

I would like to request an addition to this mod if I may.

Adding blocks is a great feature and can be used for almost anything, I want to know if it would be possible to add a tab and then use blocks to fil, it would be just like another portal, except that it would be completely customized by the forum admin including tab title.

Im currently using 2.2.1, I will upgrade soon, if this feature already exists in the newer version then thanks anyway

Thanks in Advanced! :)
Title: Re: SimplePortal - 2.3 Released!
Post by: 4b11l on September 27, 2009, 10:02:38 PM
Hello,

For the latest version, where can I find the code for the advanced display option for the shoutbox to embed into boards?
I have a shoutbox on certain boards, but I want to be able to move the shoutbox to the top rather than on the bottom.
Title: Re: SimplePortal - 2.3 Released!
Post by: sshahnawaz on September 28, 2009, 03:04:43 AM
What is the difference b/w three mods of Simple Portal, i.e. Frontpage, Integration, Standalone?

Also tell me what can I do if I want my boards to be listed on index page while I am using the front page mod of Simple Portal.

Any input will be highly appreciated. Thank you....  :)
Title: Re: SimplePortal - 2.3 Released!
Post by: karbaciun on September 28, 2009, 05:40:35 PM
Quote from: 4b11l on September 27, 2009, 10:02:38 PM
Hello,

For the latest version, where can I find the code for the advanced display option for the shoutbox to embed into boards?
I have a shoutbox on certain boards, but I want to be able to move the shoutbox to the top rather than on the bottom.

after add new shut box, click on the block and go to add block and then choose in bottom shutbox, then in the setting set position :)
Title: Re: SimplePortal - 2.3 Released!
Post by: karbaciun on September 28, 2009, 05:42:52 PM
Quote from: karbaciun on September 24, 2009, 09:09:24 AM
hi

this mod is in the version 2.3 very good.

but for me in the IE browser have a litte problem and it displayed in below image
in all theme ,but in fire fox have not problem
please help me.
tnx a lot

nobody can not help me?
Title: Re: SimplePortal - 2.3 Released!
Post by: jmil on September 29, 2009, 07:50:47 PM
As I already stated - Excellent Mod and the Update went Flawless But I have a simple question:

I put a Shout Box in its own Board - Works Nice - But the "Who's Viewing This Thread" does not update to who is in the Chat. It would be nice when you know someone enters the room! Refreshing the screen isn't for the Non-Techno Dummies.

And I should search this - But Sound?

Title: Re: SimplePortal - 2.3 Released!
Post by: Eliana Tamerin on September 29, 2009, 09:10:05 PM
Well, updating the Who's Viewing This Thread would have to be separate, SP doesn't touch that.

You could ask for that as a mod request.
Title: Re: SimplePortal - 2.3 Released!
Post by: jmil on September 30, 2009, 09:55:07 AM
Quote from: Eliana Tamerin on September 29, 2009, 09:10:05 PM
Well, updating the Who's Viewing This Thread would have to be separate, SP doesn't touch that.

You could ask for that as a mod request.

TY Eliana - I will do that!

;D
Title: Re: SimplePortal - 2.3 Released!
Post by: mirahalo on September 30, 2009, 10:25:21 AM
Quote from: sshahnawaz on September 28, 2009, 03:04:43 AM
What is the difference b/w three mods of Simple Portal, i.e. Frontpage, Integration, Standalone?

Also tell me what can I do if I want my boards to be listed on index page while I am using the front page mod of Simple Portal.

Any input will be highly appreciated. Thank you....  :)


check the little help icon in  General Settings
   Portal Mode

index.php?action=admin;area=portalconfig;sa=generalsettings;

index.php?action=helpadmin;help=sp_portal_mode

this will get you an idea of the difference between modes.


if you still want your boards to be listed, then you should use integration mode.

greetings!
Title: Re: SimplePortal - 2.3 Released!
Post by: sshahnawaz on September 30, 2009, 11:15:06 AM
Thank you very much ...  :)
Title: Re: SimplePortal - 2.3 Released!
Post by: 4b11l on October 02, 2009, 06:03:55 PM
Quote from: karbaciun on September 28, 2009, 05:40:35 PM
Quote from: 4b11l on September 27, 2009, 10:02:38 PM
Hello,

For the latest version, where can I find the code for the advanced display option for the shoutbox to embed into boards?
I have a shoutbox on certain boards, but I want to be able to move the shoutbox to the top rather than on the bottom.

after add new shut box, click on the block and go to add block and then choose in bottom shutbox, then in the setting set position :)

Where is this at? I do not see a setting to set the shoutbox to the top of the board.
Title: Re: SimplePortal - 2.3 Released!
Post by: camaronero on October 03, 2009, 11:02:29 AM
if someone enters a URL in the shoutbox I got the following error:
Fatal error: Maximum execution time of 30 seconds exceeded in / home / fact / public_html / forum / Sources / Subs.php on line 2004

any idea how to fix or block the url in shoutbox
Title: Re: SimplePortal - 2.3 Released!
Post by: qtime on October 03, 2009, 05:45:14 PM
I try to search this very big topic, but cannot find an answer.
On my forum I use the sp_attachmentRecent
it works great, but it displayed the real attachment, not the thumb, so when I show 15 "thumbs" it is eating bandwidth.
How to show the real thumbs?

function sp_attachmentRecent($parameters)
{
global $db_prefix, $modSettings, $scripturl, $txt, $settings;

$boards = boardsAllowedTo('view_attachments');

if (empty($boards))
return;
elseif ($boards[0] == 0)
$boards = '';
else
$boards = ' AND m.ID_BOARD IN (' . implode(',', $boards) . ')';

$limit = empty($parameters[0]) ? 5 : (int) $parameters[0];

$request = db_query("
SELECT
att.ID_ATTACH, att.ID_MSG, att.filename, IFNULL(att.size, 0) AS filesize, att.downloads, mem.ID_MEMBER,
IFNULL(mem.realName, m.posterName) AS posterName, m.ID_TOPIC, m.subject, t.ID_BOARD, m.posterTime,
att.width, att.height" . (empty($modSettings['attachmentShowImages']) || empty($modSettings['attachmentThumbnails']) ? "" : ", IFNULL(thumb.ID_ATTACH, 0) AS id_thumb, thumb.width AS thumb_width, thumb.height AS thumb_height") . "
FROM {$db_prefix}attachments AS att
INNER JOIN {$db_prefix}messages AS m ON (m.ID_MSG = att.ID_MSG)
INNER JOIN {$db_prefix}topics AS t ON (t.ID_TOPIC = m.ID_TOPIC)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (empty($modSettings['attachmentShowImages']) || empty($modSettings['attachmentThumbnails']) ? "" : "
LEFT JOIN {$db_prefix}attachments AS thumb ON (thumb.ID_ATTACH = att.ID_THUMB)") . "
WHERE att.attachmentType = 0
$boards
ORDER BY att.ID_ATTACH DESC
LIMIT $limit", __FILE__, __LINE__);
$items = array();
while ($row = mysql_fetch_assoc($request))
{
$filename = preg_replace('~&amp;#(\\d{1,7}|x[0-9a-fA-F]{1,6});~', '&#\\1;', htmlspecialchars($row['filename']));

$items[$row['ID_ATTACH']] = array(
'member' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['posterName'],
'link' => empty($row['ID_MEMBER']) ? $row['posterName'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['posterName'] . '</a>',
),
'file' => array(
'filename' => $filename,
'filesize' => round($row['filesize'] /1024, 2) . $txt['smf211'],
'downloads' => $row['downloads'],
'href' => $scripturl . '?action=dlattach;topic=' . $row['ID_TOPIC'] . '.0;attach=' . $row['ID_ATTACH'],
'link' => '<img src="' . $settings['images_url'] . '/icons/clip.gif" alt="" /> <a href="' . $scripturl . '?action=dlattach;topic=' . $row['ID_TOPIC'] . '.0;attach=' . $row['ID_ATTACH'] . '">' . $filename . '</a>',
'is_image' => !empty($row['width']) && !empty($row['height']) && !empty($modSettings['attachmentShowImages']),
),
'topic' => array(
'id' => $row['ID_TOPIC'],
'subject' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#msg' . $row['ID_MSG'],
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#msg' . $row['ID_MSG'] . '">' . $row['subject'] . '</a>',
'time' => timeformat($row['posterTime']),
),
);
}
mysql_free_result($request);

foreach ($items as $item)
echo '
', $item['file']['link'], '<br />
<span class="smalltext">
', $txt['sp-downloadsCount'], ': ', $item['file']['downloads'], '
</span><br /><br />';
}
Title: Re: SimplePortal - 2.3 Released!
Post by: Eliana Tamerin on October 03, 2009, 07:30:53 PM
New announcement concerning the SMF RC2 release to Charters:

http://simpleportal.net/index.php?topic=3536.0

Please read before upgrading your site!
Title: Re: SimplePortal - 2.3 Released!
Post by: MrDby on October 04, 2009, 06:05:48 PM
1.   Execute Modification   ./index.php   Test failed

any suggestions?
Title: Re: SimplePortal - 2.3 Released!
Post by: MrDby on October 04, 2009, 06:08:26 PM
should i just upload the files on the root of the site instead of mysite.com/forum?
Title: Re: SimplePortal - 2.3 Released!
Post by: sombra on October 05, 2009, 01:09:58 PM
hello and thanks for this wondurfull portal been uning it for a long time

now i have a little problem can read here

http://www.simplemachines.org/community/index.php?topic=338291.0

and it was told to me that the portal coud be the problem any ideads if this is the problem and is there any fix for it

and thanks
Title: Re: SimplePortal - 2.3 Released!
Post by: DaBrute on October 05, 2009, 01:26:38 PM
ANYBODY?
Title: Re: SimplePortal - 2.3 Released!
Post by: 4b11l on October 05, 2009, 04:46:29 PM
Quote from: 4b11l on October 02, 2009, 06:03:55 PM
Quote from: karbaciun on September 28, 2009, 05:40:35 PM
Quote from: 4b11l on September 27, 2009, 10:02:38 PM
Hello,

For the latest version, where can I find the code for the advanced display option for the shoutbox to embed into boards?
I have a shoutbox on certain boards, but I want to be able to move the shoutbox to the top rather than on the bottom.

after add new shut box, click on the block and go to add block and then choose in bottom shutbox, then in the setting set position :)

Where is this at? I do not see a setting to set the shoutbox to the top of the board.

Bump.

Can someone atleast tell me where the code is and I can try to move it myself since volunteer support on this board seems scarce.
Title: Re: SimplePortal - 2.3 Released!
Post by: homer09001 on October 05, 2009, 04:57:21 PM
Does anyone know how to use the Special Actions with this?

Im trying to get it to load a block when the url is: ../index.php?script=1

for the life of my i can't understand the documentation regarding this process?
Title: Re: SimplePortal - 2.3 Released!
Post by: homer09001 on October 05, 2009, 05:16:49 PM
Forget my previous post i got it cracked. :)

next problem how can i get the main portal sidebars to be visible on my Custom HTML Page?
Title: Re: SimplePortal - 2.3 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on October 05, 2009, 05:52:23 PM
Quote from: homer09001 on October 05, 2009, 05:16:49 PM
Forget my previous post i got it cracked. :)

next problem how can i get the main portal sidebars to be visible on my Custom HTML Page?

on advanced options you can choose where it is displayed, Boards, Actions or Pages, expand pages and you can display blocks there
Title: Re: SimplePortal - 2.3 Released!
Post by: Mdk001 on October 06, 2009, 02:52:43 PM
Is there any way to make a specific block display only for lower-ranked users, such as users with 0 posts having a warning block telling them to introduce themselves
I created a membergroup for users with no posts but if I set a block to show for said group it actaully shows for any other membergroup above them (basically anyone)
Title: Re: SimplePortal - 2.3 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 03:13:36 PM
Yes there is, when you have a post based member group, u can set it to say, Newbie is 25 posts or less

then create the block and only check off that post based member group, you will always see the block as admin though, only you and members from that group :)
Title: Re: SimplePortal - 2.3 Released!
Post by: Mdk001 on October 06, 2009, 03:57:12 PM
Quote from: johncccccc on October 06, 2009, 03:13:36 PM
Yes there is, when you have a post based member group, u can set it to say, Newbie is 25 posts or less

then create the block and only check off that post based member group, you will always see the block as admin though, only you and members from that group :)

Oh, it's cause I'm a mod
...quite annoying, is there a way to prevent it from showing to mods as well? :)
Title: Re: SimplePortal - 2.3 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 04:01:49 PM
well, a global or local moderator should not be able to see it if you only check that group, but admins will always see everything
Title: Re: SimplePortal - 2.3 Released!
Post by: 1adam12 on October 06, 2009, 05:36:05 PM
I am using Simple Portal and was wondering if the www.redirect seen in the browser affect SEO ?
Title: Re: SimplePortal - 2.3 Released!
Post by: Mdk001 on October 06, 2009, 05:58:58 PM
Quote from: johncccccc on October 06, 2009, 04:01:49 PM
well, a global or local moderator should not be able to see it if you only check that group, but admins will always see everything

Yeah, that's what I find annoying...
Perhaps you guys could help me with a bit of php code for a block that'd only show up for people with zero replies?
I don't really know how to get infos from the currently logged in user but once I have that I can handle the rest
Title: Re: SimplePortal - 2.3 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 06:01:57 PM
well there is some code to stop admins seeing things, like the ad management mod can disable ads for admins, thus it can be done, but that's way beyond me lol
Title: Re: SimplePortal - 2.3 Released!
Post by: TheListener on October 06, 2009, 06:06:39 PM
Quote from: Mdk001 on October 06, 2009, 05:58:58 PM
Quote from: johncccccc on October 06, 2009, 04:01:49 PM
well, a global or local moderator should not be able to see it if you only check that group, but admins will always see everything

Yeah, that's what I find annoying...
Perhaps you guys could help me with a bit of php code for a block that'd only show up for people with zero replies?
I don't really know how to get infos from the currently logged in user but once I have that I can handle the rest

Slightly off topic here but there is a mod for use for people with zero replies.

If you want to know which one then you can pm me.
Title: Re: SimplePortal - 2.3 Released!
Post by: Mdk001 on October 06, 2009, 06:09:46 PM
Quote from: TheListener on October 06, 2009, 06:06:39 PM
Quote from: Mdk001 on October 06, 2009, 05:58:58 PM
Quote from: johncccccc on October 06, 2009, 04:01:49 PM
well, a global or local moderator should not be able to see it if you only check that group, but admins will always see everything

Yeah, that's what I find annoying...
Perhaps you guys could help me with a bit of php code for a block that'd only show up for people with zero replies?
I don't really know how to get infos from the currently logged in user but once I have that I can handle the rest

Slightly off topic here but there is a mod for use for people with zero replies.

If you want to know which one then you can pm me.

Seen that one, but I couldn't integrate it in a PHP block for some reason and I couldn't properly place it outside them so I disabled it for the time being
Title: Re: SimplePortal - 2.3 Released!
Post by: sombra on October 06, 2009, 06:27:25 PM
Quote from: sombra on October 05, 2009, 01:09:58 PM
hello and thanks for this wondurfull portal been uning it for a long time

now i have a little problem can read here

http://www.simplemachines.org/community/index.php?topic=338291.0

and it was told to me that the portal coud be the problem any ideads if this is the problem and is there any fix for it

and thanks

anu sugestions?
Title: Re: SimplePortal - 2.3 Released!
Post by: camaronero on October 07, 2009, 12:35:52 PM
Quote from: camaronero on October 03, 2009, 11:02:29 AM
if someone enters a URL in the shoutbox I got the following error:
Fatal error: Maximum execution time of 30 seconds exceeded in / home / fact / public_html / forum / Sources / Subs.php on line 2004

any idea how to fix or block the url in shoutbox
Help Please
Title: Re: SimplePortal - 2.3 Released!
Post by: meehan09 on October 10, 2009, 09:44:47 AM
Since installing portal iam getting thease errors in admin cp - error logs!!

Paul       Today at 14:42:28
IP address ******************      
f520ffaedc80d893b095d324505d5b2c
Type of error: Undefined

http://www.exoticforums.co.uk//index.php?http://www.exoticforums.co.uk/
8: Undefined variable: fix
File: /home/reptiles/public_html/Sources/Subs-Portal.php
Line: 661



I hope your able to help me fix this and clear my error logs, has they filling up very quickly with thease errors!


Kindest Regards,
Paul
Title: Re: SimplePortal - 2.3 Released!
Post by: mcgovery on October 14, 2009, 03:04:40 PM
Is it possible to disable showing forum posts on the main page?

Thanks
Title: Re: SimplePortal - 2.3 Released!
Post by: mrtrc266 on October 14, 2009, 03:12:15 PM
Quote from: mcgovery on October 14, 2009, 03:04:40 PM
Is it possible to disable showing forum posts on the main page?

Thanks

Go to Admin/Simple Portal/Blocks and disable whatever block is displaying the info 'recent posts" recent" topics" etc
Title: Re: SimplePortal - 2.3 Released!
Post by: DragonKith on October 15, 2009, 03:38:29 PM
This might be a total stupid question or it might not be i just looked at to download SimplePortal 2.3 and i was wondering if i would have to edit any files by chance before i install this program i never really played around with SimplePortal before does anyone have any advice for me by chance i think SimplePortal would kick butt to have on my board.
Title: Re: SimplePortal - 2.3 Released!
Post by: Verso on October 16, 2009, 10:10:06 AM
Quote from: DragonKith on October 15, 2009, 03:38:29 PM
This might be a total stupid question or it might not be i just looked at to download SimplePortal 2.3 and i was wondering if i would have to edit any files by chance before i install this program i never really played around with SimplePortal before does anyone have any advice for me by chance i think SimplePortal would kick butt to have on my board.


http://www.suffolksportsforum.co.uk


I use SP - Have a look at my site.

It is very easy to use. Just install and away you go..........
Title: Re: SimplePortal - 2.3 Released!
Post by: DragonKith on October 16, 2009, 12:34:57 PM
So you dont have to edit any files then i am using SMF 1.1.10 i click on Parse button it says i have to edit files this is very confusing

Title: Re: SimplePortal - 2.3 Released!
Post by: mirahalo on October 16, 2009, 12:44:06 PM
Quote from: DragonKith on October 16, 2009, 12:34:57 PM
So you dont have to edit any files then i am using SMF 1.1.10 i click on Parse button it says i have to edit files this is very confusing



thats because the package manager will do all those edits for you.

try install simpleportal with the package manager,  if you use the default theme, you don't have to edit any file, if you use other theme you just have to edit one file for the "forum" button

gretings!
Title: Re: SimplePortal - 2.3 Released!
Post by: Kimmie on October 16, 2009, 03:01:43 PM
Seeing this error in my logs (and its only showing up under my name):

8: Undefined index: 1

File: /home/*****/public_html/Sources/PortalBlocks.php
Line: 2155


Any ideas? Thanks :)
Title: Re: SimplePortal - 2.3 Released!
Post by: DragonKith on October 16, 2009, 03:27:10 PM
Quote from: 130860 on October 16, 2009, 12:44:06 PM
Quote from: DragonKith on October 16, 2009, 12:34:57 PM
So you dont have to edit any files then i am using SMF 1.1.10 i click on Parse button it says i have to edit files this is very confusing



thats because the package manager will do all those edits for you.

try install simpleportal with the package manager,  if you use the default theme, you don't have to edit any file, if you use other theme you just have to edit one file for the "forum" button

gretings!

It gave me a list of files to edit which would be the file that i need to edit so it will work correctly

Title: Re: SimplePortal - 2.3 Released!
Post by: LC on October 16, 2009, 05:49:42 PM
I would like to give something to think about as a suggestion. :)


I am sure many of you are aware of Google's custom homepage if you are using Gmail, or Myspace's new profile layout (2.0). Basically, you can add applications or remove applications by rearranging blocks of information on your page.

I don't know how feasible this would be for SP but it would be very interesting and cool if there was a way for individual accounts to be able to "rearrange" the blocks how they would like to see them. Of course having a default, but then they would be able to customize it as they wish.

Good idea? Feasible? Already been done?

Any thoughts? :D
Title: Re: SimplePortal - 2.3 Released!
Post by: mirahalo on October 17, 2009, 12:00:27 AM
Quote from: DragonKith on October 16, 2009, 03:27:10 PM
Quote from: 130860 on October 16, 2009, 12:44:06 PM
Quote from: DragonKith on October 16, 2009, 12:34:57 PM
So you dont have to edit any files then i am using SMF 1.1.10 i click on Parse button it says i have to edit files this is very confusing



thats because the package manager will do all those edits for you.

try install simpleportal with the package manager,  if you use the default theme, you don't have to edit any file, if you use other theme you just have to edit one file for the "forum" button

gretings!

It gave me a list of files to edit which would be the file that i need to edit so it will work correctly



if you are using the default theme you don't have to click on the parser button at all, just download the SimplePortal_2.3.zip  file, then go to your admin panel in your forum, then package/ download packages/ Upload a Package
Package to Upload:   select the file you just donwload, SimplePortal_2.3.zip, click on upload and thats it! you install simpleportal on your forum.

the file you need to edit if you are using version 1.1.10 and using a custom theme is Themes/ your theme/index.template.php   we could make the edits for you, check: http://simpleportal.net/

if you are using version 2.0, you don't have to edit anything ;)

greetings!
Title: Re: SimplePortal - 2.3 Released!
Post by: DragonKith on October 17, 2009, 09:03:13 AM
I'm not using the default theme i am using a customed theme why would it give me a list of files to edit thats where i am lost and confused at
Title: Re: SimplePortal - 2.3 Released!
Post by: Tiribulus on October 17, 2009, 09:17:34 AM
Quote from: DragonKith on October 17, 2009, 09:03:13 AM
I'm not using the default theme i am using a customed theme why would it give me a list of files to edit thats where i am lost and confused at

What is giving you a list of files to edit? The parser on the mod page or the package manager inside SMF?
Title: Re: SimplePortal - 2.3 Released!
Post by: magnastik on October 17, 2009, 04:09:18 PM
I've setup up a shoutbox with permissons to all membergroups, but if i go with a user from group beside ADMIN it says "Sorry, this shoutbox does not exist."

What should i do?

Thanks,
magnastik
Title: Re: SimplePortal - 2.3 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 04:31:31 PM
The shoutbox has 2 sets of permissions to deal with.

The shoutbox itself, and then the block permissions, be sure that both the shoutbox and block permissions are set to allow all the member groups.
Title: Re: SimplePortal - 2.3 Released!
Post by: Chas Large on October 18, 2009, 07:07:42 AM
Hi, Have just installed SP2.3 on 1.1.10 and it looks great thanks for all your hard work guys.

I have one problem however. On the home page I only see 1 page Pages[1] despite the fact that I have created several pages via the admin - pages option. Just test pages filled with latin stuff but I can't see how to view them from the home page.

They have everyone permission. I can view them via the admin - pages area.

Is there some setting I need to enable so that pages become visible?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on October 18, 2009, 10:28:56 AM
Turn the articles off. SP Admin > Configuration > Article Settings and uncheck 'Enable Articles'.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Chas Large on October 18, 2009, 11:23:00 AM
Quote from: Countess Tamerin on October 18, 2009, 10:28:56 AM
Turn the articles off. SP Admin > Configuration > Article Settings and uncheck 'Enable Articles'.
Thanks for the info but that did not fix the problem. When I disable articles I get no Pages[1] at all on the portal page, so it does not seem to fix my problem. Also I don't see the reasoning, surely you should be able to have Web Pages AND Articles in use at the same time? if not then the help or support feature should state this limitation.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Chas Large on October 18, 2009, 11:56:04 AM
Right, I have solved the riddle. The pages 1 2 [3] on the portal page are NOT the pages created by the pages option in the SP configuration, they are pages OF the portal page which increment when the number of ARTICLES reaches the set limit in the General-Articles setting. NOW I understand.

I worked this out by adding 7 articles and I then got my page number on the portal page to increment, having set my Articles per page limit to 3.
Logical really but I wish it had been written down somewhere.

The PAGES created in the SP - Pages configuration are just pages that can be linked to from anywhere on the site via a standard URL link.

:)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Chas Large on October 18, 2009, 01:36:26 PM
I have a little problem understanding how to initiate Standalone Mode.

Currently I am running the portal in "FRONT PAGE" mode. The forum is located in a sub folder of my site. www.fiftyplusforum.co.uk/forum

I have setup an index.html page in the root to redirect to /forum/index.php.

What I want is for visitors to come straight to /forum/portal.php as defined in the help of the SP > Configuration > General Settings.

However If I change to StandAlone mode and place the URL http://www.fiftyplusforum.co.uk/portal.php The home page just remains blank or I get a link error.

Do I have to create the portal.php file and place it in the root of the website or should it automatically be created. As the default for most URLs is index.htm or index.html do I have to configure the website records or some other configuration in order to make the Portal page my site home page?

Regards

Chas.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Tiribulus on October 18, 2009, 03:37:12 PM
Here's a good one. I uninstalled 2.3 so I could install 2.3.1 and after the clean no fail uninstall my entire site was transformed into blank/done pages. Every one, even when I manually typed in page url's. Restored my handy backup files and I'm OK, but I'd be interested to learn why this happened. On an uninstall? With no errors?

No emergency, but if one the SP honchos has any ides when they get a minute eventually I'm going to have to resolve this.
Thanks

EDIT: I am a MORON!!!!(http://gregnmary.gotdns.com/pix/1772.gif)
I forgot that I had disabled apc_stat on my server which prevents the opcode cache from checking the original copies of the files on the drive against what is in the cache.

All good. My fault. We now return you to your regularly scheduled programming.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on October 18, 2009, 07:44:32 PM
Tried to uninstall SP 2.3.1 from my forum (complete uninstall) I received no errors when testing the "uninstall" from the package manager. So I went ahead and did the uninstall through the package manager.

Got this error which seems to have crashed my forum completely.

Fatal error: Call to undefined function sportal_init() in /home/ladychaos/site/forum/index.php on line 198

Any ideas on what I can do? I know I can restore my forum (i'm not worried about that) but I want to know why this has happened?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: DragonKith on October 18, 2009, 08:11:04 PM
Why is the newest release of SimplePortal_2.3.1.tar.gz in this format i cant even upload to install it on my board at all.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on October 18, 2009, 08:25:57 PM
If your having trouble with that format, even though you should not be, you can extract it on your PC resave it as a zip format, then upload it again.

7-zip extracts most formats :)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: DragonKith on October 18, 2009, 08:45:17 PM
Here are the lists of files Simple Portal is asking me to edit


Index.php

SSI.php

/Sources/Admin.php

/Sources/BoardIndex.php

/Sources/display.php

/Sources/help.php

/Sources/Load.php

/Sources/ManagePermissions.php

/Sources/ManageServer.php

/Sources/QueryString.php

/Sources/Recent.php

/Sources/Subs.php

/Sources/Who.php

/Themes/Default/index.template.php

/Themes/default/Display.template.php


I'm not sure why its asking me to edit all of these files for this is where i am so confused on.Can someone explain this to me i am using a costume theme and using SMF 1.1.10

Title: Re: SimplePortal - 2.3 Released!
Post by: mirahalo on October 18, 2009, 09:04:28 PM
where exactly the mod is asking you to edit those files?

yes, the mod edit all those files, but you don't have to do that  the package manager will do all those edits for you

Quote from: 130860 on October 17, 2009, 12:00:27 AM

if you are using the default theme you don't have to click on the parser button at all, just download the SimplePortal_2.3.zip  file, then go to your admin panel in your forum, then package/ download packages/ Upload a Package
Package to Upload:   select the file you just donwload, SimplePortal_2.3.zip, click on upload and thats it! you install simpleportal on your forum.

the file you need to edit if you are using version 1.1.10 and using a custom theme is Themes/ your theme/index.template.php   we could make the edits for you, check: http://simpleportal.net/

if you are using version 2.0, you don't have to edit anything ;)

greetings!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on October 18, 2009, 09:51:47 PM
Quote from: LadyChaos on October 18, 2009, 07:44:32 PM
Tried to uninstall SP 2.3.1 from my forum (complete uninstall) I received no errors when testing the "uninstall" from the package manager. So I went ahead and did the uninstall through the package manager.

Got this error which seems to have crashed my forum completely.

Fatal error: Call to undefined function sportal_init() in /home/ladychaos/site/forum/index.php on line 198

Any ideas on what I can do? I know I can restore my forum (i'm not worried about that) but I want to know why this has happened?
Anyone?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on October 18, 2009, 10:00:16 PM
my guest will be that the package manager didn't uninstall sp properly, so, there still some sp code in you files, in your index.php file, search for this:

// Load SimplePortal.
   sportal_init();

and remove it.

greetings!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on October 19, 2009, 12:41:39 AM
Quote from: 130860 on October 18, 2009, 10:00:16 PM
my guest will be that the package manager didn't uninstall sp properly, so, there still some sp code in you files, in your index.php file, search for this:

// Load SimplePortal.
   sportal_init();

and remove it.

greetings!
Well I went ahead and replaced the files with  fresh smf core files, but thank you. If that was the case, how odd it didn't want to remove it.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Kimmie on October 19, 2009, 02:34:17 PM
Quote from: Kimmie on October 16, 2009, 03:01:43 PM
Seeing this error in my logs (and its only showing up under my name):

8: Undefined index: 1

File: /home/*****/public_html/Sources/PortalBlocks.php
Line: 2155


Any ideas? Thanks :)

Title: Re: SimplePortal - 2.3.1 Released!
Post by: duder673 on October 20, 2009, 05:01:46 AM
I have a question with the portal part of the mod.
I recently added a lot of info to my portal and it overlapped everything on the right side of it.


Is there a way to make it so that the portal block with all of that info resizes when the members are on different resolutions in firefox?

example: It looks fine at 1280x1024 but if it is at 1024x768 it looks bad (overlapping problem).
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 20, 2009, 05:25:36 AM
@Kimmie,
What version of SMF/SP?

@duder673,
Firstly I would recommend upgrading to SimplePortal 2.3.1. Your issue is occuring because you have a whole bunch of '_' in your middle block, use <hr /> instead.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 20, 2009, 06:04:22 AM
Sorry about the wait for some people. I have tried to answer all remaining issues, please post again if I miss you.

Quote from: Ron Jeremy on September 15, 2009, 08:45:12 PM
This version have little bug  :( In the IE blocks have a blank space on the end.

I think that you are referring to the padding for the block. That should be there. If you can post a link/image of the issue, then that would be great. Also which version of IE?

Quote from: NBK*Twitch on September 17, 2009, 08:09:21 PM
Quote from: Nathaniel on September 15, 2009, 02:12:26 AM
@BoZilla
Wow, did you edit that file with notepad or something? All the code is on the same line, which is never a good sign. Do you have a copy of the file from before you edited it? That would be more useful.

About the member's post, ask them which browser/s they use, and if they can post a screenshot of the issue.

@NBK*Twitch,
What text? If you are referring to the title of the block, then put 'text-align: center;' into the 'Custom Title Style' option.

Still hasn't centered. I even cleared cache to be sure of it.

Can you please post a link to the site where this issue is occuring?

Quote from: BoZilla on September 15, 2009, 12:29:34 PM
Quote from: Nathaniel on September 15, 2009, 02:12:26 AM
@BoZilla
Wow, did you edit that file with notepad or something? All the code is on the same line, which is never a good sign. Do you have a copy of the file from before you edited it? That would be more useful.

About the member's post, ask them which browser/s they use, and if they can post a screenshot of the issue.

@NBK*Twitch,
What text? If you are referring to the title of the block, then put 'text-align: center;' into the 'Custom Title Style' option.
That's weird! Try this one! ;)

Try upgrading to SimplePortal 2.3.1, that issue should be resolved now.

Quote from: karbaciun on September 28, 2009, 05:42:52 PM
Quote from: karbaciun on September 24, 2009, 09:09:24 AM
hi

this mod is in the version 2.3 very good.

but for me in the IE browser have a litte problem and it displayed in below image
in all theme ,but in fire fox have not problem
please help me.
tnx a lot

nobody can not help me?

What theme are you using? Can you post a link to your website?

Quote from: gisfreak on September 26, 2009, 01:41:50 PM
hello

i dunno whats wrong on my forum or my PC but it seems "Resizes images on portal" function seems have different result in each browser

in OPERA 10, those oversized pic will be cut in the right

in Firefox 3.5.3, the image will be exceed the center block boundary and goes to right, so it will overlap with right block

in google chrome 2, its have same result as firefox

in safari 4, its have same result as firefox

any clue bout this ?

i use SMF 1.1.10 with default themes from SMF and 6 other mods

regards, GISfreak



Bug with SP 2.3/SMF 1.1, fixed in SP 2.3.1.

@♪ JohnCcCcCc ♫,
I recommend that you report any Feature requests over at SimplePortal.net, they are likely to be missed here when the devs consider features to add to the newer versions of SP.

Quote from: camaronero on October 07, 2009, 12:35:52 PM
Quote from: camaronero on October 03, 2009, 11:02:29 AM
if someone enters a URL in the shoutbox I got the following error:
Fatal error: Maximum execution time of 30 seconds exceeded in / home / fact / public_html / forum / Sources / Subs.php on line 2004

any idea how to fix or block the url in shoutbox
Help Please

If you have the AEVA mod installed, then could you please temporarily uninstall it, to see if it fixes the issue?

Quote from: MrDby on October 04, 2009, 06:08:26 PM
should i just upload the files on the root of the site instead of mysite.com/forum?

No, install SimplePortal via the package manager. Could you please attach your index.php file?


Quote from: DaBrute on October 05, 2009, 01:26:38 PM
ANYBODY?

I didn't see you support request. Please link me to it, as I can't find it in this topic.

Quote from: 4b11l on October 05, 2009, 04:46:29 PM
Quote from: 4b11l on October 02, 2009, 06:03:55 PM
Quote from: karbaciun on September 28, 2009, 05:40:35 PM
Quote from: 4b11l on September 27, 2009, 10:02:38 PM
Hello,

For the latest version, where can I find the code for the advanced display option for the shoutbox to embed into boards?
I have a shoutbox on certain boards, but I want to be able to move the shoutbox to the top rather than on the bottom.

after add new shut box, click on the block and go to add block and then choose in bottom shutbox, then in the setting set position :)

Where is this at? I do not see a setting to set the shoutbox to the top of the board.

Bump.

Can someone atleast tell me where the code is and I can try to move it myself since volunteer support on this board seems scarce.

Use the arrows for the relevant block in the block list area.
Quote from: meehan09 on October 10, 2009, 09:44:47 AM
Since installing portal iam getting thease errors in admin cp - error logs!!

Paul        Today at 14:42:28
IP address ******************       
f520ffaedc80d893b095d324505d5b2c
Type of error: Undefined

http://www.exoticforums.co.uk//index.php?http://www.exoticforums.co.uk/
8: Undefined variable: fix
File: /home/reptiles/public_html/Sources/Subs-Portal.php
Line: 661



I hope your able to help me fix this and clear my error logs, has they filling up very quickly with thease errors!


Kindest Regards,
Paul

What version of SMF/SimplePortal?

Quote from: LadyChaos on October 16, 2009, 05:49:42 PM
I would like to give something to think about as a suggestion. :)


I am sure many of you are aware of Google's custom homepage if you are using Gmail, or Myspace's new profile layout (2.0). Basically, you can add applications or remove applications by rearranging blocks of information on your page.

I don't know how feasible this would be for SP but it would be very interesting and cool if there was a way for individual accounts to be able to "rearrange" the blocks how they would like to see them. Of course having a default, but then they would be able to customize it as they wish.

Good idea? Feasible? Already been done?

Any thoughts? :D


That is an idea that has been discussed by the dev team, which we will look at implementing at some stage. I think it would be awesome personally. ;)

@DragonKith,
Install SimplePortal via the SMF package manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject), you don't need to edit files unless it warns you about install errors.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on October 21, 2009, 12:38:33 PM
Well now due to popular demand, my members want the landing page back that SP offers, so I decided to reinstall but I am getting these errors while installing 2.3.1

1.   Execute Modification   ./index.php   Test failed
8.   Execute Modification   ./Sources/ManagePermissions.php   Test failed

The rest of it is fine, but I wonder what I can do to fix this? Both files are fresh core files so I know SP's code is not there anymore. (I did check)

Any ideas?

Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on October 21, 2009, 12:56:23 PM
you are using fresh files, thats odd, you could make those modifications manually or, if you want to, attach those files and I will made the edits for you ;)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on October 21, 2009, 01:02:21 PM
Quote from: 130860 on October 21, 2009, 12:56:23 PM
you are using fresh files, thats odd, you could make those modifications manually or, if you want to, attach those files and I will made the edits for you ;)
Well thank you for the offer but I think I will attempt to make the modifications using the parser (as I am enjoying learning to use PHP), if anything comes up, at least I'll have backup files. I'll post any issues I have if any. ;)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on October 21, 2009, 01:10:54 PM
Quote from: LadyChaos on October 21, 2009, 01:02:21 PM
Quote from: 130860 on October 21, 2009, 12:56:23 PM
you are using fresh files, thats odd, you could make those modifications manually or, if you want to, attach those files and I will made the edits for you ;)
Well thank you for the offer but I think I will attempt to make the modifications using the parser (as I am enjoying learning to use PHP), if anything comes up, at least I'll have backup files. I'll post any issues I have if any. ;)


Ah, OK, fair enough then.  ;)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on October 21, 2009, 01:30:15 PM
Quote from: 130860 on October 21, 2009, 01:10:54 PM
Quote from: LadyChaos on October 21, 2009, 01:02:21 PM
Quote from: 130860 on October 21, 2009, 12:56:23 PM
you are using fresh files, thats odd, you could make those modifications manually or, if you want to, attach those files and I will made the edits for you ;)
Well thank you for the offer but I think I will attempt to make the modifications using the parser (as I am enjoying learning to use PHP), if anything comes up, at least I'll have backup files. I'll post any issues I have if any. ;)


Ah, OK, fair enough then.  ;)
Well everything seemed to be working fine on modding the files and seeing the configuration area for SP. When I tried to use the option "front page or standalone" and load the landing page, it won't respond at all. The loading is very slow. You can see for yourself
http://www.ladychaosdnb.com/forum/index.php

Now the forum itself loads fine
http://www.ladychaosdnb.com/forum/index.php?action=forum

Did I miss something? I modified both of those files as the parser said to do, it all works fine from the admin area, but not from the index...
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on October 21, 2009, 01:39:32 PM
Quote from: LadyChaos on October 21, 2009, 01:30:15 PM
Quote from: 130860 on October 21, 2009, 01:10:54 PM
Quote from: LadyChaos on October 21, 2009, 01:02:21 PM
Quote from: 130860 on October 21, 2009, 12:56:23 PM
you are using fresh files, thats odd, you could make those modifications manually or, if you want to, attach those files and I will made the edits for you ;)
Well thank you for the offer but I think I will attempt to make the modifications using the parser (as I am enjoying learning to use PHP), if anything comes up, at least I'll have backup files. I'll post any issues I have if any. ;)


Ah, OK, fair enough then.  ;)
Well everything seemed to be working fine on modding the files and seeing the configuration area for SP. When I tried to use the option "front page or standalone" and load the landing page, it won't respond at all. The loading is very slow. You can see for yourself
http://www.ladychaosdnb.com/forum/index.php

Now the forum itself loads fine
http://www.ladychaosdnb.com/forum/index.php?action=forum

Did I miss something? I modified both of those files as the parser said to do, it all works fine from the admin area, but not from the index...
I think I fixed it, I disabled the shoutbox (deleted it) and everything loads up fine now... Too weird.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Tiribulus on October 21, 2009, 02:45:37 PM
Quote from: LadyChaos on October 21, 2009, 01:39:32 PM
<<< I think I fixed it, I disabled the shoutbox (deleted it) and everything loads up fine now... Too weird.

Good for you for wanting to figure it out yourself. Seriously. The shoutbox block is still there though it's empty. You would have caught it, but thought I'd mention it.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on October 21, 2009, 03:11:43 PM
Quote from: Tiribulus on October 21, 2009, 02:45:37 PM
Quote from: LadyChaos on October 21, 2009, 01:39:32 PM
<<< I think I fixed it, I disabled the shoutbox (deleted it) and everything loads up fine now... Too weird.

Good for you for wanting to figure it out yourself. Seriously. The shoutbox block is still there though it's empty. You would have caught it, but thought I'd mention it.
Thank you, haha I just noticed I still had the block there. Thanks for pointing that out. :)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Kimmie on October 22, 2009, 02:16:27 AM
Quote from: Nathaniel on October 20, 2009, 05:25:36 AM
@Kimmie,
What version of SMF/SP?


SMF 2.0 RC1.2
SimplePortal 2.3

Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 22, 2009, 02:22:52 AM
@LadyChaos,
Some people are having issues with the shoutobox. Do you have any BBC mods installed? Like the AEVA mod. Does the shoutbox work if you uninstall them?

@Kimmie,
I can't see any related code on line 2155 of a clean copy of the PortalBlocks.php file. Could you please attach your PortalBlocks.php file?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on October 22, 2009, 10:57:15 PM
Quote from: Nathaniel on October 22, 2009, 02:22:52 AM
@LadyChaos,
Some people are having issues with the shoutobox. Do you have any BBC mods installed? Like the AEVA mod. Does the shoutbox work if you uninstall them?
I have two BBC mods, the Aeva mod and the "tips and tricks" spoiler code BBC . I had both the shoutbox and Aeva running at the same time for quite a while without issues, until yesterday when I had to reinstall SP. I reinstalled SP before reinstalling Aeva this time. I still experienced that issue with the shoutbox without Aeva running or even in the smf files.

I had a thought about it possibly being the shoutbox and disabled it and now all is well. I just don't use the shoutbox. I had a similar issue happen with the AJAX chat mod a while back, I stopped using that as well. It just seems to cause a huge server load which I can't really find the cause for since my forum is small and only members can use the shoutbox (or back then the Ajax Chat).

It could just be that my server (since it's private) can't run a chat or shoutbox simply because of the heavy reliance between server/user calls for each message sent.  Performance gets shot to crap.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: gisfreak on October 22, 2009, 11:48:09 PM
QuoteFor users that are currently running SimplePortal 2.3; you can upgrade to 2.3.1 using the SimplePortal 2.3.1 installation package.

please explain in detail , i use v.2.3 and want to upgrade it
what should i do ?

should i just simply upload the new packages and install it ?

regards, GISfreak
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on October 22, 2009, 11:57:49 PM
Quote from: gisfreak on October 22, 2009, 11:48:09 PM
should i just simply upload the new packages and install it ?

Yes.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 23, 2009, 01:45:59 AM
Quote from: LadyChaos on October 22, 2009, 10:57:15 PM
Quote from: Nathaniel on October 22, 2009, 02:22:52 AM
@LadyChaos,
Some people are having issues with the shoutobox. Do you have any BBC mods installed? Like the AEVA mod. Does the shoutbox work if you uninstall them?
I have two BBC mods, the Aeva mod and the "tips and tricks" spoiler code BBC . I had both the shoutbox and Aeva running at the same time for quite a while without issues, until yesterday when I had to reinstall SP. I reinstalled SP before reinstalling Aeva this time. I still experienced that issue with the shoutbox without Aeva running or even in the smf files.

I had a thought about it possibly being the shoutbox and disabled it and now all is well. I just don't use the shoutbox. I had a similar issue happen with the AJAX chat mod a while back, I stopped using that as well. It just seems to cause a huge server load which I can't really find the cause for since my forum is small and only members can use the shoutbox (or back then the Ajax Chat).

It could just be that my server (since it's private) can't run a chat or shoutbox simply because of the heavy reliance between server/user calls for each message sent.  Performance gets shot to crap.

How many chats do your users post? The shoutbox isn't that server intensive, so I don't think its an issue with performance.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Kimmie on October 23, 2009, 01:31:59 PM
Quote from: Nathaniel on October 22, 2009, 02:22:52 AM

@Kimmie,
I can't see any related code on line 2155 of a clean copy of the PortalBlocks.php file. Could you please attach your PortalBlocks.php file?

attached
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 23, 2009, 05:47:01 PM
@Kimmie,
Do you have an theme with ID 1? If you go to your list of themes in the admin panel, the theme ID can be seen in the urls (like ";th=id", where id is the relevant theme id).
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Kimmie on October 23, 2009, 08:50:25 PM
Quote from: Nathaniel on October 23, 2009, 05:47:01 PM
@Kimmie,
Do you have an theme with ID 1? If you go to your list of themes in the admin panel, the theme ID can be seen in the urls (like ";th=id", where id is the relevant theme id).

k I must be missing something because none of mine have that. Only place it shows urls is on the Theme Settings page and there are no id's at the end of them. I also went to Current Theme and there isnt an ID at the end of those urls either.

Wouldnt the Default theme be theme 1?

Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 23, 2009, 08:58:43 PM
Quote from: Kimmie on October 23, 2009, 08:50:25 PM
Quote from: Nathaniel on October 23, 2009, 05:47:01 PM
@Kimmie,
Do you have an theme with ID 1? If you go to your list of themes in the admin panel, the theme ID can be seen in the urls (like ";th=id", where id is the relevant theme id).

k I must be missing something because none of mine have that. Only place it shows urls is on the Theme Settings page and there are no id's at the end of them. I also went to Current Theme and there isnt an ID at the end of those urls either.

Wouldnt the Default theme be theme 1?



I didn't mean the url setting, I meant the url being displayed by your browser when you view the admin pages. When you view the settings for a specific theme, it should have "th=id" in the url.

The default theme should be at ID 1.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: tommybishop on October 23, 2009, 10:43:46 PM
ok so i uploaded the sp mod... I am using 1.1.10, when i tried to install it said the Index.php failed to install correctly on the test, after reading through this thread a while i found a few occurences that were similar and when i tried what advice was given there, (install the index.php file manually) It now gives me this error message.

Fatal error: require_once() [function.require]: Failed opening required '/home/a8835704/public_html/Sources/PortalAdminMain.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a8835704/public_html/index.php on line 357

Please any help would be appreciated.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 23, 2009, 11:55:23 PM
@tommybishop,
What steps did you take? Did you try to modify that file before installing SimplePortal?

Also, could you please attach your index.php file to your next post.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: tommybishop on October 24, 2009, 12:07:53 AM
Ok, i backed out of where it was and tried to modify the file before i applied the mod, now i get this error message


Fatal error: require_once() [function.require]: Failed opening required '/home/a8835704/public_html/Sources/PortalAdminMain.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a8835704/public_html/index.php on line 356

Couldn't find an attachment option so below is the info on my Index.php file. thank you for the help sir.  any other info you need from me let me know

<?php
/**********************************************************************************
* index.php                                                                       *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1.10                                          *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006-2009 by:     Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/


/* This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly.  The most interesting part of this file is the action array in
the smf_main() function.  It is formatted as so:

'action-in-url' => array('Source-File.php', 'FunctionToCall'),

Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version 'SMF 1.1.10';

// Get everything started up...
define('SMF'1);
@
set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start microtime();

// Make sure some things simply do not exist.
foreach (array('db_character_set') as $variable)
if (isset($GLOBALS[$variable]))
unset($GLOBALS[$variable]);

// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');

// And important includes.
require_once($sourcedir '/QueryString.php');
require_once(
$sourcedir '/Subs.php');
require_once(
$sourcedir '/Errors.php');
require_once(
$sourcedir '/Load.php');
require_once(
$sourcedir '/Security.php');
// Using an old version of PHP?
if (@version_compare(PHP_VERSION'4.2.3') != 1)
require_once($sourcedir '/Subs-Compat.php');

// If $maintenance is set specifically to 2, then we're upgrading or something.
if (!empty($maintenance) && $maintenance == 2)
db_fatal_error();

// Connect to the MySQL database.
if (empty($db_persist))
$db_connection = @mysql_connect($db_server$db_user$db_passwd);
else
$db_connection = @mysql_pconnect($db_server$db_user$db_passwd);

// Show an error if the connection couldn't be made.
if (!$db_connection || !@mysql_select_db($db_name$db_connection))
db_fatal_error();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Seed the random generator?
if (empty($modSettings['rand_seed']) || mt_rand(1250) == 69)
smf_seed_generator();

// Determine if this is using WAP, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
$_REQUEST['wap2'] = 1;
elseif (isset(
$_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
$_REQUEST['imode'] = 1;
else
$_REQUEST['wap'] = 1;
}

if (!
defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));

// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' '')));

// Some cellphones can't handle output compression...
$modSettings['enableCompressedOutput'] = '0';
// !!! Do we want these hard coded?
$modSettings['defaultMaxMessages'] = 5;
$modSettings['defaultMaxTopics'] = 9;

// Wireless protocol header.
if (WIRELESS_PROTOCOL == 'wap')
header('Content-Type: text/vnd.wap.wml');
}

// Check if compressed output is enabled, supported, and not already being done.
if (!empty($modSettings['enableCompressedOutput']) && !headers_sent() && ob_get_length() == 0)
{
// If zlib is being used, turn off output compression.
if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler' || @version_compare(PHP_VERSION'4.2.0') == -1)
$modSettings['enableCompressedOutput'] = '0';
else
ob_start('ob_gzhandler');
}
// This makes it so headers can be sent!
if (empty($modSettings['enableCompressedOutput']))
ob_start();

// Register an error handler.
set_error_handler('error_handler');

// Start the session. (assuming it hasn't already been.)
loadSession();

// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());

// Call obExit specially; we're coming from the main area ;).
obExit(nullnulltrue);

// The main controlling function.
function smf_main()
{
global $modSettings$settings$user_info$board$topic$maintenance$sourcedir;

// Special case: session keep-alive.
if (isset($_GET['action']) && $_GET['action'] == 'keepalive')
die;

// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board's information.
loadBoard();

// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// Load the current user's permissions.
loadPermissions();

// Do some logging, unless this is an attachment, avatar, theme option or XML feed.
if (empty($_REQUEST['action']) || !($_REQUEST['action'] == 'portal' && isset($_GET['xml'])) && !in_array($_REQUEST['action'], array('dlattach''jsoption''.xml')))
{
// Log this user as online.
writeLog();

// Track forum statistics and hits...?
if (!empty($modSettings['hitStats']))
trackStats(array('hits' => '+'));
}

// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
// You can only login.... otherwise, you're getting the "maintenance mode" display.
if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'logout'))
{
require_once($sourcedir '/LogInOut.php');
return $_REQUEST['action'] == 'login2' 'Login2' 'Logout';
}
// Don't even try it, sonny.
else
{
require_once($sourcedir '/Subs-Auth.php');
return 'InMaintenance';
}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && !(!empty($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && !empty($_REQUEST['type']) && $_REQUEST['type'] == 'avatar') && !(empty($_REQUEST['action']) && empty($board) && empty($topic) && $modSettings['sp_portal_mode'] == 1) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa''login''login2''register''register2''reminder''activate''smstats''help''verificationcode'))))
{
require_once($sourcedir '/Subs-Auth.php');
return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{

// Go catch it boy! Catch it!
$sp_action sportal_catch_action();
if ($sp_action)
return $sp_action;

// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir '/BoardIndex.php');
return 'BoardIndex';
}
// Topic is empty, and action is empty.... MessageIndex!

elseif (empty($topic))
{
require_once($sourcedir '/MessageIndex.php');
return 'MessageIndex';
}
// Board is not empty... topic is not empty... action is empty.. Display!
else
{
require_once($sourcedir '/Display.php');
return 'Display';
}
}

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php''Activate'),
'admin' => array('Admin.php''Admin'),
'announce' => array('Post.php''AnnounceTopic'),
'ban' => array('ManageBans.php''Ban'),
'boardrecount' => array('Admin.php''AdminBoardRecount'),
'buddy' => array('Subs-Members.php''BuddyListToggle'),
'calendar' => array('Calendar.php''CalendarMain'),
'cleanperms' => array('Admin.php''CleanupPermissions'),
'collapse' => array('Subs-Boards.php''CollapseCategory'),
'convertentities' => array('Admin.php''ConvertEntities'),
'convertutf8' => array('Admin.php''ConvertUtf8'),
'coppa' => array('Register.php''CoppaForm'),
'deletemsg' => array('RemoveTopic.php''DeleteMessage'),
'detailedversion' => array('Admin.php''VersionDetail'),
'display' => array('Display.php''Display'),
'dlattach' => array('Display.php''Download'),
'dumpdb' => array('DumpDatabase.php''DumpDatabase2'),
'editpoll' => array('Poll.php''EditPoll'),
'editpoll2' => array('Poll.php''EditPoll2'),
'featuresettings' => array('ModSettings.php''ModifyFeatureSettings'),
'featuresettings2' => array('ModSettings.php''ModifyFeatureSettings2'),
'findmember' => array('Subs-Auth.php''JSMembers'),
'forum' => array('BoardIndex.php''BoardIndex'),
'portal' => array('PortalMain.php''sportal_main'),
'manageportal' => array('PortalAdminMain.php''sportal_admin_main'),
'help' => array('Help.php''ShowHelp'),
'globalhf' => array('globalhf.php''globalhf'),
'helpadmin' => array('Help.php''ShowAdminHelp'),
'im' => array('PersonalMessage.php''MessageMain'),
'jsoption' => array('Themes.php''SetJavaScript'),
'jsmodify' => array('Post.php''JavaScriptModify'),
'lock' => array('LockTopic.php''LockTopic'),
'lockVoting' => array('Poll.php''LockVoting'),
'login' => array('LogInOut.php''Login'),
'login2' => array('LogInOut.php''Login2'),
'logout' => array('LogInOut.php''Logout'),
'maintain' => array('Admin.php''Maintenance'),
'manageattachments' => array('ManageAttachments.php''ManageAttachments'),
'manageboards' => array('ManageBoards.php''ManageBoards'),
'managecalendar' => array('ManageCalendar.php''ManageCalendar'),
'managesearch' => array('ManageSearch.php''ManageSearch'),
'markasread' => array('Subs-Boards.php''MarkRead'),
'membergroups' => array('ManageMembergroups.php''ModifyMembergroups'),
'mergetopics' => array('SplitTopics.php''MergeTopics'),
'mlist' => array('Memberlist.php''Memberlist'),
'modifycat' => array('ManageBoards.php''ModifyCat'),
'modifykarma' => array('Karma.php''ModifyKarma'),
'modlog' => array('Modlog.php''ViewModlog'),
'movetopic' => array('MoveTopic.php''MoveTopic'),
'movetopic2' => array('MoveTopic.php''MoveTopic2'),
'news' => array('ManageNews.php''ManageNews'),
'notify' => array('Notify.php''Notify'),
'notifyboard' => array('Notify.php''BoardNotify'),
'optimizetables' => array('Admin.php''OptimizeTables'),
'packageget' => array('PackageGet.php''PackageGet'),
'packages' => array('Packages.php''Packages'),
'permissions' => array('ManagePermissions.php''ModifyPermissions'),
'pgdownload' => array('PackageGet.php''PackageGet'),
'pm' => array('PersonalMessage.php''MessageMain'),
'post' => array('Post.php''Post'),
'post2' => array('Post.php''Post2'),
'postsettings' => array('ManagePosts.php''ManagePostSettings'),
'printpage' => array('Printpage.php''PrintTopic'),
'profile' => array('Profile.php''ModifyProfile'),
'profile2' => array('Profile.php''ModifyProfile2'),
'quotefast' => array('Post.php''QuoteFast'),
'quickmod' => array('Subs-Boards.php''QuickModeration'),
'quickmod2' => array('Subs-Boards.php''QuickModeration2'),
'recent' => array('Recent.php''RecentPosts'),
'regcenter' => array('ManageRegistration.php''RegCenter'),
'register' => array('Register.php''Register'),
'register2' => array('Register.php''Register2'),
'reminder' => array('Reminder.php''RemindMe'),
'removetopic2' => array('RemoveTopic.php''RemoveTopic2'),
'removeoldtopics2' => array('RemoveTopic.php''RemoveOldTopics2'),
'removepoll' => array('Poll.php''RemovePoll'),
'repairboards' => array('RepairBoards.php''RepairBoards'),
'reporttm' => array('SendTopic.php''ReportToModerator'),
'reports' => array('Reports.php''ReportsMain'),
'requestmembers' => array('Subs-Auth.php''RequestMembers'),
'search' => array('Search.php''PlushSearch1'),
'search2' => array('Search.php''PlushSearch2'),
'sendtopic' => array('SendTopic.php''SendTopic'),
'serversettings' => array('ManageServer.php''ModifySettings'),
'serversettings2' => array('ManageServer.php''ModifySettings2'),
'smileys' => array('ManageSmileys.php''ManageSmileys'),
'smstats' => array('Stats.php''SMStats'),
'spellcheck' => array('Subs-Post.php''SpellCheck'),
'splittopics' => array('SplitTopics.php''SplitTopics'),
'stats' => array('Stats.php''DisplayStats'),
'sticky' => array('LockTopic.php''Sticky'),
'theme' => array('Themes.php''ThemesMain'),
'trackip' => array('Profile.php''trackIP'),
'about:mozilla' => array('Karma.php''BookOfUnknown'),
'about:unknown' => array('Karma.php''BookOfUnknown'),
'unread' => array('Recent.php''UnreadTopics'),
'unreadreplies' => array('Recent.php''UnreadTopics'),
'viewErrorLog' => array('ManageErrors.php''ViewErrorLog'),
'viewmembers' => array('ManageMembers.php''ViewMembers'),
'viewprofile' => array('Profile.php''ModifyProfile'),
'verificationcode' => array('Register.php''VerificationCode'),
'vote' => array('Poll.php''Vote'),
'viewquery' => array('ViewQuery.php''ViewQuery'),
'who' => array('Who.php''Who'),
'.xml' => array('News.php''ShowXmlFeed'),
);

if (!empty($context['disable_sp']))
unset($actionArray['portal'], $actionArray['forum']);

// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
// Catch the action with the theme?
if (!empty($settings['catch_action']))
{
require_once($sourcedir '/Themes.php');
return 'WrapAction';
}

// Fall through to the board index then...
require_once($sourcedir '/BoardIndex.php');
return 'BoardIndex';
}

// Otherwise, it was set - so let's go to that action.
require_once($sourcedir '/' $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}

?>
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Tiribulus on October 24, 2009, 12:14:10 AM
He meant attach is, as an attachment, not include the contents in a post. Just saving you some time and him having to tell you.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: tommybishop on October 24, 2009, 12:19:19 AM
understood, couldn't find an attachment button anywhere so i did it that way, as i explained in my previous post
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 24, 2009, 12:38:33 AM
Quote from: tommybishop on October 24, 2009, 12:19:19 AM
understood, couldn't find an attachment button anywhere so i did it that way, as i explained in my previous post


Click on "additional options" when you are making a post.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: tommybishop on October 24, 2009, 12:52:39 AM
awesome, thank you very much, i edited my above post to include the index.php file in an attachment.  Sorry about that, been spending so much time on trying to set the forum up i haven't had a great chance to check out how to work with it.  Thanks again,  Any ideas on why it won't install correctly?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on October 24, 2009, 01:22:29 AM
Quote from: Nathaniel on October 23, 2009, 01:45:59 AM
Quote from: LadyChaos on October 22, 2009, 10:57:15 PM
Quote from: Nathaniel on October 22, 2009, 02:22:52 AM
@LadyChaos,
Some people are having issues with the shoutobox. Do you have any BBC mods installed? Like the AEVA mod. Does the shoutbox work if you uninstall them?
I have two BBC mods, the Aeva mod and the "tips and tricks" spoiler code BBC . I had both the shoutbox and Aeva running at the same time for quite a while without issues, until yesterday when I had to reinstall SP. I reinstalled SP before reinstalling Aeva this time. I still experienced that issue with the shoutbox without Aeva running or even in the smf files.

I had a thought about it possibly being the shoutbox and disabled it and now all is well. I just don't use the shoutbox. I had a similar issue happen with the AJAX chat mod a while back, I stopped using that as well. It just seems to cause a huge server load which I can't really find the cause for since my forum is small and only members can use the shoutbox (or back then the Ajax Chat).

It could just be that my server (since it's private) can't run a chat or shoutbox simply because of the heavy reliance between server/user calls for each message sent.  Performance gets shot to crap.

How many chats do your users post? The shoutbox isn't that server intensive, so I don't think its an issue with performance.
Well my members are chatty. On average, there is about 20-30 shoutbox messages a day. I tried toggling off/on the cache and minimizing the amount stored by the shoutbox, even put a 30 second delay. Nothing seemed to help.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 24, 2009, 04:14:31 AM
@tommybishop,
Install the mod (ignoring any errors for the index.php file) then upload the attached file.

@LadyChaos,
20-30 per day isn't really that many shouts, I was thinking that you might have performance issues with say 10+ per minute. Although if your users constantly refresh, or you have the autorefresh turned on, then that would put performance down quite a bit.

Is your issue happening frequently or constantly? If constantly, then performance is an unlikely cause.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on October 24, 2009, 06:20:55 PM
Quote from: Nathaniel on October 24, 2009, 04:14:31 AM

@LadyChaos,
20-30 per day isn't really that many shouts, I was thinking that you might have performance issues with say 10+ per minute. Although if your users constantly refresh, or you have the autorefresh turned on, then that would put performance down quite a bit.

Is your issue happening frequently or constantly? If constantly, then performance is an unlikely cause.
Well basically all was well ( for a least a month or so after install) then the shoutbox decided to go haywire out of the blue. So I would say it was a one time occurrence. It could be possible that someone was auto refreshing too much and froze it up, but then when I uninstalled/reinstalled, the shoutbox was doing the same thing. Hence why I decided to delete it.

The only thing I can think of that may or may not have affected it, would be a new theme I installed, but I had the theme on there for a little while before that happened and had no issues.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: FFSFFS on October 24, 2009, 06:33:32 PM
I updated my board and ever since then each time I try to edit SimplePortal through the administrator, I get this error:
"Fatal error: adminmain() [function.require]: Failed opening required '/home/blizz/public_html/forum/Sources/SPortalAdmin2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/blizz/public_html/forum/Sources/Admin.php on line 624"

any clue whats wrong?
awesome mod btw!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 24, 2009, 07:53:20 PM
@LadyChaos,
Was there any specific content that had been posted in the shoutbox recently that had caused the issue? Can you check the shouts in your database (table: 'smf_sp_shouts') to see if the 'body' of the latest shouts (with the highest 'id_shout' values) contain any bbc or text that might be causing the issue?

Quote from: FFSFFS on October 24, 2009, 06:33:32 PM
I updated my board and ever since then each time I try to edit SimplePortal through the administrator, I get this error:
"Fatal error: adminmain() [function.require]: Failed opening required '/home/blizz/public_html/forum/Sources/SPortalAdmin2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/blizz/public_html/forum/Sources/Admin.php on line 624"

any clue whats wrong?
awesome mod btw!

What version of SimplePortal are you running? The SPortalAdmin2.php file was removed from SimplePortal as of version 2.3.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: FFSFFS on October 24, 2009, 08:15:39 PM
ok, so i did a mistake buit managed to fix it somehow :P, so I reinstalled the newest version of Simple portal, and when turning it on, I got this error:
"Type Action Description
1. Execute Modification ./index.php Test successful
  1. Replace ./index.php Test successful
  2. Replace ./index.php Test successful

2. Execute Modification ./Sources/Subs.php Test failed
  1. Replace ./Sources/Subs.php Test failed (Ignore Errors)
  2. Replace ./Sources/Subs.php Test failed
  3. Replace ./Sources/Subs.php Test failed
  4. Replace ./Sources/Subs.php Test failed
"

but I continued on with the installation, it dosen't give me a SimplePortal tab now.

thanks for the help earlier, I tend to be slower with these things :P.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 24, 2009, 08:18:49 PM
@FFSFFS,
Can you please attach your sources/Subs.php file?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: FFSFFS on October 24, 2009, 08:29:28 PM
thank you.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 24, 2009, 09:45:48 PM
@FFSFFS,
Install SimplePortal and then upload the attached file.

Not sure why the install process wasn't working. I didn't have an issues at all, when I manually performed the edits to that file.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: FFSFFS on October 24, 2009, 10:51:48 PM
after installing it again, I recieved more errors with the new Subs.php you gave me; my entire forum can't be accessed, I'm recieving the error:

"Parse error: syntax error, unexpected '*' in /home/blizz/public_html/forum/Sources/Subs.php on line 906"
Title: Re: SimplePortal - 2.3.1 Released!
Post by: FFSFFS on October 24, 2009, 10:55:17 PM
sorry, I reuploaded the Subs.php I had uploaded earlier for you, and now I can access my forum but I still recieve this error when trying to edit SimplePortal:
"Fatal error: adminmain() [function.require]: Failed opening required '/home/blizz/public_html/forum/Sources/SPortalAdmin2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/blizz/public_html/forum/Sources/Admin.php on line 670"

on the modifications page, it claims to be version 2.3.1 .
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 24, 2009, 11:35:44 PM
@FFSFFS,
Can you please attach your 'sources/Admin.php' file?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: FFSFFS on October 25, 2009, 01:02:19 AM
thanks.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on October 25, 2009, 01:16:32 AM
@FFSFFS,
I don't see any issues with that file, or SimplePortal installed. Can you please install SimplePortal 2.3.1 and then attach that file (updated) if you get that error again?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: DragonKith on October 25, 2009, 04:16:53 PM
I just recently installed Simple Portal 2.3 and for some reason i cant seem to upgrade it to the newest verison i didn't see a download button on my admin panel can someone help me.


Thank you

Title: Re: SimplePortal - 2.3.1 Released!
Post by: Kimmie on October 25, 2009, 08:15:11 PM
Quote from: Nathaniel on October 23, 2009, 08:58:43 PM
Quote from: Kimmie on October 23, 2009, 08:50:25 PM
Quote from: Nathaniel on October 23, 2009, 05:47:01 PM
@Kimmie,
Do you have an theme with ID 1? If you go to your list of themes in the admin panel, the theme ID can be seen in the urls (like ";th=id", where id is the relevant theme id).

k I must be missing something because none of mine have that. Only place it shows urls is on the Theme Settings page and there are no id's at the end of them. I also went to Current Theme and there isnt an ID at the end of those urls either.

Wouldnt the Default theme be theme 1?



I didn't mean the url setting, I meant the url being displayed by your browser when you view the admin pages. When you view the settings for a specific theme, it should have "th=id" in the url.

The default theme should be at ID 1.

Correct, it is. I have 4 custom themes installed and they are numbered 2 thru 5. I just noticed that the error only occurs when I change to the default theme and then try and view the portal page.

8: Undefined index: 1
File: /home/****/public_html/Sources/PortalBlocks.php
Line: 2155

I dont let my members use that theme, which is why it is only happening under my name (I change to that theme when I need to install mods, etc). that also means that there is a problem with it on that theme apparently. Any Ideas what?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Jrock2394 on November 01, 2009, 02:29:41 PM
I have this code set for my "home" and "forum" button, but when i click the home button it takes me to the forum. What do i have to change so it takes me to the portal instead of the forum.
        // Show the [home] button.
         echo '<li><a href="', $scripturl, '?action=home">' , $txt[103] , '</a></li>';
           
       // Show the [forum] button.
         echo '<li><a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a></li>';
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on November 01, 2009, 03:09:29 PM
        // Show the [home] button.
         echo '<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
           
       // Show the [forum] button.
         echo '<li><a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a></li>';


Change to this.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Jrock2394 on November 01, 2009, 03:15:58 PM
Thank you btw, great mod  :D
Title: Re: SimplePortal - 2.3.1 Released!
Post by: PRaDiUS on November 02, 2009, 06:18:18 PM
When I am adding a new block to my portal there is nowhere in advanced display options to make a block display on SMF Media Gallery. Currently the only way I can make a block display on the gallery is if I display it "Everywhere". Is there any way I can fix this? Will you be adding a gallery option to the advanced block display in the future?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on November 02, 2009, 08:36:52 PM
Quote from: PRaDiUS on November 02, 2009, 06:18:18 PM
When I am adding a new block to my portal there is nowhere in advanced display options to make a block display on SMF Media Gallery. Currently the only way I can make a block display on the gallery is if I display it "Everywhere". Is there any way I can fix this? Will you be adding a gallery option to the advanced block display in the future?

You should be able to use the Custom Display Options (Check Advanced after the display option dropdown) and write "~gallery"  in the text box. That should display the block on the gallery pages.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: PRaDiUS on November 02, 2009, 10:43:49 PM
Tried that, but unfortunately its not working either.

Quote from: Eliana Tamerin on November 02, 2009, 08:36:52 PM
You should be able to use the Custom Display Options (Check Advanced after the display option dropdown) and write "~gallery"  in the text box. That should display the block on the gallery pages.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 03, 2009, 12:12:59 AM
@DragonKith,
You have to download SP 2.3.1, then upload it using the package manager. Then there should be an 'upgrade' option next to the SimplePortal 2.3.1 package in the package list.

@Kimmie,
I am unsure what is going wrong at the moment, the main function seems to work fine. Try upgrading to SP 2.3.1 (if you haven't already) to see if that fixes the issue at all. Otherwise, I can try to debug it on your site.

@PRaDiUS,
Try '~action|mgallery'.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: PRaDiUS on November 03, 2009, 11:08:44 PM
That worked like a charm. Thank you much! = )

Quote from: Nathaniel on November 03, 2009, 12:12:59 AM
@PRaDiUS,
Try '~action|mgallery'.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: marcimila on November 05, 2009, 04:34:17 AM
Simple Portal 2.3.1 increase my database usage very much!
Before I was with tiny portal with lateral bar and shoutbox, now i passed to simple portal and I see an increase of queries....

Report below the last statistics, how you can see sice 30-10 there is an increase... :-( I hope the future versions are more optimized.

Day     Disk Usage     Connects     Queries     (Conueries)     (Ratio)
2009-10-06    232.789 MB    27231    578153    1.259 MCn    0.849

2009-10-08    235.930 MB    30805    667782    1.438 MCn    0.867

2009-10-10    233.891 MB    25656    562426    1.204 MCn    0.877

2009-10-12    236.098 MB    23985    511875    1.111 MCn    0.854

2009-10-14    238.242 MB    25509    550651    1.188 MCn    0.863

2009-10-16    239.773 MB    26036    571702    1.223 MCn    0.878

2009-10-18    236.371 MB    33248    746604    1.578 MCn    0.898

2009-10-20    238.340 MB    26027    551185    1.202 MCn    0.847

2009-10-22    237.055 MB    26971    570360    1.245 MCn    0.846

2009-10-24    238.824 MB    22720    476218    1.044 MCn    0.838

2009-10-26    240.277 MB    31080    666612    1.444 MCn    0.858

2009-10-28    239.832 MB    45669    776504    1.918 MCn    0.680

2009-10-30    241.430 MB    64317    1020374    2.628 MCn    0.635

2009-11-01       82764    1469487    3.539 MCn    0.710

2009-11-03       87935    1447747    3.646 MCn    0.659


Totals:    238.008 MB    1181543    22703587    52.242 MCn    0.769

Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 05, 2009, 04:44:46 AM
@marcimila,
What version of SMF are you using? If you are worried about the shoutbox, then the shoutbox for SMF 2 uses caching to reduce the load.

We are certainly going to try and optimize SimplePortal as much as possible, although if you have a huge number of blocks, then there is little that can be done to avoid some increase in db queries.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on November 05, 2009, 05:57:40 PM
Got these two errors after I added a php script to a block.
Any ideas?


8: Undefined offset: 7
File: /home/site/Themes/default/PortalArticles.template.php (portal_above sub template - eval?)
Line: 30
   

8: Undefined variable: title
File: /home/site/Themes/default/PortalArticles.template.php (portal_above sub template - eval?)
Line: 34
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 05, 2009, 07:12:25 PM
@LadyChaos,
Can you post the PHP code? That is likely an issue with the code that you added to the block.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on November 05, 2009, 08:09:00 PM
Quote from: Nathaniel on November 05, 2009, 07:12:25 PM
@LadyChaos,
Can you post the PHP code? That is likely an issue with the code that you added to the block.
Sure :)
<?php
$ip 
"87.98.159.91";
$port "9042";
$fp = @fsockopen($ip,$port,$errno,$errstr,1);
if (!
$fp

$listeners "0;";

else

fputs($fp"GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
while (!feof($fp)) 
{
$info fgets($fp);
}
$split explode(','$info);
if ($split[1] == "0" )
{
$listeners "0";
}
else
{
$listeners $split[0];
}
}
echo 
$listeners;
?>

Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on November 05, 2009, 08:20:22 PM
You shouldn't need to post the intro and trailing <?php or ?> codes. Those are automatically inserted by the php block's rendering code.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 05, 2009, 08:22:48 PM
Okay, so that code doesn't even have 30 lines, I guess it isn't the problem.

The 'eval' message makes it harder to work out where the real issue is, can you disable template eval temporily?

You can 'Disable template eval' via this mod: http://custom.simplemachines.org/mods/index.php?mod=2054 (http://custom.simplemachines.org/mods/index.php?mod=2054)

Or you can run this db query:
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on November 05, 2009, 08:24:30 PM
Quote from: Eliana Tamerin on November 05, 2009, 08:20:22 PM
You shouldn't need to post the intro and trailing <?php or ?> codes. Those are automatically inserted by the php block's rendering code.
I removed the intro/trailing tags as you suggested right now. Still getting the same errors.  :-[

Good to know for later use though. :)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on November 05, 2009, 08:34:39 PM
Quote from: Nathaniel on November 05, 2009, 08:22:48 PM
Okay, so that code doesn't even have 30 lines, I guess it isn't the problem.

The 'eval' message makes it harder to work out where the real issue is, can you disable template eval temporily?

You can 'Disable template eval' via this mod: http://custom.simplemachines.org/mods/index.php?mod=2054 (http://custom.simplemachines.org/mods/index.php?mod=2054)

Or you can run this db query:
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
I installed the mod and disabled the eval thing. Here are the error codes I get now.

8: Undefined offset: 7
File: /home/site/Sources/PortalBlocks.php(3419) : eval()'d code
Line: 29
   
8: Undefined variable: title
File: /home/site/Sources/PortalBlocks.php(3419) : eval()'d code
Line: 33
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 05, 2009, 08:48:33 PM
That seems to be an error with a PHP block, although I don't think that its an issue with the code you posted above. Do you have any other PHP blocks?

You can turn the template eval back on.

Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on November 05, 2009, 08:54:12 PM
Quote from: Nathaniel on November 05, 2009, 08:48:33 PM
That seems to be an error with a PHP block, although I don't think that its an issue with the code you posted above. Do you have any other PHP blocks?

You can turn the template eval back on.
I have 3 in total. I like that disable eval mod, thanks for finding that.

Here are the other two
$ip = "87.98.159.91";
$port = "9042";
$fp = @fsockopen($ip,$port,$errno,$errstr,1);
if (!$fp)
{
$title = "The server is offline  ";
}
else
{
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
while (!feof($fp))
{
$info = fgets($fp);
}
$info = str_replace('</body></html>', "", $info);
$split = explode(',', $info);
if (empty($split[6]) )
{
$title = "The current song is not available  ";
}
else
{
$count = count($split);
$i = "6";
while($i<=$count)
{
if ($i > 6)
{
$title .= ", " . $split[$i];
}
else
{
$title .= $split[$i];
}
$i++;
}
}
}
$title = substr($title, 0, -2);
echo $title;


and this one I have had for a while.
global $db_prefix, $scripturl, $memberContext, $color_profile, $txt;

loadLanguage('Profile');

// Ids of users to exclude. (2,3,4)
$exclude_members = array();

$request = db_query("
SELECT ID_MEMBER
FROM {$db_prefix}members
WHERE is_activated = 1" . (!empty($exclude_members) ? "
AND ID_MEMBER NOT IN (" . implode(',', $exclude_members) . ")" : "") . "
ORDER BY RAND()
LIMIT 1", __FILE__, __LINE__);
list ($member) = mysql_fetch_row($request);
mysql_free_result($request);

if (empty($member))
return 'No members.';

loadMemberData($member);
loadMemberContext($member);

$member_info = $memberContext[$member];

if (empty($modSettings['MemberColorLinkInstalled']) && sp_loadColors($member) !== false)
$member_info['colored_link'] = '<strong><a href="' . $scripturl . '?action=profile;u=' . $member_info['id'] . '" title="' . $txt[92] . ' ' . $member_info['name'] . '">' . $color_profile[$member]['colored_name'] . '</a></strong>';

echo '
<div style="text-align: center; width: %99;">';

// Colored member link.
echo '
', $member_info['colored_link'], '<br />';

// Member title.
if (!empty($member_info['title']))
echo '
', $member_info['title'], '<br />';

// Member group.
if (!empty($member_info['group']))
echo '
', $member_info['group'], '<br />';
else
echo '
', $member_info['post_group'], '<br />';

// Group stars.
echo '
', $member_info['group_stars'], '<br />';

// Member avatar.
if (!empty($member_info['avatar']['image']))
echo '
<br />
', $member_info['avatar']['image'], '<br />';

// Personal text.
if (!empty($member_info['blurb']))
echo '
', $member_info['blurb'], '<br />';

// Online image.
echo '
<img src="', $member_info['online']['image_href'], '" alt="', $member_info['online']['text'], '" /> ', $member_info['online']['text'], '<br />';

// Gender name and image.
if (!empty($member_info['gender']['name']))
echo '
', $member_info['gender']['image'], ' ', $member_info['gender']['name'], '<br />';

echo '
<ul style="list-style-type: none; text-align: left; padding: 0px 0px 0px 5px;">';

// Post count.
echo '
<li><strong>', $txt[21], ':</strong> ', $member_info['posts'], '</li>';

// Location.
if (!empty($member_info['location']))
echo '
<li><strong>', $txt[227], ':</strong> ', $member_info['location'], '</li>';

// Date registered.
echo '
<li><strong>', $txt[233], ':</strong> ', $member_info['registered'], '</li>';

// Last login.
echo '
<li><strong>', $txt['lastLoggedIn'], ':</strong> ', $member_info['last_login'], '</li>';

echo '
</ul>
</div>';
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 05, 2009, 09:00:09 PM
The issues were with the first block, the code below should work:
$ip = "87.98.159.91";
$port = "9042";
$fp = @fsockopen($ip,$port,$errno,$errstr,1);
if (!$fp)
{
$title = "The server is offline  ";
}
else
{
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
while (!feof($fp))
{
$info = fgets($fp);
}
$info = str_replace('</body></html>', "", $info);
$split = explode(',', $info);
$title = '';
if (empty($split[6]) )
{
$title = "The current song is not available  ";
}
else
{
$count = count($split);
$i = "6";
while($i<$count)
{
if ($i > 6)
{
$title .= ", " . $split[$i];
}
else
{
$title .= $split[$i];
}
$i++;
}
}
}
$title = substr($title, 0, -2);
echo $title;


You needed to define the $title variable, before you use the .= operator on it.

You also had an 'off-by-one' error with the while loop, arrays are indexed starting at the number "0", there isn't an entry at the index "count($array)" but your code was assuming that there was with the '<=' operator, I changed it to the '<' operator.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on November 05, 2009, 09:08:15 PM
Quote from: Nathaniel on November 05, 2009, 09:00:09 PM
The issues were with the first block, the code below should work:
$ip = "87.98.159.91";
$port = "9042";
$fp = @fsockopen($ip,$port,$errno,$errstr,1);
if (!$fp)
{
$title = "The server is offline  ";
}
else
{
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
while (!feof($fp))
{
$info = fgets($fp);
}
$info = str_replace('</body></html>', "", $info);
$split = explode(',', $info);
$title = '';
if (empty($split[6]) )
{
$title = "The current song is not available  ";
}
else
{
$count = count($split);
$i = "6";
while($i<$count)
{
if ($i > 6)
{
$title .= ", " . $split[$i];
}
else
{
$title .= $split[$i];
}
$i++;
}
}
}
$title = substr($title, 0, -2);
echo $title;


You needed to define the $title variable, before you use the .= operator on it.

You also had an 'off-by-one' error with the while loop, arrays are indexed starting at the number "0", there isn't an entry at the index "count($array)" but your code was assuming that there was with the '<=' operator, I changed it to the '<' operator.
Ah I see. I had assumed it was the other code since it didn't pop up those errors until after I added it. Well that was my goof then, still learning php :). Thank you for helping me with fixing it. It works just fine now.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Livewire1 on November 06, 2009, 10:56:56 AM
Hi I installed SP And i have to say how easy it is to setup and configure what you need.

I only wanted it to have a shout box and a couple of adds on my forums then I saw the rss feed.

All very nice.
My problem is though that since i installed it and enabled the intergration I keep getting logged out and refused back in!!
Everytime I click on a link admin or otherwise It kicks me to the login screen!! at one point I could not log in for over an hour, My Members was starting to get annoyed as well as the same was happening to them.
I have managed to disable the SP now and i have not been kicked out again and managed to access all the admin functions without being kicked.. So i can only assume that it is SP doing it.

Thanks

Livewire
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 06, 2009, 05:54:06 PM
@Livewire1,
What version of SMF are you using?
Did the issue start occuring, straight after you swapped to the 'Integration' mode?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Livewire1 on November 06, 2009, 06:36:46 PM
Thanks for your reply.
I started using it with the charter release version RC2.

I have now uninstalled it while waiting for a reply..

Sorry and yes all my loging in and out problems started when i intergrated SP

Livewire
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 06, 2009, 07:07:28 PM
Hmm, still unclear about when the errors started appearing. Did they appear as soon as you installed SimplePortal? Or did they start occuring when you changed the 'SP mode' setting to 'Integration'.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Livewire1 on November 06, 2009, 07:57:26 PM
The Errors started around the time that i enabled intergration. I had installed SP on a fresh installation RC2 which had upgraded 1.1.10 I was using AdManagment on the last version and read that SP was a better alround way to display a shoutbox and an Ad.

I had the shoutbox running first which at that point did not cause any problems then I setup an Advert with google ads  that worked fine, And i did not notice any errors at that point. Then I noticed an RSS feeder, So I then set that up, all within a few minutes of each other really, The forum started logging me off until a point where it would not allow me access, I eventually managed to get in after around an hour of trying !! it would let me in but oly for a few seconds before logging me out, I Disabled SP and then things were fine UNTIL the last hour where now I have been re logged out and I cannot regain access, I did momentarily but as soon as I click on the admin link it throws me out again.

I hope this is now clear on the chain of events :)

Thank you for your time rerading this.

Livewire
Title: Re: SimplePortal - 2.3.1 Released!
Post by: NaWaR on November 07, 2009, 06:35:47 AM
Sinan God Bless you for this mod it's really great looking and very usefull... i dunno if i can post the forum link as a demo link for the mod www.forum.4syr.com  but i just want you to take a look ... no words man to thank you and turkey Our Neighbor Country  ;)

Greets NaWaR
Title: Re: SimplePortal - 2.3.1 Released!
Post by: NaWaR on November 09, 2009, 12:16:58 AM
i have a small request please  as update for the portal...

can you make a mobile version for the portal.. so when some one will log in using mobile phone he will get the mobile portal..
it will be as new theme or something like that .. and will appear only the most important information or newest posts or something like that ...

thank you.

Glad to have smf
Title: Re: SimplePortal - 2.3.1 Released!
Post by: MultiformeIngegno on November 09, 2009, 08:12:35 AM
Quote from: NaWaR on November 09, 2009, 12:16:58 AM
i have a small request please  as update for the portal...

can you make a mobile version for the portal.. so when some one will log in using mobile phone he will get the mobile portal..
it will be as new theme or something like that .. and will appear only the most important information or newest posts or something like that ...
Yes! I agree!! It would be a nice feature!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Pentaxian on November 09, 2009, 11:30:03 AM
Trying to (re)install  today in 2.0 RC2 I get:
Database error
Unknown column 'content' in 'field list'
File: ..../install2.php
Line: 967
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on November 09, 2009, 11:36:06 AM
Are you installing 2.3.1? Or an older version.

Remember that only version 2.3.1 works on RC2 and Curve.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Pentaxian on November 09, 2009, 11:38:25 AM
2.3.1 it is
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on November 09, 2009, 02:25:38 PM
Run this query via phpMyAdmin and try again.

REPLACE INTO smf_settings
VALUES ('sp_version', '2.2.2')
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Pentaxian on November 09, 2009, 04:39:24 PM
Quote from: [SiNaN] on November 09, 2009, 02:25:38 PM
Run this query via phpMyAdmin and try again.

REPLACE INTO smf_settings
VALUES ('sp_version', '2.2.2')

That's too difficult for me. Sorry.

Is it possible to delete all old-sp files and start anew?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 09, 2009, 06:51:34 PM
@Livewire1,
Hmm, SimplePortal doesn't really change any of the functions which deal with logging in/out, so the issue is odd. Does it go away if you uninstall SimplePortal?

@NaWaR,
I suppose that a mobile template would be nice for SimplePortal, although I'm not sure if its something we'll be adding in the near future. There is always theFeature request board over at SimplePortal.net (http://simpleportal.net/index.php?board=9.0) where such requests are less likely to be lost in the torrent of support posts. ;)

@Pentaxian,
Which previous version of SimplePortal did you have installed last?

Try extracting the 'install2.php' file from the SimplePortal 2.3.1 package, then perform this edit to the file.

Code ("Find") Select
global $smcFunc, $db_prefix, $modSettings, $sourcedir, $settings, $db_package_log;

Code ("Replace") Select
global $smcFunc, $db_prefix, $modSettings, $sourcedir, $settings, $db_package_log;
$modSettings['sp_version'] = '2.3.1';

Change the '2.3.1' text to whatever SimplePortal version you last had installed.

Then upload the install2.php file to your forums main directory (where the main 'index.php' file is located), and open it in your browser, the url will be like '{forum url}/install2.php'.

That will update the database, then you should be able to continue with the normal install process.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: MarcusJ on November 10, 2009, 02:02:25 PM
Hello,

I have just upgraded to SMF 2.0 RC2.  I am attempting to install SimplePortal for the first time.  After installing, when it attempts to redirect me to the admin panel I get the following error.


Fatal error: require_once() [function.require]: Failed opening required '/home/******/public_html/archive/Sources/Subs-Portal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/******/public_html/archive/index.php on line 67

Looking in the directory is shows that the Subs-Portal.php was never copied into place.

Any help or tips here are greatly appreciated.

Thank you.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 10, 2009, 04:10:47 PM
@MarcusJ,
Have a look at the post below, it lists the files that SimplePortal moves from the SimplePortal package to your forum.
http://simpleportal.net/index.php?topic=3845.msg24462;topicseen#new

Try using FTP to upload the SimplePortal files to the correct locations.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Kimmie on November 10, 2009, 05:08:59 PM
Quote from: Nathaniel on November 03, 2009, 12:12:59 AM
@DragonKith,
You have to download SP 2.3.1, then upload it using the package manager. Then there should be an 'upgrade' option next to the SimplePortal 2.3.1 package in the package list.

@Kimmie,
I am unsure what is going wrong at the moment, the main function seems to work fine. Try upgrading to SP 2.3.1 (if you haven't already) to see if that fixes the issue at all. Otherwise, I can try to debug it on your site.

@PRaDiUS,
Try '~action|mgallery'.


Upgraded from 2.3 to 2.3.1 and still getting that error when I am on the default theme viewing the portal.

I also just noticed that I have the setting checked "Display Blocks in Forum", however none of them actually show up on the forum. Any ideas why that isnt working either?

Title: Re: SimplePortal - 2.3.1 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on November 10, 2009, 05:27:29 PM
Right click the red X and see what image it is trying to load for that icon.

Locate the directory and place the image as needed.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Kimmie on November 10, 2009, 05:51:23 PM
Quote from: ♪ JohnCcCcCc ♫ on November 10, 2009, 05:27:29 PM
Right click the red X and see what image it is trying to load for that icon.

Locate the directory and place the image as needed.


yeah I already got it fixed, thanks. Just basically wanted the mod auth to know that the upgrade caused that issue. Not sure why but it did..lol.


EDIT: Ok the upgrade did more damage than good. Nobody can see the portal, yet the settings still show all the groups being checked. I have tried unchecking them, saving it, and then checking them again still cant see them. This is irritating to say the least.

Edit Again.. well thats not the only problems. When I installed 2.3.1 I used the upgrade feature. I decided to uninstall it completely and I was gonna try and install the 2.3.1 version fresh. Well. it appeared to uninstalled the upgrade, and left the 2.3 version on (2.3 was teh version listed in PM now instead of 2.3.1). When I tried to uninstall that, this is what I got:

QuoteInstalling this package will perform the following actions:   Type Action Description
1. Execute Modification ./index.php Test failed
  1. Replace ./index.php Test failed
  2. Replace ./index.php Test failed
  3. Replace ./index.php Test failed
  4. Replace ./index.php Test failed
  5. Replace ./index.php Test failed

2. Execute Modification ./SSI.php Test failed
  1. Replace ./SSI.php Test failed
  2. Replace ./SSI.php Test failed

3. Execute Modification ./Sources/Admin.php Test failed
  1. Replace ./Sources/Admin.php Test failed
  2. Replace ./Sources/Admin.php Test failed
  3. Replace ./Sources/Admin.php Test failed

4. Execute Modification ./Sources/Display.php Test failed
  1. Replace ./Sources/Display.php Test failed

5. Execute Modification ./Sources/Help.php Test failed
  1. Replace ./Sources/Help.php Test failed

6. Execute Modification ./Sources/Load.php Test failed
  1. Replace ./Sources/Load.php Test failed
  2. Replace ./Sources/Load.php Test failed

7. Execute Modification ./Sources/ManagePermissions.php Test failed
  1. Replace ./Sources/ManagePermissions.php Test failed
  2. Replace ./Sources/ManagePermissions.php Test failed
  3. Replace ./Sources/ManagePermissions.php Test failed

8. Execute Modification ./Sources/ManageServer.php Test failed
  1. Replace ./Sources/ManageServer.php Test failed

9. Execute Modification ./Sources/QueryString.php Test failed
  1. Replace ./Sources/QueryString.php Test failed

10. Execute Modification ./Sources/Recent.php Test failed
  1. Replace ./Sources/Recent.php Test failed
  2. Replace ./Sources/Recent.php Test failed
  3. Replace ./Sources/Recent.php Test failed

11. Execute Modification ./Sources/Subs.php Test failed
  1. Replace ./Sources/Subs.php Test failed
  2. Replace ./Sources/Subs.php Test failed
  3. Replace ./Sources/Subs.php Test failed
  4. Replace ./Sources/Subs.php Test failed
  5. Replace ./Sources/Subs.php Test failed
  6. Replace ./Sources/Subs.php Test failed (Ignore Errors)
  7. Replace ./Sources/Subs.php Test failed (Ignore Errors)
  8. Replace ./Sources/Subs.php Test failed
  9. Replace ./Sources/Subs.php Test failed
  10. Replace ./Sources/Subs.php Test failed

12. Execute Modification ./Sources/Subs-BoardIndex.php Test failed
  1. Replace ./Sources/Subs-BoardIndex.php Test failed

13. Execute Modification ./Sources/Subs-Boards.php Test failed
  1. Replace ./Sources/Subs-Boards.php Test failed

14. Execute Modification ./Sources/Who.php Test failed
  1. Replace ./Sources/Who.php Test failed
  2. Replace ./Sources/Who.php Test failed
  3. Replace ./Sources/Who.php Test failed
  4. Replace ./Sources/Who.php Test failed

15. Execute Modification ./Themes/default/Display.template.php Test failed
  1. Replace ./Themes/default/Display.template.php Test failed

16. Delete File ./PortalStandalone.php 
17. Delete File ./Sources/PortalArticles.php 
18. Delete File ./Sources/PortalBlocks.php 
19. Delete File ./Sources/PortalMain.php 
20. Delete File ./Sources/PortalPages.php 
21. Delete File ./Sources/PortalShoutbox.php 
22. Delete File ./Sources/PortalAdminArticles.php 
23. Delete File ./Sources/PortalAdminBlocks.php 
24. Delete File ./Sources/PortalAdminMain.php 
25. Delete File ./Sources/PortalAdminPages.php 
26. Delete File ./Sources/PortalAdminShoutbox.php 
27. Delete File ./Sources/Subs-Portal.php 
28. Delete File ./Sources/Subs-PortalAdmin.php 
29. Delete File ./Themes/default/Portal.template.php 
30. Delete File ./Themes/default/PortalArticles.template.php 
31. Delete File ./Themes/default/PortalPages.template.php 
32. Delete File ./Themes/default/PortalShoutbox.template.php 
33. Delete File ./Themes/default/PortalAdmin.template.php 
34. Delete File ./Themes/default/PortalAdminArticles.template.php 
35. Delete File ./Themes/default/PortalAdminBlocks.template.php 
36. Delete File ./Themes/default/PortalAdminPages.template.php 
37. Delete File ./Themes/default/PortalAdminShoutbox.template.php 
38. Delete File ./Themes/default/PortalGeneric.template.php 
39. Delete File ./Themes/default/languages/SPortal.english.php 
40. Delete File ./Themes/default/languages/SPortal.english-utf8.php 
41. Delete File ./Themes/default/languages/SPortalAdmin.english.php 
42. Delete File ./Themes/default/languages/SPortalAdmin.english-utf8.php 
43. Delete File ./Themes/default/languages/SPortalHelp.english.php 
44. Delete File ./Themes/default/languages/SPortalHelp.english-utf8.php 
45. Delete Tree ./Themes/default/images/sp 
46. Delete File ./Themes/default/images/admin/configuration.png 
47. Delete File ./Themes/default/images/admin/blocks.png 
48. Delete File ./Themes/default/images/admin/articles.png 
49. Delete File ./Themes/default/images/admin/pages.png 
50. Delete File ./Themes/default/images/admin/shoutbox.png 
51. Delete File ./Themes/default/css/portal.css 
52. Delete File ./Themes/default/css/portal_rtl.css 
53. Delete File ./Themes/default/scripts/portal.js


so NOW what do I do? IT says that 2.3 is still installed, but yet its not working. I have no admin CP area for the mod anymore either. Man, this is a HUGE mess. I cant even parse the mod to check to see if the file edits are still there because the parser wont work. *inserts pulling hair out smiley*.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: yoggie on November 12, 2009, 07:54:01 AM
Congrats. But anyway... have you any-idea to use it in other themes?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 12, 2009, 06:56:32 PM
@Kimmie,
If you used the "Uninstall" option for the latest package that you have listed, then it won't undo the upgrade changes, it will completely uninstall the mod. Delete the old 2.3 package, you don't need to try to uninstall it. Then upload the 2.3.1 package and try to install it.

@yoggie,
SimplePortal tends to work well in any theme. The only edits you will need to perform for a custom theme, are adding the "Forum" button and adding the "Add as article" link. See this tutorial for help with that: http://simpleportal.net/index.php?topic=148.0
Title: Re: SimplePortal - 2.3.1 Released!
Post by: arockets on November 12, 2009, 08:53:43 PM
I don't understand what to do with the .tar.gz file.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 12, 2009, 09:05:44 PM
Quote from: arockets on November 12, 2009, 08:53:43 PM
I don't understand what to do with the .tar.gz file.

Its a normal SMF mod package. Upload it via the SMF Package manager.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: arockets on November 13, 2009, 10:28:48 AM
I figured it out last night, lol  sorry, I'm an idiot.... :o
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Kimmie on November 13, 2009, 03:54:51 PM
Quote from: Nathaniel on November 12, 2009, 06:56:32 PM
@Kimmie,
If you used the "Uninstall" option for the latest package that you have listed, then it won't undo the upgrade changes, it will completely uninstall the mod. Delete the old 2.3 package, you don't need to try to uninstall it. Then upload the 2.3.1 package and try to install it.


Tried that and about 5 other things. The upgrade for this mod really messed up my site bad. When I deleted the packages and then reuploaded the 2.3.1 I didnt get the normal "apply" option, it said it was installed again. The file edits were never done, but the package manager said it was installed.

HUGE mess. I ended up having to reupload a backup of my public html folder because it also caused a couple of my other mods to stop working as well. (created the same issue for them - said they were installed but the unistallation of this mod removed alot of the other mod file edits as well. Took me 3+ hours to get it all right again, and I still have one mod I cant fix because the parser on the mod page no longer works with RC1.2.

I'm regretting the move to 2.0 every day I wake up. If its not one thing its another. Never had these problems with 1.x

m-e-s-s VB's lookin better and better.

Title: Re: SimplePortal - 2.3.1 Released!
Post by: Nathaniel on November 13, 2009, 05:49:23 PM
@Kimmie,
Well, you could ask about how to do things before you rush into them... If you want the SMF package manager to think that a mod is not installed, then open up phpMyAdmin, goto the 'smf_log_packages' table, edit the relevant entry for SimplePortal changing the 'install_state' value to 0. Then you should be able to reinstall it.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Kimmie on November 13, 2009, 11:22:38 PM
Quote from: Nathaniel on November 13, 2009, 05:49:23 PM
@Kimmie,
Well, you could ask about how to do things before you rush into them... If you want the SMF package manager to think that a mod is not installed, then open up phpMyAdmin, goto the 'smf_log_packages' table, edit the relevant entry for SimplePortal changing the 'install_state' value to 0. Then you should be able to reinstall it.

I did ask..lol read the bottom of my post above that sat unanswered for over 2 days. It plainly states "Now What Do I Do".

I have installed "upgrades" for quite a few mods in the past, used the same exact methods with those and have never had this kind of mess...lol. This was horrible. It was almost as bad as the docs not telling folks that they need to uninstall all mods "before" they upgrade to 2.0. That was a nightmare.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: fmofmpls on November 17, 2009, 08:05:07 PM
Is it possible to have Simple Portal blocks on my forum index page only? Meaning I don't want the blocks showing on the forum boards themselves.

Thanks!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Spoogs on November 17, 2009, 08:24:01 PM
You can set them however you want... go to display options and check the advanced options box and choose from there.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: fmofmpls on November 17, 2009, 09:18:42 PM
Still couldn't find an option for forum index page only. The advanced options only appeared to offer specific boards. I don't want any of the boards to show the blocks other than the forum idex page only.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Spoogs on November 17, 2009, 09:25:31 PM
Quote from: fmofmpls on November 17, 2009, 09:18:42 PM
Still couldn't find an option for forum index page only. The advanced options only appeared to offer specific boards. I don't want any of the boards to show the blocks other than the forum idex page only.
"Forum" give you just the index
Title: Re: SimplePortal - 2.3.1 Released!
Post by: fmofmpls on November 17, 2009, 09:45:57 PM
Thanks Spoogs! Got it how I want it now! Much appreciated!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Spoogs on November 17, 2009, 09:55:12 PM
 ;D quite welcome
Title: Re: SimplePortal - 2.3.1 Released!
Post by: uk2us88 on November 21, 2009, 03:34:05 PM
is it possible to have the poll populate automatically if someone creates a poll in the forum area?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Maserati on November 24, 2009, 02:34:01 PM
Hello, I have problem with this mod.

I use ApoloBB theme, and when I integrate forum buton and home buton like this

// Show the [home] button.
echo '
<a href="', ($modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl), '" ' , $current_action == 'home' ? 'class="nav_important"' : '' , '>' , $txt[103] , '</a>&nbsp;|';
// Show the [forum] button.
if (empty($context['disable_sp']) && in_array($modSettings['sp_portal_mode'], array(1, 3)))
echo'
<a href="', $scripturl. ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), $current_action == 'forum' ? 'class="nav_important"' : '', '>' , $txt['sp-forum'] , '</a>&nbsp;|';



Any solutions?
It open me this way
Quoteforumurl/index.phpclass

Original code for home button is this:

// Show the [home] button.
echo '
<a href="', $scripturl, '" ' , $current_action == 'home' ? 'class="nav_important"' : '' , '>' , $txt[103] , '</a>&nbsp;|';


I also have prrety url mod.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on November 26, 2009, 05:38:54 PM
Just been playing with this on my test site.
i'm just wondering if there is a way to edit all the text in the middle, where it says welcome to simple portal and all that stuff.
I'm wanting to edit it to say stuff like welcom to my forum and such like.

thanks
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Spoogs on November 26, 2009, 05:47:39 PM
you can or you can just disable or deleted it and make your own cucton block php, html, or bbc

admin>simple portal>blocks
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on November 26, 2009, 05:58:29 PM
thanks for the reply i'd just managed to find it and was about to edit previous post to say so

thanks again
Title: Re: SimplePortal - 2.3.1 Released!
Post by: frantic on November 26, 2009, 09:52:21 PM
hi, i'm having a problem with one of my html custom blocks (my top center block).  Everything worked really well until i upgraded to 2.3.1  If i enable my custom html block all the center blocks appear after the left ones (not side by side) and the right blocks are completely missing.  Can any help?

Here is the code i used. (worked great before on 2.2.2

Quote<TR>
                      <TD class=alt2>
                        <DIV align=center><B>Welcome to the Nation of JOG
                        </B></DIV><BR>
                        <DIV align=center>The Nation of JOG, forged over three and a half years ago has been and still continues to be the leader of the gaming world around them We are currently playing on the Playstation 2, Playstation 3, and Xbox 360 video game systems.  Our games include Star Wars Battlefront 2, Call of duty 4, and Call of duty Modern Warfare 2.  We firmly beleive in teamwork, sportmanship, good attitudes, dedication, loyality, and creating a mature atmosphere for our guest and members.   
                        JOG evaualtes its members and possible recurits based on our <A
                        href="http://www.nationofjog.com/index.php/topic,52.0.html"
                        target=_blank>Code of Conduct</A> so please be sure to read it and know it well. Listen to your ranking officers and follow the code.   Below, you'll find information on the clan and its individual sectors.
                                         
                       
                        <TABLE border=0 cellSpacing=0 cellPadding=0
width="100%">
                          <TBODY>
                        <TBODY>
                        <TR>
                            <TD height=38 vAlign=center>
                              <DIV align=center><STRONG>Nation of Jog</STRONG></DIV></TD>
                            <TD vAlign=center>
                              <DIV align=center><STRONG>PS3 - Modern Warfare 2</STRONG></DIV></TD>
                            <TD vAlign=center>
                              <DIV align=center><STRONG>PS2 - SWBF2
                              </STRONG></DIV></TD></TR>
                          <TR>

                          <TR>
                            <TD vAlign=bottom>
                              <DIV align=center><IMG
                              src="http://www.psnforums.com/images1/logo1.png"></DIV></TD>
                            <TD vAlign=bottom>
                              <DIV align=center><IMG title="Modern Warfare 2 PS3"
                              alt="Photo Gallery"
                              src="http://www.psnforums.com/images1/mw2.png"></DIV></TD>
                           
                            <TD vAlign=center>
                              <DIV align=center><IMG
                              src="http://www.psnforums.com/images1/swbf2.png"></DIV></TD></TR>
                          <TR>
                            <TD height=57 vAlign=top width="33%">
                              <DIV align=center><A
                              href="http://www.nationofjog.com/index.php/topic,52.0.html">Code
                              of Conduct </A><BR><A
                              href="http://www.nationofjog.com/index.php/topic,887.0.html">
                              Ranks</A><BR><A
                              href="http://www.nationofjog.com/index.php/topic,1940.0.html">JOG
                              Roster</A><BR><A
                              href="http://www.nationofjog.com/index.php/topic,207.0.html">Government'</A><BR><A
                              href="http://www.nationofjog.com/index.php?action=forum">Forums</A></DIV></TD>
                            <TD vAlign=top width="33%">
                              <DIV align=center><A
                              href="http://www.nationofjog.com/index.php/board,34.0.html">Recruiting Center
                               </A><BR><A
                              href="http://www.nationofjog.com/index.php/topic,1943.msg23080/topicseen.html#new">MW2 Roster</A><BR><A
                              href="http://www.nationofjog.com/index.php/board,20.0.html">MW2 Forum
                              </A><BR><A
                              href="http://www.nationofjog.com/chat/index.php">Chat Room</A><BR><A
                              href="XXXXXXX">TBA</A></DIV></TD>

                            <TD vAlign=top width="33%">
                              <DIV align=center><A
                              href="http://www.nationofjog.com/index.php/board,32.0.html">Recruiting Center
                               </A><BR><A
                              href="http://www.nationofjog.com/index.php/topic,1944.0.html">SWBF2 Roster
                              </A><BR><A
                              href="http://www.nationofjog.com/index.php/board,19.0.html">SWBF2 Forum
                              </A><BR><A
                              href="http://www.nationofjog.com/chat/index.php">Chat Room</A><BR><A
                              href="XXXXXXXXX">TBA</A></DIV></TD>
                              </A></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
                  <DIV style="PADDING-BOTTOM: 15px">
                  <TABLE class=tborder border=0 cellSpacing=1 cellPadding=6
                  width="100%" align=center>
                    <THEAD>
                    <TR>
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Kreator on November 27, 2009, 03:33:53 PM
I am getting a large amount of errors popping up 1300 at the last count ( no pun intended!) for this,

8: Undefined variable: countFile: /customers/animanon.com/animanon.com/httpd.www/Forum3/Sources/PortalBlocks.php
Line: 2970

How can i fix this please.

SMF2 RC2
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Kreator on November 28, 2009, 08:32:36 AM
I now have an extensive error log  with a variable count as being undefined , I am using simple portal to display a shop block on the frontpage, but I get this error 

8: Undefined variable: countFile: /customers/animanon.com/animanon.com/httpd.www/Forum3/Sources/PortalBlocks.php
Line: 2970

Going to the file reveals that it has something to the shop mod  (see code)



2965:               echo '
2966:                              <tr>
2967:                                 <td class="sp_shop">
2968:                                    ', $item['image'], '
2969:                                 </td>
==>2970:                                 <td class="sp_shop_info', $item_count != ++$count ? ' sp_shop_divider' : '', '">
2971:                                    <strong>', $item['name'], '</strong><br />
2972:                                    ', $txt['shop_price'], ': ', $item['price'], '<br />
2973:                                    ', $context['user']['money'] < $item['price'] ? sprintf($txt['shop_need'], formatMoney($item['price'] - $context['user']['money'])) : $item['link'], '
2974:                                 </td>
2975:                              </tr>';
2976:   
2977:            echo

any fix I can apply?
(NB: I have also posted this in Shop support as well)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: yoggie on November 30, 2009, 01:07:55 AM
I am glad to hear that simply portal...
Anyway, I found and error (or problem) in IE browser:
- Shoutbox too long for auto-refresh
- If shoutbox used, I got error log like this :


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.3; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; MEGAUPLOAD 3.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yie8)
Timestamp: Mon, 30 Nov 2009 06:06:42 UTC


Message: 'getElementsByTagName(...).0' is null or not an object
Line: 95
Char: 2
Code: 0
URI: http://****/Themes/default/portal.js?23b1

Title: Re: SimplePortal - 2.3.1 Released!
Post by: ninety1two40 on December 02, 2009, 09:14:46 AM
Quote from: Pentaxian on November 09, 2009, 11:30:03 AM
Trying to (re)install  today in 2.0 RC2 I get:
Database error
Unknown column 'content' in 'field list'
File: ..../install2.php
Line: 967

I'm having the same issue here. I tried editing in the version into the install2.php file as described eariler but no luck. However I never had Simple Portal installed before. Any ideas?
Thanks
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Kreator on December 02, 2009, 10:09:07 AM
Funny nobody seems to reply to this thread? .....only those that want answers to their problems!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 02, 2009, 10:07:54 PM
i love this but where or how do you get to the forums can you add a button on top for the forums
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on December 02, 2009, 10:32:55 PM
Quote from: Kreator on December 02, 2009, 10:09:07 AM
Funny nobody seems to reply to this thread? .....only those that want answers to their problems!
You could also try their website, if you haven't yet. Some useful info and some support over there as well.

http://www.simpleportal.net/
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on December 03, 2009, 11:32:15 AM
Quote from: sattninja on December 02, 2009, 10:07:54 PM
i love this but where or how do you get to the forums can you add a button on top for the forums

when you install this you should automatically get a forum button on your menu next to home button.
at least that what happened when i installed it.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 03, 2009, 12:11:43 PM
i am using a theme called 2nd

not the stock theme i was able to edit the template.php to get the forum text into the menu bar but i cant get it to show as a button
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on December 03, 2009, 12:52:59 PM
will you please attach your themes index.template.php
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 03, 2009, 01:18:14 PM
Iam at work right now I will attach as soon as o get home thanks
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 03, 2009, 06:13:13 PM
ok i attached my template file and a screenshot

(http://img19.imageshack.us/img19/9434/captureno.jpg)

if i click on the word forum it takes me to the forum
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 03, 2009, 06:54:11 PM
and now all of a sudden my shout box on the portal disappeared so i made a new one and it looks like this now

(http://img3.imageshack.us/img3/1980/shoute.jpg)

why?  i didnt change anything relating to the shoutbox

i am pulling my hair out here
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 04, 2009, 12:17:24 AM
ok i got the shoutbox working i have attached an updated php file i have everythong working except a forum button for the top i do not even have the text anymore i restored back to original php cause everything is working
so in a nutshell i just need someone to add a forum button to the menu bar myy theme is "2nd" php attached and also pic for description can someone please help me out with this

(http://img46.imageshack.us/img46/9903/1capture.jpg)

also i have another problem everytime a non admin sends a pm they have to enter a captcha i have disabled this in registration settings but it will not go away it just lets me change the level of difficulty but will not let me turn it off
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 04, 2009, 02:39:52 AM
if someone cant create this for me can someone create some custom html i could out in a block that says something like click here to visit our forums that will take them to the forums

man this is just so weird why there isn;t a button just doesn't make alot of sense
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 04, 2009, 03:46:30 AM
ok i got it i added here is what i did


// Show the [home] button.
echo '<li', $current_action == 'home' ? ' class="current"' : '', '><a href="', $scripturl, '"><b>' , $txt[103] , '</b></a></li>';



// Show the [Forum] button.       
echo '<li', $current_action == 'Forum' ? ' class="current"' : '', '><a href="', $scripturl, '?action=Forum"><b>' , $txt[103] , '</b></a></li>';


however i have 2 home buttons now but the second one does take you to the forum fine it wirks 100% i need the number code for forum $txt[103]  is for home i changed the number and can make the button i made search,profile etc but can't fild what number to use for forum

every other theme i look at has the forum button as 103 but that is home
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on December 04, 2009, 05:22:03 AM
Try replacing the second line with
// Show the [Forum] button.       
    echo '<li', $current_action == 'Forum' ? ' class="current"' : '', '><a href="', $scripturl, '?action=Forum"><b>' , $txt 'forum' , '</b></a></li>';


it may or may not work
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on December 04, 2009, 10:02:18 AM
@sattninja   try this one
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 04, 2009, 01:41:19 PM
hey i got it late last night but unrelated to that my chat box changed it has a scroll bar now i hate it

(http://img4.imageshack.us/img4/7771/captureckm.jpg)


Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on December 04, 2009, 01:45:51 PM
The shoutbox has a scrollbar because either a) the number of shouts displayed is too large, b) the container size for the shoutbox is too small, or c) the shouts themselves are too large. It's automatic, not something that SP can really control. If you don't want a scrollbar, either reduce the number of shouts displayed or increase the height of the shoutbox.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 04, 2009, 02:03:09 PM
i adjusted both and still the same it seems to be font related but i didnt sdo anything with the fonts i have deleted it and reinstalled it and it is the same is there somewhere in the template.php i can adjust the font i dont know but it was fine one minute then it was gone it saif it was only in my head so i deleted and made a new one and now it s like this

another thing i noticed is the delete buttons over to the right those were never there either

it's like the box that your text in is too big not the main box

i changed container size no go
i changed the height no go
how do i change the font size
Title: help with simple portal
Post by: airric00 on December 04, 2009, 10:15:12 PM
I get words instead of pictures...  Like dot or arrow instead of the pictures...  Did I do something wrong?  any work around??

<img class="floatright" id="smflogo" src="', $settings['images_url'], '/smflogo.gif" alt="Simple Machines Forum" />
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Pinball Nation on December 08, 2009, 04:11:44 PM
I have 1.1.11 an just installed SP 2.3.1.I configured an added a shoutbox but i don't see a shoutbox?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 08, 2009, 04:17:43 PM
i had the same problem i think it is a glitch in the new release
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on December 08, 2009, 04:18:15 PM
you have to create a shoutbox then you have to create a shoutbox block, in this block you will have to select the shoutbox you already created and set the necessary permissions for it.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Pinball Nation on December 08, 2009, 04:36:02 PM
Thanks for the info.I feel so silly now an should have known that. ;D
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on December 08, 2009, 04:41:11 PM
@Pinball Nation, @sattninja: I added a feature request to our tracker to help ease that confusion: http://simpleportal.net/index.php?issue=326.0

Maybe we'll see it in 2.4.x or later. Nevertheless, it's on the books now. :D
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Pinball Nation on December 09, 2009, 06:19:15 AM
When i try to create an add a shoutbox i get this error messageIllegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull'
Line: 1293

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.11, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on December 09, 2009, 01:44:50 PM
that will be because one of your tables have the wrong collation,   go to your cpanel or similar and then go to phpmyadmin, select your forum database then select the table with the wrong collation and change it, all your tables have to have the same collation.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Pinball Nation on December 09, 2009, 04:30:13 PM
Thanks for the info but i don't know what to change?This is my database.Structure
SQL
Search
Query
Export
Import
Operations

   Table Action  Records  Type Collation Size Overhead
smf_ajaxchat_bans        0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxchat_invitations        0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxchat_messages        0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxchat_online        0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxshout_bans        0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxshout_invitations        0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxshout_messages        0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxshout_online        0 MyISAM utf8_bin 1.0 KiB -
smf_arcade_categories        4 MyISAM utf8_unicode_ci 2.1 KiB -
smf_arcade_favorite        4 MyISAM utf8_unicode_ci 2.1 KiB -
smf_arcade_gameofday        119 MyISAM utf8_unicode_ci 5.5 KiB -
smf_arcade_games        155 MyISAM utf8_unicode_ci 39.5 KiB -
smf_arcade_personalbest        113 MyISAM utf8_unicode_ci 11.9 KiB -
smf_arcade_rates        1 MyISAM utf8_unicode_ci 2.0 KiB -
smf_arcade_scores        142 MyISAM utf8_unicode_ci 18.2 KiB -
smf_articles        1 MyISAM utf8_unicode_ci 2.1 KiB -
smf_articles_attachments        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_articles_cat        3 MyISAM utf8_unicode_ci 2.2 KiB -
smf_articles_catperm        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_articles_comment        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_articles_creport        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_articles_page        1 MyISAM utf8_unicode_ci 24.1 KiB -
smf_articles_rating        8 MyISAM utf8_unicode_ci 2.1 KiB -
smf_attachments        191 MyISAM utf8_unicode_ci 27.0 KiB -
smf_ban_groups        6 MyISAM utf8_unicode_ci 2.3 KiB -
smf_ban_items        10 MyISAM utf8_unicode_ci 3.3 KiB -
smf_boards        6 MyISAM utf8_unicode_ci 6.8 KiB -
smf_board_permissions        103 MyISAM utf8_unicode_ci 6.2 KiB -
smf_buddies        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_buy_items        1 MyISAM utf8_unicode_ci 2.0 KiB -
smf_calendar        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_calendar_holidays        167 MyISAM utf8_unicode_ci 11.0 KiB -
smf_categories        6 MyISAM utf8_unicode_ci 2.2 KiB -
smf_collapsed_categories        4 MyISAM utf8_unicode_ci 2.0 KiB -
smf_down_cat        2 MyISAM utf8_unicode_ci 2.1 KiB -
smf_down_catperm        2 MyISAM utf8_unicode_ci 2.0 KiB -
smf_down_comment        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_down_creport        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_down_custom_field        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_down_custom_field_data        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_down_file        1 MyISAM utf8_unicode_ci 2.1 KiB -
smf_down_groupquota        1 MyISAM utf8_unicode_ci 2.0 KiB -
smf_down_rating        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_down_report        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_down_userquota        1 MyISAM utf8_unicode_ci 2.0 KiB -
smf_feedbot        1 MyISAM utf8_unicode_ci 2.1 KiB -
smf_feedbot_log        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_gallery_cat        3 MyISAM utf8_unicode_ci 2.2 KiB -
smf_gallery_comment        4 MyISAM utf8_unicode_ci 2.3 KiB -
smf_gallery_pic        14 MyISAM utf8_unicode_ci 4.0 KiB -
smf_gallery_report        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_log_actions        45 MyISAM utf8_unicode_ci 7.7 KiB -
smf_log_activity        155 MyISAM utf8_unicode_ci 12.3 KiB -
smf_log_banned        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_log_boards        211 MyISAM utf8_unicode_ci 7.1 KiB -
smf_log_errors        1 MyISAM utf8_unicode_ci 5.3 KiB -
smf_log_floodcontrol        1 MyISAM utf8_unicode_ci 2.1 KiB -
smf_log_karma        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_log_mark_read        24 MyISAM utf8_unicode_ci 2.2 KiB -
smf_log_notify        106 MyISAM utf8_unicode_ci 5.0 KiB -
smf_log_online        2 MyISAM utf8_unicode_ci 5.9 KiB 1.5 KiB 
smf_log_polls        24 MyISAM utf8_unicode_ci 2.2 KiB -
smf_log_search_messages        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_log_search_results        30 MyISAM utf8_unicode_ci 2.4 KiB -
smf_log_search_subjects        2,010 MyISAM utf8_unicode_ci 100.3 KiB -
smf_log_search_topics        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_log_topics        2,329 MyISAM utf8_unicode_ci 86.0 KiB -
smf_membergroups        8 MyISAM utf8_unicode_ci 3.4 KiB -
smf_members        70 MyISAM utf8_unicode_ci 28.4 KiB -
smf_messages        1,965 MyISAM utf8_unicode_ci 1.0 MiB -
smf_message_icons        12 MyISAM utf8_unicode_ci 3.3 KiB -
smf_mgallery_albums        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_comments        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_fields        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_field_data        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_files        4 MyISAM utf8_unicode_ci 2.2 KiB -
smf_mgallery_log_media        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_log_ratings        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_media        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_perms        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_quotas        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_settings        79 MyISAM utf8_unicode_ci 6.3 KiB -
smf_mgallery_variables        1 MyISAM utf8_unicode_ci 2.0 KiB -
smf_moderators        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_package_servers        2 MyISAM utf8_unicode_ci 2.1 KiB -
smf_permissions        192 MyISAM utf8_unicode_ci 11.5 KiB -
smf_personal_messages        167 MyISAM utf8_unicode_ci 66.0 KiB -
smf_picture_comments        0 MyISAM utf8_general_ci 1.0 KiB -
smf_pm_recipients        516 MyISAM utf8_unicode_ci 28.1 KiB -
smf_polls        4 MyISAM utf8_unicode_ci 2.3 KiB -
smf_poll_choices        32 MyISAM utf8_unicode_ci 2.7 KiB -
smf_profile_albums        0 MyISAM utf8_general_ci 1.0 KiB -
smf_profile_comments        0 MyISAM utf8_general_ci 1.0 KiB -
smf_profile_pictures        0 MyISAM utf8_general_ci 1.0 KiB -
smf_sessions        7 MyISAM utf8_unicode_ci 25.2 KiB 16.6 KiB 
smf_settings        416 MyISAM utf8_unicode_ci 24.7 KiB -
smf_shop_categories        0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_shop_inventory        2 MyISAM utf8_unicode_ci 2.0 KiB -
smf_shop_items        13 MyISAM utf8_unicode_ci 3.2 KiB -
smf_smileys        80 MyISAM utf8_unicode_ci 4.7 KiB -
smf_sp_articles        1 MyISAM utf8_general_ci 2.0 KiB -
smf_sp_blocks        21 MyISAM utf8_general_ci 7.4 KiB -
smf_sp_categories        2 MyISAM utf8_general_ci 2.1 KiB -
smf_sp_functions        29 MyISAM utf8_general_ci 2.6 KiB -
smf_sp_pages        0 MyISAM utf8_general_ci 1.0 KiB -
smf_sp_parameters        31 MyISAM utf8_general_ci 16.7 KiB -
smf_sp_shoutboxes        1 MyISAM utf8_general_ci 2.2 KiB -
smf_sp_shouts        0 MyISAM utf8_general_ci 1.0 KiB -
smf_themes        296 MyISAM utf8_unicode_ci 25.9 KiB -
smf_topics        327 MyISAM utf8_unicode_ci 42.5 KiB -
smf_welcome        1 MyISAM utf8_unicode_ci 2.1 KiB -
111 table(s)  Sum 10,291 MyISAM utf8_unicode_ci 1.8 MiB 18.1 KiB
Check All / Uncheck All / Check tables having overhead  With selected: Empty Drop Print view Check table Optimize table Repair table Analyze table
Title: Re: SimplePortal - 2.3.1 Released!
Post by: airric00 on December 10, 2009, 01:17:55 AM
Anyone know of a good place to borrow some basic html to design my simple portal home page?    I love simple portal but want to customize it a bit...  Does it have to be in html or can I use a css templete as well?   New to this..
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on December 10, 2009, 08:54:47 AM
Quote from: airric00 on December 10, 2009, 01:17:55 AM
Anyone know of a good place to borrow some basic html to design my simple portal home page?    I love simple portal but want to customize it a bit...  Does it have to be in html or can I use a css templete as well?   New to this..

this is a good website that tells you alot about html,css and even php i have used it before now to do certain things on my website
http://www.w3schools.com/default.asp
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on December 10, 2009, 10:38:06 AM
@Pinball Nation   all your sp tables:   

sp_articles     
sp_blocks       
sp_categories
sp_functions       
sp_pages       
sp_parameters       
sp_shoutboxes       
sp_shouts       

and some other from other mods have different collations:

sp tables:  utf8_general_ci

rest of your tables:  utf8_unicode_ci

so you have to go to your phymyadmin, click and one of your sp tables,  then in the main menu theres an opcion name Operations, or something, (my phpmyadmin is in spanish so I just translated that as it is)   heres an image that explains better:

(http://img64.imageshack.us/img64/9251/collation.jpg)


just change the collation from  utf8_general_ci  to utf8_general_ci , do the same of all your sp tables and another ones who has the same collation
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Pinball Nation on December 10, 2009, 11:20:32 AM
You mean change from utf8_general_ci to utf8_unicode_ci
so sp will match the rest.Am i correct.I would also like to mention that the mods listed in there are no longer installed.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on December 10, 2009, 11:39:44 AM
yes, you should change the utf8_general_ci  of your sp tables for this one utf8_unicode_ci   so all your tables have the same collation, even if the mods is not installed anymore, if you ever installed those mods again, is better to have all your tables with utf8_unicode_ci  to avoid conflicts in the future ;)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Pinball Nation on December 10, 2009, 11:43:28 AM
Ok i got ya.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on December 10, 2009, 06:17:25 PM
I have to say that SP looks so nice with Curve. I love how it flows. SP has great flexibility.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 10, 2009, 11:43:51 PM
i have tried everything to get this scroll bat to go away can someone help me here it is a pia when you scroll the page it gets in the way

forget it i got it weee hooo

thank god

is there anyway to adjust the font size the box uses
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Pinball Nation on December 11, 2009, 04:46:43 PM
I changed all the table collations to utf8 unicode ci.I am still getting the same error message that i posted above :(
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on December 11, 2009, 04:53:56 PM
that is weird, I use to have the same problem and it got solved with this,  maybe if you post on the official support forum and explain it in detail, on of the truly SP team members can answer you better.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Pinball Nation on December 11, 2009, 05:11:41 PM
Ok i guess i will give that a try.Anyone else have any idea's?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: sattninja on December 13, 2009, 12:01:45 AM
is there any way to get sound in the shoutbox on the portal
Title: Re: SimplePortal - 2.3.1 Released!
Post by: ishy on December 16, 2009, 09:25:11 AM
What class changes the font in the SP blocks (particularly Recent Posts)?  I am fine with the font being a little smaller overall on the site, if it does that, but I tried .inner and that didn't work for SP.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: nadrojcote on December 17, 2009, 11:23:55 AM
Hey does anyone know why after upgrading to smf 2 rc2 and simpleportal 2.3.1 I can no longer open the "More" smileys box from my shoutbox. it just comes up with a black page. I believe the more link should be:

javascript:moreSmileys();

but instead it is:

javascript:void(0);

EDIT**** I fixed this by modifying themes/default/scripts/portal.js and replacing all the version numbers from 1.1 to 2.0
Title: Re: SimplePortal - 2.3.1 Released!
Post by: infyquest on December 18, 2009, 03:53:55 PM
my forum page is getting messed up after installing simpleportal.
the http://alexa.jcafe24.net/index.php?action=forum
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on December 18, 2009, 04:37:27 PM
I see it just fine using opera 10, you have only one category, one board and two posts,  could you please post a screenshot of your problem ?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: infyquest on December 18, 2009, 04:40:42 PM
it was due to unclosed tags (fixed), and can i disable theme selector?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on December 18, 2009, 04:51:17 PM
yes theme selector is a block, just go to admin /simpleportal / blocks   select the block  and delete it
Title: Re: SimplePortal - 2.3.1 Released!
Post by: infyquest on December 18, 2009, 04:59:10 PM
if i want it again can i re-enable it
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on December 18, 2009, 05:03:40 PM
yes, for that just go to admin /simpleportal / blocks / add block /  then select the block, configure it, set permissions  and thats all.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: infyquest on December 19, 2009, 02:15:08 PM
unable to install on 1.1.11 due to
Quote
      <operation>
         <search position="replace"><![CDATA[   // Show the [home] button.
   echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '">' , $txt[103] , '</a>
            </td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';]]></search>
         <add><![CDATA[   // Show the [home] button.
   echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
               <a href="', ($modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl), '">' , $txt[103] , '</a>
            </td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Show the [forum] button.
   if (empty($context['disable_sp']) && in_array($modSettings['sp_portal_mode'], array(1, 3)))
      echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
               <a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</a>
            </td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';]]></add>
      </operation>
its due &nbsp;, change it to '| ' (without quotes)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: BrianVB on December 21, 2009, 01:14:39 PM
I think if tinyportal beta 5 is there i will upgrade to it, it has a download system integrated
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on December 21, 2009, 01:41:01 PM
Quote from: BrianVB on December 21, 2009, 01:14:39 PM
I think if tinyportal beta 5 is there i will upgrade to it, it has a download system integrated

well, if you are planning to do that,   the best place for that  will be the  topic for tiny portal  ;)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: elliatt on December 23, 2009, 06:47:19 AM
SMF 1.1.11, Simple Portal 2.3.1

I did a test install on a duplicate board and it worked flawlessly. Tonight I installed it on my actual forum and it installed without any problems but it is not functioning correctly.

When you point a browser to the site

http://www.brigadeleader.com it is taking the user to /forum/index.php

I do have the "Standalone" file altered correctly

// Should be the full path!

$forum_dir = '/home/XXXXX/public_html/brigadeleader/forum/';


When I log in , it works correctly, when I log out it again returns the user not to the portal but to the forum index.

I have a test account setup

name:   portal
pw: smfportal

Any guidance would be greatly appreciated!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on December 23, 2009, 07:36:12 AM
Uncheck Disable Portal Redirection in General Settings.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: elliatt on December 23, 2009, 07:50:21 AM
Quote from: Eliana Tamerin on December 23, 2009, 07:36:12 AM
Uncheck Disable Portal Redirection in General Settings.

It is unchecked

update: I have tried it with the option checked as well and launched a clean browser and there is no difference in operation.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on December 23, 2009, 08:06:05 AM
Then you'll probably require some coding in LogInOut.php. It's a default SMF behavior, not one that SP tries to alter. Feel free to post in Custom Coding on SP.net.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: elliatt on December 23, 2009, 08:10:06 AM
I posted on the SP site yesterday and have still yet to receive reply from there
Title: Re: SimplePortal - 2.3.1 Released!
Post by: elliatt on December 23, 2009, 11:08:08 AM
FYI in case anyone else has this issue - the majority of the issue was solved by

Admin > Configuration > Features and Options

Tick the setting that says "Allow guests to browse the forum" and then click on save.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on December 23, 2009, 07:38:27 PM
I noticed when I was using the BBC custom block that if I used the [ html ]  tags, it would not parse them.

Instead it would fill up the code with a bunch of /// instead, making the  tag useless.


I am using 2.3.1 and RC2 Curve.

Any ideas?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on December 23, 2009, 08:10:52 PM
The [html] tag is probably not going to work well on a BBC block anyways. If you need HTML, you're far better off using the Custom HTML block.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: LC on December 23, 2009, 09:17:14 PM
Quote from: Eliana Tamerin on December 23, 2009, 08:10:52 PM
The [html] tag is probably not going to work well on a BBC block anyways. If you need HTML, you're far better off using the Custom HTML block.
That's what I was wondering. Alright thanks.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: clewis789 on December 24, 2009, 07:22:08 AM
i get this error while install and i also get the same error if i am trying to install tiny portal.

1.     Execute Modification     ./index.php     Test failed

these are all the mods i have:

Mod Name     Version     
1.    Aeva ~ Auto-Embed Video & Audio    6.9.99    [ Uninstall ] [ List Files ] [ Delete ]
2.    Auto Email Inactive Users    1.7    [ Uninstall ] [ List Files ] [ Delete ]
3.    Custom Profile Field Mod    3.20    [ Uninstall ] [ List Files ] [ Delete ]
4.    Karma Buttons    1.1    [ Uninstall ] [ List Files ] [ Delete ]
5.    FontandSizeDropdown_1.3    1.3    [ Uninstall ] [ List Files ] [ Delete ]
6.    SimplePortal    2.3    [ Apply Mod ] [ List Files ] [ Delete ]
7.    Global Headers Footers    1.4.1    [ Uninstall ] [ List Files ] [ Delete ]
8.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0    [ List Files ] [ Delete ]
9.    SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update    1.1    [ List Files ] [ Delete ]
10.    Top 10 Posters and Topic Starters Stats (Today, This Week, This Month)    2.3.1    [ Uninstall ] [ List Files ] [ Delete ]
11.    SMF 1.0.16 / 1.1.8 Update    1.0    [ List Files ] [ Delete ]
12.    Twitter mod    1.5    [ Uninstall ] [ List Files ] [ Delete ]
13.    AvatarSelect    1.2.1    [ Uninstall ] [ List Files ] [ Delete ]
14.    SMF 1.0.19 / 1.1.11 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    simplemp    3.2    [ Uninstall ] [ List Files ] [ Delete ]
16.    SMF File Manager    2.1.3    [ Uninstall ] [ List Files ] [ Delete ]
17.    AjaxChat Integration    3.2.1    [ Uninstall ] [ List Files ] [ Delete ]

I am using smf 1.1.11
Title: Re: SimplePortal - 2.3.1 Released!
Post by: infyquest on December 24, 2009, 09:06:40 AM
shoutbox thats in simpleportal slowing the server down. making cpu usage go 100%.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on December 24, 2009, 09:39:01 AM
Quote from: infyquest on December 24, 2009, 09:06:40 AM
shoutbox thats in simpleportal slowing the server down. making cpu usage go 100%.

This is a known bug with the [email] tag. You can fix this for the moment by the following:
If you can access the shoutbox, delete any shouts with emails in them.
If not, disable the shoutbox. This should return your server CPU to normal (a reset might be required to bring it back down immediately).
Enter phpMyAdmin or your preferred database management tool.
Bring up your forum's database, then browse the sp_shout table. Remove any shouts with emails in them this way.
Then you can re-enable the shoutbox.

After this, disable the [email] tag in your Shoutbox edit page.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: infyquest on December 24, 2009, 12:44:33 PM
also is there any possibility of having a flash based/something that makes the pages load faster.
Since my forum users are saying chatbox has slowed it a bit.
And most shouts don't have email tag.
I am disabling email tag
Title: Re: SimplePortal - 2.3.1 Released!
Post by: ~DS~ on December 28, 2009, 04:13:51 PM
I am getting my video stretched out in portal. Any way to fix it?

http://thetwoworldsforum.com
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Eliana Tamerin on December 28, 2009, 08:05:31 PM
Looks like you're using AEVA. You'll need to consult with that mod's readme/author to go about restricting video dimensions.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: ~DS~ on December 28, 2009, 08:20:59 PM
Quote from: Eliana Tamerin on December 28, 2009, 08:05:31 PM
Looks like you're using AEVA. You'll need to consult with that mod's readme/author to go about restricting video dimensions.
Sorry it was a SMF4iPHone mod. When I click "Switch to iPhone" this is what happens. Uninstall and deleted it. Working fine now. SimplePortal FTW!!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: infyquest on December 28, 2009, 11:31:41 PM
any help on cpu overload issue?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: ~DS~ on December 29, 2009, 04:20:29 PM
Someone know the code for auto horizontal scrolling? My members want them in portal on welcome board text simliar to the one in News called "fade".
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on December 31, 2009, 03:19:47 PM
when i created a page how do i get it to show on the portal as the only way i seem to be able to access is through the admin panel
thanks
Title: Re: SimplePortal - 2.3.1 Released!
Post by: dkharp on January 02, 2010, 06:27:05 PM
Greetings!  I created a temp folder to get this installed.

Now I get the following error. 

Quote
Warning: require_once(/home/content/j/o/h/johnnyskid/html/republicpostnet/Sources/Subs-Portal.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/j/o/h/johnnyskid/html/republicpostnet/index.php on line 67

Fatal error: require_once() [function.require]: Failed opening required '/home/content/j/o/h/johnnyskid/html/republicpostnet/Sources/Subs-Portal.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/j/o/h/johnnyskid/html/republicpostnet/index.php on line 67

I have been able to retrieve my forum back.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: David Starr on January 10, 2010, 12:58:03 PM

I too am having a problem with getting logged out after having enabled the RSS block in Simple Portal. I've had SP installed and running for several days, but today I enabled an RSS block, and the next time I left the admin section & tried to come back, it asked for a password but would not let me in. I had to completely log out of the site & return to get in and disable the RSS block, at which time the password /logout problem went away.
I like Simple Portal, but would like to be able to use the RSS feed. Any ideas why or how this is interfering with logging in to admin? 
I am running Simple Portal 2.3.1 on SMF 1.1.11
Title: Re: SimplePortal - 2.3.1 Released!
Post by: ~DS~ on January 10, 2010, 01:00:18 PM
Any idea how to get the "News" to fade in SP?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Jaymjaym on January 18, 2010, 03:33:40 PM
Having some issues installing the portal; it appears to install cleanly, but when it redirects to action=manageportal, I get "An Error Has Occurred!".

Error log says:

8: Undefined index: cannot_sp_manage_settings
File: /home/XXXXX/public_html/forums/Sources/Errors.php

Other mods installed:

Stars And Badges      2.1
SMF Arcade      2.0.18
Custom BBCode      2.00
Tar Game Uploader      1.0
Title: Re: SimplePortal - 2.3.1 Released!
Post by: psynx on January 20, 2010, 03:30:30 AM
hello,

after installing the latest simple portal mods i got an error message.

An Error Has Occurred!

after the mods redirect me to the simple portal admin settings page.

admin settings, blocks and other settings of simple portal mods not appearing on admin panel.

my smf version is 1.1.11
no other mods installed

before i have arcade mods, smf gallery mods, media gallery mods (Aeva Media) and deleted all this mods


Title: Re: SimplePortal - 2.3.1 Released!
Post by: TheListener on January 20, 2010, 03:32:46 AM
Quote from: psynx on January 20, 2010, 03:30:30 AM
hello,

after installing the simple portal mods i got an error message.

An Error Has Occurred!

after the mods redirect me to the simple portal admin settings page.

admin settings, blocks and etc., not appearing on admin panel.

Were there any errors on install? Which platform do you use?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: psynx on January 21, 2010, 01:09:01 AM
there aren't any errors.

but i noticed when i unistall the simple portal, i got errors on subs.php and whos.php
Title: Re: SimplePortal - 2.3.1 Released!
Post by: TheListener on January 21, 2010, 01:10:26 AM
Errors on uninstall means you have to manaully edit the files so the code is no longer in the particular files.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: psynx on January 21, 2010, 01:21:50 AM
hello,

i have Aeva Media (Gallery & Auto-embedder) and simple portal mod installed in my forum.

when i try the gallery blocks, images from my gallery wont appear in the portal.

so i want to ask if simple portal supports Aeva Media (Gallery & Auto-embedder) mods?

if not then what type of gallery mods should i install?

how about smf gallery? or smf media gallery?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: TheListener on January 21, 2010, 01:27:42 AM
The smf media gallery has been integrated with the aeva mod to make the aeva media mod.

The code I found is as follows which must be placed into a php block

Remember to experiment with the numbers though

global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;
loadLanguage('Aeva');
@include_once($sourcedir . '/Aeva-Subs.php');
echo aeva_listItems(aeva_getMediaItems(0, 2, 'RAND()'), false, '', 2);
Title: Re: SimplePortal - 2.3.1 Released!
Post by: psynx on January 21, 2010, 09:51:32 AM
thanks a lot.

by the way, i have other more concern.

how do i center the title appearing on blocks?

Title: Re: SimplePortal - 2.3.1 Released!
Post by: curlin on January 21, 2010, 08:16:22 PM
Quote from: Brack1 on January 21, 2010, 01:27:42 AM
The smf media gallery has been integrated with the aeva mod to make the aeva media mod.

The code I found is as follows which must be placed into a php block

Remember to experiment with the numbers though

global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;
loadLanguage('Aeva');
@include_once($sourcedir . '/Aeva-Subs.php');
echo aeva_listItems(aeva_getMediaItems(0, 2, 'RAND()'), false, '', 2);


    Thanks - any idea how to center the pics in the block? Mines on the left side.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: curlin on January 21, 2010, 08:18:18 PM
Quote from: psynx on January 21, 2010, 09:51:32 AM
thanks a lot.

by the way, i have other more concern.

how do i center the title appearing on blocks?

      Just use the space bar/back space in the title area to move the text around while you eye it up. Works for me.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: ~DS~ on January 22, 2010, 03:17:20 AM
Quote from: Dismal Shadow on January 10, 2010, 01:00:18 PM
Any idea how to get the "News" to fade in SP?
Guess it's not possible...
Title: Re: SimplePortal - 2.3.1 Released!
Post by: David Starr on January 22, 2010, 01:54:02 PM
Quote from: Dismal Shadow on January 22, 2010, 03:17:20 AM
Quote from: Dismal Shadow on January 10, 2010, 01:00:18 PM
Any idea how to get the "News" to fade in SP?
Guess it's not possible...

I've not seen where to get it to fade, but if you have more than one News Item, they do alternate on the SP page. That gives it a little variety, anyway.   :D
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Jaymjaym on January 22, 2010, 11:48:01 PM
Quote from: Jaymjaym on January 18, 2010, 03:33:40 PM
Having some issues installing the portal; it appears to install cleanly, but when it redirects to action=manageportal, I get "An Error Has Occurred!".

Error log says:

8: Undefined index: cannot_sp_manage_settings
File: /home/XXXXX/public_html/forums/Sources/Errors.php

Other mods installed:

Stars And Badges      2.1
SMF Arcade      2.0.18
Custom BBCode      2.00
Tar Game Uploader      1.0

Any idea what the issue is, or need any extra information that I neglected to provide?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: frosted on January 23, 2010, 02:50:20 AM
hey guys all went well untill i checked the site.. i get this error
"Parse error: syntax error, unexpected T_ELSEIF in /home/klawgami/public_html/index.php on line 234"

index.php line 234 looks like this

   elseif (empty($modSettings['allow_guestAccess']&& !(!empty($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && !empty($_REQUEST['type']) && $_REQUEST['type'] == 'avatar') && !(empty($_REQUEST['action']) && empty($board) && empty($topic) && $modSettings['sp_portal_mode'] == 1) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', 'smstats', 'mailq', 'verificationcode', 'openidreturn',))))


what did i do wrong?

im running rc 2.0
Title: Re: SimplePortal - 2.3.1 Released!
Post by: VyrOn on January 23, 2010, 02:54:20 AM
Hello,

I installed the mod but when I installed it it says an error was found in the index.php of the default theme. I just installed it and I'm now configuring it but will I experience problems in the future with the error? ???
Title: Re: SimplePortal - 2.3.1 Released!
Post by: TheListener on January 23, 2010, 02:56:10 AM
What was the error?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: frosted on January 23, 2010, 03:18:37 AM
ok well i basically blew 5 moths worth wor organizing the site in all of 3 seconds... is there ne ways someone can help me fix my site work work correctly with this mod.. at first it was just a line error then when i went to fix it. i made it worse now im just exhasted and have spent hourse trying to fix it.. even just a walk thru or a second pair of eyes to help me find my mistake would be appreiciated
Title: Re: SimplePortal - 2.3.1 Released!
Post by: TheListener on January 23, 2010, 03:20:23 AM
Did you make a back up of the file first?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: frosted on January 23, 2010, 03:31:15 AM
i have a back up of all my files BUT!!!!! i wanted to upgrade to 2.0 so thats what i did.. i kinda got myself back on track to the point that i just installed 2.0 on the server ill have to re organize the site but i would of done that after i got this mod running ne ways.. the 2 things i was worried about losing were my theme and all the posts.. but i have a back up of the theme and ill have to recreate the posts o well. now i need a walk thru on installing this mod since last time i did it myself i almost commited suicide lol
Title: Re: SimplePortal - 2.3.1 Released!
Post by: frosted on January 23, 2010, 03:33:30 AM
sorry i reread that post.. all im worried about is getting this mod working.. i can get everything else to work fine
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on January 23, 2010, 10:02:12 AM
Quote from: frosted on January 23, 2010, 03:18:37 AM
ok well i basically blew 5 moths worth wor organizing the site in all of 3 seconds... is there ne ways someone can help me fix my site work work correctly with this mod.. at first it was just a line error then when i went to fix it. i made it worse now im just exhasted and have spent hourse trying to fix it.. even just a walk thru or a second pair of eyes to help me find my mistake would be appreiciated

did you download the latest version of the mod?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: frosted on January 23, 2010, 01:45:29 PM
yea i dled 2.3.1 but it has like 10 times more files then 2.3 did so thats what threw me off and i finally got my site with its old theme and everything working with rc2.0 aall i need is this mod and time to re organize. i started to do the file edits but im seeing that what u have to replace is in multiple spots in some cases. like one edit could be on line 354 then again on line 654
so am i sopposed to replace both of them?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on January 23, 2010, 02:24:54 PM
i think you would be better off using 2.3.1 and doing a auto install through pakage manager this version was written for rc2
Title: Re: SimplePortal - 2.3.1 Released!
Post by: frosted on January 23, 2010, 02:28:42 PM
yea i have 2.3.1.. thats the one that im trying to use for my site which is rc2

lol we are on the same page untille we get to the file edits. but ur saying use an auto install thru package manager?

didnt know there was such a thing
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on January 23, 2010, 02:38:06 PM
admin>packages>download packages then at the bottom choose the zip file and click upload then it will give you option to install mod this is how i installed simple portal
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Danpotter on January 25, 2010, 11:43:06 PM
Shout Loading is damn slow and also appearing shouts is also very slow.....
Title: Re: SimplePortal - 2.3.1 Released!
Post by: frosted on January 26, 2010, 01:52:16 AM
ok well this mod is the only one i have installed.. is ne one else having problems with the topics?

www.klawgaming.com (http://www.klawgaming.com)

for me i can get to the forum page but when i try and get to a sub topic. (child of) it gives me a blank page with nothing on it but the banner
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on January 26, 2010, 04:15:34 AM
Quote from: frosted on January 26, 2010, 01:52:16 AM
ok well this mod is the only one i have installed.. is ne one else having problems with the topics?

www.klawgaming.com (http://www.klawgaming.com)

for me i can get to the forum page but when i try and get to a sub topic. (child of) it gives me a blank page with nothing on it but the banner

i'm getting the same have you tried on the default theme to see if its a theme issue.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: frosted on January 26, 2010, 01:44:50 PM
******..... it is the theme thats doin it then.. thank your for that i wouldnt have though to change the theme... i know that this isnt a simple portal problem but would ne one knonw how to fix it?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: CrisisX on January 26, 2010, 11:28:05 PM
If my page ID is "one" what is my page URL?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mirahalo on January 26, 2010, 11:49:45 PM
Quote from: CrisisX on January 26, 2010, 11:28:05 PM
If my page ID is "one" what is my page URL?

http://simpleportal.net/index.php?topic=4465.msg27369;topicseen#new
Title: Re: SimplePortal - 2.3.1 Released!
Post by: reignmack on January 28, 2010, 04:09:38 PM
Can anybody help I have been getting the following error in the logs
19c9052f64ca52d6af6f5535b5069f9a
http://www.***.co.uk/index.php?topic=298.msg2774;topicseen
8: Undefined index: description
File: /home/*****/public_html/******.co.uk/Themes/default/languages/MGallery.english.php (portal_above sub template - eval?)
Line: 64

:-\
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mbanusick2 on January 30, 2010, 04:40:59 AM
Where do i locate the settings 4 this Mod in My Admin Cpanel in 2.0
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on January 30, 2010, 08:23:48 AM
admin>simpleportal
Title: Re: SimplePortal - 2.3.1 Released!
Post by: flamechica on February 01, 2010, 02:18:23 AM
I've always used a premium ShoutMix Shoutbox on my forum due to several features that they offer. InSMF 1.1.11, I placed the shoutbox in a custom PHP block and it worked great. Now that I am using SMF 2.0 RC2, I placed the same code into a custom PHP block and it keeps telling me that there is a syntax error in the block code. Any help would be greatly appreciated. The code I used is this (the things in bold I edited out for my privacy):

global $context;

if ($context['user']['is_guest'])
{
   echo 'You are not allowed to view shoutbox!';
   return;
}

$unique_code = 'CODEHERE';

$url_vars = htmlspecialchars('&name=' . rawurlencode($context['user']['name']) . '&code=' . md5($context['user']['name'] . $unique_code));

echo '
<iframe title="SBName" src="SBURL', $url_vars, '" width="200" height="400" frameborder="0" scrolling="auto">
<a href="SBURL">View shoutbox</a>
</iframe>';
Title: Re: SimplePortal - 2.3.1 Released!
Post by: kingkingston on February 03, 2010, 11:25:05 AM
3001st reply
Title: Re: SimplePortal - 2.3.1 Released!
Post by: rgecy on February 04, 2010, 03:56:46 AM
I am having a problem with Recent Gallery Images not showing.  They showed for the first few times I viewed the portal but now they are not showing at all.

I have the new Aeva Media mod installed.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on February 04, 2010, 04:03:13 AM
Quote from: rgecy on February 04, 2010, 03:56:46 AM
I am having a problem with Recent Gallery Images not showing.  They showed for the first few times I viewed the portal but now they are not showing at all.

I have the new Aeva Media mod installed.

this was discussed earlier in the thread take a look at the messages following this one
http://www.simplemachines.org/community/index.php?topic=227599.msg2466323#msg2466323
Title: Re: SimplePortal - 2.3.1 Released!
Post by: rgecy on February 04, 2010, 04:17:11 AM
Not sure where that code needs to be placed.  It just says in a php block?

This is the error I get when I edit the Gallery Block and go to preview.

Fatal error: Cannot redeclare allowedtoaccessalbum() (previously declared in /home/content/r/g/e/rgecy1/html/forums/Sources/Aeva-Subs.php:616) in /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-MGallery.php on line 590
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on February 04, 2010, 04:27:39 AM
go to add block chose custom php block then enter the code in there.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: rgecy on February 04, 2010, 04:41:21 AM
The code displays the images horizontally.  Any idea how i can make them vertical.  My Recent Gallery Images are in the right blocks.

Thanks,

RGecy
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on February 04, 2010, 05:47:26 AM
i've no idea i can't even get the code to work it tells me there a db error
Title: Re: SimplePortal - 2.3.1 Released!
Post by: flamechica on February 04, 2010, 02:37:11 PM
Quote from: flamechica on February 01, 2010, 02:18:23 AM
I've always used a premium ShoutMix Shoutbox on my forum due to several features that they offer. InSMF 1.1.11, I placed the shoutbox in a custom PHP block and it worked great. Now that I am using SMF 2.0 RC2, I placed the same code into a custom PHP block and it keeps telling me that there is a syntax error in the block code. Any help would be greatly appreciated. The code I used is this (the things in bold I edited out for my privacy):

global $context;

if ($context['user']['is_guest'])
{
   echo 'You are not allowed to view shoutbox!';
   return;
}

$unique_code = 'CODEHERE';

$url_vars = htmlspecialchars('&name=' . rawurlencode($context['user']['name']) . '&code=' . md5($context['user']['name'] . $unique_code));

echo '
<iframe title="SBName" src="SBURL', $url_vars, '" width="200" height="400" frameborder="0" scrolling="auto">
<a href="SBURL">View shoutbox</a>
</iframe>';

Anyone???? Help please! This has to be something with the newer version of SimplePortal, because it worked on the last version.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: waruna on February 04, 2010, 03:43:50 PM
Hye guys, I need to ask a simple question. How can I add google ads before or after the SMF and SP version?

It should be like this:

ADS GOES HERE

Powered by SMF 2.0 RC2 | SMF © 2006–2009, Simple Machines LLC
SimplePortal 2.3.1 © 2008-2009, SimplePortal
XHTML RSS WAP2

OR


Powered by SMF 2.0 RC2 | SMF © 2006–2009, Simple Machines LLC
SimplePortal 2.3.1 © 2008-2009, SimplePortal
XHTML RSS WAP2

ADS GOES HERE

Thanks in advance.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: rd on February 04, 2010, 05:37:08 PM
Ad management mod is perfect.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: waruna on February 05, 2010, 06:51:26 AM
Quote from: Royalduke on February 04, 2010, 05:37:08 PM
Ad management mod is perfect.

Can I do that using Ad Mod? I want the ads only appeared at the portal page. Please see the attachment for visual example. :D . Many thanks  ;)

Title: Re: SimplePortal - 2.3.1 Released!
Post by: rgecy on February 05, 2010, 06:13:45 PM
I am also getting an error on the portal page now.  Any ideas on what may be causing this.  Its in line 1.

QuoteWebpage error details

Message: Invalid argument.
Line: 1
Char: 1
Code: 0
URI: http://forums.sideimagingsoft.com/index.php


Message: Object doesn't support this property or method
Line: 1
Char: 1
Code: 0
URI: http://forums.sideimagingsoft.com/index.php


Thanks,

RGecy
Title: Re: SimplePortal - 2.3.1 Released!
Post by: tbk22 on February 06, 2010, 07:49:05 AM
I am getting a lot of errors in error log now that I installed AEVA Gallery and Simple Portal

Quotehttp://xxx/index.php?action=portal;sa=shoutbox;shoutbox_id=1;time=0;xml
8: Undefined index: aeva_gallery
Ficheiro: /home/xxx/public_html/Sources/Subs.php
Linha: 4037


Title: Re: SimplePortal - 2.3.1 Released!
Post by: TheListener on February 06, 2010, 08:38:01 AM
Quote from: tbk22 on February 06, 2010, 07:49:05 AM
I am getting a lot of errors in error log now that I installed AEVA Gallery and Simple Portal

Quotehttp://xxx/index.php?action=portal;sa=shoutbox;shoutbox_id=1;time=0;xml
8: Undefined index: aeva_gallery
Ficheiro: /home/xxx/public_html/Sources/Subs.php
Linha: 4037



If you go to the simple portal site and do a search for aeva media you should find a fix.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: rgecy on February 06, 2010, 10:16:38 PM
I have the Aeva Media 1.0 mod installed and Simple Portal is saying that "There are no gallery mods installed. "

Any ideas on a fix?

RGecy
Title: Re: SimplePortal - 2.3.1 Released!
Post by: MultiformeIngegno on February 07, 2010, 03:35:58 AM
Quote from: rgecy on February 06, 2010, 10:16:38 PM
I have the Aeva Media 1.0 mod installed and Simple Portal is saying that "There are no gallery mods installed. "

Any ideas on a fix?
Yes... go to simpleportal and search for "aeva media".. you'll find some posts explaining what to do! ;)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: waruna on February 07, 2010, 05:23:00 AM
Hello guys.

Is there's a possibility to remove the menu: (Home Forum Help Search Admin Moderate Profile My Messages Members Logout) only at Portal page, not including Board Index? Because I want to add Menu Block that contains only Home, Forum and Search at left column.

Thanks in advance guys. :)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: pingpongrob on February 07, 2010, 07:46:05 AM
Quote from: MultiformeIngegno on February 07, 2010, 03:35:58 AM
Quote from: rgecy on February 06, 2010, 10:16:38 PM
I have the Aeva Media 1.0 mod installed and Simple Portal is saying that "There are no gallery mods installed. "

Any ideas on a fix?
Yes... go to simpleportal and search for "aeva media".. you'll find some posts explaining what to do! ;)
I have the same problem, yet dont understand what you mean by "search for aeva media"
Title: Re: SimplePortal - 2.3.1 Released!
Post by: MultiformeIngegno on February 07, 2010, 08:48:01 AM
http://simpleportal.net/index.php?topic=4198.msg27750#msg27750
Title: Re: SimplePortal - 2.3.1 Released!
Post by: tbk22 on February 07, 2010, 01:33:43 PM
I cant get this rss feed to work with the rss block in the portal

http://feeds.feedburner.com/SilkroadLatestNews?format=xml (http://feeds.feedburner.com/SilkroadLatestNews?format=xml)

What might be the problem?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: The_Wii_Nes_Boy on February 10, 2010, 04:07:15 AM
I set up a V.I.P member goup but I can't seem to hide blocks from them, I have two blocks set up for ads and I want to be able to hide these 2 blcoks from V.I.P's. Tried everything and I'm now at my wits end.

Any help would be appreciated

thanks in advance
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on February 10, 2010, 05:08:11 AM
Quote from: The_Wii_Nes_Boy on February 10, 2010, 04:07:15 AM
I set up a V.I.P member goup but I can't seem to hide blocks from them, I have two blocks set up for ads and I want to be able to hide these 2 blcoks from V.I.P's. Tried everything and I'm now at my wits end.

Any help would be appreciated

thanks in advance

go to modify block, under block permissions untick your vip group you may need to untick your post based groups as well and make sure permission settings has one membergroup selected
Title: Re: SimplePortal - 2.3.1 Released!
Post by: The_Wii_Nes_Boy on February 10, 2010, 07:58:42 AM
Quote from: adbrad on February 10, 2010, 05:08:11 AM
Quote from: The_Wii_Nes_Boy on February 10, 2010, 04:07:15 AM
I set up a V.I.P member goup but I can't seem to hide blocks from them, I have two blocks set up for ads and I want to be able to hide these 2 blcoks from V.I.P's. Tried everything and I'm now at my wits end.

Any help would be appreciated

thanks in advance

go to modify block, under block permissions untick your vip group you may need to untick your post based groups as well and make sure permission settings has one membergroup selected
Thats fantastic, was just me being stupid and unticking ALL the boxes lol. Sorted now

Thanks
Title: Re: SimplePortal - 2.3.1 Released!
Post by: EricTheRed on February 12, 2010, 12:31:33 AM
Is there a way to edit the <title> tags for the portal page?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: rgecy on February 14, 2010, 12:56:01 AM
I am getting this error on the Portal page.  Any suggestions!

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDC; InfoPath.2)
Timestamp: Sun, 14 Feb 2010 05:55:32 UTC


Message: Invalid argument.
Line: 1
Char: 1
Code: 0
URI: http://forums.sideimagingsoft.com/index.php


Message: Object doesn't support this property or method
Line: 1
Char: 1
Code: 0
URI: http://forums.sideimagingsoft.com/index.php

Title: Re: SimplePortal - 2.3.1 Released!
Post by: rgecy on February 15, 2010, 09:49:17 PM
Ok,  After checking my error log I am getting thousands of errors a day.  Man this is really frustrating.  Here are a few.

Guest
72.56.74.208   
    Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined 
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: is_guestFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-Portal.php
Line: 257 
   Guest
72.56.74.208   
    Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined 
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: session_idFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-Portal.php
Line: 203 
   Guest
72.56.74.208   
    Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined 
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: is_guestFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-Portal.php
Line: 201 
   Guest
72.56.74.208   
    Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined 
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: session_idFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-Portal.php
Line: 190 
   Guest
72.56.74.208   
    Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined 
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: is_guestFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-Portal.php
Line: 182 
   Guest
72.56.74.208   
    Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined 
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: right_to_leftFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-Portal.php
Line: 105 
   Guest
72.56.74.208   
    Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined 
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: html_headersFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Load.php
Line: 1820 
   Guest
72.56.74.208   
    Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined 
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: html_headersFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Load.php
Line: 1814 
   Guest
72.56.74.208   
    Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined 
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: is_adminFile: /home/content/r/g/e/rgecy1/html/forums/Themes/default/languages/SPortal.english.php
Line: 119 
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Master Zonk on February 17, 2010, 09:39:23 AM
could somebody please tell me why the following php code in a custom php block works fine on the portal page and in preview but not on a custom page or anywhere else in the forum.

$x = rand(1000000, 70000000);
$m = date(n);
$d = date(j);

$sum = $m + $d - 1;
$mod = $sum % 5;
$bingo = 7 * $x + $mod;
print "<b>$bingo</b>";


This is the error I get
Quote8: Use of undefined constant n - assumed 'n'
File: C:\wamp\www\web\forum\smf\Themes\As_theme\MessageIndex.template.php (portal_below sub template - eval?)
Line: 2Database Error: Table 'products.smf_sessions' doesn't exist
File: C:\wamp\www\web\forum\smf\Sources\Load.php
Line: 2298

I can put this code into a custom php page and it works, just doesn't work in a block.
This isn't the only code that I have problems with....but this is a simple math problem...what gives?

SMF 1.1.10
Portal 2.3.1


Thanks
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on February 17, 2010, 10:52:00 AM
What's n and j you are using with date()? It should either be 'n' and 'j' or $n and $j.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Master Zonk on February 17, 2010, 11:02:58 AM
This is where I say 'duh'
the weird thing is that now my shoutbox is broke

Thanks
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Master Zonk on February 17, 2010, 11:11:28 AM
hummmm....seems my mysql query in a different block is hosing all the other blocks for some reason
Title: Re: SimplePortal - 2.3.1 Released!
Post by: worm82075 on February 23, 2010, 10:17:33 AM
Just updated from 2.0.5 to 2.3 and I gotta tell ya I'm just blown away by all the bells and whistles this puppy has. Every single thought i ever had for improving this mod has been realized and then some. Fantastic job on this mod guys and thank you all so much (especially you Sin) for offering such premium code to us SMF users for free.

Normally I do not bother such generous individuals as yourselves with problems that I could probably work out on my own but i don't have a large amount of time on my hands these days so a direct answer or even a point in the right direction would really help me out.

Ok here is the problem. Uninstalled 2.0.5 without a hitch(all tests successful) and installed 2.3 with same ease, turn key really. With some minor tweaking I got all of my old blocks working again with the exception of the poll block.

I get the following error in that block and all blocks after don't load.
Database Error
Unknown column 'p.ID_BOARD' in 'field list'
File: /nfsn/content/thewormhole/public/forum/SSI.php
Line: 908


Any idea what could be causing this? Do I need to update to 2.3.1 and if so can I do that without uninstalling 2.3?

Edit:By the way I am running 1.1.9
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on February 24, 2010, 03:33:33 AM
Poll block fetches data using the poll functions in SSI.php file. You seem to have edited the code in SSI.php and there is a problem with the query. If you don't have custom edits in SSI.php file, just replace it with a fresh one from SMF package. Otherwise you could attach it here so that we can check it.

Although it won't help with this issue particularly, I would suggest updating to 2.3.1. You won't need to uninstall 2.3 version; just install 2.3.1 package on it.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Mu3rt3 on February 24, 2010, 12:51:34 PM
Hi! I have trouble uninstalling this simple portal mod.  :o

I just click uninstall and it does give blank page with 500 error on apache log's nothing on smf error log's.

I can uninstall other mod's just fine.  ;)

"GET /index.php?action=admin;area=packages;sa=uninstall;package=SimplePortal_2.3.1.tar.gz;pid=48 HTTP/1.1" 500 -
Title: Re: SimplePortal - 2.3.1 Released!
Post by: smoooth on February 24, 2010, 02:17:39 PM
I added EVERYTHING and nothing changed?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: TheListener on February 24, 2010, 06:43:14 PM
Quote from: smoooth on February 24, 2010, 02:17:39 PM
I added EVERYTHING and nothing changed?

Can you explain more please.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: worm82075 on February 24, 2010, 10:18:01 PM
Edit: Fixed it - thanks for point in the right direction. Don't know how it got there but the unknown in the error was the culprit.

edit2:

Suggestion for Future Versions

1-Make the poll block so you can specify a board to select random polls and (like the view topic link) another link to view another random poll. This way i can limit the polls displayed to Official site polls the other link will cycle through the other polls on that board.

2- Add an option to use message icons for recent posts and topics
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Diagram on February 26, 2010, 12:34:11 AM
Weird.
After using SimplePortal Shoutbox my forum ended up in a 500 internal server error.

Any help?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: smp420 on March 03, 2010, 06:31:28 PM
I installed Simpleportal 2.3.1 on smf 2.0 Rc2 it works fine but there is no copyright it installed without errors the site is www.teenshangout.net
Title: Re: SimplePortal - 2.3.1 Released!
Post by: aussieherps on March 05, 2010, 04:24:02 AM
Have installed on rc2 with one error that I parsed in but where do I get the settings for this.
Have woked it out but now wish to chang the home button to say shop and the forum button to say home.
Which file will I find this code in?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: txcas on March 08, 2010, 07:44:25 PM
Is SMF 2.0 RC3 supported?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: tfs on March 08, 2010, 08:50:35 PM
Quote from: txcas on March 08, 2010, 07:44:25 PM
Is SMF 2.0 RC3 supported?

Not yet.  Expecting news soon over at http://www.simpleportal.net
Title: Re: SimplePortal - 2.3.1 Released!
Post by: smp420 on March 08, 2010, 10:15:13 PM
It works on RC3 actually I think most mods do just click on advanced at the bottom of package manager and emulate rc2.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: lc62003 on March 08, 2010, 11:07:10 PM
Quote from: smp420 on March 08, 2010, 10:15:13 PM
It works on RC3 actually I think most mods do just click on advanced at the bottom of package manager and emulate rc2.


I can echo that, as installed on a live test forum.   8)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on March 09, 2010, 06:15:22 AM
SimplePortal 2.3.1 works perfectly fine with SMF 2.0 RC3. Just emulate the Package Manager version to SMF 2.0 RC2 and you can install and use it without any issues.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Maserati on March 09, 2010, 06:25:42 AM
Can someone help me:

I need prrety urls for this portal, just to forum show me mydoman.com/forum not mydomain.com/index.php?action=forum...

Also can someone tell me where i can remove from articles block that part: Read more and comment?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Farjo on March 09, 2010, 07:08:57 AM
Quote from: [SiNaN] on March 09, 2010, 06:15:22 AM
SimplePortal 2.3.1 works perfectly fine with SMF 2.0 RC3. Just emulate the Package Manager version to SMF 2.0 RC2 and you can install and use it without any issues.

Thanks for the advice SiNaN it works :)

ps I had to hunt around to see what "emulate the Package Manager version" means. If you're the same see here (http://docs.simplemachines.org/index.php?topic=94.0#post_adv)  ;)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Mick. on March 09, 2010, 08:36:57 AM
RC3,   The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


I cant event emulate.   Cant find the link.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Mick. on March 09, 2010, 08:40:21 AM
Oooops, nevermind.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on March 09, 2010, 10:51:57 AM
Quoting so that people don't miss:

Quote from: [SiNaN] on March 09, 2010, 06:15:22 AM
SimplePortal 2.3.1 works perfectly fine with SMF 2.0 RC3. Just emulate the Package Manager version to SMF 2.0 RC2 and you can install and use it without any issues.

http://docs.simplemachines.org/index.php?topic=94.0#post_adv
Title: Re: SimplePortal - 2.3.1 Released!
Post by: delayed_1 on March 09, 2010, 03:20:46 PM
Hi, First, I love your portal system. I just upgraded to RC3 and downloaded your 2.3.1.tar from the packages list. tried to install and it said corrupted or not compatible with version. I retried to DL it and reinstall but same thing. Will check back later and see if its me or the package. Thanks
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Mick. on March 09, 2010, 03:25:19 PM
Quote from: delayed_1 on March 09, 2010, 03:20:46 PM
Hi, First, I love your portal system. I just upgraded to RC3 and downloaded your 2.3.1.tar from the packages list. tried to install and it said corrupted or not compatible with version. I retried to DL it and reinstall but same thing. Will check back later and see if its me or the package. Thanks

Read here:   http://www.simplemachines.org/community/index.php?topic=227599.msg2529428#msg2529428
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mrtrc266 on March 09, 2010, 03:33:27 PM
Quote from: BlueDevil on March 09, 2010, 03:25:19 PM
Quote from: delayed_1 on March 09, 2010, 03:20:46 PM
Hi, First, I love your portal system. I just upgraded to RC3 and downloaded your 2.3.1.tar from the packages list. tried to install and it said corrupted or not compatible with version. I retried to DL it and reinstall but same thing. Will check back later and see if its me or the package. Thanks

Read here:   http://www.simplemachines.org/community/index.php?topic=227599.msg2529428#msg2529428

I had the same thing happen but I think the problem now is that on the Mod Site it says it's been updated but the package-info is not correct.
http://custom.simplemachines.org/mods/index.php?mod=1104
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Mick. on March 09, 2010, 03:37:22 PM
Quote from: mrtrc266 on March 09, 2010, 03:33:27 PM
Quote from: BlueDevil on March 09, 2010, 03:25:19 PM
Quote from: delayed_1 on March 09, 2010, 03:20:46 PM
Hi, First, I love your portal system. I just upgraded to RC3 and downloaded your 2.3.1.tar from the packages list. tried to install and it said corrupted or not compatible with version. I retried to DL it and reinstall but same thing. Will check back later and see if its me or the package. Thanks

Read here:   http://www.simplemachines.org/community/index.php?topic=227599.msg2529428#msg2529428

I had the same thing happen but I think the problem now is that on the Mod Site it says it's been updated but the package-info is not correct.
http://custom.simplemachines.org/mods/index.php?mod=1104

Forget what the mod site says,..... it'll still work.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mrtrc266 on March 09, 2010, 03:43:56 PM
Quote from: BlueDevil on March 09, 2010, 03:37:22 PM
Quote from: mrtrc266 on March 09, 2010, 03:33:27 PM
Quote from: BlueDevil on March 09, 2010, 03:25:19 PM
Quote from: delayed_1 on March 09, 2010, 03:20:46 PM
Hi, First, I love your portal system. I just upgraded to RC3 and downloaded your 2.3.1.tar from the packages list. tried to install and it said corrupted or not compatible with version. I retried to DL it and reinstall but same thing. Will check back later and see if its me or the package. Thanks

Read here:   http://www.simplemachines.org/community/index.php?topic=227599.msg2529428#msg2529428 (http://www.simplemachines.org/community/index.php?topic=227599.msg2529428#msg2529428)

I had the same thing happen but I think the problem now is that on the Mod Site it says it's been updated but the package-info is not correct.
http://custom.simplemachines.org/mods/index.php?mod=1104 (http://custom.simplemachines.org/mods/index.php?mod=1104)

Forget what the mod site says,..... it'll still work.

LOL, I know it works.

I was just pointing out (to the SP Team) that they forgot to update the package-info. Obviously it was an over site when they update SP here on the Mod Site for RC3.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: MultiformeIngegno on March 09, 2010, 04:12:17 PM
Quote from: mrtrc266 on March 09, 2010, 03:43:56 PM
I was just pointing out (to the SP Team) that they forgot to update the package-info. Obviously it was an over site when they update SP for RC3.
Probably they will update the package-info when they release a new versions... :)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on March 10, 2010, 04:11:13 AM
It's not that we forgot it. Just we don't want to update the package at this point, when 2.3.2 version is really close.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: MultiformeIngegno on March 10, 2010, 04:37:20 AM
That's what my post was meaning! :)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Snowy on March 10, 2010, 07:01:23 AM
It works, but now my Home button brings me to the Portal, which is what I want, but the Forum button is missing. I tried to copy and paste the "Forum" button from my RC2 version but it gives an error. How can I make it give me a forum button for the forum and use the home button for the portal?


Nevermind... I got it.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Tiribulus on March 10, 2010, 09:14:14 PM
Version emulation isn't working for me. I installed the RC3 update and SP disappeared. I guess I should check and see if the SP code is still in the files. There is no advanced option until after I upload it and try to install it after which I get the version error and THEN the advanced option appears, but I have no link to install. I could just dump this whole dev forum and start over, but if anybody has any ideas that would be great.
Thanks

EDIT: I AM A MORON!!!

Uh, changing emulation to RC2 is a real plus :o

Nevermind
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Marsh on March 11, 2010, 01:05:14 PM
Anyone else getting wierd updates with the shoutbox? your post will be there then dissapear then show up again later. It is basically unusable. Am i the only one that gets this?

[Edit]

Disabling shoutbox caching seems to work :)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: mrtrc266 on March 12, 2010, 01:31:34 AM
Quote from: [SiNaN] on March 10, 2010, 04:11:13 AM
It's not that we forgot it. Just we don't want to update the package at this point, when 2.3.2 version is really close.

Understood....

I think what is misleading for most people is that on the Mods Home Page (http://custom.simplemachines.org/mods/index.php?mod=1104) it says Compatible With:
1.1.10, 2.0 RC1.2, 2.0 RC2, 2.0 RC3

Even though it IS compatible it seems people are expecting it to be install correctly vs. having to emulate to another version.

You guys are awesome and can't wait for SP 2.3.2!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Casal on March 12, 2010, 05:07:24 AM
When I activate simpleportal my users cannot enter because the page remains in white

SP. 2.3.1
SMF 1.1.1

Please,help me!!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: ShadoWind on March 12, 2010, 06:14:38 AM
I have a problem in that I'm trying to install this in 1.1.11 and it won't install due to the following:

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test failed
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/BoardIndex.php Test successful
5. Execute Modification ./Sources/Display.php Test successful
6. Execute Modification ./Sources/Help.php Test successful
7. Execute Modification ./Sources/Load.php Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test successful
9. Execute Modification ./Sources/ManageServer.php Test successful
10. Execute Modification ./Sources/QueryString.php Test successful
11. Execute Modification ./Sources/Recent.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Sources/Who.php Test successful
14. Execute Modification ./Themes/default/index.template.php Test successful
15. Execute Modification ./Themes/default/Display.template.php Test successful
16. Extract File ./PortalStandalone.php 
17. Extract Tree ./Sources 
18. Extract Tree ./Themes 
19. Extract Tree ./Themes/default/languages 
20. Extract Tree ./Themes/default/images/sp 
21. Extract File ./Themes/default/portal.css 
22. Extract File ./Themes/default/portal_rtl.css 
23. Extract File ./Themes/default/portal.js 
24. Execute Code install1-1.php

As you can see, the test for the other files worked fine.

Is there anything I can do to fix the problem or will I have to wait for a version to come out that's compatible with 1.1.11?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Tiribulus on March 12, 2010, 08:13:45 AM
Quote from: ShadoWind on March 12, 2010, 06:14:38 AM
I have a problem in that I'm trying to install this in 1.1.11 and it won't install due to the following:

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test failed
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/BoardIndex.php Test successful
5. Execute Modification ./Sources/Display.php Test successful
6. Execute Modification ./Sources/Help.php Test successful
7. Execute Modification ./Sources/Load.php Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test successful
9. Execute Modification ./Sources/ManageServer.php Test successful
10. Execute Modification ./Sources/QueryString.php Test successful
11. Execute Modification ./Sources/Recent.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Sources/Who.php Test successful
14. Execute Modification ./Themes/default/index.template.php Test successful
15. Execute Modification ./Themes/default/Display.template.php Test successful
16. Extract File ./PortalStandalone.php 
17. Extract Tree ./Sources 
18. Extract Tree ./Themes 
19. Extract Tree ./Themes/default/languages 
20. Extract Tree ./Themes/default/images/sp 
21. Extract File ./Themes/default/portal.css 
22. Extract File ./Themes/default/portal_rtl.css 
23. Extract File ./Themes/default/portal.js 
24. Execute Code install1-1.php

As you can see, the test for the other files worked fine.

Is there anything I can do to fix the problem or will I have to wait for a version to come out that's compatible with 1.1.11?

It's compatible. You';; need to manually edit the failing file.
http://docs.simplemachines.org/index.php?topic=402
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on March 12, 2010, 08:29:42 AM
Quote from: Casal on March 12, 2010, 05:07:24 AM
When I activate simpleportal my users cannot enter because the page remains in white

SP. 2.3.1
SMF 1.1.1

Please,help me!!

Any errors in the Forum Error Log or Server Error Log?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Casal on March 12, 2010, 04:04:54 PM
Quote from: [SiNaN] on March 12, 2010, 08:29:42 AM
Quote from: Casal on March 12, 2010, 05:07:24 AM
When I activate simpleportal my users cannot enter because the page remains in white

SP. 2.3.1
SMF 1.1.1

Please,help me!!

Any errors in the Forum Error Log or Server Error Log?

Nothing, only page in white.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Marsh on March 14, 2010, 03:13:43 AM
Images dont seem to work in shoutbox? even with the bbc code enabled in the shoutbox settings.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Dark-Skript on March 14, 2010, 08:24:24 AM
Its not compatible with smf 2.0 rc3  :'(
Title: Re: SimplePortal - 2.3.1 Released!
Post by: rd on March 14, 2010, 08:28:39 AM
It is, you have to emulate it though.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on March 14, 2010, 08:46:19 AM
it installed fine on my rc3 test forum usinsing rc2 emulation
Title: Re: SimplePortal - 2.3.1 Released!
Post by: casp3r on March 14, 2010, 12:26:43 PM
Dumb question - but how do you emulate an earlier version of smf?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: TheListener on March 14, 2010, 01:05:36 PM
Quote from: casp3r on March 14, 2010, 12:26:43 PM
Dumb question - but how do you emulate an earlier version of smf?

Took me long enough to discover too.

Install as normal. At the bottom of the packages on the right side is a link wich says advanced.

Click there.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: casp3r on March 14, 2010, 01:32:24 PM
Got it, many thanks :)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: johny000 on March 16, 2010, 03:33:34 AM
hello how are you as isee
your saying
Latest Version:2.3.1
Compatible With:1.1.10, 2.0 RC1.2, 2.0 RC2, 2.0 RC3

but want i'm trying to install it in 2.0 rc3 is not working is telling me

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


can you take look at it
Title: Re: SimplePortal - 2.3.1 Released!
Post by: TheListener on March 16, 2010, 03:40:31 AM
Quote from: johny000 on March 16, 2010, 03:33:34 AM
hello how are you as isee
your saying
Latest Version:2.3.1
Compatible With:1.1.10, 2.0 RC1.2, 2.0 RC2, 2.0 RC3

but want i'm trying to install it in 2.0 rc3 is not working is telling me

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


can you take look at it

Install the package as per normal.

Go to Browse packages

Below the avatars on the right side is an advanced link

Emulate the package to say RC2 then go back to the package and install as normal.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on March 16, 2010, 07:41:28 AM
Quote from: [SiNaN] on March 09, 2010, 10:51:57 AM
Quoting so that people don't miss:

Quote from: [SiNaN] on March 09, 2010, 06:15:22 AM
SimplePortal 2.3.1 works perfectly fine with SMF 2.0 RC3. Just emulate the Package Manager version to SMF 2.0 RC2 and you can install and use it without any issues.

http://docs.simplemachines.org/index.php?topic=94.0#post_adv
Title: Re: SimplePortal - 2.3.1 Released!
Post by: recived on March 19, 2010, 07:23:27 AM
how to display in the block "Recent attachments" link on the topic, where are they?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: K4EEO on March 19, 2010, 08:20:00 AM
it DOES install and works just fine using emulation, but since it claims rc3 compatibility, then it should install without using emulation.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on March 20, 2010, 10:45:33 AM
Quote from: recived on March 19, 2010, 07:23:27 AM
how to display in the block "Recent attachments" link on the topic, where are they?

Sorry, I'm having difficulties understanding what you mean. You want to display links to topics of attachments in Recent Attacments block?

Quote from: Studio1031 on March 19, 2010, 08:20:00 AM
it DOES install and works just fine using emulation, but since it claims rc3 compatibility, then it should install without using emulation.

We didn't want to update the package to fix that very minor issue at this point, because 2.3.2 was almost ready. It will be released very very very soon.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: aw06 on March 20, 2010, 10:48:50 AM
Quote from: [SiNaN] on March 20, 2010, 10:45:33 AM
We didn't want to update the package to fix that very minor issue at this point, because 2.3.2 was almost ready. It will be released very very very soon.

:P
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on March 20, 2010, 10:51:08 AM
Not sure what I should understand from that smiley alone, can you elaborate?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: aw06 on March 20, 2010, 11:00:04 AM
Quote from: [SiNaN] on March 20, 2010, 10:51:08 AM
Not sure what I should understand from that smiley alone, can you elaborate?

Means I'm happy to know SP 2.3.2 is almost ready and will be released very very very soon. :P :P

Can you give a list of new features ?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on March 20, 2010, 11:08:25 AM
Oh, I see. 2.3.2 is a maintenance release, so it's mostly bug fixes and doesn't include new features. Here is the changelog though:

SP 2.3.2
================================================================================
! SP erroneously allows guest access.
! sp_shop doesn't define $count variable.
! 'Forum' advanced display option is ignore in standalone mode.
! "Add Article" button shown when Articles disabled.
! "Search engine friendly URLs" support for pages.
! Rename 'Events in Future' setting.
! Some variables are assumed to be loaded by loadTheme. (SMF 2 RC2 only)
! Shoutbox misnamed [font] as [face].
! Shoutbox reverse direction.
! Shoutbox 'update' field is not used.
! Database Installers set a collation for text columns.
! Shoutbox smiley popup display no smileys. - SMF2 only
! Compat mode inconsistant with SMF compat mode.
! Add checking for the $forum variable for compat mode.
! Custom Pages can't swap from BBC type. SMF2 RC2 only
! Pages [1] should not show when there are no articles.
! Direct users to create shoutbox block after creating new shoutbox.
! Incorrect 'no categories' for non-admin when adding an article.
! Article author's membercolor does not appear to author.
! MemberColorLink foreach invalid item error.
! Updated articles and board news block templates for curve. (SMF 2 RC2 only)
! Board News template updated for curve. (SMF 2 RC2 only)
! Outdated permissions for adding and removing articles.
! BoardIndex was getting a no index meta tag when running under "forum" action.
! Removing enabled tags from bbc array caused infinite loops with auto-linking.
+ Add SimplePortal sublink to main menu. (SMF2 only)
! Deprecated 'sp_moderate' permission is still used in some cases.
! Shoutbox creating unused 'can_delete_shout' context variable.
- Removed sp_truncateText() function.
+ Added [cutoff] tag support for board news and articles.
! Incorrect information in Custom Display Options help text.
! Improve shoutbox user name higlight regex to prevent incorrect replaces.
! Portal wouldn't preserve its width on lower resolutions.
! Portal context was overrided by admin block list functions.
! Portal button was incorrectly highlighted on some forum actions.
! Status images titles and alternate texts were incosistent across admin areas.
! Center blocks didn't span whole area on a side collapse.
! Catbg listed twice under "Default Title Class" for blocks and pages. (SMF 2)
! Duplicate 'sp-blocksActive' language string in SPortalAdmin file.
! Forum menu block and block overflow didn't like each other.
! Slight changes to board news and articles templates.
! Better handling style options for page and block templates.
! Added Curve compatibility template for shoutbox history.
! Updated PortalAdmin.template.php file.
! Updated PortalAdminBlocks.template.php file.
! Updated PortalAdminPages.template.php file.
! Updated PortalAdminShoutboxes.template.php file.
! Updated PortalGeneric.template.php file.
! Updated PortalAdminArticles.template.php file.
! Outdated 'sp_portal_mode' help string.
! Added support for SMF 2.0 RC3.
! Changed version boundaries to be more flexible.
! Updated redirect.txt markup.
! Admin menu change failed on SMF 2.0 RC3.
! Updated sp_version version.
! Incorrect class in articles block.
! For some reason, pngfix was still being loaded unnecessarily.
! Added helptext buttons back. (though I still think they are just ugly)
! Some fixes to PortalAdminArticles.template.php file.
! Missing $txt global in category delete function.
! Inline permissions template had some typos.
! setupThemeContext() doubled stuff when called twice for SMF 1.1.
! Some helptexts weren't helpful enough.
! Installer was looking to incorrect directory for index.php.
+ Aeva Media compatibility for Gallery block.
! Blocks had too much padding in SMF 1.1 version.
! WYSIWYG editor was broken.
! Inline permissions template was using incorrect input name.
! Missing comma in sp_showMoreSmileys.
! Smiley code for shoutbox is not escaped for the javascript.
! Incorrect array index for message ids in articles parsing.
! Admins were unable to manage portal when portal mode is set as disabled.
! Side collapse code was unnecessarily loaded when the option is disabled.
! Missing global in settings template.
! Removed a lot of strong elements in new templates for a cleaner look.
+ Automatically fix the path to forum in PortalStandalone.php on install/upgrade.
! Some new XML install instructions were not applied on upgrades.
! Some typos in PortalAdmin.template.php and PortalArticles.template.php files.
! Default disabled tags were not set correctly when all BBC tags are enabled.

Legend:
--------------------------------------------------------------------------------
! Minor change or bugfix.
+ Feature addition or improvement.
- Feature or option removal.


We are keeping the cool stuff for our next feature release, 2.4 and that wouldn't take much long to get released as well.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: aw06 on March 20, 2010, 11:13:41 AM
OK kool , waiting for release 8)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: MultiformeIngegno on March 20, 2010, 07:28:52 PM
Cooool!!!! Can't wait to grab the new release!! ;)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: c23_Mike on March 20, 2010, 10:34:44 PM
Hi there !

Quote2.4 and that wouldn't take much long to get released as well.

Yeeaaaaaahh! Thats the best thing I heard for long time! Just I am happy now, so many wonderful releases this year!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Dharshan on March 21, 2010, 12:29:55 PM
installed it on my SMF 2 RC3, with emulation enabled...

looking forward to mod my site a bit....will keep you posted
Title: Re: SimplePortal - 2.3.1 Released!
Post by: rahlzel on March 21, 2010, 03:25:19 PM
Absolutely love this mod, and I'm glad to see you're very active in helping your following and keeping us up-to-date on the magical things you're doing.

Respect.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Dharshan on March 21, 2010, 10:57:36 PM
thanks....it went very well! cheers! if you want to see it, check out the link under my signature pic "computer help"

thanks again for this..keep up the good work
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Largo_npc on March 22, 2010, 06:28:11 AM
I can't get this to work on my rc3 site.

I use emulation, it says all is fine and it installed correctly, but then nothing.
No portal, no portal section in the admin part.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Angelina Belle on March 22, 2010, 09:21:37 AM
There seems to be a problem with the simpleportal website today. netcraft reports it down (http://uptime.netcraft.com/up/graph?site=simpleportal.net&probe=1), and host-tracker reports Domain lookup failures (http://host-tracker.com/check_res_ajx/4611243-0/)

I hope they are up soon!

Title: Re: SimplePortal - 2.3.1 Released!
Post by: c23_Mike on March 22, 2010, 09:50:12 AM
Hi there !

I have notized it today already ... seem to be a dns problem.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: replaaa on March 22, 2010, 04:23:03 PM
Smf Rc3 problem... :(
Title: Re: SimplePortal - 2.3.1 Released!
Post by: TheListener on March 22, 2010, 04:34:22 PM
Quote from: replaaa on March 22, 2010, 04:23:03 PM
Smf Rc3 problem... :(

By this I presume you have tried to install the portal on an RC3 forum.

Install the mod as per normal.

Go to browse packages

below the list of mods should be a link to advanced

Emulate the package to RC2

Install the mod
Title: Re: SimplePortal - 2.3.1 Released!
Post by: replaaa on March 22, 2010, 05:13:17 PM
Quote from: Brack1 on March 22, 2010, 04:34:22 PM
Quote from: replaaa on March 22, 2010, 04:23:03 PM
Smf Rc3 problem... :(

By this I presume you have tried to install the portal on an RC3 forum.

Install the mod as per normal.

Go to browse packages

below the list of mods should be a link to advanced

Emulate the package to RC2

Install the mod

Dont :(
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Sakae on March 22, 2010, 06:52:19 PM
I can't parse the MOD on SMF 2.0 RC3.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: TheListener on March 22, 2010, 06:55:45 PM

Quote from: Sakae on March 22, 2010, 06:52:19 PM
I can't parse the MOD on SMF 2.0 RC3.
Quote from: replaaa on March 22, 2010, 05:13:17 PM
Quote from: Brack1 on March 22, 2010, 04:34:22 PM
Quote from: replaaa on March 22, 2010, 04:23:03 PM
Smf Rc3 problem... :(

By this I presume you have tried to install the portal on an RC3 forum.

Install the mod as per normal.

Go to browse packages

below the list of mods should be a link to advanced

Emulate the package to RC2

Install the mod


Try the above.



Title: Re: SimplePortal - 2.3.1 Released!
Post by: REGNARTS_ on March 22, 2010, 10:57:17 PM
On the shoutbox, I can't seem to find the file that will allow me to edit the font size for the date (just the date). It's a little small. Any help? Thanks in advance. Image below.

(http://i43.tinypic.com/14b2ohe.png)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: hawd on March 23, 2010, 08:32:13 AM
Hellow, i want to ask 1 thing: is there any way i can syle the portal frontpage without affecting other page??
i want to put violet colour background in portal frontpage, i do it by changing the body colour in CSS.
But, it will affect other pages too and i dont want it. i want only violet colour in frontpage, but in other page still remain blue..
please help me..
Title: Re: SimplePortal - 2.3.1 Released!
Post by: ACAMS on March 23, 2010, 02:29:34 PM
I have a question!
I don't quiet understand exactly how this works, but I think it makes the front page, and other pages look like the forum theme.....is that correct?

If so, let's say a user chooses one theme and another user chooses another theme, will the front page change with the selected theme?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Krip on March 23, 2010, 06:30:20 PM
Hi guys,

I'm trying to install v2.3.1 of SP on a board running SMF 2.0 RC2 but I'm getting the following error...

3.  Execute Modification  ./Sources/Admin.php  Test failed
    1. Replace ./Sources/Admin.php Test failed
    2. Replace ./Sources/Admin.php Test successful
    3. Replace ./Sources/Admin.php Test successful


It does work if I install, but I have no Admin panel.  Is there a solution, or is it a case of manually editing that file only, or would I have to manual install everything?

Many thanks,
Andy.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Dharshan on March 23, 2010, 09:10:24 PM
Quote from: ACAMS on March 23, 2010, 02:29:34 PM
I have a question!
I don't quiet understand exactly how this works, but I think it makes the front page, and other pages look like the forum theme.....is that correct?

If so, let's say a user chooses one theme and another user chooses another theme, will the front page change with the selected theme?

yes of course.... the front page will change depending on the theme selected
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Duvel on March 26, 2010, 01:06:06 PM
Hello.
I have the latest version of Simple Portal.
Everything performs well, but with an external party / stylistic is worse.
I have a question.
Is it possible to transfer a block  Shout, before the "Information Center"?

I actually have Shoutbox Block, at the foot on Page, and i wanna move them over The Information Center Block.

Anyone want to help ?
Im really need this.

Or anyone can tell me where i must change source / scripts.
Thanks.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: irtiza104 on March 27, 2010, 05:12:52 PM
If i install simpleportal in my forum, what will happen to my existing theme? will the portal adapt the look and feel of my current template? please help.

http://bangladeshtalks.com
Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on March 27, 2010, 05:52:38 PM
yes it will all remain the same to see how it looks you can click my link in sig
Title: Re: SimplePortal - 2.3.1 Released!
Post by: irtiza104 on March 27, 2010, 06:59:57 PM
I installed it but having trouble. The package manager couldnot replace files in index.php so the forum was acting kind of funny. Rolling back.

any suggestions?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Dharshan on March 28, 2010, 12:00:40 AM
whats the SMF version?

if it's SMF2 RC3, u need to emulate RC2 on it...
Title: Re: SimplePortal - 2.3.1 Released!
Post by: morokat on March 28, 2010, 05:00:18 AM
I just install the   SimplePortal ,and i see some of web that use this    SimplePortal can to take Google spider to Who online,i use

(http://img714.imageshack.us/img714/7245/onlined.jpg)

version 3.2.1  , i want  like that also , want to take Google spider to show on who online,

for my web its show like this

(http://img714.imageshack.us/img714/4035/googleo.jpg)
Title: Re: SimplePortal - 2.3.1 Released!
Post by: irfanji on March 28, 2010, 06:55:33 AM
hello users,dear i am just using default smf version and template,i want logo with links,is athere any mode or trick for adding logo with lonks,you can check the picture to better understand,how can i add this type of logo in smf?

Title: Re: SimplePortal - 2.3.1 Released!
Post by: adbrad on March 28, 2010, 08:04:34 AM
if you want that on the portal or indeed every page on forum probably be able to achieve with a html block
Title: Re: SimplePortal - 2.3.1 Released!
Post by: irtiza104 on March 28, 2010, 01:16:45 PM
Using smf 2RC2.0 and having trouble installing the portal. The package is unable to locate index.php files (even though they exist). What should i do?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: hawd on March 30, 2010, 01:01:34 PM
hellow i want to put a tabbed recent topic / post in my portal frontpage. can anyone here give me the mod?
to see what i mean in action please look here:  http://www.phpbb3portal.com/#fragment-12 (http://www.phpbb3portal.com/#fragment-12)

also i've put screenshot in attachment.

im search for this month since 3month ago. and i hope someone can solve my problem. ..  :(
im using smf 2.0 rc3 and latest simple portal...

thanks.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: kkattfish on March 30, 2010, 08:22:29 PM
really looking forward to the new release for aeva gallery recognition on the homepage for gallery pics. 
any info on when this will be released?  not an exact date, but a week a month? 

thanks for a great portal
Title: Re: SimplePortal - 2.3.1 Released!
Post by: irtiza104 on March 31, 2010, 03:37:10 AM
I am using RC3.0. but i am unable to install the portal from the package manager. what should i do? when will you update the portal so that we can install it automatically?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: MultiformeIngegno on March 31, 2010, 05:28:07 AM
Quote from: irtiza104 on March 31, 2010, 03:37:10 AM
I am using RC3.0. but i am unable to install the portal from the package manager. what should i do? when will you update the portal so that we can install it automatically?
You have to emulate the rc2
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Canownueasy on March 31, 2010, 09:21:21 PM
I get this error when trying to install it  :'(

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: DjScrappy on April 02, 2010, 02:32:21 AM
Need Help Keep Getting This When Trying To Install SimplePortal 2.3.1 For SMF 2.0 RC2 and I Get This "The package you are trying to download or install is either corrupt or not compatible with this version of SMF. "............I Own MaddSmokerz.Com and Have Used This Portal ever Since It Came Out Was Woundering If I Can Maybe Get It To Work With SMF 2.0 RC2 Like It Says.. Thanx MaddSmokerz aka DjScrappy
Title: Re: SimplePortal - 2.3.1 Released!
Post by: MultiformeIngegno on April 02, 2010, 03:43:18 AM
Men you're annoying now!! Please read the posts above yours!! You can't pretend a reply when this has been said at least 2000 times!!!! You have to emulate RC2!
Title: Re: SimplePortal - 2.3.1 Released!
Post by: madfitz on April 02, 2010, 08:21:35 AM
Quote from: MultiformeIngegno on April 02, 2010, 03:43:18 AM
Men you're annoying now!! Please read the posts above yours!! You can't pretend a reply when this has been said at least 2000 times!!!! You have to emulate RC2!

OK, I emulated RC2 and it seemed to install correctly but what now?

Where is the configuration carried out? I don't see anywhere in the admin pages.

And do I revert the emulation to RC3 after install?

Edit: Nevermind, I had to uninstall it because it broke my board without access to the configuration settings (only the header was visible).
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on April 02, 2010, 08:59:36 AM
Any errors in the log? It won't brake anything under normal conditions.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: madfitz on April 02, 2010, 09:01:37 AM
Ah. The log was a mass of errors so I deleted a moment ago.

And the config settings? Where would I have found those? Perhaps if I had configured it the board would have become visible?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on April 02, 2010, 09:12:24 AM
What do you mean by the "board wasn't visible"? SimplePortal will replace your board index with the portal page and add a Forum button which will lead to board index. If you are using SMF 1.1 with a custom theme; you'll need to add the Forum button manually.

SimplePortal settings can be found under Admin > SimplePortal area.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: madfitz on April 02, 2010, 09:26:04 AM
Quote from: [SiNaN] on April 02, 2010, 09:12:24 AM
What do you mean by the "board wasn't visible"?

Only the board header was visible. The only thing showing south of that was the copyright lines for the portal and SMF.

Quote from: [SiNaN] on April 02, 2010, 09:12:24 AM
SimplePortal settings can be found under Admin > SimplePortal area.
There was no SimplePortal area to be found in my admin center.

BTW, the admin center was entirely visible as normal.

Edit: And the answer to my other question? When install is complete do you revert the emulation settings to RC3?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on April 02, 2010, 09:45:25 AM
Quote from: madfitz on April 02, 2010, 09:26:04 AM
Edit: And the answer to my other question? When install is complete do you revert the emulation settings to RC3?

Doesn't matter either way. Though, you should set it to RC2 back, while you are uninstalling (if you will).

Now is the portal uninstalled?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: madfitz on April 02, 2010, 09:56:54 AM
Yes it's uninstalled. I'm making another full backup before I consider trying again.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: aw06 on April 02, 2010, 10:01:13 AM
Any word on 2.3.2 sinan ?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: DjScrappy on April 02, 2010, 11:00:19 AM
what does This Mean "You have to emulate the rc2"  maybe someone can explain it better
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Dharshan on April 02, 2010, 11:16:21 AM
if you are using SMF RC3 in your forum (the latest release) you can check this at the very bottom of your forum.
then simple portal will not allow you to install it

so use the following path and do the changes.

go to admin-->packages-->browse packages

in this page you will see a list of installed mods (if you have any)

locate the advanced button at the bottom right hand corner and click it

on the new area that opens you will see SMF 2.0 RC3

change this to SMF 2.0 RC2 and hit apply

thats all





Title: Re: SimplePortal - 2.3.1 Released!
Post by: ~DS~ on April 02, 2010, 10:43:19 PM
2.3.2 and for RC3 is out
http://simpleportal.net/index.php?PHPSESSID=13359863b2bded699b06fd9e5672fa97&topic=5052.0
Title: Re: SimplePortal - 2.3.1 Released!
Post by: txcas on April 02, 2010, 10:54:21 PM
I installed 2.3.1 on RC3 using the RC2 emulation.  Now that 2.3.2 is out, I tried to uninstall 2.3.1 and the first test on index.php failed.  Since I had a full backup I went ahead with the uninstallation.  That completely messed up the site.  I had to restore from backup.  I also found that when 2.3.2 is downloaded to the site but not installed, the package is marked in red as an old version and you get an option to upgrade but not to install it.  How can I safely remove 2.3.1 from RC3 and why is 2.3.2 getting flagged as an old version?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: aw06 on April 02, 2010, 11:27:29 PM
You have to remove it after emulating SMF Rc2

I Upgraded, but now all my articles have the read more link ???
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Bruno36 on April 03, 2010, 06:56:36 AM
Hello!

I have several error messages

In sub.php lines are found
\?(?:' . SID . ';)((?:board|topic
\?(?:' . SID . '(?:;|&|&amp;))((?:board|topic
\?((?:board|topic

The portal is incompatible with Pretty URLs
Title: Re: SimplePortal - 2.3.1 Released!
Post by: txcas on April 03, 2010, 09:33:24 AM
Quote from: aw06 on April 02, 2010, 11:27:29 PM
You have to remove it after emulating SMF Rc2
I know that.  Without RC2 emulation the option to unistall is not even available.  I still get errors on the first test on index.php.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: Furqon on April 03, 2010, 10:01:51 AM
Quote from: Bruno36 on April 03, 2010, 06:56:36 AM
Hello!

I have several error messages

In sub.php lines are found
\?(?:' . SID . ';)((?:board|topic
\?(?:' . SID . '(?:;|&|&amp;))((?:board|topic
\?((?:board|topic

The portal is incompatible with Pretty URLs

same with me .. any solutions about this ?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: gisfreak on April 03, 2010, 10:02:10 AM
Quote from: Bruno36 on April 03, 2010, 06:56:36 AM
Hello!

I have several error messages

In sub.php lines are found
\?(?:' . SID . ';)((?:board|topic
\?(?:' . SID . '(?:;|&|&amp;))((?:board|topic
\?((?:board|topic

The portal is incompatible with Pretty URLs

same with me, error on subs

using SMF 1.1.11 and pretty URL  :(
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.
Title: Re: SimplePortal - 2.3.1 Released!
Post by: [SiNaN] on April 03, 2010, 11:10:24 AM
Quote from: txcas on April 02, 2010, 10:54:21 PM
I installed 2.3.1 on RC3 using the RC2 emulation.  Now that 2.3.2 is out, I tried to uninstall 2.3.1 and the first test on index.php failed.  Since I had a full backup I went ahead with the uninstallation.  That completely messed up the site.  I had to restore from backup. I also found that when 2.3.2 is downloaded to the site but not installed, the package is marked in red as an old version and you get an option to upgrade but not to install it.  How can I safely remove 2.3.1 from RC3 and why is 2.3.2 getting flagged as an old version?

Are you sure 2.3.2 is flagged as old the version?

To uninstall 2.3.1, you could get a copy of your index.php file; remove the edits made by SimplePortal in that file, using the manual installation instructions on the Mod Site; then uninstall the mod ignoring the errors. And lastly, replace your index.php file with the one you removed the edits from, manually.

Quote from: aw06 on April 02, 2010, 11:27:29 PM
You have to remove it after emulating SMF Rc2

I Upgraded, but now all my articles have the read more link ???

Replied this at sp.net.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Furqon on April 03, 2010, 11:15:10 AM
I'm not using Pretty URL (SMF 2 RC3), but i've got Subs.php error message


Thank You
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 03, 2010, 11:35:36 AM
Can you attach your Subs.php file here?
Title: Re: SimplePortal - 2.3.1 Released!
Post by: txcas on April 03, 2010, 01:46:23 PM
Quote from: [SiNaN] on April 03, 2010, 11:10:24 AM
Quote from: txcas on April 02, 2010, 10:54:21 PM
I installed 2.3.1 on RC3 using the RC2 emulation.  Now that 2.3.2 is out, I tried to uninstall 2.3.1 and the first test on index.php failed.  Since I had a full backup I went ahead with the uninstallation.  That completely messed up the site.  I had to restore from backup. I also found that when 2.3.2 is downloaded to the site but not installed, the package is marked in red as an old version and you get an option to upgrade but not to install it.  How can I safely remove 2.3.1 from RC3 and why is 2.3.2 getting flagged as an old version?

Are you sure 2.3.2 is flagged as old the version?

To uninstall 2.3.1, you could get a copy of your index.php file; remove the edits made by SimplePortal in that file, using the manual installation instructions on the Mod Site; then uninstall the mod ignoring the errors. And lastly, replace your index.php file with the one you removed the edits from, manually.

Yes it is getting flagged as the old version.  Check the attached picture.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on April 03, 2010, 03:03:59 PM
Quote from: txcas on April 03, 2010, 01:46:23 PM
Quote from: [SiNaN] on April 03, 2010, 11:10:24 AM
Quote from: txcas on April 02, 2010, 10:54:21 PM
I installed 2.3.1 on RC3 using the RC2 emulation.  Now that 2.3.2 is out, I tried to uninstall 2.3.1 and the first test on index.php failed.  Since I had a full backup I went ahead with the uninstallation.  That completely messed up the site.  I had to restore from backup. I also found that when 2.3.2 is downloaded to the site but not installed, the package is marked in red as an old version and you get an option to upgrade but not to install it.  How can I safely remove 2.3.1 from RC3 and why is 2.3.2 getting flagged as an old version?

Are you sure 2.3.2 is flagged as old the version?

To uninstall 2.3.1, you could get a copy of your index.php file; remove the edits made by SimplePortal in that file, using the manual installation instructions on the Mod Site; then uninstall the mod ignoring the errors. And lastly, replace your index.php file with the one you removed the edits from, manually.

Yes it is getting flagged as the old version.  Check the attached picture.

i noticed this as well but once it was installed it showed as current version
Title: Re: SimplePortal - 2.3.2 Released!
Post by: psynx on April 03, 2010, 10:02:16 PM
please help!

i have smf 1.1.11 and using babylon theme. i also have simple portal mod installed.

i have this white space under my blocks. i don't know how to fix this. it is untidy.

try view my site on different browser, using mozilla no problem at all. but viewing it on IE browser there you see white space under the blocks.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Tiribulus on April 03, 2010, 10:29:07 PM
Major props to the SP crew. My frankensite with going on 90 mods and the most flawless Simple Portal upgrade yet today. Zeeroh manual surgery and zeeroh issues. Great job kids.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: flapjack on April 03, 2010, 10:31:32 PM
Quote from: psynx on April 03, 2010, 10:02:16 PM
please help!

i have smf 1.1.11 and using babylon theme. i also have simple portal mod installed.

i have this white space under my blocks. i don't know how to fix this. it is untidy.

try view my site on different browser, using mozilla no problem at all. but viewing it on IE browser there you see white space under the blocks.
I already asked you to contact the mod author, as it is not smf related, and not simpleportal related either
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Dharshan on April 03, 2010, 11:20:29 PM
upgraded  existing 2.3.1  version on my SMF2 RC3, with no problem, you do not need to uninstall 2.3.1, just upload the new package and install it! :)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Tiribulus on April 03, 2010, 11:39:08 PM
Quote from: Dharshan on April 03, 2010, 11:20:29 PM
upgraded  existing 2.3.1  version on my SMF2 RC3, with no problem, you do not need to uninstall 2.3.1, just upload the new package and install it! :)

I don't know man. I'm no expert, but the if the notes to say to uninstall the previous version the honchos must have reasons for including those instructions.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Dharshan on April 04, 2010, 01:29:00 AM
Quote from: Tiribulus on April 03, 2010, 11:39:08 PM
Quote from: Dharshan on April 03, 2010, 11:20:29 PM
upgraded  existing 2.3.1  version on my SMF2 RC3, with no problem, you do not need to uninstall 2.3.1, just upload the new package and install it! :)

I don't know man. I'm no expert, but the if the notes to say to uninstall the previous version the honchos must have reasons for including those instructions.

if your using 2.3.1 u do not need to uninstall it, but if your using an older version than 2.3.1 then u need to uninstall.

cheers!

Title: Re: SimplePortal - 2.3.1 Released!
Post by: gisfreak on April 04, 2010, 04:23:46 AM
Quote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.

any other way........any other plan from SP developer to fix problem ?  ::)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 04, 2010, 06:08:03 AM
Quote from: psynx on April 03, 2010, 10:02:16 PM
please help!

i have smf 1.1.11 and using babylon theme. i also have simple portal mod installed.

i have this white space under my blocks. i don't know how to fix this. it is untidy.

try view my site on different browser, using mozilla no problem at all. but viewing it on IE browser there you see white space under the blocks.

IE6 is evil. Fix is here:

http://simpleportal.net/index.php?topic=4326.msg30504#msg30504

Quote from: Tiribulus on April 03, 2010, 11:39:08 PM
Quote from: Dharshan on April 03, 2010, 11:20:29 PM
upgraded  existing 2.3.1  version on my SMF2 RC3, with no problem, you do not need to uninstall 2.3.1, just upload the new package and install it! :)

I don't know man. I'm no expert, but the if the notes to say to uninstall the previous version the honchos must have reasons for including those instructions.

Actually, you can upgrade from 2.3 and 2.3.1 versions without uninstalling. If you are using an older version, you need to uninstall and install back though.

Quote from: gisfreak on April 04, 2010, 04:23:46 AM
Quote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.

any other way........any other plan from SP developer to fix problem ?  ::)

The only thing we would do will be setting that edit as "ignore-able". Pretty URLs replaces that function alltogether and adds its own handling of pretty URLs.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: aussieherps on April 04, 2010, 08:43:01 AM
Have made a page and marked it as active, but it does not show anywhere in the menu.
How do I make the page available?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: rahlzel on April 04, 2010, 11:36:26 PM
Quote from: aussieherps on April 04, 2010, 08:43:01 AM
Have made a page and marked it as active, but it does not show anywhere in the menu.
How do I make the page available?

I had the same problem.  I just copied its link in the "Pages" section and used it as a redirect board.

I'd be happy to post this bug up on the SimplePortal site, but I can't get past your f*cking CAPTCHA verification image to register. You guys are great with php, but apparently no one at SimplePortal ever read ANY "Web Design Mistakes to Avoid" articles. I noticed you even use it on the Search function. Great way to prevent people from searching for similar bugs before they post theirs (unless it turns off for registered members).

Anyway, I'm using SMF 2.0 RC3 and SimplePortal 2.3.2 and I noticed a bug with the Shoutbox. Currently my Shoutbox is at the top of the "Top Blocks". When I select the "Reverse Order" option, the reverse function works well, but long messages (more than a line.. even more makes it worse) will get cut off just above the timestamp.

Thanks for the great work done on this portal! This one is my favorite.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: smp420 on April 05, 2010, 12:45:20 AM
This isn't a bug. You have to make a new tab in the menu linking to your page. Search and you will find a how to on this.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ACAMS on April 05, 2010, 04:17:05 AM
I am having trouble getting this to work on my modified 2.0 RC2 forum.....it works fine on my unmodified test forum.
I have Member Color Link, Spoiler Tag, Wysiwyg Quick Reply RC2, nCode Image Resizer, Limit Posts Per Day (doesn't work), SMF Arcade mods installed and two themes by Crip installed. I need help getting it working because I have tried about everything I know. It does not change the links to the pages ...IE "Home", "Forum", "Search" And I have modded that too.....could that be the reason?
When I create a page, and copy the link it does not show like on my test forum, but I can probably fix that.

Can somebody help me with this?

I have it disabled now because when it is enabled the front page shows instead of the forum.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 05, 2010, 04:31:29 AM
Quote from: aussieherps on April 04, 2010, 08:43:01 AM
Have made a page and marked it as active, but it does not show anywhere in the menu.
How do I make the page available?

Quote from: rahlzel on April 04, 2010, 11:36:26 PM
Quote from: aussieherps on April 04, 2010, 08:43:01 AM
Have made a page and marked it as active, but it does not show anywhere in the menu.
How do I make the page available?

I had the same problem.  I just copied its link in the "Pages" section and used it as a redirect board.

I'd be happy to post this bug up on the SimplePortal site, but I can't get past your f*cking CAPTCHA verification image to register. You guys are great with php, but apparently no one at SimplePortal ever read ANY "Web Design Mistakes to Avoid" articles. I noticed you even use it on the Search function. Great way to prevent people from searching for similar bugs before they post theirs (unless it turns off for registered members).

Anyway, I'm using SMF 2.0 RC3 and SimplePortal 2.3.2 and I noticed a bug with the Shoutbox. Currently my Shoutbox is at the top of the "Top Blocks". When I select the "Reverse Order" option, the reverse function works well, but long messages (more than a line.. even more makes it worse) will get cut off just above the timestamp.

Thanks for the great work done on this portal! This one is my favorite.

Quote from: smp420 on April 05, 2010, 12:45:20 AM
This isn't a bug. You have to make a new tab in the menu linking to your page. Search and you will find a how to on this.

Yeah, it isn't a bug. Currently you need to add links to your pages manually.

As for the verification code required on sp.net; it's only required for guests and I believe it is simple enough.

Quote from: ACAMS on April 05, 2010, 04:17:05 AM
I am having trouble getting this to work on my modified 2.0 RC2 forum.....it works fine on my unmodified test forum.
I have Member Color Link, Spoiler Tag, Wysiwyg Quick Reply RC2, nCode Image Resizer, Limit Posts Per Day (doesn't work), SMF Arcade mods installed and two themes by Crip installed. I need help getting it working because I have tried about everything I know. It does not change the links to the pages ...IE "Home", "Forum", "Search" And I have modded that too.....could that be the reason?
When I create a page, and copy the link it does not show like on my test forum, but I can probably fix that.

Can somebody help me with this?

I have it disabled now because when it is enabled the front page shows instead of the forum.

If you mean you don't have the "Forum" button in the menu; if you are using SMF 1.1 version with a custom theme, you'll need to add the "Forum" button manually. Here's the guide for that:

http://simpleportal.net/index.php?topic=148.0
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Bruno36 on April 05, 2010, 05:59:31 AM
Quote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.

Its causes a blank page when I send or respond to a topic ..
Title: Re: SimplePortal - 2.3.2 Released!
Post by: PSPguru on April 05, 2010, 06:17:03 AM
thanks for the update, the new features are handy  ::)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: aw06 on April 05, 2010, 07:07:35 AM
Bug ??
http://www.simplemachines.org/community/index.php?topic=374506.msg2568962#msg2568962
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ACAMS on April 05, 2010, 10:54:36 AM
Quote from: [SiNaN] on April 05, 2010, 04:31:29 AM

Quote from: ACAMS on April 05, 2010, 04:17:05 AM
I am having trouble getting this to work on my modified 2.0 RC2 forum.....it works fine on my unmodified test forum.
I have Member Color Link, Spoiler Tag, Wysiwyg Quick Reply RC2, nCode Image Resizer, Limit Posts Per Day (doesn't work), SMF Arcade mods installed and two themes by Crip installed. I need help getting it working because I have tried about everything I know. It does not change the links to the pages ...IE "Home", "Forum", "Search" And I have modded that too.....could that be the reason?
When I create a page, and copy the link it does not show like on my test forum, but I can probably fix that.

Can somebody help me with this?

I have it disabled now because when it is enabled the front page shows instead of the forum.

If you mean you don't have the "Forum" button in the menu; if you are using SMF 1.1 version with a custom theme, you'll need to add the "Forum" button manually. Here's the guide for that:

http://simpleportal.net/index.php?topic=148.0 (http://simpleportal.net/index.php?topic=148.0)




I put a quote tag in and the damn forum deletes it.......

I have a Forum button as always, it just didn't make a Home page button and the forum button leads to the home page.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 05, 2010, 11:37:53 AM
Quote from: Bruno36 on April 05, 2010, 05:59:31 AM
Quote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.

Its causes a blank page when I send or respond to a topic ..

Ummm, where did you get the impression that "it" causes the blank page?

Quote from: ACAMS on April 05, 2010, 10:54:36 AM
I put a quote tag in and the damn forum deletes it.......

I have a Forum button as always, it just didn't make a Home page button and the forum button leads to the home page.

I'm really having difficulty in understanding what you issue is. Can you please clearly explain what you expect and what you get? Also, can you provide a link to your forum?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ACAMS on April 05, 2010, 11:46:47 AM
I got it, I had to copy the buttons from my test forum.

Thanks for the help.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Bruno36 on April 05, 2010, 02:15:23 PM
QuoteUmmm, where did you get the impression that "it" causes the blank page?

Good evening!

Yes the problem occurred after installing SimplePortal - 2.3.2
With SimplePortal - 2.3.1 I was not a problem
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ACAMS on April 05, 2010, 04:39:05 PM
I have SMF 2.0 RC2 with SimplePortal - 2.3.1


No matter what I try, I can't create a .php page.....only html

I get this error, even with simple page.

Syntax error in block code. Please check the code.

I used Dreamweaver and created this simple test page and STILL got the error!


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
test
</body>
</html>




What can I do to create a .php page.....I have GOT to have it for my uploaders?

THANKS


EDIT:

This does not work either!

<html>
<body>

<?php
echo "Hello World";
?>


</body>
</html>


Preview gives this error!

Parse error: syntax error, unexpected '&' in /home/.monsieur/gametechmods/gametechmods.com/forums/Sources/Subs-Portal.php(1333) : eval()'d code on line 1
Title: Re: SimplePortal - 2.3.2 Released!
Post by: kkattfish on April 05, 2010, 05:37:42 PM
Excellent!  I just upgraded from 2.3.1 to 2.3.2 with no errors or problems of any kind.  Best part is now Aeva gallery displays on the portal.  Great work, thanks for a great mod   ;)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ACAMS on April 05, 2010, 11:35:43 PM
I upgraded to 2.3.2 and that fixed all my problems too!

php pages work fine now.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 06, 2010, 01:40:24 AM
Quote from: Bruno36 on April 05, 2010, 02:15:23 PM
QuoteUmmm, where did you get the impression that "it" causes the blank page?

Good evening!

Yes the problem occurred after installing SimplePortal - 2.3.2
With SimplePortal - 2.3.1 I was not a problem

SimplePortal won't make any changes that might cause a white page on those actions. It might be related to some other mod (like Pretty URLs or SimpleSEF - if you are using something like that). Do you have any errors in the forum error log or server error log? Try uninstalling SimplePortal and see if problem goes away.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: LuisMX on April 06, 2010, 05:57:30 PM
"standalone" does not remember the login at index :o

www.clanscp.com , you can get logged at forums via blocks on index, but if you click index again, block still asking to log in.
--
sorry, changed forum link from foro.clanscp.com to www.clanscp.com/foro and now its working, thx.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: psynx on April 06, 2010, 10:51:29 PM
Quote from: [SiNaN] on April 04, 2010, 06:08:03 AM
Quote from: psynx on April 03, 2010, 10:02:16 PM
please help!

i have smf 1.1.11 and using babylon theme. i also have simple portal mod installed.

i have this white space under my blocks. i don't know how to fix this. it is untidy.

try view my site on different browser, using mozilla no problem at all. but viewing it on IE browser there you see white space under the blocks.

IE6 is evil. Fix is here:

http://simpleportal.net/index.php?topic=4326.msg30504#msg30504


One more problem! in mozilla firefox i have scroll bar in my top and bottom blocks when there are messages that are too long, but in IE no scroll bar, all messages are displayed.

look at my site and view it in mozilla and IE,
www.mirc-chatting.isgreat.org

Title: Re: SimplePortal - 2.3.2 Released!
Post by: sbt on April 09, 2010, 05:49:54 PM
Question please, we have installed SMF 2.0 RC3 on a test forum we created to try the mods.We are only using the default core theme.We have tried every version of Simple Portal and none will install. We have tried every workaround and suggestion in this topic.We have Googled.We have searched at Simple Portal forum.We are getting Test Successful on everything, but it errors when clicking install now. We have had the host verify, it is nothing to do with them or the server.Version Information:                 Forum version:              SMF 2.0 RC3                 Current SMF version:              SMF 2.0 RC3                 GD version:              bundled (2.0.34 compatible)                 SQLite version:              2.8.17                 PHP:              5.2.10                 Server version:              ApacheHere are the errors we get:If Install now is selected, this error:The database value you're trying to insert does not exist: 0If Install in Other Themes is selected, then this error:SQL logic error or missing databaseno such column: contentFile: /home/XXXX/XXXX/tutstop_forum/SMF2TestForum/Packages/temp/install2.phpLine: 967Here is the install actions:1.      Execute Modification      ./index.php      Test successful        1.     Replace     ./index.php     Test successful        2.     Replace     ./index.php     Test successful        3.     Replace     ./index.php     Test successful        4.     Replace     ./index.php     Test successful        5.     Replace     ./index.php     Test successful        6.     Replace     ./index.php     Test successful*     2.     Execute Modification     ./SSI.php     Test successful        1.     Replace     ./SSI.php     Test successful        2.     Replace     ./SSI.php     Test successful*     3.     Execute Modification     ./Sources/Admin.php     Test successful        1.     Replace     ./Sources/Admin.php     Test successful        2.     Replace     ./Sources/Admin.php     Test successful        3.     Replace     ./Sources/Admin.php     Test successful*     4.     Execute Modification     ./Sources/BoardIndex.php     Test successful        1.     Replace     ./Sources/BoardIndex.php     Test successful*     5.     Execute Modification     ./Sources/Display.php     Test successful        1.     Replace     ./Sources/Display.php     Test successful*     6.     Execute Modification     ./Sources/Help.php     Test successful        1.     Replace     ./Sources/Help.php     Test successful*     7.     Execute Modification     ./Sources/Load.php     Test successful        1.     Replace     ./Sources/Load.php     Test successful        2.     Replace     ./Sources/Load.php     Test successful*     8.     Execute Modification     ./Sources/ManagePermissions.php     Test successful        1.     Replace     ./Sources/ManagePermissions.php     Test successful        2.     Replace     ./Sources/ManagePermissions.php     Test successful        3.     Replace     ./Sources/ManagePermissions.php     Test successful*     9.     Execute Modification     ./Sources/ManageServer.php     Test successful        1.     Replace     ./Sources/ManageServer.php     Test successful*     10.     Execute Modification     ./Sources/QueryString.php     Test successful        1.     Replace     ./Sources/QueryString.php     Test successful        2.     Replace     ./Sources/QueryString.php     Test failed (Ignore Errors)        3.     Replace     ./Sources/QueryString.php     Test successful        4.     Replace     ./Sources/QueryString.php     Test successful*     11.     Execute Modification     ./Sources/Recent.php     Test successful        1.     Replace     ./Sources/Recent.php     Test successful        2.     Replace     ./Sources/Recent.php     Test successful        3.     Replace     ./Sources/Recent.php     Test successful*     12.     Execute Modification     ./Sources/Subs.php     Test successful        1.     Replace     ./Sources/Subs.php     Test successful        2.     Replace     ./Sources/Subs.php     Test successful        3.     Replace     ./Sources/Subs.php     Test successful        4.     Replace     ./Sources/Subs.php     Test successful        5.     Replace     ./Sources/Subs.php     Test successful        6.     Replace     ./Sources/Subs.php     Test failed (Ignore Errors)        7.     Replace     ./Sources/Subs.php     Test successful        8.     Replace     ./Sources/Subs.php     Test failed (Ignore Errors)        9.     Replace     ./Sources/Subs.php     Test successful        10.     Replace     ./Sources/Subs.php     Test successful        11.     Replace     ./Sources/Subs.php     Test successful        12.     Replace     ./Sources/Subs.php     Test successful        13.     Replace     ./Sources/Subs.php     Test failed (Ignore Errors)        14.     Replace     ./Sources/Subs.php     Test successful        15.     Replace     ./Sources/Subs.php     Test successful*     13.     Execute Modification     ./Sources/Subs-BoardIndex.php     Test successful        1.     Replace     ./Sources/Subs-BoardIndex.php     Test successful*     14.     Execute Modification     ./Sources/Subs-Boards.php     Test successful        1.     Replace     ./Sources/Subs-Boards.php     Test successful*     15.     Execute Modification     ./Sources/Who.php     Test successful        1.     Replace     ./Sources/Who.php     Test successful        2.     Replace     ./Sources/Who.php     Test successful        3.     Replace     ./Sources/Who.php     Test successful        4.     Replace     ./Sources/Who.php     Test successful*     16.     Execute Modification     ./Themes/default/Display.template.php     Test successful        1.     Replace     ./Themes/default/Display.template.php     Test successful*     17.     Execute Modification     ./Themes/default/scripts/script.js     Test successful        1.     Replace     ./Themes/default/scripts/script.js     Test successful    18.     Extract File     ./PortalStandalone.php         19.     Extract Tree     ./Sources         20.     Extract Tree     ./Themes         21.     Extract Tree     ./Themes/default/languages         22.     Extract Tree     ./Themes/default/images/sp         23.     Extract Tree     ./Themes/default/images/admin         24.     Extract File     ./Themes/default/css/portal.css         25.     Extract File     ./Themes/default/css/portal_rtl.css         26.     Extract File     ./Themes/default/scripts/portal.js         27.     Adapt Database     install2.php     Install in Other Themes Install in Other ThemesTo use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.        Core Theme        Execute Modification     ./Themes/core/Display.template.php     Test successful        1.     Replace     ./Themes/core/Display.template.php     Test successful        Extract Tree     ./Themes/core/images/sp             Extract Tree     ./Themes/core/images/adminTo add, we are using SMF 1.1.11 and SimplePortal 2.3.1 on our functioning forum. All is well there, lol.Thank You for any replies.

Resolved.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: paulmagno on April 11, 2010, 06:18:08 AM
SiNaN already said that we can ignore "If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod." when installing SimplePortal 2.3.2....But I also get this: "1. Execute Modification     ./index.php"

What should I do?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: grinczar on April 11, 2010, 02:21:25 PM
Great work guys, but I have a problem...

I installed it successful but after it, when I'm trying go to Administration>Packages>Browse (or download) Packages, I see a blank page.
I don't have other installed modifications, only Simple Portal.

What I have to do?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ukhalik2 on April 11, 2010, 03:20:14 PM
getting error in installation!

Error in Package Installation
Execute Modification       ./Sources/Subs.php      Test failed
Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on April 11, 2010, 04:29:54 PM
Quote from: ukhalik2 on April 11, 2010, 03:20:14 PM
getting error in installation!

Error in Package Installation
Execute Modification       ./Sources/Subs.php      Test failed

are you using pretty urls mod if so you can just install as sinan said here
Quote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Slateer on April 12, 2010, 12:58:18 AM
my forum:
forum.gamersite.pl

rc3 & simple portal 2.3.2

i have problems...

1.
how to remove the marked red ?
img3.imageshack.us/img3/787/ssssssssssk.png

and what to do, showed that only the most recent topics (like someone to write a reply, it's about landing at the top).

2.
The panel "latest threads" also have the same problem as the first point, that is, someone will describe the topic is about the lands above, some nonsense.

3.
How to move Shoutbox?
img255.imageshack.us/i/shout.png/

Sorry for my English, I'm Polish. : P
Title: Re: SimplePortal - 2.3.2 Released!
Post by: paulmagno on April 12, 2010, 03:09:36 AM
Quote from: adbrad on April 11, 2010, 04:29:54 PM
Quote from: ukhalik2 on April 11, 2010, 03:20:14 PM
getting error in installation!

Error in Package Installation
Execute Modification       ./Sources/Subs.php      Test failed

are you using pretty urls mod if so you can just install as sinan said here
Quote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.

Any help for me...?

QuoteSiNaN already said that we can ignore "If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod." when installing SimplePortal 2.3.2....But I also get this: "1. Execute Modification     ./index.php"

What should I do?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on April 12, 2010, 04:02:07 AM
Quote from: paulmagno on April 12, 2010, 03:09:36 AM
Quote from: adbrad on April 11, 2010, 04:29:54 PM
Quote from: ukhalik2 on April 11, 2010, 03:20:14 PM
getting error in installation!

Error in Package Installation
Execute Modification       ./Sources/Subs.php      Test failed

are you using pretty urls mod if so you can just install as sinan said here
Quote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.

Any help for me...?

QuoteSiNaN already said that we can ignore "If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod." when installing SimplePortal 2.3.2....But I also get this: "1. Execute Modification     ./index.php"

What should I do?
you could try to do that edit manually
Title: Re: SimplePortal - 2.3.2 Released!
Post by: psynx on April 13, 2010, 01:02:09 AM
Quote from: [SiNaN] on April 04, 2010, 06:08:03 AM
Quote from: psynx on April 03, 2010, 10:02:16 PM
please help!

i have smf 1.1.11 and using babylon theme. i also have simple portal mod installed.

i have this white space under my blocks. i don't know how to fix this. it is untidy.

try view my site on different browser, using mozilla no problem at all. but viewing it on IE browser there you see white space under the blocks.

IE6 is evil. Fix is here:

http://simpleportal.net/index.php?topic=4326.msg30504#msg30504


One more problem! in mozilla firefox i have scroll bar in my top and bottom blocks when there are messages that are too long, but in IE no scroll bar, all messages are displayed and that kinda messy. i want scroll bar also when they viewed my site on IE browser.

look at my site and view it in mozilla and IE,
www.mirc-chatting.isgreat.org
Title: Re: SimplePortal - 2.3.2 Released!
Post by: irtiza104 on April 13, 2010, 09:20:26 AM
does this new version offer the full horizontal bar for blocks? then i would like to upgrade.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: parvaz on April 18, 2010, 07:59:10 PM
Nice mod! I installed and everything looks fine except one thing: The shoutbox doesn't refresh. I mean the text i shout doesn't come up till i refresh the whole page.
can anyone help me with this issue?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: psynx on April 19, 2010, 12:05:20 AM
hello,

how do i allow guest access to shoutbox?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on April 19, 2010, 04:34:44 AM
go to your shoutbox and edit the settings make sure you check the access to guests
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 19, 2010, 12:06:00 PM
Quote from: parvaz on April 18, 2010, 07:59:10 PM
Nice mod! I installed and everything looks fine except one thing: The shoutbox doesn't refresh. I mean the text i shout doesn't come up till i refresh the whole page.
can anyone help me with this issue?

Do you have any errors in the Forum Error Log? Can you provide a temporary account to check it?

Quote from: psynx on April 19, 2010, 12:05:20 AM
hello,

how do i allow guest access to shoutbox?

As adbrad said, you would need to give permissions for Guests for both shoutbox and block. Though, they will just see it; they won't be able to shout.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: parvaz on April 19, 2010, 02:57:17 PM
yes! the shoutbox cause Error Logs in file Sources/subs.php. undefined!

I could provide you with a temp. account and would appreciate it if you could cast a look.

May i send a message to you?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: psynx on April 20, 2010, 02:31:23 AM
i don't see any settings for shoutbox allowing access to guest
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 20, 2010, 03:03:41 AM
Quote from: parvaz on April 19, 2010, 02:57:17 PM
yes! the shoutbox cause Error Logs in file Sources/subs.php. undefined!

I could provide you with a temp. account and would appreciate it if you could cast a look.

May i send a message to you?

Okay. You can send me a pm.

Quote from: psynx on April 20, 2010, 02:31:23 AM
i don't see any settings for shoutbox allowing access to guest

For block:

Admin > SimplePortal > Blocks > [edit shoutbox block] > Block Permissions

For shoutbox:

Admin > SimplePortal > Shoutboxes > [edit shoutbox] > Permissions
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Bruno36 on April 20, 2010, 08:09:11 AM
Hello!

I would like to know how to display "The unread messages" in a block on my portal SimplePortal 2.3.1
Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on April 20, 2010, 01:45:24 PM
the only way i can see is a custom php block but i'm not a coder so no idea what code you would put in
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on April 20, 2010, 05:02:02 PM
Bruno36,

You can look in index.php to see how action=unread is handled.


global $sourcedir;
include_once( $sourcedir . '/Recent.php');
UnreadTopics();
Title: Re: SimplePortal - 2.3.2 Released!
Post by: aw06 on April 20, 2010, 08:14:29 PM
Keep getting this error each time portal page is loaded..

8: Undefined variable: year
File: /home/xxx/public_html/forum/Themes/default/SPortal.template.php (eval?)
Line: 228


Using SP 2.0.4  :P O:)

Line 228
$title = $txt['months_titles'][(int)$month].' '.$year;  //This is the SMF Text string, so it should be corrected for ut8 or iso
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on April 20, 2010, 08:58:34 PM
Is there any possiblity of upgrading to SimplePortal 2.3.2?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: aw06 on April 20, 2010, 09:06:08 PM
Quote from: AngelinaBelle on April 20, 2010, 08:58:34 PM
Is there any possiblity of upgrading to SimplePortal 2.3.2?

Not right now ... plan to do so when SMF 2.0 Final is released. then i will upgrade to whatever SP is out then :D
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Bruno36 on April 21, 2010, 03:15:23 AM
Quote from: AngelinaBelle on April 20, 2010, 05:02:02 PM
Bruno36,

You can look in index.php to see how action=unread is handled.


global $sourcedir;
include_once( $sourcedir . '/Recent.php');
UnreadTopics();


thank you AngelinaBelle.

The block on the portal is empty
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Afro on April 21, 2010, 06:04:06 AM
got this error when trying to add new block

"Fatal error: Call to undefined function sp_staff() in /home/xxxxxxx/public_html/Sources/PortalAdminBlocks.php  on line 264"
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on April 21, 2010, 09:57:39 AM
Hi, I just updated SP to 2.3.2, Im having a slight issue with the admin area, Which I manually edited, otherwise fine.


it does not look the way it used to, here are some images.

(http://i40.tinypic.com/v45h6o.png)

and...

(http://i42.tinypic.com/339hu1e.png)

and finally...

(http://i40.tinypic.com/adyv5s.png)
The above image used to have lines every line color alternated light and dark...

Any Ideas, what I may have done wrong?
Thanks in Advanced.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 21, 2010, 10:27:36 AM
Quote from: Afro on April 21, 2010, 06:04:06 AM
got this error when trying to add new block

"Fatal error: Call to undefined function sp_staff() in /home/xxxxxxx/public_html/Sources/PortalAdminBlocks.php  on line 264"

Do you have the Portal Mode set as "Disabled"?

Quote from: ♪ JohnCcCcCc ♫ on April 21, 2010, 09:57:39 AM
Hi, I just updated SP to 2.3.2, Im having a slight issue with the admin area, Which I manually edited, otherwise fine.

What do you mean by "which I manually edited"? Does it look the same in SMF Default Theme - Core?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on April 21, 2010, 10:38:27 AM
I manually edited the Admin.PHP file, double checked, twice, its fine..

Looks like a CSS error, but I'm unsure.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 21, 2010, 10:43:38 AM
Quote from: [SiNaN] on April 21, 2010, 10:27:36 AM
What do you mean by "which I manually edited"? Does it look the same in SMF Default Theme - Core?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on April 21, 2010, 10:48:30 AM
Sorry, Im trying to hard to fix this I overlooked your question

Its the same in default core too
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 21, 2010, 10:59:11 AM
Can I get screenshots of the same areas with Core theme?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Afro on April 21, 2010, 11:04:30 AM
Quote from: [SiNaN] on April 21, 2010, 10:27:36 AM
Quote from: Afro on April 21, 2010, 06:04:06 AM
got this error when trying to add new block

"Fatal error: Call to undefined function sp_staff() in /home/xxxxxxx/public_html/Sources/PortalAdminBlocks.php  on line 264"

Yea, that seemed to be the issue because it worked when i enabled it. Thanks..

Do you have the Portal Mode set as "Disabled"?

Quote from: ♪ JohnCcCcCc ♫ on April 21, 2010, 09:57:39 AM
Hi, I just updated SP to 2.3.2, Im having a slight issue with the admin area, Which I manually edited, otherwise fine.

What do you mean by "which I manually edited"? Does it look the same in SMF Default Theme - Core?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on April 21, 2010, 11:05:31 AM
Quote from: [SiNaN] on April 21, 2010, 10:59:11 AM
Can I get screenshots of the same areas with Core theme?

Sure, lemme get them for you. brb
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on April 21, 2010, 11:11:26 AM
(http://i43.tinypic.com/rwjd79.png)

Image Reduced


For some reason the rest appear fine in default core
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 21, 2010, 11:16:10 AM
Ah, are you using SMF 2.0 versions? How does it look in Curve theme?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: aw06 on April 21, 2010, 11:25:51 AM
No fix for my issue ?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on April 21, 2010, 11:33:40 AM
Quote from: [SiNaN] on April 21, 2010, 11:16:10 AM
Ah, are you using SMF 2.0 versions? How does it look in Curve theme?

Im using SMF 2.0 RC1.2 - I cannot update at this time as some mods I use need to catch up 1st.
I don't have curve.

It seems this version of the mod (2.3.2) is not "non curve" friendly
EDIT:
Installed 2.3.1 and it works correctly ???
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Aoife on April 21, 2010, 01:10:22 PM
When I first upgraded from 2.3.1 to 2.3.2 I ended up with double blocks on the right and left sides (e.g., 2 Who's Online, 2 Quick Search, 2 Recent Posts, etc). I went into the Block Configuration and it showed only 1 block - there was no 2nd block to remove. I tried to uninstall the 2.3.2 addon and got error messages that Test Failed on several files and wasn't able to uninstall.  I did delete the 2.3.2 files though.

Right now under Admin/Browse Packages, 2.3.1 is showing as the current version and the Portal is not working. I cannot uninstall 2.3.1 because it says there is no uninstaller.

Any ideas on what I should do?

Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheListener on April 21, 2010, 01:16:03 PM
You may have to go through all the files manually. This is generally what has to be done when you receive a Test Failed message.

When you first upgraded from 2.3.1 to 2.3.2 were there any errors in the log?


Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on April 21, 2010, 01:36:14 PM
Quote from: aoife on April 21, 2010, 01:10:22 PM
When I first upgraded from 2.3.1 to 2.3.2 I ended up with double blocks on the right and left sides (e.g., 2 Who's Online, 2 Quick Search, 2 Recent Posts, etc). I went into the Block Configuration and it showed only 1 block - there was no 2nd block to remove. I tried to uninstall the 2.3.2 addon and got error messages that Test Failed on several files and wasn't able to uninstall.  I did delete the 2.3.2 files though.

Right now under Admin/Browse Packages, 2.3.1 is showing as the current version and the Portal is not working. I cannot uninstall 2.3.1 because it says there is no uninstaller.

Any ideas on what I should do?

That happened to me too, except I spotted it early, seems that one of the edits were duplicated, added twice, just removing one should fix it.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Aoife on April 21, 2010, 01:42:32 PM
Quote from: ♪ JohnCcCcCc ♫ on April 21, 2010, 01:36:14 PM

That happened to me too, except I spotted it early, seems that one of the edits were duplicated, added twice, just removing one should fix it.


Thank you!

I'll have to take a look at that, after I get rid of or replace the messed up files that I have now. Where did you see the edits duplicated?

Title: Re: SimplePortal - 2.3.2 Released!
Post by: Aoife on April 21, 2010, 01:44:14 PM
UPDATE:  It's all better now! I removed the 2.3.1 pkg and deleted the installed.list and I was able to do a fresh install of 2.3.2 and no errors and things are now working as they should.

thank you all!   ;D


Quote from: Brack1 on April 21, 2010, 01:16:03 PM
You may have to go through all the files manually. This is generally what has to be done when you receive a Test Failed message.

When you first upgraded from 2.3.1 to 2.3.2 were there any errors in the log?

kk, I think I can do that. The only errors I saw were from the Admin.php file. I replaced that file with a fresh version and the error messages have stopped.

Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on April 21, 2010, 02:23:34 PM
Quote from: aoife on April 21, 2010, 01:42:32 PM
Thank you!

I'll have to take a look at that, after I get rid of or replace the messed up files that I have now. Where did you see the edits duplicated?

It depends on what you had duplicated, it could be one, it could be all of them, if you use the parsing page on the mod site you can check the edits and see if there are any duplicates, they should be easy to find.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 22, 2010, 06:20:54 AM
Quote from: aw06 on April 20, 2010, 08:14:29 PM
Keep getting this error each time portal page is loaded..

8: Undefined variable: year
File: /home/xxx/public_html/forum/Themes/default/SPortal.template.php (eval?)
Line: 228


Using SP 2.0.4  :P O:)

Line 228
$title = $txt['months_titles'][(int)$month].' '.$year;  //This is the SMF Text string, so it should be corrected for ut8 or iso

It's related to the custom calendar block you have. You can request support here:

http://simpleportal.net/index.php?topic=89.0

Quote from: ♪ JohnCcCcCc ♫ on April 21, 2010, 11:33:40 AM
Quote from: [SiNaN] on April 21, 2010, 11:16:10 AM
Ah, are you using SMF 2.0 versions? How does it look in Curve theme?

Im using SMF 2.0 RC1.2 - I cannot update at this time as some mods I use need to catch up 1st.
I don't have curve.

It seems this version of the mod (2.3.2) is not "non curve" friendly
EDIT:
Installed 2.3.1 and it works correctly ???

Well, it is. You can use 2.3.2 with this edit:

Sources/Subs-Portal.php

Code (Find) Select
$clean_forum_version = $forum_version;

Code (Replace) Select
$context['SPortal']['core_compat'] = 'old';
return;
$clean_forum_version = $forum_version;


I would suggest sacrificing those mods for the sake of security though.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: parvaz on April 22, 2010, 07:09:56 AM
Hi [SiNaN],
Do you have any idea why the shoutbox on my forum doesn't refresh?
I've checked all the settings many times. The installation of SP went smooth, i had no errors and everything functions like a charm except the shoutbox and i've really no idea where should i search for
possible reasons :-[
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 22, 2010, 07:19:57 AM
You seem to be using a code for adding StatCounter javascript code. It replaces all </body> code in the page to add that code. Shoutbox XML pages have </body> tags as well, so it brakes the shoutbox. Are you using a mod for that or is it a custom code? Can I see it?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: parvaz on April 22, 2010, 07:45:54 AM
I don't use a custom code.
Perhaps it's a mod.
One thing makes the issue stranger: for experimental purposes and testing the mod's functionality and compatibility i use another forum with exactly the same constellation of mods, themes and settings as my "real, main forum". And on this test forum the shoutbox functions! :o
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on April 22, 2010, 07:54:50 AM
There is a mod or custom code on your forum that replaces </body> code in the page with StatCounter javascript codes. I wouldn't know what it is.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: parvaz on April 22, 2010, 09:28:25 AM
Thank you [SiNaN].
How can i find out, or where, in which files do i have to search for the code or the mod causing this trouble?
I mean if it is a mod replacing </body> code in the page, in which file is it installed? so i could search for it, indentify it, modify it or whatever? in source/subs.php maybe?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on April 22, 2010, 09:36:49 AM
Quote
Well, it is. You can use 2.3.2 with this edit:

Sources/Subs-Portal.php

Code: (Find) [Select]
   $clean_forum_version = $forum_version;
Code: (Replace) [Select]
   $context['SPortal']['core_compat'] = 'old';
   return;
   $clean_forum_version = $forum_version;
I would suggest sacrificing those mods for the sake of security though.
I tried this and nothing changed...

Its the admin area that's effected, everything else works fine.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: aw06 on April 22, 2010, 09:59:55 AM
Sinan i removed and deleted my calender block, same problem
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Eudemon on April 22, 2010, 07:35:22 PM
first of all, thx for ur great portal mod

i have a problem with the auto-resizing
when i enable the resize in admin control for the forum
the resize on the portal won't work
how can i fix this for the portal, if i want to keep the resize on forum

also another one, if i enable max number of topics on the forum news
it shows the second page button but when i click on it, it leads to a blank page
Title: Re: SimplePortal - 2.3.2 Released!
Post by: parvaz on April 23, 2010, 07:29:15 AM
HI [SiNaN]!
You were right! It was a Statcounter code, either placed by me nor a mod but the host.
I write this here for the case someone has a same problem: some hosts add a Statcounter code which interrupts the </body> tag used in shoutbox xml and don't let it to refresh.
I asked my host and they remove that damn code. Now my shoutbox works like a charm.

Thank you [SiNaN]! Without your help i could never solve the problem.

Title: Re: SimplePortal - 2.3.2 Released!
Post by: apathétic.losér on April 24, 2010, 05:44:50 PM
How do I remove or edit the Welcome to SimplePortal thing?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on April 25, 2010, 04:04:54 AM
go to admin>simple portal>blocks
look for the one that says welcome then look on the right hand side and you will see a tick, a spanner and a minus sign
the tick will deactivate it, the spanner to modify and the minus to delete.
Hope this helps
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on April 25, 2010, 08:18:27 PM
I have simple portal 2.3.2. Is it possible to have the portal inherit the theme of which the user chooses to use?

By default it's Curve, but when I switch to a color variation of curve the portal remains blue. I can switch it for everyone, but again, is there a way to make it inherit the theme of which the user decides to use?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on April 26, 2010, 02:50:29 AM
go to admin>simple portal> configuration>general settings and set Portal Theme to forum default then it will take what ever theme is chosen
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on April 26, 2010, 10:50:35 PM
Quote from: adbrad on April 26, 2010, 02:50:29 AM
go to admin>simple portal> configuration>general settings and set Portal Theme to forum default then it will take what ever theme is chosen
Thanks!
Title: Re: SimplePortal - 2.3.2 Released!
Post by: staktas on April 27, 2010, 03:16:53 PM
Hi i have a problem too.

(http://i39.tinypic.com/detbhk.jpg)

As you can see, shoutbox have a scrolling option. I want that i could scroll down Recent post/topics block too, then i could show more than 5 recent posts and that wouldn't take so much space in my forum. So is it possible to do it?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Afro on April 30, 2010, 01:30:43 PM
Is it possible to underline the recent topic/posts ?
Which code blocks control that ?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Kimmie on May 01, 2010, 06:29:43 PM
Just reinstalled this on RC3  (upgraded from RC1.2) and the portal is not resizing images any more even though I have that setting checked.


Any ideas?

Edit: The "Display Blocks in Forum" isnt working either.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: andy12gr on May 04, 2010, 05:11:56 AM
hi i have a big problem, i install all and its ok in smf 1.1.11  but admin>simple portal its not found
i have 2 language, Greek and English in default theme
what can i do?

its ok..i found i forgot to see the permissions
Title: Re: SimplePortal - 2.3.2 Released!
Post by: InfoStrides on May 04, 2010, 03:47:06 PM
I enabled a block for Gallery after I installed Aeva Mod but the block is not displaying thumbnail for the videos.

More so, the link parameter changed which is causing a redirection to wrong link on the block. See example below:

QuoteOriginal Link on Aeva: http://www.theinfostrides.com/media/?sa=item;in=14

QuoteLink on SimplePortal Gallery block: http://www.theinfostrides.com/media/?sa=item;id=14

"in=14" changed to "id=14"

Please help!
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Bruno36 on May 05, 2010, 04:41:35 AM
Hello!

The blocks are displayed in the forums are shifted

(http://img687.imageshack.us/img687/7475/bugkw.jpg)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on May 05, 2010, 05:31:21 AM
think its standard as it appears on mine to.
think it has to do with the new topic etc buttons
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Lady_Cash on May 05, 2010, 06:27:30 AM
Great mod, 2.3.1 worked fine for me, but now I get error in package installation:

12.     Execute Modification     ./Sources/Subs.php     Test failed
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Lady_Cash on May 05, 2010, 06:49:00 AM
Quote from: Lady_Cash on May 05, 2010, 06:27:30 AM
Great mod, 2.3.1 worked fine for me, but now I get error in package installation:

12.     Execute Modification     ./Sources/Subs.php     Test failed

I tried to modifiy ./Sources/Subs.php, but can't find this lines:

\?(?:' . SID . ' ;) ((?:board|topic
Replace With:
\?(?:' . SID . ' ;) ((?:board|topic|page

\?((?:board|topic
Replace With:
\?((?:board|topic|page


Anyway, it works fine without this lines!
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Afro on May 05, 2010, 06:54:58 AM
Lady cash are you Sure you are on the right file ?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: andy12gr on May 05, 2010, 03:03:26 PM
A question, i have simple portal 2.3.2 in smf 1.1.11 but the shoutbox is not auto refresh, how to change this and from where pls?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Kimmie on May 05, 2010, 03:34:40 PM
Quote from: Kimmie on May 01, 2010, 06:29:43 PM
Just reinstalled this on RC3  (upgraded from RC1.2) and the portal is not resizing images any more even though I have that setting checked.


Any ideas?

Edit: The "Display Blocks in Forum" isnt working either.

Any updates on this?

Also getting this error:

8: Undefined index: 7

File: /home/****/public_html/Sources/PortalBlocks.php
Line: 2196
Title: Re: SimplePortal - 2.3.2 Released!
Post by: PhiScience on May 05, 2010, 05:05:53 PM
I am trying to uninstall SimplePortal for an upgrade but it says, "This package cannot be uninstalled, because there is no uninstaller! Please contact the mod author for more information."

What went wrong and how do I repair it.

Thanks
Title: Re: SimplePortal - 2.3.2 Released!
Post by: InfoStrides on May 05, 2010, 06:00:17 PM
Quote from: TheInfostrides.Com on May 04, 2010, 03:47:06 PM
I enabled a block for Gallery after I installed Aeva Mod but the block is not displaying thumbnail for the videos.

More so, the link parameter changed which is causing a redirection to wrong link on the block. See example below:

QuoteOriginal Link on Aeva: http://www.theinfostrides.com/media/?sa=item;in=14

QuoteLink on SimplePortal Gallery block: http://www.theinfostrides.com/media/?sa=item;id=14

"in=14" changed to "id=14"

Please help!

This is resolved! Thanks.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Paul_Pauline on May 07, 2010, 08:29:39 AM
Quote from: andy12gr on May 05, 2010, 03:03:26 PM
A question, i have simple portal 2.3.2 in smf 1.1.11 but the shoutbox is not auto refresh, how to change this and from where pls?

Hi.

Admin > Shoutbox > Modify > Set number of seconds between refresh

Beware. Enabling this will load your server and piss off your host  :-\
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Bruno36 on May 07, 2010, 09:04:44 AM
Quote from: Bruno36 on May 05, 2010, 04:41:35 AM
Hello!

The blocks are displayed in the forums are shifted

(http://img687.imageshack.us/img687/7475/bugkw.jpg)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on May 07, 2010, 03:16:31 PM
Quote from: Bruno36 on May 07, 2010, 09:04:44 AM
Quote from: Bruno36 on May 05, 2010, 04:41:35 AM
Hello!

The blocks are displayed in the forums are shifted

(http://img687.imageshack.us/img687/7475/bugkw.jpg)

i already answered you here http://www.simplemachines.org/community/index.php?topic=227599.msg2614212#msg2614212
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Bruno36 on May 08, 2010, 03:09:30 AM
you do not give the solution to solve the problem
Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on May 08, 2010, 04:40:19 AM
Quote from: Bruno36 on May 08, 2010, 03:09:30 AM
you do not give the solution to solve the problem
i did i told you that it is standard
the only other solution i can see is by moving or removing that row of buttons but that is a smf issue not simpleportal issue. which i can't answer as i'm no coder
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ukhalik2 on May 08, 2010, 11:57:01 AM
new articles come on 2nd page. i want them to appear them on 1st page when i publish them. please help.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: PurpleCrow on May 09, 2010, 01:44:35 PM
At the moment the Logo of my forum points to the Portal Page, how do I change it to make it point to the Board Index?

I know its a simple question but I cant for the life of me figure out how to do it.

Im using SMF 2.0 RC3 and the latest version of SimplePortal and a custom theme, here's a link if it helps http://cottagewitchery.com/forum/index.php?action=forum
Title: Re: SimplePortal - 2.3.2 Released!
Post by: luismanson on May 10, 2010, 12:58:50 PM
Quote from: Lady_Cash on May 05, 2010, 06:49:00 AM
Quote from: Lady_Cash on May 05, 2010, 06:27:30 AM
Great mod, 2.3.1 worked fine for me, but now I get error in package installation:

12.     Execute Modification     ./Sources/Subs.php     Test failed

I tried to modifiy ./Sources/Subs.php, but can't find this lines:

\?(?:' . SID . ' ;) ((?:board|topic
Replace With:
\?(?:' . SID . ' ;) ((?:board|topic|page

\?((?:board|topic
Replace With:
\?((?:board|topic|page


Anyway, it works fine without this lines!



Same here! :S
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Kimmie on May 10, 2010, 07:19:58 PM
Quote from: luismanson on May 10, 2010, 12:58:50 PM
Quote from: Lady_Cash on May 05, 2010, 06:49:00 AM
Quote from: Lady_Cash on May 05, 2010, 06:27:30 AM
Great mod, 2.3.1 worked fine for me, but now I get error in package installation:

12.     Execute Modification     ./Sources/Subs.php     Test failed

I tried to modifiy ./Sources/Subs.php, but can't find this lines:

\?(?:' . SID . ' ;) ((?:board|topic
Replace With:
\?(?:' . SID . ' ;) ((?:board|topic|page

\?((?:board|topic
Replace With:
\?((?:board|topic|page


Anyway, it works fine without this lines!



Same here! :S

When you get a "test failed" on a file while installing a mod, it means that another mod you have installed has already modified that portion (or the portion above or below) what its looking for and therefore this mod cannot find what its looking for. All mods created are created with all default files intact.

To resolve the issue you will need to finish installing the mod as usual, and then manually edit that file and make the changes needed for it. Be sure and make a backup of any file that you plan to edit so if you make a mistake you will have it. :)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: luismanson on May 10, 2010, 07:43:36 PM
for me those strings dont exist :(
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheListener on May 10, 2010, 07:45:10 PM
Which language do you use?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Darkred35 on May 10, 2010, 08:18:28 PM
Hello,

We have added this portal to our site, however, it replaces our forum.  We would like to have this as our home page and then have our forum as the next tab.  Any help would be greatly appreciated.  We are using SimplePortal 2.2 and the current version is 2.3.2. 

Regards,

Darkred
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheListener on May 10, 2010, 08:24:16 PM
Quote from: Darkred35 on May 10, 2010, 08:18:28 PM


We are using SimplePortal 2.2 and the current version is 2.3.2. 

Regards,

Darkred

Can we see a link please.

I am slightly confused by the statement you made.

Title: Re: SimplePortal - 2.3.2 Released!
Post by: Darkred35 on May 10, 2010, 09:09:02 PM
http://spiritusintusalit.com/index.php   this is the link to our site.  It gives us the mod now, but will not give us any tabs for our forums.  How do we do this?

Regards,

Darkred
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Darkred35 on May 10, 2010, 09:13:57 PM
We are using a custom theme  AS316. We need to know how to add the forum button. However, we are not good with computers, so if you could put this in laymen terms it would be greatly appreciated.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: luismanson on May 10, 2010, 09:36:16 PM
is that to me? im using english for myself, spanish for all the users
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheListener on May 11, 2010, 09:05:25 AM
Quote from: Darkred35 on May 10, 2010, 09:09:02 PM
http://spiritusintusalit.com/index.php   this is the link to our site.  It gives us the mod now, but will not give us any tabs for our forums.  How do we do this?

Regards,

Darkred

It looks as though you have double installed some mods.

The menu buttons mod will require a manual edit so make sure you check to make sure the files have not been doubled.

The same is possible with the portal mod.

If any help is required with checking these please let us know.

Title: Gallery problems after upgrade
Post by: jay.clark on May 11, 2010, 11:08:15 AM
I just did the upgrade to 2.3.2. 

I have both SMFHacks Pro and Aeva installed.

I have a Gallery block on my top (simpleportal) Page.

Prior to the upgrade it would display random images from the SMF Hacks Gallery, after the upgrade it only displays content from Aeva.

I would like it to display both, or worst case let me set up a block for each.

I checked the configuration and there does not appear to be any place to tell the block where to draw its content from.

Any suggestions ?

Thanks in advance

jayr

Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheListener on May 11, 2010, 11:13:52 AM
To be honest I would be surprised if you don't have any gallery or media related errors in your log.

Having said that there is an edit for the Aeva media on a block over at www.simpleportal.net
Title: Re: SimplePortal - 2.3.2 Released!
Post by: kierjr on May 12, 2010, 11:08:05 AM
I have the theme !Kani

But when I have SimplePortal running you can't see the topic titles in the News since it's color's set to white.
This happens in a few other places, but I only really need it fixed here.

Any quick fix to change the font color to black?
Couldn't find any in the settings..

Picture(Half highlighted the text to show you what I mean)
(http://img217.imageshack.us/img217/6528/testix.png)

Thanks
Title: Re: SimplePortal - 2.3.2 Released!
Post by: madman71 on May 12, 2010, 11:28:16 AM
kierjr,

give me a link to your site. I'll take a look at the css code
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on May 12, 2010, 02:53:34 PM
Hi all. I seem to be experienceing an "auto image re size" issue. I'm trying to insert an image in a custom block of my portal located at the top. see here: www.the-ush.com

However, when I insert the image it auto re sizes to 450x43. The image is actually around 700x90.

I've tried going to Attachment and Avatar > Attachment settings > unchecked resize attachments under posts. This helps in forum topics, but it does not work for the portal block.

Any ideas?

Title: Re: SimplePortal - 2.3.2 Released!
Post by: luismanson on May 12, 2010, 03:43:11 PM
Quote from: Lady_Cash on May 05, 2010, 06:27:30 AM
Great mod, 2.3.1 worked fine for me, but now I get error in package installation:

12.     Execute Modification     ./Sources/Subs.php     Test failed


I tried to modifiy ./Sources/Subs.php, but can't find this lines:

\?(?:' . SID . ' ;) ((?:board|topic
Replace With:
\?(?:' . SID . ' ;) ((?:board|topic|page

\?((?:board|topic
Replace With:
\?((?:board|topic|page


Anyway, it works fine without this lines!

so, it is safe to enable it ignoring those lineas? what are they for?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on May 12, 2010, 04:48:32 PM
Quote from: MATTEK on May 12, 2010, 02:53:34 PM
Hi all. I seem to be experienceing an "auto image re size" issue. I'm trying to insert an image in a custom block of my portal located at the top. see here: www.the-ush.com

However, when I insert the image it auto re sizes to 450x43. The image is actually around 700x90.

I've tried going to Attachment and Avatar > Attachment settings > unchecked resize attachments under posts. This helps in forum topics, but it does not work for the portal block.

Any ideas?

Nevermind guys. It worked fine with a new image.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: jay.clark on May 12, 2010, 07:35:53 PM
Quote from: Brack1 on May 11, 2010, 11:13:52 AM
Having said that there is an edit for the Aeva media on a block over at www.simpleportal.net (http://www.simpleportal.net)

Thanks for the pointer to the simple portal site, I had forgotten about it, however after searching for several hours and finding a whole buncha neat stuff I cannot seem to find the edit you are referring to, any chance of a more detailed pointer ?

thanks in advance
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on May 13, 2010, 09:22:13 PM
@Darkred35

There is a tutorial at SimplePortal.net for adding the forum button to a custom theme.

Most of the time, this tutorial will cover it: http://simpleportal.net/index.php?topic=148.0
If that doesn't cover it, you can check for more information here: http://simpleportal.net/index.php?topic=52.0
Title: Re: SimplePortal - 2.3.2 Released!
Post by: zijO on May 13, 2010, 10:08:53 PM
Is it possible to set width of blocks as a percentage?

I tried to set it but right block doesn't show properly.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Paul_Pauline on May 14, 2010, 04:14:16 AM
Hi Guyz.

Does anyone have a code that would pull images at random from the attachments folder and display them, say five at a time in a block, without the need to install some kind of gallery system ?

I already use the "Display LAST Attachments", which is shipped with the portal, I would like to display RANDOM ones as well, in a seperate block if this is possible.

Thanks, Paul.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: madman71 on May 14, 2010, 11:21:33 AM
Sinan,

You coded my Random attachment banner for me.
I think i'd rather you use portal instead of my random banner now. SP are far superior :)   There is a difference between the code you wrote for my random attachment banner and the recent attachment block in your SP.  The recent attachments in SP lead directly to the attachment itself, in my random attachment banner, the thumbnails lead directly to the post.  Is there a simple piece of code that i can add to SP that will enable the attachments to lead to the post where they are found and not directly to the attachment?
If it takes a lot of coding to do this, dont worry about it.

Thanks again for all of your support
Title: Re: SimplePortal - 2.3.2 Released!
Post by: madman71 on May 14, 2010, 11:24:32 AM
Quote from: Paul_Pauline on May 14, 2010, 04:14:16 AM
Hi Guyz.

Does anyone have a code that would pull images at random from the attachments folder and display them, say five at a time in a block, without the need to install some kind of gallery system ?

I already use the "Display LAST Attachments", which is shipped with the portal, I would like to display RANDOM ones as well, in a seperate block if this is possible.

Thanks, Paul.

Paul,

a mod that i had made for me does this.  See my sig for link.
**NOTE***
m not sure if it will conflict with SP
Title: Re: SimplePortal - 2.3.2 Released!
Post by: kierjr on May 16, 2010, 01:12:39 AM
Quote from: madman71 on May 12, 2010, 11:28:16 AM
kierjr,

give me a link to your site. I'll take a look at the css code

www.kiejr.com/4um (http://www.kiejr.com/4um)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Paul_Pauline on May 16, 2010, 06:37:07 AM


Paul,

a mod that i had made for me does this.  See my sig for link.
**NOTE***
m not sure if it will conflict with SP
[/quote]

Hi, thanks for the link, I should have stated that i'm running 1.1.11, and can't imagine that I will be going over to the 2 series, it offers nothing I need that 1.1.xx doesn't provide.

I've always been a great believer in "If it ain't broke, don't fix it"  ;)

I love Simple Portal, it's a shame that support seems to have dried up, not only here but on their own site  too :(
Title: Re: SimplePortal - 2.3.2 Released!
Post by: madman71 on May 16, 2010, 12:58:02 PM
Kierjr,

in the theme directory that you are using, find the "style.css"

in style.css, search for:
.catbg a:link, .catbg a:visited, .catbg2 a:link, .catbg2 a:visited {
color: #fff;
text-decoration: none;



replace it with:

.catbg a:link, .catbg a:visited, .catbg2 a:link, .catbg2 a:visited {
color: #000;
text-decoration: none;



that should do it
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on May 16, 2010, 09:11:12 PM
Quote from: Darkred35 on May 10, 2010, 09:13:57 PM
We are using a custom theme  AS316. We need to know how to add the forum button. However, we are not good with computers, so if you could put this in laymen terms it would be greatly appreciated.

You will see that SimplePortal adds the forum button to the default theme, but that you will need to add it to any other themes, unless you are using a Curve-based theme with SMF 2.x.

There are very good instructions at SimplePortal.net in the theme tutorials.
This one probably has what you need: http://simpleportal.net/index.php?topic=148.0
Title: Re: SimplePortal - 2.3.2 Released!
Post by: InfoStrides on May 20, 2010, 07:56:44 AM
I created a page with SP and want the page to be accessible after login. Please, how do I achieve it?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Afro on May 20, 2010, 08:47:12 AM
Quote from: TheInfostrides.Com on May 20, 2010, 07:56:44 AM
I created a page with SP and want the page to be accessible after login. Please, how do I achieve it?

You see that pop up registration javascript on your forum, you might want to remove it.
it makes me leave the forum after one page load.
i m sure it does the same thing to so many other people.
it does not increase registration in any way, rather it annoys people.

@topic

what page did you create that you want to hide from guests ?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on May 20, 2010, 08:47:45 AM
You can use the permissions settings.
If you are not logged in, you are part of membergoup "Guest"
So click on " [ Select permissions for each group ] " and uncheck "Guest".
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Afro on May 20, 2010, 08:55:08 AM
Go to admin cpanel >> pages {under simple portal config} >> select the page you created >> edit it and click on the "Select permissions for each group"  .. give permissions there..
Title: Re: SimplePortal - 2.3.2 Released!
Post by: The_Wii_Nes_Boy on May 20, 2010, 01:39:27 PM
In the news block the [code] tags are getting broke if the are to long, how can I fixed this?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on May 20, 2010, 02:46:19 PM
If you want to show [code], you have to write it like this : [nobbc][code][/nobbc].

What do you mean by "getting broke" if they are too long?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: The_Wii_Nes_Boy on May 21, 2010, 01:56:31 PM
If the news block is set to 100 characters and the post is say 120 and the [/code] from the bbc tags is in the last 20 characters then the code box gets broken, it never used to so I'd like to fix it so it does not get broke.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Achilles. on May 22, 2010, 05:47:19 AM
Edit: Fixed.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Afro on May 22, 2010, 05:53:37 AM
Quote from: Achilles. on May 22, 2010, 05:47:19 AM
I've install SimplePortal 2.3.2. it works perfectly fine, however only me (the admin) can see the Welcome message, Recent topics.. Try going to my website: www.skimus.com --> I believe that I've enabled it to be viewed by guests and other users.

i can see SP as a guest on your forum.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Achilles. on May 22, 2010, 05:55:32 AM
Quote from: Afro on May 22, 2010, 05:53:37 AM
Quote from: Achilles. on May 22, 2010, 05:47:19 AM
I've install SimplePortal 2.3.2. it works perfectly fine, however only me (the admin) can see the Welcome message, Recent topics.. Try going to my website: www.skimus.com --> I believe that I've enabled it to be viewed by guests and other users.

i can see SP as a guest on your forum.

Yeah, I've fixed it. I did something and it worked.. so yeah, :)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: InfoStrides on May 23, 2010, 12:35:02 AM
Quote from: Afro on May 20, 2010, 08:47:12 AM
Quote from: TheInfostrides.Com on May 20, 2010, 07:56:44 AM
I created a page with SP and want the page to be accessible after login. Please, how do I achieve it?

You see that pop up registration javascript on your forum, you might want to remove it.
it makes me leave the forum after one page load.
i m sure it does the same thing to so many other people.
it does not increase registration in any way, rather it annoys people.

@topic

what page did you create that you want to hide from guests ?

Thank you for your feedback. I have improved on it. Please check and drop your comment.

The forum is not yet live.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: InfoStrides on May 23, 2010, 12:35:54 AM
Quote from: Afro on May 20, 2010, 08:55:08 AM
Go to admin cpanel >> pages {under simple portal config} >> select the page you created >> edit it and click on the "Select permissions for each group"  .. give permissions there..

Thanks. it worked.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: InfoStrides on May 23, 2010, 12:36:53 AM
Quote from: AngelinaBelle on May 20, 2010, 08:47:45 AM
You can use the permissions settings.
If you are not logged in, you are part of membergoup "Guest"
So click on " [ Select permissions for each group ] " and uncheck "Guest".

Thanks. It worked.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: dlibson on May 23, 2010, 09:27:31 PM
I get this problem anytime I click on "Edit Block":

Forbidden

You don't have permission to access /forums/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

This is a newer problem. Started happening about three weeks ago. Was running 2.0 RC2, now RC3...
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on May 24, 2010, 01:58:07 PM
Did you uninstall SimplePortal before you did the upgrade to 2.0 RC3?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: dlibson on May 24, 2010, 07:43:02 PM
Yes I did. Then reinstalled it. But it was happening before anyways...
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on May 25, 2010, 08:16:36 AM
It is very odd that you don't get that error any other time.  Only when you are trying to edit a block?
But it sounds like a file or directory permission error. Please check that all your files and directories have the appropriate permissions.

Do you have any errors in your error log?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: BOS4O on May 27, 2010, 04:33:32 PM
Can someone give me please the sql database file for SimplePortal 2.3.2
i am installing it manually

Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on May 27, 2010, 06:17:25 PM
Quote from: BOS4O on May 27, 2010, 04:33:32 PM
Can someone give me please the sql database file for SimplePortal 2.3.2
i am installing it manually


it will be in the package unzip the package and get the file from therre
Title: Re: SimplePortal - 2.3.2 Released!
Post by: BOS4O on May 27, 2010, 06:39:18 PM
<div id="page" class="windowbg2">
<div class="catbg">SimplePortal &bull; Database Tool</div>
<p id="info" class="windowbg">This tool will prepare your database to work with SimplePortal. It will also fix database issues related to SimplePortal, if there are any.</p>
', $info, '
<p id="copy">SimplePortal &copy; 2008-2010</p>
</div>
</body>
</html>';
}

function sp_db_create_table($table_name, $columns, $indexes = array(), $no_prefix = true)
{
global $db_prefix;

$real_prefix = preg_match('~^(`?)(.+?)\\1\\.(.*?)$~', $db_prefix, $match) === 1 ? $match[3] : $db_prefix;

$complete_table_name = !$no_prefix ? $db_prefix . $table_name : $table_name;
$full_table_name = !$no_prefix ? $real_prefix . $table_name : $table_name;

$tables = sp_db_list_tables();

..........

this is the only way i think from the package but i dont want to be automatic
can someone export the database of the sp for import it in mine?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on May 28, 2010, 11:05:06 AM
Why not use Package Manager to install the mod?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Another Rob on May 30, 2010, 10:50:21 AM
One quick question.

We've got simpleportal and aeva media gallery on our forum. We've got a block for the media gallery on the front page so members and guests can see the latest document, however on the block it only lists Views: 0 and when someone clicks on it also lists Downloads: 7 . . so to folks visiting the site the Views: 0 looks like nobody has downloaded the document yet. Is there an easy way to change it so the block will show both Views and Downloads?

Thanks
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Feriscool on May 31, 2010, 07:23:53 PM
Please read this little problem:

http://www.simplemachines.org/community/index.php?topic=384061.msg2650149#msg2650149
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheListener on May 31, 2010, 07:42:00 PM
Quote from: Feriscool on May 31, 2010, 07:23:53 PM
Please read this little problem:

http://www.simplemachines.org/community/index.php?topic=384061.msg2650149#msg2650149

What is it you are actually asking?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: amko_sa on June 01, 2010, 01:36:51 PM
I can not wait for the new version 2.4 :)
The only thing that I would like to improve in the new version is SEO.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on June 01, 2010, 01:42:44 PM
Feriscool -- It looks like you have one too many portal mods installed.

I suggest that you uninstall your mods in the reverse order that you installed them.
Then install only one of the Portal mods.

-----
Another Rob -- Please check out the custom coding boards at http://simpleportal.net  You'll find that several members have used AEVA media functions in custom php blocks to create just the effect they were looking for.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: anakmacan on June 06, 2010, 10:59:13 PM
Does anyone know how to add "Chess Quickmatch" and "Current Chess Game" in simple portal block ?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: rotacak on June 08, 2010, 12:21:48 PM
Can anyone tell me why this not work like php block?:

$a = "text";

function abc()
{
global $a; 
return $a; 
}

echo 'print: '.abc();


I can't see variable $a in function :-(
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on June 08, 2010, 12:48:20 PM
Included and Eval'd code is different than execution by a standalone script.

In your sample, I think the first $a may be local to the eval'd code, whereas your global $a is global to the calling script.

To get around this problem, make your first $a global to the calling script.
This introduces the possibility that your new global $a might collide with an already existing global $a from some other mod, so you might consider using something with a very good chance of being unique.


global $rotacak_a;
$rotacak_a = "text";

function abc()
{
global $rotacak_a; 
return $rotacak_a; 
}

echo 'print: '.abc();
Title: Re: SimplePortal - 2.3.2 Released!
Post by: rotacak on June 08, 2010, 02:48:58 PM
AngelinaBelle: thanx  :)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on June 08, 2010, 04:05:50 PM
You're welcome!

It's confusing, and my explanation might not even have been correct. http://php.net/manual/en/language.variables.scope.php

You'd need a very experienced php developer to tell you what actually happens -- someone who has broken their teeth on this issue many times.  It's not really about SimplePortal or SMF.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: anakmacan on June 09, 2010, 02:00:23 AM
Something wrong with "Top Poster (today)" block.. A member post 8 message today, but in "Top Poster" block it said that member made 1 post (not eight).

Title: Re: SimplePortal - 2.3.2 Released!
Post by: rotacak on June 09, 2010, 09:59:23 AM
Well, I have second problem:
echo htmlspecialchars('ěščřžýáíé');

It will print: &#283;š&#269;&#345;žýáíé
But in normal PHP it will print just: ěščřžýáíé
How to make it work like in normal PHP?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on June 09, 2010, 12:34:10 PM
@rotacak

By the time it does the preview or saves the custom php code, simpleportal has already processed the characters and made some decisions about them.  I had a quick look at this part of the code. I is unfamiliar to me, so I found it pretty confusing. I cannot give you a good answer.

If this feature is giving you trouble, please bring the issue to the support boards at simpleportal.net.
Please include enough information to make clear what you are trying to achieve and how it goes wrong.

I hope the developer will be able to give you a good answer.

@anakmacan
I also had a quick look at that part of the code. I'm sorry to say I don't have a good answer for you either.
Your question seems very straightforward -- please bring it to simpleportal.net

I hope the real SimplePortal experts will be able to give you both simple answers to your questions.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: diablo3x.dk on June 09, 2010, 07:44:16 PM
Just realized how nice and easy Simple Portal makes the proces of making a full website with frontsite. Very nice job, team! It is indeed 'simple'.
I am considering on using SimplePortal on my site instead of a standalone frontpage without any direct connection to the forum.

Now, I have no knowledge on php and asp.net or whatsoever. SMF is PHP per standard. That I know ;D Now, I am not the one doing the hard coding on our frontpage which is based on asp.net #c. I would like to know, if there is any possible way to use asp.net when creating the so-called 'pages' or the Blocks? Or does it have to be all php?
Maybe I need some bridging stuff or is it just plain impossible? Maybe another way around to do this?

I'm a little confused since I'm not very good at the technical stuff. Let me elaborate anything if needed in order to answer my question.

Thanks :)

Title: Re: SimplePortal - 2.3.2 Released!
Post by: anakmacan on June 10, 2010, 01:42:55 AM
Angelina : Okay, ill do that. Thanks for your answer anyway ;)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: rotacak on June 10, 2010, 07:06:49 AM
AngelinaBelle: I discovered that this problem will be probably in SimplePortal, because even normal echo will cause this issue:

echo 'ěščřžýáíé';

It looks ok, but if I will display html source, I will see:

&#283;š&#269;&#345;žýáíé

Same thing happen with Custom HTML block.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Paul66 on June 10, 2010, 08:09:46 AM
Hi,i installed this mod and it looks good ,congrats to the developer/s.

The only problem i have is when on the home page (portal) there isnt a tab to navigate to the forum.Is there anyway i could add one or even make my banner clickable to navigate to the forum .


Version 1.11.1


Cheers





Its ok it works on the default theme but not on the new look variation ,hey ho.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: rotacak on June 10, 2010, 11:18:04 AM
Well, my problem is probably caused due to somewhat settings in SMF on localhost. So, nevermind.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on June 10, 2010, 11:39:12 AM
@Paul666 -- there is a tutorial for that! http://simpleportal.net/index.php?topic=148.0

@diablo -- This all depends on what the page is doing. It may turn out to be easier to re-do it in php, if you want integration and a common theme for the two parts of your website.

On the other hand, it may be possible for your current homepage to call some SMF SSI functions. The best place to ask about that is at simplemachines.org.

SimplePortal does not have an SSI for putting blocks on non-SMF pages. So the best place to ask about that would be at SimplePortal.net, on the custom coding board.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: humbleworld on June 10, 2010, 04:55:54 PM
Hi the clickable "FORUM" link at the top bar menu does not appear.
What shall I do?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: kat on June 10, 2010, 05:00:06 PM
If it's a custom theme, you have to edit that theme's index.template, to make the button. 
Title: Re: SimplePortal - 2.3.2 Released!
Post by: admirable on June 10, 2010, 05:18:57 PM
Great look and great mod of portal...  8) 8)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: humbleworld on June 10, 2010, 05:40:31 PM
Quote from: K@t on June 10, 2010, 05:00:06 PM
If it's a custom theme, you have to edit that theme's index.template, to make the button.

How to do that Kat? I am using a dziner studio theme. Have no idea where to edit it.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: diablo3x.dk on June 10, 2010, 09:19:38 PM
Quote from: AngelinaBelle on June 10, 2010, 11:39:12 AM
@Paul666 -- there is a tutorial for that! http://simpleportal.net/index.php?topic=148.0

@diablo -- This all depends on what the page is doing. It may turn out to be easier to re-do it in php, if you want integration and a common theme for the two parts of your website.

On the other hand, it may be possible for your current homepage to call some SMF SSI functions. The best place to ask about that is at simplemachines.org.

SimplePortal does not have an SSI for putting blocks on non-SMF pages. So the best place to ask about that would be at SimplePortal.net, on the custom coding board.

Thanks :)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: tumbleweed on June 10, 2010, 11:58:03 PM
I have a shoutbox set up in a board. I get this error:

GIANTS007   Today at 09:55:01 PM 
74.67.222.93     b1686ca6a5af03cb650ed15eb7c3df8a 
http://theinsideslant.com/forum/index.php 
8: Undefined index: session_var
File: /home/theinsid/public_html/forum/Themes/default/PortalShoutbox.template.php
Line: 111


runnng smf 1.1.11 and sp 2.3
permssions are set to one membergroup
Title: Re: SimplePortal - 2.3.2 Released!
Post by: humbleworld on June 12, 2010, 04:16:48 AM
Hello,

I want to increase the no. of Top Poster in SP. The default is 5. I want to make it 10. Where shall I edit that part?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: tumbleweed on June 12, 2010, 07:25:12 PM
Quote from: tumbleweed on June 10, 2010, 11:58:03 PM
I have a shoutbox set up in a board. I get this error:

GIANTS007   Today at 09:55:01 PM 
74.67.222.93     b1686ca6a5af03cb650ed15eb7c3df8a 
http://theinsideslant.com/forum/index.php 
8: Undefined index: session_var
File: /home/theinsid/public_html/forum/Themes/default/PortalShoutbox.template.php
Line: 111


runnng smf 1.1.11 and sp 2.3
permssions are set to one membergroup

Answer can be found here:
http://simpleportal.net/index.php?topic=5772.new;topicseen#new
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ishy on June 13, 2010, 06:42:28 AM
What element do I change to bold the catbg font?   It doesn't match the rest of the forum.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on June 13, 2010, 03:23:31 PM
Could you be a little more specific. Perhaps you could show an example...

Title: Re: SimplePortal - 2.3.2 Released!
Post by: humbleworld on June 13, 2010, 05:17:04 PM
Could someone please answer my question above? Thank you!
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheListener on June 13, 2010, 05:20:15 PM
Quote from: humbleworld on June 13, 2010, 05:17:04 PM
Could someone please answer my question above? Thank you!

Firstly please have patience when waiting for a reply or alternatively go to www.simpleportal.net

I am currently unable to look within my admin area due to reasons which I will not go into here.

Have you had a look in the simple portal section of your forums admin area?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: humbleworld on June 13, 2010, 05:38:52 PM
Thanks Brank1. I will proceed to Simple Portal Site. I had looked into the admin area and couldn't find the way to edit the Top Poster code. Only 5 people are listed in Top Poster.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on June 13, 2010, 09:09:46 PM
Quote from: MATTEK on May 12, 2010, 02:53:34 PM
Hi all. I seem to be experienceing an "auto image re size" issue. I'm trying to insert an image in a custom block of my portal located at the top. see here: www.the-ush.com

However, when I insert the image it auto re sizes to 450x43. The image is actually around 700x90.

I've tried going to Attachment and Avatar > Attachment settings > unchecked resize attachments under posts. This helps in forum topics, but it does not work for the portal block.

Any ideas?

This resolved itself at one time, but it's back. Any ideas?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on June 14, 2010, 04:35:01 AM
admin>simpleportal>configuration>general settings.
look for Resizes images on portal and see if the option is checked
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on June 14, 2010, 01:42:05 PM
Quote from: adbrad on June 14, 2010, 04:35:01 AM
admin>simpleportal>configuration>general settings.
look for Resizes images on portal and see if the option is checked

The option is not checked. Issue remains.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: adbrad on June 14, 2010, 04:00:52 PM
what other mods do you have installed
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ACAMS on June 15, 2010, 03:38:03 PM
I plan to update my forum from 2.0 RC2 to RC3.......Do I need to uninstall SimplePortal - 2.3.2?
Will I lose all my pages?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on June 15, 2010, 07:30:36 PM
It can't hurt to uninstall all your mods in the reverse order that you installed them before doing the update.

Unless you check the option to "Remove all data associated with this modification", then you will still have all your blocks and all your pages after you complete the update and the database upgrade and re-install SimplePortal.

Title: Re: SimplePortal - 2.3.2 [With Malay Translation - Malaysia, Singapore & Brunei]
Post by: Hj Ahmad Rasyid Hj Ismail on June 20, 2010, 05:51:32 AM
Now With Malay Translation untuk Malaysia, Singapura & Brunei etc...
Sekarang dengan terjemahan Melayu untuk Malaysia, Singapura & Brunei dll...

Enjoy it!
Nikmatinya!

Download now at:
Muatturun sekarang di:
http://simpleportal.net/index.php?action=downloads;area=cat2;file=91
Title: Calender events problem
Post by: CapadY on June 21, 2010, 09:01:53 AM
I have 3 different forums with SMF and SP

On all SP startpages I have a block with the comming calendar events.
At one site the events for the next 5 days are shown, on the other 2 sites only the events of the current day are shown.

I would like the show the events for the next few days on each site, but I can't find how to solve this question. I have been looking to the calendar settings of SMF, I've been looking to the settings in SP.

Who can tell me how to solve this ?

Title: Re: SimplePortal - 2.3.2 Released!
Post by: dsantana on June 21, 2010, 12:27:20 PM
Running RC3 and uninstalled all mods to get this on to go and nuttin' Any ideas?

SQL logic error or missing database
no such column: content
File: /home/content/51/5932751/html/hitandrun/Packages/temp/install2.php
Line: 967
Title: Re: SimplePortal - 2.3.2 Released!
Post by: dsantana on June 22, 2010, 12:48:04 PM
Still trying to get this to fly.... Anyone have any ideas?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: rocknroller on June 25, 2010, 03:47:59 PM
Greetings!
I have problem with "Default Title Class" on blocks, when I enter "Custom Title Class", "Default Title Class" still stay present. Is there any way to avoid "Default Title Class"? Like body classes.

Thank you.

Edit: SP 2.3.2, SMF 2.0RC2.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Paraj on June 30, 2010, 06:54:30 AM
I have the same problem with the Style Options. Adding a Custom Title Class simply adds the custom class to the Default Title Class and Custom Title Style doesn't seem to work at all.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: CapadY on June 30, 2010, 11:43:31 AM
Quote from: capady on June 21, 2010, 09:01:53 AM
I have 3 different forums with SMF and SP

On all SP startpages I have a block with the comming calendar events.
At one site the events for the next 5 days are shown, on the other 2 sites only the events of the current day are shown.

I would like the show the events for the next few days on each site, but I can't find how to solve this question. I have been looking to the calendar settings of SMF, I've been looking to the settings in SP.

Who can tell me how to solve this ?

It look likes there are only questions in this topic and no answers :s

Title: Re: SimplePortal - 2.3.2 Released!
Post by: gene_sc on July 04, 2010, 12:08:05 AM
I have a real stupid question.? How do you edit out the welcome message on main page of SMF Forum after installing the Simple Portal?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: KiroBot on July 04, 2010, 04:12:53 PM
Were in my cPanel do I got to edit the simple portal?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on July 04, 2010, 11:32:58 PM
As you all know, SimplePortal has a specific own site that answer to all your inquiries. Go there: http://simpleportal.net if your questions are unanswered here.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: gene_sc on July 04, 2010, 11:45:07 PM
Sorry, I thought I could seek help here. Yes I did look at many help files but never found my answer. But I finally figuered it out by myself.

If there is a specific forum to seek help on questions, I wish you would list the URL here for me.

Thanks
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on July 04, 2010, 11:56:12 PM
Quote from: ⎝⏠⏝⏠⎠ on July 04, 2010, 11:32:58 PM
As you all know, SimplePortal has a specific own site that answer to all your inquiries. Go there: http://simpleportal.net if your questions are unanswered here.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: KiroBot on July 06, 2010, 06:43:09 AM
Quote from: ⎝⏠⏝⏠⎠ on July 04, 2010, 11:56:12 PM
Quote from: ⎝⏠⏝⏠⎠ on July 04, 2010, 11:32:58 PM
As you all know, SimplePortal has a specific own site that answer to all your inquiries. Go there: http://simpleportal.net if your questions are unanswered here.
then why would you make a topic on simple portal here in the first place if your just going to tell us to go some were else. Also, you stupid Verification word thing is in the way. It wont let me register.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on July 06, 2010, 09:07:14 AM
So sorry to hear that. Have try again?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: dsantana on July 10, 2010, 05:28:53 PM
Thanks so much for all your hard work on SP!!!

I would like to display random videos in a block under my random images. Is there a way to do that?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Eudemon on July 13, 2010, 08:36:41 PM
hi, sir

how do the special actions work, the Wavy (~), Idkin (|), Negator (-)
for example, i tried to put an url there with ~ in the end, but it doesn't work
another example with -, i wanted to put something at just one single page or action like--> http://kumakuni.com/forum/index.php?action=pm-
how do i do it?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: KiroBot on July 13, 2010, 09:16:06 PM
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 04, 2010, 11:56:12 PM
Quote from: ⎝⏠⏝⏠⎠ on July 04, 2010, 11:32:58 PM
As you all know, SimplePortal has a specific own site that answer to all your inquiries. Go there: http://simpleportal.net if your questions are unanswered here.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TecKtoNiK.z0r on July 14, 2010, 10:16:30 AM
i have a problem with blocks:

Table 'highskill_nou.smf_sp_functions' doesn't exist
File: /home/highskill/domains/cxr-highskill.com/public_html/home/Sources/Subs-SPortal2.php
Line: 339

How do i resolve it ???
Title: Re: SimplePortal - 2.3.2 Released!
Post by: KiroBot on July 14, 2010, 11:26:07 AM
Quote from: TecKtoNiK.z0r on July 14, 2010, 10:16:30 AM
i have a problem with blocks:

Table 'highskill_nou.smf_sp_functions' doesn't exist
File: /home/highskill/domains/cxr-highskill.com/public_html/home/Sources/Subs-SPortal2.php
Line: 339

How do i resolve it ???
By going to http://www.simpleportal.net/
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MultiformeIngegno on July 15, 2010, 08:40:06 AM
I can't connect to the site.. is it down?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: joiful77 on July 15, 2010, 02:08:46 PM
The link to the support for the Simple Portal is not working. I need some help with a glitch on my forum on the portal. The navbar is messed up on the standalone page: http://www.lighthousetrailsresearch.com/LTForum/PortalStandalone.php
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Grim Line on July 15, 2010, 03:46:00 PM
I have a custom block setup in the center of my simpleportal. It stretches all the way across my page though and i'm wondering how i could reduce the width size so that it can be any size i want?

I figure it's something to do with;

Custom Body Class:
OR 
Custom Body Style:

(http://i28.tinypic.com/mcxg83.png)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ChrisDoz on July 16, 2010, 12:39:19 PM
Hi people, and sorry for my very bad english, i'm french ...

I've install the Simple portal but i've 2 error :

http://www.hiboox.fr/go/images/informatique/0001,f9ba558172381dbc9cccd5298c2fc904.jpg.html

But, i install ....

I create shoutbox, i can see but other people (guest, smoderator ....) no see

Have you any idea for this problem please ??

Thanks

ChrisDoz
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on July 16, 2010, 12:41:22 PM
Quote from: ChrisDoz on July 16, 2010, 12:39:19 PM
Hi people, and sorry for my very bad english, i'm french ...

I've install the Simple portal but i've 2 error :

http://www.hiboox.fr/go/images/informatique/0001,f9ba558172381dbc9cccd5298c2fc904.jpg.html

But, i install ....

I create shoutbox, i can see but other people (guest, smoderator ....) no see

Have you any idea for this problem please ??

Thanks

ChrisDoz

Have you set permissions for the shoutbox? (where you created it their is a drop down menu)

Avez-vous définir des autorisations pour la shoutbox? (Où vous avez créé il leur est un menu déroulant)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: John1 on July 17, 2010, 06:40:08 AM
Please how do i underline the recent topic/posts on the front page ?
I mean inside the SP Block.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ChrisDoz on July 17, 2010, 08:12:25 AM
Quote from: ♪ JohnCcCcCc ♫ on July 16, 2010, 12:41:22 PM
Quote from: ChrisDoz on July 16, 2010, 12:39:19 PM
Hi people, and sorry for my very bad english, i'm french ...

I've install the Simple portal but i've 2 error :

http://www.hiboox.fr/go/images/informatique/0001,f9ba558172381dbc9cccd5298c2fc904.jpg.html

But, i install ....

I create shoutbox, i can see but other people (guest, smoderator ....) no see

Have you any idea for this problem please ??

Thanks

ChrisDoz

Have you set permissions for the shoutbox? (where you created it their is a drop down menu)

Avez-vous définir des autorisations pour la shoutbox? (Où vous avez créé il leur est un menu déroulant)

Sorry for the late answer, i've resolved my problem alone ... :)
But 'ive a new problem :
I use aeva  and flow player (audio & video & flash), i use too radioblog bbcode (mp3)..
I insert vidéo (youtube, daylimotion), mp3 ... but in editing mode I see this, not in finaly posted : just links

in preview :
[flp=425,344]http://www.dailymotion.com/video/x19jho_van-halen-jump_music[/flp]

in forum :
http://www.dailymotion.com/video/x19jho_van-halen-jump_music

See you what is my problem please ??
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on July 17, 2010, 11:27:58 AM
Quote from: John1 on July 17, 2010, 06:40:08 AM
Please how do i underline the recent topic/posts on the front page ?
I mean inside the SP Block.

Fortunately the good people @ Simple Portal made this easy for everybody

See the style options at the bottom of the config area for that block

Custom Body Style: in their use the CSS style for underline:

Just add:
text-decoration:underline; in that form.

Any styles can be used even for the title
check out some CSS styles
http://www.w3schools.com/css/default.asp



@ChrisDoz

I'm not 100% sure, but I think you don't use any BBC tag for Aeva.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: John1 on July 17, 2010, 04:55:06 PM
Thanks man. how did i overlook that ?

for some reasons, the text-decoration:underline; does not underline the topics.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on July 17, 2010, 05:19:20 PM
It works for me, you did put it in Custom Body Style: ?

And not Custom Body Class
Title: Re: SimplePortal - 2.3.2 Released!
Post by: John1 on July 17, 2010, 05:21:34 PM
i put it in custom body style.

i also want to ask how i can put two or more css styles in the same input box.

how do you separate them ?

Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on July 17, 2010, 05:34:01 PM
That's what the custom class for.

You can add another custom class, in portal.css, maybe called recentreplies then add multiple styles

Portal.css

Add this after any class

.recentreplies
{
      Some styles in here
      another one here
      another one here
      and so on
}

Block settings.
In custom body class, just add the recentreplies to it
Title: Re: SimplePortal - 2.3.2 Released!
Post by: John1 on July 17, 2010, 05:36:25 PM
Good, thanks.

how do i add the recentreplies ?

.recentreplies
or just

recentreplies

i mean in the custom style.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on July 17, 2010, 05:39:02 PM
Quote from: John1 on July 17, 2010, 05:36:25 PM
Good, thanks.

how do i add the recentreplies ?

.recentreplies
or just

recentreplies

i mean in the custom style.

In the portal.css add the class with the dot on it

In the block settings no need to add the dot to the beginning.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: gunpron on July 21, 2010, 12:51:30 PM
I've got some real basic questions about SimplePortal - the kind which are likely answered in an installation doc, but I didn't see one in the download package.  Looks like http://simpleportal.net/ is not working (still?).  Arrghh.

If I install SMF in a /forum folder, and then install SimplePortal, what do I need to do to ensure SimplePortal handles the index page for the domain root?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on July 21, 2010, 12:54:52 PM
I believe their is an option in their for that where you specify the filename.

You will probably get faster support @ simpleportal.net, the topic here is often quiet lol ...
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Chas Large on July 21, 2010, 03:54:15 PM
With SimplePortal.net off line still I have a fairly simple question about including variables in blocks.

I'd like to use a variable like {$member.name} (from the Newsletter help screen) in a block.

I've tried it in a BBC block and HTML bloc but it does not work. Custom PHP just gives a parse error probably because my php knowledge is poor.

So, is it possible to use forum variables in BBC or HTML blocks? and if so, how?

Thanks
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on July 22, 2010, 06:15:49 PM
Quote from: Chas Large on July 21, 2010, 03:54:15 PM
With SimplePortal.net off line still I have a fairly simple question about including variables in blocks.

I'd like to use a variable like {$member.name} (from the Newsletter help screen) in a block.

I've tried it in a BBC block and HTML bloc but it does not work. Custom PHP just gives a parse error probably because my php knowledge is poor.

So, is it possible to use forum variables in BBC or HTML blocks? and if so, how?

Thanks
I think the use of custom php block with smf variable is already correct and should work. You should however ensure that php disabled option is ticked in general setting to avoid parse error.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Tyluur on July 22, 2010, 08:01:43 PM
Look at www.crisisx.net [nofollow], they use SMF and they ask you to vote as a guest, and below that there's an option that says Click here if you do not wish to vote.

How do I get that? Thanks ;).
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheListener on July 22, 2010, 09:04:42 PM
If you go to the Vote link in their menu it wil show as a page.

It looks as they used one of the simpleportal pages to do the job.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: waruna on July 23, 2010, 02:19:28 AM
Hello to Mod owner.

I want to upgrade this mod because I'm using older version of SP. So I have to uninstall current SP version, download the latest one, and install it in the package manager? Is that correct?

One more thing, do I have to backup files + mysql database, or just backup my forum files?

Thanks in advance.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on July 23, 2010, 11:03:24 AM
Quote from: waruna on July 23, 2010, 02:19:28 AM
Hello to Mod owner.

I want to upgrade this mod because I'm using older version of SP. So I have to uninstall current SP version, download the latest one, and install it in the package manager? Is that correct?

One more thing, do I have to backup files + mysql database, or just backup my forum files?

Thanks in advance.
I guess the answer to the first question is yes.

The best is to backup both, just in case. But normally, you dont have to.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on July 23, 2010, 11:05:42 AM
Quote from: Tyluur on July 22, 2010, 08:01:43 PM
Look at www.crisisx.net [nofollow], they use SMF and they ask you to vote as a guest, and below that there's an option that says Click here if you do not wish to vote.

How do I get that? Thanks ;).
That is not simple portal mod. That is a pop up mod. And it only replace x (close) with 'Click here if you do not wish to vote'.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on July 26, 2010, 11:27:06 PM
Quote1.   Execute Modification   ./index.php   Test failed
   1.   Replace   ./index.php   Test successful
   2.   Replace   ./index.php   Test failed
   3.   Replace   ./index.php   Test successful
   4.   Replace   ./index.php   Test successful
   5.   Replace   ./index.php   Test successful
   6.   Replace   ./index.php   Test successful
   2.   Execute Modification   ./SSI.php   Test successful
   3.   Execute Modification   .Sources/Admin.php   Test failed
   1.   Replace   .Sources/Admin.php   Test failed
   2.   Replace   .Sources/Admin.php   Test successful
   3.   Replace   .Sources/Admin.php   Test successful

I'm having issues uninstalling this mod. I'm wondering if I could get a hand.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on July 28, 2010, 05:59:13 PM
Let me check this first.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on July 29, 2010, 09:16:36 AM
I have checked your files but there is no SimplePortal mod to remove from your index.php. Or may be you put a wrong file here?

I have removed the SimplePortal mod from your Admin.php file. Attached.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on July 29, 2010, 04:20:08 PM
So I should be safe to uninstall even if I'm still getting the index.php failure?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheListener on July 29, 2010, 04:28:20 PM
Did you have an error on that file when the mod was installed?

If so did you manually edit the file?

Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on July 29, 2010, 04:53:38 PM
Quote from: Brack1 on July 29, 2010, 04:28:20 PM
Did you have an error on that file when the mod was installed?

If so did you manually edit the file?

No. Simple Portal has been installed since day 1 and there were no errors on the install. It's just the uninstall. I've provided a screen of the errors ans the files it failed on a few posts up. My friend there says he could not locate any SP edits in index.php.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on July 30, 2010, 12:41:37 PM
Quote from: MATTEK on July 29, 2010, 04:20:08 PM
So I should be safe to uninstall even if I'm still getting the index.php failure?
Yes. It should. But please note that whatever error you are reading, it shows that the uninstall must be done manually. The admin.php file that has been attached earlier is already clear of SimplePortal mod. So, only replace it when you have finished uninstall  SimplePortal mod.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on July 30, 2010, 02:10:58 PM
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 30, 2010, 12:41:37 PM
Quote from: MATTEK on July 29, 2010, 04:20:08 PM
So I should be safe to uninstall even if I'm still getting the index.php failure?
Yes. It should. But please note that whatever error you are reading, it shows that the uninstall must be done manually. The admin.php file that has been attached earlier is already clear of SimplePortal mod. So, only replace it when you have finished uninstall  SimplePortal mod.

And you found nothing in index.php
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on July 30, 2010, 02:14:43 PM
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 29, 2010, 09:16:36 AM
I have checked your files but there is no SimplePortal mod to remove from your index.php. Or may be you put a wrong file here?

I have removed the SimplePortal mod from your Admin.php file. Attached.

The index.php file should contain lots of other mods but yours doesn't contain any. It's like a new index.php file. You must have mistakenly change it or otherwise it should have no problem at all.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TopBrandGamerz on August 01, 2010, 05:28:15 AM
Ok so i installed the simpleportal and its taken over my forums and i cannot get them any ideas on  how to fixx this
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 01, 2010, 05:32:44 AM
Quote from: TopBrandGamerz on August 01, 2010, 05:28:15 AM
Ok so i installed the simpleportal and its taken over my forums and i cannot get them any ideas on  how to fixx this
Please provide your forum details, version, links, etc and problem details like when it started and what have you done before you faced this problem.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TopBrandGamerz on August 01, 2010, 05:46:12 AM
Ok before i installed simpleportal my index.php was ok i could go to catogerys borards i installed it and it took over index.php i could`nt get to my forums..
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 01, 2010, 05:50:02 AM
Quote from: TopBrandGamerz on August 01, 2010, 05:46:12 AM
Ok before i installed simpleportal my index.php was ok i could go to catogerys borards i installed it and it took over index.php i could`nt get to my forums..
People here cannot read minds. Unless you provide your forum link and version, we do not know what you did to get the error you have. And, when you install the mod, did you see any error messages?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on August 01, 2010, 12:27:25 PM
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 30, 2010, 02:14:43 PM
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 29, 2010, 09:16:36 AM
I have checked your files but there is no SimplePortal mod to remove from your index.php. Or may be you put a wrong file here?

I have removed the SimplePortal mod from your Admin.php file. Attached.

The index.php file should contain lots of other mods but yours doesn't contain any. It's like a new index.php file. You must have mistakenly change it or otherwise it should have no problem at all.
This concerns me. My index.php contains no mods what so ever?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 01, 2010, 12:43:11 PM
This is the original SMF 2.0 RC3 index.php in the installation file I have. The size if compared to your attached one which is only 0.33kb is very much different.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 01, 2010, 12:46:33 PM
Quote from: MATTEK on August 01, 2010, 12:27:25 PM
This concerns me. My index.php contains no mods what so ever?

http://custom.simplemachines.org/mods/index.php?mod=1104
Click parse, compare...
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 01, 2010, 12:49:51 PM
John he attached his index.php here: http://www.simplemachines.org/community/index.php?topic=227599.msg2719399#msg2719399 But there is nothing in there. Not even equal to original index.php I attached above. Totally nothing. That is what I am saying.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 01, 2010, 12:57:09 PM
Like actually nothing at all?

I cant believe what he has done...

MATTEK, you actually have overwritten your root index.php with your Sources index.php

How did you manage that?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on August 01, 2010, 12:59:53 PM
I have a few index.php files on my computer, but they seem like they've been converted to regular text files.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 01, 2010, 01:03:32 PM
Mattek, index.php for root is normally 15kb and above in size (not 0.33kb like the one you attached above). You might want to check your back up copies. You can post the files here if you are not sure which one.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 01, 2010, 01:04:11 PM
Which one starts like this

/**********************************************************************************
* index.php                                                                       *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *


Paste the entirety of that file into the index.php you have, but before you do that..

You forum is not working right, just a blank screen?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on August 01, 2010, 01:10:00 PM
My forum is working perfectly fine minus the function and display of the SA Facebook integration and Custom Top Menu.

Other than that, works perfect.

Here's the only copy of an "index" file that's larger than 14kb that I have. It's a text file though.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 01, 2010, 01:12:30 PM
Thats a css file ???
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 01, 2010, 01:12:45 PM
Quote from: MATTEK on August 01, 2010, 01:10:00 PM
My forum is working perfectly fine minus the function and display of the SA Facebook integration and Custom Top Menu.

Other than that, works perfect.

Here's the only copy of an "index" file that's larger than 14kb that I have. It's a text file though.
I can see it's working. Can you take the index.php file from your current site now (from the very root of your site and not from the Sources folder) where other files like Subscriptions.php or agreement.txt or readme.html is situated.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 01, 2010, 01:15:33 PM
I don't see how the forum could be possibly working with that index.php file which belongs in sources, that cannot be right, you much have attached the wrong index.php file before...
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on August 01, 2010, 01:27:59 PM
This is from my root.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 01, 2010, 01:31:44 PM
Quote from: MATTEK on August 01, 2010, 01:27:59 PM
This is from my root.

See now we have the right one.

Now back to my original post before, go to the mod download area for SP, then click parse, then compare the files to the parsing instructions for index.php
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 01, 2010, 01:37:19 PM
At last, the correct file. I noticed you installed this "Twitter and Facebook Publisher Mod". I would advise you not to use it unless you really need it. IMHO this mod is in conflict with SA Facebook Mod. Just follow John instructions ok. You'll do fine.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on August 01, 2010, 01:40:41 PM
Yea we do need it. It generates a lot of traffic. When Articles are published.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 01, 2010, 01:45:03 PM
Quote from: MATTEK on August 01, 2010, 01:40:41 PM
Yea we do need it. It generates a lot of traffic. When Articles are published.
Do consider to use this: http://www.simplemachines.org/community/index.php?topic=360150.0 and this: http://www.simplemachines.org/community/index.php?topic=360150.msg2563368#msg2563368 instead.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 01, 2010, 01:50:11 PM
Quote from: MATTEK on August 01, 2010, 01:40:41 PM
Yea we do need it. It generates a lot of traffic. When Articles are published.

Most traffic comes from twitter IMO and experience, use the no mod method if you want, but I use the mod, it does work great, however, I do not use SA Facebook.

Back on topic,
How is the comparing of index.php going?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on August 01, 2010, 01:55:12 PM
Quote from: johncccccc on August 01, 2010, 01:50:11 PM
Quote from: MATTEK on August 01, 2010, 01:40:41 PM
Yea we do need it. It generates a lot of traffic. When Articles are published.

Most traffic comes from twitter IMO and experience, use the no mod method if you want, but I use the mod, it does work great, however, I do not use SA Facebook.

Back on topic,
How is the comparing of index.php going?

Difficult. I'm not the best at this. lol. I'll manage, though.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 01, 2010, 01:56:34 PM
I know you will Mattek. I can see that. Best of luck.

*is wanting to go offline now.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 01, 2010, 02:09:04 PM
Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

Subs.php

Search for " $buttons "

Paste the code here  for about 50 lines after that.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: wickedstangs on August 01, 2010, 02:14:31 PM
Quote from: johncccccc on August 01, 2010, 02:09:04 PM
Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

Subs.php

Search for " $buttons "

Paste the code here  for about 50 lines after that.

The only thing I found with button in the Subs.php is the below.
// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;

if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on August 01, 2010, 02:31:27 PM
who.php also failed on the uninstall. Now only the fourth edit failed. Does that mean only have to manually uninstall that edit?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 01, 2010, 02:36:28 PM
Quote from: wickedstangs on August 01, 2010, 02:14:31 PM
Quote from: johncccccc on August 01, 2010, 02:09:04 PM
Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

Subs.php

Search for " $buttons "

Paste the code here  for about 50 lines after that.

The only thing I found with button in the Subs.php is the below.
// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;

if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}


Search for this:


$buttons = array(



Then paste the things after that

Quote from: MATTEK on August 01, 2010, 02:31:27 PM
who.php also failed on the uninstall. Now only the fourth edit failed. Does that mean only have to manually uninstall that edit?

Yes, for all edits.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on August 01, 2010, 02:48:46 PM
For all edits? or just the fourth edit tat failed?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 01, 2010, 02:50:27 PM
I just told you that in the above post...
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on August 01, 2010, 02:54:05 PM
You have to be more clear as you're not dealing with a pro.

You said "Yes, for all edits"...

To me, that means even though 3 of the 4 were successful I have to edit all 4 of them. However that is in direct conflict with my question as you said "Yes" to the question : "Do I only have to edit the one that failed?"
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 01, 2010, 03:00:51 PM
Quote from: MATTEK on August 01, 2010, 02:54:05 PM

To me, that means even though 3 of the 4 were successful I have to edit all 4 of them. However that is in direct conflict with my question as you said "Yes" to the question : "Do I only have to edit the one that failed?"

And that's correct lol
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MATTEK on August 01, 2010, 03:05:14 PM
:) Thank you.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: wickedstangs on August 01, 2010, 11:52:46 PM
Quote from: johncccccc on August 01, 2010, 02:36:28 PM
Quote from: wickedstangs on August 01, 2010, 02:14:31 PM
Quote from: johncccccc on August 01, 2010, 02:09:04 PM
Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

Subs.php

Search for " $buttons "

Paste the code here  for about 50 lines after that.

The only thing I found with button in the Subs.php is the below.
// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;

if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}


Search for this:


$buttons = array(



Then paste the things after that

for all edits.

I searched the entire file /Sources/Subs.php could not find $buttons = array(
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 02, 2010, 04:50:21 AM
Quote from: wickedstangs on August 01, 2010, 11:52:46 PM
Quote from: johncccccc on August 01, 2010, 02:36:28 PM
Quote from: wickedstangs on August 01, 2010, 02:14:31 PM
Quote from: johncccccc on August 01, 2010, 02:09:04 PM
Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

Subs.php

Search for " $buttons "

Paste the code here  for about 50 lines after that.

The only thing I found with button in the Subs.php is the below.
// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;

if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}


Search for this:


$buttons = array(



Then paste the things after that

for all edits.

I searched the entire file /Sources/Subs.php could not find $buttons = array(
Your menu is in index.template.php since your forum is using SMF 1.1.x and not 2.0 RCx. Btw, your forum seems fine to me. All your menu  / forum tab are intact. Is it solved then?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: wickedstangs on August 02, 2010, 09:09:03 AM
Quote from: AbuFahim⎝⏠⏝⏠⎠ on August 02, 2010, 04:50:21 AM
Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

Your menu is in index.template.php since your forum is using SMF 1.1.x and not 2.0 RCx. Btw, your forum seems fine to me. All your menu  / forum tab are intact. Is it solved then?

Everything looks fine except for a missing a tab on top menu to the forums.

Below is the topmenu code but, I don't see forum tab in there.

// Show the start of the tab section.
echo '<div id="topmenu">

<ul class="topmenu">';
// Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

// Show the [help] button.
echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '<li><a' , $current_action=='search' ? ' class="current"' : '' , ' href="', $scripturl, '?action=search"><span>' , $txt[182] , '</span></a></li>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li><a' , $current_action=='admin' ? ' class="current"' : '' , ' href="', $scripturl, '?action=admin"><span>' , $txt[2] , '</span></a></li>';

// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a' , $current_action=='profile' ? ' class="current"' : '' , ' href="', $scripturl, '?action=profile"><span>' , $txt[79] , '</span></a></li>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a' , $current_action=='pm' ? ' class="current"' : '' , ' href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span></a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a ' , $current_action=='mlist' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';

// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li><a ' , $current_action=='login' ? ' class="current"' : '' , ' href="', $scripturl, '?action=login"><span>' , $txt[34] , '</span></a></li>';

// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li><a ' , $current_action=='register' ? ' class="current"' : '' , ' href="', $scripturl, '?action=register"><span>' , $txt[97] , '</span></a></li>';

// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a ' , $current_action=='logout' ? ' class="current"' : '' , 'href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>' , $txt[108] , '</span></a></li>';

echo '
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 02, 2010, 10:39:46 AM
Your theme is not a default theme. Therefore when installing SP you must manually modify your index.template.php. You should get an error message when you were installing SP which provide which line you need to do the modifications manually.

However, let's try this:

Change:
            // Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

To:
            // Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', ($modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl), '"><span>' , $txt[103] , '</span></a></li>';

            // Show the [forum] button.
if (empty($context['disable_sp']) && in_array($modSettings['sp_portal_mode'], array(1, 3)))
echo '<li><a' , $current_action=='forum' ? ' class="current"' : '' , ' href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '"><span>', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</span></a></li>';
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 02, 2010, 11:31:13 AM
Moving to SMF 2 RC3 would really be a lot easier for you lol

Trust me, their are a lot less of these issues
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 02, 2010, 11:50:41 AM
Quote from: johncccccc on August 02, 2010, 11:31:13 AM
Moving to SMF 2 RC3 would really be a lot easier for you lol

Trust me, their are a lot less of these issues
I would advise the same as John. May be consider it later?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: wickedstangs on August 02, 2010, 06:29:00 PM
Will work on it tonight the template edit did not work for me...:( Will try 2.0
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 02, 2010, 06:40:05 PM
Quote from: wickedstangs on August 02, 2010, 06:29:00 PM
Will work on it tonight the template edit did not work for me...:( Will try 2.0
Sorry, my mistake. I got it wrong here:
href=href=
Here, try this one.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: flamechica on August 09, 2010, 02:56:43 AM
I run SMF 1.1.11 and I decided to upgrade from SP 2.2 to 2.3.2. So, I uninstalled SP 2.2 like the directions say and installed 2.3.2. The package manager said that the index.template.php file test failed. So, I looked through the file and the edits looked done already. So, I went ahead and said to install anyways. Everything seemed to be ok, except, I do not have a "Forum" button. I don't run any special themes, only default variations, none of them have their own index.template.php files.

I am getting an error in my error log:
Quotehttp://www.rsdlaughter.com/smf/index.php (http://www.rsdlaughter.com/smf/index.php)
8: Undefined variable: modSettings
File: /home/domain/public_html/smf/Themes/default/PortalArticles.template.php (main_above sub template - eval?)
Line: 614

I have included my index.template.php file if you could please look at it to see if I messed something up. I have looked over the part where it adds the forum button and I just don't see where the mistake is.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 09, 2010, 04:16:53 AM
I cannot see any error on your site. I cannot access it either.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: flamechica on August 09, 2010, 04:29:28 AM
The site doesn't show the error my error log in my admin panel does. I don't know if the error has anything to do with it, but my big problem is that my "Forum" button is missing, so I can't get to my board index page without typing in the URL, which is inconvenient.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 09, 2010, 04:52:34 AM
Your index.template.php looks fine to me. It is exactly as the mod normally does. Try uninstalling and reinstalling the mod.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: flamechica on August 09, 2010, 05:09:51 AM
Uninstalling and reinstalling did nothing....are there any other files that would cause the forum button to not show?

Also, another issue, I just noticed, when I disable Portal Mode, I get this error when I try to edit my blocks, but if I am in any other portal mode such as stand alone, etc I have no problem.:

Fatal error: Call to undefined function sp_html() in /home/rsdlaugh/public_html/smf/Sources/PortalAdminBlocks.php on line 265
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on August 09, 2010, 07:27:14 AM
Quote from: ahrasis on August 09, 2010, 04:52:34 AM
Your index.template.php looks fine to me. It is exactly as the mod normally does. Try uninstalling and reinstalling the mod.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: flamechica on August 09, 2010, 02:15:01 PM
Quote from: flamechica on August 09, 2010, 05:09:51 AM
Uninstalling and reinstalling did nothing....are there any other files that would cause the forum button to not show?

As I said above that did nothing. It's still not working properly at all. I am getting TONS of errors in my error log all related to SP. I still have no "Forum" tab, etc.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: flamechica on August 12, 2010, 08:17:27 PM
No other advice other than uninstall and reinstall, which I did?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: nightyyx on August 17, 2010, 07:44:58 PM
Hello
i just tested simple portal and i need some help.

1) it is nice the article system but i want something different.
I want to have a catalogue with news in the top of my portal and eatch member read it from portal. and then if they want to comment to another board of my forum.
I dont want to press the link of article from portal and going to a topic on my forum with the article.
Any ideas if it is easy to change it?

2)want to my portal forum to have at the right a block that will shows the last 10 active topics with the recent post of eatch of this.
Simple portal have a recent post block but the problem for me it is that shows in the list 5 times the same topic with the last posts. I want a recent topic and post in one if you undestand someone what am i meaning:P
It will show only one time eatch topic and every time that you will refresh the page you will see the last post next of the name of topic.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 17, 2010, 07:47:50 PM
Quote from: nightyyx on August 17, 2010, 07:44:58 PM
Hello
i just tested simple portal and i need some help.

1) it is nice the article system but i want something different.
I want to have a catalogue with news in the top of my portal and eatch member read it from portal. and then if they want to comment to another board of my forum.
I dont want to press the link of article from portal and going to a topic on my forum with the article.
Any ideas if it is easy to change it?

2)want to my portal forum to have at the right a block that will shows the last 10 active topics with the recent post of eatch of this.
Simple portal have a recent post block but the problem for me it is that shows in the list 5 times the same topic with the last posts. I want a recent topic and post in one if you undestand someone what am i meaning:P
It will show only one time eatch topic and every time that you will refresh the page you will see the last post next of the name of topic.

Their is a  "Block Requests" board on SimplePortal.net, you can ask for customized blocks their, they usually figure those out :)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: nightyyx on August 17, 2010, 07:59:17 PM
applied! thanks!
Title: Re: SimplePortal - 2.3.2 Released!
Post by: nightyyx on August 17, 2010, 08:42:07 PM
Ehm i found something like that i want.
I just used board forum news block.I choosed only one board that i have my articles and they displayed as i want in portal on top.
But still a problem when i press read more and write comment the posts of users are not under my first post but up.
Like the screenshoot.
Anyone know if i can change this rotation?

the post with many sentences in the end is my "Article news". it should be first.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on August 18, 2010, 11:27:30 AM
?action=profile;area=theme

Each user has a setting "Show most recent posts at the top. "
So each user has the choice in which order to view all the comments -- top to bottom, or bottom to top.

This is a feature of SMF, and SimplePortal does not alter this behavior.

Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on August 18, 2010, 11:34:51 AM
@FlameChica
Quote from: flamechica on August 09, 2010, 02:56:43 AM
Everything seemed to be ok, except, I do not have a "Forum" button.
I can see from your index.template.php that there is some code for the Forum button.
That code only shows up if:
* Simple Portal is NOT disabled.
* Simple Portal is in mode 1 or 3 (frontpage or standalone)

Which settings are you using?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: SilvioTO on August 19, 2010, 12:32:17 PM
I use SMF 1.1.11 and going to install SimplePortal - 2.3.2 I receive this error in the pre-installation process:

11.     Esegui Modifica     ./Sources/Recent.php     Failed

All other steps are ok.
In attach my Recent.php file.

Thanks for your help.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on August 20, 2010, 12:15:59 PM
This is because of some other mod that has already modified that file.

0) Save a copy of Recent.php in case you run into trouble later.

1) Have a look through the instructions for manual installation. Pay close attention to what will be required in the file that failed.  Can you find the spots that the installer couldn't

2) When you feel sure you can find all the right places, go ahead.  Do the install, even though it will fail on one file.

3) For that ONE FILE, use the manual installation instructions.  Check every place it needs to be changed for SimplePortal to work. Make sure that all of those instruction steps are done properly.

4) Now, things are about as good as they are going to get.  If all works, then you are in good shape.  If there is a conflict between SimplePortal and other mods, and you cannot figure out how to make things work, you can uninstall SimplePortal.  This will also fail for Recent.php.  But you saved a copy of the file, so you can do the uninstall, not worry about the failure on Recent.php, and use the before-SimplePortal version of Recent.php.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: SilvioTO on August 21, 2010, 06:19:11 AM
Thanks, I'll do it following your detailed instructions.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: nightyyx on August 22, 2010, 01:46:30 PM
I am using also simpleportal  but can  tell me how you put a photo a eatch of your news?

Also it is possible to to choose specific A topic from ONE board only?

And have my news in portal like this:
First new "mercedes" topic from board "cars" , Second new "pizza" topic from Restaurants board...
thanks

Using smf 2.0 RC3 and simple portal SimplePortal 2.3.2.
Also the best would be if i can do this.
To have the news page and if the user want to make comments to should redirect to another link thread on my forum.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: frantic on August 22, 2010, 04:26:00 PM
need to sign up with a picture hosting site (its free) like image shack.  After you do that you have to copy the img tag link they give you from your uploaded picture and paste that link into your topic.    You'll see the img when you hit the prevew button. 

For articles, just pick the article you want from any board in the add article section in the simpleportal admin section.  check out the guide at
http://simpleportal.net/index.php?action=docs;area=setup_articles.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: nightyyx on August 22, 2010, 04:46:08 PM
thanks alot
was so simple! shame to me ;D
I was just using the board news block for to uploading in main portal my "news". And in this block you can choose only whole boards witout topic selection.
So now i ll use the article block;)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: nightyyx on August 22, 2010, 04:58:57 PM
But still have problem
My articles in the top of portal appears like in screenshoot.
I want to appear like the link that you showed me

My article settings is in the last screenshoot.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: jollyrogue on August 22, 2010, 05:11:46 PM
Sorry if this is a stupid question but i'd like to know if it is possible to have the portal at the root of my domain while the forum is at /forum/. If it's not, i don't mind.. I'll just keep the redirection script on the root..
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 22, 2010, 05:20:14 PM
I believe their is an optoin for that, in the main settings area you can specify a file, I'm not 100% sure how it operates though. simpleportal.net would be a good place to ask too
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on August 22, 2010, 07:27:59 PM
Quote from: jollyrogue on August 22, 2010, 05:11:46 PM
i'd like to know if it is possible to have the portal at the root of my domain while the forum is at /forum/.
You can do this using SimplePortal's "Standalone Portal".
You would chose the standalone option and take a copy of the standalone portal file to your domain root, then follow the instructions inside the standalone portal file.

After that -- it works pretty much like magic.  There are a few small differences between standalone and front page mode.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Ryan2320 on August 22, 2010, 07:45:19 PM
Can I add a pages button? To where the home and forum button are?

I am using a custom theme, and have already add the forum button, but is it possible to add a pages button right after the forum button? If so how?

What I would like to do is create a page that link to other pages but have all the links on that one page..and have the page button link to that one page

Thanks
Ryan 
Title: Re: SimplePortal - 2.3.2 Released!
Post by: frantic on August 23, 2010, 03:29:35 PM
Quote from: nightyyx on August 22, 2010, 04:58:57 PM
But still have problem
My articles in the top of portal appears like in screenshoot.
I want to appear like the link that you showed me

My article settings is in the last screenshoot.

I think the problem is that your trying to set it up as a block. Am i right?  if you enable articles in the settings thing it post those articles to the front page.  Can you post a link to you site?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: aditiya1920 on August 23, 2010, 04:01:58 PM
Just one word! LOVE

i have been looking this mod for a week and finally i get it..

Really Thanks
Title: Re: SimplePortal - 2.3.2 Released!
Post by: flamechica on August 24, 2010, 05:09:34 AM
Quote from: AngelinaBelle on August 18, 2010, 11:34:51 AM
@FlameChica
Quote from: flamechica on August 09, 2010, 02:56:43 AM
Everything seemed to be ok, except, I do not have a "Forum" button.
I can see from your index.template.php that there is some code for the Forum button.
That code only shows up if:
* Simple Portal is NOT disabled.
* Simple Portal is in mode 1 or 3 (frontpage or standalone)

Which settings are you using?

At the moment, I am using "Integration" because that is the only way my members have a way of getting to the Board Index Page. It makes the "Home" tab take them to the Board Index Page. However, I want to use the "Front Page" mode where I have a "Home" Page (the Portal) and a "Forum" page (the Board Index). Currently, if I try to set it up to use "Front Page" mode, the "Home" tab will take me to the Portal. Then, since there still is no "Forum" tab showing up for whatever reason (although the code is in my index.template.php) my members have no way of getting to the Board Index Page.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: jollyrogue on August 24, 2010, 01:24:02 PM
Quote from: AngelinaBelle on August 22, 2010, 07:27:59 PM
Quote from: jollyrogue on August 22, 2010, 05:11:46 PM
i'd like to know if it is possible to have the portal at the root of my domain while the forum is at /forum/.
You can do this using SimplePortal's "Standalone Portal".
You would chose the standalone option and take a copy of the standalone portal file to your domain root, then follow the instructions inside the standalone portal file.

After that -- it works pretty much like magic.  There are a few small differences between standalone and front page mode.

Thanks AngelinaBelle, i'll take a look into it :)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on August 24, 2010, 04:23:16 PM
Quote from: flamechica on August 24, 2010, 05:09:34 AM
Everything seemed to be ok, except, I do not have a "Forum" button.
Code (find) Select
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;

Code (replace) Select
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl, $modSettings;
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on August 24, 2010, 04:26:34 PM
Quote from: Ryan2320 on August 22, 2010, 07:45:19 PM
Can I add a pages button? To where the home and forum button are?

I am using a custom theme, and have already add the forum button, but is it possible to add a pages button right after the forum button? If so how?

What I would like to do is create a page that link to other pages but have all the links on that one page..and have the page button link to that one page

You may create as many buttons as you like.  How you do this depends on your version of SMF. And your theme.

One SimplePortal user reports that two mods are particularly useful: http://simpleportal.net/index.php?topic=6214.0
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ɔɔɔɔɔɔuɥoɾ on August 24, 2010, 05:02:32 PM
http://custom.simplemachines.org/mods/index.php?mod=2657

My button mod will solve all that, which is also mentioned in the topic on sp.net that AngelinaBelle mentioned :)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on August 25, 2010, 09:51:39 AM
Quote from: aditiya1920 on August 23, 2010, 04:01:58 PM
Really Thanks

I've made sure the developers see this.  It means a lot to them!
Thanks
Title: Re: SimplePortal - 2.3.2 Released!
Post by: frantic on August 26, 2010, 03:16:15 AM
Quote from: nightyyx on August 22, 2010, 04:58:57 PM
But still have problem
My articles in the top of portal appears like in screenshoot.
I want to appear like the link that you showed me

My article settings is in the last screenshoot.

You need the articles in a block for that function to work.  Create a new block and choose how many article links to place in that block. 
Title: Re: SimplePortal - 2.3.2 Released!
Post by: flamechica on August 26, 2010, 03:58:19 PM
Quote from: AngelinaBelle on August 24, 2010, 04:23:16 PM
Quote from: flamechica on August 24, 2010, 05:09:34 AM
Everything seemed to be ok, except, I do not have a "Forum" button.
Code (find) Select
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
   global $settings, $buttons, $context, $txt, $scripturl;

Code (replace) Select
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
   global $settings, $buttons, $context, $txt, $scripturl, $modSettings;


I changed that code, went into the Admin panel changed the SP settings to "Front Page", Refreshed my page and nothing changed....so I cleared all my browser settings (cookies, etc) and still nothing....so I guess that wasn't it.  :(
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on August 27, 2010, 10:26:05 AM
Flamechica:
Are you still getting the error 8: Undefined variable: modSettings
I was just taking a shot in the dark.

But I just looked at your file again, and I see there is more missing.  Is this your default theme?
The install should have gotten all of this right .

Please do the following:
Take out the change I just asked you to make.

Check on all the changes described in the manual install instructions at http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=139821;smf_version=1.1.11 for the file index.template.php

I can see you don't have all the required changes to this file.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: anidea on August 27, 2010, 11:20:39 AM
Hi, I just installed SimplePortal and it seems to have installed just fine.  I can get to admin and all...but I can't make *any* blocks show in my pages?.

I have Portal Mode set to Integration--so that the blocks will appear around the perimeter of the forum, Display Blocks in Forum is checked, Enable Left and Right side blocks is checked, and I created a shoutbox and a box for it to live in...but none of this will display.

What else should I check?

Side note: when I installed this from my other computer with Firefox yesterday, everything looked great.  Today I'm on a computer with IE, and many of the graphics in the admin section won't show, just an x appears, that seems kind of strange, but is there a browser compatibility issue?

Edit: I think I figured out that I have to individually set the boxes to show on the forum, but I just noticed I can't shout on the shoutbox, either...also compatibility with IE?  Or some setting I missed?

RC3, RGB Curve theme
Title: Re: SimplePortal - 2.3.2 Released!
Post by: apashi on August 27, 2010, 01:29:09 PM
i installed simple portal 2.3.2 on mi smf forum 2.0RC3, but no FORUM button appear on my top menu! :(

i can find any solution for this issue!

where should i modify the code?

thanks!
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheListener on August 27, 2010, 01:31:11 PM
Which theme are you using?

You may get a quicker response over at www.simpleportal.net
Title: Re: SimplePortal - 2.3.2 Released!
Post by: apashi on August 27, 2010, 01:38:18 PM
i am using:
SMF Default Theme - Curve (2.0 RC3)

my forum is: www.vorbareti.ro

can you take a look there?

thanks!
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheListener on August 27, 2010, 01:40:18 PM
Do you use a language other than English?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: kat on August 27, 2010, 02:29:07 PM
Looks like Rumanian...

Try installing this, apashi.

http://download.simplemachines.org/index.php?thanks;filename=smf_2-0-rc3_romanian.zip
Title: Re: SimplePortal - 2.3.2 Released!
Post by: apashi on August 27, 2010, 02:55:03 PM
i allready installed romanian language (romanian-utf8)

this is also my default forum language!

Title: Re: SimplePortal - 2.3.2 Released!
Post by: kat on August 27, 2010, 03:02:25 PM
Worth checking. ;)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on August 27, 2010, 03:21:26 PM
Do you have any errors in your log file?
You may have a problem similar to Flamechica's above.
Did you have any errors on install?

Can you check Subs.php against the manual install instructions, to see if all the changes for the button menu got made?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: apashi on August 27, 2010, 04:54:02 PM
i solved the problem! :D

Thanks AngelinaBelle, you were right, i found some problem in my subs.php file  :o

thanks again!  ;)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: kat on August 27, 2010, 04:59:39 PM
WooHoo!  :D
Title: Re: SimplePortal - 2.3.2 Released!
Post by: MoreBloodWine on August 28, 2010, 06:25:57 AM
Can this import block and article data from TP SQL tables or would I have to rip them from the DB and then enter into SP ?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: flamechica on August 30, 2010, 02:44:19 AM
Quote from: AngelinaBelle on August 27, 2010, 10:26:05 AM
Are you still getting the error 8: Undefined variable: modSettings

Yes


Quote from: AngelinaBelle on August 27, 2010, 10:26:05 AMBut I just looked at your file again, and I see there is more missing.  Is this your default theme?
The install should have gotten all of this right .

Please do the following:
Take out the change I just asked you to make.

Check on all the changes described in the manual install instructions at http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=139821;smf_version=1.1.11 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=139821;smf_version=1.1.11) for the file index.template.php

I can see you don't have all the required changes to this file.

Yes, this is my default theme and it is what the installer put in there. I am not sure what you think is missing...I have gone through the manual install about a hundred times and just went through it again and still didn't find a single thing that was different or missing from the manual install instructions. Attached my index.template.php again... If I am being blind maybe you should clue me in if you saw it
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on August 30, 2010, 12:16:04 PM
Quote from: flamechica on August 30, 2010, 02:44:19 AM
Yes, this is my default theme and it is what the installer put in there.
Yes the installer failed. Partially. And it should have given you a "test failed" message.
In the file you just attached, I can see, in template_menu, that you have

$current_action = 'home';

But you need to have

global $modSettings;
$current_action = $modSettings['sp_portal_mode'] == 3 && empty($context['standalone']) && empty($context['disable_sp']) ? 'forum' : 'home';


When I posted before, I thought you had other problems as well, but it looks like this is the only missed in index.template.php.
This missed edit should account for both the missing $modSettings and the missing forum button.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on August 30, 2010, 12:19:59 PM
Quote from: MoreBloodWine on August 28, 2010, 06:25:57 AM
Can this import block and article data from TP SQL tables or would I have to rip them from the DB and then enter into SP ?
SimplePortal is not set up to import anything from other portals.
In SimplePortal 2.3.2, articles are designated topic posts from any of the forum's boards.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: muxen on August 31, 2010, 03:45:31 PM
SMF version: 1.1.11
SP version: 2.3.2
Hello!

As you can see if you open up my site (starcraft2.si), there are no smileys displayed in news post (it should display zerg icon, but it only shows :zerg: text). When you open up topic, smileys are visible.
I googled and searched on this forum for this error, but didn't find anything similar.
Thanks for help.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on August 31, 2010, 05:01:40 PM
Quote from: muxen on August 31, 2010, 03:45:31 PM
starcraft2.s9
?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: muxen on August 31, 2010, 05:02:15 PM
Sorry, typo. Fixed.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: saibaworld on September 01, 2010, 10:36:00 AM
My forum is 1.1.11 smf software and i want to install simple portal.

which release of sp is most stable with smf 1.1.11?

Am simply scared stiff of destabilizing my template cos tho i'v done some edits, am stil not so gud at understanding complex php language. thanks for the help
Title: Re: SimplePortal - 2.3.2 Released!
Post by: yakyakyak on September 01, 2010, 10:52:00 AM
2.3.2 has only failed for me on server installs for friends (where no ftp was available) and i was not able to make a /temp directory.

Templates have all gone ok.

shoutbox is a non-documented bug when running with Aeva (it don't work if Aeva Galleries are on the same page)

minor problems with curved themes when adding bespoke header designs in blocks

overall stable but some long-time unanswered support questions on their site which is starting to show

Title: Re: SimplePortal - 2.3.2 Released!
Post by: saibaworld on September 01, 2010, 01:16:43 PM
Quote from: yakyakyakshoutbox is a non-documented bug when running with Aeva (it don't work if Aeva Galleries are on the same page)

minor problems with curved themes when adding bespoke header designs in blocks

Thanks. The installed mods on my site are: Aeva6.9.99, eFloatingbar0.1.1 and Ad Mgt modv2-3.

I do not think my template version (ie smf 1.1.11) has curved themes; but are u saying Aeva has problems wit sp?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: yakyakyak on September 01, 2010, 01:27:16 PM
If you canvas the simple portal support site it would appear so

I have had the same problem on both test and live sites with 1.3a and 2.3.2 trying shoutbox. The shoutbox works but there's no input box for text.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on September 02, 2010, 03:04:13 PM
If you know of any posts at simpleportal.net showing this connection (AEVA + shoutbox = no shoutbox text box) please give a link.
This could be valuable information for the developers!

Thanks
Title: Re: SimplePortal - 2.3.2 Released!
Post by: AZMazda3 on September 02, 2010, 09:19:39 PM
Just attempted to update SimplePortal 2.2.2 to 2.3 and the site crashed. Reloaded the backup and now the site shows 2.2.2 at bottom of page but in the packages it lists 2.3 as installed. I am pretty sure what is really installed is 2.2.2 but we really would like to update it the most current version. How should I proceed?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: flamechica on September 07, 2010, 03:29:53 AM
Quote from: AngelinaBelle on August 30, 2010, 12:16:04 PM
Quote from: flamechica on August 30, 2010, 02:44:19 AM
Yes, this is my default theme and it is what the installer put in there.
Yes the installer failed. Partially. And it should have given you a "test failed" message.
In the file you just attached, I can see, in template_menu, that you have

$current_action = 'home';

But you need to have

   global $modSettings;
   $current_action = $modSettings['sp_portal_mode'] == 3 && empty($context['standalone']) && empty($context['disable_sp']) ? 'forum' : 'home';


When I posted before, I thought you had other problems as well, but it looks like this is the only missed in index.template.php.
This missed edit should account for both the missing $modSettings and the missing forum button.

Ah ha!!! Thank you SOOOOOOOOOOOOOO Much for your patience! I see what I was doing wrong! Originally, I never got an error message from the installer, which is weird. But anyways, when I went in and tried to edit the code by hand, I tried to put that code in a completely different part of the file that had $current_action = 'home'; but once you specified the "template_menu" I figured it out. Again, thank you very much!
Title: Re: SimplePortal - 2.3.2 Released!
Post by: AZMazda3 on September 09, 2010, 02:19:20 PM
Quote from: AZMazda3 on September 02, 2010, 09:19:39 PM
Just attempted to update SimplePortal 2.2.2 to 2.3 and the site crashed. Reloaded the backup and now the site shows 2.2.2 at bottom of page but in the packages it lists 2.3 as installed. I am pretty sure what is really installed is 2.2.2 but we really would like to update it the most current version. How should I proceed?

I posted this on 09/02 , anyone have an idea how to clean this up?

Edit: Sorry, we smashed it with a hammer and rebuilt it. :) problem solved
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on September 09, 2010, 04:59:09 PM
I am not sure what you mean by "the site crashed", so I cannot understand what kind of problems you ran into, or what caused them.

If you reloaded the database from backup, then you have the database you had before you attempted the SimplePortal update, except for any tables that may have been added since that backup -- they wouldn't have been removed.

But that did not do anything about the files. If you got a partial or complete install before the problems started, you have have a partial or complete installation of SimplePortal 2.3.

I am not sure where information about package versions is stored.  I thought that would be in the database, but apparantly not.

Not knowing what state your files in, I would suggest that you compare some of the affected files to the manual install instructions to see if they are at SimplePortal 2.3 or 2.2.2.  This is a tedious but straightforward process.  You can handle it.

If things seem to be in a really big mess, you might try an uninstall using the package manager then, when it fails, manually remove all traces of SimplePortal from all the affected files.  You will have to be thourough, and use the manual install instructions for both versions of SimplePortal to assure yourself you have removed everything.

Then, when you install SimplePortal 2.3.2, you are starting from scratch, SimplePortal-wise.

Good Luck!
Title: rss feed block keeps giving invalid charachters at line 27/49 and so on
Post by: ceewee on September 22, 2010, 05:26:27 PM
rss feed block keeps giving invalid charachters at line 27/49 and so on
Is on clean 2.0rc3
Title: Re: SimplePortal - 2.3.2 Released!
Post by: frantic on September 24, 2010, 04:18:40 PM
I think they already have a bug report for that on their site ceewee, although i wish the rss feed blocks had a 1 hour wait when they refresh or something.  If you have too many of those blocks, then it really bogs down the loading time of your site.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Afro on September 27, 2010, 05:36:21 AM
Do we have a code to call the registration form with a Custom block ?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on September 27, 2010, 10:38:49 AM
@afro -- This could be done, but would take a bit of work.
But I see you have also asked at SimplePortal.net...

Title: Re: SimplePortal - 2.3.2 Released!
Post by: Afro on September 27, 2010, 11:22:16 AM
Quote from: AngelinaBelle on September 27, 2010, 10:38:49 AM
@afro -- This could be done, but would take a bit of work.
But I see you have also asked at SimplePortal.net...





yep, i believe it will boost registration, if we have a complete registration form on the homepage.
please do get the code if you can.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on September 27, 2010, 02:42:49 PM
I see your question has been answered at simpleportal.net, and you now have it working at your site.
If you have any more questions, please ask at simpleportal.net.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: John1 on September 28, 2010, 06:06:28 AM
simpleportal.net seems to be offline.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Nathaniel on September 28, 2010, 09:36:07 AM
Quote from: John1 on September 28, 2010, 06:06:28 AM
simpleportal.net seems to be offline.

We're aware and will bring it back online as soon as possible.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: divecall on September 28, 2010, 04:51:50 PM
Is there a way to show inside the recent Post-Block the newest posts with the avatar from the author ? Maybe a custom PHP-block with recent posts and an avatar ?

Thank you

(SMF 2 RC2 SP 2.3.1)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Eliana Tamerin on September 28, 2010, 09:23:55 PM
Quote from: Nathaniel on September 28, 2010, 09:36:07 AM
Quote from: John1 on September 28, 2010, 06:06:28 AM
simpleportal.net seems to be offline.

We're aware and will bring it back online as soon as possible.

Just to explain, SP.net went down because I wasn't watching closely and we went over our bandwidth allotment. It was set at 20gb, so that's a very positive milestone for us!

I have upped the bandwidth limit, now I'm just waiting for the server to realize that it can operate again and accept visitors. Hopefully we'll be back up in a very short period of time. Thanks for your patience, guys!
Title: Re: SimplePortal - 2.3.2 Released!
Post by: [SiNaN] on September 28, 2010, 11:12:51 PM
Thank you, Eliana! :)
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on September 29, 2010, 03:52:39 PM
@divecall -- with SimplePortal back, I'm sure you've noticed you've got an answer over at simpleportal.net
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Nola5712 on October 02, 2010, 05:51:11 PM
i'm running smf 1.1.11 and simpleportal 2.3.2.  does anyone know how i can make the blocks transparent so the background image of the whole site shows through?  i have found the images i need to make transparent with the help of a friend, so i guess my real question would be how do i make an image transparent?  or add transparency to an image? 

i know this is more of a photo editing question, but every place i've found via google just tells me how to make an image background transparent and not the image itself. 

if anyone has any insight to offer on this, or perhaps an easier way to make the blocks transparent pleaaaaaaaaaaaaaaase tell me as i have been wrestling with this for too long now.  any help is appreciated, thanks, david.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on October 05, 2010, 01:14:52 PM
There was some discussion of various strategies not too long ago: http://simpleportal.net/index.php?topic=6212.0
Also: http://www.w3schools.com/Css/css_image_transparency.asp

If you wish to use semi-transparent images instead of using CSS for transparency, you will need to investigate your image-editing software, and save the results as PNG.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Nola5712 on October 06, 2010, 10:00:35 PM
thanks for your reply angelina, unfortunately i've already posted on those sites =/  still can't figure this out...
Title: Re: SimplePortal - 2.3.1 Released!
Post by: bernicky on October 09, 2010, 03:52:04 PM
Quote from: Diagram on February 26, 2010, 12:34:11 AM
Weird.
After using SimplePortal Shoutbox my forum ended up in a 500 internal server error.

Any help?

I am having the exact same problem. If I create a Shoutbox block and leave it empty is displays clearly on the SimplePortal front page telling me the Shoutbox was part of my imagination. When I create a Shoutbox and add it to my portal page I get an Internal Server Error message.

Did you find a solution to this?

My site is at club-phoenix.org - I am using SMF default template (I altered the colours in Photoshop) with SMF Gallery Lite 3.0.1, SimplePortal 2.3.2 and Ultimate Avatar Pack 1.1 active and Bakers Dozen Pages 1.2 installed but not applied.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ACAMS on October 21, 2010, 03:52:23 PM
I want to add BB code to the chat box, so I found shoutcode.php and edited it like this

WAS
[b]|^|<b>|^|[/b]|^|</b>|^|
[i]|^|<i>|^|[/i]|^|</i>|^|
[u]|^|<u>|^|[/u]|^|</u>|^|
[url]|^|[<a href='|^|[/url]|^|' target='_blank'>www</a>]|^|
[mail]|^|[<a href=\'mailto:|^|[/mail]|^|'>@</a>]|^|




I added
[b]|^|<b>|^|[/b]|^|</b>|^|
[i]|^|<i>|^|[/i]|^|</i>|^|
[u]|^|<u>|^|[/u]|^|</u>|^|
[url]|^|[<a href='|^|[/url]|^|' target='_blank'>www</a>]|^|
[mail]|^|[<a href=\'mailto:|^|[/mail]|^|'>@</a>]|^|
[spoiler]|^|<spoiler>|^|[/spoiler]|^|</spoiler>|^|
[move]|^|<marquee>|^|[/move]|^|</marquee>|^|
[moveright]|^|<marquee>|^|[/moveright]|^|</marquee>|^|



I even tried
[b]|^|<b>|^|[/b]|^|</b>|^|
[i]|^|<i>|^|[/i]|^|</i>|^|
[u]|^|<u>|^|[/u]|^|</u>|^|
[url]|^|[<a href='|^|[/url]|^|' target='_blank'>www</a>]|^|
[mail]|^|[<a href=\'mailto:|^|[/mail]|^|'>@</a>]|^|
[spoiler]|^|<spoiler>|^|[/spoiler]|^|</spoiler>|^|
[move]|^|<move>|^|[/move]|^|</move>|^|
[moveright]|^|<moveright>|^|[/moveright]|^|</moveright>|^|



Anybody got any ideas what I can do to get spoiler tags and move code to work?

THANKS for any help
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheMortician4 on October 22, 2010, 05:53:33 PM
I removed the Simple Portal 2.2.2 and installed the 2.3.2. When I go to the configuration I received this error as captured by my browser: (attached and in word 2003 for compatibility purposes)

Template Parse Error!
There was a problem loading the /Themes/default/PortalAdmin.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'

I have no coding experience so I am lost as to how to fix this. Please help with this, I no longer have the 2.2.2 version to reload and I can't confirure the protal now and it is holding up the site which is already online. I would hate to have to restore the backup since there has been activity on the site saince the installation. Thanks for your prompt and extensive support. BTW: I love Simple Protal, have been running it since I first started the site in 2008. It is slim, efficient, and a breeze to work with. Keep up the great work!!!
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheMortician4 on October 23, 2010, 07:47:59 PM
Quote from: emjan101 on October 22, 2010, 05:53:33 PM
I removed the Simple Portal 2.2.2 and installed the 2.3.2. When I go to the configuration I received this error as captured by my browser: (attached and in word 2003 for compatibility purposes)

Template Parse Error!
There was a problem loading the /Themes/default/PortalAdmin.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'

I have no coding experience so I am lost as to how to fix this. Please help with this, I no longer have the 2.2.2 version to reload and I can't confirure the protal now and it is holding up the site which is already online. I would hate to have to restore the backup since there has been activity on the site saince the installation. Thanks for your prompt and extensive support. BTW: I love Simple Protal, have been running it since I first started the site in 2008. It is slim, efficient, and a breeze to work with. Keep up the great work!!!

I exported and imported my database into a new one, uninstalled the 1.19-1.11 upgrade, and the simple portal 2.3.2, and now it is working.


Anyone have any idea why?
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Nimnix on October 24, 2010, 01:50:11 PM
Hello!

I'm having problem with my SimplePortal shoutbox.

When someone shouts, it doesn't show up for them, they have to reload the page (the refresh rate is set to 5 but it doesn't even come up after 5 seconds), it feels like it's lagging some how.

I have caching enabled too.

Anyone know what to do? I'd also like to have the shoutbox updating in realtime somehow since many others do that without lag problems (like Ajax Chat, but that one doesn't support member group colors).
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ACAMS on October 24, 2010, 04:22:22 PM
This, like most of SMF is about as close to nosupported as it can get!

I don't know about your chatbox, but my refresh rate is set to 30 sec and works just fine at 30
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheMortician4 on October 25, 2010, 04:51:10 AM
I have noticed that since the upgrade, my entire site takes longer to load the pages. Used to come up instantly, now it takes 3 - 5 seconds for the browser to receive the data.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on October 25, 2010, 08:37:20 AM
emjan101,
I would suggest uninstalling simpleportal, doing the SMF upgrade (the upgrade to 1.1.11 includes several security bugfixes), and re-installing Simpleportal 2.3.2 (the most current version of SimplePortal).

In general, this should work.

-------

When you do have a template parse error, SMF highlights the exact line in the file where the error occurs.
The message "syntax error, unexpected T_STRING, expecting ',' or ';'" should be followed with "in .../Themes/default/PortalAdmin.template.php on line " followed by a line number and a partial file listing.

This can be very helpful in figuring out the problem.

In general, this problem should not happen with PortalAdmin.template.php unless the file has been edited or damaged in some way.  I am not aware of any mods that modify this file.

Please try again, perhaps in a test installatin, and report your experience.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on October 25, 2010, 08:43:45 AM
@ACAMS
I do not believe the file shoutcode.php is a part of SimplePortal. Perhaps it is left over from some other shoutbox mod.

The SimplePortal developers intentionally limited shoutbox BBC code for performance reasons -- the server has to re-parse shoutbox BBC every time any user's shoutbox refreshes. But maybe we can get some information from the devs on what you can do to make your shoutbox more splashy, if you don't mind the extra drag on your server.  You might try the question at SimplePortal.net.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: ACAMS on October 25, 2010, 03:19:00 PM
Yes, it has been so long ago that I installed it that I forgot I used ShoutPro 1.5.2 instead of the chatbox that comes with SimplePortal.    :-[

OH WELL, I probably would have to be supersmart to make special tags work, so I will just leave it like it is.

THANKS for the reply

Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheMortician4 on October 25, 2010, 10:19:54 PM
I am using the Ajax chat and Shoutbox. they are working fine, but the system seems to taker sooooo long to load now.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on October 26, 2010, 09:42:53 AM
emjan -- running two AJAX chat/shout boxes might be causing more load on your server than you would like.  See what happens when you turn one or both of them off temporarily.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: mailtimi on October 26, 2010, 10:01:27 PM
i get error 500 when ever i try to install simple portal. I use 1.1.11. Pls what do i do.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on October 27, 2010, 07:10:16 AM
Error 500 means some unexpected problem from the server (http://www.google.com/search?q=html+error+500)
You may be able to learn more about this by checking the server error log (not the SMF error log).
If you need help checking your server error log, please check with your web host.

Sometimes, your host does allow SMF's recommended file permissions (777), and this causes that error.  You can find out which file permissions your host allows for php files.

Here is a list of common causes of 500 server errors: http://www.simplemachines.org/community/index.php?topic=340411.msg2293433#msg2293433
More on alternate file/directory permissions here: http://simpleportal.net/index.php?action=docs;area=solving_install_problems


Good luck!

Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheMortician4 on October 27, 2010, 12:19:38 PM
The Ajax shout-box is running, and the simple portal shout-box shows no shout boxes. So I assume that means that it is off....


I am wondering if my browser is the cause, I tried IE and it seems a little slow as well, so it may not be the board itself, but my end....

My wife uses face-book a lot and I know most of my friends and clients who run the face-book games, have a tendency to have performance issues after some time.

I will look at this from another system and see if that makes a difference, a process of elimination if you will....

Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on October 29, 2010, 08:28:20 AM
emjan,

I recommend that you stick to only one shout box.

If you decide to use the SimplePortal shoutbox, you need to first create a shoutbox, then to create a block using that shout box.

If you decide to use another shoutbox (http://custom.simplemachines.org/mods/index.php?mod=1319 ?), then do not enable a SimplePortal chat.

AJAX things, because they refresh so often, can introduce a lot of load on your server if a lot of people are running them.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: TheMortician4 on October 29, 2010, 10:38:42 AM
I only run the one shout-box Ajax, this is sufficient and I happen to like the Ajax version. 
Title: Forum Button
Post by: ElTaino on October 29, 2010, 12:22:21 PM
Where is the forum button?

Hello folks, I just installed the Simple Portal Mod but the Forum button is missing from the top menu. I did copy and pasted the code from the help menu. It does create a repeated HELP BUTTON/LINK but if you hover or click on it, it will take you to the forums. Visit www.modelismoactual.com to see what I mean. Along I'm providing with the index file. Any help will be much appreciated.

Thanks in advance.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on November 01, 2010, 01:20:09 PM
emjan101: SimplePortal's list of shout boxes will only show you SimplePortal shoutboxes.

elTaino: when I look, as guest, I see "Home" and "Forum" buttons. So it looks like you have fixed your problem.
For more information on creating a Forum button for SimplePortal, please the tutorial at:
http://simpleportal.net/index.php?topic=148.0

Title: Re: SimplePortal - 2.3.2 Released!
Post by: ElTaino on November 01, 2010, 02:27:20 PM
Yes Angelina, I did find the problem. Also added the Gallery button as well. Thanks a lot for taking the time.
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Ryan2320 on November 02, 2010, 11:51:17 PM
I am testing out 2.0RC4 with my site's database and files. I am running some tests on a test server and I am getting this error on the test server I upgraded from 2.0RC3 by using a large update with no issues or problems

Now first let me ask does Simple Portal support 2.0RC4? (I know it was released yesterday but in theory should it work in 2.0RC4?)

Database Error
Duplicate key name 'state'
File: C:\xampp\htdocs\test\Packages\temp\install2.php
Line: 521


All the tests pass and when I hit install now I get this database error..and then fails to install, I did have Simple Portal working in 2.0RC3..

Thanks Ryan
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Baloch on November 03, 2010, 01:15:19 AM
I m getting following error to install it on SMF2.0 RC4

Duplicate key name 'state'
File: /home/baaskcom/public_html/diwwan/Packages/temp/SimplePortal_2.3.2/install2.php
Line: 521


Please advice what to do?

Even I have removed these lines from the package
<!-- Install scripts -->
      <database>install2.php</database>
Title: Re: SimplePortal - 2.3.2 Released!
Post by: Angelina Belle on November 03, 2010, 12:18:42 PM
Other users are seeing this problem as well.

Users have posted workarounds for this problem as well as a forum button problem at http://simpleportal.net/index.php?topic=6834.msg38851#msg38851

Title: Re: SimplePortal - 2.3.2 Released!
Post by: Ryan2320 on November 03, 2010, 02:18:08 PM
Thanks for the link,
I'll look at workaround
Ryan ;)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: SimplePortal Team on November 05, 2010, 07:29:53 AM
For all those who haven't yet seen the news. ;)

SimplePortal 2.3.3 has been released, see the link below for the full details.

http://simpleportal.net/index.php?topic=6865.0
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jade Elizabeth on November 05, 2010, 07:37:11 AM
WOOHOO!! First download!! I just realised XD.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: arty5 on November 05, 2010, 07:41:17 AM
Okay cool this is working on 2.0 rc4 nice work  :D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Ron Jeremy on November 05, 2010, 12:33:14 PM
In the block "Latest Member" description says "Displays the latest member and their avatar." But no avatar displayed, only dots. Can you fix that and replace dots with avatars?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheMortician4 on November 05, 2010, 01:50:21 PM
Quote from: Ron Jeremy on November 05, 2010, 12:33:14 PM
In the block "Latest Member" description says "Displays the latest member and their avatar." But no avatar displayed, only dots. Can you fix that and replace dots with avatars?

Go to the downloads and mods section and get some avatar packs. That is where you would start. It appears that you may not have any avatars in the system yet?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Ron Jeremy on November 05, 2010, 02:52:41 PM
Of course i have avatars in the system. I wass check file "PortalBlocks.php" and there is code
echo '
<li>', sp_embed_image('dot'), ' ', $member['link'], ' - ', $member['date'], '</li>';

instead of "('dot')" in the code should be stand members avatar.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: !RFAN on November 06, 2010, 10:13:31 AM
why cant gust shout in shoutbox when i have permitted them... i need help :(
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheMortician4 on November 06, 2010, 04:51:22 PM
Quote from: Ron Jeremy on November 05, 2010, 02:52:41 PM
Of course i have avatars in the system. I wass check file "PortalBlocks.php" and there is code
echo '
<li>', sp_embed_image('dot'), ' ', $member['link'], ' - ', $member['date'], '</li>';

instead of "('dot')" in the code should be stand members avatar.
try adding this and see what happens, I use this one on my site and they are working great. BTW Ron, what version of SMF and Portal are you using
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheMortician4 on November 06, 2010, 05:11:53 PM
Ron,

I don't know if this will help you, but my Portal.php shows this:

   foreach ($members as $member)

      echo '

                           <li>', sp_embed_image('dot'), ' ', $member['link'], ' - ', $member['date'], '</li>';

The line spacing is critical with some languages as well. I am learning this myself, and I know that here you will get it resolved.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: !RFAN on November 07, 2010, 12:22:31 AM
Quote from: !RFAN on November 06, 2010, 10:13:31 AM
why guests cant shout in shoutbox when i have permitted them... i need help :(

will anybody reply to this ..please :(
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Obcy on November 07, 2010, 02:22:52 AM
How to put a shoutbox before the info center ?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Nathaniel on November 07, 2010, 06:57:18 AM
Quote from: Ron Jeremy on November 05, 2010, 12:33:14 PM
In the block "Latest Member" description says "Displays the latest member and their avatar." But no avatar displayed, only dots. Can you fix that and replace dots with avatars?

Noted, either the block or the description need to be updated. I'll post a bug report over at SP.net as soon as it comes back online.

Quote from: !RFAN on November 06, 2010, 10:13:31 AM
why cant gust shout in shoutbox when i have permitted them... i need help :(

That is by design, the SimplePortal shoutbox does not allow guests to shout, only to view the shoutbox.

Quote from: Obcy on November 07, 2010, 02:22:52 AM
How to put a shoutbox before the info center ?

The info center is a part of the main BoardIndex template, you can easily add a shoutbox block after the info center, although you will need to edit the "/Themes/{themename}/BoardIndex.template.php" file if you want to put it before the info center.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: madman71 on November 07, 2010, 02:50:56 PM
http://www.simpleportal.net/ is down.

Anyone know when it's coming back?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: sheryltoo on November 07, 2010, 05:03:43 PM
I just upgraded to RC3 and downloaded simple portal 2.3.2 and it seems to be working except the icons are missing for various tasks under the administration panel.
You can click on the various tabs such as Configuration, blocks, articles, and it takes you to the the right page but the icons are showing up as x's.  and no pictures.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Nathaniel on November 07, 2010, 05:46:56 PM
Quote from: madman71 on November 07, 2010, 02:50:56 PM
http://www.simpleportal.net/ is down.

Anyone know when it's coming back?

Its back.

Quote from: sheryltoo on November 07, 2010, 05:03:43 PM
I just upgraded to RC3 and downloaded simple portal 2.3.2 and it seems to be working except the icons are missing for various tasks under the administration panel.
You can click on the various tabs such as Configuration, blocks, articles, and it takes you to the the right page but the icons are showing up as x's.  and no pictures.

Try upgrading to RC4 and SP 2.3.3, those are older version of SMF and SimplePortal, you should always run the most recent versions possible. ;)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: sheryltoo on November 07, 2010, 07:15:21 PM
Som of the mods I use don't work with RC4 which is why I upgraded to RC3. Of course I'm finding out that some of the mods don't really work with RC3 either so I probably shouldn't have upgraded/
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheMortician4 on November 07, 2010, 07:18:27 PM
Quote from: sheryltoo on November 07, 2010, 07:15:21 PM
Som of the mods I use don't work with RC4 which is why I upgraded to RC3. Of course I'm finding out that some of the mods don't really work with RC3 either so I probably shouldn't have upgraded/

Word has it that the R2 should be released soon, and most likely you'll see a lot of the mods upgraded for that release.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: sheryltoo on November 08, 2010, 09:36:11 AM
I took your advice and updated to RC4 but I still show red x's when I hover over Simple Portal in the administration panel.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Obcy on November 08, 2010, 12:12:23 PM
Quote from: Nathaniel on November 07, 2010, 06:57:18 AM

Quote from: Obcy on November 07, 2010, 02:22:52 AM
How to put a shoutbox before the info center ?

The info center is a part of the main BoardIndex template, you can easily add a shoutbox block after the info center, although you will need to edit the "/Themes/{themename}/BoardIndex.template.php" file if you want to put it before the info center.

I understand where to insert.
But where is this code?

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on November 09, 2010, 01:05:02 PM
Since you are a SimplePortal users, I think the easiest way to do this is to create a shoutbox and a  shoutbox block for that shoutbox.

Then, use some of the techniques described in "blocks in blocks" to put the contents of your block in the desired template file.

http://simpleportal.net/index.php?topic=5332.msg32204#msg32204
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Obcy on November 09, 2010, 03:15:57 PM
Thank you very much for your help  :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 14, 2010, 05:15:02 AM
i have 3 issues with this mod if someone can help please
i posted on sp's website but no-one seems to answer
i'm running 2.0 rc4 and sp 2.3.3
the 1st issue is
sp isn't showing for normal users or guests
i have hunted through the admin panel of smf and checked the portal settings
made sure that either forum, all pages or everywhere was ticked
nothing it still won't show

2nd issue
who's online
it doesn't show female icons
ie everyone is male (a little blue make icon)
the tech guys are brown but everyone else is a blue icon
the women aren't happy (not good)

3rd issue
the staff list box
the admin is at the top (good)
but then i have dif staff groups ie senior mod and normal mods
but i want the senior mods at the top
but at the minute they are all mixed up
its not even alphabetical order, they are just on there

hopefully someone can help please
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Shades. on November 14, 2010, 11:38:57 AM
Another issue I found when adding blocks, the left curve image does not appear in the box for whatever theme you are using accept for the default theme. I believe it's the main_block.png in index.css but simple portal does not point to the correct one. Here is the support thread I started on this in themes: http://www.simplemachines.org/community/index.php?topic=409036.0
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Shades. on November 14, 2010, 11:51:21 AM
Quote from: BoZilla on November 14, 2010, 11:38:57 AM
Another issue I found when adding blocks, the left curve image does not appear in the box for whatever theme you are using accept for the default theme. I believe it's the main_block.png in index.css but simple portal does not point to the correct one. Here is the support thread I started on this in themes: http://www.simplemachines.org/community/index.php?topic=409036.0
Answer to self...lol: To fix this, just add portal.css and portal_rtl.css to your themes css folder and portal.js to your themes script folder!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on November 17, 2010, 10:59:12 AM
Quote from: smitch6 on November 14, 2010, 05:15:02 AM
i posted on sp's website but no-one seems to answer
We are spread a little thin.  I think we have adressed all of your questions over there -- though we may not have solved them...
Title: Re: SimplePortal - 2.3.3 Released!
Post by: fmofmpls on November 18, 2010, 04:44:22 PM
Quote from: BoZilla on November 14, 2010, 11:51:21 AM
Quote from: BoZilla on November 14, 2010, 11:38:57 AM
Another issue I found when adding blocks, the left curve image does not appear in the box for whatever theme you are using accept for the default theme. I believe it's the main_block.png in index.css but simple portal does not point to the correct one. Here is the support thread I started on this in themes: http://www.simplemachines.org/community/index.php?topic=409036.0
Answer to self...lol: To fix this, just add portal.css and portal_rtl.css to your themes css folder and portal.js to your themes script folder!

Thanks for sharing this info! This was exactly what I was looking for. I had the exact same problem upon using a dark curve variant theme. Your fix has cured the problem. Thank you again.

This problem (or bug) should be addressed by Simple Portal in a future update.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Shades. on November 18, 2010, 10:23:59 PM
You're welcome...glad I could help! 8)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on November 20, 2010, 06:07:35 PM
I just installed 2.2.3 on 1.1.2 then i installed my language files and then i copied and pasted my language files to /customtheme/languages/ but it still shows english on the portal main page. it says like USER INFO, TOP POSTER etc...

How can i fully change it to my language?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: RML on November 24, 2010, 10:27:39 AM
Edit the blocks and change the name.  :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: MyOutdoorsIowa on November 24, 2010, 01:19:19 PM
Greetings,

I'm running SMF RC4 and Simple Portal 2.33 using the Silent Wave theme.   
Apache version 2.0.63
PHP version 5.3.2
MySQL version 5.0.91-community

Site: http://myoutdoorsiowa.com/

No errors reported during install via Package Manager.
Actually I have Simple Portal disabled at the moment due to my issue. The problem is that I'm missing "Display Options" in admin. I'm assuming a file or files did not get to where they needed to be during install?
I only assume this because portal.css, portal_rtl.css and portal.js were missing in my theme/css and theme/scripts also (found that fix in these forums  ;D ) I did have the Silent Wave theme ticked during install.

I've installed this same set up on a different server and did not have this issue.

Can someone point me in the right direction?

Thanks in advance.
Darrin
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on November 24, 2010, 02:38:37 PM
Quote from: PLAYBOY on November 20, 2010, 06:07:35 PM
I just installed 2.2.3 on 1.1.2 then i installed my language files and then i copied and pasted my language files to /customtheme/languages/ but it still shows english on the portal main page. it says like USER INFO, TOP POSTER etc...

How can i fully change it to my language?

Solved. Installed the current language package. Not the old version :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on November 24, 2010, 11:30:23 PM
The copyright is off the frame on my theme. Where is the copyright code so i can put it in the frame?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on November 25, 2010, 03:18:59 PM
How can i change the order of management (moderation) team?
I want to customize the order on list in that block.

1.1.12
Title: Re: SimplePortal - 2.3.3 Released!
Post by: big red on November 26, 2010, 09:25:40 PM
Quote from: BoZilla on November 14, 2010, 11:51:21 AM
Quote from: BoZilla on November 14, 2010, 11:38:57 AM
Another issue I found when adding blocks, the left curve image does not appear in the box for whatever theme you are using accept for the default theme. I believe it's the main_block.png in index.css but simple portal does not point to the correct one. Here is the support thread I started on this in themes: http://www.simplemachines.org/community/index.php?topic=409036.0
Answer to self...lol: To fix this, just add portal.css and portal_rtl.css to your themes css folder and portal.js to your themes script folder!

   Hello

  Could someone help me with this theme here - http://custom.simplemachines.org/themes/index.php?lemma=2286

    The above solution worked on other themes but not this one  :( I've even repeated the steps but without success. The forum is ok but all the SP block headers are screwed up.

      Thanks!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Shades. on November 26, 2010, 10:02:15 PM
After repeating the steps did you clear your forum & browser cache?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: big red on November 26, 2010, 11:05:02 PM
Quote from: BoZilla on November 26, 2010, 10:02:15 PM
After repeating the steps did you clear your forum & browser cache?

  Hi There

  Yes, it made no difference. Tried multiple browsers as well (chrome, firefox). Could you load up that theme and see if you get the same thing?? Would be appreciated!! BTW, using latest versions of SMF & SP.

   Thanks Again

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Shades. on November 26, 2010, 11:19:17 PM
There is something missing in the theme. You should ask the theme author to take a look at it and see if they can help! ;)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: big red on November 26, 2010, 11:46:23 PM
Quote from: BoZilla on November 26, 2010, 11:19:17 PM
There is something missing in the theme. You should ask the theme author to take a look at it and see if they can help! ;)

  Ok, i've posted in the theme authors forum. Thanks for your time! Will update here later.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: big red on November 27, 2010, 12:00:25 PM
Quote from: big red on November 26, 2010, 11:46:23 PM
Quote from: BoZilla on November 26, 2010, 11:19:17 PM
There is something missing in the theme. You should ask the theme author to take a look at it and see if they can help! ;)

  Ok, i've posted in the theme authors forum. Thanks for your time! Will update here later.

   The theme author was able to provide a fix for my issue here - http://bryandeakin.com/talk/index.php?topic=287.0
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on November 27, 2010, 11:14:21 PM
Quote from: PLAYBOY on November 24, 2010, 11:30:23 PM
The copyright is off the frame on my theme. Where is the copyright code so i can put it in the frame?

Can anybody please help me with this?

I tried EVERYTHING. I even oppened every file came with the mod.zip in code editor and searched for the copyright line to see if i can change its place. My forum looks pretty ugly because of this copyright being OFF THE FRAME!

1.1.12
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on November 28, 2010, 03:19:59 AM
Thank you, Thank you, THANK YOU! Done.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 28, 2010, 05:10:55 AM
Quote from: PLAYBOY on November 25, 2010, 03:18:59 PM
How can i change the order of management (moderation) team?
I want to customize the order on list in that block.

1.1.12

I too want to know how to do this????
i'm using 2.3.3
i have posted on the sp website but with no joy and on here with also no joy

there must be a way maybe someone has done it but just hasn't posted their success ?????

come on all you budding coders out there help us out please   :D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on November 28, 2010, 10:33:07 AM
QuoteHow can i change the order of management (moderation) team?
I want to customize the order on list in that block.
Perhaps an example of what you are looking for ... today I thought it sorted it by admin then global mods and then moderators?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 28, 2010, 11:23:19 AM
as you can see by my staff list on the right
it has senior leader (admin) at the top
then senior mods and nor mods in dif orders and tech guys in there as well

the mod that someone posted as a solution helps in the instance where it lists ppl in order of joining
not rank

what i want and i think what others want is to have them in order of
admin
global mod
mod
tech

etc etc


:)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on November 28, 2010, 12:48:20 PM
Hummm I'm guessing all those folks have moderator level status ... the code sorts admins / global moderators / moderators sub sorted by member_id in each group ....

As something quick,  you can try the following to see if it works .....

find:
Quote$staff_list[$row['type'] . '-' . $row['id_member']] = array(

replace with
Quote$staff_list[$row['type'] . '-' . $row['group_name'] . '-' . $row['real_name']] = array(

this shoudl then sort by admin / global mod / mod and then in each of those groups sort by group name and then by member name in those groups ....

Edit ... that's in PortalBlocks.php around line 2276
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 28, 2010, 05:08:45 PM
i don't have that line :(

i've attached my portalblacks.php for you to have a quick look through if you don't mind :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Galaxy Computers on November 28, 2010, 05:21:22 PM
When I try to install I get this error:


Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


and one in red say "Test failed" and its "Execute Modfication ./index.php"
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on November 28, 2010, 05:48:48 PM
Quote from: smitch6 on November 28, 2010, 05:08:45 PM
i don't have that line :(

i've attached my portalblacks.php for you to have a quick look through if you don't mind :)
Strange .... had you already modified that code ?  Anyway in your file its line 2311 which has
Quote from: smitch6 on November 28, 2010, 05:08:45 PM
i don't have that line :(

i've attached my portalblacks.php for you to have a quick look through if you don't mind :)
Your file is version 2.3.2, the suggestion I posted was for 2.3.3 .... you should update but if your just want to try some things ....

change line 2311 which is currently (for v 2.3.2)
$staff_list[$row['id_member']] = array(

to the v2.3.3 default of
$staff_list[$row['type'] . '-' . $row['id_member']] = array(

or my other version of
$staff_list[$row['type'] . '-' . $row['group_name'] . '-' . $row['real_name']] = array(

either of which should give you what you want ....
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on November 28, 2010, 05:52:35 PM
Quote from: MorrisGiftShop on November 28, 2010, 05:21:22 PM
When I try to install I get this error:


Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


and one in red say "Test failed" and its "Execute Modfication ./index.php"
Says what it means ... another mod you installed changed index.php in the root of your forum so this mod can't find where to "hook" itself in to the code .... you can try uninstalling mods (generally in the reverse order you installed them to avoid problems), or manually update index.php.  If you want to attach index.php someone could take a look and tell you what you need to do.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Galaxy Computers on November 28, 2010, 06:10:05 PM
How do I send a attactment on the forum?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Galaxy Computers on November 28, 2010, 06:18:57 PM
Nevermind I have found out how to send an attachment. Here is my index.php file.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on November 28, 2010, 06:45:38 PM
Looks like its the twitter mod ... it did not leave a comment indented as it should have and now SP can't find the line since its now missing the tab, ie its different.

Just open your index.php file in an editor and change

// Is the forum in maintenance mode? (doesn't apply to administrators.)

and add a tab (not spaces, a tab) so it looks like this

// Is the forum in maintenance mode? (doesn't apply to administrators.)

that should allow SP to install ... but note that it will make the twitter mod *fail* when you go to uninstall it ....

You could also uninstall the twitter mod (assuming it wants to uninstall cleanly) then install SP then install the twitter mod and you should be fine (just remmember that then to uninstall SP you will need to uninstall twitter then SP and then add twitter back in)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Galaxy Computers on November 28, 2010, 07:09:05 PM
I have got it going now. I have another question. When I add pages how can make a menu tab to link to that page?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on November 28, 2010, 07:39:53 PM
Quote from: MorrisGiftShop on November 28, 2010, 07:09:05 PM
I have got it going now. I have another question. When I add pages how can make a menu tab to link to that page?
If you want a new tab you will need to get another mod to create menus and then point that new tab (or menu under the tab) back to the SP page ... ie /index.php?page=page1234 or whatever your page is ... some menu mods that do this are this (http://custom.simplemachines.org/mods/index.php?mod=2657) and here (http://arantormods.com/index.php?action=media;sa=item;in=34)

or if you want to do it yourself follow this tutotrial (http://www.simplemachines.org/community/index.php?topic=261880.0)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 29, 2010, 01:34:10 AM
Hi spuds
thanks for the code the 2nd code you gave worked sort of
it has sorted everyone out but in the wrong order
it has put them in
admin
tech
mod
global mod

is there a way it can be
admin
global mod
mod
tech

please ty :)

strange you say its 2.3.2 because on the forum at the bottom it says 2.3.3
and it was all fully updated by my tech guy when they released RC4 for the latest version
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on November 29, 2010, 09:36:17 AM
Quotestrange you say its 2.3.2 because on the forum at the bottom it says 2.3.3
I was reacting to the header in that file plus the changed line but you are correct it is 2.3.3.  Looks like most of the file headers were not updated to reflect things as 2.3.2, something the SP team missed.

Quoteit has sorted everyone out but in the wrong order
I see what is occurring .... have to think about it .... the tech team has a higher authority level then the moderators so they ended up under the admins ... then it sorted by the group names with are moderator and senior moderator (alphabetically) ...  Let me look at it and give you some options.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 29, 2010, 09:55:36 AM
Thats really nice of i appreciate your time and effort helping with this
and it would be great if you could come up with a solution because i know quite a few people alongside myself need a solution to this issue

i look forward in your success :)

thanks again
Title: Re: SimplePortal - 2.3.3 Released!
Post by: jekwumoore on November 29, 2010, 10:02:34 AM
I just installed the mod on my forum, how do i remove the statement below from my frontpage

Quote

    Welcome to SimplePortal!

    SimplePortal is one of several portal mods for Simple Machines Forum (SMF). Although always developing, SimplePortal is produced with the user in mind first. User feedback is the number one method of growth for SimplePortal, and our users are always finding ways for SimplePortal to grow. SimplePortal stays competative with other portal software by adding numerous user-requested features such as articles, block types and the ability to completely customize the portal page.

    All this and SimplePortal has remained Simple! SimplePortal is built for simplicity and ease of use; ensuring the average forum administrator can install SimplePortal, configure a few settings, and show off the brand new portal to the users in minutes. Confusing menus, undesired pre-loaded blocks and settings that cannot be found are all avoided as much as possible. Because when it comes down to it, SimplePortal is YOUR portal, and should reflect your taste as much as possible.

    Ultimate Simplicity
    The simplest portal you can ever think of... You only need a few clicks to install it through Package Manager. A few more to create your own blocks and articles. Your portal is ready to go within a couple of minutes, and simple to customise to reflect YOU.

    Install Friendly
    With the ingenius design of install and update packages, SimplePortal is incredibly install and update friendly. You will never need any manual changes even on a heavily modified forum.

    Incredible Theme Support
    The simple but powerful structure of SimplePortal brings you wide-range theme support too. You can use SimplePortal with all SMF themes by just adding a button for it.

    Professional Support
    SimplePortal offers high quality professional support with its own well known support team. 
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on November 29, 2010, 01:46:18 PM
Quote from: smitch6 on November 29, 2010, 09:55:36 AM
Thats really nice of i appreciate your time and effort helping with this
and it would be great if you could come up with a solution because i know quite a few people alongside myself need a solution to this issue

i look forward in your success :)

thanks again
There is really not a one glove for all here since the sort order is neither alphabetical nor numerical.  The best thing to do is something like this.

find:
$staff_list = array();
$colorids = array();


replace with:
$staff_list = array();
$colorids = array();
$sortorder = array('Administrator', 'Senior Leader', 'Senior Moderator', 'Moderator', 'Tech Team');


The list will sort in order of the groups listed, so if you want a different order or have different group names then you will have to add / change them.

find:
if (in_array($row['id_member'], $admins))
$row['type'] = 1;
elseif (in_array($row['id_member'], $global_mods))
$row['type'] = 2;
else
$row['type'] = 3;

$staff_list[$row['id_member']] = array(


replace with:
$sort_key = array_search($row['group_name'],$sortorder);
if ($sort_key !== false)
$row['type'] = $sort_key + 1;
else
$row['type'] = count($sortorder) + 1;

/*
if (in_array($row['id_member'], $admins))
$row['type'] = 1;
elseif (in_array($row['id_member'], $global_mods))
$row['type'] = 2;
else
$row['type'] = 3;
*/

$staff_list[$row['type'] . '-' . ucwords($row['real_name'])] = array(


this just changes how the row['type'] is set, instead of by authority level its now by the order of the $sortorder list and then by the members name in for each 'group'



Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 29, 2010, 04:13:29 PM
it worked thanks but.........
for some reason the gender icons have vanished for most of the staff ??????
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 29, 2010, 04:42:44 PM
i have sorted of figured out why its not showing the gender icons but for some reason the directions/code is wrong
i actually addressed this issue with sp but once again never got a response
all the members on the SP were male ie even the females had the blue gender icon beside their names

but whats happened now is the admin (me) has got the blue icon which is the gmod.png
the senior (global) mods have the lmod.png
and the rest of the staff have .png
so its not actually got an icon for them

????? weird hey that SP can't figure out gender
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 29, 2010, 04:46:12 PM
the lmod is the female icon and the gmod is the male
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on November 29, 2010, 04:49:36 PM
 :'(

OK ....
Find:
$icons = array(1 => 'admin', 'gmod', 'lmod');

replace with
$icons = array(1 => 'admin', 'gmod', 'gmod', 'lmod', 'lmod', 'lmod');

the list of icons corresponds to the sort order list .... here your sort order is ....

'Administrator', 'Senior Leader', 'Senior Moderator', 'Moderator', 'Tech Team'

so
Administrator = admin
Senior Leader = gmod
Senior Moderator = gmod
Moderator = lmod
Tech Team = lmod
default = lmod .... notice there is one more icon listed than there are sort names ... its the catch all ...

And if you decide those icons are not so good, you can add new icons in to the themes/default/images/sp  in there you will see the files lmod.png gmod.png etc 
You could make a new one say techteam.png and then use techteam as the fifth icon name which corresponds to the fifth item in the sortlist of tech team
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 29, 2010, 05:05:19 PM
a HUGE thanks for you help
its a pity it doesn't do it by gender though
but thats a SP fault somewhere along the line
because even the 'who's on-line' box doesn't sort the gender out either
well strange as everyone on there is male??????

thanks so much for taking the time to sort this out for me i really appreciate it
it looks so much better now

i have posted the info on SP's website on the thread i posted on so hopefully if others want the same fix they can do it also

your a star Spuds :) thanks again
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 29, 2010, 05:07:58 PM
i suppose i could just delete that line and it will remove the icons completely
and then find the line for the who's online and do the same that would cure the gender issue
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 29, 2010, 05:14:10 PM
no i can't just delete that line lol oops
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 30, 2010, 04:46:30 AM
not sure why  ??? but that didn't work

i'va attached the files if you want to check everything is right
portalblocks its on line 376
and subs is on lines
82 and 131
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 30, 2010, 11:49:25 AM
:) perfect it works great

thanks so much for your help
i really appreciate it
well done for some brill work :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Shades. on November 30, 2010, 12:02:44 PM
I just moved my sites to a new server and now one of my RSS feed blocks is not working. It just shows this error:

XML error: not well-formed (invalid token) at line 11

You can view it at http://www.myauctionfamily.com on the left side half way down!

Any help would be appreciated!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on November 30, 2010, 04:21:51 PM
I installed SimplePortal again on my new server after moving and upgrading to a fresh copy of SMF RC4, but I'm having a lot of strange formatting issues. My main_block.png file seems to not go all the way to the left side now, and my category titles are huge. Take a look for yourself (it all worked fine until I installed the mod...everything is fresh except for the database):

http://www.e-p1.net/index.php?action=forum
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on December 01, 2010, 12:15:15 AM
trekkie -- because of the need to quickly deal with changes to CURVE-based themes in 2.0RC4, it is now necessary to put a copy of portal.css in the css folder of every single theme you are using.

You can find a good explanation at http://simpleportal.net/index.php?topic=6885

Please give this a try, and if it doesn't fix every single theme problem, please bring the topic up again.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on December 01, 2010, 12:19:48 AM
Quote from: BoZilla on November 30, 2010, 12:02:44 PM
I just moved my sites to a new server and now one of my RSS feed blocks is not working. It just shows this error:

XML error: not well-formed (invalid token) at line 11

You can view it at http://www.myauctionfamily.com on the left side half way down!

That is a VERY interesting report. There have been puzzling problems with that RSS block. It fails where you'd think it out to succeed.
Either your problem is related to your new server,  or it is related to a "special" character in a recent addition to the RSS feed, which coincidentally happened at the time of the server move.  I'm betting on the latter, but if it is the former, well, that would really be interesting...

Any help would be appreciated!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on December 01, 2010, 12:21:45 AM
smith -- the lmod and gmod icons are not meant to be male or female.  They're both meant to be gender-neutral.  If you blow them up really big, you'll see what I mean.  Somehow the different hair color makes the face shape look different, I guess.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ysite on December 01, 2010, 11:41:04 PM
Why isn't this showing up for guests?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on December 02, 2010, 01:40:06 AM
Quote from: ysite on December 01, 2010, 11:41:04 PM
Why isn't this showing up for guests? (emphasis mine)
What is not showing up for guests?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on December 02, 2010, 04:51:05 AM
I tried that it and seems to have fixed half of it, but now I have a layout problem on the left side of the portal where it looks like it's trying to repeat or just show as a block in the same color as the title bar.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on December 02, 2010, 05:15:42 AM
I've got layout problems everywhere because of SimplePortal. My stats section has missing headers, the text that I write in quick reply and new topics in the post box is giant, and I have no idea why. I'm using the Analysis theme from Crip, you can see what's going on for yourself:

http://www.e-p1.net/forum/
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ysite on December 02, 2010, 11:29:04 AM
Quote from: AngelinaBelle on December 02, 2010, 01:40:06 AM
Quote from: ysite on December 01, 2010, 11:41:04 PM
Why isn't this showing up for guests? (emphasis mine)
What is not showing up for guests?

The blocks are not showing up for guests even though they are enabled in the AP.
I have few advertisements set up for blocks and they seem to b working fine for members but not for guests.

HELP Please! !! @ !
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on December 02, 2010, 02:10:18 PM
Quote from: Spuds on December 02, 2010, 10:09:50 AM
As an experiment,  in the portal.css file, comment out the compatibility styles section at the bottom like this ...
/* ************************************* */
/* Compatibility styles                  */
/* ************************************* */
/*h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
background: url(../images/theme/main_block.png) no-repeat 0 -160px;
}

h4.titlebg span.left, h3.titlebg span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
background: url(../images/theme/main_block.png) no-repeat 0 -200px;
}*/


and see what your site looks like.  Please note the portal page blocks will be broken but does the rest of the analysis theme look correct at that point?




Not sure what you want me to do with this (been a while since I edited CSS).
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on December 02, 2010, 02:38:09 PM
Here's an example of the problem with my quick reply (it goes away when I uninstall the mod).
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ysite on December 02, 2010, 02:58:27 PM
THIS MOD IS ONLY SHOWING TO ADMIN AND MODS, EVEN THOUGH IT IS CHECKED FOR ALL MEMBERGROUPS. WHAT AM I DOING WRONG?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ysite on December 02, 2010, 05:08:12 PM
None of the blocks are appearing for any membergroups but Admin.
The block settings are enabled for ALL membergroups, and only appear when the membergroups are given administrative rights  from "permission" categories. How do I get other membergroups to view the blocks without giving them the admin rights?

(http://img339.imageshack.us/img339/5195/200z.png)

PLEASE HELP!
Thank you.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Suki on December 02, 2010, 05:50:18 PM
@ysite
   just check the  Ignore permissions  radio button  instead of all membergroups.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Sakae on December 02, 2010, 09:16:01 PM
Quote from: Miss All Sunday on December 02, 2010, 05:50:18 PM
@ysite
   just check the  Ignore permissions  radio button  instead of all membergroups.

It's a BUG, right? All membergroups should mean... All membergroups! :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on December 03, 2010, 01:56:59 AM
Quote from: ysite on December 01, 2010, 11:41:04 PM
Why isn't this showing up for guests?

I had the same for mine and i ticked 'one membergroup'
and it solved it

took me weeks before i realised no-one else could see it lol
everyone thought i was mad because i kept talking about these boxes that no-one else could see  ;D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: sharks on December 03, 2010, 01:59:22 AM
It's really amazing that this great project is still going on... so many modifications have been left to die. I applaud the developer/s of this mod. Keep up the great job!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: [SiNaN] on December 03, 2010, 05:26:52 AM
Quote from: Sakae on December 02, 2010, 09:16:01 PM
Quote from: Miss All Sunday on December 02, 2010, 05:50:18 PM
@ysite
   just check the  Ignore permissions  radio button  instead of all membergroups.

It's a BUG, right? All membergroups should mean... All membergroups! :)

"All membergroups" means "a member must have all of the selected membergroups to be able to see it". "One membergroup" means, "a member must have at least one of the selected membergroups to be able to see it".

Edit: Fixed spelling.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Sakae on December 03, 2010, 06:32:52 AM
Quote from: シナン on December 03, 2010, 05:26:52 AM
Quote from: Sakae on December 02, 2010, 09:16:01 PM
Quote from: Miss All Sunday on December 02, 2010, 05:50:18 PM
@ysite
   just check the  Ignore permissions  radio button  instead of all membergroups.

It's a BUG, right? All membergroups should mean... All membergroups! :)

"All membergroups" means "a member must have all of the selected membergroups to be able to see it". "One membergroup" means, "a member must have at least of the selected membergroups to be able to see it".

Ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh, now I get it!!!!!

I think it would be better and clearly if you named:

- At least one membergroup
- All membergroups needed
- Show to all

What do you think of it? I've translated like this to my SMF already.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: [SiNaN] on December 03, 2010, 06:55:32 AM
It's going to change in 2.4.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on December 03, 2010, 01:39:15 PM
So there's also no fix for the damned title backgrounds being messed at the moment either? Still can't figure out the origin of my funky text size either.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on December 03, 2010, 02:26:35 PM
Here's an example of the problem I'm having after moving the portal.css to my theme folder.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on December 04, 2010, 03:33:10 PM
You'll need to put the new portal.css in the css/ folder of each of your themes folders.
That should fix the problem.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Mick. on December 04, 2010, 03:34:01 PM
Quote from: AngelinaBelle on December 04, 2010, 03:33:10 PM
You'll need to put the new portal.css in the css/ folder of each of your themes folders.
That should fix the problem.


Yep. I did this.  Thanx!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on December 04, 2010, 04:18:54 PM
I put the portal.css in my /css folder, it's still screwed up.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on December 05, 2010, 07:04:49 PM
Where did you find the copy of portal.css you put in those themes?
Which theme is giving you trouble?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on December 05, 2010, 11:51:33 PM
The Analysis RC4 theme. I put the one that was in the default theme?

Here's my forum: http://e-p1.net
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Garou on December 06, 2010, 10:06:40 AM
Assuming that you got your portal.css from either the simple portal zip or copied from curve...

Open the portal.css in the particular themes and scroll down to the bottom and find...

/* ************************************* */
/* Compatibility styles                  */
/* ************************************* */
h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
   float: left;
   display: block;
   width: 9px;
   height: 31px;
   background: url(../images/theme/main_block.png) no-repeat 0 -160px;
}

h4.titlebg span.left, h3.titlebg span.left
{
   float: left;
   display: block;
   width: 9px;
   height: 31px;
   background: url(../images/theme/main_block.png) no-repeat 0 -200px;
}


Change to...

/* ************************************* */
/* Compatibility styles                  */
/* ************************************* */
/* h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
   float: left;
   display: block;
   width: 9px;
   height: 31px;
   background: url(../images/theme/main_block.png) no-repeat 0 -160px;
}

h4.titlebg span.left, h3.titlebg span.left
{
   float: left;
   display: block;
   width: 9px;
   height: 31px;
   background: url(../images/theme/main_block.png) no-repeat 0 -200px;
}
*/


Note that this section is a compatibility fix for Curve based themes. If your theme is based off of Curve this fix will cause you other issues. Only change it in themes you are having issues with on a per theme basis and NEVER in the default Curve themes portal.css.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: [SiNaN] on December 06, 2010, 10:26:49 AM
Quote from: trekkie2444 on December 05, 2010, 11:51:33 PM
The Analysis RC4 theme. I put the one that was in the default theme?

Here's my forum: http://e-p1.net

Add this at the end of the portal.css file you copied to the css directory of your custom theme:

#sp_main h3.catbg span.left
{
margin: 0;
}
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on December 06, 2010, 04:22:13 PM
Quote from: シナン on December 06, 2010, 10:26:49 AM
Quote from: trekkie2444 on December 05, 2010, 11:51:33 PM
The Analysis RC4 theme. I put the one that was in the default theme?

Here's my forum: http://e-p1.net

Add this at the end of the portal.css file you copied to the css directory of your custom theme:

#sp_main h3.catbg span.left
{
margin: 0;
}


I just put that in, didn't fix anything.

Quote from: Garou on December 06, 2010, 10:06:40 AM
Assuming that you got your portal.css from either the simple portal zip or copied from curve...

Open the portal.css in the particular themes and scroll down to the bottom and find...

/* ************************************* */
/* Compatibility styles                  */
/* ************************************* */
h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
   float: left;
   display: block;
   width: 9px;
   height: 31px;
   background: url(../images/theme/main_block.png) no-repeat 0 -160px;
}

h4.titlebg span.left, h3.titlebg span.left
{
   float: left;
   display: block;
   width: 9px;
   height: 31px;
   background: url(../images/theme/main_block.png) no-repeat 0 -200px;
}


Change to...

/* ************************************* */
/* Compatibility styles                  */
/* ************************************* */
/* h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
   float: left;
   display: block;
   width: 9px;
   height: 31px;
   background: url(../images/theme/main_block.png) no-repeat 0 -160px;
}

h4.titlebg span.left, h3.titlebg span.left
{
   float: left;
   display: block;
   width: 9px;
   height: 31px;
   background: url(../images/theme/main_block.png) no-repeat 0 -200px;
}
*/


Note that this section is a compatibility fix for Curve based themes. If your theme is based off of Curve this fix will cause you other issues. Only change it in themes you are having issues with on a per theme basis and NEVER in the default Curve themes portal.css.


So what if my theme isn't Curve based then? How do I fix it?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: [SiNaN] on December 06, 2010, 04:43:44 PM
Did you do a hard refresh (Ctrl + F5) after you made the change? It might be using the old cached CSS.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: sharks on December 06, 2010, 11:32:50 PM
I would like to report some bugs in 2.3.3 and i installed this on a fresh SMF 1.1.12 with default theme and shoutbox block set to display inside forum only:

When i click on the shoutbox smiley found within the shoutbox, i select an emoticon from the list and when i press the Shout button, i get this in the shoutbox:
sharks.info/Smileys/default/kiss.gif" alt="Kiss" border="0" />
There are no emoticons displayed but only error codes like above for all emoticons that i tried to display via the shoutbox.

I tried it on my existing forum SMF 1.1.11 and the emoticons display fine in the shoutbox. But there is a problem when entering messages. If i click on the Shout button then the message is submitted and it appears in the shoutbox, BUT if i press the Enter button on my keyboard, the message sometimes disappears from the text bar and it doesn't show up inside the shoutbox.

I use the shoutbox as top block in my forum page. The text bar is somehow strangely fixed in its length. It does not fill the dynamic width of the browser/screen. Please test this and you will be able to confirm this bug!

The shout button should also be placed right next to the text bar. My screen is LCD wide-screen 22" so the small "shout" button is so far on the right. It is almost not noticed.

Also, what does the setting Cache do in the shoutbox? It appears to be enabled by default. What is its importance? Won't it make my server/forum slow with time? Need the Cache be flushed regularly and how to do that?

And maybe you could add a button to change the font color of text in the shoutbox and also make the actual clicked smileys appear inside the shoutbox as images, instead of just the text representations. Just some suggestions which i believe will make the shoutbox better and more useful. :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: [SiNaN] on December 07, 2010, 11:33:35 AM
Quote from: trekkie2444 on December 06, 2010, 04:22:13 PM
Quote from: シナン on December 06, 2010, 10:26:49 AM
Quote from: trekkie2444 on December 05, 2010, 11:51:33 PM
The Analysis RC4 theme. I put the one that was in the default theme?

Here's my forum: http://e-p1.net

Add this at the end of the portal.css file you copied to the css directory of your custom theme:

#sp_main h3.catbg span.left
{
margin: 0;
}


I just put that in, didn't fix anything.

Looking at your forum, it's already fixed. See this:

Quote from: シナン on December 06, 2010, 04:43:44 PM
Did you do a hard refresh (Ctrl + F5) after you made the change? It might be using the old cached CSS.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: sharks on December 09, 2010, 05:17:20 PM
Have my suggestions been ignored?? :(
I also found another bug with the "who is online" page of my forum, as its maximum width is fixed. On my screen it does not fit the width, unlike the top part of the forum, the whois list's width is restricted.

Quote from: sharks on December 06, 2010, 11:32:50 PM
I would like to report some bugs in 2.3.3 and i installed this on a fresh SMF 1.1.12 with default theme and shoutbox block set to display inside forum only:

When i click on the shoutbox smiley found within the shoutbox, i select an emoticon from the list and when i press the Shout button, i get this in the shoutbox:
sharks.info/Smileys/default/kiss.gif" alt="Kiss" border="0" />
There are no emoticons displayed but only error codes like above for all emoticons that i tried to display via the shoutbox.

I tried it on my existing forum SMF 1.1.11 and the emoticons display fine in the shoutbox. But there is a problem when entering messages. If i click on the Shout button then the message is submitted and it appears in the shoutbox, BUT if i press the Enter button on my keyboard, the message sometimes disappears from the text bar and it doesn't show up inside the shoutbox.

I use the shoutbox as top block in my forum page. The text bar is somehow strangely fixed in its length. It does not fill the dynamic width of the browser/screen. Please test this and you will be able to confirm this bug!

The shout button should also be placed right next to the text bar. My screen is LCD wide-screen 22" so the small "shout" button is so far on the right. It is almost not noticed.

Also, what does the setting Cache do in the shoutbox? It appears to be enabled by default. What is its importance? Won't it make my server/forum slow with time? Need the Cache be flushed regularly and how to do that?

And maybe you could add a button to change the font color of text in the shoutbox and also make the actual clicked smileys appear inside the shoutbox as images, instead of just the text representations. Just some suggestions which i believe will make the shoutbox better and more useful. :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on December 09, 2010, 09:10:50 PM
Quote from: sharks on December 06, 2010, 11:32:50 PM
When i click on the shoutbox smiley found within the shoutbox, i select an emoticon from the list and when i press the Shout button, i get this in the shoutbox:
sharks.info/Smileys/default/kiss.gif" alt="Kiss" border="0" />
There are no emoticons displayed but only error codes like above for all emoticons that i tried to display via the shoutbox.
This bug crops up from time to time when the username is the same as the domain name. I can open a bug report.
Please post a link.

Quote
I use the shoutbox as top block in my forum page. The text bar is somehow strangely fixed in its length. It does not fill the dynamic width of the browser/screen. Please test this and you will be able to confirm this bug!
Please post a link

QuoteThe shout button should also be placed right next to the text bar. My screen is LCD wide-screen 22" so the small "shout" button is so far on the right. It is almost not noticed.
Is this related to your previous problem?

QuoteAlso, what does the setting Cache do in the shoutbox? It appears to be enabled by default. What is its importance? Won't it make my server/forum slow with time? Need the Cache be flushed regularly and how to do that?
I hope Sinan can answer this one.
QuoteAnd maybe you could add a button to change the font color of text in the shoutbox and also make the actual clicked smileys appear inside the shoutbox as images, instead of just the text representations. Just some suggestions which i believe will make the shoutbox better and more useful. :)
Please feel welcome to come to SimplePortal.net and post this as a feature request.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on December 12, 2010, 10:20:55 AM
I think it would be very cool to have chess pages on portal.
Like "Current games"
"Awaiting invitations"
"Top players board"
etc.

Chess pages are from SMFChess
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on December 12, 2010, 02:09:44 PM
Or how about like a block for "Last answers to my posts or to my subjects" ?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: kkattfish on December 13, 2010, 11:39:05 AM
i have smf 2.0rc3, simple portal 2.3.3 and aeva 1.4c

recently the images in the gallery on the homepage went to the red x's. 
i have ran the maintenance in aeva but it was no help.  any suggestions to try on simpleportal or anybody have similar issues?

site is http://www.alloffroadaz.com
(http://i483.photobucket.com/albums/rr191/kkattfish/2.jpg)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: basis on December 15, 2010, 12:50:08 AM
thanks so much for this portal! it was very easy to setup and use! great stuff!

i did encounter an error though, when trying to setup my shoutbox.

QuoteIllegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation 'ifnull'
File: /nfs/domains/forum/html/Sources/Subs-Portal.php
Line: 1132

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

so like the note recommended, should i just run upgrade.php? any other stuff i should watch out for?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Wally. on December 18, 2010, 05:22:27 PM
Hey, I just updated my site to RC4, with SP 2.3.3 and Default Avatar 2.0. I was under the impression that when using Default Avatar 2.0 and Simple Portal 2.3.3 I should be able to display the default avatar in the portal blocks. (The previous version of default avatar didn't do this.) But when I finished that wasn't happening. Do I have a problem in my install or do the two mods not work together as I expected.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TakeMeNL on December 19, 2010, 01:43:48 PM
He all,

I have the Inferno 2.0 RC4 Theme but I have those strange curves.... [PIC]
Could someone help me?

(http://img218.imageshack.us/img218/7554/foutforum.jpg)

Regards,
TakeMeNL
Title: Re: SimplePortal - 2.3.3 Released!
Post by: NanoSector on December 19, 2010, 02:43:06 PM
Quote from: Wally. on December 18, 2010, 05:22:27 PM
Hey, I just updated my site to RC4, with SP 2.3.3 and Default Avatar 2.0. I was under the impression that when using Default Avatar 2.0 and Simple Portal 2.3.3 I should be able to display the default avatar in the portal blocks. (The previous version of default avatar didn't do this.) But when I finished that wasn't happening. Do I have a problem in my install or do the two mods not work together as I expected.
Probably they don't work well together.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jue on December 20, 2010, 08:43:30 PM
I was wondering if someone can help me with this...

http://www.simplemachines.org/community/index.php?topic=414061.msg2886847#msg2886847

I want the regular groups to override the post count group in the staff block.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on December 20, 2010, 08:47:31 PM
Jue what are the current membergroups you have?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Saintcrow on December 21, 2010, 07:54:22 AM
Hey,

I just want to ask, can I edit the 'Member Information' block so it just shows the Avatar without hello blabla etc ? And if yes, can it work together with generic avatars mod ??



thanks =)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jue on December 21, 2010, 12:36:39 PM
Quote from: Brack1 on December 20, 2010, 08:47:31 PM
Jue what are the current membergroups you have?

Regular Groups
Admin
Global Moderator
Moderator
Bots
Staff

Post count groups
I'm New
Newbie 
Technophobe 
Tech Apprentice 
Techie
Technician
Tech Master


I want the "Regular" groups to override the post count groups on that staff block and the memberlist.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jue on December 22, 2010, 03:48:59 AM
They are in my "Staff" group. You can't add people to the Moderator group, you just add them to a board as a moderator.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: tesser on December 22, 2010, 08:29:59 PM
So far this is the best portal

i'v tried them all  and this has the best shout box too but it could do with a ding on a new shout  with a option to turn sound on and off
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jue on December 23, 2010, 09:57:30 AM
To me, that makes no sense what so ever.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: sharks on December 23, 2010, 11:35:50 AM
Quote from: tesser on December 22, 2010, 08:29:59 PM
So far this is the best portal

i'v tried them all  and this has the best shout box too but it could do with a ding on a new shout  with a option to turn sound on and off

i agree with all that has been said about this having the best shoutbox, but i have to disagree with the sound. If it's turned off in the admin, it has to be completely turned off such that no wav/mp3 file is loaded along with the shoutbox on the forum page. I used to get a lot of problems with this as my members have their download managers set to auto-download and they get these audio files downloaded with prompts appearing on their screens everytime that they load the page with the shoutbox in it.

I also have another great idea for the shoutbox. Please add the option to enable text to appear by default in the shoutbox's text bar, such that when clicked to start typing, that default text disappears.

For example, the default text in the shoutbox could be set to italic and pale grey, and the text itself should be customizable, like: "Welcome to our Shoutbox! Please type in here and press the "Shout" button to enter the chat".

Then, when a member clicks on the text area within the text bar to type, that default text will automatically clear up and the user can then use the shoutbox normally.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jue on December 23, 2010, 01:36:51 PM
Quote from: Spuds on December 23, 2010, 10:02:58 AM
*shrugs*  do what you want then but don't ask why someone is not showing up as a moderator when you will not use the build in moderator group.

You can't add people to the moderator group because they are only moderators in the board that you choose, ourside that board, they are normal users. So regardless how many boards I add people moderators too, they will still show up as their post count group.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on December 23, 2010, 03:40:28 PM
In PortalBlocks.php around line 2315

find:
'group' => $row['group_name'],

replace with:
'group' => ($row['type'] != 3) ? $row['group_name'] : 'Moderator',

Change Moderator to whatever you like ....

Title: Re: SimplePortal - 2.3.3 Released!
Post by: eric1234 on December 25, 2010, 01:52:08 AM
Does simple portal allow the admin or special user to upload niche news daily? Just like a blog like that.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: taysan on December 26, 2010, 11:25:44 AM
I just completed an upgrade of my 1.1.12 forum to 2.0 RC4 and went to install Simple Portal 2.3.3.  I'm getting this error:

Database Error
Unknown column 'content' in 'field list'
File: /home/taysan/public_html/forum/Packages/temp/install2.php
Line: 971

I've searched and similar errors date back over a year.  Any thoughts?

My forum:  www.dotheton.com
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on December 26, 2010, 05:56:40 PM
How can i change the color of the copyright?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: NanoSector on December 27, 2010, 07:34:16 AM
Quote from: PLAYBOY on December 26, 2010, 05:56:40 PM
How can i change the color of the copyright?
You may not modify the copyright ::)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on December 27, 2010, 09:20:20 AM
Quote from: Simple Series on December 27, 2010, 07:34:16 AM
Quote from: PLAYBOY on December 26, 2010, 05:56:40 PM
How can i change the color of the copyright?
You may not modify the copyright ::)

But i have to change the color of it because its off the forum frame and the color doesnt match. I am not taking it off of subs-portal.php
I just need to change the color of it so it will fit and look nice in my forum.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: tesser on December 27, 2010, 10:15:39 AM
Any way to add  sound to the shout box when a new message is posted ? i did post over on the simple portal forum but got no answer there
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on December 28, 2010, 09:06:45 PM
In index.css, in your css directory, look for stuff related to to style class copyright.  You can fiddle with the style there, without messing with any CSS code.
This is not a SimplePortal question, of course -- it is related to SMF themes.
Quote from: PLAYBOY on December 27, 2010, 09:20:20 AM
How can i change the color of the copyright?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on December 29, 2010, 04:19:41 PM
Well isnt this gonna change all the copyright color from every mod including smf?
Is there a way to change only portal copyright color?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: !RFAN on December 29, 2010, 04:26:49 PM
@TakeMeNL
i'm facing same problem on my website..
Title: Re: SimplePortal - 2.3.3 Released!
Post by: aw06 on December 30, 2010, 08:58:04 PM
Where can i find the theme SP copywrite .. want to update the date

Eg
SimplePortal 2.3.2 © 2008-2010, SimplePortal

To
SimplePortal 2.3.2 © 2008-2011, SimplePortal
Title: Re: SimplePortal - 2.3.3 Released!
Post by: aw06 on December 30, 2010, 09:04:57 PM
Never mind ... found it in Subs-Portal.php
Title: Re: SimplePortal - 2.3.3 Released!
Post by: eyo on December 30, 2010, 11:49:05 PM
can i just use the blocks and disable the portal homepage? i used to do that with ease in ezportal but with simple i could'nt figure out if it could be done.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on December 30, 2010, 11:51:56 PM
Quote from: eyo on December 30, 2010, 11:49:05 PM
can i just use the blocks and disable the portal homepage? i used to do that with ease in ezportal but with simple i could'nt figure out if it could be done.

Have you tried the integration feature?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: eyo on December 30, 2010, 11:54:10 PM
oh my bad :) thank you.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Adrek on December 31, 2010, 08:15:10 AM
hi, i got a little problem...
after instalation SP I can't get to forum or admin panel because i get thist error:
Unable to load the 'Portal' template.

When i replace index.php with org file - forum works, but i have no options from SP (in Installed Packages i have SP)

I'm using SMF 2.0 RC4 and no other mods
Title: Re: SimplePortal - 2.3.3 Released!
Post by: NanoSector on December 31, 2010, 08:18:04 AM
Quote from: adi1166 on December 31, 2010, 08:15:10 AM
hi, i got a little problem...
after instalation SP I can't get to forum or admin panel because i get thist error:
Unable to load the 'Portal' template.

When i replace index.php with org file - forum works, but i have no options from SP (in Installed Packages i have SP)

I'm using SMF 2.0 RC4 and no other mods
Reinstall SP.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Adrek on December 31, 2010, 08:46:19 AM
yeah.. i tried this :P
finally SP Support site works and i found solution http://simpleportal.net/index.php?topic=6855.0

Simply i have to copy all PortalXXX.template.php files to folder of my default theme
Title: Re: SimplePortal - 2.3.3 Released!
Post by: More-to-life on January 02, 2011, 09:05:43 AM
Hi Guys

Im looking to change from TinyPortal to SimplePortal & was wondering if the URL in SimplePortal is the same IE www.yourdomain.co.uk/forum/index.php as Ive built a Google PR on that page & dont want to lose it

Also are there any issues with the Pretty Urls mod as all I get are errors with TinyPortal

Thanks in advance
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on January 02, 2011, 11:16:26 AM
Quote from: More-to-life on January 02, 2011, 09:05:43 AMIm looking to change from TinyPortal to SimplePortal & was wondering if the URL in SimplePortal is the same IE www.yourdomain.co.uk/forum/index.php
Yes -- the default mode for SimplePortal is "Front Page" mode, where the URL is the same as the forum URL.

QuoteAlso are there any issues with the Pretty Urls mod as all I get are errors with TinyPortal
Mostly, things seem to work pretty well with Pretty URL. Some users have done a couple of customizations to keep things pretty, though.  Try a search on "Pretty URL" at http://SimplePortal.net.

Happy New Year!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on January 02, 2011, 11:18:47 AM
Quote from: PLAYBOY on December 29, 2010, 04:19:41 PM
Well isnt this gonna change all the copyright color from every mod including smf?
Is there a way to change only portal copyright color?
Changing only portal copyright color could be done by changing the HTML & styling of the SimplePortal copyright notice.
If you find that in Subs-Portal.php, you could put a <span class="sp_copyright"> tag pair around that text, then style it to your heart's content with an appropriate entry in portal.css.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on January 02, 2011, 09:16:37 PM
Quote from: AngelinaBelle on January 02, 2011, 11:18:47 AM
Quote from: PLAYBOY on December 29, 2010, 04:19:41 PM
Well isnt this gonna change all the copyright color from every mod including smf?
Is there a way to change only portal copyright color?
Changing only portal copyright color could be done by changing the HTML & styling of the SimplePortal copyright notice.
If you find that in Subs-Portal.php, you could put a <span class="sp_copyright"> tag pair around that text, then style it to your heart's content with an appropriate entry in portal.css.

My coding is not that good. Would you give me an example of this?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: radioz on January 03, 2011, 07:50:11 AM
I may be wading in on something else, but I needed to change the copyright color for two basic forums (not Simple Portal - yet) that I built recently.  With help from forum members, I was successful in making the changes needed.  Here is the link to that thread in case it's of use here:

http://www.simplemachines.org/community/index.php?topic=413659.msg2883992#msg2883992 (http://www.simplemachines.org/community/index.php?topic=413659.msg2883992#msg2883992)

I summarized what I did, based on the other meaages in the thread, near the end of the thread.  You can just scroll down to get that in the one post.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: More-to-life on January 03, 2011, 09:58:08 AM
Quote from: AngelinaBelle on January 02, 2011, 11:18:47 AM
Quote from: PLAYBOY on December 29, 2010, 04:19:41 PM
Well isnt this gonna change all the copyright color from every mod including smf?
Is there a way to change only portal copyright color?
Changing only portal copyright color could be done by changing the HTML & styling of the SimplePortal copyright notice.
If you find that in Subs-Portal.php, you could put a <span class="sp_copyright"> tag pair around that text, then style it to your heart's content with an appropriate entry in portal.css.

Many Thanks  ;D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: More-to-life on January 03, 2011, 12:21:35 PM
Thank guys for a great mod

Ive installed & played with it & its better than TP & more user friendly

& best of all no errors so far with pretty urls

Keep up the brilliant work  ;D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on January 03, 2011, 02:48:37 PM
Good modification, thank you
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on January 03, 2011, 03:59:53 PM
Quote from: radioz on January 03, 2011, 07:50:11 AM
I may be wading in on something else, but I needed to change the copyright color for two basic forums (not Simple Portal - yet) that I built recently.  With help from forum members, I was successful in making the changes needed.  Here is the link to that thread in case it's of use here:

http://www.simplemachines.org/community/index.php?topic=413659.msg2883992#msg2883992 (http://www.simplemachines.org/community/index.php?topic=413659.msg2883992#msg2883992)

I summarized what I did, based on the other meaages in the thread, near the end of the thread.  You can just scroll down to get that in the one post.

Very Nice. Thank You.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on January 08, 2011, 03:17:07 PM
Hi i want to add an extra inof box on my SP
this box will list users who are in an extra group (so on their profiles they are in 2 groups)

hope that makes sense sorry

basically the group is one i made up called 'Prayer Team'
so everyone who is in the prayer team i want listed in this box

has anyone got any idea of the code i put in custom html or php extra please
Title: Standalone page error.
Post by: żεχเ๏ภ on January 09, 2011, 06:44:34 PM
Simple Portal Versions: 2.3.3
SMF: 1.1.11

Warning: strpos() [function.strpos]: Empty delimiter in /web/users/jason/forum/Sources/ForumFirewall.php on line 215

Notice: Undefined index: theme_language_error in /web/users/jason/forum/Sources/Load.php on line 1640

Notice: Undefined index: server in /web/users/jason/forum/Sources/Subs-Post.php on line 532

Notice: Undefined index: forum_name in /web/users/jason/forum/Sources/Subs-Post.php on line 578

Notice: Undefined index: character_set in /web/users/jason/forum/Sources/Subs-Post.php on line 863

Notice: Undefined index: utf8 in /web/users/jason/forum/Sources/Subs-Post.php on line 902

Notice: Undefined index: utf8 in /web/users/jason/forum/Sources/Subs-Post.php on line 904

Notice: Undefined index: server in /web/users/jason/forum/Sources/Subs-Post.php on line 920

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid UTF-8 string at offset 8 in /web/users/jason/forum/Sources/Subs-Post.php on line 920

Notice: Undefined index: character_set in /web/users/jason/forum/Sources/Subs-Post.php on line 863

Notice: Undefined index: mail_send_unable in /web/users/jason/forum/Sources/Subs-Post.php on line 663



Description:

I've been using Simpleportal for a while. GREAT mod. But I decided to have it set to Standalone.

See my forum is at http://mainmedia.me/forum

My standalone page which I set it to point to as http://mainmedia.me/index.php

I only get these errors above when not logged in on standalone page (when logged in, I don't get them). I've had no other errors on anything. My database is UTF 8 btw.


Thanks for ANY help,




Jason
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ysNoi on January 10, 2011, 01:22:44 AM
Hi...

I'm using SMF 2.0 RC4 and SP 2.3.3.

Hi...

I would like to ask if there's a way to adjust the writing area of the SP Shoutbox?

I want to adjust the size of it more higher than the original height...

Please see attached file for reference.

TYIA...
Title: Re: SimplePortal - 2.3.3 Released!
Post by: C4G-TK on January 10, 2011, 04:50:30 PM
Ok, I've never really had much problem with SP, but for the past two days I've been having trouble.  I just uninstalled the mod w/o problem in hopes that by reinstalling the mod it would flush out anything that was causing the problem.  In doing so, I got this error:

Invalid default value for 'approved'
File: /var/www/html/Packages/temp/install2.php
Line: 501


No failed tests on RC4 w/ 2.3.3 version of mod, but that appeared once I hit INSTALL

more info can be found here:
http://simpleportal.net/index.php?topic=7388.0






OK, I went through and installed the mod manually by performing all the EDITS and by making sure all the files that needed uploaded were CURRENT from the package.

My database still only has the tables that I listed previously, since I didn't do anything there.

Should I just delete my sp_ tables from my database and run a new query to create them again correctly?

If so, how do I go about doing this.  I'm assuming this really is the only part that I am lacking at this point.

Thanks in advance.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: radioz on January 11, 2011, 04:21:51 AM
How do you move or remove blocks that you placed on the forum page in the wrong place?   I managed to put the same block on the left and right side of the forum and don't know how to correct that short of looking through the code to eliminate the error via code elimination.  I also don't understand how to change the orders of the blocks independently of one another relative to the portal and forum pages. 

The page that I've messed up: http://www.antiqueradio.net/forum/

This might get easier but it is sure confusing to me as of now.  I have read the instructions at the SImple Portal website but that hasn't helped much.

Thanks!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on January 11, 2011, 05:45:58 AM
Quote from: radioz on January 11, 2011, 04:21:51 AM
How do you move or remove blocks that you placed on the forum page in the wrong place?   I managed to put the same block on the left and right side of the forum and don't know how to correct that short of looking through the code to eliminate the error via code elimination.  I also don't understand how to change the orders of the blocks independently of one another relative to the portal and forum pages. 

The page that I've messed up: http://www.antiqueradio.net/forum/

This might get easier but it is sure confusing to me as of now.  I have read the instructions at the SImple Portal website but that hasn't helped much.

Thanks!


not sure if you got it sorted
but if you log in to admin/
scroll down and you'll see the SP section
/blocks
and you can edit all the blocks you have and move them about etc and do pretty much anything that you want

it is fairly easy once you know and it gets easier :) unless like me you want some specific code
Title: Re: SimplePortal - 2.3.3 Released!
Post by: radioz on January 11, 2011, 07:06:55 AM
I'll go back to it later.  I'm especially not sure how to get rid of that second (dupe) block though. 

We've corresponded before.  You site looks very nice!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on January 11, 2011, 09:12:57 AM
thanks we've had a complete re-vamp
i have a designer/coder on board if you need any help pm me

and i'll always help you out where i can just drop me a line :)
Title: Re: Standalone page error.
Post by: żεχเ๏ภ on January 11, 2011, 01:06:33 PM
Quote from: żεχเ๏ภ on January 09, 2011, 06:44:34 PM
Simple Portal Versions: 2.3.3
SMF: 1.1.11

Warning: strpos() [function.strpos]: Empty delimiter in /web/users/jason/forum/Sources/ForumFirewall.php on line 215

Notice: Undefined index: theme_language_error in /web/users/jason/forum/Sources/Load.php on line 1640

Notice: Undefined index: server in /web/users/jason/forum/Sources/Subs-Post.php on line 532

Notice: Undefined index: forum_name in /web/users/jason/forum/Sources/Subs-Post.php on line 578

Notice: Undefined index: character_set in /web/users/jason/forum/Sources/Subs-Post.php on line 863

Notice: Undefined index: utf8 in /web/users/jason/forum/Sources/Subs-Post.php on line 902

Notice: Undefined index: utf8 in /web/users/jason/forum/Sources/Subs-Post.php on line 904

Notice: Undefined index: server in /web/users/jason/forum/Sources/Subs-Post.php on line 920

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid UTF-8 string at offset 8 in /web/users/jason/forum/Sources/Subs-Post.php on line 920

Notice: Undefined index: character_set in /web/users/jason/forum/Sources/Subs-Post.php on line 863

Notice: Undefined index: mail_send_unable in /web/users/jason/forum/Sources/Subs-Post.php on line 663



Description:

I've been using Simpleportal for a while. GREAT mod. But I decided to have it set to Standalone.

See my forum is at http://mainmedia.me/forum

My standalone page which I set it to point to as http://mainmedia.me/index.php

I only get these errors above when not logged in on standalone page (when logged in, I don't get them). I've had no other errors on anything. My database is UTF 8 btw.


Thanks for ANY help,




Jason


Fixed this, it was the ForumFirewall not liking the standalone page...

I'm going to contact ForumFirewall's site to fix this issue.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: NanoSector on January 11, 2011, 02:28:20 PM
lol, Forum Firewall disliked Simple Portal :P

Functions failed to load when the Standalone mode was active, as I can see.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on January 11, 2011, 03:43:29 PM
Quote from: radioz on January 11, 2011, 04:21:51 AM
I managed to put the same block on the left and right side of the forum
You should be able to look in your list of blocks. If, for example, you had two NEWS blocks, you would look for the NEWS block in the place you don't want it, and disable it or delete it, or set it so it only shows up on certain pages.

QuoteI also don't understand how to change the orders of the blocks independently of one another relative to the portal and forum pages.
Here's the thing -- the blocks are all in one list. This keeps the list of blocks simple (as in easy for the programmers to work with).
The simpler things are for the programmers, the more likely they are to work as expected every time.

So the first block in the LEFT list will always come before anything else in the LEFT list, at least on any page you allow it to show up on.  If you want that block to be at the bottom of the LEFT list on a couple of pages, you will have to create another one, just like the first one, make it be last in its list, and make it only show up on the very few pages where you want it to be the last thing.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Imso on January 11, 2011, 08:35:42 PM
Can we add google adsense codes to this and they become active?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on January 11, 2011, 08:44:58 PM
Quote from: Imso on January 11, 2011, 08:35:42 PM
Can we add google adsense codes to this and they become active?

Do you mean add to a block?

If so then yes. An html  block would be used.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Imso on January 11, 2011, 08:56:25 PM
Quote from: Brack1 on January 11, 2011, 08:44:58 PM
Quote from: Imso on January 11, 2011, 08:35:42 PM
Can we add google adsense codes to this and they become active?

Do you mean add to a block?

If so then yes. An html  block would be used.
yeah... really? it works without any problem?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on January 11, 2011, 09:00:26 PM
Have you tried it?

Obviously I am unable to tell you if the adverts will work however I can suggest you try adding the code to a block.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on January 17, 2011, 11:12:04 AM
How do I empty the shoutbox?



THANKS
Title: Re: SimplePortal - 2.3.3 Released!
Post by: NanoSector on January 17, 2011, 03:06:44 PM
Quote from: ACAMS on January 17, 2011, 11:12:04 AM
How do I empty the shoutbox?



THANKS
You can do it in Admin > Simple Portal > Shoutbox, if I'm correct.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on January 17, 2011, 03:42:25 PM
I just found out I have to go to mysql tables to do it

Thanks for the reply tho!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on January 18, 2011, 11:46:16 PM
I have a stupid question that I can't figure out. Isn't there a way on the portal page to do articles that AREN'T just topics with the first so many words and then a link? Can't you somehow make your own custom articles that are just like a custom BBCode block or HTML that display the same exact way the articles do on the portal page?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on January 19, 2011, 09:00:56 AM
In SimplePortal 2.3.3, Articles are topic posts. You can control how many characters to show using the article settings, or using the cutoff tag. You could get rid of the links by modifying the articles template. I've done that myself.

Maybe what you want is not an article at all. Maybe you want a BBC or HTML block, like the "Welcome to SimplePortal" block that came with your install. This text is not a msg, and is not stored with all the msgs (posts and topics) on your forum. These blocks are not articles, and would look different on the page.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on January 19, 2011, 11:53:02 PM
No, what I want is what TinyPortal used to offer...where you can write your own BBCode or HTML article that has nothing to do with a topic on the forum, but acts just like the layout of the rest of the articles (everything is the same except it's not a topic and you just write what you want in it like a thread, but it's not a thread).

Does that make sense?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on January 20, 2011, 12:00:35 AM
Quote from: trekkie2444 on January 19, 2011, 11:53:02 PM
No, what I want is what TinyPortal used to offer...where you can write your own BBCode or HTML article that has nothing to do with a topic on the forum, but acts just like the layout of the rest of the articles (everything is the same except it's not a topic and you just write what you want in it like a thread, but it's not a thread).

Does that make sense?

Wouldn't this be more suitable?

http://custom.simplemachines.org/mods/index.php?mod=1354
Title: Re: SimplePortal - 2.3.3 Released!
Post by: trekkie2444 on January 20, 2011, 02:01:15 AM
No, because I use a sidebar anyways. *sigh* I might have to just reinstall Tinyportal again, I really liked this mod too.

Also don't like how you can't arrange the articles shown on the portal page but instead how it goes by the date posted (should go by the date you added them to the portal).
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on January 21, 2011, 02:35:39 PM
Keep watching SimplePortal as it develops -- I know there are some changes coming to the Articles system.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: żεχเ๏ภ on January 23, 2011, 04:28:34 PM
Hi... I'm not exactly sure what the person above was enquiring about. But, I was wondering myself if you can do articles on Simpleportal that aren't linked to topics... You can do calendar events which aren't linked to topics..

I mean I like how you can have articles linked to topics, but I'd like also for there to be articles that stored separately as articles in the db, not as posts. With comments, and all.

http://custom.simplemachines.org/mods/index.php?mod=1354 <-- I took a look at this mod link posted above, its pretty much exactly what I'd like.

Except, I don't want the articles to be on a separate "Articles" page... Is there any way to get the articles from that mod on the portal/home page? (perhaps using a custom block)


Thanks,


Jason
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on January 27, 2011, 12:48:30 PM
A future version of SimplePortal will do exactly what you want.
For now, every SimplePortal article actually IS a topic post.

One poster did post code for a custom-php "SMF Articles" block. You can find that at SimplePortal.net, by searching for SMF Articles. Then, you can make that custom-php block show up on any page you want.

Another option, of course, for use with the current version of SMF, is to store all the articles away in a single out-of-the-way board (maybe even a child board), and display them on the Portal Page. That's one of the things SimplePortal does best. I think this is the simpler choice.

Either choice is pretty simple.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: żεχเ๏ภ on January 27, 2011, 07:18:51 PM
Quote from: AngelinaBelle on January 27, 2011, 12:48:30 PM
A future version of SimplePortal will do exactly what you want.
For now, every SimplePortal article actually IS a topic post.

One poster did post code for a custom-php "SMF Articles" block. You can find that at SimplePortal.net, by searching for SMF Articles. Then, you can make that custom-php block show up on any page you want.

Another option, of course, for use with the current version of SMF, is to store all the articles away in a single out-of-the-way board (maybe even a child board), and display them on the Portal Page. That's one of the things SimplePortal does best. I think this is the simpler choice.

Either choice is pretty simple.


Tried looking for the block you said.. Couldn't find it. http://simpleportal.net/index.php?topic=7555.msg42265#msg42265

That's the topic I've already posted on simpleportal.net asking for the block you mentioned... No replies so far.



Jason
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on January 27, 2011, 07:34:15 PM
Quote from: żεχเ๏ภ on January 27, 2011, 07:18:51 PM
Tried looking for the block you said.. Couldn't find it. http://simpleportal.net/index.php?topic=7555.msg42265#msg42265

Try http://simpleportal.net/index.php?topic=2200.0
Title: Re: SimplePortal - 2.3.3 Released!
Post by: żεχเ๏ภ on January 28, 2011, 01:19:02 AM
Quote from: AngelinaBelle on January 27, 2011, 07:34:15 PM
Quote from: żεχเ๏ภ on January 27, 2011, 07:18:51 PM
Tried looking for the block you said.. Couldn't find it. http://simpleportal.net/index.php?topic=7555.msg42265#msg42265

Try http://simpleportal.net/index.php?topic=2200.0

Thanks a million.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: willerby on January 28, 2011, 03:40:01 AM
AngelinaBelle, any news on when SimplePortal stand alone articles might be available? "Shortly" sounds good... ;)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on January 28, 2011, 03:43:05 AM
Quote from: laetabi on January 28, 2011, 03:40:01 AM
AngelinaBelle, any news on when SimplePortal stand alone articles might be available? "Shortly" sounds good... ;)

:o

Sheesh

I have only recently started to use the pages and I have used simpleportal since 1.1.8 when I first started in the world of forums.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on January 28, 2011, 11:49:15 AM
SimplePortal's developers have a lot of demands on their time right now. Because this often limits their availability to develop SimplePortal, this means they cannot plan a schedule each major part of the work to be done.

I'm sorry I cannot give any better information than that.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jeet Chowdhury on January 28, 2011, 12:24:43 PM
after uninstalling simple portal its still showing menus in old style.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on January 28, 2011, 12:26:48 PM
Quote from: Jeet Chowdhury on January 28, 2011, 12:24:43 PM
after uninstalling simple portal its still showing menus in old style.

Have you checked all the files which simpleportal edits?

You may require manual edits.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Guy01 on January 28, 2011, 02:05:00 PM
Hello,

I run Simple Portal 2.3.3. I use the RSS block without any problem, one feed wp. Well, The server is changed. And it is impossible to get the RSS block again: "flux invalide" (in french). I have tested other RSS...it doesn't work. What can I do?
I thank you in advance

Best regards

Guy
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Darkness_ on January 28, 2011, 03:01:24 PM
Hi all, using SMF 2 rc4

Getting error with SSI

Fatal error: Cannot redeclare ssi_shutdown() (previously declared in /public_html/#/SSI.php:204) in /public_html/#/SSI.php on line 206



mods using:


1.   Post History    0.3
2.   ssi_multiBoardNews    1.1
3.   First Post on every Page    1.3     
4.   Custom Action Mod    3.2     
5.   Bakers Dozen Pages    1.2     
6.   SimplePortal    2.3.3     
7.   SMFBlog    2.0     
8.   Aeva Media    1.4c     
9.   Team Page    3.5.5     
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on January 28, 2011, 03:19:51 PM
It sounds as though SSI.php has been included, and something is trying to include it again.
Something is using php's include statement instead of include_once.
ssi_shutdown is the first function definition in that file. So that's why the problem pops up at "function ssi_shutdown"

I don't know which of your mods is doing this.
Which mods use SSI.php? Which page does it happen on?  It would be nice to know which file is the one trying to include SSI.php

Can you try narrowing it down by uninstalling the mods in the reverse order you installed them, until the problem goes away?

Troubleshooting this kind of thing can be kind of a pain, but you should be able to manage it.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jeet Chowdhury on January 28, 2011, 06:03:29 PM
Quote from: Brack1 on January 28, 2011, 12:26:48 PM
Quote from: Jeet Chowdhury on January 28, 2011, 12:24:43 PM
after uninstalling simple portal its still showing menus in old style.

Have you checked all the files which simpleportal edits?

You may require manual edits.

no how to check every file any automated way or need to do manually?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheMortician4 on January 28, 2011, 11:05:49 PM
Quote from: AngelinaBelle on January 27, 2011, 12:48:30 PM
A future version of SimplePortal will do exactly what you want.
For now, every SimplePortal article actually IS a topic post.

One poster did post code for a custom-php "SMF Articles" block. You can find that at SimplePortal.net, by searching for SMF Articles. Then, you can make that custom-php block show up on any page you want.

Another option, of course, for use with the current version of SMF, is to store all the articles away in a single out-of-the-way board (maybe even a child board), and display them on the Portal Page. That's one of the things SimplePortal does best. I think this is the simpler choice.

Either choice is pretty simple.

REally? Wow, that's weird don't ask me how I did it, but my articles are posting on the portal....
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Darkness_ on January 29, 2011, 09:06:16 AM
Quote from: AngelinaBelle on January 28, 2011, 03:19:51 PM
It sounds as though SSI.php has been included, and something is trying to include it again.
Something is using php's include statement instead of include_once.
ssi_shutdown is the first function definition in that file. So that's why the problem pops up at "function ssi_shutdown"

I don't know which of your mods is doing this.
Which mods use SSI.php? Which page does it happen on?  It would be nice to know which file is the one trying to include SSI.php

Can you try narrowing it down by uninstalling the mods in the reverse order you installed them, until the problem goes away?

Troubleshooting this kind of thing can be kind of a pain, but you should be able to manage it.


Was like you said, had a custom page wich was calling SSI, it was require, changed it to require_once now it works like a charm.
Thank you for the fast help
Title: Re: SimplePortal - 2.3.3 Released!
Post by: evonyhall on January 29, 2011, 11:55:32 AM
Hi all!

I would like to add TinyChat to my forum via a block in simpleportal. But I keep getting an error on line 12 of webpage. I know im new to all this but if someone could help. I would really appreciate it. This is the code im trying to add to a custom html block. Help Please I lost!

<script type="text/javascript" src="http://tinychat.com/chatbar/bar.js"></script>
<script type="text/javascript">
chatbar.embed({ room: "d5d0e25662aeb81ffe32d414f01d83dc", theme: "blue", facebook_like: true, tweet_button: true, buzz_button: true, buzz_button: true, digg_button: true, translate: true, width: "fluid", align: "center", position: "bottom"});<
/script>
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jeet Chowdhury on January 30, 2011, 12:27:04 PM
here is problem when we are using other themes.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on January 30, 2011, 12:36:55 PM
Jeet

The following link will provide the solution for you.

I had the same problem which was solved.

http://www.pixelmansion.com/index.php?topic=89.msg944;topicseen#new
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jeet Chowdhury on January 30, 2011, 02:51:54 PM
^^^^thank u brack. u r life saver.... :D :D :D


i have a question is this simpleportal shoutbox ajax based or sql query based??
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jeet Chowdhury on January 30, 2011, 03:46:19 PM
how to disable the shoutbox's textbox's autocomplete??


also want to move please login or register text to next line. which file i need to edit and how.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on January 30, 2011, 04:51:15 PM
Quote from: Jeet Chowdhury on January 30, 2011, 03:46:19 PM
how to disable the shoutbox's textbox's autocomplete??


I would say this is more related to your computer than the mod.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jeet Chowdhury on January 30, 2011, 05:32:02 PM
im using mozilla firefox 4. and textbox auto complete but in ie9 its ok.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on January 30, 2011, 05:35:00 PM
Quote from: Jeet Chowdhury on January 30, 2011, 05:32:02 PM
im using mozilla firefox 4. and textbox auto complete but in ie9 its ok.

As I said before it is NOT the mod it is the browser.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jeet Chowdhury on January 30, 2011, 07:19:38 PM
if i disable ad for particuler usergroup in simple ads its still showing in simpleportal below menu.

can i add more recent topics in homescreen as 1, 2, 3, 4 page style per view contain last 15 recent topic.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on January 31, 2011, 10:33:19 AM
SimplePortal shows all blocks for admin user. There will be an option to change this in a future version of SimplePortal.

Please see the number of topics to show in "Recent Topics" block. This block does not do "[1][2][3][4]" paging.
Only Forum News, Articles blocks, and portal-page Articles do that paging.



Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jeet Chowdhury on January 31, 2011, 10:35:35 AM
is there any way or mod to enable recent topic paging? :)

in portal top posters list. the member name link is clicable. i want to do something like. when some one click on user avatar they goto that user profile. how to do that?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on January 31, 2011, 03:58:16 PM
Quote from: Jeet Chowdhury on January 31, 2011, 10:35:35 AM
is there any way or mod to enable recent topic paging? :)

in portal top posters list. the member name link is clicable. i want to do something like. when some one click on user avatar they goto that user profile. how to do that?
Recent Topic only lists the subject line of the recent topic. It was not designed to be pageable.
If you wish to begin customizing your SimplePortal, I invite you to sign up at simpleportal.net and start a topic in one of the customizing boards
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jeet Chowdhury on January 31, 2011, 04:17:47 PM
thank u i will join simpleportal. :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: reefforum on February 02, 2011, 04:52:36 PM
thank you for this amazing mod works like a champ  ;D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on February 09, 2011, 02:03:03 PM
Is there a way to correct the xml error in the RSS block?

I currently have a RSS block showing on the portal and main  forum page.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on February 09, 2011, 11:49:19 PM
Does it happen for all rss feeds or just one?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on February 10, 2011, 07:25:57 AM
SimplePortal's RSS block handles some feeds perfectly, and fails on other, perfectly valid feeds.
Something about the XML functions it uses just wasn't designed to handle RSS, it seems.

The only way to fix the problem is to completely rewrite the code it uses.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on February 10, 2011, 09:54:20 AM
The handler is pretty basic, so was just curious which feed it was tossing an error on ... probably not standard  RSS 0.9/1.0 but possibly having problems with an  RSS module, RSS 2.0, or even Atom content. 
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on February 10, 2011, 12:17:21 PM
I don't know the details. I haven't been through SMF's XML functions myself.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: botb2 on February 10, 2011, 06:07:40 PM
So does this mean simple portal cannot handle XML feeds in the blocks? Secondly, I was going to post this on the simple portal forum but your email aunthentication is bugged as in I click on the link, try logging in and it says I haven't verified in my email yet.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on February 10, 2011, 09:07:59 PM
SimplePortal's RSS block does handle many XML feeds.
Some others, it does not handle.

If email verification failed, can you ask it to send verification again?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: botb2 on February 10, 2011, 10:54:06 PM
I've done it twice, both times it failed and wouldn't verify me.

Well I tried the RSS Feed for this XML feed I'm trying to get working and I get invalid feed. When I try adding it in as a php block I get this error,
Parse error: syntax error, unexpected ':' in /home/thepok8/public_html/Sources/PortalBlocks.php(3461) : eval()'d code on line 1

This is the feed I'm trying to add to my site, http://www.pokeraffiliatesolutions.com/docs/xmlfeeds.php
Title: Re: SimplePortal - 2.3.3 Released!
Post by: MATTEK on February 10, 2011, 11:12:51 PM
Can anyone link me to a working 2.3.3 portal?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: botb2 on February 10, 2011, 11:16:54 PM
as in getting it to work? www.thepokerdream.net
Title: Re: SimplePortal - 2.3.3 Released!
Post by: MATTEK on February 11, 2011, 12:49:46 AM
Quote from: botb2 on February 10, 2011, 11:16:54 PM
as in getting it to work? www.thepokerdream.net
Yea but for 2.0 RC3 or 4. I just wanna see the comparison.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on February 11, 2011, 06:27:48 AM
Quote from: botb2 on February 10, 2011, 10:54:06 PM
I've done it twice, both times it failed and wouldn't verify me.
What do you mean by "verify". The RSS block does not verify feeds.
Do you mean that you tried to validate the feed at http://validator.w3.org/feed/?
Or do you mean that you got a message in the block that the feed was invalid?

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spuds on February 11, 2011, 09:56:30 AM
Quote from: botb2 on February 10, 2011, 10:54:06 PM
I've done it twice, both times it failed and wouldn't verify me.

Well I tried the RSS Feed for this XML feed I'm trying to get working and I get invalid feed. When I try adding it in as a php block I get this error,
Parse error: syntax error, unexpected ':' in /home/thepok8/public_html/Sources/PortalBlocks.php(3461) : eval()'d code on line 1

This is the feed I'm trying to add to my site, http://www.pokeraffiliatesolutions.com/docs/xmlfeeds.php
Thats because its not an RSS feed .... its a page on how to set up a feed (if you are an affiliate).   Its also not php code that you would ever place in a block.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on February 11, 2011, 01:38:20 PM
botb, I got your two messages confused.

On the RSS feed page -- see the example: http://www.raketracker.com/feeds/poker_rooms/cake-poker.xml

As for the problem registering at SimplePortal.net -- I don't recall hearing
Please give more information.
* Did you receiver the verification email?
* Did you follow the link on the verificatin email?
* Then what happened?
Please be very specific. If I can learn anything, I will pass it on to the folks who make simpleportal.net run.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Neo_TE on February 16, 2011, 02:09:01 AM
Quote from: MATTEK on February 11, 2011, 12:49:46 AM
Yea but for 2.0 RC3 or 4. I just wanna see the comparison.
check my website. link in my sig. :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on February 16, 2011, 05:29:30 PM
Quote from: AngelinaBelle on January 27, 2011, 12:48:30 PM
A future version of SimplePortal will do exactly what you want.
For now, every SimplePortal article actually IS a topic post.

One poster did post code for a custom-php "SMF Articles" block. You can find that at SimplePortal.net, by searching for SMF Articles. Then, you can make that custom-php block show up on any page you want.

Another option, of course, for use with the current version of SMF, is to store all the articles away in a single out-of-the-way board (maybe even a child board), and display them on the Portal Page. That's one of the things SimplePortal does best. I think this is the simpler choice.

Either choice is pretty simple.

i never actually got this sorted :(
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on February 16, 2011, 06:46:15 PM
You searched on "SMF Articles" and found http://simpleportal.net/index.php?topic=2200.0 ?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: 4LP3RUZ1 on February 18, 2011, 03:11:52 AM
I used to float all the main page images to left via the sp_article class, but since i installed the RC4 security patch (not 100% sure its the patch's fault) my images are not being tagged as class sp_article. They are now of class="bbc_img resized" rather than class="bbc_img sp_article"

example: (link removed... too many incoming trolls :P) (the top post's image is different)

any solution? I don't want to float bbc_img because that applies to the whole forum.

edit:
temporarily solved by adding this line to PortalBlocks.php:
$row['body'] = preg_replace('~class="bbc_img resized"~i', 'class="bbc_img resized sp_article"', $row['body']);
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on February 18, 2011, 07:54:10 AM
Yes.  You have spotted how a change in parse_bbc has broken article image resizing.
I think this happened with RC4.

I will bring this to the attention of the SimplePortal developers.

I think your fix will work. If you use sp_boardNews as well as PortalArticles.php, you may wish to make the same change there.

Thanks!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on February 18, 2011, 11:11:00 AM
Yes, and it would be a nice additional feature in function sp_articles, as well.

I've reported the bug to the bug tracker at SimplePortal.net.
But not the feature.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: 4LP3RUZ1 on February 18, 2011, 12:28:06 PM
excellent, thanks Spuds.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: sharks on February 20, 2011, 06:07:12 AM
Hello, i am using SMF 1.1.13 with default theme and SimplePortal 2.3.3.

My problem is quite simple. I have 2 boards in one category. I want to list topics from only one of these 2 boards on my front portal page. But currently, all topics from both boards are being shown on the portal page. How to configure that?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on February 20, 2011, 09:38:36 AM
Add new block> Board News - Displays a list of posts from a selected board.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: More-to-life on February 20, 2011, 10:46:19 AM
Any updates for RC5 or will it work fine

Just need to know before I upgrade from RC4
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on February 20, 2011, 11:35:42 AM
Quote from: More-to-life on February 20, 2011, 10:46:19 AM
Any updates for RC5 or will it work fine

Just need to know before I upgrade from RC4

There has been reports the portal will work with no errors.

If you look at the pixelmansion link in my sig you will see they are on RC5 and using sp.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: More-to-life on February 20, 2011, 11:39:55 AM
Many thanks I'll give it a go
Title: Re: SimplePortal - 2.3.3 Released!
Post by: WhiteEagle on February 21, 2011, 12:23:16 AM
Hey!

I registered on your site, and when I tried to activate my email, it didn't work.

My username there is the same as the one here. If you could help me out, I'd appreciate it.

Have the latest version of your portal, 2.0 RC5, and Adk Blogs installed, yet when I add a Blogs block, it says I have no blog installed. What the heck is going on?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on February 21, 2011, 08:26:37 AM
I'll report that you are having trouble with the activation email.
You can also do the activation manually.
I will notify the team that you have reported a problem with email activation.

SimplePortal 2.3.3 does not support ADK blog.  In fact, it currently only supports the zCommunity blog.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: WhiteEagle on February 21, 2011, 11:43:42 AM
Thanks for letting them know AngelinaBelle. This isn't the first forum where I've had difficulty activating my email either. :(
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on February 21, 2011, 11:47:06 AM
Did you try manual activation?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: WhiteEagle on February 21, 2011, 11:51:39 AM
Yes, I have at both sites. It keeps taking me to the forum, and not to the page I expected to see. :(
Title: Re: SimplePortal - 2.3.3 Released!
Post by: willerby on February 21, 2011, 12:25:07 PM
I get quite a few who nver come back to activate, some of whom are known to me. There does seem to be an issue with activation in RC4 perhaps with certain mods but it doesn't affect all ???
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on February 21, 2011, 01:51:20 PM
Willerby: Do you have any anti-spam mods active?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: WhiteEagle on February 21, 2011, 03:00:10 PM
I've had trouble at a site running RC3, and at SimplePortal's site (I think it's RC5).
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on February 26, 2011, 01:52:51 AM
How can i make a block in portal that will show the newest article(s) posted on my WordPress section?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: uninvited13th on February 26, 2011, 08:24:46 PM
simple portal for smf2.0rc5 please... :D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: WhiteEagle on February 27, 2011, 12:37:09 AM
Quote from: uninvited13th on February 26, 2011, 08:24:46 PM
simple portal for smf2.0rc5 please... :D
It works on my site, and it's 2.0 RC5!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Bigguy on February 27, 2011, 12:47:12 AM
Runnin fine on my site. :) with patch installed.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Average Mom on February 27, 2011, 07:42:10 AM
Quote from: Brack1 on January 30, 2011, 12:36:55 PM
Jeet

The following link will provide the solution for you.

I had the same problem which was solved.

http://www.pixelmansion.com/index.php?topic=89.msg944;topicseen#new


Thanks for sharing! Fixed my issue! ;)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on March 03, 2011, 08:10:51 AM
I have SMF 2.0 RC3 and SimplePortal 2.3.2
Guests see "Sorry, this shoutbox does not exist" and I would like to edit this, where can I find the code?
I have searched for a good while and can't find it.
THANKS
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 03, 2011, 03:55:34 PM
ACAMS: ?action=admin;area=portalshoutbox; then edit the permission on the shoutbox itself.
PLAYBOY: Making a WORDPRESS block would require some customization. you'd need to write some php code to do it.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on March 03, 2011, 05:32:49 PM
I may be able to find a pre-written script or something. Can you tell me what is the code called? like i i know its not ssi.
I dont really want to use iframe.
but i can put an html or php code in a block to show it. What kind of code i can put there to show most recent articles?

there is a block to show articles. maybe i can edit that blocks codes to make it show wp instead of mod.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on March 03, 2011, 08:16:08 PM
Quote from: AngelinaBelle on March 03, 2011, 03:55:34 PM
ACAMS: ?action=admin;area=portalshoutbox; then edit the permission on the shoutbox itself.
PLAYBOY: Making a WORDPRESS block would require some customization. you'd need to write some php code to do it.

Thanks for the reply, but I don't see how to edit the text there, can you be more detailed?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 03, 2011, 08:16:43 PM
You can find all the blocks in PortalBlocks.php. This may not help you much, though. WordPress is not SimplePortal.
You may have better luck getting the information about WordPress at a WordPress customization site. Then, you should be able to put some WordPress code into a SimplePortal custom php block.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 03, 2011, 08:22:51 PM
ACAMS: I'm sorry.  I did not understand at first what you meant by "edit this". All SimplePortal strings are in the language directory of the theme. So a quick search of the files there for "this shoutbox does not exist" turns up a
$txt['error_sp_shoutbox_not_exist']. That's the string you want, then.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on March 03, 2011, 08:37:05 PM
THANKS!!!!

Found it, fixed it!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Baloch on March 04, 2011, 10:23:43 AM
Kindly update SP for  SMF 2.0 RC5
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 04, 2011, 11:37:18 AM
That's an excellent suggestion. I assure you, the team will take it under advisement.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: BSViper on March 05, 2011, 03:00:50 PM
Repeat my post as suugested..

I have a problem.

When Simple Portal installed, all post in forum with multiquote shown wrong.
Forum show only first quote in post, and other quotes shown like simple text, without even borders and color selection...
If i deinstall Simple Portal all shown as expected...

SMF version 2.0 RC4 security patch, Simple Portal 2.3.3

Can anyone help?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Average Mom on March 05, 2011, 05:23:42 PM
Quote from: Baloch on March 04, 2011, 10:23:43 AM
Kindly update SP for  SMF 2.0 RC5

I'm using 2.0 RC5 and it works just fine for me.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: thesikaleon on March 06, 2011, 11:05:10 AM
I'm trying to get my who's online block to list the people online horizontally not vertically.


I found this topic http://simpleportal.net/index.php?topic=7720.0 but cant understand what I need to do exactly.

Please any help?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Spoogs on March 06, 2011, 11:06:50 AM
Why did you just ask there since its a fairly recent topic
Title: Re: SimplePortal - 2.3.3 Released!
Post by: thesikaleon on March 06, 2011, 11:18:14 AM
I cant understand what I need to do.

I mean there are some codes in that topic but i dont know which file i need to edit
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 06, 2011, 11:33:28 AM
I believe that code is meant to go in a custom php block.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: thesikaleon on March 06, 2011, 12:16:02 PM
Quote from: AngelinaBelle on March 06, 2011, 11:33:28 AM
I believe that code is meant to go in a custom php block.

I was mad trying to find out which file to edit, through my cpanel, and it was so simple  ;D


THANKS!!!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 06, 2011, 05:22:49 PM
Simple -- that's the idea! Glad you got it working.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: gvalfer on March 07, 2011, 11:58:29 AM
PS: problem solved.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 07, 2011, 12:31:17 PM
Quote from: BSViper on March 05, 2011, 03:00:50 PM
When Simple Portal installed, all post in forum with multiquote shown wrong.
Forum show only first quote in post, and other quotes shown like simple text, without even borders and color selection...
If i deinstall Simple Portal all shown as expected...

SMF version 2.0 RC4 security patch, Simple Portal 2.3.3
Can you provide a link? I would like to understand better.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Rain Forest on March 10, 2011, 12:11:10 PM
I'm using Zutzu's Soft Cartoon theme. Action=forum at main menu does not work..

(http://www.decashare.com/images/5Z2bVsKkL-Untitled-2.jpg)

Can someone help me? RC5
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 10, 2011, 01:46:16 PM
For a theme like this, the menu buttons are all in Subs.php.  Does your forum button work in the default theme (CURVE)?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Rain Forest on March 10, 2011, 02:20:32 PM
Quote from: AngelinaBelle on March 10, 2011, 01:46:16 PM
For a theme like this, the menu buttons are all in Subs.php.  Does your forum button work in the default theme (CURVE)?

I don't know because at SP - Configuration - General Settings. I have set 'Soft Cartoon' as Portal Theme.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 10, 2011, 02:23:02 PM
Please test this and find out whether the button is OK with the default theme.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Rain Forest on March 10, 2011, 02:25:16 PM
Quote from: AngelinaBelle on March 10, 2011, 02:23:02 PM
Please test this and find out whether the button is OK with the default theme.

I just changed it to Default and I didn't see the Forum Button. :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 10, 2011, 02:37:51 PM
Thanks for that information.
It sounds as though your SimplePortal install did not go quite right in Subs.php.
Did the Package Manager complain about any failed tests in Subs.php

Please go back to the mod page, find the manual install instructions, and work through Subs.php. You should see some code for adding the forum button, and also for figuring out when you are at forum. You will "find" the thing you are supposed to find, and replace it with the code it tells you to replace it with.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Rain Forest on March 10, 2011, 02:39:46 PM
Quote from: AngelinaBelle on March 10, 2011, 02:37:51 PM
Thanks for that information.
It sounds as though your SimplePortal install did not go quite right in Subs.php.
Did the Package Manager complain about any failed tests in Subs.php

Please go back to the mod page, find the manual install instructions, and work through Subs.php. You should see some code for adding the forum button, and also for figuring out when you are at forum. You will "find" the thing you are supposed to find, and replace it with the code it tells you to replace it with.

Ah, I will do that.

Although, I had no failed tests at Package Manager. :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 10, 2011, 02:56:21 PM
You are welcome to attach your Subs.php.
It really seems like the button is not there. It ought to be the second button.
It is possible that some permission problem caused Package Manager to think it had made the change, but it was not actually able to do it.

Or there could be some other reason.

We'll have to take this one step at a time.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Rain Forest on March 10, 2011, 03:17:00 PM
I got this work now. :)

Thanks!

Besides, now I have 2 proxy-users who can not shout at the shoutbox. How can I help this?

Before the Subs.php edit it worked..
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 10, 2011, 03:48:45 PM
How many changes did you make in Subs.php? Just the ones about the menu buttons?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Rain Forest on March 10, 2011, 04:04:38 PM
Quote from: AngelinaBelle on March 10, 2011, 03:48:45 PM
How many changes did you make in Subs.php? Just the ones about the menu buttons?

I only added this
'forum' => array(
'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
'href' => $scripturl . ($modSettings['sp_portal_mode'] == 1 && empty($context['disable_sp']) ? '?action=forum' : ''),
'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']),
'sub_buttons' => array(
),
),


After this:
'home' => array(
'title' => $txt['home'],
'href' => $modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl,
'show' => true,
'sub_buttons' => array(
),
),


This is my Subs.php :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: James Main on March 10, 2011, 09:14:18 PM
I am trying to figure out how to run a widget in one of the blocks any help would be great.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ddabcd277 on March 11, 2011, 12:56:46 PM
Hello,

I am having some problems with SP will appreciate if some can help. It seems some parts of the forum are not resized properly after I add a few blocks on the right. I will attach a few pictures to explain better. They are when I try to post a massage/topic, from the SMF Gallery and the Profile Page.

I am using SMF version 1.1.13 and SP 2.3.3. Here is link to the forum:
http://crackgarmin.com

Edited: There is no such problem when those sections are opened with Mozzila. So I quess the question is is it possible to hide the display of those blocks in Block settings like in Admin, Profile, Personal Massages.

Thanks,
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 12, 2011, 04:53:24 PM
giovannie,

That change to Subs.php looks about right. It should not cause a shoutbox problem.  I wonder if you have installed any other mods in the meantime?

James Main,

What are you trying to run in one of the blocks?

ddabcd277,

Yes, you can hide some blocks in certain parts of the forum. Use the advanced display options and choose exactly where you wish to show the blocks.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Rain Forest on March 12, 2011, 06:12:59 PM
Quote from: AngelinaBelle on March 12, 2011, 04:53:24 PM
giovannie,

That change to Subs.php looks about right. It should not cause a shoutbox problem.  I wonder if you have installed any other mods in the meantime?

No, I didn't install other mods during or after SP.

I only changed that 1 line in Subs.php nothing else. What other file can caused the problem?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ddabcd277 on March 12, 2011, 07:43:58 PM
@ AngelinaBelle

Thank you for your reply.

I am sorry I didn't explain well. Yes, from the "Block Settings" menu I can choose to hide the blocks for Admin, Profile, Personal Messages, Members, Search and Calendar pages. My idea was that I also want to hide the blocks when posting a Topic/Massage and when opening the Gallery page. Those two (and other pages) can't be set from the "Block Settings" menu and by default are showing the blocks.

Hope I was clear enough.

Kind Regard,
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 14, 2011, 02:23:58 PM
giovannie, I don't see the problem. I don't know what to tell you about the cause.

ddabcd277 -- Then you will want to use the advanced display options. Please read about Custom Display Options at http://simpleportal.net/index.php?action=docs;area=block_editor. They involve
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Rain Forest on March 14, 2011, 02:51:27 PM
All folders has to be set to 777 (CHMOD)?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 14, 2011, 04:21:12 PM
Usually -- unless your host does not allow that.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Rain Forest on March 14, 2011, 04:22:21 PM
Ah, but only proxy-users got this problem so I don't know what file could caused this issue. :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: butch2k on March 15, 2011, 04:51:32 PM
Hummm I noticed something odd with SP and RC5.
Could someone with RC5 and SP installed test posting this ?

[quote=test]This is a quoted text[/quote]
[color=red][b]A colored answer ?[/b][/color]


the parse_tag_cache used with SP seems not to work well with the "parsed_tags_allowed" paramer used with this kind of quote as it results in anything behind it not to be parsed correctly (A colored answer ? appear without any style.)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: reefforum on March 15, 2011, 06:10:49 PM
Hello, i have been using this excellent mod for a couple of months and just love it.

I have the latest posts in the top blocks under a main photo.  my question:  is it possible to have the topic info next to the topic in the latest post?

this is what it looks like now:

(http://i1192.photobucket.com/albums/aa327/reefcollege/Picture1-1.png)


and I'd like it to look like this:

(http://i1192.photobucket.com/albums/aa327/reefcollege/Picture2-1.png)

possible?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 15, 2011, 07:42:10 PM
reefforum: SimplePortal, out of the box, does not come with a setting for that.
To achieve this, you would need to do some customization of the sp_recent function in  PortalBlocks.php

butch2k: I see what you mean. Tricky stuff.  I guess this will need a bug report filed at simpleportal.net

giovannie: The only thing I can guess is that the proxy server is messing with headers, which could cause a number of problems. I've heard of proxy servers messing with the REFERRER, which can really confuse SMF.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: MATTEK on March 15, 2011, 08:31:36 PM
Quote from: butch2k on March 15, 2011, 04:51:32 PM
Hummm I noticed something odd with SP and RC5.
Could someone with RC5 and SP installed test posting this ?

[quote=test]This is a quoted text[/quote]
[color=red][b]A colored answer ?[/b][/color]


the parse_tag_cache used with SP seems not to work well with the "parsed_tags_allowed" paramer used with this kind of quote as it results in anything behind it not to be parsed correctly (A colored answer ? appear without any style.)

Yea. I can't get any color either.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: reefforum on March 15, 2011, 08:53:58 PM
Quote from: AngelinaBelle on March 15, 2011, 07:42:10 PM
reefforum: SimplePortal, out of the box, does not come with a setting for that.
To achieve this, you would need to do some customization of the sp_recent function in  PortalBlocks.php


any chance you could tell me how to do it? I need to make changes to this part?



<tr>
<td class="sp_recent_icon sp_center">
', sp_embed_image(empty($parameters['type']) ? 'post' : 'topic'), '
</td>
<td class="sp_recent_subject">
<a href="', $item['href'], '">', $item['subject'], '</a>
', $item['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>', '<br />[', $item['board']['link'], ']
</td>
<td class="sp_recent_info sp_right">
', $item['poster']['link'], '<br />', $item['time'], '
</td>
</tr>';
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 15, 2011, 09:20:23 PM
Check with the SSI_ function to see which values you can get from it.
It will certainly take some time to sit down and sort that all out.
This support thread is probably not the best place for that kind of work.
You might try a custom coding board here or at simpleportal.net -- wherever you think you might attract the most number of interested passers-by.

Enjoy!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: butch2k on March 16, 2011, 04:40:08 AM
Quote from: AngelinaBelle on March 15, 2011, 07:42:10 PM
butch2k: I see what you mean. Tricky stuff.  I guess this will need a bug report filed at simpleportal.net
/quote]Thanks i reported the issue.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: WhiteEagle on March 18, 2011, 12:03:35 PM
Question:

How do I edit the staff block to make it show what usergroups I want it to show, cause I don't want it to show two groups that aren't post-count based.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 18, 2011, 12:50:24 PM
WhiteEagle -- that would take some custom coding. Other users have done some related things with that block. Please make a quick search at SimpleMachines.org to get some ideas.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: thesikaleon on March 19, 2011, 05:09:32 PM
I made some custom pages and I made some custom tabs following this guide http://www.simplemachines.org/community/index.php?topic=261880.0


When I'm on the custom page the tab is not highlighted, but its the Home tab highlighted.

What i should change?

thanks for your time
Title: Re: SimplePortal - 2.3.3 Released!
Post by: syphergaming on March 21, 2011, 12:23:22 PM
idk if this has been posted on here or not but when i veiw my portal and some other things i see this
(http://www.syphergaming.com/sp2error.png)
i edit this theme me and my m8 edit this theme in RC3
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 21, 2011, 12:52:52 PM
syphergaming -- copy portal.css from Themes/default/css into the css directory of your custom theme. That should correct the titlebar problem.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: bros on March 21, 2011, 06:48:05 PM
Would it be possible to make it so that people with certain masks don't see certain blocks, even if they are admins?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 21, 2011, 07:21:51 PM
SimplePortal does not provide a way to hide blocks from admin.
That would require customization of SimplePortal, or using a custom php block.

You can search simpleportal.net to find other users who have successfully hidden blocks from admin, using a little code provided by SimplePortals' developers.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: -=[Vyorel]=- on March 21, 2011, 08:46:53 PM
Quote from: syphergaming on March 21, 2011, 12:23:22 PM
idk if this has been posted on here or not but when i veiw my portal and some other things i see this
(http://www.syphergaming.com/sp2error.png)
i edit this theme me and my m8 edit this theme in RC3

replace the main_block.png of your theme with the main_block.png of default theme.


Themes/your-theme/images/theme -> main_block.png
Themes/default/images/theme -> main_block.png

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Arantor on March 21, 2011, 08:58:56 PM
Or you could do as others have advised and copy the portal.css file across instead so as to retain the custom theme look rather than replacing/damaging the theme.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ironhide1 on March 23, 2011, 10:46:58 PM
Hello using RC5 and 2.3.3 how would I go about showing user avatars in the recent post section? Really like how this mod works and that is the only feature I would like to carry through from TP. Any help is greatly appreciated.

Thanks
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 24, 2011, 10:13:05 AM
SimplePortal does not show avatars in the recent posts block. This feature would require a change to the php code.

Other users have also been discussing similar things recently in the custom coding boards at http://SimplePortal.net
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on March 24, 2011, 10:27:02 AM
Hi AB not seen you for a while.

Not sure if this has been mentioned before but is there an easy way to reset the pages views back to 0?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 24, 2011, 10:40:38 AM
Quote from: Brack1 on March 24, 2011, 10:27:02 AM
Not sure if this has been mentioned before but is there an easy way to reset the pages views back to 0?
? pages views?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on March 24, 2011, 10:44:38 AM
Oops.

The pages made via the portal. You can see the number of times one is viewed but i was wondering if these could be reset to 0.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 24, 2011, 10:53:33 AM
Right in front of my face, and I never noticed that! I am certain that, if you traced it through, you would find out where, on the sp_pages table, that statistic is stored. I couldn't tell you more than that, since I've never looked.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on March 24, 2011, 11:02:27 AM
 :laugh:

Ya learn something new every day.

I have used sp since the days of 1.1.8 yet only started using the pages this year.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ironhide1 on March 24, 2011, 01:02:18 PM
Quote from: AngelinaBelle on March 24, 2011, 10:13:05 AM
SimplePortal does not show avatars in the recent posts block. This feature would require a change to the php code.

Other users have also been discussing similar things recently in the custom coding boards at http://SimplePortal.net

Thanks for the direction I will check it out. Much appreciated.

One other question here though: Is there a certain amount of RSS feeds that SP can handle? I have about 4 feeds woking well. All from the same source: FeedBurner. When I go to add more I get XML errors.
What I am attempting to accomplish is each of my boards to have a different news feed relevant to the topic. So the right hand panel will be pretty heavy with RSS since I'm showing a different on each board.

Thanks again.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: briggz5d on March 24, 2011, 01:06:22 PM
smf 1.1.13
I've used html in several left blocks without problem, here's one tiny problem.
  The Facebook Like BOX code show a "SCROLL bar" (Horizontal/Vertical) in Internet explorer.
I have tried  increasing the left block width.

Note: This scroll bar is only visible in Internet explorer browser.
Google chrome  & firefox displays the facebook like box just fine.
As a temporary solution i added alot  of <br></b> tags forcing the scroll bar to display wat important first
any suggestions?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 25, 2011, 08:06:22 AM
@ironhide1: The RSS problem is likely related to the one feed giving you the problem. You can check it at the feed validator.
Unfortunately, though, the SimplePortal RSS block fails on some feeds that seem perfectly legitimate.
The reason is that the block depends on some SMF functions that seem like they ought to do the job, but were not explicitly designed for or tested with RSS feeds.

@soki2ng: These kinds of problems are common in IE browsers. SMF's developers have tried hard to accommodate some of the differences between IE and the other browsers, but it can be very difficult to make some things work in all browsers all the time.  One thing you can do is decrease the width of the facebook like block -- go back to the page at facebook that gives you that code, and make the width parameter smaller.  If your side block is 200, try a facebook like block of 195 or 190.  That ought to help.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ironhide1 on March 25, 2011, 08:24:05 AM
Quote from: AngelinaBelle on March 25, 2011, 08:06:22 AM
@ironhide1: The RSS problem is likely related to the one feed giving you the problem. You can check it at the feed validator.
Unfortunately, though, the SimplePortal RSS block fails on some feeds that seem perfectly legitimate.
The reason is that the block depends on some SMF functions that seem like they ought to do the job, but were not explicitly designed for or tested with RSS feeds.

Thanks for the help. I found that the issue was in an RSS aggregator (yahoo pipes) I was using, so I trimmed it down to 1 feed and everything works well now.
Thanks for the timely response
Title: Re: SimplePortal - 2.3.3 Released!
Post by: jack001 on March 26, 2011, 06:53:53 AM
hello,
i have been using this in my forum smf 1.1.13 for a long time without any error. And i love it. Now i made a new forum used RC5.0 where i am facing some problem. I got installed without any error  but cant add any shoutbox block. It dint click on round button in adding shoutbox.

Not only shoutbox but it dint click on any of the block except 2 or 3 of all.

So please tell me the solution. :-(
btw awesome mod.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 26, 2011, 10:15:47 AM
Please be more specific about your problem.
I don't think I understand what you mean by "it dint click on any of the block except 2 or 3 of all".

Who has the problem (guest, general user, admin?)
What was the user doing?
Where was that user trying to do that (all of the URL after the index.php? would help)
When does this happen?
Why are you doing this (what task are you trying to accomplish)
How are you trying to do this (what steps did you take)?

Thanks for providing the who, what, where, when, why, and how that describes your problem.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: jack001 on March 26, 2011, 10:52:45 AM
i mean to say

i have installed this mod in rc5. Now i have added shoutbox in admin panel(but not added block for shoutbox). I need to add block of shoutbox so i opened add blocks where there are many options of adding different types of blocks.

What problem i am facing is:
i am unable to create shoutbox block.
I cannot select any of the block in add block section except 1st three.

Hope you got now what i mean to say.
Thank you for your reply.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on March 27, 2011, 06:50:35 PM
So it is not only shoutbox block that is a problem.
There are many types of blocks which you cannot add?

This is an unusual problem. I do not know what causes it.
Can you bring this over to simpleportal.net, and I will try to get someone with dev knowledge to advise you?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Mondim^^ on March 31, 2011, 02:02:42 PM
Hey Guys!
I have small bug!

I have website 2.0 RC5 and I install overview theme for RC5.
After I install simpleportal and in blocks appear on left small blue streak

Someone know how resolve?

Help Please! It's important!

Thanks!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 01, 2011, 06:52:10 AM
If I understand you, it sounds as though you are not getting the image that goes in the left-most piece of each block's title bar.
It sounds like you need to take a copy of Themes/defalut/css/portal.css to every theme's css folder.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: xrunner on April 02, 2011, 08:48:09 AM
I'm running SMF 2.0 RC5 (which isn't an option for your version selection when you sign up here) and I have the latest SP - 2.3.3

It looks like the Shout Box that comes with Simple Portal is what I need, but I have a question first before I start using it. I wanted a SB that auto-refreshed, and this one can be made to do that. But I know it can put an additional load on the server. What I want to know is how the additional load manifests itself. I would assume it is higher the faster the refresh rate is set. But what about users? Is it a load per user, or is it just a refresh for all users once every x seconds? In other words does it matter how many users there are (I don't have that many).

I've had an older SB on the 1.1. series of SMF that refreshed itself and it didn't seem to bother my hosting Co. I just want a feel for how the loading works and really, how much of an issue it really is.

Thanks.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ukhalik2 on April 02, 2011, 05:33:24 PM
anyone got it fully functioning on RC5 ?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: xrunner on April 02, 2011, 06:00:23 PM
Quote from: ukhalik2 on April 02, 2011, 05:33:24 PM
anyone got it fully functioning on RC5 ?

I do - click on my banner.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: InfoStrides on April 03, 2011, 02:17:26 PM
I am having issues with my simple portal installation. Just today, my home page (http://www.theinfostrides.com) (http://www.theinfostrides.com (http://www.theinfostrides.com)) was loading so slow that it took around 500seconds. I even challenged my host.

While troubleshoting, I found that every other pages were loading normally except the home page. I changed my simple portal settings. In the "Portal Mode", I selected "Integration" which return my forum to present state.

What can I do?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 04, 2011, 06:55:45 AM
Try removing one portal block at a time, to see if you can figure out if one of them is causing the slowdown.
Another possibility is that you simply have too much going on at the portal page for what your database host allows in in database power.
You will have to experiment a bit to narrow it down.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Bobn on April 04, 2011, 03:24:53 PM
Where do I edit the default text?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 05, 2011, 09:49:53 AM
Bobn,
I think you are talking about changing what the blocks display?
All of your blocks are listed in the blocks list.

Get to know them a little. Enable and disable them, one by one, until you figure out which is which.
Then you will know which blocks you wish to edit, and which you wish to delete.

Have fun!

Feel free to go to SimpleMachines.org and read the Docs there.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: InfoStrides on April 09, 2011, 03:34:51 PM
Quote from: AngelinaBelle on April 04, 2011, 06:55:45 AM
Try removing one portal block at a time, to see if you can figure out if one of them is causing the slowdown.
Another possibility is that you simply have too much going on at the portal page for what your database host allows in in database power.
You will have to experiment a bit to narrow it down.

Thanks. I will do just that.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: xrunner on April 10, 2011, 11:06:38 AM
I have checked how Simple Portal looks on several computers using the IE browser and it does not look correct under IE, but does under other browser (FF, Chrome).
The entire right hand column is not appearing. Also, the middle boxes are reversed (top to bottom) from what they should be (looks OK under FF and Chrome).

It is not the theme because it happens under the default theme.

What is the problem? I want my portal to appear correct for all users out there.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 10, 2011, 12:25:34 PM
Sounds like you might have some bad HTML on the page.
IE sometimes handles incorrect HTML more gracefully -- the other browsers make some guesses about "what you really meant".

Please submit the page to an HTML validator.

What version of SimplePortal are you using? What version of SMF? Are you using the "no body" option on any of your blocks?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: xrunner on April 10, 2011, 12:33:29 PM
Quote from: AngelinaBelle on April 10, 2011, 12:25:34 PM
Sounds like you might have some bad HTML on the page.
IE sometimes handles incorrect HTML more gracefully -- the other browsers make some guesses about "what you really meant".

I don't "mean" anything - I didn't code the pages, I just installed the Simple Portal mod. All the code came from it ...

Quote
What version of SimplePortal are you using? What version of SMF? Are you using the "no body" option on any of your blocks?

SP 2.3.3, SMF 2.0 RC5

But -

I have figured out the issue with Simple Portal and IE this morning - it has to do with the following controls -

Width of Left Side Blocks
Width of Right Side Blocks


If you decide to use percentages, such as 50%, IE will not display the page properly. If you use pixels, IE will display it properly. There must be a compatibility or coding issue with Simple Portal's percentage sizing method that works differently in IE than the other browsers. Again, all that comes from the mod installation - not the user!

I bet you if the Simple Portal support page were to test this out, they would see the same issue with IE. Right now I can tell they are not using the percentage size option for the left and right side blocks.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 10, 2011, 03:47:31 PM
You know -- I was just guessing about what kinds of things often cause these types of errors.
It was most helpful to see a link to the page in your post at the SimplePortal website.
I think that narrowed it down.

Thank you for providing the information we need to help you.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: w0lfman on April 10, 2011, 10:18:19 PM
I'm using SMF 1.1.13 and after installing the MOD all I get is the error message below.  Is anyone familiar with the message after install the Simple Portal MOD?  I cant even get to my ADmin Control Panel to remove the MOD.  I attached a picture of the actual problem as well.


<?php

if (!defined('SMF'))
die('Hacking attempt...');

/*

File: Subs-SPortal1-1.php
Version: SimplePortal 2.1.1 for SMF 1.x

getBlockInfo()
getFunctionInfo()
getCategoryInfo()
getArticleInfo()
createArticle()
fixCategoryArticles()
fixColumnRows()
changeBlockRow()
changeState()
sp_loadPermissions()
spAllowedTo()
sp_loadMemberGroups()
loadDatabaseTables()
databaseTableExists()

*/

function getBlockInfo($column_id null$block_id null$state null$show null)
{
global $scripturl$context$db_prefix$settings$txt;

$query = array();
if(!empty($column_id))
$query[] = "col = '$column_id'";
if(!empty($block_id))
$query[] = "ID_BLOCK = '$block_id'";
if(!empty($state))
$query[] = "state = '1'";

$request db_query("
SELECT ID_BLOCK, label, type, content, parameters, col, row, state, force_view, allowed_groups, permission_type, display
FROM 
{$db_prefix}sp_blocks" .
(!empty($query) ? " WHERE " implode(' AND '$query) : "") .
" ORDER BY row"__FILE____LINE__);
$return = array();
while ($row mysql_fetch_assoc($request))
{
if(!empty($show) && !getShowInfo($row['ID_BLOCK'], $row['display']))
continue;

if(!spAllowedTo('block'$row['ID_BLOCK']))
continue;

$return[] = array(
'id' => $row['ID_BLOCK'],
'label' => $row['label'],
'type' => $row['type'],
'type_text' => !empty($txt['sp_function_'.$row['type'].'_label']) ? $txt['sp_function_'.$row['type'].'_label'] : $txt['sp_function_unkown_label'],
'content' => $row['content'],
'parameters' => $row['parameters'],
'column' => $row['col'],
'row' => $row['row'],
'state' => empty($row['state']) ? 1,
'force_view' => $row['force_view'],
'allowed_groups' => $row['allowed_groups'],
'permission_type' => $row['permission_type'],
'display' => $row['display'],
);
}
mysql_free_result($request);

return $return;
}

function 
getFunctionInfo($function null)
{
global $db_prefix;

$request db_query("
SELECT ID_FUNCTION, name, parameter
FROM 
{$db_prefix}sp_functions" .
(!empty($function) ? " WHERE name = '$function'" "") .
" ORDER BY ID_FUNCTION ASC"__FILE____LINE__);
$return = array();
while ($row mysql_fetch_assoc($request))
{
//There is one function who is not allowed to use by non admins
if($row['name'] == 'sp_php' && !allowedTo('admin_forum'))
continue;
$return[] = array(
'id' => $row['ID_FUNCTION'],
'function' => $row['name'],
'parameter' => $row['parameter'],
);
}
mysql_free_result($request);

return $return;
}

function 
getCategoryInfo($category_id null)
{
global $scripturl$context$db_prefix$settings$txt;

$request db_query("
SELECT ID_CATEGORY, name, picture, articles, publish
FROM 
{$db_prefix}sp_categories" .
(!empty($category_id) ? " WHERE ID_CATEGORY = '$category_id'" "") .
" ORDER BY ID_CATEGORY"__FILE____LINE__);
$return = array();
while ($row mysql_fetch_assoc($request))
{

$return[] = array(
'id' => $row['ID_CATEGORY'],
'name' => $row['name'],
'picture' => array (
'href' => $row['picture'],
'image' => '<img src="' $row['picture'] . '" alt="' $row['name'] . '" width="75" />',
),
'articles' => $row['articles'],
'publish' => $row['publish'],
);
}
mysql_free_result($request);

return $return;
}

function 
getArticleInfo($article_id null$category_id null$message_id null$approved null)
{
global $db_prefix;

$query = array();
if(!empty($article_id))
$query[] = "ID_ARTICLE = '$article_id'";
if(!empty($category_id))
$query[] = "ID_CATEGORY = '$category_id'";
if(!empty($message_id))
$query[] = "ID_MESSAGE = '$message_id'";
if(!empty($approved))
$query[] = "approved = '1'";

$request db_query("
SELECT a.ID_ARTICLE, a.ID_CATEGORY, a.ID_MESSAGE, a.approved, c.name
FROM 
{$db_prefix}sp_articles as a
LEFT JOIN 
{$db_prefix}sp_categories AS c ON (c.ID_CATEGORY = a.ID_CATEGORY)" .
(!empty($query) ? " WHERE " implode(' AND '$query) : "") .
" ORDER BY ID_ARTICLE"__FILE____LINE__);
$return = array();
while ($row mysql_fetch_assoc($request))
{

$return[] = array(
'article' => array(
'id' => $row['ID_ARTICLE'],
'approved' => $row['approved'],
),
'category' => array(
'id' => $row['ID_CATEGORY'],
'name' => $row['name'],
),
'message' => array(
'id' => $row['ID_MESSAGE'],
),
);
}
mysql_free_result($request);

return $return;
}

function 
createArticle($articleOptions)
{
global $db_prefix;

$articleOptions['ID_CATEGORY'] = !empty($articleOptions['ID_CATEGORY']) ? (int) $articleOptions['ID_CATEGORY'] : 0;
$articleOptions['ID_MESSAGE'] = !empty($articleOptions['ID_MESSAGE']) ? (int) $articleOptions['ID_MESSAGE'] : 0;
$articleOptions['approved'] = !empty($articleOptions['approved']) ? (int) $articleOptions['approved'] : 0;

$request db_query("
SELECT ID_MESSAGE
FROM 
{$db_prefix}sp_articles
WHERE ID_MESSAGE = '
$articleOptions[ID_MESSAGE]'
LIMIT 1"
__FILE____LINE__);
list ($exists) = mysql_fetch_row($request);
mysql_free_result($request);

if(empty($articleOptions['ID_CATEGORY']) || empty($articleOptions['ID_MESSAGE']) || $exists)
return false;

db_query("
INSERT INTO 
{$db_prefix}sp_articles
(ID_CATEGORY, ID_MESSAGE, approved)
VALUES ('
$articleOptions[ID_CATEGORY]', '$articleOptions[ID_MESSAGE]', $articleOptions[approved])"__FILE____LINE__);

db_query("
UPDATE 
{$db_prefix}sp_categories
SET articles = articles + 1
WHERE ID_CATEGORY = 
$articleOptions[ID_CATEGORY]
LIMIT 1"
__FILE____LINE__);
}

function 
fixCategoryArticles()
{
global $db_prefix;

$categoryList getCategoryInfo();
$category_ids = array();

foreach($categoryList as $category)
$category_ids[] = $category['id'];

foreach($category_ids as $category) {

$article_count 0;

$result db_query("
SELECT COUNT(*)
FROM 
{$db_prefix}sp_articles
WHERE ID_CATEGORY = 
$category"__FILE____LINE__);
list ($article_count) = mysql_fetch_row($result);
mysql_free_result($result);

db_query("
UPDATE 
{$db_prefix}sp_categories
SET articles = 
$article_count
WHERE ID_CATEGORY = 
$category
LIMIT 1"
__FILE____LINE__);
}
}

function 
fixColumnRows($column_id null)
{
global $db_prefix;

$blockList getBlockInfo($column_id);
$block_ids = array();

foreach($blockList as $block)
$block_ids[] = $block['id'];

$counter 0;

foreach($block_ids as $block) {

$counter $counter 1;

db_query("
UPDATE 
{$db_prefix}sp_blocks
SET row = 
$counter
WHERE ID_BLOCK = 
$block
LIMIT 1"
__FILE____LINE__);
}
}

function 
changeBlockRow($block_id null$direction null)
{
global $db_prefix;

$blockInfo getBlockInfo(null$block_id);
$blockInfo $blockInfo[0];

db_query("
UPDATE 
{$db_prefix}sp_blocks
SET row = 
$blockInfo[row]
WHERE row = 
$blockInfo[row] " . ($direction == 'up' "-" "+") . " 1
AND col = 
$blockInfo[column]
LIMIT 1"
__FILE____LINE__);

db_query("
UPDATE 
{$db_prefix}sp_blocks
SET row = row " 
. ($direction == 'up' "-" "+") . " 1
WHERE ID_BLOCK = 
$block_id
AND col = 
$blockInfo[column]
LIMIT 1"
__FILE____LINE__);
}

function 
changeState($type null$id null)
{
global $db_prefix;

if($type == 'block')
$query = array(
'column' => 'state',
'table' => 'blocks',
'id' => 'ID_BLOCK'
);
elseif($type == 'category')
$query = array(
'column' => 'publish',
'table' => 'categories',
'id' => 'ID_CATEGORY'
);
elseif($type == 'article')
$query = array(
'column' => 'approved',
'table' => 'articles',
'id' => 'ID_ARTICLE'
);
else
return false;

$request db_query("
SELECT 
$query[column]
FROM 
{$db_prefix}sp_$query[table]
WHERE 
$query[id] = $id
LIMIT 1"
__FILE____LINE__);
list ($state) = mysql_fetch_row($request);
mysql_free_result($request);

$state = (int) $state;
$state = ($state == 1) ? ;

db_query("
UPDATE 
{$db_prefix}sp_$query[table]
SET 
$query[column] = $state
WHERE 
$query[id] = $id
LIMIT 1"
__FILE____LINE__);
}

// Make the allowed check faster, because i can cache this data!
// force_view is used for the way to make 3 diffrent ways to check blocks!
function sp_loadPermissions($type null) {
global $db_prefix$sp_context$user_info;

//Checkup
if(empty($type) || !in_array($type, array('block''article'))) 
return false;

//Prevent double load :)
if(!isset($sp_context['permissions'][$type]))
$sp_context['permissions'][$type] = array();
else
return !empty($sp_context['permissions'][$type]); //On false allowed to nothing ;P

//Blockquery Informations :)
if($type == 'block') {
// Get the necessary block information.
$request db_query("
SELECT allowed_groups AS allowed_groups, id_block AS id, permission_type
FROM 
{$db_prefix}sp_blocks
WHERE (permission_type = 2 
OR (FIND_IN_SET(" 
implode(', allowed_groups) OR FIND_IN_SET('$user_info['groups']) . ", allowed_groups)))"__FILE____LINE__);
}
else {
// Get the necessary block information.
$request db_query("
SELECT allowed_groups AS allowed_groups, id_article AS id
FROM 
{$db_prefix}sp_articles
WHERE (FIND_IN_SET(" 
implode(', allowed_groups) OR FIND_IN_SET('$user_info['groups']) . ", allowed_groups))"__FILE____LINE__);
}

//The output will only show the allowed positions ;D
while($row mysql_fetch_assoc($request)) {
//This Permission need a extra checkup 8), it's a faster query now, a lot faster!
if(!empty($row['permission_type']) && $row['permission_type'] == 1) {
if(count(array_intersect($user_info['groups'], explode(','$row['allowed_groups']))) != count($user_info['groups']))
continue;
}
$sp_context['permissions'][$type][$row['id']] = $row['id'];
}
mysql_free_result($request);

//Okay chached it ;) now it should be faster... a lot faster 8)
return !empty($sp_context['permissions'][$type]);
}

// Function to check if users are allowed to view certain blocks.
function spAllowedTo($type null$id null)
{
global $sp_context;
// SP moderators are supermen. :D i need to do nothing if this correct! It's to late checked!
// And this is the reason why admin unselect never work!
// If we like to fix this we need to think about a way to allowed it in a other way or insert a force admin check
if(allowedTo('sp_moderate'))
return true;
// Sanitize the ID.
$id = (int) $id;
// Make sure that we have a proper id, load Permissions and store a chache 
if(empty($id) || sp_loadPermissions($type) === false || empty($type))
return false;
//Pah if it isset than you allowed, if not than not :)
return isset($sp_context['permissions'][$type][$id]);
}

/*
void sp_loadMemberGroups(Array $selectedGroups = array, Array $removeGroups = array(), string $show = 'normal', string $contextName = 'member_groups')
This will file the $context['member_groups'] to the given options
$selectedGroups means all groups who should be shown as selcted, if you like to check all than insert an 'all'
You can also Give the function a string with '2,3,4'
$removeGroups this group id should not shown in the list
$show have follow options
'normal' => will show all groups, and add a guest and regular member (Standard)
'post' => will load only post groups
'master' => will load only not postbased groups
$contextName where the datas should stored in the $context;

The Administrator group id 1 will evertime ignored!
*/
function sp_loadMemberGroups($selectedGroups = array(), $show 'normal'$contextName 'member_groups')  {
global $db_prefix$context$smcFunc$txt;

//Some additional Language stings are needed
loadLanguage('ManageBoards');

// Make sure its empty
$context[$contextName] = array();

//Preseting some things :)
if(!is_array($selectedGroups))
$checked strtolower($selectedGroups) == 'all';
else
$checked false;

if(!$checked && !empty($selectedGroups)) {
if(!is_array($selectedGroups)) 
$selectedGroups explode(','$selectedGroups);
//Remove all strings, i will only allowe ids :P
foreach($selectedGroups as $k => $i)
$selectedGroups[$k] = (int) $i;
$selectedGroups array_unique($selectedGroups);
}
else
$selectedGroups = array();

//Okay let's checkup the show function
$show_option = array(
'normal' => 'ID_GROUP != 1',
'post' => 'minPosts != -1',
'master' => 'minPosts = -1 AND ID_GROUP != 1',
);
$show strtolower($show);
if(!isset($show_option[$show]))
$show 'normal';

// Guest and Members are added manually. Only on normal ond master View =)
if($show == 'normal' || $show == 'master') {
$context[$contextName][-1] = array(
'id' => -1,
'name' => $txt['membergroups_guests'],
'checked' => $checked || in_array(-1$selectedGroups),
'is_post_group' => false,
);
$context[$contextName][0] = array(
'id' => 0,
'name' => $txt['membergroups_members'],
'checked' => $checked || in_array(0$selectedGroups),
'is_post_group' => false,
);
}

// Load membergroups.
$request db_query("
SELECT groupName, ID_GROUP, minPosts
FROM 
{$db_prefix}membergroups
WHERE "
.$show_option[$show]."
ORDER BY minPosts, ID_GROUP != 2, groupName"
,__FILE____LINE__);
while ($row mysql_fetch_assoc($request))
{
$context[$contextName][(int) $row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => trim($row['groupName']),
'checked' => $checked || in_array($row['ID_GROUP'], $selectedGroups),
'is_post_group' => $row['minPosts'] != -1,
);
}
mysql_free_result($request);
}

function 
sp_queryFix($tourniquet)
{
global $sportal_version$context;

if (SMF == 'SSI' || empty($context['template_layers']) || WIRELESS)
return $tourniquet;

$fix str_replace('{version}'$sportal_version'<a href="http://www.simpleportal.net/" target="_blank">SimplePortal {version}</a>');

$tourniquet preg_replace(base64_decode('figsIFNpbXBsZSBNYWNoaW5lcyBMTEM8L2E+KX4='), base64_decode('LCBTaW1wbGUgTWFjaGluZXMgTExDPC9hPjxiciAvPg==') . $fix$tourniquet);

if (strpos($tourniquet'www.simpleportal.net') === false)
{
$fix '<div class="smalltext" style="text-align: center; width: 100%;">' $fix '</div>';
$tourniquet preg_replace('~</body>\s*</html>~'$fix$tourniquet);
}

return $tourniquet;
}

// Function to get a block's display/show information.
function getShowInfo($block_id null$display null)
{
global $db_prefix$context$modSettings;

// Do we have the display info?
if(empty($display))
{
// Make sure that its an integer.
$block_id = (int) $block_id;

// We need an ID.
if(empty($block_id))
return false;

// Get the info.
$request db_query("
SELECT display
FROM 
{$db_prefix}sp_blocks
WHERE ID_BLOCK = 
$block_id
LIMIT 1"
__FILE____LINE__);
list ($display) = mysql_fetch_row($request);
mysql_free_result($request);
}

// Some variables for ease.
$action = !empty($context['current_action']) ? $context['current_action'] : '';
$board = !empty($context['current_board']) ? $context['current_board'] : '';
$portal = (empty($action) && empty($board)) ? true false;

// Set some action exceptions.
$exceptions = array(
'post' => array('announce''editpoll''post2''sendtopic'),
'register' => array('activate''coppa'),
'forum' => array('collapse'),
'admin' => array('credits''theme''viewquery''admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers''spadmin'),
'login' => array('reminder'),
'profile' => array('trackip''viewprofile'),
);

// Set the action to more known one.
foreach($exceptions as $key => $exception)
{
if(in_array($action$exception))
$action $key;
}

// If no display info and/or integration disabled and we are on portal; show it!
if((empty($display) || empty($modSettings['sp_enableIntegration'])) && $portal)
return true;
// No display info and/or integration disabled and no portal; no need...
elseif(empty($display) || empty($modSettings['sp_enableIntegration']))
return false;
// Get ready for real action if you haven't yet.
elseif(!is_array($display))
$display explode(', '$display);

// Did we disable all blocks for this action?
if(!empty($modSettings['sp_' $action 'IntegrationHide']))
return false;
// If we will display show the block.
elseif(in_array('all'$display))
return true;
// If we are on portal, show portal blocks; if we are on forum, show forum blocks.
elseif(($portal && (in_array('portal'$display) || in_array('sportal'$display))) || (!$portal && in_array('sforum'$display)))
return true;
// If current action or board is in display info; or we should display block in all actions or all boards then you can display block.
elseif((!empty($action) && (in_array('allaction'$display) || in_array($action$display))) || (!empty($board) && (in_array('allboard'$display) || in_array($board$display))))
return true;

// Ummm, no block!
return false;
}

function 
sp_checkSyntax($code)
{
    return @eval(
'return true;' $code);
}

/*
bool loadDatabaseTables ()
- Preload database Tables this will be only done once per script call
- Return false on error
- Mysql 3.x+ Compatible ;) for SMF 1.1.x
*/
function loadDatabaseTables() {
global $database_tables$db_name;

if(isset($database_tables))
return !empty($database_tables);
else
$database_tables = array();

//Prepare a Checkup ;D
$request db_query("SHOW TABLES FROM `{$db_name}`"__FILE____LINE__);
while ($row mysql_fetch_assoc($request))
$database_tables[] = strtolower(current($row));
mysql_free_result($request);
return !empty($database_tables);
}

/*
bool databaseTableExists (string tablename, bool $addprefix = true)
- Work only in SMF 1.1.x (SMF 2.0.x work diffrent, but it's possible to insert)
- Return true if the tablename exits
- $addprefix will automatic add the $db_prefix (Check also it this is allready done!)
*/
function databaseTableExists($tablename ''$addprefix true) {
global $database_tables$db_prefix;

//Nothing to Serach for ;)
if(empty($tablename))
return false;

//Error ?_?
if(empty($database_tables) && !loadDatabaseTables())
return false;

//First thing i do.. i know normal i should not so this ;P But it's good enouph for smf ;)
$tablename strtolower($tablename);

//Table Prefix auto add? :D
if($addprefix === true && strpos($tablename$db_prefix) !== 0) {
//Looks not so nice ;) but it work trust me ;P
if(strpos($tablename'{$db_prefix}') !== false)
$tablename str_replace('{$db_prefix}'$db_prefix$tablename);
elseif(strpos($tablename'$db_prefix') !== false)
$tablename str_replace('$db_prefix'$db_prefix$tablename);
else
$tablename $db_prefix.$tablename;
}
return in_array($tablename$database_tables);
}

//This function return the correct array that is called.
function sp_loadCalendarData($type$low_date$high_date false) {
global $sourcedir;
static $loaded;
if(!isset($loaded)) {
if(file_exists($sourcedir '/Subs-Calendar.php')) {
require_once($sourcedir '/Subs-Calendar.php');
$loaded['getEvents'] = 'getEventRange';
$loaded['getBirthdays'] = 'getBirthdayRange';
$loaded['getHolidays'] = 'getHolidayRange';
}
else {
require_once($sourcedir '/Calendar.php');
$loaded['getEvents'] = 'calendarEventArray';
$loaded['getBirthdays'] = 'calendarBirthdayArray';
$loaded['getHolidays'] = 'calendarHolidayArray';
}
}
return !empty($loaded[$type]) ? $loaded[$type]($low_date, ($high_date === false $low_date $high_date)) : array();
}

function 
sp_startElement($parser$name$attrs)
{
global $rss_data$rss_current$rss_main;

switch($name)
{
case 'RSS':
case 'RDF:RDF':
case 'ITEMS':
$rss_current '';
break;
case 'CHANNEL':
$rss_main 'CHANNEL';
break;
case 'IMAGE':
$rss_main 'IMAGE';
$rss_data['IMAGE'] = array();
break;
case 'ITEM':
$rss_main 'ITEMS';
break;
default:
$rss_current $name;
break;
}
}

function 
sp_endElement($parser$name)
{
global $rss_data$rss_current$rss_counter;

$rss_current '';

if ($name == 'ITEM')
$rss_counter++;
}

function 
sp_characterData($parser$data)
{
global $rss_data$rss_current$rss_main$rss_counter;

if (!empty($rss_current))
{
switch($rss_main)
{
case 'CHANNEL':
if (isset($rss_data[$rss_current]))
$rss_data[$rss_current] .= $data;
else
$rss_data[$rss_current] = $data;
break;
case 'IMAGE':
if (isset($rss_data[$rss_main][$rss_current]))
$rss_data[$rss_main][$rss_current] .= $data;
else
$rss_data[$rss_main][$rss_current] = $data;
break;
case 'ITEMS':
if (isset($rss_data[$rss_main][$rss_counter][$rss_current]))
$rss_data[$rss_main][$rss_counter][$rss_current] .= $data;
else
$rss_data[$rss_main][$rss_counter][$rss_current] = $data;
break;
}
}
}

?>
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 11, 2011, 03:40:22 PM
Two things may have happened here.

You did not have any complaints before you installed SimplePortal? nothing about your database being out of date for SMF 1.1.3?

It seems that the installer failed to make the required changes to the SimplePortal tables.

Can you, skipping your portal page, go to (your forum)/index.php?action=admin

Can you use your "backed-up" files to run a version of your forum files that does not have SimplePortal installed?

Title: Re: SimplePortal - 2.3.3 Released!
Post by: w0lfman on April 11, 2011, 04:26:59 PM
No complaints before I attempted the install for SimplePortal.  I updated to 1.1.13 on Friday, I beleive.  I tried to install SImplePortal last night. 

I cant go anywhere other than the screen you see in the attachment in my first post.  Everthing I do takes me back to the error message.

QuoteCan you use your "backed-up" files to run a version of your forum files that does not have SimplePortal installed?
Yes, but I dont know which forum files would that be.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 11, 2011, 04:49:43 PM
Once you revert to your pre-SimplePortal files, you can do an uninstall on SimplePortal (which should fail tests because you've already removed the edits, so it is ok to proceed even though tests failed)
You might as well use the check box remove all the SimplePortal data, while you are at it

After that, I would get install1-1.php out of the zip file and run it to see if it creates the SimplePortal tables properly this time.

This is where you ran into a problem. A simpleportal table did not have every column it should have had, and SMF was extremely unhappy as a result.


In general, you can order files by date, to see which ones were changed most recently.
So, for every file that was changed last night during the SimplePortal install, you will want the corresponding file with the ~ on the end.

Also, for every mod you got from here, you can use the parser to list the files involved in the rewrites:
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=160883;smf_version=1.1.13
This tells me the files involved are
index.php
SSI.php
Admin.php
BoardIndex.php
Display.php
Help.php
Load.php
ManagePermissions.php
ManageServer.php
QueryString.php
Recent.php
Subs.php
Who.php
index.template.php
Display.template.php





Title: Re: SimplePortal - 2.3.3 Released!
Post by: w0lfman on April 11, 2011, 05:50:52 PM
OK, I;ve overwritten the files that you suggested, but now I'm getting this error...

Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 12, 2011, 03:47:48 PM
That's an odd one. Make sure you have the correct information in settings.php.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 12, 2011, 08:33:58 PM

I have SMF 2.0 RC3 with the RC4 security patch and Simpleportal 2.3.2

I am getting an error in my error log whenever anybody clicks a link to one of my PHP pages, it does not give an error for BBC, or HTML.


http://gametechmods.com/forums/index.php?/page,page2096.html (http://gametechmods.com/forums/index.php?/page,page2096.html)

8: Undefined index: uploadedfile

File: /home/gametechmods/gametechmods.com/forums/Sources/Subs-Portal.php(1155) : eval()'d code (http://gametechmods.com/forums/index.php?action=admin;area=logs;sa=errorlog;file=L2hvbWUvZ2FtZXRlY2htb2RzL2dhbWV0ZWNobW9kcy5jb20vZm9ydW1zL1NvdXJjZXMvU3Vicy1Qb3J0YWwucGhwKDExNTUpIDogZXZhbCgpJ2QgY29kZQ==;line=5)
Line: 5



Here is my Subs-Portal.php .....you will see that line 5 has nothing to do with anything.





EDIT: these are uploaders and guests are not allowed, but the error code even pops up for me and other staff and well as regular members.


Here is the real link.. http://gametechmods.com/forums/index.php/page,page2096.html (http://gametechmods.com/forums/index.php/page,page2096.html)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 12, 2011, 08:44:42 PM
Quote from: ACAMS on April 12, 2011, 08:33:58 PMeval()'d code
That's your clue -- it is happening because of eval'd code, being evaluated in Subs-Portal.php (and therefore, by SimplePortal)
So it must be in one of your custom php blocks or pages -- one that appears at that URL.

Somewhere, you are using an array element ['uploadedfile'], but have not first created that array element. If it is supposed to be in a global variable, you need to start your code-to-be-eval()'d with a global statement declaring that global array.

That should fix it!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 12, 2011, 09:51:42 PM
I don't understand, can you tell me in simple terms.....yes, I do have uploadedfile in my code
I don't know where to make the statement, or how.


EDIT:
If it goes in my uploader code here is how it starts out.



<?
$target_path = "../Robot_Exchange/AW/"; /// upload folder
$allowedExtentions = "bot"; // allowed extentions
// Upload File
if($_FILES['uploadedfile']['name']){
   $ext = substr($_FILES['uploadedfile']['name'], strrpos($_FILES['uploadedfile']['name'], '.') + 1);
   $chechextentions = explode(",", $allowedExtentions);
   $isallowed = 0;
   foreach($chechextentions as $key => $name){
      if($name==$ext){$isallowed = 1;}
   }



If it needs to go somewhere else, I need to know exactly what and where......I is stuped.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 13, 2011, 08:29:43 AM
You are trying to use $_FILES['uploadedfile']['name'], but $_FILES['uploadedfile'] does not exist.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 13, 2011, 08:16:46 PM
Thanks.




Can somebody tell me what I need to do to fix my problem?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 14, 2011, 07:29:36 AM
Where did you get that code from?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 14, 2011, 09:48:42 AM
It is some old uploader code a friend wrote years ago that me and another guy have modified over the years to keep it working.
It works fine, just gives the error when I use it in a SimplePortal page. I did not post ALL the code, as I don't want it spread around.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 14, 2011, 10:48:18 AM
This piece of code depends on $_FILES['uploadedfile']['name']) being set. But, in the context of this SimplePortal page, it doesn't appear that the value has been set.

http://www.php.net/manual/en/reserved.variables.files.php
The $_FILES php variable is supposed to be an array of items uploaded to the current script via the HTTP POST method.
But if you are not getting to that page via an HTTP post that uploaded items, then that variable will not have been set.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: ALLSTARR on April 14, 2011, 02:42:59 PM
is this compatibel with smf 1.1.13 ?

grtzz
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 14, 2011, 02:49:17 PM
Yes. many users are using it with 1.1.13
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 14, 2011, 03:17:01 PM
Quote from: AngelinaBelle on April 14, 2011, 10:48:18 AM
This piece of code depends on $_FILES['uploadedfile']['name']) being set. But, in the context of this SimplePortal page, it doesn't appear that the value has been set.

http://www.php.net/manual/en/reserved.variables.files.php (http://www.php.net/manual/en/reserved.variables.files.php)
The $_FILES php variable is supposed to be an array of items uploaded to the current script via the HTTP POST method.
But if you are not getting to that page via an HTTP post that uploaded items, then that variable will not have been set.




What do I need to do to fix it?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 15, 2011, 08:26:37 AM
I don't have enough information about what you are trying to do.

But, basically, this part of the code needs to be on a page that is receiving the result of a form that uploaded a file.
Instead, it is hitting that part of the code (the part that affects $_FILE to have been set) without having had that php superglobal variable set.

I don't know more because I have not seen the code.
If I were trying to track down this problem, I would start with a very simple example of form handling, from your favorite php tutorial. The one at w3schools.com, for example. I would make sure that it is possible to handle a simple form in a SimplePortal php block. I have never tried this. I don't know what other parts of the page might be competing for the contents of the php variables.

I might also have a look through QueryString.php, in function cleanRequest. It doesn't look like anything bad happens to $_FILES in there. But I am not an expert on SMF coding.

This is definitely a bit of an advanced topic. You'll need the help of someone good handling forms in php, and preferably some experience modding SMF.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 15, 2011, 01:50:23 PM
Thanks for the reply, but I usually get THOUSANDS of errors a day and have now stopped most. Every time I fix one error problem another pops up, and now I am only getting about 50 a day......I can live with that!
I thought maybe it would be a simple fix, like maybe adding a line to Sources/Subs.php


Thanks anyway.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Alyen on April 15, 2011, 05:00:56 PM
error in database in SimplePortal 2.3.3 on SMF 2.0 RC5

Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull'
Arquivo: .../httpdocs/Sources/Subs-Portal.php
Linha: 1266
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Biology Forums on April 16, 2011, 10:41:33 PM
"
Fatal error: Cannot redeclare sp_topposter() (previously declared in /home/biologyf/public_html/Sources/Load.php:2539) in /home/biologyf/public_html/Sources/PortalBlocks.php on line 605"

I get this error after I install it, what should I do?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Suki on April 16, 2011, 10:54:38 PM
Quote from: Alyen on April 15, 2011, 05:00:56 PM
error in database in SimplePortal 2.3.3 on SMF 2.0 RC5

Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull'
Arquivo: .../httpdocs/Sources/Subs-Portal.php
Linha: 1266


You need to change your tables collation to use either utf8_unicode or utf8_general all,  sometimes even columns needs to be changed.


Quote from: shuban on April 16, 2011, 10:41:33 PM
"
Fatal error: Cannot redeclare sp_topposter() (previously declared in /home/biologyf/public_html/Sources/Load.php:2539) in /home/biologyf/public_html/Sources/PortalBlocks.php on line 605"

I get this error after I install it, what should I do?


You most likely install SP twice,  you will need to see the parser for SP and make sure you do not have any duplicate code in your files.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Alyen on April 18, 2011, 04:06:40 AM
Quote from: Miss All Sunday on April 16, 2011, 10:54:38 PM
Quote from: Alyen on April 15, 2011, 05:00:56 PM
error in database in SimplePortal 2.3.3 on SMF 2.0 RC5

Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull'
Arquivo: .../httpdocs/Sources/Subs-Portal.php
Linha: 1266


You need to change your tables collation to use either utf8_unicode or utf8_general all,  sometimes even columns needs to be changed.

how I can change that, not much of DB?  :P
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 18, 2011, 08:04:43 AM
@ACAMS
Your problem could be fixed by doing something to the code that is causing the problem -- the code you added to the php block.
I cannot know exactly what, because I haven't seen the code.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 18, 2011, 10:59:20 AM
Well I will show it to you if you don't mind looking at it for me.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 18, 2011, 11:27:08 AM
I can promise to look at it. I cannot promise I will be able to solve the problem, though!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 18, 2011, 12:03:54 PM
This is one of my uploaders, it is a PHP page in Simple Portal




<?
$target_path = "../Robot_Exchange/AW/"; /// upload folder
$allowedExtentions = "bot"; // allowed extentions
// Upload File
if($_FILES['uploadedfile']['name']){
$ext = substr($_FILES['uploadedfile']['name'], strrpos($_FILES['uploadedfile']['name'], '.') + 1);
$chechextentions = explode(",", $allowedExtentions);
$isallowed = 0;
foreach($chechextentions as $key => $name){
if($name==$ext){$isallowed = 1;}
}
if($isallowed == 0){ die("Sorry that filetype [$ext] is not allowed. We allow ($allowedExtentions)");}

    if (trim($_POST['user']) == '')
    {
        echo "Please put your name in the box";
    }
elseif (file_exists($target_path.$_FILES['uploadedfile']['name'])) {
    $bad_stuff = array("..", ".", "/", "\\");
        $random_digit = str_replace($bad_stuff, "", $_POST['user']) . "_DUPLICATE";
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path.$random_digit.basename( $_FILES['uploadedfile']['name']))) {
    echo "Your Bot ".  $random_digit.basename( $_FILES['uploadedfile']['name']). " has been uploaded <br>";
$fileurl= "http://".$_SERVER['SERVER_NAME']. "/".$target_path.$random_digit.basename( $_FILES['uploadedfile']['name']);?>
  <>
<div align="center">
  Thanks for sharing your bot<br>
  <? } else{
    echo "There was an error uploading the file, please try again!";
}
// other wise just upload
} else {
        $bad_stuff = array("..", ".", "/", "\\"); 
        $random_digit = str_replace($bad_stuff, "", $_POST['user']). "_";$random_digit = ($random_digit  !="" ? $random_digit : die("empty name"));
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path.$random_digit.basename( $_FILES['uploadedfile']['name']))) {
echo 'Your Bot '.$random_digit.basename( $_FILES['uploadedfile']['name']). " has been uploaded <br>";
$fileurl= "http://".$_SERVER['SERVER_NAME']. "/".$target_path.$random_digit.basename( $_FILES['uploadedfile']['name']);?>
<br><div align="center">Thanks for sharing your bot<br>
<>
  <? } else{
    echo "There was an error uploading the file, please try again!";
}
}
// Ask for upload info
}else{ ?>
<>
<form enctype="multipart/form-data" action="index.php?page=page4971" method="POST">
              <div align="center"><p>
  <BR><strong>YOUR FORUM NAME</strong><br />
<input type="text" name="user" />
            <input type="hidden" name="MAX_FILE_SIZE" value="5000000000" />
            </p>
                <p><BR />
          Upload AW bots ONLY 125.0 KG or less<BR />
          <BR />
          <input name="uploadedfile" type="file" />
           <input type="submit" value="Upload File" />
                </p>
  <>
</form>
            <div align="center"><br />
                <? } ?>             
            <>
           <BR><div align="center">
<><br><br><br>
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 18, 2011, 02:11:57 PM
Right. I don't see the part where you actually upload the files.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 18, 2011, 03:02:28 PM
It works, just gives error when somebody looks at the page.....don't have to upload, just look!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 19, 2011, 08:03:32 AM
@ACAMS -- The reason you get the error is that you are trying to check the value of something that does not exist.
To avoid the error message, you can avoid doing that. You might like to test the following, to see if it works properly for you:
if ( isset($_FILES['uploadedfile']['name'] )
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 19, 2011, 07:45:28 PM
Where would I put that?....in my code somewhere?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 20, 2011, 09:37:49 AM
Code (find) Select
if($_FILES['uploadedfile']['name'])
Code (replace) Select
if ( isset($_FILES['uploadedfile']['name'] )
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 20, 2011, 01:13:06 PM
I get this error...


Syntax error in block code. Please check the code.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 20, 2011, 03:35:40 PM
If your code works, then this one should work, too.

$target_path = "../Robot_Exchange/AW/"; /// upload folder
$allowedExtentions = "bot"; // allowed extentions
// Upload File
if( isset($_FILES['uploadedfile']['name']) ){
$ext = substr($_FILES['uploadedfile']['name'], strrpos($_FILES['uploadedfile']['name'], '.') + 1);
$chechextentions = explode(",", $allowedExtentions);
$isallowed = 0;
foreach($chechextentions as $key => $name){
if($name==$ext){$isallowed = 1;}
}
if($isallowed == 0){ die("Sorry that filetype [$ext] is not allowed. We allow ($allowedExtentions)");}

    if (trim($_POST['user']) == '')
    {
        echo "Please put your name in the box";
    }
elseif (file_exists($target_path.$_FILES['uploadedfile']['name'])) {
    $bad_stuff = array("..", ".", "/", "\\");
        $random_digit = str_replace($bad_stuff, "", $_POST['user']) . "_DUPLICATE";
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path.$random_digit.basename( $_FILES['uploadedfile']['name']))) {
    echo "Your Bot ".  $random_digit.basename( $_FILES['uploadedfile']['name']). " has been uploaded <br>";
$fileurl= "http://".$_SERVER['SERVER_NAME']. "/".$target_path.$random_digit.basename( $_FILES['uploadedfile']['name']);?>
  <>
<div align="center">
  Thanks for sharing your bot<br>
  <? } else{
    echo "There was an error uploading the file, please try again!";
}
// other wise just upload
} else {
        $bad_stuff = array("..", ".", "/", "\\"); 
        $random_digit = str_replace($bad_stuff, "", $_POST['user']). "_";$random_digit = ($random_digit  !="" ? $random_digit : die("empty name"));
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path.$random_digit.basename( $_FILES['uploadedfile']['name']))) {
echo 'Your Bot '.$random_digit.basename( $_FILES['uploadedfile']['name']). " has been uploaded <br>";
$fileurl= "http://".$_SERVER['SERVER_NAME']. "/".$target_path.$random_digit.basename( $_FILES['uploadedfile']['name']);?>
<br><div align="center">Thanks for sharing your bot<br>
<>
  <? } else{
    echo "There was an error uploading the file, please try again!";
}
}
// Ask for upload info
}else{ ?>
<>
<form enctype="multipart/form-data" action="index.php?page=page4971" method="POST">
              <div align="center"><p>
  <BR><strong>YOUR FORUM NAME</strong><br />
<input type="text" name="user" />
            <input type="hidden" name="MAX_FILE_SIZE" value="5000000000" />
            </p>
                <p><BR />
          Upload AW bots ONLY 125.0 KG or less<BR />
          <BR />
          <input name="uploadedfile" type="file" />
           <input type="submit" value="Upload File" />
                </p>
  <>
</form>
            <div align="center"><br />
                <? } ?>             
            <>
           <BR><div align="center">
<><br><br><br>

---
edit: removed opening '<?'
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 20, 2011, 08:02:06 PM
I copy/pasted all in your reply and it did work, but I still get my original error....



http://gametechmods.com/forums/index.php?/page,page4971.html (http://gametechmods.com/forums/index.php?/page,page4971.html)

8: Undefined index: uploadedfile

File: /home/gametechmods/gametechmods.com/forums/Sources/Subs-Portal.php(1155) : eval()'d code
Line: 5




I also get this on the bottom of my page


<> <>
<>
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 21, 2011, 08:00:02 AM
My version of the code works fine for me. I'm not sure why it does not work fine for you. Perhaps we are using different versions of php?
Perhaps if ( isset($_FILES) && isset($_FILES['uploadedfile']) && isset($_FILES['uploadedfile']['name']) ) would work better for you?

The "<>" appear on your page because they are are in the code. For the code I posted, I simply showed how the code you posted would look with the one line changed. You are in no way required to use the version of code you posted here, or to use the change I suggested.

I can see that you are a little lost in the customization discussion. If you desire to use custom php in your blocks, you may feel more comfortable if you go through a simple php tutorial, like the one at w3schools.org. Then, you might like to look up the php function isset at php.net, in order to understand the change I suggested.

Good Luck!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 21, 2011, 08:14:05 AM
I tried again, and this time it worked.   :D 

THANKS for all the help, now to fix about 10 more pages.

EDIT: I found something weird.....if I click "Edit Page" just under the code it gives the error, but if I go all the way to the bottom "Edit Page" it works.



Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 21, 2011, 07:37:56 PM
I changed the code in all my uploaders and they all work fine, but this one still gives me the error in my error log.


It is a little different than the others as it gives users the link to the file.


I hope you can see what is throwing the error.






<?
$target_path = "../uploads/files/"; /// upload folder
$allowedExtentions = "rar,zip,7Z,7z"; // allowed extentions
// Upload File
if( isset($_FILES['uploadedfile']['name']) ){
// Check file extention
$ext = substr($_FILES['uploadedfile']['name'], strrpos($_FILES['uploadedfile']['name'], '.') + 1);
$chechextentions = explode(",", $allowedExtentions);
$isallowed = 0;
foreach($chechextentions as $key => $name){
if($name==$ext){$isallowed = 1;}
}
if($isallowed == 0){ die("Sorry that filetype [$ext] is not allowed, Please use ($allowedExtentions)");}

// See if filename exists
// if it exists rename it
if (file_exists($target_path.$_FILES['uploadedfile']['name'])) {
    $random_digit=rand(0000,9999);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path.$random_digit.basename( $_FILES['uploadedfile']['name']))) {
    echo "The file ".  $random_digit.basename( $_FILES['uploadedfile']['name']). " has been uploaded <br>";
$fileurl= "http://".$_SERVER['SERVER_NAME']. "/".$target_path.$random_digit.basename( $_FILES['uploadedfile']['name']);?>

  <div align="center">
    <input name="textfield" type="text" id="textfield" value="[url=<?=$fileurl?>]<?=$fileurl?>[/url]" size="105"  />
    <? } else{
    echo "There was an error uploading the file, please try again!";
}

// other wise just upload
} else {
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path.basename( $_FILES['uploadedfile']['name']))) {
echo "The file ".  $random_digit.basename( $_FILES['uploadedfile']['name']). " has been uploaded <br>";
$fileurl= "http://".$_SERVER['SERVER_NAME']. "/".$target_path.$random_digit.basename( $_FILES['uploadedfile']['name']);?>
    <input name="textfield" type="text" id="textfield" value="[url=<?=$fileurl?>]<?=$fileurl?>[/url]" size="105"  />
    <? } else{
    echo "There was an error uploading the file, please try again!";
}
}
// Ask for upload info
}else{ ?>
    <>
 
<form enctype="multipart/form-data" action="index.php?page=page4749" method="POST">
              <div align="center">
                <p>
            <input type="hidden" name="MAX_FILE_SIZE" value="5000000000" />
            <BR />
          Choose a file to upload .zip, 7Zip or .rar ONLY<BR />
          <BR />
          <input name="uploadedfile" type="file" />
           <input type="submit" value="Upload File" />
                </p>
              <>
</form>
            <div align="center"><br />
                <? } ?>             
            <>
           <BR><div align="center">
<BR><strong>TERMS OF SERVICE</strong><><BR>
<div align="center">
gametechmods.com file host is a free file hosting service, we allow you to upload your files onto our server for free.<BR>
These files can be linked to forums or friends and can not be seen by anyone without the file name.<BR>
We reserve the right to ban any individual  or website from using our services for any reason.<BR>
<strong>Do not upload copywrited or illegal content.</strong><>
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Bigguy on April 21, 2011, 11:14:25 PM
What is the error in the error log. ???
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 22, 2011, 08:09:45 AM
Quote from: Bigguy on April 21, 2011, 11:14:25 PM
What is the error in the error log. ???



Quote from: ACAMS on April 12, 2011, 08:33:58 PM

I have SMF 2.0 RC3 with the RC4 security patch and Simpleportal 2.3.2

I am getting an error in my error log whenever anybody clicks a link to one of my PHP pages, it does not give an error for BBC, or HTML.


http://gametechmods.com/forums/index.php?/page,page2096.html (http://gametechmods.com/forums/index.php?/page,page2096.html)

8: Undefined index: uploadedfile

File: /home/gametechmods/gametechmods.com/forums/Sources/Subs-Portal.php(1155) : eval()'d code
Line: 5


you will see that line 5 has nothing to do with anything.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 22, 2011, 09:23:52 AM
Isn't line 5 of your eval'd code
if( isset($_FILES['uploadedfile']['name']) ){
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on April 22, 2011, 10:15:55 AM

Quote from: AngelinaBelle on April 22, 2011, 09:23:52 AM
Isn't line 5 of your eval'd code
if( isset($_FILES['uploadedfile']['name']) ){

Yes, it is.



EDIT: it is...


if( isset($_FILES['uploadedfile']['name']) ){
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on April 22, 2011, 11:03:47 AM
Then that is your problem.

Perhaps you can see if isset($_FILES) works better for you, and/or you can try one of my earlier suggestions, to see if that works:
Quote from: AngelinaBelle on April 21, 2011, 08:00:02 AM
Perhaps if ( isset($_FILES) && isset($_FILES['uploadedfile']) && isset($_FILES['uploadedfile']['name']) ) would work better for you?
Quote

At this point, I think we are confident that this is not a SimplePortal-specific problem. I feel that I am not solving your problem quickly and efficiently.  You might find more and better help than I have been able to provide in a custom coding board. You can ask there about the correct way to check this php Variable without creating php errors.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on May 07, 2011, 01:48:11 PM
I am having trouble again......I have a page linking to another page, here is the code
<p><a href="index.php?page=page4106"" target="_blank" >Play your uploaded MP3's</a></p>
<p><a href="index.php?page=page4107"" target="_blank" >Classic Rock Player</a></p>
<p><a href="index.php?page=page4108"" target="_blank" >Country Music Player</a></p>

The line ---  <p><a href="index.php?page=page4106"" target="_blank" >Play your uploaded MP3's</a></p> works just fine in my block linking to my player, but when I make a page linking the player, it ends up with an extra /index.php
http://gametechmods.com/forums/index.php/index.php?page=page4106

I have changed it to EVERYTHING I can think of, and cleared my cache a thousand times....is this a bub, or am I stupid?
I even tried <p><a href="page=page4106"" target="_blank" >Play your uploaded MP3's</a></p>....BUT it still came out http://gametechmods.com/forums/index.php/index.php?page=page4106


What do I do, how can I link to my player without it adding the extra index.php


Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on May 07, 2011, 03:40:38 PM
OK, I changed my code to this...AND IT STILL wont work......it keeps adding the extra index.php.....and pisssssssing me offfffff!




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MP3 Players</title>
</head>


<body>
<table width="23%" height="178" border="2" align="center" cellpadding="4px" bordercolor="#000000">
<tr>
       <td width="57%" height="170" valign="top">
       <p><a href="index.php?page=page4106">Play your uploaded MP3's</a></p>
       <p><a href="index.php?page=page4107">Classic Rock Player</a></p>
       <p><a href="index.php?page=page4108">Country Music Player</a></p>
   </td></tr></table>
<br />
</body>
</html>





EDIT:  The only way it will take the code is HTML, php gives an error


An Error Has Occurred!

Syntax error in block code. Please check the code.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Chen Zhen on May 07, 2011, 03:49:01 PM
.. so do not include index.php in your code. Also only include what is in the body of the html you just posted.

QuoteEDIT:  The only way it will take the code is HTML, php gives an error


echo '<table width="23%" height="178" border="2" align="center" cellpadding="4px" bordercolor="black">
<tr>
       <td width="57%" height="170" valign="top">
       <p><a href="index.php?page=page4106">Play your uploaded MP3s</a></p>
       <p><a href="index.php?page=page4107">Classic Rock Player</a></p>
       <p><a href="index.php?page=page4108">Country Music Player</a></p>
   </td></tr></table>
<br />';


.. it gave an error because of the apostrophe. If you want it to show you can use a character code

ie.

echo '<table width="23%" height="178" border="2" align="center" cellpadding="4px" bordercolor="black">
<tr>
       <td width="57%" height="170" valign="top">
       <p><a href="index.php?page=page4106">Play your uploaded MP3&#39;s</a></p>
       <p><a href="index.php?page=page4107">Classic Rock Player</a></p>
       <p><a href="index.php?page=page4108">Country Music Player</a></p>
   </td></tr></table>';


\\Edit -> I change to character code.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on May 07, 2011, 04:09:40 PM
I removed the apostrophe and another page linking the player and saved as php and IT WORKS  :D


THANKS!!!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on May 17, 2011, 01:16:53 PM
Running SMF 1.1.13  default theme  Simple Portal 2.3.3

  As mentioned in topic :http://www.simplemachines.org/community/index.php?topic=434341.0

this is a clean system with no errors systemwise.

I'm not sure when this error happened but the problem is:

- Create a BBC custom block and put :

[img]https://picasaweb.google.com/teos1955/Cambodia?authkey=Gv1sRgCOWM-5PfuqS0lgE#5607733418829291538[/img]

Result :  image not shown  and [/img] tag is sticked to the link data and blue.

    Consequently 404 not found error.  picasaweb album is public not private. In fact it doesnt matter which link
you put there, always [/img] is sticked to the link

Any guidance ?

nb.  After posting noticed that, same failure happens here in code path of the topic. Strange !!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on May 17, 2011, 01:38:10 PM
In http://www.simplemachines.org/community/index.php?topic=434341.0 you mentioned that you re-installed SMF 1.1.13 from scratch, then began re-installing mods.

I don't think I understand the problem. I'd like to start with an image that ought to work, instead of an HTML page. How about
[img width=300]https://lh4.googleusercontent.com/_se0aqm-n1iA/TdKr1VhoIBI/AAAAAAAAGL4/JV_DOCz3EyQ/s720/_MG_3162.jpg[/img]

Please show a picture of what it looks like to edit this block, like this:
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on May 17, 2011, 01:54:22 PM
 My settings below ...
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on May 17, 2011, 01:59:18 PM
And this is output of your recommendation. I'm not familiar but can it related to hotlinks ?
Previously it was working with no hassle.

This is same error in topic : http://www.simplemachines.org/community/index.php?topic=433264.0
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on May 17, 2011, 04:02:00 PM
  I dont know whether it is clue or not but when I logged out, I can see the photos on main page of
guest screen :-)  The blocks permission includes guest view. Not only as admin user also tested with
a regular member.

  I tested this with opera, firefox and chrome. As soon as the users logs in, the problem starts.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on May 18, 2011, 08:00:08 AM
But [img] tag works OK in topics? Do you have any errors in your SMF error log?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on May 18, 2011, 10:17:21 AM
Yes AngelinaBelle,  [img] tag in topics works as designed. It's only fails when used in BBC custom block.
No erros in the errorlog unfortunately. Even this happens if I put an image from my site.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on May 18, 2011, 11:00:39 AM
It looks like the BBC parser has gotten confused and included the [/img] tag in the URL. Could you provide me a link to your site?

This is a puzzling little problem. What other mods do you have installed? What other mods have you uninstalled?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on May 18, 2011, 11:07:45 AM
 As mentioned earlier this is an error free system with proper mods installed.
This is the list of mods applied.
--------------------------------------------
1.   Auto Email Inactive Users    1.7   
2.   Attachments Positioning    1.2   
3.   Tapatalk SMF Plugin    1.2.0   
4.   SimplePortal    2.3.3   
5.   SMF Gallery Lite    3.0.3b   
6.   Child Dropdown for Board Index    1.1   
7.   Hide Info Center From Guests    1.0   
8.   Google Translator Flags    1.0   
9.   httpBL    2.5.1      10.   
10.   Simple Audio Video Embedder    1.1.4   
11.   Center the Navagation Bar    1.0   
12.   Global Headers Footers    2.0   
13.   DisableTemplateEval    1.2     
14.   Stop Spammer    2.3.9     
15.   SMF Sitemap    1.2.2 
--------------------------------------------
  Will be providing test admin account details via PM
All the best
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on May 18, 2011, 12:02:42 PM
On this page, the same block works OK:
http://karavanturk.org/index.php?page=page4847

So I suspected the shoutbox . I did disable your shoutbox block momentarily on the portal page, and saw that the [.img.] tags were then interpreted correctly on your forum. Then, I went to your list of shoutboxes, and for the shoutbox on the portal page, I enabled the [.img.] tag. Now your portal page works correctly.

Here is the reason for the problem:
* function parse_bbc is what interprets all the tags in posts and anywhere else. parse_bbc uses a lot of computer time.
* because the shoutbox refreshes itself frequently, and parse_bbc is used to parse the shouts, the shoutbox can be a problem for the server
* For this reason, many tags are disabled when the shoutbox is rendered, including the [img] tag.
* For some reason, this behavior is continued in the custom BBC block.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on May 18, 2011, 12:40:20 PM
  Good work AngelianBelle, thanks alot.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on May 18, 2011, 03:57:12 PM
A side effect is that you may now put images in the shoutbox, too.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: King N on May 21, 2011, 11:14:05 AM
I see that there is a way for having a custom registration page using this mod
any help on achieving it
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on May 23, 2011, 08:27:34 AM
You can do a custom registration page, but it is a little tricky and, perhaps, a little bit ugly.
A little while back, I did help a SimplePortal user set up a custom registration block. This code might work on your page.

I would invite you to come on over to http://SimplePortal.net, have a search for "registration block".  Right now, SimplePortal.net's website appears to be down. But I am certain that the SimplePortal team will work with its host to get the problems resolved soon.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: King N on May 23, 2011, 12:33:37 PM
Thanks for that
Title: Re: SimplePortal - 2.3.3 Released!
Post by: King N on May 23, 2011, 12:37:38 PM
Will I get help for scripting it there?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on May 23, 2011, 01:46:29 PM
There's an old topic on doing a registration block that will help you get started. If you need more help than you find there, you should be able to find help in the customization boards here at simplemachines.org.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on May 26, 2011, 04:42:42 AM
SMF 1.1.13 default theme Simple 2.3.3

Noticed that shoutbox time zone is -1 to my actual time. There is no parm afaik  to enter the
zone difference .
What to check ?

   
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Madzgo on May 26, 2011, 10:27:05 AM
Is there anyway to make Good Post/Bad Post voting options on SP articles??
Title: Re: SimplePortal - 2.3.3 Released!
Post by: GlitchPC on May 27, 2011, 03:59:49 PM
197 pages is a lot of pages to read...so, I just wanted to ask 2 questions:

     1.  Is this mod compatible with SMF 2.0 RC5 with the following addons:
          a)  Welcome Topic Mod    2.1
          b)  SMF Staff Page    1.7
          c)  Referrals System  3.0.2
          d)  Stop Forum Spam  0.9
          e)  Facebook_Likev.1.4  1.4

     2.  I installed SMF in my root directory...not in a "forum" directory.  Will this mod still work...and are there any other issues I may have to consider before uploading and installing this mod?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on May 30, 2011, 05:41:00 AM
 No recommendation for the time difference for shoutbox upto now...  Am I the only person facing this ?
My time zone is GMT+2  and shoutbox is GMT+1  Any seetings ?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on May 31, 2011, 01:04:50 PM
Quote from: teos55 on May 26, 2011, 04:42:42 AM
SMF 1.1.13 default theme Simple 2.3.3
Noticed that shoutbox time zone is -1 to my actual time. There is no parm afaik  to enter the zone difference .
I think shoutbox time should be controlled by the time zone each user selects in profile preferences.  This will require investigation...

Quote from: Madzgo on May 26, 2011, 10:27:05 AM
Is there anyway to make Good Post/Bad Post voting options on SP articles??
SP articles are just regular SMF topics. So if you have any good post/bad post mods installed, they will still work.

Quote from: GlitchPC on May 27, 2011, 03:59:49 PM
     1.  Is this mod compatible with SMF 2.0 RC5 with the following addons:
          a)  Welcome Topic Mod    2.1
          b)  SMF Staff Page    1.7
          c)  Referrals System  3.0.2
          d)  Stop Forum Spam  0.9
          e)  Facebook_Likev.1.4  1.4

     2.  I installed SMF in my root directory...not in a "forum" directory.  Will this mod still work...and are there any other issues I may have to consider before uploading and installing this mod?
1. SimplePortal is not tested with any of these mods.  It may well work fine with all of them. I recommend trying it out on a "test" forum to avoid any little surprises. There is always the possibility that installation of one mod will require manual installation steps for another mod, as well -- something else that might best be sorted out on a test forum.

2. SimplePortal works fine in that situation. Once you install SimplePortal, /index.php BECOMES your portal page.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on June 01, 2011, 02:32:57 PM
 Thanks AngelinaBelle,
  The time difference comes from my profile. Most probably daylite time difference from UTC.
Thansk alot.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smtek on June 04, 2011, 09:51:53 AM
I installed simple portal and added a shout box, after i disabled the portal now the shoutbox is not visible in forum. Is there anyway to add shoutbox to forum?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on June 04, 2011, 06:00:52 PM
SMF 1.1.13  default theme

  Is there a way to redirect the member directly to the main portal page, rather then to forum at the initial
login ?

  Portal mode= Front page is set.   

  initial login goes to h t t p: // m y s i t e.org/index.php?action=forum
Title: Re: SimplePortal - 2.3.3 Released!
Post by: MC73 on June 04, 2011, 06:24:13 PM
Quote from: smtek on June 04, 2011, 09:51:53 AM
I installed simple portal and added a shout box, after i disabled the portal now the shoutbox is not visible in forum. Is there anyway to add shoutbox to forum?

Go the the General settings in the Admin Simple Portal and change the Portal mode to integration. The portal will not show, but you can still add block to the rest of the forum, such as the SP Shout.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on June 05, 2011, 04:51:26 AM
 Accidentaly "disable port redirection" in the general settings was left ticked. Unticked, now redirects to
portal.

Solved.


Quote from: teos55 on June 04, 2011, 06:00:52 PM
SMF 1.1.13  default theme

  Is there a way to redirect the member directly to the main portal page, rather then to forum at the initial
login ?

  Portal mode= Front page is set.   

  initial login goes to h t t p: // m y s i t e.org/index.php?action=forum
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on June 10, 2011, 01:18:28 PM
URGENT !!!

SMF 1.1.13   default theme,  SP 2.3.3

  All of a sudden, main page failed loading in the middle of the process , getting message ;

"mysql server has gone away

load.php  line 2040"


The failing block to load is "recent posts and topics"

I removed the block, and main page recovered.

I recreated the same block with the same parms.

Failed again.


Tested with smf "unread posts" or " unread replies"  they work properly, so nothing wrong with smf, I think.

Hosting firm states that, there is nothing wrong with the server, increased :

wait_timeout=xx
connect_timeout=xx

values for me to test, but not resolved.


  What can be broken all of a sudden ?, working with SP2.3.3 for a long time with no error up to now...

nb. for test, I put the newly created "recent posts" block to the end of the page, now fails exactly at the phase of loading
this block.

FOUND the culprit :  removed shoutbox entries ...

  Now every block works properly. 

So the question is :  How any entry in shoutbox,  can cause the main portal page load failure ?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on June 10, 2011, 01:56:20 PM
This is very, very strange.  Can you take this problem to simpleportal.net? If a certain shoutbox entry can cause such a problem in one of the functions in load.php, there might be a bug somewhere, or at least a performance issue.
I don't know if the problem is with simpleportal, or if simpleportal has found some other kind of problem with SMF or with your database.

This one could be very tricky to sort out. Did you save copies of the shoutbox entries that caused you the problems?
It is very difficult to figure out a problem if you cannot make it happen again...
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on June 10, 2011, 02:00:31 PM
Thanks AngelinaBelle,

  In fact, I've noticed that the problem is solid. ( at least for my system)

Deleted the old ones ( shoutbox)

Created fresh ones ( both shoubox and block related)

  If no entry in the block,  fine ..  ( main pages loads properly)

As soon as I enter something ( Like "test", no special character) in the shoutbox, and try to load the main page, facing the same failure. mysql has gone away ...


Seems some settings for shoutbox in the DB somehow corrupted.

I hope it's clear..   

DB entries attached
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on June 10, 2011, 02:48:17 PM
 Strange then ever :-) .

Didnt delete shoutbox  but deleted only  block for it.  Recreated a new block (exactly same parms) .
Tested with any character and no problem up to now. 

I can hardly explain what happened between the steps ...

Finally seems solved.  Sorry for bothering ...
Title: Re: SimplePortal - 2.3.3 Released!
Post by: sepulchre on June 13, 2011, 09:13:08 PM
Just tried to download and install this package on my 2.0 forum and received the following error:

The package you tried to upload either is not a valid package or has become corrupted.

I get this if i try to emulate RC4 as well, and I've tried multiple downloads on two PC's with the same result.

Any thoughts?

Edit - turn of emulation and it installs fine :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: AZMazda3 on June 14, 2011, 12:52:22 PM
I just attempted to upgrade to 2.0 rc3 to rc5 no problems, went to install SP 2.3.3 no errors or problems... But I don't see it. no blocks no SP menu nothing... where do i start?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TurtleKicker on June 14, 2011, 04:08:05 PM
Quote from: AZMazda3 on June 14, 2011, 12:52:22 PM
I just attempted to upgrade to 2.0 rc3 to rc5 no problems

Why would you upgrade to RC5 when 2.0 final has been out since Saturday?

Anyway... can anyone confirm that SP works fine on 2.0 final if you emulate RC4 during install? Or are there bugs/issues and we need to wait for an updated version of SP?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: AZMazda3 on June 14, 2011, 04:10:10 PM
Quote from: sremick on June 14, 2011, 04:08:05 PM
Quote from: AZMazda3 on June 14, 2011, 12:52:22 PM
I just attempted to upgrade to 2.0 rc3 to rc5 no problems

Why would you upgrade to RC5 when 2.0 final has been out since Saturday?

Anyway... can anyone confirm that SP works fine on 2.0 final if you emulate RC4 during install? Or are there bugs/issues and we need to wait for an updated version of SP?

Good question... I didn't see it. Either case it wasn't working...
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Aoife on June 14, 2011, 04:23:38 PM
Quote from: sremick on June 14, 2011, 04:08:05 PM
Quote from: AZMazda3 on June 14, 2011, 12:52:22 PM
I just attempted to upgrade to 2.0 rc3 to rc5 no problems

Why would you upgrade to RC5 when 2.0 final has been out since Saturday?

Anyway... can anyone confirm that SP works fine on 2.0 final if you emulate RC4 during install? Or are there bugs/issues and we need to wait for an updated version of SP?


I just installed 2.3.3 to SMF 2.0 without using emulation and it seems to be working fine.



Title: Re: SimplePortal - 2.3.3 Released!
Post by: AZMazda3 on June 14, 2011, 04:25:28 PM
Quote from: aoife on June 14, 2011, 04:23:38 PM
Quote from: sremick on June 14, 2011, 04:08:05 PM
Quote from: AZMazda3 on June 14, 2011, 12:52:22 PM
I just attempted to upgrade to 2.0 rc3 to rc5 no problems

Why would you upgrade to RC5 when 2.0 final has been out since Saturday?

Anyway... can anyone confirm that SP works fine on 2.0 final if you emulate RC4 during install? Or are there bugs/issues and we need to wait for an updated version of SP?

In that case I should start testing my version of 2.0 Final, ugh. Here we go again...


I just installed 2.3.3 to SMF 2.0 without using emulation and it seems to be working fine.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: K4EEO on June 14, 2011, 07:12:16 PM
yeah, i installed 2.3.3 on SMF 2.0 "as is" without issue.. still had to copy the portal.css to the themes, but other than that, everything seems to work perfectly.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: AZMazda3 on June 14, 2011, 08:14:30 PM
Quote from: Studio1031 on June 14, 2011, 07:12:16 PM
yeah, i installed 2.3.3 on SMF 2.0 "as is" without issue.. still had to copy the portal.css to the themes, but other than that, everything seems to work perfectly.

Ok, I upgraded to 2.0 installed SP 2.3.3 and again, it is no where to be found. It's been awhile...so am I missing a step adding SP?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Aoife on June 14, 2011, 09:01:46 PM
Quote from: AZMazda3 on June 14, 2011, 08:14:30 PM
Quote from: Studio1031 on June 14, 2011, 07:12:16 PM
yeah, i installed 2.3.3 on SMF 2.0 "as is" without issue.. still had to copy the portal.css to the themes, but other than that, everything seems to work perfectly.

Ok, I upgraded to 2.0 installed SP 2.3.3 and again, it is no where to be found. It's been awhile...so am I missing a step adding SP?

Did you enable it in the Config settings?  I have it set to Front Page.... 
Title: Re: SimplePortal - 2.3.3 Released!
Post by: AZMazda3 on June 14, 2011, 09:13:59 PM
Quote from: aoife on June 14, 2011, 09:01:46 PM
Quote from: AZMazda3 on June 14, 2011, 08:14:30 PM
Quote from: Studio1031 on June 14, 2011, 07:12:16 PM
yeah, i installed 2.3.3 on SMF 2.0 "as is" without issue.. still had to copy the portal.css to the themes, but other than that, everything seems to work perfectly.

Ok, I upgraded to 2.0 installed SP 2.3.3 and again, it is no where to be found. It's been awhile...so am I missing a step adding SP?

Did you enable it in the Config settings?  I have it set to Front Page....

I know this sounds stupid...but it isn't anywhere. It's like it's not installing although it says it is. There is no config settings, there is no menu for it nothing. The only thing I can think is it says its installing but there is some small detail missing that in my case is the case and the problem.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on June 15, 2011, 08:36:02 AM
It sounds like Package Manager was mistaken. It thought it completed the installation, but clearly it did not.
Often, this is caused by permission problems. Please see http://simpleportal.net/index.php?action=docs;area=solving_install_problems for more on this.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: tatack on June 16, 2011, 06:35:21 AM
Does Simple Portal 2.3.3 work with SMF 2.0 ?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Aoife on June 16, 2011, 07:35:21 AM
Quote from: tatack on June 16, 2011, 06:35:21 AM
Does Simple Portal 2.3.3 work with SMF 2.0 ?

I installed it without using emulation, and it works fine for me.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: tatack on June 16, 2011, 07:43:09 AM
I have this message trying to install it. And now?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on June 16, 2011, 08:07:25 AM
This has happened because some other mod or customization has changed the file SSI.php in that one spot, and the Package Manager cannot find what it is looking for.

Click on the pencil-and-paper icon next to the failed test. You will see exactly what it was looking for.
You can find this section in the ORIGINAL version of SSI.php, see which line it is on, and look near that line number in your changed SSI.php to find out what has happened to that part of the file.

Now that you can see what is going on, your choices are:
1) Uninstall the mod that is causing the problem.  You can re-install it afterwards. No guarantee this will solve the problem, though -- both mods are looking at the same piece of code.
2) Now that you have identified the difficulty, you may install the mod semi-manually -- tell Package Manager to ignore errors, then make this one change yourself.

Please see
Title: Re: SimplePortal - 2.3.3 Released!
Post by: tatack on June 16, 2011, 08:51:42 AM
Thank You.

If I have a permission error and I can't install new packages which folder I have to modify?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on June 16, 2011, 09:43:40 AM
Please have a look at: http://simpleportal.net/index.php?action=docs;area=solving_install_problems
Title: Re: SimplePortal - 2.3.3 Released!
Post by: GlitchPC on June 16, 2011, 11:05:34 AM
Installed with no issues, other than directory/file permissions on SMF 2.0 Final Release.

I've tried several other portal mods...and then this one.  What was I thinking?  I should have stopped here in the first place.  Oh well...live and learn, I guess.

Hats off to the Devs on this one!  Nicely done...and as the name implies...very simple to use.


All my best!

Edit...

I do, however, have one small cosmetic issue.  (See attached image).  Is this an issue with the css for the mod or, the theme?

The titles for the blocks on the Curve and Core themes are fine...it's just the other themes that have this issue.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on June 16, 2011, 08:37:01 PM
It is to do with the css file.

I can't rightly remember how to correct it so rather than give details with a dodgy memory I would advise a search either within this topic or on www.simpleportal.net
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on June 16, 2011, 09:00:02 PM
Copy portal.css from the default theme to your custom theme's css folder. That generally fixes it.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: GlitchPC on June 16, 2011, 09:15:04 PM
AngelinaBelle...

Thank you, very much!  That did the trick...
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on June 16, 2011, 09:56:23 PM
You are welcome. (I'm not really here)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: tabletsdroid on June 17, 2011, 03:23:20 AM
hi, having a problem with the front page on smf 2.0 gold. when typing mydomain.com - it goes straight to the forum and not the portal front page, there is also no link to the portal when going directly to the root domain address mydomain.com. This is also a fresh install of smf 2.0 which has not been upgraded.

any ideas?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on June 17, 2011, 05:55:46 AM
Quote from: tabletsdroid on June 17, 2011, 03:23:20 AM
This is also a fresh install of smf 2.0 which has not been upgraded.
Doing the 2.0 install would have wiped out any mods you had previously installed. Did you install SimplePortal AFTER the SMF 2.0 install?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: tabletsdroid on June 17, 2011, 06:29:20 AM
Fresh install of 2.0 gold. No previous installation, no upgrade. Simple portal mod installed for the first time after install.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on June 17, 2011, 06:44:36 AM
No Portal, no portal admin options -- Sounds like the install failed, but the Package Manager did not notice. This is most likely a permission or file ownership problem. Please read http://simpleportal.net/index.php?action=docs;area=solving_install_problems for more information. 

Sometimes, just manually creating a file called temp with the most permissive settings possible in the Packages directory solves the problem. That would be my first try.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: GlitchPC on June 17, 2011, 09:41:40 AM
In portal general settings, set to Portal Mode.  Also, uncheck portal redirection and save your changes...
Title: Re: SimplePortal - 2.3.3 Released!
Post by: S.T.A.R.S on June 17, 2011, 04:56:02 PM
While installating i got an error

Invalid default value for 'approved'
File: /var/www/vhosts/mmogamer.co.uk/httpdocs/Packages/temp/install2.php
Line: 501

Whats up? I am running SMF 2.0
Title: Re: SimplePortal - 2.3.3 Released!
Post by: GlitchPC on June 18, 2011, 07:59:43 AM
Question regarding SimplePortal copyright footer...

See attached images...

Running SMF 2.0 Gold.  I have 4 themes my users can select from.  The SP copyright appears differently on all 4 themes.  What I'd like to do is modify the SP copyright so that it's directly below the SMF copyright on all themes.

How is this accomplished...without causing any issues to the page load time script?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: amcapt89 on June 18, 2011, 09:29:24 AM
Hi there!

after I upgraded my forum to 2.0, I re-installed simple portal, with no errors at all. However the portal is showing but on the top menu the "forum" tab is missing. The only way to access to the form is to click on the link tree below the main menu.

As far as I can see, simple portal is installed correctly and it's working 100% with all it's features which were working before the upgrade... The only this is missing is the way to access to the Forum...! Any idea???

Many thanks for your help...!

amcapt89
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rad1701 on June 18, 2011, 07:36:26 PM
Ok, I just upgraded to 2.0 gold.  And I installed Simple Portal 2.3.3.  Any idea why in my left column a block for recent images is showing the images in full size?  On my old 1.1.14 forum it would resize them based on the width of the left column.

Thanks for any help!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: 4b11l on June 18, 2011, 08:01:32 PM
Hello,

Installed on 2.0 final, got no errors and ran a couple edits and moving around the blocks and encountered no error in log. However, when I try to add a new block, it is not showing what it should. It's basically blank with the comfirmation button.

Additional info is that I upgraded from rc3 to 2.0. Did not uninstall any mods, but reinstalled most mods and worked well except for this one. Gave me a duplicate database entry error and browser through simpleportal.net that I could bypass the insall2.php database file which I did.

Anyone have any ideas how to fix this?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: MC73 on June 18, 2011, 08:11:46 PM
You may have to uninstall SP and ftp into your files and delete the Folders and files that SP installed ... then run then upload sp again and install it again ....

I had the same thing happen to me when i forgot to uninstall SP during the rc2 to rc3 upgrade .....
Title: Re: SimplePortal - 2.3.3 Released!
Post by: 4b11l on June 18, 2011, 08:17:43 PM
Quote from: MC73 on June 18, 2011, 08:11:46 PM
You may have to uninstall SP and ftp into your files and delete the Folders and files that SP installed ... then run then upload sp again and install it again ....

I had the same thing happen to me when i forgot to uninstall SP during the rc2 to rc3 upgrade .....

Who are you referring to? Sorry, there were a couple issues from other members above my post that you may be referring to?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rad1701 on June 18, 2011, 09:54:50 PM
Ok, it seems that with SMF 2.0, if you make a block to display recent image attachments it will only display them as they are on your forum.  So, either full size (if you have attachments set like that) or thumbnails if your attachments are set like that.

I used to like how Simple Portal would shrink these down to fit in the block size allowed because I like images to show bigger on the forum itself.  Anyway to do that now?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: GlitchPC on June 19, 2011, 07:45:40 PM
Bump!  http://www.simplemachines.org/community/index.php?topic=227599.msg3079986#msg3079986
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on June 19, 2011, 07:50:30 PM
Quote from: GlitchPC on June 19, 2011, 07:45:40 PM
Bump!  http://www.simplemachines.org/community/index.php?topic=227599.msg3079986#msg3079986

Have you A, Asked the theme authors?

B, Made a topic on www.simpleportal.net?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: GlitchPC on June 20, 2011, 01:11:49 PM
A?  Yes...
B?  No...

Looks like support is provided through this thread...since others' questions have been answered here...right?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on June 20, 2011, 01:29:52 PM
Support is both here and there.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: txcas on June 22, 2011, 03:10:26 PM
After upgrading from RC5 to 2.0, I now have the Simple Portal credits on every block that uses HTML.  How can I prevent that?  You can see the site at http://www.troop520.org (http://www.troop520.org).
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on June 22, 2011, 11:32:58 PM
I used to use SP in my 1.1.14 now i upgraded to 2.0 and i get blue edges on top of the blocks when i install SP.

Can anybody tell me why is this happening and how can i fix it?




update: I can take that blue part off by removing
/* ************************************* */
/* Compatibility styles                  */
/* ************************************* */
h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
   float: left;
   display: block;
   width: 9px;
   height: 31px;
   background: url(../images/_charcoal/theme/main_block.png) no-repeat 0 -160px;
}

h4.titlebg span.left, h3.titlebg span.left
{
   float: left;
   display: block;
   width: 9px;
   height: 31px;
   background: url(../images/_charcoal/theme/main_block.png) no-repeat 0 -200px;
}

from portal.css

But without the blue part it doesnt look complete.

Can somebody help me please?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Alex' Manson on June 23, 2011, 12:07:50 AM
Quote from: PLAYBOY on June 22, 2011, 11:32:58 PM
I used to use SP in my 1.1.14 now i upgraded to 2.0 and i get blue edges on top of the blocks when i install SP.

Can anybody tell me why is this happening and how can i fix it?

put portal.css in your theme's folder / css.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: 4b11l on June 23, 2011, 12:12:36 AM
bump
http://www.simplemachines.org/community/index.php?topic=227599.msg3080716#msg3080716
Title: Re: SimplePortal - 2.3.3 Released!
Post by: PLAYBOY on June 23, 2011, 12:17:40 AM
Quoteput portal.css in your theme's folder / css.

I just did. Now, it doesnt have the blue part but it doesnt look complete either because left part of the block is just not there.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: helike13 on June 24, 2011, 03:25:17 AM
Is it recommended to install SimplePortal to a heavily modified SMF forum posteriorly? Or it screws up the modification?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on June 24, 2011, 09:47:11 AM
Have you at least tried to install the mod?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: C4G-TK on June 24, 2011, 11:07:34 AM
Quote from: helike13 on June 24, 2011, 03:25:17 AM
Is it recommended to install SimplePortal to a heavily modified SMF forum posteriorly? Or it screws up the modification?

I've had SimplePortal on one of my forums for at least two years and have almost 60 mods installed.  It has worked great.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on June 24, 2011, 11:09:57 AM
Quote from: C4G-TK on June 24, 2011, 11:07:34 AM
Quote from: helike13 on June 24, 2011, 03:25:17 AM
Is it recommended to install SimplePortal to a heavily modified SMF forum posteriorly? Or it screws up the modification?

I've had SimplePortal on one of my forums for at least two years and have almost 60 mods installed.  It has worked great.

Try 84 mods.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: helike13 on June 24, 2011, 12:02:48 PM
Did you installed SimplePortal after you installed 80 other mods? Or you installed the 80 mods after equipped with SimplePortal?

I have only 2 mods and lots of annoying manual code modifications that I can not exactly count at the moment.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on June 24, 2011, 12:05:30 PM
What are the edits required?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: C4G-TK on June 24, 2011, 12:43:50 PM
Quote from: helike13 on June 24, 2011, 12:02:48 PM
Did you installed SimplePortal after you installed 80 other mods? Or you installed the 80 mods after equipped with SimplePortal?

I have only 2 mods and lots of annoying manual code modifications that I can not exactly count at the moment.

I normally install SimplePortal first.  To me that one is a priority, so I want to make sure that installs fine.  Then, I install based on priority of what I need.  If there is something that I install later down the line that has a lot of errors, I know it isn't as important, so know I can take my time to get it working fully and then install.

1) Always backup your files before you do an install.
2) You'll know what files fail before you hit continue, so you can always stop at that point w/0 changing anything.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: helike13 on June 24, 2011, 02:42:56 PM
Quote from: C4G-TK on June 24, 2011, 12:43:50 PM
1) Always backup your files before you do an install.

What's with the database?

Does SimplePortal mod the database?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: C4G-TK on June 24, 2011, 03:55:01 PM
Quote from: helike13 on June 24, 2011, 02:42:56 PM
Quote from: C4G-TK on June 24, 2011, 12:43:50 PM
1) Always backup your files before you do an install.

What's with the database?

Does SimplePortal mod the database?

It does add tables to the database, but I'm talking about the files that the mod makes changes in.  I do that every time I install something, so you can easily replace them if something doesn't work.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: jestism on June 27, 2011, 09:32:42 PM
Help Needed... :'(

I installed the "SimplePortal 2.3.3" on my test site (which was installed the same was as my LIVE site) and it installed and works great.

However, when I attempt to install it on my "live" site (which is on a different server, however all paths are correct per repair_settings.php) It starts the install by giving me a screen with what it is going to do and the option to modify other themes. (same screen I got when I installed on my test site)

However on my "live" site after I click "proceed" I get the following error. (Which I can only get rid of by replacing the entire "Packages" directory with a fresh copy from the "upgrade" files.

Error:
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!


I have checked "Everything" and all the permissions are set to be writeable (identical settings as on the server with the  test site) as the forum files/directories as the test site.

I am at a LOSS as to why it would install flawlessly (and I was able to do exactly what I wanted with it... Thank-you) and yet can't get it to install on my live site.

I have attempted to install from the default SMF theme, from the theme I am running, from the "Core" theme... all with getting the same results.

Any ideas on what is going on?

Yes.... I even created a "Temp" directory under the Packages directory.

I went through and either verified or changed all of the permissions to 777 on the directories, sub-directories, and files that were listed to be changed.

Then after two failures, I went through and pretty much changed everything that was 755 on the new server to 777 (to match the test server)

And still got the same failures on installation attempts, so I would re-upload (and over write) the Packages directory (and sub-directory)... then the package manager would allow me to attempt to install a mod again. (instead of giving me that error)

Even tried "different" mod's (packages) in case it was specific to the portal one, but the new server fails and gives me the error message no matter what mod I try to install (always get the instructions, then the successful test screen and then click the proceed.... then the failure message, requiring me to replace the entire Packages directory to get another chance. (until the directory is replaced, if I retry to install the same mod, or install a different on, I continue to get the error message.

????? There has to be something I am missing somewhere. The installation (and function) of the forum through the upgrade process went without a glitch (once some one pointed out the simple thing I was missing in trying to do that over using "repair_settings.php to correct the path pointers inside the copy of the database used for installing on the new server)

Would be willing to pay a SMF Support guru to get this "SimplePortal 2.3.3" package installed on my forum.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: jestism on June 27, 2011, 10:43:19 PM
PROBLEM SOLVED......

The problem is that I had a "/" at the end of the SMF forum path....

Removed it and everything installed properly.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jessica. on June 28, 2011, 08:05:24 PM
I got a lot of Test Failed but most have "Ignore Errors". so I don't have to worry about them or something?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on June 28, 2011, 08:07:59 PM
Can you paste the test faileds here.

Usually it does mean these can be ignored ( I hope).
Title: Re: SimplePortal - 2.3.3 Released!
Post by: shahnewaz on June 29, 2011, 12:22:25 PM
hello...

i have a problem with my simple portal...
I want to show my board news centered

i mean the images text everything should be centered even if the post is left alaigned..
have a look...

totalpaglamy.com
Title: Re: SimplePortal - 2.3.3 Released!
Post by: flybox on June 30, 2011, 10:40:09 AM
Hi!

I am having some troubles with my Simple Portal Installed on latest version SMF 2.0 the blue color just won't fill whole line on top of the block take a look at here:

(http://img803.imageshack.us/img803/240/problemc.png)

HOW TO FIX THIS?

and how do i make that when a user logins they get redirected to portal, not on the forum??
Title: Re: SimplePortal - 2.3.3 Released!
Post by: telles0808 on June 30, 2011, 02:15:50 PM
Hello folks.

I did a Google+1 button for who wanna share the News on the first page of your Site (Portal).

You'll need to modify the "PortalBlocks.php" inside the ".../forum/Sources/"  folder


I wanna take the opportunity to ask if what I did is correct or can be better.

Thanks.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on June 30, 2011, 02:29:12 PM
Quote from: flybox on June 30, 2011, 10:40:09 AM
Hi!

I am having some troubles with my Simple Portal Installed on latest version SMF 2.0 the blue color just won't fill whole line on top of the block take a look at here:

(http://img803.imageshack.us/img803/240/problemc.png)

HOW TO FIX THIS?

and how do i make that when a user logins they get redirected to portal, not on the forum??

If you had bothered to read the topic before posting you would know the default themes portal.css file has to be placed into your theme folder.

::)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: MrGrumpy on June 30, 2011, 02:35:50 PM
And if SimplePortal bothered to fix it in the 6 months or so since the last update then no1 would need to ask the question and get rude answers - flybox only signed up today so cut them some slack
Title: Re: SimplePortal - 2.3.3 Released!
Post by: AZMazda3 on June 30, 2011, 03:07:38 PM
Quote from: jestism on June 27, 2011, 10:43:19 PM
PROBLEM SOLVED......

The problem is that I had a "/" at the end of the SMF forum path....

Removed it and everything installed properly.

Where was this "/" on the Server Settings page?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: c23_Mike on June 30, 2011, 04:09:26 PM
Hi there!

QuoteAnd if SimplePortal bothered to fix it in the 6 months or so since the last update ...

Yes, i also think an update, which also adresses this well known issue, should be done quickly. It has been time enough for it.

But should not excuse that if someone needs help, this person should first read bevor post. But it should also not excuse that politeness should be first in web.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: nob4uask on June 30, 2011, 07:39:07 PM
Morn All,

I have posted this on the SP website and thought I would give it a try here to.

I am trying to add a panels tab to a custome HTML/PHP block.  I created a spry pannels tab using dreamweaver cs3 and figured I would upload the files and copy the code to the block.  Didn't exactly work..lol

I have searched for assistance and thought I read somewhere that you can only have body info in the custom block, just don't remember.  If anyone can point me in the right direction it would be appreciated.

The code I am trying to enter is below.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="TabbedPanels1" class="TabbedPanels">
  <ul class="TabbedPanelsTabGroup">
    <li class="TabbedPanelsTab" tabindex="0">NFL News</li>
    <li class="TabbedPanelsTab" tabindex="0">Yahoo Sports</li>
  </ul>
  <div class="TabbedPanelsContentGroup">
    <div class="TabbedPanelsContent">Content 1</div>
    <div class="TabbedPanelsContent">Content 2</div>
  </div>
</div>
<script type="text/javascript">
<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
</script>
</body>
</html>

I am using the default smf theme so I uploaded the js & css files to that folder.

Thank you for your time.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: nob4uask on June 30, 2011, 09:44:42 PM
Quote from: nob4uask on June 30, 2011, 07:39:07 PM
Morn All,

I have posted this on the SP website and thought I would give it a try here to.

I am trying to add a panels tab to a custome HTML/PHP block.  I created a spry pannels tab using dreamweaver cs3 and figured I would upload the files and copy the code to the block.  Didn't exactly work..lol

I have searched for assistance and thought I read somewhere that you can only have body info in the custom block, just don't remember.  If anyone can point me in the right direction it would be appreciated.

The code I am trying to enter is below.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="TabbedPanels1" class="TabbedPanels">
  <ul class="TabbedPanelsTabGroup">
    <li class="TabbedPanelsTab" tabindex="0">NFL News</li>
    <li class="TabbedPanelsTab" tabindex="0">Yahoo Sports</li>
  </ul>
  <div class="TabbedPanelsContentGroup">
    <div class="TabbedPanelsContent">Content 1</div>
    <div class="TabbedPanelsContent">Content 2</div>
  </div>
</div>
<script type="text/javascript">
<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
</script>
</body>
</html>

I am using the default smf theme so I uploaded the js & css files to that folder.

Thank you for your time.

Morn All,

I think I have it figured out but still need some help if anyone knows what is going on.

I played around with the code in DW cs3 and was able to duplicate what I am getting when previewing it in SP custom html block.  This is what I have so far.

I am using the SMF default theme ao I uploaded a folder called SpryAssets to that directory.  The folder has the js & css files in it.

I inserted the following code into the custom html block.

<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />

<div id="TabbedPanels1" class="TabbedPanels">
  <ul class="TabbedPanelsTabGroup">
    <li class="TabbedPanelsTab" tabindex="0">NFL News</li>
    <li class="TabbedPanelsTab" tabindex="0">Yahoo Sports</li>
  </ul>
  <div class="TabbedPanelsContentGroup">
    <div class="TabbedPanelsContent">Content 1</div>
    <div class="TabbedPanelsContent">Content 2</div>
  </div>
</div>
<script type="text/javascript">
<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
</script>

When I preview it, instead of getting a tab panel I get the following.

        NFL
        Yahoo Sports

Content 1
Content 2

In order to duplicate the above in dreamweaver I put the above code in the body and removed the rest which worked fine.  I then removed the SpryAssets folder and I get the exact same thing as above instead of tabs.

With all that said, I think that I have the js & css files in the wrong place, does anyone know where I should put them ?

Thank you for your time.

Title: Re: SimplePortal
Post by: erickma on July 01, 2011, 12:41:19 PM
Socio me pudieras facilitar una URL o un Link para descargar las plantillas o el tema que esta aplicado en la imagenes de la respuesta #5 del foro Modifications and Packpages.

Partner could provide me a URL or a link to download the template or theme that is applied to the images of the response # 5 Modifications and Packpages forum.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: jestism on July 02, 2011, 12:39:43 PM
Quote from: flybox on June 30, 2011, 10:40:09 AM
Hi!
I am having some troubles with my Simple Portal Installed on latest version SMF 2.0 the blue color just won't fill whole line on top of the block take a look at here:
(http://img803.imageshack.us/img803/240/problemc.png)
HOW TO FIX THIS?

Was the following reply for "Fixing" the above color in the bar issue? (I have not attempted to replace or edit my PortalBlocks.php file as I know just enough to screw it up...... However if this file is just a "Replacement" for the existing file to solve the problem, I can do that easy enough. Just don't want to do anything without someone smarter than me telling me that is what the file is for, fixing this problem.

Quote from: telles0808 on June 30, 2011, 02:15:50 PM
Hello folks.
I did a Google+1 button for who wanna share the News on the first page of your Site (Portal).
You'll need to modify the "PortalBlocks.php" inside the ".../forum/Sources/"  folder
........Thanks.

Or is the fix for the bar not being the same color all the way across from this post?

Quote from: Brack1 on June 30, 2011, 02:29:12 PM
............ the default themes portal.css file has to be placed into your theme folder.
::)

I ask because I have done the "last one, copying the portal.css into my theme folder. (both the main theme directory and the css directory of the theme I am using) and I still have a "Blue" section in my bar.

(http://www.prexis.com/temp/portal%20top%20bar%20issue.jpg)

Thank-you in advance for any help or helpful direction / insight in how to make that blue blob in my headings bar go away.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: aarbee on July 09, 2011, 11:10:21 AM
I had a forum on version 1.13 and had upgraded it to version 2.0 last night.
All worked pretty good.

After that I missed the portal. So I looked in to the backend of the forum and found a package called simple portal 2.3.3.
I tried to install that, but it had issues with write rights. Thought the folder was at chmod 777.
I read somewhere to add the temp folder, which I did.
Installed in charm.

But then I lost all of the forum and got this error.
Fatal error: Call to undefined function db_query() in C:\inetpub\vhosts\domainname\dir\forum\Sources\Subs-Portal.php on line 318

How can I resolve the issue? Or eventually rollback?

Robb
Title: Re: SimplePortal - 2.3.3 Released!
Post by: aarbee on July 10, 2011, 10:05:09 AM
Fixed it.
Deleted all files on the server, and uploaded the newest complete version.
Edited the settings.php.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: treehugger on July 10, 2011, 07:48:17 PM
Having read that SP could be installed on SMF 2.0 by emulating to RC4, I upgraded from RC5.

I uploaded 2.3.3 and when I'm still 'in' 2.0 it shows  [ Uninstall ] [ List Files ] [ Delete ] - when I emulate to RC4 to try and install it all I see is [ List Files ] [ Delete ]

Any ideas please?

Modified to say that curiosity eventually got the better of me and I clicked Uninstall - Test Failed on more than half of the files. The system obviously thinks that SP is installed, but why should it think that after the upgrade?

Modified to say the problem has been sorted - can't say how because a friend did it for me.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: hamsterdaddy on July 15, 2011, 02:15:19 PM
How do you move a block from Top to Bottom?

In boards you can move something anywhere. In the block section of Admin I only see options to move the HTML block to the bottom of the top blocks, not into the bottom ones.

I need to move a block out of the top blocks and to the bottom of the bottom blocks.

Using the latest 1.1.14 software with Simple Portal 2.3.2. Thanks in advance.   ;D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: treehugger on July 15, 2011, 03:19:55 PM
When your chosen block is at the bottom of the top blocks just click the arrowhead pointing right and it will move to the bottom block section. I think it goes at the end automatically but if not, just click the down arrow. :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: hamsterdaddy on July 15, 2011, 05:36:58 PM
Thanks treehugger, I forgot about the side arrows doing that. That should do it for my problem.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: More-to-life on July 16, 2011, 12:31:10 PM
Hi Guys

Are there any updates due for SMF 2.0 Gold

Thanks in advance
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on July 16, 2011, 12:35:56 PM
Quote from: More-to-life on July 16, 2011, 12:31:10 PM
Hi Guys

Are there any updates due for SMF 2.0 Gold

Thanks in advance

The portal works with 2.0

The only error so far is the location of the copyright and who is gonna worry about that?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: More-to-life on July 16, 2011, 12:37:01 PM
erm...not me  ;D

Thanks for the quick reply
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on July 16, 2011, 12:44:30 PM
Quote from: More-to-life on July 16, 2011, 12:37:01 PM
erm...not me  ;D

Thanks for the quick reply

Rather than make me guess why not say what problems ya having?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: More-to-life on July 17, 2011, 12:22:11 PM
I was going to upgrade to 2.0 gold but didn't know if SP worked with gold
You stated it does so I have no problems ;D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: briggz5d on July 18, 2011, 07:47:20 AM
I'm using Simple portal - SMF 2.0 and the Board News is activated for all Boards. i am trying to restrict certain Posts from members not to be displayed on the board news. I Do not want to remove that entire board from the board news - i just want certain posts to now show there as they are not that Important.

Starting Post ID: feature should solve this problem by but umm how do i specify post id? and can i specify more than one post id to be displayed first before any others? example:
/?Topic=187.0, 190.0, 119.0 etc

I hope someone understands my question.. Ok waiting for you response
Title: Re: SimplePortal - 2.3.3 Released!
Post by: More-to-life on July 21, 2011, 09:23:52 AM
Ive upgraded to 2.0 Gold & tried to install & emulate install SP but all I get is

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


How did you lot get this to work then?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Aoife on July 21, 2011, 09:31:13 AM
Quote from: More-to-life on July 21, 2011, 09:23:52 AM
Ive upgraded to 2.0 Gold & tried to install & emulate install SP but all I get is

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


How did you lot get this to work then?


don't emulate, just install to 2.0. that worked for me.


:)

Title: Re: SimplePortal - 2.3.3 Released!
Post by: More-to-life on July 21, 2011, 10:58:41 AM
Quote from: aoife on July 21, 2011, 09:31:13 AM
Quote from: More-to-life on July 21, 2011, 09:23:52 AM
Ive upgraded to 2.0 Gold & tried to install & emulate install SP but all I get is

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


How did you lot get this to work then?


don't emulate, just install to 2.0. that worked for me.


:)
Yep tried that as mentioned in by previous post
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 21, 2011, 01:31:06 PM
Quote from: soki2ng on July 18, 2011, 07:47:20 AM
can i specify more than one post id to be displayed first before any others? example:
/?Topic=187.0, 190.0, 119.0 etc
That "starting post id" feature allows you to specify the earliest post that will be featured.  It does not give you a way to display one post in a "sticky" position, for example.

So, if all the posts you want to prevent showing are EARLIER than one starting post id, use that ID to show only stuff AFTERWARDS.

This feature cannot be used if the posts you don't want are interleaved.

One simple way around this problem, if it would work for your site, would be to start another board, and move the "other" posts to that board.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: More-to-life on July 22, 2011, 08:53:15 AM
*UPDATE*

I just tried to install the package again (no emulation at all) from my other pc (WINDOWS 7 64B) & everything went ok

I dont know if it was a software glitch?

Thanks again for the help & advice guys ;D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 22, 2011, 12:09:40 PM
I'm so glad that worked!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: gisfreak on July 24, 2011, 01:40:31 PM
hem, the best portal so far, try different portal mod after I saw no update from SP, but, SP is the most portal mod that suite for me, I think Im gonna back using SP

regards,
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 25, 2011, 06:04:10 PM
does not create a new page - displays a white blank page when I want to do this in the forum 2x

Is it to be repaired properly could add pages to portal?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 26, 2011, 06:51:58 AM
Also to be imparted
Menu of these pages as we create the same
Possibility to add the same block in the forum and the portal

- What in the above post repair create pages

Beyond this portal is brilliant
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 26, 2011, 08:04:07 AM
Also, when the portal is enabled you can not go to certain pages in the admin - you need to turn off the portal to view the page
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 26, 2011, 04:27:32 PM
tomeh -- are you getting errors in your SMF error log when these bad things happen?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 26, 2011, 05:47:01 PM
Hello, there are no error logs
I checked on clean installations smf2.0 and everywhere is the same
Page does not work and can sometimes problems with displaying the page - load option package for example, be white
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 27, 2011, 08:38:20 AM
I want to make sure I have got this straight.

* When SimplePortal is on, some forum URLs produce a completely blank white page.  These URLS include:
   ** Add Page index.php?action=admin;area=portalpages;sa=add
    ** Certain admin pages (which ones?)

This is an unusual problem, and may be difficult to track down. When I have seen it before, it has been caused by an HTML error (you can have a look at the HTML). I'd like to have as many eyes on this problem as possible. Can you bring it to http://simpleportal.net?  Summer activity there seems low, but there just *MIGHT* be more users there than are watching this thread.

* In addition, you are asking how to
   ** Add the same block in the forum and the portal
     *** Please see http://simpleportal.net/index.php?action=docs;area=setup_blocks to make sure you allow blocks in forum
     *** Then please use the Display Options to control where the blocks appear http://simpleportal.net/index.php?action=docs;area=block_editor
   **  Show created pages on the button menu ("Menu of these pages as we create the same").  For this, I recommend using one of the mods that allows you to create new buttons on the menu.  Search the SMF mod site for "button menu"
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 27, 2011, 09:13:44 AM
Welcome to the beginning - this file is modified SimplePortal_2.3.3.tar.gz - so do not want to istalować on SMF.2.0 - need to change it to zip and what to unpack the package. Tar to make it in a zip folder directly

.........

When sending a setup file which is given does a white blank page in the packages from the administration panel, and always at each installation in SMF2.0 - you have to manually change the above mentioned zip to work Installation from - if a package is in the packages directory is always a white page and lack of position in the list of packages - only when wgram converted manually install the zip package if you see this page modifications.




page with white background and lack of content
When the portal is on it:
Administrative Packages page
Admin page download packages

.......

I've tested this on various instalacjaach, everywhere is the same. Also tested is a friend and also have the same situation, the results were independent
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 27, 2011, 09:37:56 AM
I am sorry for asking again.  I am not sure I understand.

* Even before you installed SimplePortal, you were having this "white page" problem every time you install a mod in SMF 2.0 final?

This sounds like it MIGHT be at the root of your problem.

Other Polish users of SMF are also having this problem?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 27, 2011, 09:50:06 AM
the installation package is in the folder so that downloading is a white page - as it is processed on the ZIP then displays the page setup and send packet

After installation, I get errors of filaments I wrote above another - all have no problem, but niekóre people so we do not know is where to come because he appears on both the clean instalcjach SMF2.0 as well as those upgrading from 1x

Oh there is a white page on the portal in a way - you can not add pages in the portal

...

The problem is that it is not clear what may be the reason for the lack of logs errors - nor has any hints about what's going on
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 27, 2011, 10:10:53 AM
At a friend are the error logs
photo

http://img641.imageshack.us/img641/1853/tstj.jpg
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 27, 2011, 10:25:28 AM
Thank you for the picture of the error log

* If you start with fresh SMF 2.0, with no mods installed
* Do you have such blank white pages anywhere?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 27, 2011, 11:11:45 AM
Just as I wrote above in any installation SMF2

How companies grow but will do tests today at night and I will know
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 27, 2011, 11:22:54 AM
I am sorry I did not understand. Please tell me
Quote from: AngelinaBelle on July 27, 2011, 10:25:28 AM
* If you start with fresh SMF 2.0, with no mods installed
* Do you have such blank white pages anywhere?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 27, 2011, 11:31:45 AM
Quote from: AngelinaBelle on July 27, 2011, 11:22:54 AM
I am sorry I did not understand. Please tell me
Quote from: AngelinaBelle on July 27, 2011, 10:25:28 AM
* If you start with fresh SMF 2.0, with no mods installed
* Do you have such blank white pages anywhere?


Yes, SMF2 the new installation - the same problem as described above

.......

I checked on the new SMF2.0 now - just as I wrote earlier - the default language is Polish (I do not know whether this may have something to do with it) - package installation you need to change the zip to install it - the rest of the problems is the same as described earlier.
.......

By the end of the week even try manual installation - it can automatically is a problem
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 27, 2011, 11:56:57 AM
Please.  I did not understand your description above.

Were there any problems in SMF BEFORE you tried to install SimplePortal?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 27, 2011, 12:22:59 PM
not only in the  installation and when it is installed portal
.......

He writes to you by tlanslator - probably because many are poorly written statements
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Citizen Erased on July 27, 2011, 03:20:16 PM
Hi. After more than a year testing it, I finally install SimplePortal in my forum.

Excellent job. Congratulations to all.

I made my own translation to spanish_latin if you want to use it. I name it "beta" 'cause I didn't check it all yet. Is "spanish_latin" but it can be used as "spanish" or "spanish_es". I will try to improve it next week.

And a little advice. In line 1144 ther is a "$table_query .= ') TYPE=MyISAM';" line that must be (at least in some versions of MySQL) something like "$table_query .= ') ENGINE=MyISAM';".

Regards, and congratulations to all the SP Team again.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 27, 2011, 03:46:42 PM
Did you have any problem BEFORE you started installing SimplePortal, or did all the problems begin with installation of Simpleportal?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 27, 2011, 04:41:08 PM
Quote from: AngelinaBelle on July 27, 2011, 03:46:42 PM
Did you have any problem BEFORE you started installing SimplePortal, or did all the problems begin with installation of Simpleportal?

If this is a question for me is just how to install and have install SimplePortal
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 27, 2011, 07:18:54 PM
tomeh: Did you have any problem with SMF before you began to install SimplePortal
Title: Re: SimplePortal - 2.3.3 Released!
Post by: urgent on July 27, 2011, 08:41:41 PM
Hello:
I just installed simpleportal manually. Now when I click a link for categories or post, it just reloads the homepage. Any ideas on where I should start? My initial idea is to reload the sources folder from a clean install and start again. Thanks.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 28, 2011, 02:49:39 AM
there were no problems before installing the portal. The problems are mainly with the portal and view pages but with modifications to the portal
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 28, 2011, 06:45:20 AM
Thanks for the information, tomeh,
Were there any problems DURING installation of SimplePortal?

I did not understand your comments about the zip file.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 28, 2011, 07:01:52 AM
installing the portal - the zip file successfully with the lack of visibility of the modification and operation of the site as I mentioned earlier

Portal can be installed as a process the tar to zip - but the portal is in operation a few problems as I have already written

I think it's good that you have downloaded installations SMF2 and Polish translation was installed and performed just as it does every person


Polish txt

instalowanie portalu - po udanym z pliku zip brak widoczności strony modyfikacji oraz działanie portalu o czym wspomniałem już wcześniej

Portal da się zainstalować jak się przerobi tar na zip - ale portal ma w działaniu kilka problemów o czym już pisałem
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 28, 2011, 07:38:13 AM
tomeh -- thank you for that information.  Before, I did not understand if site was OK before install, and if install was OK.

Now, I am not sure what is causing your problem. Can you provide way that I can see these blank white pages myself?

I would like to help you figure this out.  If you wish, you may PM me with one username/password with administrator membergroup (temporarily).
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 28, 2011, 08:46:24 AM
localhost is in the tests. Upload a modification of the portal is a white page with the modifications and then in the portal do not work these things.

I have some time I will be testing it manually, automatically and in different ways.

The portal I found errors of ADK. They shall be corrected by the authors already.

Simple portal will only test again after some time - but I suspect that the results were different, and I dont know what's the probelm
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 28, 2011, 08:50:24 AM
I am sorry.  I do not understand "upload a modification of the portal".

When again you test SimplePortal, we will write very simple English, and try hard to understand each other, OK?

If this still is very difficult problem, perhaps you may bring it to simpleportal.net, OK?

Good Luck!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: impreza on July 28, 2011, 09:39:20 AM
Thank you for your time, certainly can solve every problem - a matter of time.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: urgent on July 28, 2011, 10:26:31 AM
Quote from: urgent on July 27, 2011, 08:41:41 PM
Hello:
I just installed simpleportal manually. Now when I click a link for categories or post, it just reloads the homepage. Any ideas on where I should start? My initial idea is to reload the sources folder from a clean install and start again. Thanks.

Hello:
Should I start with reloading my source directory, or maybe index and ssi? Anyone run into this problem before where the links just go to the homepage? Maybe something with the query string?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 28, 2011, 10:50:53 AM
urgent,
I am sorry I missed your original post.
Manual installation can be tricky.  If you know which SMF files you edited, it should be enough to replace them.
These files will include index.php, some in the Sources folder, and some in your Themes folder.

Is there some reason you elected not to use the package manager to install the mod?
If only some of the tests failed, it is often easier to first do the install, then fix up the files that failed their test.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: urgent on July 28, 2011, 05:37:10 PM
Quote from: AngelinaBelle on July 28, 2011, 10:50:53 AM
urgent,
I am sorry I missed your original post.
Manual installation can be tricky.  If you know which SMF files you edited, it should be enough to replace them.
These files will include index.php, some in the Sources folder, and some in your Themes folder.

Is there some reason you elected not to use the package manager to install the mod?
If only some of the tests failed, it is often easier to first do the install, then fix up the files that failed their test.

np thanks for responding. I did manual installation because I had other mods installed and remember trying to install an earlier module and it failing.

The thing is other links work, like the admin section works fine. When I try clicking on category or post links, it just goes to the homepage.

This link works and goes to the admin section:
index.php?action=admin;area=corefeatures;d07e5399375=924d3660194834c1591126fbbdf22a39

But this link generated from the simpleportal recent post doesn't and just refreshes the homepage:
index.php?topic=1.msg1;topicseen#new

same with this one for the categories:
index.php?board=1.0

Thanks.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: urgent on July 28, 2011, 05:40:11 PM
Quote from: urgent on July 28, 2011, 05:37:10 PM
Quote from: AngelinaBelle on July 28, 2011, 10:50:53 AM
urgent,
I am sorry I missed your original post.
Manual installation can be tricky.  If you know which SMF files you edited, it should be enough to replace them.
These files will include index.php, some in the Sources folder, and some in your Themes folder.

Is there some reason you elected not to use the package manager to install the mod?
If only some of the tests failed, it is often easier to first do the install, then fix up the files that failed their test.

np thanks for responding. I did manual installation because I had other mods installed and remember trying to install an earlier module and it failing.

The thing is other links work, like the admin section works fine. When I try clicking on category or post links, it just goes to the homepage.

This link works and goes to the admin section:
index.php?action=admin;area=corefeatures;d07e5399375=924d3660194834c1591126fbbdf22a39

But this link generated from the simpleportal recent post doesn't and just refreshes the homepage:
index.php?topic=1.msg1;topicseen#new

same with this one for the categories:
index.php?board=1.0

Thanks.

also I forgot to add I replaced the source and packages directory with a backup, and the index.php and SSI.php files with a backup and it still has the same result.

Do you think I should start with a clean install? Thanks.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: AllanD on July 28, 2011, 07:06:45 PM
How would i make a forum menu option appear.
Intalled great no test failed or anything

http://mympz.com/index.php
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 29, 2011, 07:36:05 AM
urgent,

It sounds like you had an incomplete install of SimplePortal. This is not too surprising, consider the number of edits it makes.
It is a big mod. If you were able to install all of your other mods using the package manager, grabbing JUST THE PHP FILES from a full install of your version of the mod (SMF 2.0, right?) would work.
You might even find it convenient to uninstall your other mods first -- though the SimplePortal edits could SOMETIMES cause interference there.
If you had to do a lot of manual work to install your mods, then this "EASY WAY" might turn in to a lot of work.


Here's the hard way:
1) install SimplePortal (ignore all the errors)
2) uninstall SimplePortal (take note of the errors)
3) manually clean up where the package manager found errors.
4) search for any remaining SimplePortal code. Generally, you can find it by searching all your php files for "portal" and "sp_"
5) Make ABSOLUTELY CERTAIN you have gotten rid of every last line of SimplePortal code.
6) Install SimplePortal. Make careful note of all the errors. SMF 2.0 makes it easy to figure out WHICH edit is causing the problem.
7) Manually accomplish the edits the Package Manager installer could not figure out.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: AllanD on July 29, 2011, 10:52:21 AM
No need to help got this sorted out.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 29, 2011, 11:01:53 AM
CrazieGrafix,

I'm glad you got this sorted.  I hadn't figured out yet what kind of button menu that Crip theme used.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: AllanD on July 29, 2011, 11:51:18 AM
ended up being a conflict with the mod that removes the help button from the menu.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on July 29, 2011, 12:50:16 PM
Good! Glad you found it!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rgecy on August 01, 2011, 12:28:04 AM
I am trying to install 2.3.3 and keep getting this error:

Duplicate column name 'member_name'
File: /home/content/r/g/e/rgecy1/html/forums/Packages/temp/install2.php
Line: 500

I was running 2.0 RC2 and SP 2.3.1 and upgraded to SMF 2.0

Any ideas how I can fix this?

Robert
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rgecy on August 01, 2011, 10:12:50 PM
Anyone? Sorry for being impatient!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 02, 2011, 08:06:33 AM
I am not sure why you are having this problem.
install2.php is trying to change the name of the column memberName to member_name, but column member_name already exists.

The easiest possible workaround would be to just drop the table sp_shouts.  The SimplePortal install would create a new, empty shouts table, which would solve this problem.

If you wish to keep the shouts, you can get into MySQL and drop the column memberName. That would also end the installer's confusion.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 03, 2011, 06:25:25 PM
Is there a way to edit shouts to keep them clean on a family site?

Sometimes we have to clean up shouts due to language etc.

Thanks

Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on August 03, 2011, 08:29:58 PM
Not sure if the forums word filter comes in use here.

This link may help.

http://simpleportal.net/index.php?topic=9235.0

Gives a modification where the complete shoutbox log can be emptied.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 03, 2011, 08:32:57 PM
rollingrock:

Administrator should find a little delete icon all the way on the right-hand side of the shout.
It looks like this: (http://simpleportal.net/Themes/mehmene/images/sp/delete_small.png)

Click that, and delete the shout.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 03, 2011, 10:47:01 PM
Quote from: AngelinaBelle on August 03, 2011, 08:32:57 PM
rollingrock:

Administrator should find a little delete icon all the way on the right-hand side of the shout.
It looks like this: (http://simpleportal.net/Themes/mehmene/images/sp/delete_small.png)

Click that, and delete the shout.



well duh!!!!   Mouse over and presto...I am an idiot.  (you can quote me)   Thanks for the tip.   Got it and now I feel like a total tool.   

Cheers

RR

Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 03, 2011, 10:49:32 PM
I will add, an Edit feature would also be nice.   TP had that and our mods liked it.   Is there a feature request area? 

This is my first go with Simple Portal, I converted from TP.   Very easy to use and good looking.   Makes things very easy.

My hats off the the team that made it.


Title: Re: SimplePortal - 2.3.3 Released!
Post by: MarkLeevE on August 04, 2011, 04:34:39 AM
I'll replace Tinyportal with Simple Portal.. Thanks
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Inti31 on August 08, 2011, 09:09:12 AM
simpleportal works absolut fantastic - I just miss one feature on pages - I would like to know how often a page has been visited.
SMF has that feature integrated for every topic, means it shows in brackets the number of how many people have read the topic "(Read x times)".

maybe a feature which could be in version 2.4?

I put this to the right place also...
http://simpleportal.net/index.php?topic=9386.msg49227#msg49227

cheers Inti31

problem solved: http://simpleportal.net/index.php?topic=9384.msg49246#msg49246 - thx grafitus
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 08, 2011, 09:10:48 AM
That is the perfect place for the suggestion.  Thanks!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 08, 2011, 01:21:45 PM
Installed Simportal but it changed the order of my boards.

For some reason, the order is changed yet when I check in the admin under boards the order is correct.

Something I am missing to fix that?

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 08, 2011, 04:02:25 PM
This is very surprising.  I have never heard of this kind of behavior before. Are there other mods installed, which might affect the order in which the boards are displayed? Maybe the different mods are not getting along somehow?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 08, 2011, 09:28:23 PM
Quote from: AngelinaBelle on August 08, 2011, 04:02:25 PM
This is very surprising.  I have never heard of this kind of behavior before. Are there other mods installed, which might affect the order in which the boards are displayed? Maybe the different mods are not getting along somehow?

All that is in stalled are the follow:
SMF Gallery Pro
Simple Portal
Tapatalk
YoutubeBBCode

Could it be that the tinyportal has left some files there?   

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 09, 2011, 08:17:48 AM
If the uninstall went properly (with no errors), there should not be any remains of tinyportal, except in the database.  So, even if it left behind some data related to reordering boards, it would not have left behind  its code to do it.  So this seems unlikely.

Can you give more information on exactly what way the board are reordered?  like a screenshot of the admin page showing how they are ordered there, and the index page, showing how they are ordered there?  This is very unusual.

Is tapatalk compatable with the portals? It doesn't display the portal page on the smart phones, does it?
Title: Shout Box in continuous refresh?
Post by: dsantana on August 09, 2011, 10:54:12 AM
Hello,
Any clues as to why the Shout Box keeps circling? Never refreshes but keeps going...
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 09, 2011, 11:24:20 AM
Here are the two screen shots you reqeusted on the board order.

as you can see, in the admin, they are in one order, in the portal they are in another.   

Very odd.   

As for Tapatalk, no you cannot see the portal, at least I don't think you can.  I will check it today.

Thanks for your help. 

RR
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 09, 2011, 11:41:38 AM
rollingrock -- that's not just a little different. Those categproes amd boards listed in the admin page. It looks like a completely different site. And you say that just turning off the portal fixes the problem?
Quote
[Welcome to the Cafe]
Read First, Rules of the Cafe
New to DC? Introduce Yourself
Have a Question About the Site?

[Auto Detailing 101]
Start Here

[The Cafe Detailing Help Desk]
Detailing Help

[Show of your recent Detail]
Cafe Detailing Gallery
Cafe Hall of Fame Detail Work
Website Photos

Quote
[General Category]
General Discussion
  Watch Cafe
  Gun Room
The Soap Box
Car/Truck Mod Talk
The Detailer's Cafe Events
Testing Area
Classic Car Photos and discussions
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 09, 2011, 11:42:20 AM
dsantana -- you are having some kind of AJAX problem, I think. Do you have any other AJAX-based mods installed?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: dsantana on August 09, 2011, 12:12:28 PM
Quote from: AngelinaBelle on August 09, 2011, 11:42:20 AM
dsantana -- you are having some kind of AJAX problem, I think. Do you have any other AJAX-based mods installed?
Maybe the garage mod?
1.   Watermark.light    1.5                             [ Uninstall ] [ List Files ] [ Delete ]
2.   The Rules    1.3                                             [ Uninstall ] [ List Files ] [ Delete ]
3.   Watermark.light for AEVA    1.5                     [ Uninstall ] [ List Files ] [ Delete ]
4.   Join date in Posts    1.1                             [ Uninstall ] [ List Files ] [ Delete ]
5.   Admin Notepad    2.0.1                           [ Install Mod ] [ List Files ] [ Delete ]
6.   Ad Seller Pro    1.0.9                                     [ Uninstall ] [ List Files ] [ Delete ]
7.   Users Online Today    1.5.6                             [ Uninstall ] [ List Files ] [ Delete ]
8.   Share This Topic    3.0                             [ Uninstall ] [ List Files ] [ Delete ]
9.   SimplePortal    2.3.3                                     [ Uninstall ] [ List Files ] [ Delete ]
10.   eBay BBCode    2.0                                     [ Uninstall ] [ List Files ] [ Delete ]
11.   Aeva Media    2.10                                     [ Uninstall ] [ List Files ] [ Delete ]
12.   SMF Garage    2.1                                     [ Uninstall ] [ List Files ] [ Delete ]
13.   Order Custom Profile Fields    1.1                   [ Install Mod ] [ List Files ] [ Delete ]
14.   Twitter and Facebook Publisher mod    2.8   [ List Files ] [ Delete ]
15.   Simple .htaccess Proxy Blocker Mod    1.1     [ Uninstall ] [ List Files ] [ Delete ]
16.   Google Analytics Code    1.4                     [ Uninstall ] [ List Files ] [ Delete ]
17.   Google Member Map    2.0.8                     [ Uninstall ] [ List Files ] [ Delete ]
18.   ENotify    2.0.1                                             [ Uninstall ] [ List Files ] [ Delete ]
19.   Personal address BBCode    2.0             [ Uninstall ] [ List Files ] [ Delete ]
20.   Menu Order    0.2.6                                     [ Uninstall ] [ List Files ] [ Delete ]
21.   Menu Buttons    1.1                                     [ Uninstall ] [ List Files ] [ Delete ]
22.   Smfsimple Google button +1    V1                   [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 09, 2011, 12:17:35 PM
I am not familiar with the Garage mode.  You might try, on a fresh test forum, installing SimplePortal, seeing if you have the problem, and then trying the garage mod.  That should probably sort it out.  Unless it is another mod.  Or a really complicated 3-way problem.

I imagine it may be either:
1) Some kind of javascript issue
2) Some issue with how the forum deals with the XML request.

Any mods that mess with either of these things could mess with the shoutbox.
Or it could be something else.  I am not a dev, and I don't know the depths of SMF, or even of SimplePortal.
You might be able to trace it by sticking in a whole lot of logging statements (on a test forum, of course).

This kind of thing is going to be difficult to figure out, because it may not be the problem of one mod or another one, but some strange combination of two mods.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 09, 2011, 01:46:10 PM
Quote from: AngelinaBelle on August 09, 2011, 11:41:38 AM
rollingrock -- that's not just a little different. Those categproes amd boards listed in the admin page. It looks like a completely different site. And you say that just turning off the portal fixes the problem?
Quote
[Welcome to the Cafe]
Read First, Rules of the Cafe
New to DC? Introduce Yourself
Have a Question About the Site?

[Auto Detailing 101]
Start Here

[The Cafe Detailing Help Desk]
Detailing Help

[Show of your recent Detail]
Cafe Detailing Gallery
Cafe Hall of Fame Detail Work
Website Photos

Quote
[General Category]
General Discussion
  Watch Cafe
  Gun Room
The Soap Box
Car/Truck Mod Talk
The Detailer's Cafe Events
Testing Area
Classic Car Photos and discussions

well, I haven't tried turning off the simpleportal to check it...want me to test that?

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 09, 2011, 01:52:39 PM
You say the problem started the moment you installed SimplePortal?
Perhaps shutting it off would make a difference.

Have you tried re-ordering the boards since they started appearing in the strange order?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 09, 2011, 02:46:54 PM
Quote from: AngelinaBelle on August 09, 2011, 01:52:39 PM
You say the problem started the moment you installed SimplePortal?
Perhaps shutting it off would make a difference.

Have you tried re-ordering the boards since they started appearing in the strange order?

correct, we didn't see an issue until we installed the portal...could it be how we are using it?   Like the when boxes show up?   Integrated vs Portal vs everywhere?

dumb question but if I shut it off you mean uninstall?

RR

EDIT, ok, i disabled for a few min and sure enough the boards are out of order.  But in admin they show in order. 

EDIT #2....FIXED IT...all I did was change the order and move it back to 1st and presto, fixed even in portal mode.

WHoohoo!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 09, 2011, 03:00:24 PM
SimplePortal should not be messing with the boardindex sort order at all.
So enabling/disabling, using integrated vs front page vs standalone, boxes on portal only or everywhere -- none of that OUGHT to make a difference.

I would suggest uninstalling it first. If the boards are still out of order, then it is not SimplePortal at all.
If the boards get better after an uninstall, then simpleportal must have SOMETHING to do with the problem.
Then, if unistalling fixes the problem, please try re-installing and fiddling with many different settings.

If the problem goes away when SimplePortal is uninstalled, then the problem COULD BE some weird side effect of (SimplePortal + another mod). Because SimplePortal has no way to reorder board index on its own.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 09, 2011, 06:54:27 PM
Quote from: AngelinaBelle on August 09, 2011, 03:00:24 PM
SimplePortal should not be messing with the boardindex sort order at all.
So enabling/disabling, using integrated vs front page vs standalone, boxes on portal only or everywhere -- none of that OUGHT to make a difference.

I would suggest uninstalling it first. If the boards are still out of order, then it is not SimplePortal at all.
If the boards get better after an uninstall, then simpleportal must have SOMETHING to do with the problem.
Then, if unistalling fixes the problem, please try re-installing and fiddling with many different settings.

If the problem goes away when SimplePortal is uninstalled, then the problem COULD BE some weird side effect of (SimplePortal + another mod). Because SimplePortal has no way to reorder board index on its own.



Thanks for holding my hand with my questions...not sure if you saw my edits...but I fixed it by just changing it and changing it back. 

Thanks

RR

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 09, 2011, 06:58:49 PM
Just reordering the boards fixed the problem. That's a relief.
I would not even be able to guess what caused the problem in the first place, but I'm glad you fixed it.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: andyac on August 13, 2011, 02:33:08 AM
can this work with 2.0final?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 14, 2011, 08:14:42 PM
Yes. It works with 2.0 final.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rgecy on August 15, 2011, 09:54:33 PM
I recently upgraded my forum from 2.0RC2 to 2.0Gold.  I did not unistall SP before upgrading and tried to reinstall it after I upgrade and it gave me an error in converting the database.  (I think I mentioned it in an earlier post)  Now it shows Simple Portal as not being installed in package manager (still shows [install] on the list), but all the menus and portal page all work.

I was having an error with a new theme and wanted to unistall it, but it has no way to do it through package manager.  What files whould I delete and what edits need to be made?

Thanks,

Robert
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 16, 2011, 08:19:49 AM
Hmmm that's unusual. The package manager should not install the files if it didn't do the database portion of the install. 

The easiest thing, actually, might be to tell SMF that SimplePortal is actually installed. I have never done this myself. If I had to, I would ask on the SMF 2.0 support board "How to make SMF believe that a mod actually is installed".

Doing a manual un-install is much more work.  You go to the mod's page and look at the manual installation instructions for your version.  Then follow them all, backwards.  Preferably on a test copy of your forum, because, if you are like me, you WILL make a mistake or two. So it is easier to do the work on a test copy of the forum, and copy the files to your real form afterwards.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 16, 2011, 09:46:58 AM
AngelinaBelle

I have a new one for you.   when someone is looking at their gallery photos, the right slide blocks act very strange.

Attached is a screen shot.  Let me know what you think.

Thanks

RR
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 16, 2011, 10:15:10 AM
The image has spilled out of the sp_center "box" it is supposed to be in. It is above the sp_right background, but below the words. Which gallery mod are you using? How does it figure out how wide to display the photo? The issue is possibly related to a feature of simpleportal.  It tries to accomodate some strange browser behavior by setting the width of the table column sp_center to 100%. This works for most browsers most of the time, even though it is not strictly correct. If sp_left is 200px and sp_right is 200px, then sp_center cannot possibly be 100%. You can try, in portal.css, #sp_center { width: 100%; vertical-align: top; } actually removing the line with the width MIGHT make a difference. It is worth a shot, in any case. Which gallery are you using?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 16, 2011, 11:09:12 AM
Quote from: AngelinaBelle on August 16, 2011, 10:15:10 AM
The image has spilled out of the sp_center "box" it is supposed to be in. It is above the sp_right background, but below the words. Which gallery mod are you using? How does it figure out how wide to display the photo? The issue is possibly related to a feature of simpleportal.  It tries to accomodate some strange browser behavior by setting the width of the table column sp_center to 100%. This works for most browsers most of the time, even though it is not strictly correct. If sp_left is 200px and sp_right is 200px, then sp_center cannot possibly be 100%. You can try, in portal.css, #sp_center { width: 100%; vertical-align: top; } actually removing the line with the width MIGHT make a difference. It is worth a shot, in any case. Which gallery are you using?

Thanks, I am running SMF Gallery Pro, and one of my back up admins did change the right side width.  Could that have done it?

My max setting on the gallery is 800x800 but my max display is 640x640

Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 16, 2011, 11:15:02 AM
think there is a conversion to another portal to where I don't loose what I have?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 16, 2011, 11:17:23 AM
I can see (IE developer's toolkit or FireFox firebug plugin makes this easy) that sp_left is 200, sp_right is 225. This change would not have made much difference in that behavior, though you can try fiddling with it.

I don't know much about how SMF Gallery does things, and I cannot see your gallery.
SMF Gallery may have been designed with a minimum size for the image, with a wider window in mind. I do not know.
There may be some minor incompatabilities. You may be able to settle it all in CSS.
SMF Gallery's author may be willing to work with you on ways you can fiddle with SMF Gallery. And you can always ask here or at simpleportal.net for advice on how to fiddle with the portal.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 16, 2011, 11:22:52 AM
rollingrock,

As far as I know, none of the portals offer conversions, though I think they all offer "recent posts" type of blocks. I think the best way to find out which portal is the best for you is to make a test copy of your forum (complete with a test copy of the database and your gallery files), and install the gallery and whichever database you want to test.  You'll know more within a couple of hours.
Title: Recent Topics block - Count of Actual Topics listed Keeps Changing
Post by: JFlame on August 17, 2011, 03:37:53 PM
I am running SimplePortal 2.3.2 (need to upgrade, I know).  I use the "Recent Topics" block on my home page set to show Topics, not posts.

What I'm seeing is that sometimes, no matter what I set the "Number of topics to display" parameter to, the list will shrink to a number less than the setting.  I am looking into why this is now by analyzing the code and queries, but it is eluding me so I want to see if anybody is familiar with this issue. 

So basically I set the number of topics to be 40, and on some days it might show 40, then maybe 35, 25, 39, 40, etc.  There is some other variable that I can't quite put my finger on, it's either a time variable that is affecting the data returned or something else. 
Title: Re: Recent Topics block - Count of Actual Topics listed Keeps Changing
Post by: JFlame on August 17, 2011, 05:17:20 PM
Quote from: JFlame on August 17, 2011, 03:37:53 PM
I am running SimplePortal 2.3.2 (need to upgrade, I know).  I use the "Recent Topics" block on my home page set to show Topics, not posts.

What I'm seeing is that sometimes, no matter what I set the "Number of topics to display" parameter to, the list will shrink to a number less than the setting.  I am looking into why this is now by analyzing the code and queries, but it is eluding me so I want to see if anybody is familiar with this issue. 

So basically I set the number of topics to be 40, and on some days it might show 40, then maybe 35, 25, 39, 40, etc.  There is some other variable that I can't quite put my finger on, it's either a time variable that is affecting the data returned or something else.

Figured this out.  The following line is the offender in SSI.php:

'min_message_id' => $modSettings['maxMsgID'] - 35 * min($num_recent, 5),

The issue is that the calculation always defaults to 35*5 = 140, which means the system is only considering the last 140 posts when it's bringing back the list of "Recent Topics."  I changed that to this:

'min_message_id' => $modSettings['maxMsgID'] - 10000,

10000 for me is roughly two months of posts at my current rate, bigger boards would need a bigger number.  I imagine this was built in due to performance reasons to limit the number of records the query was considering.  I don't see much of a difference yet, but my tables are still pretty small.

YMMV.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 17, 2011, 06:44:58 PM
Does that block draw from all boards, or from only some of the boards?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: JFlame on August 17, 2011, 08:45:12 PM
Quote from: AngelinaBelle on August 17, 2011, 06:44:58 PM
Does that block draw from all boards, or from only some of the boards?

It's configurable for any number of boards.  I'm personally using multiple recent topics blocks, each configured for different boards.  This is probably why the issue was bothering me, because some of the blocks are for less often used boards, and they were coming up completely empty even though there were posts within the last day or so.  Very annoying.  I imagine the folks who use this as a single block across all boards won't run into this issue.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Shadow Queen on August 17, 2011, 10:05:44 PM
How good of this portal work? Is TIny Portal better?

I am just asking.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 18, 2011, 08:49:52 AM
JFlame,

This is exactly the reason for the problem. You can fix this problem by making a change or two in SSI.php.
In ssi_recentPosts, and in ssi_recentTopics, you'll see:
($modSettings['maxMsgID'] - 35 * min($num_recent, 5))

Change that 35 to something larger. Just how large will depend on how busy the rest of your forum is compared to the boards in your block. You might need a 50, or even 100 to get what you need here.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: JFlame on August 18, 2011, 01:00:42 PM
Quote from: AngelinaBelle on August 18, 2011, 08:49:52 AM
JFlame,

This is exactly the reason for the problem. You can fix this problem by making a change or two in SSI.php.
In ssi_recentPosts, and in ssi_recentTopics, you'll see:
($modSettings['maxMsgID'] - 35 * min($num_recent, 5))

Change that 35 to something larger. Just how large will depend on how busy the rest of your forum is compared to the boards in your block. You might need a 50, or even 100 to get what you need here.

Beat ya on that by about 14 hours as evidenced in my above post.  ;D  Thanks for checking though, I may need the extra help next time.   ;)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 18, 2011, 03:21:24 PM
Don't know how I missed that! glad you figured it out!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rollingrock on August 19, 2011, 10:20:24 PM
Ok, new issue

On my home imac my site looks fine while using photos looking at threads.

On many users laptops they are telling them they have a scroll bar on threads with photos.   I have confirmed this on my work lap top so what I did was not allow right side blocks to show but that didn't fix it.  Seems the sight may not be auto fitting to the screen.  Is that even a setting?


Title: Re: SimplePortal - 2.3.3 Released!
Post by: rgecy on August 19, 2011, 11:00:25 PM
Any idea why this is happening?  Its not just in Simple Portal, but also in My Download mod by vbgamer.  But does not happen anywhere else in the forum.

Thanks

RGecy
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on August 19, 2011, 11:08:45 PM
Quote from: rollingrock on August 19, 2011, 10:20:24 PM
Ok, new issue

On my home imac my site looks fine while using photos looking at threads.

On many users laptops they are telling them they have a scroll bar on threads with photos.   I have confirmed this on my work lap top so what I did was not allow right side blocks to show but that didn't fix it.  Seems the sight may not be auto fitting to the screen.  Is that even a setting?

May depend if a members laptop has a widescreen or not.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on August 19, 2011, 11:10:40 PM
Quote from: rgecy on August 19, 2011, 11:00:25 PM
Any idea why this is happening?  Its not just in Simple Portal, but also in My Download mod by vbgamer.  But does not happen anywhere else in the forum.

Thanks

RGecy

You obviously haven't searched anywhere for the way to solve this.

The error can be corrected by adding the portal.css into your forums theme.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on August 19, 2011, 11:12:01 PM
Quote from: Shadow Queen on August 17, 2011, 10:05:44 PM
How good of this portal work? Is TIny Portal better?

I am just asking.

I prefer the way this portal looks compared to TP.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 22, 2011, 07:44:14 AM
rgecy,
Brack1 is correct. copying portal.css to each of your custom theme's CSS directory will fix the problem.
This is not a scrollbar. It is caused by using a part of the default theme's main_block.png instead of the one that comes with your custom theme for the left side of your title bar.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: rgecy on August 22, 2011, 02:05:43 PM
Thank you.  It did work! 

Thanks for your help.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 22, 2011, 02:09:05 PM
I'm glad that worked!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: kltid on August 22, 2011, 03:25:40 PM
Is there a default maximum height to a block and if so where can it be changed?
I have a left hand PHP block and I am trying to avoid the vertical slider appearing.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 22, 2011, 03:50:52 PM
If you exceed the allowable width, you'll get both horizontal and vertical scroll bars.
But I don't think there is a default maximum height.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Shadow Queen on August 22, 2011, 04:26:39 PM
Quote from: Brack1 on August 19, 2011, 11:12:01 PM
Quote from: Shadow Queen on August 17, 2011, 10:05:44 PM
How good of this portal work? Is TIny Portal better?

I am just asking.

I prefer the way this portal looks compared to TP.

I should go with this portal then? It's be easy to take care then TP?

What do you think I should go with?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 22, 2011, 04:39:44 PM
I've known users who switched back and forth several times.

If you are not certain, then try both out in test forums. See which one is more pleasant for you to use. See which one has more of your "must have" features.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Shadow Queen on August 22, 2011, 05:11:10 PM
I donot have a test site at all. I cannot allow one with my host because it's free host. I have use TP before. But and I wanna to try this portal out
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 22, 2011, 05:14:17 PM
That's a tough one. You might be able to set up a test forum on another free host site. Then, you will be better able to make your decision.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Shadow Queen on August 22, 2011, 05:15:57 PM
Yes, I know it very aware of that.

Umm, Do you know any free hosting for a test site?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 22, 2011, 07:09:47 PM
I'm sorry.  I've never used free hosting.
Oh! I see you are already trying SimplePortal out on the forum you link in your signature. I hope it does what you like.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Shadow Queen on August 22, 2011, 10:12:49 PM
Yea, Over at Tiny Portal someone is helping me out about a test site plus some hosting too.

I will go back and foth to SimplePortal and Tiny portal. Tiny Portal is the first portal out I tried few year's back when I start to use SMF. Tiny Portal is my child kindly because it the portal I use first.

So we have to wait and see Simple Portal can do for me.

In the mean time Tiny Portal is going wait and I can try figuer out what is going on with it with the error's I was having.

Thank's Belle!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 23, 2011, 07:15:17 AM
Good  luck with SimplePortal.  Let us know if you have any questions about it?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: harry66 on August 23, 2011, 01:41:20 PM
Hey,

does anybody know a fix for Shoutbox Spam? Its very annoying :/


thanks
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 23, 2011, 01:47:17 PM
The administrator can delete individual shouts.  There is a little icon next to each one. Click it, and the post will disappear.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Shadow Queen on August 23, 2011, 02:57:40 PM
Quote from: AngelinaBelle on August 23, 2011, 07:15:17 AM
Good  luck with SimplePortal.  Let us know if you have any questions about it?


THank's. I will let you guy's know if I am having problem's!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on August 23, 2011, 05:45:39 PM
SMF 2.0   Default theme  Simple Portal 2.3.3

  Running this configuration for a long time, I've recently received .

"http : // mysite.org/index.php?
8: Undefined index: image
File: /home/xxxx/public_html/Sources/PortalBlocks.php
Line: 1608 "


  Any clue why I receive this error ?

  lines 1606 to 1612  in PortalBlocks.php

<div class="sp_image smalltext">', ($showLink ? '
<a href="' . $item['file']['href'] . '">' . $item['file']['filename'] . '</a><br />' : ''), '
', $item['file']['image']['link'], '<br />', ($showDownloads ? '
' . $txt['downloads'] . ': ' . $item['file']['downloads'] . '<br />' : ''), ($showPoster ? '
' . $txt['posted_by'] . ': ' . $item['member']['link'] : ''), '
</div>
</td>', !$direction ? '



I'm not using  downloads block by the way ...
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 23, 2011, 07:18:51 PM
This is unusual.

Usually, unexpected syntax errors come from custom php blocks.  But it ought to say something about eval'd code in that case, I would think.

Have you recently added any custom php blocks?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: teos55 on August 24, 2011, 03:51:15 AM
  Seems, one time occurance.  I removed some html block and add 1 or 2  , very recently.
Will track when happens ...
Title: Re: SimplePortal - 2.3.3 Released!
Post by: kltid on August 24, 2011, 04:19:37 AM
Quote from: AngelinaBelle on August 22, 2011, 03:50:52 PM
If you exceed the allowable width, you'll get both horizontal and vertical scroll bars.
But I don't think there is a default maximum height.

Thanks. It seems to be a browser thing.
Firefox only gives me a horizontal slider. IE gives me both.
Also IE will introduce the sliders where Firefox doesn't see need for them.
Frustrating!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: harry66 on August 24, 2011, 08:52:15 AM
Quote from: AngelinaBelle on August 23, 2011, 01:47:17 PM
The administrator can delete individual shouts.  There is a little icon next to each one. Click it, and the post will disappear.

yes, i already know, but thats not the point. it is annoying to delete over a hundred posts because it is possible to spam them in a short time without block.

is there a solution for it?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 24, 2011, 09:01:42 AM
As you have surmised, SimplePortal does not have a tool for that. It has been suggested as a new feature for the next major version.

Your next best bet might be your favorite database tool -- you could find all the shouts from one user, and delete them all at once.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: ~DS~ on August 25, 2011, 10:21:54 AM
When SP is in Maintenance Mode, blocks can still be visible from /index.php?action=forum

Security issue?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 25, 2011, 11:29:51 AM
Strangely, I have never noticed this before. I am not sure what the intention is.
The function is similar to integration mode.
It brings down the portal page, but does not disable blocks or page= pages.

I think the features of SimplePortal have evolved since this feature was first introduced.
Bug or feature? Certainly, could be confusing. Worth asking. Sinan has recently had some time available. I'll try over there...
You are welcome to post something over there, too, on whichever board you think it fits best.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Suki on August 25, 2011, 11:31:39 AM
I'ts certanly not a security issue, the maintenance page its just that, a page, just like any other page within your forum.

a conditional in  index.php  for it should be enough.
Title: Problem with HTML block - flash
Post by: JBSRodrigues on August 25, 2011, 11:38:38 AM
Hi people. So, I'm trying to copy-paste some flash content into a block from simple portal and it seems to be not working properly.
This is what I believe to be the whole code (taken from the page I found this):

<div id="playerCamaraDiv">










<div>
<script src="flowplayer/flowplayer-3.1.4.min.js"></script>


<!-- player container-->

<div id="player" style="display:block;width:380px;height:300px;"><object width="100%" height="100%" id="player_api" data="flowplayer/flowplayer.commercial-3.1.5.swf" type="application/x-shockwave-flash"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="quality" value="high"><param name="cachebusting" value="false"><param name="bgcolor" value="#000000"><param name="flashvars" value="config={&quot;key&quot;:&quot;#$9aebd05d6acc83bc985&quot;,&quot;buffering&quot;:false,&quot;autoPlay&quot;:true,&quot;wmode&quot;:&quot;opaque&quot;,&quot;canvas&quot;:{&quot;backgroundColor&quot;:&quot;#000000&quot;,&quot;backgroundGradient&quot;:&quot;low&quot;},&quot;clip&quot;:{&quot;url&quot;:&quot;http://camara-c-paj-mar.reserva.ebd.csic.es/stream_flv/&quot;,&quot;autoPlay&quot;:true,&quot;autoBuffering&quot;:true,&quot;bufferLength&quot;:2,&quot;live&quot;:true,&quot;provider&quot;:&quot;http&quot;,&quot;scaling&quot;:&quot;fit&quot;,&quot;wmode&quot;:&quot;opaque&quot;},&quot;showErrors&quot;:false,&quot;plugins&quot;:{&quot;controls&quot;:{&quot;url&quot;:&quot;flowplayer/flowplayer.controls-3.1.5.swf&quot;,&quot;autoHide&quot;:&quot;always&quot;,&quot;hideDelay&quot;:&quot;2000&quot;,&quot;all&quot;:true,&quot;play&quot;:false,&quot;volume&quot;:false,&quot;mute&quot;:false,&quot;time&quot;:false,&quot;stop&quot;:false,&quot;playlist&quot;:false,&quot;fullscreen&quot;:true,&quot;scrubber&quot;:true,&quot;backgroundColor&quot;:&quot;#000000&quot;,&quot;tooltips&quot;:{&quot;buttons&quot;:true,&quot;fullscreen&quot;:&quot;Enter Fullscreen mode&quot;}}},&quot;playerId&quot;:&quot;player&quot;,&quot;playlist&quot;:[{&quot;url&quot;:&quot;http://camara-c-paj-mar.reserva.ebd.csic.es/stream_flv/&quot;,&quot;autoPlay&quot;:true,&quot;autoBuffering&quot;:true,&quot;bufferLength&quot;:2,&quot;live&quot;:true,&quot;provider&quot;:&quot;http&quot;,&quot;scaling&quot;:&quot;fit&quot;,&quot;wmode&quot;:&quot;opaque&quot;}]}"></object></div>


<!-- this script block will install Flowplayer inside previous A tag -->
<script language="JavaScript">
flowplayer("player", "flowplayer/flowplayer.commercial-3.1.5.swf", {
//product key for ebd.csic.es
key: '#$9aebd05d6acc83bc985',
buffering: false,
autoPlay: true,
wmode: 'opaque',
canvas: {
    backgroundColor: '#000000',
    backgroundGradient: 'low'
},
clip: {
url: 'http://camara-c-paj-mar.reserva.ebd.csic.es/stream_flv/',
autoPlay: true,
autoBuffering: true,
bufferLength: 2,
live: true,
provider: 'http',
scaling: 'fit',
wmode: 'opaque',
onStart: function (){
//if (!flashembed.isSupported([10, 32])) {
    //alert("IS SUPPORTED");
  //} else {
    //failed
  // alert("Si la imagen se queda congelada, mueva ligeramente la barra de desplazamiento inferior.");
  //}
}
},
// don't show errors in the player
    showErrors: false,
onBegin: function (){
//alert("ESTAMOS EN ONBEGIN");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());

},
onStart: function (){
//alert("ESTAMOS EN ONSTART");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());
},
onPause: function (){
//alert("ESTAMOS EN ONPAUSE");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());


},
onBeforeSeek: function (){
//alert("ESTAMOS EN onBeforeSeek");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());


},
onLoad: function (){
//alert("ESTAMOS EN ONLOAD");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());


},
onBufferEmpty: function (){
//alert("onBufferEmpty!!!");

},
onBufferFull: function (){
//alert("onBufferFull!!!");

},
onBufferStop: function (){
//alert("onBufferStop!!!");

},
onNetStreamEvent: function (event){
//alert("onNetStreamEvent: " + event);

},
onSeek: function (){
//alert("onSeek!!!");

},
onError: function(errCode, errMessage){
//alert("ERROR: " + errCode + errMessage);
if(errCode == 100){
alert("Plugin initialization failed. Please, refresh your browser or try it again later");
}
else if(errCode == 200){
alert("Stream not found. Please, refresh your browser or try it again later");
}
else if(errCode == 201){
alert("Unable to load stream or clip file. Please, refresh your browser or try it again later");
}
else if(errCode == 202){
alert("Provider specified in clip is not loaded. Please, refresh your browser or try it again later");
}
else if(errCode == 300){
alert("Player initialization failed. Please, refresh your browser or try it again later");
}
else if(errCode == 301){
alert("Unable to load plugin. Please, refresh your browser or try it again later");
}
else if(errCode == 302){
alert("Error when invoking plugin external method. Please, refresh your browser or try it again later");
}
else if(errCode == 303){
alert("Failed to load resource such as stylesheet or background image. Please, refresh your browser or try it again later");
}
else{
alert("An unexpected error has ocurred while playing the stream. Please, refresh your browser");
}
},

plugins: {            // load one or more plugins
        controls: {            // load the controls plugin
            url: 'flowplayer/flowplayer.controls-3.1.5.swf',    // always: where to find the Flash object
            // now the custom options of the Flash object
            autoHide: 'always', 
            hideDelay: '2000',
            all: true,
            play: false,
            volume: false,
            mute: false,
            time: false,
            stop: false,
            playlist: false, 
            fullscreen: true,
            scrubber: true,
            backgroundColor: '#000000',
            tooltips: {                // this plugin object exposes a 'tooltips' object
                buttons: true,
                fullscreen: 'Enter Fullscreen mode'
            }
        }
    }
});
</script>
</div>
</div>


I don't know what am I doing wrong, because I know it works on other sites, as I see here: http://linceiberico.net/linces-en-directo/
Can you help me?

Thanks! ;)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Suki on August 25, 2011, 11:41:52 AM
I tried the link you gave and its working fine?  those "linces"  are sleeping right now ;)


oh wait, that is not your site isnt it?



perhaps it is this:flowplayer/flowplayer.commercial-3.1.5.swf

try putting the full url to your player swf  or the full path
Title: Re: SimplePortal - 2.3.3 Released!
Post by: JBSRodrigues on August 25, 2011, 11:44:56 AM
Quote from: Miss All Sunday on August 25, 2011, 11:41:52 AM
I tried the link you gave and its working fine?  those "linces"  are sleeping right now ;)


oh wait, that is not your site isnt it?



perhaps it is this:flowplayer/flowplayer.commercial-3.1.5.swf

try putting the full url to your player swf  or the full path
Yeah, I know it works, but on my site's block it seems not to. -_- Can you give it a look? My site: http://www.projectolynx.com/
Yes, they are indeed sleeping. I just love them! *.*

edit - sooo, I have to install flowplayer on my site? oO
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Suki on August 25, 2011, 11:48:22 AM
its indeed this part:  flowplayer/flowplayer.commercial-3.1.5.swf   you  must upload your  player swf and then use either the full url or the full path:

path/to/my/player.swf

http://mysite.com/player/player.swf


keep in mind that the free verison of flowplayer does not allow direct streaming.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: JBSRodrigues on August 25, 2011, 11:58:14 AM
I think I made it! Can you please check my site again, just to make sure? :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Suki on August 25, 2011, 12:01:57 PM
yep, its working ;)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: JBSRodrigues on August 25, 2011, 12:03:52 PM
Yey! Awesome!
Thanks Miss! ;D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: bluehaze1991 on August 26, 2011, 02:05:35 AM
when i uninstalled simple portal 2.3 i got some errors but I accidently kept going with the uninstalling process....i was going to upgrade to the latest version of simple portal but now my site gets this message...


Warning: require_once(/www/110mb.com/b/l/u/e/h/a/z/e/bluehaze1991/htdocs/Sources/Subs-Portal.php) [function.require-once]: failed to open stream: No such file or directory in /www/110mb.com/b/l/u/e/h/a/z/e/bluehaze1991/htdocs/index.php on line 60

Fatal error: require_once() [function.require]: Failed opening required '/www/110mb.com/b/l/u/e/h/a/z/e/bluehaze1991/htdocs/Sources/Subs-Portal.php' (include_path='.:/usr/share/php') in /www/110mb.com/b/l/u/e/h/a/z/e/bluehaze1991/htdocs/index.php on line 60



I did make a back up of my data like an hour ago...help please my site was doing well
Title: Re: SimplePortal - 2.3.3 Released!
Post by: DragoN_PT on August 26, 2011, 04:58:11 PM
Solved already.

Ty for this aweasome mod and keep the good work!

Cookie for the team!   ;)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: AZMazda3 on August 27, 2011, 06:24:48 AM
Quote from: harry66 on August 23, 2011, 01:41:20 PM
Hey,

does anybody know a fix for Shoutbox Spam? Its very annoying :/


thanks

Is the spam from members or guests? If it's from guests just change the permissions.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 29, 2011, 07:57:06 AM
Quote from: bluehaze1991 on August 26, 2011, 02:05:35 AM
when i uninstalled simple portal 2.3 i got some errors but I accidently kept going with the uninstalling process

Looks like you just need to complete, by hand, what the Package Manager couldn't manage because of subsequent changes. Next time, it will probably be easier for you to uninstall mods in the order you installed them.

For now, I suggest you go to the mod's page to get the "Manual Install Instructions for" your version of SMF, and the version of SimplePortal you just uninstalled. Pay particular attention to the files which are giving you the problem. You only mentioned index.php in your email.  Use the line numbers in your error messages, and look for stuff approximately like the "replace" strings in the manual install instructions.  Without removing stuff added by other mod packages, remove the stuff added for SimplePortal.

Then, you will be in good shape.

Good Luck!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on August 29, 2011, 10:25:41 PM

I have SMF 2.0 RC3 with SimplePortal 2.3.2

How do I clear all posts in the chatbox.
Can I ban members from the chat box
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on August 29, 2011, 10:45:12 PM
I believe ya referring to the shoutbox lol.

Underdog has made a plug in which once installed gives you a feature which can empty the shoutbox.

Have a look  Here (http://askusaquestion.net/index.php/topic,2929.0.html)

If you use the smf arcade mod then there is also another plug in which allows the Trophy winners to be announced.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ACAMS on August 29, 2011, 11:05:07 PM
Thanks, worked like a charm.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jasonsj10 on August 30, 2011, 07:41:17 AM
Hey guys i was trying to install the Simpleportal mod and it gave me a error. When i tried to fix it. It gave me a nother. Its all in the index.php

Info:
SimplePortal: 2.3.3
SMF: 2.0

Here is my Index.php
http://pastie.org/2453955

or download it
http://dl.dropbox.com/u/37673386/index.php


The Error i got was
( ! ) Parse error: syntax error, unexpected T_DOUBLE_ARROW in C:\wamp\www\index.php on line 230



                  Thanks in advance,
                                Jason

Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 30, 2011, 08:10:40 AM
It looks like  you are missing  about 80 lines, including the lines that would make sense of your line 230.

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php', 'Activate'),

etc.

My advice would be to get a fresh copy of index.php, from before the SimplePortal install, then uninstall SimplePortal, ignoring errors related to index.php.

Then try the install over again. If you run into errors during install, make notes of exactly where they occur. This is easy with SMF 2.0 -- just click on the little pencils where there are errors in the list. Then, very carefully, use the manual install instructions to change only those parts of the code.

If you have no other mods installed, you can get that fresh index.php from the install set for your version of SMF.

If you have other mods installed, the best place to get that file probably is the file backup that Package Manager does. You should find this in the Packages/backups directory. Simply extract the file you need from the .tar.gz file.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jasonsj10 on August 30, 2011, 04:04:48 PM
Well, I cant even access the website. Also i did not install it through the website i did it manually.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 30, 2011, 04:29:56 PM
I would not advise a fully manual install of SimplePortal.
If there are a couple of "test failed" on the install, do the rest automatically, then do just the couple things by hand.

Did you keep a "backup" copy of index.php?  If you put it in place of the current, broken, index.php, you will have something you can use.

If not, you can get one from the correct install set.
Or, you can use ftp to look in Packages/backup directory, get the most recent backup in there, extract index.php, and put it in place of the current, broken, index.php.  For more on this backups directory, please see: http://wiki.simplemachines.org/smf/A_mod_broke_my_forum_what_should_I_do

You may be forced to finish up by uninstalling SimplePortal and the other, most-recently-installed mod (the most recent file backup was created just before you installed that other mod). Then you can re-install. It won't look pretty, but it should work.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jasonsj10 on August 30, 2011, 07:44:55 PM
Quote from: AngelinaBelle on August 30, 2011, 04:29:56 PM
I would not advise a fully manual install of SimplePortal.
If there are a couple of "test failed" on the install, do the rest automatically, then do just the couple things by hand.

Did you keep a "backup" copy of index.php?  If you put it in place of the current, broken, index.php, you will have something you can use.

If not, you can get one from the correct install set.
Or, you can use ftp to look in Packages/backup directory, get the most recent backup in there, extract index.php, and put it in place of the current, broken, index.php.  For more on this backups directory, please see: http://wiki.simplemachines.org/smf/A_mod_broke_my_forum_what_should_I_do

You may be forced to finish up by uninstalling SimplePortal and the other, most-recently-installed mod (the most recent file backup was created just before you installed that other mod). Then you can re-install. It won't look pretty, but it should work.

Yes, I copied and backed up my hole server. Could you show me what i did wrong in my files?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 30, 2011, 09:10:29 PM
You removed about 80 lines from index.php. This kind of mistake is pretty easy to make, but it really messes up your forum.
If you compare the two files, you will see the difference between them. It could be difficult to spot by eye -- so you might want to use a tool to compare two files. WinMerge is an example of windows software that can do this job for you.

My advice is to put all the saved php files in place of all the ones you changed while installing SimplePortal. Then your files will be back to before the install. Since you did not use the package manager, it should have no record of ever having installed SimplePortal.

Now, you are ready to install SimplePortal again. Please use the package manager this time.  It is easier.
Most of the tests should pass.  There may be a small number of failed tests.  You should be able to handle these.
Take careful notes on the edits you will have to do by hand.   Please read more about the installation process, including the information the package manager can give you, at http://wiki.simplemachines.org/smf/Package_manager#Installing_a_Package.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jasonsj10 on August 31, 2011, 01:26:20 AM
Quote from: AngelinaBelle on August 30, 2011, 09:10:29 PM
You removed about 80 lines from index.php. This kind of mistake is pretty easy to make, but it really messes up your forum.
If you compare the two files, you will see the difference between them. It could be difficult to spot by eye -- so you might want to use a tool to compare two files. WinMerge is an example of windows software that can do this job for you.

My advice is to put all the saved php files in place of all the ones you changed while installing SimplePortal. Then your files will be back to before the install. Since you did not use the package manager, it should have no record of ever having installed SimplePortal.

Now, you are ready to install SimplePortal again. Please use the package manager this time.  It is easier.
Most of the tests should pass.  There may be a small number of failed tests.  You should be able to handle these.
Take careful notes on the edits you will have to do by hand.   Please read more about the installation process, including the information the package manager can give you, at http://wiki.simplemachines.org/smf/Package_manager#Installing_a_Package.

:/ I deleted my Index.php and replaced with a fresh one i got this
( ! ) Parse error: syntax error, unexpected T_DOUBLE_ARROW in C:\wamp\www\Sources\Subs.php on line 3935
Call Stack
# Time Memory Function Location
1 0.0025 474128 {main}( ) ..\index.php:0


This might be because i installed EVERYTHING into as it told me to.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jasonsj10 on August 31, 2011, 01:54:25 AM
Fixed.. I Just deleted all of my SMF and then i installed it though the package manager. The only issue i got is the theme but i can fix that.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on August 31, 2011, 07:44:13 AM
Good job! Manual installs can be tough.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Jasonsj10 on September 01, 2011, 03:09:01 AM
One screw up with PHP then BAM your dead... Also SMF make it so easy to do it. :D I used to use PHPbb but then i tried to add a mod and i had like 1000 steps..
Title: Re: SimplePortal - 2.3.3 Released!
Post by: WantSome on September 03, 2011, 05:58:28 AM
Hi guys!

I'm using SMF 2.0 (RC5 until i can get the update to work!) and i've used the 'front page' option on the portal (which works lovely, btw, really like it so far).


My query is - when a user logs out, and logs back in, they end up landing on the forum page.  How can I make it so they land on the 'home' page?  I am putting our chatbox and announcements here and so I want everyone to land there when they log on.

Is there any way to do this?

Thanks!

EDIT:  I updated and use 2.0 now.

Also, I've found that the front page of the forum tends to display a little strangely.  The heading bars of each of the blocks are gold as per the theme I'm using.  But for some reason the portal doesn't seem to pick up the left hand side properly, showing a grey space instead.  Is there something missing that I need to add in?  There's a link in my sig to the forum if you want to check out what i mean.

Any help is appreciated.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: SniperXPX on September 05, 2011, 04:06:32 PM
I just upgraded from SMF 2.0 RC5 to SMF 2.0 and this plugin broke on me. I am not sure on how to get it working again. Can anyone help me? The website is ceiling-cat.net. I used the front page/portal feature and it was beautiful and useful.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on September 05, 2011, 04:36:47 PM
Quote from: SniperXPX on September 05, 2011, 04:06:32 PM
I just upgraded from SMF 2.0 RC5 to SMF 2.0 and this plugin broke on me. I am not sure on how to get it working again. Can anyone help me? The website is ceiling-cat.net. I used the front page/portal feature and it was beautiful and useful.

can you explain what you mean by
Quotethis plugin broke on me
.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on September 05, 2011, 04:38:41 PM
@Wantsome

Your portal.css file should be in placed in your themes folder.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: SniperXPX on September 05, 2011, 04:54:33 PM
Quote from: Brack1 on September 05, 2011, 04:36:47 PM
Quote from: SniperXPX on September 05, 2011, 04:06:32 PM
I just upgraded from SMF 2.0 RC5 to SMF 2.0 and this plugin broke on me. I am not sure on how to get it working again. Can anyone help me? The website is ceiling-cat.net. I used the front page/portal feature and it was beautiful and useful.

can you explain what you mean by
Quotethis plugin broke on me
.

It shows that it is installed in the package manager but none of its other functions seem to be working.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on September 05, 2011, 05:24:50 PM
Have you checked the permissions?

@sniper I have just had a look and you seem to have the portal integrated with the forum.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: SniperXPX on September 05, 2011, 05:27:49 PM
Quote from: Brack1 on September 05, 2011, 05:24:50 PM
Have you checked the permissions?

@sniper I have just had a look and you seem to have the portal integrated with the forum.

http://ceiling-cat.net is the URL
Title: Re: SimplePortal - 2.3.3 Released!
Post by: WantSome on September 05, 2011, 06:00:16 PM
Quote from: Brack1 on September 05, 2011, 04:38:41 PM
@Wantsome

Your portal.css file should be in placed in your themes folder.

Thanks Brack1

Just to be sure - do you mean i need to move the portal.css into the themes folder or copy it from wherever it is now into the themes folder?

Just checking so let me know!  Thanks again!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on September 06, 2011, 08:30:58 AM
Quote from: WantSome on September 05, 2011, 06:00:16 PM
do you mean i need to move the portal.css into the themes folder or copy it from wherever it is now into the themes folder?
copy it from /Themes/default/css to /Themes/<yourthemenamehere>/css
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Kimmie on September 07, 2011, 01:51:55 PM
Quote from: SniperXPX on September 05, 2011, 04:54:33 PM
Quote from: Brack1 on September 05, 2011, 04:36:47 PM
Quote from: SniperXPX on September 05, 2011, 04:06:32 PM
I just upgraded from SMF 2.0 RC5 to SMF 2.0 and this plugin broke on me. I am not sure on how to get it working again. Can anyone help me? The website is ceiling-cat.net. I used the front page/portal feature and it was beautiful and useful.

can you explain what you mean by
Quotethis plugin broke on me
.

It shows that it is installed in the package manager but none of its other functions seem to be working.


could it be that what it is actually showing is the package you previously uploaded and its not actually "installed" since Upgrading uninstalls all mods?  Sounds like you either need to delete the files -- or if that version of the mod is still complatible, just reinistall it from there. I just upgraded to 2.0 last night. What happens is even tho it uninstalls the mods, it will still show the files listed there because it does not remove the package you uploaded from before.

================================

My issue is that after reinstalling this mod on 2.0 some of the mod settings no longer work. The blocks do not show up in the forum (even though I have them set to) and the images that appear on the portal from threads no longer "resize.

Any ideas?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: H3lioz on September 09, 2011, 04:20:59 AM
Why is this s**t showing?

(http://i52.tinypic.com/2cfuukz.png)

Anyone knows how to remove it? It comes on all my blocks..

PS. Im using smf 2.0
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on September 09, 2011, 08:35:52 AM
Kimmie-- this is unusual behavior.  Did you install any other mods, or have your Simpleportal settings changed?

strafe -- copy portal.css from Themes/default/css to the css directory of your custom theme.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Hj Ahmad Rasyid Hj Ismail on September 09, 2011, 08:50:37 AM
Quote from: AngelinaBelle on September 09, 2011, 08:35:52 AM
strafe -- copy portal.css from Themes/default/css to the css directory of your custom theme.
Ah... This solves one of my problems too.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: H3lioz on September 09, 2011, 12:38:02 PM
Quote from: AngelinaBelle on September 09, 2011, 08:35:52 AM
Kimmie-- this is unusual behavior.  Did you install any other mods, or have your Simpleportal settings changed?

strafe -- copy portal.css from Themes/default/css to the css directory of your custom theme.
Thank you (:
Title: Re: SimplePortal - 2.3.3 Released!
Post by: H3lioz on September 09, 2011, 01:00:27 PM
Guys i got a new problem :(

When i add the portal it only adds "Home" and dosnt add "Forum"  >:(

Help please :p
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Suki on September 09, 2011, 01:02:26 PM
Thats probably because you are using another language besides english, you can look at simpleportal.net to see if there is a language pack available for your language.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on September 09, 2011, 01:50:25 PM
strafe -- SimplePortal usually manages this for the default theme, but cannot always manage it for every custom theme.
Please see the documentation at http://simpleportal.net/index.php?action=docs;area=menu_buttons
Title: Re: SimplePortal - 2.3.3 Released!
Post by: H3lioz on September 09, 2011, 03:03:38 PM
Angelina that didnt help :(

Miss All Sunday, i dont find any language pack :(
Title: Re: SimplePortal - 2.3.3 Released!
Post by: H3lioz on September 09, 2011, 03:57:24 PM
Anyone that can help? :c
Title: Re: SimplePortal - 2.3.3 Released!
Post by: TheListener on September 09, 2011, 05:23:21 PM
Strafe

Which theme are you using?

Were there any errors on install?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: H3lioz on September 09, 2011, 06:20:13 PM
Brack1,

Im using Blackrain theme & i did not get any errors while installing the portal.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Kimmie on September 09, 2011, 08:39:44 PM
Quote from: AngelinaBelle on September 09, 2011, 08:35:52 AM
Kimmie-- this is unusual behavior.  Did you install any other mods, or have your Simpleportal settings changed?



It was the very first mod that I reinstalled after upgrading from RC3 to 2.0 Gold so it was on fresh files and did not work "out of the box" (I thoroughly check every mod before I stall another one) The settings I had previously all remain the same. I even tried turning them off and back on again, but it still doesnt work
Title: Re: SimplePortal - 2.3.3 Released!
Post by: H3lioz on September 11, 2011, 01:12:59 PM
Simpleportal removes forum page!! Help -.-
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Kimmie on September 11, 2011, 03:45:40 PM
Quote from: strafe on September 11, 2011, 01:12:59 PM
Simpleportal removes forum page!! Help -.-


What it does, is adds a new button at the top  "Home"  and "Forum". Did you try clicking on the forum button? ;)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: H3lioz on September 11, 2011, 05:36:45 PM
No it adds the "Home" button but the forum button dosnt come! (Yes im not blind im 100% sure it isnt there)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: bearstreet on September 12, 2011, 03:16:10 AM
It might be trivial to ask  , but I would like to know that can I add custom PHP/HTML block for some action that is not included in the list of actions of simple portal add block menu.(see the image attached)


more specifically,suppose I want to add a php/html block so that it shows up at messages page of my forum(personal message PM)
for that, action =pmhttp://localhost/smf_2-0_install/index.php?action=pm

I suppose that action is seen from the url of the forum.

so can I add custom php/html for some particualr action that is not included in the simple portal actions options(see image attached)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on September 12, 2011, 09:27:27 AM
strafe -- which version of SMF are you using? Which theme are you using?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: H3lioz on September 12, 2011, 09:40:29 AM
Quote from: AngelinaBelle on September 12, 2011, 09:27:27 AM
strafe -- which version of SMF are you using? Which theme are you using?
Smf 2.0

Blackrain
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on September 12, 2011, 11:11:52 AM
But when you use the default theme, the home and forum buttons are OK?

When you install Simpleportal, the package installer offers you the option of modifying all of your themes.  This usually works. But for some themes, the installer cannot quite manage it.

In this case you can simply follow the tutorial at SimplePortal.net.
Please see the advice for adding the forum button to a non-curve-based theme with SMF 2.0: http://simpleportal.net/index.php?action=docs;area=menu_buttons
Title: Re: SimplePortal - 2.3.3 Released!
Post by: H3lioz on September 12, 2011, 11:28:28 AM
Havnt tested ill test now.

PS. I was gonna uninstall it and after i uninstalled it this happend:
(http://i52.tinypic.com/2d6maky.png)

Help :/

EDIT: Fixed it xD (Sorry im noobie :))
Title: Re: SimplePortal - 2.3.3 Released!
Post by: H3lioz on September 12, 2011, 12:39:33 PM
Ok got it, Thanks :D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: bearstreet on September 17, 2011, 03:51:55 AM
Quote from: bearstreet on September 12, 2011, 03:16:10 AM
It might be trivial to ask  , but I would like to know that can I add custom PHP/HTML block for some action that is not included in the list of actions of simple portal add block menu.(see the image attached)


more specifically,suppose I want to add a php/html block so that it shows up at messages page of my forum(personal message PM)
for that, action =pmhttp://localhost/smf_2-0_install/index.php?action=pm

I suppose that action is seen from the url of the forum.

so can I add custom php/html for some particualr action that is not included in the simple portal actions options(see image attached)

still need it
:(
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on September 19, 2011, 09:10:14 AM
You can try the advanced display options / custom display options  to specify a block shows up only when action = pm.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: bearstreet on September 19, 2011, 01:09:22 PM
Quote from: AngelinaBelle on September 19, 2011, 09:10:14 AM
You can try the advanced display options / custom display options  to specify a block shows up only when action = pm.

please see this post
http://www.simplemachines.org/community/index.php?topic=227599.msg3158408#msg3158408 (http://www.simplemachines.org/community/index.php?topic=227599.msg3158408#msg3158408)

its like I have added smf wiki.
now smf wiki dosent shoes up there in custom display options. :(
any pointers?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on September 19, 2011, 01:15:49 PM
bearstreet -- if you wanted a block to appear only for action=pm, you would use

Custom Display Option  ~action|pm

Please see the [?] popup next to the custom display options for more information.


Title: Re: SimplePortal - 2.3.3 Released!
Post by: bearstreet on September 19, 2011, 01:24:13 PM
thanks. I saw the popup that comes but was confused how to write it.
thanks.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on September 19, 2011, 01:26:58 PM
Um, actually, come to think of it, you might have an easier time just using "My Messages" instead of the custom action.
My Messages actually is one of the advanced display options you can check-off....
Title: Re: SimplePortal - 2.3.3 Released!
Post by: bearstreet on September 19, 2011, 01:43:18 PM
will check it out too.
thanks once again
Title: Re: SimplePortal - 2.3.3 Released!
Post by: aw06 on September 20, 2011, 05:20:15 AM
Upgraded to SMF 1.1.15 .. Now my Simple Portal Copyright is off the temple.. It use to be right Below the SMF Copyright .. See pic.

Any ideas on how to put it back below the SMF copyright ??
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on September 20, 2011, 07:42:27 AM
This happens with SMF 2.0 as well. This will be addressed in the next version of SimplePortal
Title: Re: SimplePortal - 2.3.3 Released!
Post by: aw06 on September 20, 2011, 09:48:09 AM
Quote from: AngelinaBelle on September 20, 2011, 07:42:27 AM
This happens with SMF 2.0 as well. This will be addressed in the next version of SimplePortal

Thanks, got it sorted out from the info you posted on SP Forums http://simpleportal.net/index.php?topic=9709.msg50687#msg50687
Title: Re: SimplePortal - 2.3.3 Released!
Post by: ArkServer on September 24, 2011, 10:35:39 AM
im using simpleportal 2.33 and i was wondering how ic an get the articles to show up BEFORE the boardposts in the frontpage?

my site http://tinyurl.com/3rcw42b
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on September 25, 2011, 12:18:16 PM
Articles go in the "center section" of the page.
Any "bottom blocks" will go below the center section.  Top blocks will go above it.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: milislav on September 28, 2011, 11:41:39 AM
Hi guys,Forum is SMF 2.0 RC3,and portal is simple machine 2.3.3

How to set posts from specific boards automaticly be published to front,portal page.Thanks
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on September 28, 2011, 11:49:09 AM
milislav,
Use the boardnews block, and select only the specific boards you wish from the dropdown.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: milislav on September 28, 2011, 11:56:59 AM
Thanks.Any closer,how to get there?Thanks
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on September 28, 2011, 11:57:47 AM
Please see the documentation (at simpleportal.net) on how to add a block.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Capcom on September 28, 2011, 04:52:38 PM
Hey
I just want to know how to remove this ugly line from blocks.

P.S look at attachment
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Chen Zhen on September 28, 2011, 09:59:51 PM
Quote from: Capcom on September 28, 2011, 04:52:38 PM
Hey
I just want to know how to remove this ugly line from blocks.

P.S look at attachment

There is a portal.css file that needs to be put into your custom theme's css folder.

ie. ref: http://simpleportal.net/index.php?topic=7733.msg42950;topicseen#msg42950

This usually occurs if the optional theme files were not included during SP installation or if the theme was installed/added after SP.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Capcom on September 29, 2011, 04:18:18 AM
Ok I just did that and it worked, thanks man, much appreciated  :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: soulgeek on October 02, 2011, 11:43:10 PM
I am still trying to Figure out, How Cna it be Done?

I want to make a Shoutbox where only i (Being Admin) Can Shout (News, Quotes, Random One liners so on).

Can it be done? Can we disable anyone to shout except Admin?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Suki on October 03, 2011, 10:11:27 AM
As far as I know, Simpleportal has some permissions for the shoutbox, you may as well check if there is a permisisons to "shout"  and then revoke that permissions for all members but the admins.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: soulgeek on October 03, 2011, 02:56:24 PM
Quote from: Miss All Sunday on October 03, 2011, 10:11:27 AM
As far as I know, Simpleportal has some permissions for the shoutbox, you may as well check if there is a permisisons to "shout"  and then revoke that permissions for all members but the admins.

There are permission settings only to Show the block or not and where.
It no where controls that only Admin can post...

Anyone found any workaround to do this? PleasE?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: KnightBob on October 03, 2011, 04:38:15 PM
When I try to install Simple Portal, I get this MySQl Error.

Table 'viperm_community.smf_sp_functions' doesn't exist
File: /home/viperm/public_html/forum/Packages/temp/install2.php
Line: 318
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 04, 2011, 09:49:08 AM
Quote from: soulgeek on October 03, 2011, 02:56:24 PM
There are permission settings only to Show the block or not and where.
That is correct. You can find permissions
1) When editing the block, to control who can see the block
2) When editing the shoutbox, to control who can see the shoutbox

In SimplePortal 2.3.3, if you can see a shoutbox, you can shout in it.  If you can't shout in it, you cannot see it, either.
This would be a good feature request for a future version of shoutbox.

One thing you can use instead, for news, quotes, random one-liners, is a news block, which draws from SMF's news.
It does require a couple of extra clicks to enter a new item, but it will let you put "news, quotes, random one-liners" on your portal page (or any other part of your forum)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 04, 2011, 09:55:31 AM
Quote from: KnightBob on October 03, 2011, 04:38:15 PM
When I try to install Simple Portal, I get this MySQl Error.

Table 'viperm_community.smf_sp_functions' doesn't exist
File: /home/viperm/public_html/forum/Packages/temp/install2.php
Line: 318

What version of SimplePortal are you attempting to install? I can't figure out why you'd get that sort of error on line 318 of install2.php for SimplePortal 2.3.3.

Thanks for the info
Title: Re: SimplePortal - 2.3.3 Released!
Post by: KnightBob on October 04, 2011, 10:27:32 AM
Quote from: AngelinaBelle on October 04, 2011, 09:55:31 AM
Quote from: KnightBob on October 03, 2011, 04:38:15 PM
When I try to install Simple Portal, I get this MySQl Error.

Table 'viperm_community.smf_sp_functions' doesn't exist
File: /home/viperm/public_html/forum/Packages/temp/install2.php
Line: 318

What version of SimplePortal are you attempting to install? I can't figure out why you'd get that sort of error on line 318 of install2.php for SimplePortal 2.3.3.

Thanks for the info

For some strange reason, I tried to install 2.2, I do not now where I got it from. But I have downloaded and installed the latest version, and it works now.

But I want to have me portal outside my forum. My Forum is on the sub domain community, and the website will be in the website main domain. So I followed the instrustions in the .php file, changed the url, and the settings in the Admin CP. But when I go to the main domain, it redirects me to the forum.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 04, 2011, 12:18:59 PM
"When I go to the main domain, it redirects me to the forum".
Please try this:
1) rename or delete index.php in the main domain
2) now see what happens when you go to the main domain.

Are you stil redirected?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: KnightBob on October 04, 2011, 12:26:06 PM
No, it doesnt redirect me to the forum
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 04, 2011, 12:49:46 PM
Thanks for that test. This confirms for me that this index.php file was involved in whatever-is-going-wrong-here (and probably not some htaccess thing)

Is the portal enabled?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: KnightBob on October 04, 2011, 01:07:28 PM
Do you mine Maintance Mode?

If I desable maintance mode, I get a 503 error.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 04, 2011, 01:21:44 PM
A 503 error means something is wrong with your server, or that the server is in maintenance mode.
This should not be triggered by any setting within SMF or any SMF mod.

I am very confused about what you mean.

Please tell me about the following settings:

In SimplePortal General settings (Administration Center » Configuration » General Settings)
Portal Mode -- Disabled? Standalone?
Maintenance Mode -- checked or unchecked
Standalone URL --

SMF server settings (Administration Center » Server Settings » General)
Enable Maintenance Mode

(Administration Center » Server Settings » Database and Paths)
Forum URL

Title: Re: SimplePortal - 2.3.3 Released!
Post by: KnightBob on October 04, 2011, 01:28:32 PM
Portal Mode -- Standalone
Maintenance Mode -- unchecked
Standalone URL --  http://vipermoddingteam.com/

SMF server settings (Administration Center » Server Settings » General)
Enable Maintenance Mode  -- Checked

(Administration Center » Server Settings » Database and Paths)
Forum URL -- http://community.vipermoddingteam.com
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 04, 2011, 01:56:53 PM
I think I get it. You need some kind of index.php or index.html at vipermoddingteam.com.  Please try putting something there. almost anything, really.

Please check that the $forum_dir= in the standalone php file is copied EXACTLY from the SMF Directory at (Administration Center » Server Settings » Database and Paths)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: KnightBob on October 04, 2011, 02:01:21 PM
Quote from: AngelinaBelle on October 04, 2011, 01:56:53 PM
I think I get it. You need some kind of index.php or index.html at vipermoddingteam.com.  Please try putting something there. almost anything, really.
That it didn't load the index.php file, whas bicose I stilll had it named: index.php123 for the latest test. I changed it to index.php now.

Quote from: AngelinaBelle on October 04, 2011, 01:56:53 PM
Please check that the $forum_dir= in the standalone php file is copied EXACTLY from the SMF Directory at (Administration Center » Server Settings » Database and Paths)

I checked, and it is the good URL.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 04, 2011, 02:24:08 PM
Try taking the SMF forum out of maintenance mode now.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: KnightBob on October 04, 2011, 02:42:02 PM
Now I get this error:

Fatal error: Call to undefined function sportal() in /home/viperm/public_html/index.php on line 45
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 04, 2011, 02:55:34 PM
Good start! You are actually trying to run the portal.
Your forum is an SMF 2.x forum.
Please look at the top of the index.php file you are using.

What Software Version does it belong to?


Title: Re: SimplePortal - 2.3.3 Released!
Post by: KnightBob on October 04, 2011, 03:08:43 PM
SimplePortal 2.2
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Scrimps on October 04, 2011, 03:13:52 PM
tabtarget.com/forum

Messing around, debating if I should go with a Wordpress front page + bridge, or simple portal.

The problem I am having is simple portal is not properly displaying the left side of the header images. It does this for every theme.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: KnightBob on October 04, 2011, 03:19:30 PM
I got it working now, I reuploaded the SPortal file from the download package. But how can I make it possible to have the default page to be an custom page I made?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 04, 2011, 04:29:05 PM
scrimp: copy Themes/default/css/portal.css to the css directory of your custom theme.

KnightBob -- You want some custom HTML on your portal page? Simply use a custom HTML block, then cut/paste the contents.
If you want to encapsulate/include an entire HTML page, simply use an <iframe>
Title: Re: SimplePortal - 2.3.3 Released!
Post by: KnightBob on October 04, 2011, 04:48:22 PM
Thank you it worked. :D

Is it possible to acces me custom page from the main domain instead of the community sub domain?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: lostprodigy on October 04, 2011, 05:12:09 PM
Are you going to update this to 2.0.1 anytime soon?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: KnightBob on October 05, 2011, 12:39:12 AM
I have it working with 2.0.1
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 05, 2011, 09:20:39 AM
Quote from: KnightBob on October 04, 2011, 04:48:22 PM
Is it possible to acces me custom page from the main domain instead of the community sub domain?
I am not certain. Please give more details.  Do you want a "portal" page in your main domain?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Adrek on October 05, 2011, 09:42:07 AM
I have two domains - domain1.com and domain2.com.
At domain1.com i have forum. What I need to do to have portal (standalone mode) at domain2.com ?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 05, 2011, 10:35:00 AM
SimplePortal supports a standalone portal page anywhere within the same domain. So you can have the portal page in a different SUB domain from the forum.  But SimplePortal does not support a portal in another domain.

What you can try is putting StandalonePortal.php in domain1.com.
Then, on domain2.com, put a page with an iframe to get domain1.com/StandalonePortal.php

Please tell us how that works.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: KnightBob on October 05, 2011, 10:55:00 AM
I don''t know if you host supports it, but if you host allows you to park a domein, you can create a speciaal folder which contains al the files of the website. I used this system also once when I used IP.Dynamiclite and IP.Board 1.3.1
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Adrek on October 05, 2011, 12:35:50 PM
I think that I use iframes...
<html><head><title>Title</title></head>
<frameset cols='*'>
<frame name='main' src='some_url' scrolling='auto' noresize>
<noframes>
<body>
Your browser does not support frames
</body></noframes></frameset>
</html>


Thanks ;)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 05, 2011, 12:37:30 PM
Does this do what you want?

In the future, <iframes> will better than <frames>. <frames> is supposed to be on its way out.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Adrek on October 05, 2011, 12:47:38 PM
So i have to change only <frame name='m... to <iframe name='m... ?

Quote from: AngelinaBelle on October 05, 2011, 12:37:30 PM
Does this do what you want?

That's good enough. But for now i stay with htaccess and 301 to my main domain ;)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 05, 2011, 04:17:10 PM
Pretty much. Check your favorite HTML tutorial: http://w3schools.com/html/html_iframe.asp
Title: Re: SimplePortal - 2.3.3 Released!
Post by: bearstreet on October 06, 2011, 01:59:26 PM
is there a way to use different widths of portal blocks.
more specifically, i want to use 400 width blocks on portals, and 100 width blocks (left and right ) on my forum.

is it possible?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Dave J on October 06, 2011, 03:12:13 PM
Quote from: bearstreet on October 06, 2011, 01:59:26 PM
is there a way to use different widths of portal blocks.
more specifically, i want to use 400 width blocks on portals, and 100 width blocks (left and right ) on my forum.

is it possible?

As far as I know you resize the left and right columns and whatever is left is taken up by the centre column. There is no option in the settings to have the same blocks different sizes on the portal and forum at the same time, there may be a way to do it in the files for the portal somewhere but I don't know where they are if they are there at all.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 06, 2011, 03:12:49 PM
SimplePortal does not make that possible.  Only one width.
That's an interesting suggestion, though.
Please take it to the feature requests board at SimplePortal.net

Thanks!
Title: Re: SimplePortal - 2.3.3 Released!
Post by: żεχเ๏ภ on October 08, 2011, 11:16:49 AM
http://www.blastbox.co.uk/index.php

Hi, I'd like to change portal page title so that its different from the forum index title. Can anyone tell me how to do that?

Eg. The index.php (homepage/portal page) would be "Blastbox News & Forums" and the forum title would just stay the same.


Thanks,
Jason


Edit: Nevermind... Edited /Sources/PortalMain.php and changed the like "$context['page_title'] = $context['forumname'];" to "   $context['page_title'] = 'BlastBox - TV & Entertainment News and Discussion';"
Title: Re: SimplePortal - 2.3.3 Released!
Post by: lostprodigy on October 08, 2011, 03:29:19 PM
Hi I recently installed http://custom.simplemachines.org/mods/index.php?mod=2786 and now my icons won't show up as shown in the screenshot below.

prntscr.com/3e47h
Title: Re: SimplePortal - 2.3.3 Released!
Post by: lostprodigy on October 09, 2011, 08:06:44 PM
Quote from: lostprodigy on October 08, 2011, 03:29:19 PM
Hi I recently installed http://custom.simplemachines.org/mods/index.php?mod=2786 and now my icons won't show up as shown in the screenshot below.

prntscr.com/3e47h
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Eliana Tamerin on October 09, 2011, 11:24:04 PM
Lostprodigy, please don't bump your support requests on here when you have an active support topic on SP.net. It's much easier to find and deal with just one venue for support, so if you're on SimplePortal.net, please try to use that for support as much as possible. It's also courteous to wait a full 24 hours before bumping your request, something you need to work on both here and at SP.net. Your support requests are received, never fear, and they will always be taken care of in a timely manner.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: żεχเ๏ภ on October 11, 2011, 12:00:31 AM
{
echo '
<table class="sp_fullwidth">';

foreach ($items as $item)
echo '
<tr>
<td class="sp_recent_icon sp_center">
', sp_embed_image(empty($parameters['type']) ? 'post' : 'topic'), '
</td>
<td class="sp_recent_subject">
<a href="', $item['href'], '">', $item['subject'], '</a>
', $item['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>', '<br />[', $item['board']['link'], ']', '<br />by&nbsp;', $item['poster']['link'], ',&nbsp;', $item['time'], '
</td>
</tr>';

echo '
</table>';
}
}


If this is the code in PortalBlocks.php for the Recent Topics block, it will show

"Thread Name
[Board Name]
by Last Poster on Date/time"

I wanted it to show

"Thread Name
[Board Name]
by Topic Starter on Date/time"

My question is. How can I change the last poster ( "$item['poster']['link']" ) to the name of the topic starter?



Thanks for any help. :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 11, 2011, 09:38:43 AM
Do you want to show recent POSTS or recent TOPICS?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: żεχเ๏ภ on October 11, 2011, 10:07:08 PM
Quote from: AngelinaBelle on October 11, 2011, 09:38:43 AM
Do you want to show recent POSTS or recent TOPICS?

I want it to show recent TOPICS, with the TOPIC STARTER's name, instead of LAST POSTER's name.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: slumdog10 on October 12, 2011, 03:34:20 AM
Hi I have installed the latest simple portal and m running the latest smf. but after installing the simple portal and setting it as front page i can see all the blocks which is great but there is the section in the centre wiht all the writting about the simple portal.

Can you tell me how i get rid of all the writting about the simple portal and add my own welcome text.

thanks
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 12, 2011, 03:11:38 PM
slumdog10 -- look through all the blocks in your blocks list.  You will see the welcome block. Click on the picture of the wrench/spanner to edit that block.  For more information, please see Simple Portal documentation at simpleportal.net

zexion -- Here's how I found the answer:
1) sp_recent uses 'ssi_recent' . $type in SSI.php. 
2) So I looked in SSI.php for ssi_recentTopics,
3) which calls ssi_QueryPosts.
4) and ssi_QueryPosts
brings back the author of the current post, not the author of the topic.

Making the change you want would require a change to PortalBlocks.php as well as a change to SSI.php. Of course, it can be done, but it will not be convenient, as the SSI.php changes could disappear on any SMF upgrade, and the PortalBlocks.php changes could disappear on any SimplePortal upgrade.  Still interested?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: żεχเ๏ภ on October 12, 2011, 04:26:29 PM
Quote from: AngelinaBelle on October 12, 2011, 03:11:38 PM
zexion -- Here's how I found the answer:
1) sp_recent uses 'ssi_recent' . $type in SSI.php. 
2) So I looked in SSI.php for ssi_recentTopics,
3) which calls ssi_QueryPosts.
4) and ssi_QueryPosts brings back the author of the current post, not the author of the topic.

Making the change you want would require a change to PortalBlocks.php as well as a change to SSI.php. Of course, it can be done, but it will not be convenient, as the SSI.php changes could disappear on any SMF upgrade, and the PortalBlocks.php changes could disappear on any SimplePortal upgrade.  Still interested?

Indeed, what changes would I need to make?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 12, 2011, 05:01:31 PM
I was wrong about queryPosts, of course.
This change requires a change to the SQL query.  It requires an additional join, back to the fist post in the topic.
I'm not so confident I'll get it exactly right.
If I gave you some inappropriate SQL, it could slow down the query a LOT, or else, accidently filter out some rows you actually want.

I'm going to recommend you do one of two things.
1) Take this to one of the custom coding boards here at SMF. Say you want to retrieve the author of the original post in the query in ssi_recentTopics
2) Bring it to SimplePortal.net, to the custom coding board.  Say the same thing there, or go on to say you want to use this in the sp_recent block.

I'm sorry -- I just don't want to give you some bad SQL off the top of my head.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: cloksin on October 14, 2011, 09:57:13 AM
I have Simple POrtal 2.3.3 installed on SMF 2.0 RC3 (yes, I know, upgrade SMF... in the process, with all the mods I have that's going to require a complete rebuild then databse port, its in the process.) In the meantime, I'm having problems with permissions in Simple Portal.  I need to set permissions for my shoutbox so that everyone initially has permission to use it, but if the privilage is abused, that permission can be revoked.

In theory what I should be able to do is set the shoutbox permission to "One Membergroup" and select the membergroups I want to have permission to the shoutbox, then I would do the same for the block that the shoutbox is in.

When people join my forum they are automatically put into a membergroup called "Unclassified", after they make their first post they are automatically moved to a membergroup called "New Arrival".  After they've finished their arrival thread with a member of my staff, that member of staff moves them to a membergroup related to the department they will be in, and also adds them to a member group named "shoutbox".

I have all three of these groups selected for permissions in both the shoutbox and the block that it resides, yet when using my test member and removing that member from all groups except his primary department group, he is still able to see and post in the shoutbox.  If I change the permissions to "All Membergroups" then only admins are able to see the shoutbox.  Selecting "Ignore Permissions" defeats the purpose.  Is "One Membergroup" broken in 2.3.3?

What can I do to get this fixed.  I've had a problem with a couple of people using the shoutbox to verbally abuse my other members, banning this person works for a limited time as they keep using proxies to log in with new IP addresses and creating new characters, going after other members.

The way my site is set up I need to let new members use the shoutbox, as its a tool to get info and help on how to get started from more experienced players, and I can't block proxies because many of my members use them for various reasons (such as when using a computer in a public place such as a library and ned to circumvent the filters).

I really need to find a solution to this quickly.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 14, 2011, 10:44:52 AM
Last time I checked, these permissions worked.
The proper way to do this is, as you suggest
* Require users to belong to only "One Membergroup" of the ones you have checked (requiring "All membergroups" limits things to users who belong to all of the checked usergroups)
* Allow only members of the "shoutbox" membergroup to make shouts in the shoutbox.

Is this what you want to achieve?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: cloksin on October 14, 2011, 10:59:06 AM
That is exactly correct, yet members that do NOT belong to the shoutbox group (or any of the other two groups selected) are still capable of seeing the shoutbox as well as posting in it.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 14, 2011, 02:00:19 PM
Thanks for being very precise. You are not using "ignore permissions" any longer, on the shoutbox or on the shoutbox block?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: cloksin on October 14, 2011, 02:10:32 PM
I am not using "ignore permissions" on either.  Both the shoutbox itself and the block it resides in are using "one membership"
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 14, 2011, 02:14:40 PM
Well, that just confirms that something is wrong.
I am not going to be around for several days, and I do not understand why this would have gone wrong, anyway.

Can you take this over to SimplePortal.net? I cannot guarantee anyone's availability over there, but you might have a better chance of having someone look at it.  A subject of "shoutbox ignores permissions" might help attract the right kind of attention.
Right now, all the most knowledgeable hands are busy with beta testing for 2.3.4, but I am hopeful for you....
Title: Re: SimplePortal - 2.3.3 Released!
Post by: cloksin on October 14, 2011, 02:27:29 PM
Thanks Angelina, I've already got a thread over there for this http://simpleportal.net/index.php?topic=9892.0, although its not quite as detailed as this one is.  Do you think I should take my first post from here and post it over there in that thread?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 14, 2011, 02:30:43 PM
I suggest making the subjec specific, and making it easy for the support helper (usually me, but not for the next several days) to absorb the information in one read.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: cloksin on October 14, 2011, 03:05:36 PM
Gotcha, will do, and thanks.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: żεχเ๏ภ on October 26, 2011, 03:13:03 PM
Is there anyway to remove the linktree from the portal page?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 26, 2011, 07:22:23 PM
Removing the linktree from the portal page will require some custom coding in your theme.
Are you ready for that?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: żεχเ๏ภ on October 26, 2011, 11:11:02 PM
Quote from: AngelinaBelle on October 26, 2011, 07:22:23 PM
Removing the linktree from the portal page will require some custom coding in your theme.
Are you ready for that?

Nevermind, I solved this with help from simpleportal.net   :D
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 27, 2011, 02:26:04 PM
I am glad you found the answer there. I know someone else asked the same question recently.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on October 31, 2011, 03:45:21 PM
strange one here.
my portal has vanished off the home page of my forum ?
not sure if its a coincidence or not but roughly the same time i had someone report a post
so there was a 'reported post' bit at the top of the forum?

the portal shows everywhere else that i have it set though very strange
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on October 31, 2011, 04:18:12 PM
Are you getting an error message at the top of your forum?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 01, 2011, 02:51:55 AM
no i'm not getting an error at the top :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 01, 2011, 02:56:04 AM
altho the smf logo has re-appeared???
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on November 01, 2011, 07:59:03 AM
It sounds like some kind of errors are causing a problem with your portal.
Please check several things:
Look for error messages on your web page at the top and at the bottom.
Use the HTML validation link at the bottom of the page to find HTML errors
Check your SMF log file.

If you provide a link to the portal page, perhaps I can help you track down the source of the problem.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 01, 2011, 08:07:18 AM
i have got this error at the bottom but thought that was to do with something else that i'm trying find out what is causing it but having problems finding it out


Fatal error: require_once() [function.require]: Failed opening required 'chat/chatwinsize.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/steve/public_html/forum/Themes/default/BoardIndex.template.php on line 396


my site is christianstogether.co.uk/forum

thanks Angelina :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on November 01, 2011, 08:37:33 AM
I see portal stuff at http://www.christianstogether.co.uk/forum/
It looks like you are running in "integration" mode.  I see the Board Indes, with a top bloc, and some right-side blocks.

This looks normal to me for Simple Portal in "integration" mode.

----------------------------------------------------------
You have lots of HTML errors on your home page.
Please use the XHTML validator to see them all.
* Some are related to the flashchat, I think
* Some are caused by the mod that puts the pictures in the board names -- the <img> tags MUST be <img /> for XHTML, and every img must also have an alt tag
* And others.

Title: Re: SimplePortal - 2.3.3 Released!
Post by: smitch6 on November 01, 2011, 09:41:52 AM
yes sorry i sorted it a little while ago
i had changed the name of the folder that i kept the chat info in and that threw an error up lol oops
thanks for all your info and help Angelina :)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: icelocked on November 02, 2011, 07:52:48 PM
Hello,
When I try to install simple portal, it passes all test, but comes up with this error at installation:

Database Error
Table 'smf_r3.smf_sp_functions' doesn't exist
File: /hermes/bosweb25b/b859/ipg.r3clancom2/forums/Packages/temp/install2.php
Line: 582

I'm running SMF 2.0.1, but have also tried to install it while emulating version 2.0

any ideas on how to fix?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on November 03, 2011, 08:34:51 AM
When you use the package manager to install a package, it runs a file in the package called install.php
For SMF2, That file is found in the smf 2 folder inside the package zip (or .tar.gz in this case) file.
This file creates the table, and then uses it.

I am surprised that this is the FIRST error you encountered. You didn't get an error on creating the table?
Are there any other errors in your SMF error log?
Any other errors associated with your database?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: icelocked on November 03, 2011, 10:14:24 PM
Nope I didn't get any other errors before this. I just checked the error log and took a couple screenshots of what I saw there:

(http://i173.photobucket.com/albums/w47/icelocked/error1.jpg)
(http://i173.photobucket.com/albums/w47/icelocked/error2.jpg)
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on November 04, 2011, 08:50:21 AM
So this was not your first error.
All in all, I would say your Simple Machines install did not go well at all.
Directories did not get created (/Themes/ds-natural_20/images/sp, for example), files did not get copied to where they belong, at least one table did not get created.

This is an SMF problem. Package Manager was unable to do its job, probably because of permission (or perhaps even file/directory ownership) problems.

Please uninstall Simple Portal, then study your permission situation. When that is corrected, please try the install again.
Please read the documentation at simpleportal.net on solving installation problems.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: icelocked on November 05, 2011, 12:14:36 PM
Ok, thank you for your help.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: pixeleyes on November 11, 2011, 10:50:38 AM
Subject/Title Length of BoardNEWS

I'm using custom boardNEWS block and want to set limit of words/character in subject line.

If subject is big it goes automatically in second line which is messing my block,

so I would like to keep it one line. I want to make it shorter.

Please guide me how to set the subject limit/length in boardNews block?
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Angelina Belle on November 11, 2011, 11:16:50 AM
The board news block does not have a paramter for that.
However, since you are already customizing the boardnews block, you could add a parameter to control this.
This discussion could go on for a little while, so I invite you to visit the custom coding board at simpleportal.net.

I will not be available there until next week, but maybe someone can help you with adding a parameter to the boardnews block, and then using it to control the max. length of the subject line.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Robin1989 on November 12, 2011, 10:27:09 AM
is the simpleportal site down?

i wanted to ask about a bug fix as people on my forum although unable to speak in a shoutbox for staff they can still access it to read the history by manipulating the history url.

see the shoutbox we use for everyone would be say - index.php?action=portal;sa=shoutbox;shoutbox_id=1  - and the staff one would be index.php?action=portal;sa=shoutbox;shoutbox_id=2 and any member seems to be able to access that history even though they cant type in it.

is this an issue for everyone or is it a setting i havnt done right or is there a fix i havent found.

any help would be greatly apreciated
Title: Re: SimplePortal - 2.3.3 Released!
Post by: Eliana Tamerin on November 12, 2011, 01:22:25 PM
The SP.net site was down this morning for some scheduled downtime from our service provider. I had to manually restart some services this morning, but we're back up now. Sorry for the inconvenience.
Title: Re: SimplePortal - 2.3.3 Released!
Post by: [SiNaN] on November 13, 2011, 07:34:33 AM
Quote from: Robin1989 on November 12, 2011, 10:27:09 AM
i wanted to ask about a bug fix as people on my forum although unable to speak in a shoutbox for staff they can still access it to read the history by manipulating the history url.

see the shoutbox we use for everyone would be say - index.php?action=portal;sa=shoutbox;shoutbox_id=1  - and the staff one would be index.php?action=portal;sa=shoutbox;shoutbox_id=2 and any member seems to be able to access that history even though they cant type in it.

is this an issue for everyone or is it a setting i havnt done right or is there a fix i havent found.

any help would be greatly apreciated

You probably don't have the shoutbox permissions set properly. Shoutbox and block permissions are separate. If you don't want X group to access a shoutbox, you need to make sure that he isn't allowed to view both shoutbox and block.
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: SimplePortal Team on November 13, 2011, 08:42:55 AM
SimplePortal 2.3.4 RC1 Released! (http://simpleportal.net/index.php?topic=10069.0)

Quote
The SimplePortal Team has been hard at work for the last several months developing the next version of SimplePortal, 2.3.4, code-named "cherry"! We've heard your feedback, and included many requested features in our upcoming version, although it was supposed to be a bug-fix-only release.

Since we would like to have testing and feedback for our new version, in order to provide you the most stable product possible, we have decided to make our release candidate public. This means you can download the upcoming version now, test and report the bugs.

However, please note that: There will be no install/upgrade/uninstall support provided for/from RC1 version. Although this is a stable version, we strongly advise against using this package on your live forums. This package is only for testing purposes.

For those who are wondering, here's some (but not all) of the features of our new version:

  • SMF 2.0.1 and 1.1.15 compatibility.
  • Two new positions for blocks: header and footer.
  • Revamped permission system with the ability to deny permissions.
  • Complex display options using PHP expressions for block display.
  • Implemented basic flood protection for shoutbox.
  • Introduced group based shoutbox moderators.
  • Added ability to prune shoutboxes with various options.
  • Links posted to shoutbox are now shortened.
  • Added ability to whisper (write private shouts) in shoutbox.
  • Improved compatibility with other mods.
  • Improved Right-To-Left languages support.
  • Fixed the bugs reported in 2.3.3.
Your feedback is welcome here and in the related topics in Team Blogs (http://simpleportal.net/index.php?board=60.0) board. Please post any bugs to the Bugs (http://simpleportal.net/index.php?board=3.0) board.

You can download the package from Beta Packages (http://simpleportal.net/index.php?action=downloads;area=stable_beta_packages) category in Downloads (http://simpleportal.net/index.php?action=downloads) area.

Thanks,
-The SimplePortal Team
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: Robert. on November 14, 2011, 10:45:06 AM
Great news! :)
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: Aoife on November 14, 2011, 10:50:26 AM
Quote from: SimplePortal Team on November 13, 2011, 08:42:55 AM
SimplePortal 2.3.4 RC1 Released! (http://simpleportal.net/index.php?topic=10069.0)


I uninstalled the old version and installed the new without a problem. Seems to be working as it should....


cheers!

Cheryl


Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: [Lucien] on November 16, 2011, 04:45:22 PM
Wow nice :D

Do i have to clear the database for the new 2.3.4 RC1, so start from scratch?


I really enjoy using simpleportal, glad to see it's updated!!  8)
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: Eliana Tamerin on November 16, 2011, 07:02:02 PM
You do not have to clear the database if you are coming from 2.3.3.
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: [Lucien] on November 16, 2011, 07:08:53 PM
That's a relief  :D
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: DragoN_PT on November 18, 2011, 11:43:38 PM
Is it possible to hide or remove the userbox ONLY from the portal page?
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: TheListener on November 19, 2011, 12:55:57 AM
Quote from: DragoN_SAMP on November 18, 2011, 11:43:38 PM
Is it possible to hide or remove the userbox ONLY from the portal page?

What do you mean by userbox?
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: [SiNaN] on November 19, 2011, 01:43:11 AM
Quote from: DragoN_SAMP on November 18, 2011, 11:43:38 PM
Is it possible to hide or remove the userbox ONLY from the portal page?

Yeah. Just edit the block and change the Display Options as you like.
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: DragoN_PT on November 19, 2011, 01:55:03 AM
Quote from: Brack1 on November 19, 2011, 12:55:57 AM
What do you mean by userbox?
The one with the user avatar, recent topics, unread replies, latest member, etc..

Quote from: [SiNaN] on November 19, 2011, 01:43:11 AM
Yeah. Just edit the block and change the Display Options as you like.
Witch block? Sorry but im a noob at scripting.. Sometimes I mess arround the files and usually I get the things done, but with the userbox I can find it at index.template but if I delete it it crash my forum down.. And maybe if I can turn arround the crash I presume it will disapear from the entire forum..

I would like to take it off only from the portal page..
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: TheListener on November 19, 2011, 01:57:14 AM
Are you talking about the block or the area at the top of the page?
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: DragoN_PT on November 19, 2011, 01:03:15 PM
Yes. The personal area.. The one that shows your avatar, unread replies, ect..
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: ~DS~ on November 19, 2011, 04:06:37 PM
Any chances of blocks supporting alltopics, not allboards?
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: [SiNaN] on November 20, 2011, 01:31:39 PM
With the Complex Display Options in 2.3.4, you can use this as Custom Display Option:

$php global $context; return (isset($context['get_message']) && $context['get_message'] == 'prepareDisplayContext');
Title: Re: SimplePortal - 2.3.3 Released!
Post by: pixeleyes on November 21, 2011, 09:27:15 AM
Quote from: AngelinaBelle on November 11, 2011, 11:16:50 AM
The board news block does not have a paramter for that.
However, since you are already customizing the boardnews block, you could add a parameter to control this.
This discussion could go on for a little while, so I invite you to visit the custom coding board at simpleportal.net.

I will not be available there until next week, but maybe someone can help you with adding a parameter to the boardnews block, and then using it to control the max. length of the subject line.

I started this post on 10th Dec. at simpleportal.net  but still didn't get any response regarding this code. Looking forward if anyone could help here.
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: reefforum on November 23, 2011, 12:22:19 AM
QUESTION:

I am using "recent gallery uploads" as my right and left blocks.  I'd like increase thumbnail size inside the blocks.  Currently there is a lot of white background. 

Thank you much in advance
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: Maserati on November 24, 2011, 01:00:49 PM
Hello,

I use 2.3.3 version, and I have little problem... I try to look into css but i cant find how to fix this problem...

You can see on image what is problem:
(http://ultraphoto.org/images/bo1ar034e7cjonzhbx.png)
(http://ultraphoto.org/images/yxdmf86gwxb8qo75qc.png)
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: TheListener on November 24, 2011, 01:02:53 PM
Maserati

This has been explained time and time again.

Place the portal.css file into the css folder of the theme you are using.

You do know there is a new version out?
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: Maserati on November 24, 2011, 02:07:14 PM
New version is till beta..
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: TheListener on November 24, 2011, 02:09:50 PM
I use it on my forum as do the folks on Pixel Mansion.

The beta version is available for download.
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: GlitchPC on November 24, 2011, 02:42:27 PM
Regarding the new Beta and hopefully soon to be released Final version of 2.3.4...  Will there be an upgrade feature, or will one have to uninstall the old to install the new?
Title: Re: SimplePortal - 2.3.3, 2.3.4 RC1 Released!
Post by: Eliana Tamerin on November 25, 2011, 02:49:22 AM
Quote from: Brack1 on November 24, 2011, 01:02:53 PM
You do know there is a new version out?

We generally don't suggest that users update to beta/RC versions, those are more for testing purposes, unless a new feature or fixed bug solves a specific issue that needs immediate resolution.

Quote from: GlitchPC on November 24, 2011, 02:42:27 PM
Regarding the new Beta and hopefully soon to be released Final version of 2.3.4...  Will there be an upgrade feature, or will one have to uninstall the old to install the new?

There is no upgrade path for 2.3.4, you must Uninstall SP and then Install the new version of SP. However, unless you specifically request it (by selecting a checkbox) your data will remain the same, the only thing that will change is the files themselves. So if you have custom coding, you will need to back it up before you update.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: SimplePortal Team on November 25, 2011, 05:02:30 PM
SimplePortal 2.3.4 Released! (http://simpleportal.net/index.php?topic=100191.0)

Quote
The SimplePortal Team is happy to announce the release of SimplePortal 2.3.4, code-named "Cherry!" This release includes many minor feature additions, improvements and fixes for bugs found in the 2.3.3 version.

We urge all users to upgrade to SimplePortal 2.3.4 as soon as possible to take advantage of the new features and bug fixes. A summary of the features and fixes is as follows:

Features

  • Two new positions for blocks: header and footer.
  • Revamped permission system with the ability to deny permissions.
  • Complex display options using PHP expressions for block display.
  • Implemented basic flood protection for shoutbox.
  • Introduced group based shoutbox moderators.
  • Added ability to prune shoutboxes with various options.
  • Links posted to shoutbox are now shortened.
  • Added ability to whisper (post private shouts) in shoutbox.
  • Better handling of ignored users in shoutbox.
  • Brand new RSS Feed block with a better parser.
  • Allow selecting blocks (not) to show in pages on page add/edit.
  • Allow overriding block titles using language strings.

Fixes

  • SMF 2.0.1 and 1.1.15 compatibility.
  • Improved compatibility with other mods.
  • Improved Right-To-Left languages support.
  • Several fixes to package database functions.
  • Custom theme friendly fix for broken headers.
  • Unescaped entities in shout dates could break shoutbox.
  • cutoff tag was displayed when it shouldn't be.
  • max-height failed on older browsers.
  • Copyright was misaligned due to recent changes in SMF.
  • Fixed MySQL 5.5+ compatibility.
  • Board news pagination link was sometimes broken.
  • Applied board permissions to the article management area.

A full list of changes for 2.3.4 can be found in the changelog.txt file within the SimplePortal package.

Unfortunately, there is no auto-upgrade option from 2.3.3 to 2.3.4 due to the number of changes. So, if you are running 2.3.3 or an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.

  • Uninstall SimplePortal.
  • Download SimplePortal 2.3.4. (http://simpleportal.net/index.php?action=downloads;area=stable_simpleportal_packages;file=115;download)
  • Install SimplePortal 2.3.4, and you are ready to go!

Finally, please do not use this topic for any support requests. You will get a much more prompt response by posting in Install and Upgrade (http://simpleportal.net/index.php?board=54.0) board.

Thanks for all your support, and keep those bug reports and feature requests coming!
-The SimplePortal Team
Title: Re: SimplePortal - 2.3.4 Released!
Post by: teos55 on November 25, 2011, 05:11:07 PM
   
Unistalled 2.3.3 and installed 2.3.4 successfuly on smf 2.0.1 with default theme , thanks for your great efforts ..
No errors so far :-) 
Title: Re: SimplePortal - 2.3.4 Released!
Post by: GlitchPC on November 25, 2011, 08:26:54 PM
The uninstall of 2.3.3 was a little "hairy"...due to the edits I had to make.  However, the plus side...2.3.4 installed on my default and modified themes with absolutely no issues.

Well done!
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Robert. on November 26, 2011, 05:16:45 AM
Congrats team! :D
Title: Re: SimplePortal - 2.3.4 Released!
Post by: żεχเ๏ภ on November 26, 2011, 05:05:14 PM
No "independent articles"? Ouch.  ???
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Suki on November 26, 2011, 05:42:12 PM
Quote from: żεχเ๏ภ on November 26, 2011, 05:05:14 PM
No "independent articles"? Ouch.  ???

http://simpleportal.net/index.php?topic=9808.msg51680#msg51680
Title: Re: SimplePortal - 2.3.4 Released!
Post by: [Lucien] on November 26, 2011, 05:59:49 PM
Thank you very much for the update!! It's runs smoothly :D
Title: Re: SimplePortal - 2.3.4 Released!
Post by: impreza on November 27, 2011, 09:54:46 AM
1, How do you install this portal does not appear on the menu link to the forum and the forum is only for the portal. Does it start somewhere.

2.  After installing the portal and add a shoutbox added to the portal page in the frame of a block and he is not working properly shoutbox

The new version after that is efficient and there are no problems with the installation

Calendar information is on the left side - when added shoutbox he gets on top as seen in the photograph and the shoutbox does not work anyway.

http://img36.imageshack.us/img36/9807/pobraneu.jpg

The following photograph of the problem

Title: Re: SimplePortal - 2.3.4 Released!
Post by: GlitchPC on November 27, 2011, 12:19:12 PM
Just noticed the top and left block headers do not align on SP created pages.  Any suggestions?  (See attached image)
Title: Re: SimplePortal - 2.3.4 Released!
Post by: impreza on November 29, 2011, 05:13:28 AM
establishment of pages does not work
Uninstall does not work properly
Does not work when it is modified view of the additives
Title: Re: SimplePortal - 2.3.4 Released!
Post by: GlitchPC on November 29, 2011, 08:53:38 AM
Little help here, please:  http://www.simplemachines.org/community/index.php?topic=227599.msg3217179#msg3217179
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on November 29, 2011, 09:42:01 AM
tomeh -- I do not understand your questions.  I am sorry. Can you come to simpleportal.net. We can work on one question at a time?

GlitchPC -- I went to glitchpc.net. at http://glitchpc.net/index.php alignment looks perfect.  at http://glitchpc.net/index.php?action=faq the block "What are the forum rules" is a little higher than the left block.

I am going to guess that the image you attached is of a simple portal page, and that no top blocks are shown. Can you provide a link?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Adrek on November 29, 2011, 10:24:50 AM
What about resetting (custom) permissions when previewing block? Is there some fix or we have to wait for new SP?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: TheListener on November 29, 2011, 10:56:35 AM
Quote from: phantomm on November 29, 2011, 10:24:50 AM
What about resetting (custom) permissions when previewing block?

Can you explain in more detail what you mean.

As for the new SP, 2.3.4 has been released.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: GlitchPC on November 29, 2011, 11:14:34 AM
Quote from: AngelinaBelle on November 29, 2011, 09:42:01 AM
GlitchPC -- I went to glitchpc.net. at http://glitchpc.net/index.php alignment looks perfect.  at http://glitchpc.net/index.php?action=faq the block "What are the forum rules" is a little higher than the left block.

I am going to guess that the image you attached is of a simple portal page, and that no top blocks are shown. Can you provide a link?

AngelinaBelle...

This only happens when I create a SimplePortal page.  No top blocks.  The FAQ page is another mod.  Issues I have are with the following pages:

So...what do ya think?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Adrek on November 29, 2011, 11:34:17 AM
Brack, try to add new block with custom permissions. Set few to "A", few to "D", and leave few with "X". Now click "Preview" and now all permissions are set to "X"
SMF 2.0.1
SP 2.3.4 (earlier on 2.3.3 I didn't notice this problem)
Title: Re: SimplePortal - 2.3.4 Released!
Post by: [SiNaN] on November 29, 2011, 01:25:55 PM
Quote from: GlitchPC on November 29, 2011, 11:14:34 AM
Quote from: AngelinaBelle on November 29, 2011, 09:42:01 AM
GlitchPC -- I went to glitchpc.net. at http://glitchpc.net/index.php alignment looks perfect.  at http://glitchpc.net/index.php?action=faq the block "What are the forum rules" is a little higher than the left block.

I am going to guess that the image you attached is of a simple portal page, and that no top blocks are shown. Can you provide a link?

AngelinaBelle...

This only happens when I create a SimplePortal page.  No top blocks.  The FAQ page is another mod.  Issues I have are with the following pages:

  • Legal-Privacy (http://glitchpc.net/index.php/page,legal.html)
  • Link to Us (http://glitchpc.net/index.php/page,link2us.html)
  • Board Rules (http://glitchpc.net/index.php/page,boardrules.html)
  • Windows XP Shortcut Keys (http://glitchpc.net/index.php/page,xpshortcutkeys.html)

So...what do ya think?

That space is there to separate the forum content from SimplePortal blocks but if it bothers you, you could make this change:

Themes/default/Portal.template.php

Code (Find and Remove) Select
echo '
<br class="sp_side_clear" />';


I'll change that with a more cleaner and customizable code in the next versions.

Quote from: phantomm on November 29, 2011, 11:34:17 AM
Brack, try to add new block with custom permissions. Set few to "A", few to "D", and leave few with "X". Now click "Preview" and now all permissions are set to "X"
SMF 2.0.1
SP 2.3.4 (earlier on 2.3.3 I didn't notice this problem)

See this:

http://simpleportal.net/index.php?topic=10216.0
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on November 29, 2011, 02:05:11 PM
Thanks, Sinan.  I was still working through whether that was in Portal.template.php, or whether it came along with the pages.

A little logic for "if you don't have top blocks, don't put in the space-after-the-top-blocks". that sounds like a good idea.

Title: Re: SimplePortal - 2.3.4 Released!
Post by: żεχเ๏ภ on November 29, 2011, 11:54:16 PM
Quote from: Miss All Sunday on November 26, 2011, 05:42:12 PM
Quote from: żεχเ๏ภ on November 26, 2011, 05:05:14 PM
No "independent articles"? Ouch.  ???

http://simpleportal.net/index.php?topic=9808.msg51680#msg51680

:laugh: Ah, haha well done then.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: GlitchPC on November 30, 2011, 01:38:38 AM
Quote from: [SiNaN] on November 29, 2011, 01:25:55 PM
Quote from: GlitchPC on November 29, 2011, 11:14:34 AM
Quote from: AngelinaBelle on November 29, 2011, 09:42:01 AM
GlitchPC -- I went to glitchpc.net. at http://glitchpc.net/index.php alignment looks perfect.  at http://glitchpc.net/index.php?action=faq the block "What are the forum rules" is a little higher than the left block.

I am going to guess that the image you attached is of a simple portal page, and that no top blocks are shown. Can you provide a link?

AngelinaBelle...

This only happens when I create a SimplePortal page.  No top blocks.  The FAQ page is another mod.  Issues I have are with the following pages:

  • Legal-Privacy (http://glitchpc.net/index.php/page,legal.html)
  • Link to Us (http://glitchpc.net/index.php/page,link2us.html)
  • Board Rules (http://glitchpc.net/index.php/page,boardrules.html)
  • Windows XP Shortcut Keys (http://glitchpc.net/index.php/page,xpshortcutkeys.html)

So...what do ya think?

That space is there to separate the forum content from SimplePortal blocks but if it bothers you, you could make this change:

Themes/default/Portal.template.php

Code (Find and Remove) Select
echo '
<br class="sp_side_clear" />';


I'll change that with a more cleaner and customizable code in the next versions.



That fixed it...

Thank you, very much!
Title: Re: SimplePortal - 2.3.4 Released!
Post by: sharks on November 30, 2011, 06:16:46 AM
Quote from: AngelinaBelle on November 29, 2011, 02:05:11 PM
Thanks, Sinan.  I was still working through whether that was in Portal.template.php, or whether it came along with the pages.

A little logic for "if you don't have top blocks, don't put in the space-after-the-top-blocks". that sounds like a good idea.

+1

It seems like a "feature" to add to the bug tracker over at SP. ;)
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Adrek on December 02, 2011, 10:20:45 AM
I asked about that at simpleportal.net but maybe here someone can help me...

How to move bottom blocks above Info center? I Added Shoutbox in this blocks, and that's why I want to move it.

SMF 2.0.1
SP 2.3.4

//edit
Answer: http://simpleportal.net/index.php?topic=10280.msg53446#msg53446
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Chas Large on December 02, 2011, 10:52:17 AM
Quote from: [SiNaN] on November 29, 2011, 01:25:55 PM
Quote from: GlitchPC on November 29, 2011, 11:14:34 AM
Quote from: AngelinaBelle on November 29, 2011, 09:42:01 AM
GlitchPC -- I went to glitchpc.net. at http://glitchpc.net/index.php alignment looks perfect.  at http://glitchpc.net/index.php?action=faq the block "What are the forum rules" is a little higher than the left block.

I am going to guess that the image you attached is of a simple portal page, and that no top blocks are shown. Can you provide a link?

AngelinaBelle...

This only happens when I create a SimplePortal page.  No top blocks.  The FAQ page is another mod.  Issues I have are with the following pages:

  • Legal-Privacy (http://glitchpc.net/index.php/page,legal.html)
  • Link to Us (http://glitchpc.net/index.php/page,link2us.html)
  • Board Rules (http://glitchpc.net/index.php/page,boardrules.html)
  • Windows XP Shortcut Keys (http://glitchpc.net/index.php/page,xpshortcutkeys.html)

So...what do ya think?

That space is there to separate the forum content from SimplePortal blocks but if it bothers you, you could make this change:

Themes/default/Portal.template.php

Code (Find and Remove) Select
echo '
<br class="sp_side_clear" />';


I'll change that with a more cleaner and customizable code in the next versions.

Quote from: phantomm on November 29, 2011, 11:34:17 AM
Brack, try to add new block with custom permissions. Set few to "A", few to "D", and leave few with "X". Now click "Preview" and now all permissions are set to "X"
SMF 2.0.1
SP 2.3.4 (earlier on 2.3.3 I didn't notice this problem)

See this:

http://simpleportal.net/index.php?topic=10216.0
Just out of interest I created a test page with a Left Block and a Right Block in it, attached is the result. Is this normal? The Theme is ClearSky but it's the same with Curve.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on December 02, 2011, 02:45:08 PM
Yes.  That is perfectly normal.  That is a design choice made in Portal.template.php made by SimplePortal's developer, Sinan.
There is a <br> before the "center" area of the page. It would be after the top blocks, if there were any.

Changing this behavior would mean changing the logic.
One option is to remove the line Sinan mentioned (above). Other options are possible -- the sky's the limit with theming.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: impreza on December 04, 2011, 04:44:46 AM
(//)Hi, I have a problem with the operation Shoutbox. Displays an error message like this:


ADMIN
127.0.0.1   
02 Gru 11, 22:13:47
2eeef374bc337994728661adc1ca7e3b
Typ błędu: Baza danych
http://localhost/dialog/index.php?Bład bazy danych: Illegal mix of collations (utf8_polish_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull'Plik: C:/Documents and Settings/tomeh/Pulpit/Xmp/xampp/htdocs/dialog/Sources/Subs-Portal.php
Linia: 1263


This is a database error.

Can anyone help deal with this problem. It is the Committees on localhost
Title: Re: SimplePortal - 2.3.4 Released!
Post by: reefforum on December 08, 2011, 05:48:13 AM
Is there anyway to make font bold in recent posts/topics block?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on December 08, 2011, 10:37:23 AM
That could be done -- but you'd have to make a little change in index.css or portal.css

You would add a rule
.sp_recent_subject
{
    font-weight: bold;
}

And you would have to do this again every time you updated/upgraded Simple Portal (if you made the change in portal.css) or every time you updated your theme (if you made the change in index.css)
Title: Re: SimplePortal - 2.3.4 Released!
Post by: reefforum on December 08, 2011, 03:25:16 PM
I could swear I remember seeing a simple portal website with block in block.  is that possible?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on December 08, 2011, 03:36:11 PM
Yes. At simpleportal.net, there is a blog post from Sinan introducing the concept of  block in block.  And there are many posts about it in the custom coding and blocks boards. 
How did the CSS thing work out for you?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: reefforum on December 08, 2011, 03:40:53 PM
Thank you.  Found it.

css thing worked.  The issue is it made the post/topic AND the board info under it bold as well.  I was hoping to just make the post/topic bold to help it stand out.  I'm guessing this one would be hard to do, right?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on December 13, 2011, 04:37:40 PM
It is not completely impossible, but would take just a little more work.
You might like to add some extra HTML in the block's output -- that's found in PortalBlocks.php.  Then you would attache the new CSS to that new bit of HTML.  Something that would result in something like:
<span class="sp_subject">This is the subject of the post</span>
And the corresponding rule for .sp_subject in your CSS file would work.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: ozank on December 17, 2011, 04:15:10 PM
how do i enable portal mode?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: MC73 on December 18, 2011, 07:25:55 PM
     
    +
   
    Administration Center |
    Simple Portal l
    Configuration |
    General Settings

Title: Re: SimplePortal - 2.3.4 Released!
Post by: minos on December 19, 2011, 07:02:27 PM
after upgrade sp  i get this error 


8: Undefined index: can_make_article
Apply Filter: Only show the errors from this file
File: /home//////foro/Themes/default/GenericControls.template.php (main sub template - eval?)
Line: 129


how to fix it?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: GlitchPC on December 23, 2011, 03:42:25 PM
Has anyone, here, been able to embed Google's AdSense search results in a SimplePortal page?

If so...can you tell me how you did it?

I'm losing my hair over this.  I created a page and created the search box on my custom theme.  I then created an SP page and configured AdSense Search to display the results in that page.  I used HTML to create the SP page...and Google's Source code for the content.

Needless to say...whenever I do a search...it results in a page not found error.

However, outside my site...the Google Search works fine.  Any suggestions?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: JohnWayne999 on December 27, 2011, 07:27:20 PM
I'm using SMF 2.0.2 and SimplePortal 2.3.4
How do I empty or remove the welcome sign that says this?

QuoteWelcome to SimplePortal!

SimplePortal is one of several portal mods for Simple Machines Forum (SMF). Although always developing, SimplePortal is produced with the user in mind first. User feedback is the number one method of growth for SimplePortal, and our users are always finding ways for SimplePortal to grow. SimplePortal stays competative with other portal software by adding numerous user-requested features such as articles, block types and the ability to completely customize the portal page.

All this and SimplePortal has remained Simple! SimplePortal is built for simplicity and ease of use; ensuring the average forum administrator can install SimplePortal, configure a few settings, and show off the brand new portal to the users in minutes. Confusing menus, undesired pre-loaded blocks and settings that cannot be found are all avoided as much as possible. Because when it comes down to it, SimplePortal is YOUR portal, and should reflect your taste as much as possible.

Ultimate Simplicity
The simplest portal you can ever think of... You only need a few clicks to install it through Package Manager. A few more to create your own blocks and articles. Your portal is ready to go within a couple of minutes, and simple to customise to reflect YOU.

Install Friendly
With the ingenius design of install and update packages, SimplePortal is incredibly install and update friendly. You will never need any manual changes even on a heavily modified forum.

Incredible Theme Support
The simple but powerful structure of SimplePortal brings you wide-range theme support too. You can use SimplePortal with all SMF themes by just adding a button for it.

Professional Support
SimplePortal offers high quality professional support with its own well known support team.

I'd like to replace the text with something of my own. Which file do I access for it please?

Thanks.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Ozzie on December 27, 2011, 07:32:47 PM
go into admin and portal in blocks under top blocks look for a  block called welcome click the edit option you can do it there
Title: Re: SimplePortal - 2.3.4 Released!
Post by: BaghdadGhost on December 28, 2011, 12:02:07 AM
Hi all,

I am new to SP  :)

after I managed to install SP in SMF 2.0.2 I am facing this problem. when I enable portal the General category size changes. I tried to create a test category in order to determine what is causing the issue and the problem is the same. I also copied portal.css and portal_rtl.css to my  custom theme css folder but this did not solve the problem. I searched this site and simplemachine.org and did not find a similar problem or solution for it. I use ClearSky v2 theme for smf2. I know its a theme issue not any other thing because when I switch to default all is ok. I parsed SP package to see what modification the installation do to theme files and found out it only modify display.template.php

I would give a like to site but the portal is disabled now for many reasons but the main reason is this problem.

please see attached image for more clarification. also boardindex.template.php for the custom theme.


thank you
Title: Re: SimplePortal - 2.3.4 Released!
Post by: JohnWayne999 on December 28, 2011, 12:30:53 PM
Quote from: Ozzie on December 27, 2011, 07:32:47 PM
go into admin and portal in blocks under top blocks look for a  block called welcome click the edit option you can do it there

Hi Ozzie,

I can't find the welcome block.

Under admin -> simpleportal I have:

Information
General Settings
Block Settings
Article Settings


I went into General Settings and see these:
Portal mode
Maintenance mode
Standalone URL
Portal Theme
Disable colored links
Disable portal redirection
Disable colored bullets
Disable PHP validation
Disable side collapse
Resize images.

Then I looked in Block Settings, I see these:
Enable left side blocks
Enable right
Width of left side blocks
Width of right side blocks
Display blocks in forum
Hide blocks

Running out of options, I checked Article Settings, I see:
Enable articles
Maximum articles per page
Maximum characters
Display authors avatar.

Where is welcome block? Thanks.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: TheListener on December 28, 2011, 08:09:13 PM
Howdy Pardner

:D

Admin >> Simple Portal >> Blocks >> Block List
Title: Re: SimplePortal - 2.3.4 Released!
Post by: JohnWayne999 on December 29, 2011, 10:01:06 AM
Quote from: Haggis Hunter on December 28, 2011, 08:09:13 PM
Howdy Pardner

:D

Admin >> Simple Portal >> Blocks >> Block List

Ah I see it now. Thank you!
Title: Re: SimplePortal - 2.3.4 Released!
Post by: teos55 on December 29, 2011, 04:38:52 PM
SMF 2.0.2  Simple Portal 2.3.4  Default Theme


  Strange behaviour and difficult to explain :-)

 
Portal mode is set to : frontpage
So my index.php  is full of simple portal blocks ...

  Now, when I try to collapse some of the blocks by clicking (-) sign , does not work as designed.

Such as :

  The blocks after a designated block, also collapse with the selected one.

All blocks are collapseable by default, no restriction ... in simple portal


Searched through the forum but did not come up with a solution ...


Any guidance ...


nb.  it is not browser specific.  tried with chrome, FF and opera .  all same

Clearing cache doesnot help
Title: Re: SimplePortal - 2.3.4 Released!
Post by: reefforum on December 30, 2011, 11:11:10 PM
Could you guys please tell me how to correct this issue;
When I allow members to chose their own theme, the portal theme does not change.  The rest of the forum changes to their selected theme but not the portal.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: TheListener on December 30, 2011, 11:17:55 PM
Admin >> Simple Portal >> General Settings >> Maintenance Mode

This can be found on the list.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: BaghdadGhost on December 31, 2011, 01:20:39 PM
Quote from: BaghdadGhost on December 28, 2011, 12:02:07 AM
Hi all,

I am new to SP  :)

after I managed to install SP in SMF 2.0.2 I am facing this problem. when I enable portal the General category size changes. I tried to create a test category in order to determine what is causing the issue and the problem is the same. I also copied portal.css and portal_rtl.css to my  custom theme css folder but this did not solve the problem. I searched this site and simplemachine.org and did not find a similar problem or solution for it. I use ClearSky v2 theme for smf2. I know its a theme issue not any other thing because when I switch to default all is ok. I parsed SP package to see what modification the installation do to theme files and found out it only modify display.template.php

I would give a like to site but the portal is disabled now for many reasons but the main reason is this problem.

please see attached image for more clarification. also boardindex.template.php for the custom theme.


thank you

Edit: now what I did I installed a test forum, same version same theme without the list of mods. and I installed SP and all is ok.

all I need to know now which file do you think I need to take a look at or was effected by other mod that may causing the problem?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: BaghdadGhost on December 31, 2011, 05:07:13 PM
I got it. It is related to ads managements mod installing on custom theme. here is the problem.


if you parse the mod the second changes to boardindex.template.php is


<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';



add after



echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';



at the time of installing ads mod I was not able to locate the find, therefore I predicted and compared boardindex custom with default boardindex

I will contact the ads mod author to correct the installation for me.


thanks for all members cared enough to read my problem and just think of a possible solution.


thanks also for Sinan for bringing such a great modification and I will definitely have questions in the future lol  ;D
Title: Re: SimplePortal - 2.3.4 Released!
Post by: GlitchPC on January 01, 2012, 02:00:13 PM
Anyone?

http://www.simplemachines.org/community/index.php?topic=227599.msg3234294#msg3234294
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Extreme Trip on January 05, 2012, 05:46:44 PM
I apolegise if this is in the wrong section but I could really figure out where it should go... Basically ive installed the SimplePortal mod and i need to know how i can change the text at the top that says "Be sure to read the RULES or you may be sorry..."

could anyone help please? would be much apreciaited
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on January 06, 2012, 12:07:11 PM
Where does this text appear on your forum "Be sure to read the RULES or you may be sorry..."  I am unfamiliar with this.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: French on January 06, 2012, 12:24:41 PM
Quote from: Extreme TripBasically ive installed the SimplePortal mod and i need to know how i can change the text at the top that says "Be sure to read the RULES or you may be sorry..."
I remember the first time when you install SimplePortal this text appears. Go to blocklist.....you can modify,delete or deactivate this let say starting up text
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on January 06, 2012, 04:41:14 PM
When you first install simpleportal, you will find some blocks already in the blocks list.
You can change them or disable them.

One of them is the "Welcome" block -- a custom HTML block with the Welcome message
You can see this at
http://demo.simpleportal.net/index.php?action=admin;area=portalblocks;sa=edit;block_id=8;theme=1

(login first as user demo, pw demotest)

And you can change this message.

There is nothing in here about RULES, however...
Title: Re: SimplePortal - 2.3.4 Released!
Post by: swift1993 on January 09, 2012, 11:25:28 AM
how can i fix this on my forums i have 2.0.2
and i am using simportal 2.3.4 RC1
(http://img220.imageshack.us/img220/4462/93fc31c01d0c48d5aef00ed.png)
how do i fix this ? i think it has somthing to do with simpleportel.

i went to the simple portal rar/zip file and got the portal.css
and i did this to my theme

i went into css
(http://img97.imageshack.us/img97/2936/fadf6c99e77c406e816cab7.png)

i then put the portal.css in there like this
(http://img97.imageshack.us/img97/3057/85eed8a480f84657bbcd576.png)

is that right? or do i need to do somthing els
Title: Re: SimplePortal - 2.3.4 Released!
Post by: NanoSector on January 09, 2012, 11:47:05 AM
Quote from: swift1993 on January 09, 2012, 11:25:28 AM
how can i fix this on my forums i have 2.0.2
and i am using simportal 2.3.4 RC1
(http://img220.imageshack.us/img220/4462/93fc31c01d0c48d5aef00ed.png)
how do i fix this ? i think it has somthing to do with simpleportel.

i went to the simple portal rar/zip file and got the portal.css
and i did this to my theme

i went into css
(http://img97.imageshack.us/img97/2936/fadf6c99e77c406e816cab7.png)

i then put the portal.css in there like this
(http://img97.imageshack.us/img97/3057/85eed8a480f84657bbcd576.png)

is that right? or do i need to do somthing els
2.3.4 Final is released, maybe that fix your issue.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: swift1993 on January 09, 2012, 12:05:41 PM
Quote from: Yoshi2889 on January 09, 2012, 11:47:05 AM
Quote from: swift1993 on January 09, 2012, 11:25:28 AM
how can i fix this on my forums i have 2.0.2
and i am using simportal 2.3.4 RC1
(http://img220.imageshack.us/img220/4462/93fc31c01d0c48d5aef00ed.png)
how do i fix this ? i think it has somthing to do with simpleportel.

i went to the simple portal rar/zip file and got the portal.css
and i did this to my theme

i went into css
(http://img97.imageshack.us/img97/2936/fadf6c99e77c406e816cab7.png)

i then put the portal.css in there like this
(http://img97.imageshack.us/img97/3057/85eed8a480f84657bbcd576.png)

is that right? or do i need to do somthing els
2.3.4 Final is released, maybe that fix your issue.

i did say i am using that allready
Title: Re: SimplePortal - 2.3.4 Released!
Post by: NanoSector on January 09, 2012, 02:34:22 PM
Quote from: swift1993 on January 09, 2012, 12:05:41 PM
Quote from: Yoshi2889 on January 09, 2012, 11:47:05 AM
Quote from: swift1993 on January 09, 2012, 11:25:28 AM
how can i fix this on my forums i have 2.0.2
and i am using simportal 2.3.4 RC1
(http://img220.imageshack.us/img220/4462/93fc31c01d0c48d5aef00ed.png)
how do i fix this ? i think it has somthing to do with simpleportel.

i went to the simple portal rar/zip file and got the portal.css
and i did this to my theme

i went into css
(http://img97.imageshack.us/img97/2936/fadf6c99e77c406e816cab7.png)

i then put the portal.css in there like this
(http://img97.imageshack.us/img97/3057/85eed8a480f84657bbcd576.png)

is that right? or do i need to do somthing els
2.3.4 Final is released, maybe that fix your issue.

i did say i am using that allready
You said you were using RC1 of 2.3.4. Final is released now, that's higher then RC1.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on January 12, 2012, 04:41:47 PM
Installing 2.3.4 will fix this problem for most themes.
For some themes, which are CURVE like but not exactly CURVE, there is a little more work to be done.

There is an ongoing discussion about this at simpleportal.net.
apologies for slow response times, though.  The volunteers are all finding their time very restricted right now.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: cmarjeep on January 13, 2012, 02:22:25 AM
Does anyone know if it is possible to remove the text from above and below pictures in a gallery block? I have a block setup that rotates pictures from my Aeva media gallery. I just want it to show the thumbnails of the pictures though and not any of the other information like views, posted by, or in. Any suggestions?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Inti31 on January 15, 2012, 05:07:26 AM
Hello!

I just did a fresh install of the the new portal v2.3.4 on my new testforum (inti31.cwsurf.de, see also signature)
i also implemented the german language file v2.3.3.

The portal works fine - but i get this error in my log

8: Undefined index: 0
file: /home/www/cwcity/hosting/i/n/xxxxxx/htdocs/Themes/default/PortalArticles.template.php (portal_above sub template - eval?)
line: 85


I don't have any articles - maybe that's the reason?
line 85-87

echo '
<a href="', $scripturl, '?action=profile;u=', $article['poster']['id'], '"><img src="', $article['poster']['avatar']['href'], '" alt="', $article['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $article['message']['time'], ' ', $txt['by'], ' ', $article['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $article['topic']['views'], ' | ', $txt['sp-articlesComments'], ': ', $article['topic']['replies'], '</div>';




any idea how to fix this?

cheers, Inti31 (http://simpleportal.net/index.php?topic=10547.msg54389#msg54389)
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Dickstar on January 18, 2012, 10:16:22 AM
I too, am having the problem with the borders. I'm using the Personal theme by Neekiinh0.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on January 18, 2012, 01:29:05 PM
cmarjeep,

The gallery block is in PortalBlocks.php.  You an make any changes there. You'll want to call a different AEVA media routine, one that leaves out the information you don't want.

Init31,

If you don't want articles, why not disable articles? (still -- 0 articles should be handled more gracefully).
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Telechamus on January 23, 2012, 09:53:55 PM
Hi,

I was wondering how to increase the font size in just my shoutbox. Thanks
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on January 24, 2012, 02:27:47 PM
Telechamus -- you can do that in portal.css.

If you use IE's F12 developers tools or the Firebug for firefox, you can click on the shoutbox and see the classes used.
This will make it easy to add some rules for the smalltext used within the shoutbox.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Baloch on January 28, 2012, 03:24:50 AM
Hello there,

Since I have upgraded to sP 2.3.4 with SMF 2.0.2 my all visitors are getting redirection issue.
Today I have freshly installed SMF 2.0.2 within new folder. added all packages from old forum and installed one by one.
I have following packages.
1.   SimplePortal    2.3.3   [ List Files ] [ Delete ]
2.   Users Online Today    1.6.0 RC2     [ Uninstall ] [ List Files ] [ Delete ]
3.   Aeva Media    2.10     [ Uninstall ] [ List Files ] [ Delete ]
4.   SimplePortal    2.3.4     [ Uninstall ] [ List Files ] [ Delete ]
5.   SMF Links    2.3.2     [ Uninstall ] [ List Files ] [ Delete ]

no any error appeared at the time of installation.
as I uninstalled SP 2.3.3 then after installed SP 2.34 my SP page is only showing ARTICLES and missing all other blocks (left, right, header, footer, top, bottom)

Please advice what to do?
Looking forward for your prompt response
Raji Baloch
Title: Re: SimplePortal - 2.3.4 Released!
Post by: davidhs on January 29, 2012, 02:49:49 PM
I attach package for Spanish translation of SimplePortal 2.3.4 (based of translation 2.3.3 + new strings)

Edit: Some string was incorrect. I correct these in new attachment.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on January 30, 2012, 09:33:37 AM
Baloch,
This is a very surprising thing. When you uninstall simple portal, and re-install a new version, all the blocks should remain the same.

It is possible that there is a bug. Another user has reported a similar problem, related to block permissions.
http://simpleportal.net/index.php?topic=10369.msg54233;topicseen#new

In your blocks list, you should be able to set the display options for each block, to control where the block will be showing up.
Please try with one block and see if you can make the block show where you would like to see it.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Babadinho on January 31, 2012, 02:53:52 PM
how to disable simple portal from adk blog.... :(
Title: Re: SimplePortal - 2.3.4 Released!
Post by: davidhs on February 01, 2012, 11:31:48 AM
Quote from: davidhs on January 29, 2012, 02:49:49 PM
I attach package for Spanish translation of SimplePortal 2.3.4 (based of translation 2.3.3 + new strings)

Edit: Some string was incorrect. I correct these in new attachment.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on February 01, 2012, 12:56:42 PM
davidhs, Thanks for the translation.  I have notified the team at http://www.simpleportal.net  I hope someone will be able to evaluate it soon.

Thank you!
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Fed Drago on February 02, 2012, 09:34:46 AM
It appears that I can not uninstall 2.3.4 RC1  from 2.02 Simple machine version without getting this error.

QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Uninstall Actions "SimplePortal"
Remove all data associated with this modification. [Details]
Installing this package will perform the following actions:
      Type    Action    Description
*    1.    Execute Modification    ./index.php    Test failed
      1.    Replace    ./index.php    Test failed
      2.    Replace    ./index.php    Test successful
      3.    Replace    ./index.php    Test successful

Simple Machine then give me error code with white screen and I can not do anything. Its a good thing that I back up LOL

Suggestions please

Cheers
Fed
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on February 02, 2012, 11:16:02 AM
It sounds like you have installed something since you installed Simple Portal, and this makes it difficult to run the uninstaller for Simple Portal.  This is a common problem when more than one mod is changing the same part of an SMF file.

One way to get around this problem is to uninstall all mods in reverse order that you installed them, until you come down to Simple Portal. If the install worked in that order, then the uninstall should work in the reverse order.

Another, more complicated option, involves the manual install instructions that you can find using the little pencil icon on each of the failed tests (as well as on the customize website -- http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=190525;smf_version=2.0.2).  Although this is not strictly a SimplePortal problem, there is some documentation of this at the Simple Portal website: http://simpleportal.net/index.php?action=docs;area=solving_install_problems


I am not certain what caused the white screen.  Did you attempt the uninstall despite the errors?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Fed Drago on February 02, 2012, 05:35:04 PM
Quote from: AngelinaBelle on February 02, 2012, 11:16:02 AM
It sounds like you have installed something since you installed Simple Portal, and this makes it difficult to run the uninstaller for Simple Portal.  This is a common problem when more than one mod is changing the same part of an SMF file.

One way to get around this problem is to uninstall all mods in reverse order that you installed them, until you come down to Simple Portal. If the install worked in that order, then the uninstall should work in the reverse order.

Another, more complicated option, involves the manual install instructions that you can find using the little pencil icon on each of the failed tests (as well as on the customize website -- http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=190525;smf_version=2.0.2).  Although this is not strictly a SimplePortal problem, there is some documentation of this at the Simple Portal website: http://simpleportal.net/index.php?action=docs;area=solving_install_problems


I am not certain what caused the white screen.  Did you attempt the uninstall despite the errors?

Problem solved  :)

I used the webupdate here from SMF and after the program finished all my Mods where uninstalled for me. I then installed the 2.3.4. new final version and bingo it installed like a dream.

Thank you for your help.
Cheers
Fed
Title: Re: SimplePortal - 2.3.4 Released!
Post by: pixeleyes on February 03, 2012, 01:44:57 AM
How to change topic color in recent post and top boards blocks?

I want separate color than default board text color.

SMF 2.0.1
SP 2.3.3
Title: Re: SimplePortal - 2.3.4 Released!
Post by: BCK on February 04, 2012, 08:33:26 PM
hi..can someone tell me where to set and or how to use the ignore or whisper etc in the shout,,,I set up the shoutbox from the simpleportal andf see no way to use or set any features
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Chen Zhen on February 04, 2012, 08:41:13 PM
Quote from: BCK on February 04, 2012, 08:33:26 PM
hi..can someone tell me where to set and or how to use the ignore or whisper etc in the shout,,,I set up the shoutbox from the simpleportal andf see no way to use or set any features

Hello Mr. BCK!
For whispering...
@Username: pssst.. yada yada
Title: Re: SimplePortal - 2.3.4 Released!
Post by: BCK on February 04, 2012, 08:50:10 PM
hey...thx...how you been
didnt work..all can still see?
you still have ASK???
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Chen Zhen on February 04, 2012, 09:00:43 PM
Quote from: BCK on February 04, 2012, 08:50:10 PM
hey...thx...how you been

Gingerface, baby & I are doing well!  ;)  I hope all is well with you & the family.
.. looking for my p/w to your site now to  pay a visit..
yes.. follow the link in sig or the globe to the left.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on February 08, 2012, 10:56:15 AM
pixeleyes -- have a look at the block styling features.  You can add something specific like background-color in that way.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: jenny loo who?! on February 20, 2012, 06:57:36 PM
So, I have a small issue. When I use the html tag in a post, simple portal goes all wonky. I will attach an image to show you what I mean. How do I fix that?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Robert. on February 21, 2012, 03:00:21 AM
Can you post the full code you're using in that block?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: jenny loo who?! on February 21, 2012, 03:51:19 AM
[html]<table style="text-align:center;margin: 5px auto;"><tr><td>
<div style="font-size: 40px; font-family: arial black; text-transform: uppercase; letter-spacing: 4px; padding:-5px;margin-right:10px;margin-left:10px;">MALES</div>
<br>
<div style="background:#eee; text-align:center;-moz-border-radius:20px; -webkit-border-radius:20px; margin:10px;padding:10px 5px;font-size:10px;width:230px;">

<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">ABCD</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">EFGH</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">IJKL</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">MNOP</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">QRST</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">UVWX</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">YZ</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />

</div></td><td>
<div style="font-size: 40px; font-family: arial black; text-transform: uppercase; letter-spacing: 4px;margin-bottom:-5px;margin-left:10px;margin-right:10px;padding:-5px;">FEMALES</div>
<br>
<div style="background:#eee; text-align:center;-moz-border-radius:20px; -webkit-border-radius: 20px; margin:10px;padding:10px 5px; font-size:10px;width:230px;">

<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">ABCD</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">EFGH</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">IJKL</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">MNOP</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">QRST</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">UVWX</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">YZ</div><br>
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />
&raquo; <b>LAST NAME,</b> first --- Character Name<br />

</div></td></tr>

<tr><td colspan="2"><div style="background:#eee; text-align:center;-moz-border-radius:20px; -webkit-border-radius: 20px; margin:10px;padding:10px 5px; font-size:10px;"><center>TEMPLATE BY <a href="http://twitter.com/designsbyrevo" style="text-decoration:none;">Revo.</a> of <a href="http://z10.invisionfree.com/A_THOUSAND_FIREFLIES/index.php?showuser=2133" style="text-decoration:none;">ATF</a>  & <a href="http://rpg-directory.com/index.php?showuser=6066" style="text-decoration:none;">RPG-D</a>!</center></div>
<td></tr></table>
[/html]


That is all it is.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Inti31 on February 21, 2012, 05:25:02 AM
hmmh - i tried that in my testforum (http://inti31.cwsurf.de/) - but I used that topic as article... - it looks well...




okay - it will work only when the article character limit is set to 0 - if you set a value (e.g. 300) it looks not good...
Title: Re: SimplePortal - 2.3.4 Released!
Post by: MrCreatoR on February 22, 2012, 07:01:07 AM
When you try to visit a deleted topic on the forum, you get this error:

Fatal error: Call to undefined function sp_embed_image() in /forum/full/path/Sources/Load.php(2284) : eval()'d code on line 233

Any ideas on how to fix it?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: NanoSector on February 22, 2012, 08:52:10 AM
Quote from: MrCreatoR on February 22, 2012, 07:01:07 AM
When you try to visit a deleted topic on the forum, you get this error:

Fatal error: Call to undefined function sp_embed_image() in /forum/full/path/Sources/Load.php(2284) : eval()'d code on line 233

Any ideas on how to fix it?
How can you even visit a deleted topic? ???
Or do you have a recycling board?

Also, if you are still running SMF 2.0 RC1.2, you should upgrade to 2.0.2 straight away.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: MrCreatoR on February 22, 2012, 10:27:34 AM
Yoshi2889 [?] (http://www.simplemachines.org/community/index.php?topic=227599.msg3279895#msg3279895)
QuoteHow can you even visit a deleted topic?
By link from old topic.

QuoteOr do you have a recycling board?
And thats also, but this is happening even if the topic is deleted from recycle board.

Quoteif you are still running SMF 2.0 RC1.2, you should upgrade to 2.0.2 straight away.
If that was so simple...

Btw, my SimplePortal version is 2.2, could you please help me with my issue?

P.S.
I am currently recreating my forum base on SMF 2.0.2, and installed latest SP, i have not this kind of issue there, but meantime, while i am at the updating process, i wanted to solve this issue on the old (current) forum.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on February 22, 2012, 03:14:01 PM
Mr. Creator:

The problem seems like it could be caused by a custom php block which is used on the page where the "topic has been deleted or is off-limits to you" message is shown.  I am guessing this because of the reference to eval'd code.

Please give a sample URL where you see the problem.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: MrCreatoR on February 22, 2012, 05:44:04 PM
AngelinaBelle [?] (http://www.simplemachines.org/community/index.php?topic=227599.msg3280206#msg3280206)
QuotePlease give a sample URL where you see the problem.
http://autoit-script.ru/index.php/topic,8915.0.html
But i suppose you will see the login box instead.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on February 23, 2012, 12:26:34 PM
Yes -- just a login box. If you create a temporary account for me, I will be happy to look.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: MrCreatoR on February 23, 2012, 03:07:36 PM
AngelinaBelle
Sent to PM.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on February 23, 2012, 05:14:38 PM
First, I went to
http://autoit-script.ru/index.php/

I copied the HTML from that page to http://validator.w3.org/#validate_by_input
There were very many errors.  I would recommend you work on reducing the number of HTML errors on the page.

Then I went to http://autoit-script.ru/index.php/topic,8915.0.html and saw exactly the error you described.
I see that this does not seem to be related to any simple portal block.

Can you share with me your file Load.php, so I can be sure what is on line 2284?
That function sp_embed_image should be found in the file Subs-Portal.php. Do you have the file Subs-Portal.php?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: MrCreatoR on February 24, 2012, 03:37:44 AM
[?] (http://www.simplemachines.org/community/index.php?topic=227599.msg3281040#msg3281040)
QuoteCan you share with me your file Load.php, so I can be sure what is on line 2284?
Attached.

QuoteThat function sp_embed_image should be found in the file Subs-Portal.php. Do you have the file Subs-Portal.php?
I have Subs-SPortal2.php, and the function sp_embed_image is there.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on February 24, 2012, 08:15:37 AM
This problem occurs while loading a template for this page, when the topic is gone ($txt[''topic_gone'])
I cannot understand why this is a problem only when viewing a deleted topic.
It would be a little bit tricky to figure this out.

My advice is that it would probably be easier to upgrade your SMF and your SimplePortal than to figure out the reason for this problem.
If I were going to try to figure this out, I would start putting some debugging statements into Load.php.
Before line 2284, I would put in

echo '<br />
function template_include evaluating file ', $filename, '
<br />';

Then I would see what I could learn, and try to follow the problem from there, probably to line 233 of $filename.
I would work this way because I am not very experienced with SMF and its templates.
Someone with more experience might get to the bottom of the problem more quickly.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: MrCreatoR on February 24, 2012, 06:43:31 PM
AngelinaBelle

Thank you very much!

Found the problematic line of code, in index.template.php:
Quote<li>', sp_embed_image('dot'), ' <strong><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></strong></li>

Then i figured out that there is no mention of that function in this php, and it should be read from Subs-SPortal2.php. So i added require_once($sourcedir . '/Subs-SPortal2.php'); to the beginning of the php and the error is gone, but there is still some bug with reading the images of the dots, because $settings['sp_images_url'] for that php is empty for some reason.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: MrCreatoR on February 24, 2012, 07:07:44 PM
Ok, the issue with dots fixed by replacing $settings['sp_images_url'] . '/' with $settings['images_url'] . '/sp/'. And also there was a text strings issue, also fixed by adding loadLanguage('SPortal'); to the php.


P.S.
I know all this is temporary and lame solutions, but atm it's all i need, until i update the forum.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: edcplanet on February 27, 2012, 01:59:59 PM
Is there a way to have the "Recent Image Attachment" block provide a link to the post where the images are attached to?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on February 28, 2012, 12:55:03 PM
MrCreatoR:

I'm glad you found it.  Make sure, when you do upgrade, that you allow the package manager to edit your theme files.
If the install fails for some of your custom themes, you should be able to take careful notes of the failed sections, and make the additional changes by hand.  It will amount to the same sort of editing you've done already, but the information on which files, what needs to be added, and approximately what you should be looking for to find the correct spot to add it too should speed things up considerably.

edcplanet:
Yes -- if you customize the php code for the block.
You would want to change the code in function sp_attachmentImage, in PortalBlocks.php. You would want to sneak $item['topic']['link'] into the output somewhere. 

How did I know $item['topic']['link']  would be available to you?  I looked in the file SSI.php, in the function ssi_recentAttachments (which you can see sp_attachmentImage calls to get all the information it puts out), to see all the stuff it stuffs into the $attachments array.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: distante on March 08, 2012, 01:21:22 PM
I have a problem loading with the titles in the portal, I think the words won't be enough, see : http://www.musicaysonido.com/foro/index.php

For some reason, the portal isn't load the sprites images...

I'm using this theme : http://custom.simplemachines.org/themes/index.php?lemma=2437, recently updated 2.0.2 smf

Any Ideas?

Pd: just in case, I copied the portal.css and portal_rtl.css files into my theme css dir.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on March 09, 2012, 02:09:41 PM
distante -- I have replied to your post at simpleportal.net.

In essence -- your theme is almost, but not quite, compatable with SimplePortal.  This is because it does not keep all of its files in main_block.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: netpaydays on March 10, 2012, 12:05:55 AM
Just a couple questions regarding this mod. My php skills are elementary.


What is the purpose of the SPortal.php  file? Is this where the individual scripts are written to make the mod work?

and

What is the purpose of the SPortal.template.php file? Is this the file that   formats the page layout?  (i.e.  where you can move blocks around and edit them)?


I learn code by trial and error.  In your opinion, would it be difficult for a beginning PHP coder to change the random gallery script to display recent attached images that are attached to posts?

thanks again for your fine work with this mod
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Exodus111 on March 11, 2012, 07:42:06 AM
I would love to see some examples of SMF simplePortal sites out there.

-Exo
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Suki on March 11, 2012, 09:31:41 AM
The SimplePortal own site is an example for itself: simpleportal.net, they have a showcase board too.
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Angelina Belle on March 12, 2012, 02:22:16 PM
netpaydays -- I would answer "Yes" to all three of your questions.
I would also add that there are several SimplePortal files in your sources directory.
And additional simpleportal template files in your theme directory.

Making that kind of change would not be too difficult.
I would start in PortalBlocks.php.
You will see that the gallery block calls code from the gallery mod itself. Exactly how to make the change you want -- you need to look at the gallery mod itself for how to do it.

Others have done similar things, and posted about it at simpleportal.net.  You might find something interesting by doing a little search there.

Best of Luck!
Title: Re: SimplePortal - 2.3.4 Released!
Post by: Trim4 on March 18, 2012, 05:31:22 PM
how do you make the wrapper 50% transparent?
Title: Re: SimplePortal - 2.3.4 Released!
Post by: TheListener on March 18, 2012, 05:41:31 PM
Quote from: Exodus111 on March 11, 2012, 07:42:06 AM
I would love to see some examples of SMF simplePortal sites out there.

-Exo

As Suki has said on www.simportal.net we have a Showcase board where you can see other users Portals.

You can see mine at www.broadstarradio.com
Title: Re: SimplePortal - 2.3.4 Released!
Post by: simon36 on March 19, 2012, 01:47:41 PM
Doesn't seem to work with SMF 2.2? Fails the pre-install test in Sources/Subs.php
Title: Re: SimplePortal - 2.3.4 Released!
Post by: TheListener on March 19, 2012, 02:32:57 PM
Quote from: simon36 on March 19, 2012, 01:47:41 PM
Doesn't seem to work with SMF 2.2? Fails the pre-install test in Sources/Subs.php

Simple Portal does work on 2.0.2

Have a look at the Mod Emulation link in my signature.
Title: Re: SimplePortal - 2.3.4, 2.3.5 RC1 Released!
Post by: SimplePortal Team on March 20, 2012, 01:18:39 PM
SimplePortal 2.3.5 RC1 Released! (http://simpleportal.net/index.php?topic=10892.0)

Quote
The SimplePortal Team has been hard at work for the last several weeks developing the next version of SimplePortal, 2.3.5, code-named "railgun"! This release fixes the unfortunate bugs that slipped into 2.3.4 version.

Since we would like to have a wider testing and more feedback for our new version, in order to provide you the most stable product possible, we have decided to make our release candidate public. This means you can download the upcoming version now, test and report the bugs.

However, please note that: There will be no install/upgrade/uninstall support provided for/from RC1 version. Although this is a stable version, we strongly advise against using this package on your live forums. This package is only for testing purposes.

One important thing to note is that with this version, SMF 2.0 Beta and RC versions support is dropped. That means, SimplePortal 2.3.5 will only support SMF 2.0, 2.0.1, 2.0.2 and all versions of SMF 1.0 and SMF 1.1 line, including SMF 1.1.16.

For those who are wondering, here's some of the fixes included in this version:

  • Full SMF 2.0.2 and 1.1.16 compatibility
  • Broken header bars in custom themes
  • Undefined indexes caused by feed parser
  • Custom permissions being reset on preview
  • Page blocks being reset in some cases
  • Shoutbox requests not updating user logs
  • Parsed content in tag parameters breaking BBC parsing
  • Several fixes to the layout and spacing
Your feedback is welcome here and in the related topics in Team Blogs (http://simpleportal.net/index.php?board=60.0) board. Please post any bugs to the Bugs (http://simpleportal.net/index.php?board=3.0) board.

You can download the package from Beta Packages (http://simpleportal.net/index.php?action=downloads;area=stable_beta_packages) category in Downloads (http://simpleportal.net/index.php?action=downloads) area.

Thanks,
-The SimplePortal Team
Title: Re: SimplePortal - 2.3.4, 2.3.5 RC1 Released!
Post by: impreza on March 20, 2012, 06:57:04 PM
Very well done. I'm proud of you
Title: Re: SimplePortal - 2.3.4, 2.3.5 RC1 Released!
Post by: ishy on March 24, 2012, 06:04:14 PM
The menu titles don't seem to be fixed by uploading portal.css to the theme anymore: http://www.technochicks.net/forum/index.php

Do I need to do something else now?
Title: Re: SimplePortal - 2.3.4, 2.3.5 RC1 Released!
Post by: TheListener on March 24, 2012, 06:16:08 PM
Quote from: ishy on March 24, 2012, 06:04:14 PM
The menu titles don't seem to be fixed by uploading portal.css to the theme anymore: http://www.technochicks.net/forum/index.php

Do I need to do something else now?

The portal is now on version 2.3.5 RC1 whereas you are still using 2.3.3
Title: Re: SimplePortal - 2.3.4, 2.3.5 RC1 Released!
Post by: NanoSector on March 24, 2012, 06:37:43 PM
Quote from: ishy on March 24, 2012, 06:04:14 PM
The menu titles don't seem to be fixed by uploading portal.css to the theme anymore: http://www.technochicks.net/forum/index.php

Do I need to do something else now?
This was fixed in version 2.3.4, as Old Fossil said, time to update.
Title: Re: SimplePortal - 2.3.4, 2.3.5 RC1 Released!
Post by: TheListener on March 24, 2012, 06:42:31 PM
Quote from: Yoshi2889 on March 24, 2012, 06:37:43 PM
Quote from: ishy on March 24, 2012, 06:04:14 PM
The menu titles don't seem to be fixed by uploading portal.css to the theme anymore: http://www.technochicks.net/forum/index.php

Do I need to do something else now?
This was fixed in version 2.3.4, as Old Fossil said, time to update.

parrot :P
Title: Re: SimplePortal - 2.3.4, 2.3.5 RC1 Released!
Post by: NanoSector on March 25, 2012, 05:41:21 AM
Quote from: Old Fossil on March 24, 2012, 06:42:31 PM
Quote from: Yoshi2889 on March 24, 2012, 06:37:43 PM
Quote from: ishy on March 24, 2012, 06:04:14 PM
The menu titles don't seem to be fixed by uploading portal.css to the theme anymore: http://www.technochicks.net/forum/index.php

Do I need to do something else now?
This was fixed in version 2.3.4, as Old Fossil said, time to update.

parrot :P
Just sayin' how many versions the user is behind and when it was fixed ;)
Title: Re: SimplePortal - 2.3.4, 2.3.5 RC1 Released!
Post by: Angelina Belle on March 26, 2012, 01:10:44 PM
On a production forum, I would not recomend Simple Portal 2.3.5 RC1.
Depending on your theme, Simple Portal 2.3.4 may or may not fix the problem.

That said, I think that 2.3.5 will fix your problem.  so I would recommend either testing 2.3.5 RC1 on a TEST version of your forum, or hanging tight until 2.3.5 comes out.  The changes in 2.3.5 should prove compatable with almost any CURVE (SMF 2.0 final version) -like theme.

If this turns out not to be the case, we can try to help you make accomodations.
Title: Re: SimplePortal - 2.3.4, 2.3.5 RC1 Released!
Post by: Adrek on March 26, 2012, 01:38:46 PM
Hi
Today I had a small problem with proper settings in field "Custom Display Options".
There is one block that is visible only in one board, but SP displays it also in topics in this board, so what I have to add there to display this block only in message index in this one board?

SMF 2.0.2
SP 2.3.4
Title: Re: SimplePortal - 2.3.4, 2.3.5 RC1 Released!
Post by: [SiNaN] on March 27, 2012, 04:15:15 AM
This would probably work as Custom Display Option:

~board|1234,-~topic,-~action

Change 1234 as the id of the board.
Title: Re: SimplePortal - 2.3.4, 2.3.5 RC1 Released!
Post by: Adrek on March 27, 2012, 04:22:43 AM
Thanks ;)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: SimplePortal Team on March 27, 2012, 10:03:07 AM
SimplePortal 2.3.5 Released! (http://simpleportal.net/index.php?topic=10941.0)

Quote
The SimplePortal Team is happy to announce the release of SimplePortal 2.3.5, code-named "Railgun!" This release includes fixes for the bugs found in the 2.3.4 version, and features full SMF 2.0.2 and 1.1.16 compatibility.

We urge all users to upgrade to SimplePortal 2.3.5 as soon as possible to take advantage of the bug fixes. A full list of changes for 2.3.5 can be found in the changelog.txt file within the SimplePortal package, but the major fixes are:[cutoff]

  • Broken header bars in custom themes
  • Undefined indexes caused by feed parser
  • Custom permissions being reset on preview
  • Page blocks being reset in some cases
  • Shoutbox requests not updating user logs
  • Parsed content in tag parameters breaking BBC parsing
  • Several fixes to the layout and spacing
Unfortunately, there is no auto-upgrade option from 2.3.4 to 2.3.5 due to the number of changes. So, if you are running 2.3.4 or an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.

  • Uninstall SimplePortal.
  • Download SimplePortal 2.3.5. (http://simpleportal.net/index.php?action=downloads;area=stable_simpleportal_packages;file=118;download)
  • Install SimplePortal 2.3.5, and you are ready to go!
Finally, please do not use this topic for any support requests. You will get a much more prompt response by posting in Install and Upgrade (http://simpleportal.net/index.php?board=54.0) board.

Thanks for all your support, and keep those bug reports and feature requests coming!
-The SimplePortal Team
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Ashley S on March 27, 2012, 10:03:44 AM
Congratulations on the new release ;).
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on March 27, 2012, 10:19:29 AM
SMF 2.0.2  SP2.3.4

  Tried to uninstall SP 2.3.4.  Failed in two php

./index.php  and ./sources/querystring.php       (caused by other mods, which is normal)

So saved these 2 php files, parsed  and pressed uninstall ...

Got:
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Restoring original ./index.php  in the first attempt and then /sources/querystring.php  didnt solve. 
So, I think manualy modifying these files with parse statements didnot cause the problem.


Site is down.

Please help.


Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 27, 2012, 10:27:48 AM
Hello teos555,

This is frustrating, but might be easily solved.  Since you did nothing but edit-and-ftp, I am going to suppose that the problem is caused by CHMOD or CHOWN problems.  Here are some questions:
* Who is your host?
* What is the ownership and permission information of the files you just edited-and-ftp'd? (FTP can show you this information)
* What is the ownership and permission information of files that you did not recently touch, in the Sources directory, for example?

Getting your files back to permission and/or ownership settings that are OK for the way your host has set up the web service could make all the difference.

---------------------

An easier way to handle this is often to uninstall mods in the reverse order that you installed them. Then uninstall and delete 2.3.4, then reinstall the other mods. Then install SP 2.3.5. You can try this the next time you have a mod update.


Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on March 27, 2012, 10:38:33 AM
Hi AngelinaBelle,

  Thanks for yoru suggestions.  I've done this process several times with other mods, so I'm sure that the permissions are OK.
I cannot check it now, since I'm in the process of restoring the backup.

  Most probably it occured in load.php ( which is heavily modified by other mods) , but cannot be proved. 
  Uninstalling other mods is not an easy step since I have so many mods installed. SP 2.3.4 is the first mod that was installed :-)

Only solution can be manual (carefull) uninstall of SP 2.3.4  after the restore.

thanks again.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: GlitchPC on March 27, 2012, 10:46:11 AM
Uninstall for SP 2.3.4 was harder than the upgrade to 2.3.5.  Backed up the database...and made sure I didn't check the box labeled, "Remove all data associated with this modification".  There were only two files that needed to be manually edited prior to uninstall...index.php and Sources/Who.php.  Mind you...these were small edits and the reason the code wasn't found in the first place was due to other installed modifications.

The upgrade to 2.3.5 was "quick" and "painless"...


Thanks for the upgrade!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: [SiNaN] on March 27, 2012, 11:06:49 AM
Yeah, unfortunately there are some conflicts with the SMF Project Tools mod. I had to uninstall that mod before I could uninstall the old version of SimplePortal and install the new one over at simpleportal.net.

By the way, if you remove the portal.css file in your custom theme's directory, your portal should look better. It's using an outdated CSS file which results in problems with spacing between blocks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: GlitchPC on March 27, 2012, 11:10:27 AM
Quote from: [SiNaN] on March 27, 2012, 11:06:49 AM
Yeah, unfortunately there are some conflicts with the SMF Project Tools mod. I had to uninstall that mod before I could uninstall the old version of SimplePortal and install the new one over at simpleportal.net.

By the way, if you remove the portal.css file in your custom theme's directory, your portal should look better. It's using an outdated CSS file which results in problems with spacing between blocks.

I just removed the file...personally, I don't notice a difference.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: [SiNaN] on March 27, 2012, 11:14:06 AM
Maybe you need to do a hard refresh (Ctrl+F5) on your browser.

Also, the "style" attribute of the last <img> tag in your "Follow Us!" block seems to be left open.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: GlitchPC on March 27, 2012, 11:19:16 AM
How does it look now?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: [SiNaN] on March 27, 2012, 11:38:30 AM
It looks okay now, yeah.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: GlitchPC on March 27, 2012, 11:42:30 AM
Thanks, [SiNaN]...
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 27, 2012, 02:13:38 PM
teos55,

These 500 errors are always for such mysterious reasons.  I have had them for setting file and directory permissions TOO HIGH.
Good luck solving this. It is not directly related to Simple Portal, and perhaps not even so SMF...
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on March 27, 2012, 02:28:03 PM
 Thanks AngelinaBelle,

I faced another problem during backup/restore : http://www.simplemachines.org/community/index.php?topic=472332.0

I also suspect that, this is neither SP2.3.4 issue nor SMF.  Sure mine :-)))

I'll try the solution K@ has provided and feedback.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on March 27, 2012, 02:34:22 PM
Solution provided by K@ has solved my issue with packages installed.  Now, my system is like before ..

Will begin the uninstall process of SP 2.3.4 shortly :-)  Taking necessary precautions ...
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on March 27, 2012, 02:55:57 PM
Angelinabelle ,

   Restarted uninstall process of SP 2.3.4  failed as before in ./index.php and ./Sources/Querystring.php

My question is ;

the very first one of 1 of 6 steps in ./index.php fails and
2 of 4 steps in /Sources/QueryString.php

What is your recommendation, should I continue to uninstall process and remove the above mentioned php lines manualy afterwards ?

Your help will be appreciated.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: NanoSector on March 27, 2012, 03:02:17 PM
Though I'm not AngelinaBelle (heh), I'd recommend removing the code afterwards. Never do it beforehand, because if you failed to do it successfully it will crash the forum. Heck it even will afterwards but not that much.

Anyway, what's important is that you should remove the lines afterwards :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 27, 2012, 03:08:04 PM
Normally, I would uninstall ALL MODS in reverse order that they were installed until I came to simple portal, then uninstall and delete 2.3.4, then reinstall the others in the same order they are listed. Then install 2.3.5. 
This saves me the inevitable manual errors.

Alternatively, you can do as you suggested.  You can use the little icons to show EXACTLY where the failure is, hunt it down, make careful notes on what you need to do by hand, then uninstall via package manager and do the remaining edits yourself.  Only 2?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 27, 2012, 03:08:24 PM
Yoshi is correct, too.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on March 27, 2012, 03:16:20 PM
   Hımm,  crossing fingures and going the Yoshi's way, because the other method of removing all the mods till to sp 2.3.4 means
removing maybe 20 mods, and I'm sure they will fail in some way / somehow :-)))
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 27, 2012, 03:33:05 PM
If the went in OK, with no manual edits, they will go out ok.  If you had to make manual edits, then you are correct.
Yoshi's way will be easier.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: David111567 on March 28, 2012, 12:54:39 AM
upgraded on two of my sites....

and now my members cannot get into their blogs...

we use Adk Blog mod.  When I installed the new SP...this mod crashed.  Cannot locate problem.  Members are annoyed.

Suggestions?

David
Title: Re: SimplePortal - 2.3.5 Released!
Post by: NanoSector on March 28, 2012, 07:49:15 AM
Sorry, I think you'll have to fight with the ADK team for that, as Simple Portal is working correctly.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 28, 2012, 10:45:45 AM
Did the ADK blog mod get along OK with previous Simple Portal versions?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on March 28, 2012, 02:27:21 PM
Quote from: teos55 on March 27, 2012, 03:16:20 PM
   Hımm,  crossing fingures and going the Yoshi's way, because the other method of removing all the mods till to sp 2.3.4 means
removing maybe 20 mods, and I'm sure they will fail in some way / somehow :-)))


  Unfortunately, Yoshi's way didnot solve the problem.
Continued uninstall process.
modified /index.php  and /sources/querystring.php  afterwards

internal server error 500  comes up ....

I faced this problem before with file permissions, checked all the files one by one, all with proper permissions ...

if it is really a permission problem, why should uninstall process of sp 2.3.4 cause this ?  Wierd ...

Now, I'm stuck.  I had installed and uninstalled so many mods while sp2.3.4 active but never faced a problem ...

Any guidance ?  Sure,  removal of lines and files by sp2.3.4 uninstall process is causing this, but i cannot debug ...

To follow Angelinabelle's way, I have to remove 38 mods, (since sp 2.3.4 is the first one after smf 2.0.2 base code), which is not an easy job to do ...


Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 28, 2012, 02:39:17 PM
At this point, I would suggest checking file ownership, and checking with your host.
It would seem that something is different between having the package manager do things, and having you copy the file down to your desktop, edit it, and copy it back up via FTP.

It could be important to find out what is the difference. 
What permission did you set on the offending file right before it started throwing the 500 error? 644 should be sufficient permission.
http://simpleportal.net/index.php?action=docs;area=solving_install_problems
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on March 28, 2012, 02:59:07 PM
All dirs have 755  and files 644 permissions.

  Maybe I should attach ./index and /Sources/querystring.php for a soul guy to modify them according to parse instr of sp2.3.4
for me.
  Appreciate if someone should help me .. 


nb. the result of sp 2.3.4  process also attached

Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 28, 2012, 03:09:40 PM
I bet you did it correctly. But even a very bad typo would not cause a 500 error.
You have to make the server plenty angry to get one of those.
Who owns the "bad" files? who owns the other files?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: David111567 on March 28, 2012, 03:10:48 PM
Quote from: AngelinaBelle on March 28, 2012, 10:45:45 AM
Did the ADK blog mod get along OK with previous Simple Portal versions?

Yes, it was being used alongside SP for well over a year.  The last SP upgrade ( 2.3.4 ) went smooth as far as the blog mod was concerned.  This time...however, (2.3.5) it wiped out the blog mod, basically crashing it.  No other areas of the sites, so far, seem to be effected....SP is working fine.   I've tossed it up on a few test sites since my last post and it seems that ther's no coincidence here....the sp upgrade really is causing the ADK Blog mod to crash. 

The simple solution is to uninstall the ADK blog....then reinstall it and all is FINE, the blog mod works again...except that it wiped out all the blogs our members created in the last year when I did that.  So...now I know that when I upgrade SP on my other sites, I have to do the following (you might want to pass this on to others as well) :

1. backup ADK Blog Mod data from SQL Database

2. Uninstall ADK Blog Mod

3. UPGRADE Simple Portal as instructed.

4. Reinstall ADK Blog Mod

5. Restore ADK Blog Mod entries to SQL Database from backup.

This will work.  Don't know why the upgrade is doing this, but it's a minor issue compared to NOT having SP at all, which, if given the choice, I would rather have my favorite portal than the blogs anyway.  But if you follow these steps, you won't have to choose because they still work fine together with no issues once the upgrade is done.  :-)

Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 28, 2012, 03:20:58 PM
It is not surprising that uninstall/install might be required.

But the lost data is very strange.
This is a very strange thing.  Simple Portal should not do anything to ADK tables on the database.
When you uninstalled ADK blog mod, you did not choose "delete data"?


Title: Re: SimplePortal - 2.3.5 Released!
Post by: David111567 on March 28, 2012, 03:26:09 PM
Quote from: AngelinaBelle on March 28, 2012, 03:20:58 PM
It is not surprising that uninstall/install might be required.

But the lost data is very strange.
This is a very strange thing.  Simple Portal should not do anything to ADK tables on the database.
When you uninstalled ADK blog mod, you did not choose "delete data"?



It wasn't SP that caused the data loss. It was the ADK Blog Mod that caused the data loss during the uninstall process. It's set up to remove the tables upon uninstallation. I dont know why the author chose to do it that way but it uninstalls "clean" and wipes everything unless you back it up first....so, my mistake was not researching that and backing it up to begin with.  So, I just learned a valuable lesson, the hard way. 

Correction: ADK blog does not uninstall their blog tables upon un-installation of the blog...it overwrites the original tables upon re-installation of the mod.  Big difference, but same results...once the SP upgrade is done...you have to restore the blog tables from a backup or you will lose everything. 
Title: Re: SimplePortal - 2.3.5 Released!
Post by: edcplanet on March 28, 2012, 07:15:49 PM
The "Recent Attached Images" block is not resizing images to thumbnails. How do I prevent the block from showing images at full size?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: swoodie on March 28, 2012, 07:32:02 PM
Quote from: edcplanet on March 28, 2012, 07:15:49 PM
The "Recent Attached Images" block is not resizing images to thumbnails. How do I prevent the block from showing images at full size?

check this post out at simpleportal
http://simpleportal.net/index.php?topic=4118.msg31721#msg31721
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Zuća on March 28, 2012, 08:06:13 PM
what is new after update ?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on March 28, 2012, 08:11:20 PM
Quote from: Zuća on March 28, 2012, 08:06:13 PM
what is new after update ?

http://simpleportal.net/index.php?topic=10941.0
Title: Re: SimplePortal - 2.3.5 Released!
Post by: edcplanet on March 28, 2012, 08:43:00 PM
Quote from: swoodie on March 28, 2012, 07:32:02 PM
Quote from: edcplanet on March 28, 2012, 07:15:49 PM
The "Recent Attached Images" block is not resizing images to thumbnails. How do I prevent the block from showing images at full size?

check this post out at simpleportal
http://simpleportal.net/index.php?topic=4118.msg31721#msg31721

Perfect, it worked. Thanks for the link.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on March 29, 2012, 11:43:12 AM
Quote from: AngelinaBelle on March 28, 2012, 03:09:40 PM
I bet you did it correctly. But even a very bad typo would not cause a 500 error.
You have to make the server plenty angry to get one of those.
Who owns the "bad" files? who owns the other files?

Asked to the servser side and waiting their reply. While waiting, I havent removed shoutbox log before uninstalling ?

Can this cause this type of error ?  Should I prune it before uninstall ?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 29, 2012, 12:45:16 PM
The shoutbox log would not cause a 500 error.

Ordinarily, I would suspect a CHMOD or CHOWN problem.
I will be interested to find out what your problem turns out to be, so I can add it to the "solving install problems" documentation at simpleportal.net.

I think I once heard of a 500 error caused by a bad path on a theme (theme was deleted, or path to theme went to the OLD location of the forum). But I don't think this is the cause of your problem -- your problem began on the 2.3.4 unininstall.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on March 29, 2012, 12:54:24 PM
  Got a relpy from server side. Files ith 666 cause internal server error and I found some. Checking this.
Will feedback.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 29, 2012, 12:55:54 PM
That's great news.  Now you know to keep file permissions to 655 or lower.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on March 29, 2012, 02:00:53 PM
FOUND IT  :)

  Changed all files permissions to 644

Started uninstall process  failed again with internal error 500 ...  :-(

Decided to do a manual uninstall and saw that  no lines removed from ./index.php specific to sp2.3.4  even reported only one "test failed".

Did the manual update and system come back again ...

I dont know why this problem didnt occure with the others though ?

I've installed sp2.3.5  flawlessly ...

Happy now..


Also subs.php has some "remained code" specific to sp 2.3.4 , removed it and no errors in the error log now.     
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 29, 2012, 02:32:21 PM
Glad you found it.  It may be that your additional 500 error came with an over-enthusiastic Package Manager setting permission on something as permissive as possible.  I cannot be sure, but I know that, when things fail, it does try to turn permissions up as high as possible.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on March 29, 2012, 02:37:30 PM
I know that it's out of scope of SP but,

  It should be nice to have a script like ;

- ensure we are in root dir  ( /public_html in my case)
- change permissions of dirs to 755
- report if found any (for further check)
- change permissions of files to 644
- report if any   (for further check)
-done

  Can anybody code this ? for a novice user of php and unix ?

Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 29, 2012, 02:41:00 PM
I have started a topic on bug reports.
SMF has a utility for setting permission as you wish it to be, but I have had some difficulty using it on a 1and1 forum.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Dickstar on April 01, 2012, 02:17:36 PM
I too, got the Internal server error 500 after trying to uninstall 2.3.4. I'm currently trying to figure out what's going on with my host support. I'll post in here if I find something.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Dickstar on April 01, 2012, 06:31:05 PM
Support couldn't figure it out. They ended up recovering from a full backup I made before I uninstalled the mod...



EDIT:

I uninstalled the mods after Simpleportal and it worked fine this time. It was only one mod, so it wasn't that bad for me.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Joseph H on April 02, 2012, 11:38:32 AM
how can i edit the home page?? 
Title: Re: SimplePortal - 2.3.5 Released!
Post by: NanoSector on April 02, 2012, 11:46:16 AM
Try Admin > Simple Portal > Blocks > Top blocks > Welcome
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on April 02, 2012, 07:18:48 PM
When I attempt to install in my highly modified default themed forum I get an error:

When it searches for:

if (empty($parse_tags) || in_array($code['tag'], $parse_tags))
$bbc_codes[substr($code['tag'], 0, 1)][] = $code;
}
$codes = null;
}


In subs.php ... it can't find it to replace it.   When i do a manual search I find a (likely modified):

foreach ($codes as $c)
$bbc_codes[substr($c['tag'], 0, 1)][] = $c;
$codes = null;


I am not sure which mod changed the original code... nor am I 100% certain this is the right place in subs.php ... but it's the closest I could find.

Any suggestion... I didn't want to replace the modified code with the new code Simple Portal is attempting to install as it would (likely) screw up some other mod.

Thanks!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on April 09, 2012, 05:30:20 PM
I would recommend to
1) do the install, ignoring that one line
2)Save a copy of the problem file
3) Make that change by hand
4) test.

If you don't like the result after you test, put back the saved copy instead of the one you changed by hand, and uninstall SimplePortal.
Then come ask more questions.

Probably, though, steps 1-4 will give you something OK.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: supersix on April 09, 2012, 05:37:06 PM
I just installed 2.3.5 on a 2nd forum I run, and we are currently only using the Shoutbox.

Everything is fine - but in FireFox only - the text when someone reads a thread is much larger than the standard font size. It doesn't do this on the main page, or the board listing pages, just inside individual messages.

I have it running on my other SMF board, I don't have the issue. I assume it's a conflict with another mod?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on April 09, 2012, 05:42:36 PM
I don't know what the problem is.  It could be related to a post/topic that shows on the front page.

First -- please submit the page to xHTML verification, to find out if some broken HTML is causing the problem.
This is common with truncated posts in boardnews and articles blocks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: supersix on April 09, 2012, 05:56:35 PM
Quote from: AngelinaBelle on April 09, 2012, 05:42:36 PM
I don't know what the problem is.  It could be related to a post/topic that shows on the front page.

First -- please submit the page to xHTML verification, to find out if some broken HTML is causing the problem.
This is common with truncated posts in boardnews and articles blocks.

Yep - it's odd.

ONLY does it on  http://xxx.xxx/index.php?topic= read pages. No where else.

Not in PMs, not http://xxx.xxx/index.php?action=unread, http://ffdt.info/index.php - nowhere else. :(

And GOD, what do i have to do to get rid of the verification every time I post? :x
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on April 09, 2012, 07:15:25 PM
I don't see the shoutbox, or anything to do with the portal, at ffdt.info

After you post a few times, the verification will go away.  It's to discourage bots and spammers.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: LoKe on April 09, 2012, 07:52:33 PM
Sorry, we had it disabled until we could figure out the issue.  I've re-enabled it now.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on April 09, 2012, 08:20:06 PM
shoutbox is only available to members?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: LoKe on April 09, 2012, 08:28:51 PM
Quote from: AngelinaBelle on April 09, 2012, 08:20:06 PM
shoutbox is only available to members?
Yep.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on April 09, 2012, 09:40:48 PM
I fear that I cannot properly investigate the problem.

I think a good first step would be to identify and correct XHTML errors, using http://validator.w3.org/check?uri=http%3A%2F%2Fffdt.info%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

And also http://validator.w3.org/check?uri=http%3A%2F%2Fffdt.info%2Findex.php%3Ftopic%3D6071.0&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3

Once you fix these errors, it will be easier to identify any shoutbox-related errors.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: davidhs on April 10, 2012, 11:52:26 AM
I made a package for Spanish translation of SimplePortal 2.3.5 (based of translation 2.3.4 = 2.3.3 + new strings)

I attach this in SimplePortal website http://simpleportal.net/index.php?topic=11053.0
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on April 10, 2012, 12:26:01 PM
Thank you!  I'll make sure our Language team knows about it.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on April 25, 2012, 10:14:36 AM
I need to set a block to a fixed height.  Can someone please explain how this is done?   I've asked at simpleportal.net but after 3 days I still have no answer.... this can't be that difficult of a thing to do,  right?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on April 25, 2012, 10:45:09 AM
Have you tried adding the height to the custom style field for the block?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on April 25, 2012, 01:11:43 PM
Quote from: AngelinaBelle on April 25, 2012, 10:45:09 AM
Have you tried adding the height to the custom style field for the block?
Unfortunately I'm a newb at this.  I have a current block (PHP BLOCK) that adjusts size depending on the avatar sizes of each user showing... I'd like to set that block as a fixed height OR set each avatar height at a fixed height which would thereby eliminate the block from adjusting height.   

Is there a semi-simple bit of code that can be added to that block?  If so... what would it be?

Thanks!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on April 25, 2012, 01:23:40 PM
If it is a php block, you can do this directly in the code.
Whether it is an image, a div, or a <td> you want to fix the height of, you'll add the style attribute to set the height.
To learn more, please read about using the style attribute for inline styling (sometimes called "inline CSS"). http://www.w3schools.com/tags/att_standard_style.asp

And also about the height property: http://www.w3schools.com/cssref/pr_dim_height.asp
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on April 25, 2012, 02:45:03 PM
Well.  I tried adding "height=300px;" and it errored out... I then tried {height=300px;} and it also errored out.  I tried putting the line in multiple locations... no go.   >sigh<  It really stinks now knowing what you're doing.

Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on April 25, 2012, 02:46:31 PM
Please give a more specific example.  I am not sure what you tried to put where.

And w3schools.com is a great place to learn what you are doing -- have you tried the online interactive examples, where you can edit some HTML and see what happens?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on April 25, 2012, 02:59:04 PM
This is a NEWEST USERS block... it includes avatars.  If the avatars aren't at the max size vertically,  it makes the size of the overall block smaller vertically.  I need the vertical size to remain the same all the time.   So I need to either (A) make all avatars the same size vertically (35px?) or (B) Make the block itself a fixed size ... which would leave a little white space at the bottom of a user or two uses a small avatar than the max.

global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;

$limit = 5;

$request = $smcFunc['db_query']('','
SELECT
m.id_member, m.real_name, m.date_registered, m.avatar,
a.id_attach, a.attachment_type, a.filename
FROM {db_prefix}members AS m
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = m.id_member)
ORDER BY id_member DESC
LIMIT {int:limit}',
array(
'limit' => $limit,
)
);
$members = array();
$colorids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
if (!empty($row['id_member']))
$colorids[$row['id_member']] = $row['id_member'];

if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'date' => timeformat($row['date_registered'], '%d %B'),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
}
$smcFunc['db_free_result']($request);

if (empty($members))
{
echo '
', $txt['error_sp_no_members_found'];
return;
}

if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($members as $k => $p)
{
if (!empty($color_profile[$p['id']]['link']))
$members[$k]['link'] = $color_profile[$p['id']]['link'];
}
}

echo '
<table class="sp_fullwidth">';

foreach ($members as $member)
echo '
<tr>
<td class="sp_top_poster sp_center">', !empty($member['avatar']['href']) ? '
<img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="40" />' : '', '
</td>
<td>
', $member['link'], '<br />
', $member['date'], '
</td>
</tr>';

echo '
</table>';
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on April 25, 2012, 03:01:03 PM
<img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" height="35" />' : '', '
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on April 25, 2012, 03:14:18 PM
That did it!

Thanks!!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on April 25, 2012, 06:59:18 PM
glad to help! enjoy w3schools.com.  You can learn a lot there.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 09:18:40 AM
Is there a way to turn the soutbox in to a chat room? i.e. have it auto-refresh new messages every second or so?

Thanks in advance.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 09:20:22 AM
And also have a setting to limit the number of messages?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Robert. on May 01, 2012, 09:22:47 AM
Quote from: simon36 on May 01, 2012, 09:18:40 AM
Is there a way to turn the soutbox in to a chat room? i.e. have it auto-refresh new messages every second or so?
Yup, when you create a new shoutbox or edit an existing one, you'll see a setting named something like "Auto refresh". Set that to the number you want and it does what you want. :)

QuoteAnd also have a setting to limit the number of messages?
Yeah, same page: "Maximum shouts" :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 09:23:10 AM
Sorry, please ignore the above, have found the settings now.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Robert. on May 01, 2012, 09:23:40 AM
Glad to hear it's working now :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 09:24:16 AM
it's a great feature, could I turn off auto complete for the line where we enter the messages?

Thanks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 01, 2012, 09:29:21 AM
I think auto-complete is a feature of your browser.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 12:19:43 PM
It is but it is possible to turn it off with html autocomplete="off"

Could you tell me where I would edit the code to do that.

Many thanks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 12:41:31 PM
Is there away to only show the shoutbox on one individual thread? I suspect it is through the custom display option but I could not figure it out.

Thanks in advance.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 12:49:45 PM
The blocks on the side don't line up with the top of the forum, they are always too high, screen cap attached.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 12:57:21 PM
Quote from: simon36 on May 01, 2012, 12:19:43 PM
It is but it is possible to turn it off with html autocomplete="off"

Could you tell me where I would edit the code to do that.

Many thanks.

ok, I've edited the html and turned off the autocomplete.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 01, 2012, 01:04:07 PM
@simon36 -- good one!  I just read and found out that this is standard in HTML5. That's new to me!

The block title bars don't line up with the title on your forum because there is stuff before the forum title bar.
There is also one <br /> emitted in the block template right before the "central area" of the page, where the forum is located.
Are you interested in this one <br />?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 01:07:40 PM
Hi Angelina, sorry I'm not quite sure what you mean. Should I add another br statement to the html to line it up? It's only the left and right block that are not quite level with the top.

Thanks for your help.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 01, 2012, 02:53:46 PM
Adding a <br> statement will not line up the title bars.
They are at different heights because of the text ABOVE the title bar in the forum listing.

You can see exactly the same kind of thing at
http://simpleportal.net/index.php?board=11.0
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 02:55:20 PM
I see, is there a way of making it line up?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 01, 2012, 04:25:58 PM
It would take some jiggering.  I assume you'd want to do that in Portal.template.php, or else in portal.css.
I don't think you could count on it always lining up perfectly in every browser, at every size, because the problem is, in the board index, you've got some text before the title bar, but in the left-side block, you do not.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 04:28:18 PM
What is the blank bar at the top of that link that makes the blocks line up? Could you tell me how to do that instead of altering the code.

Thanks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: NanoSector on May 01, 2012, 04:37:39 PM
Quote from: simon36 on May 01, 2012, 04:28:18 PM
What is the blank bar at the top of that link that makes the blocks line up? Could you tell me how to do that instead of altering the code.

Thanks.
What blank bar?

Can you provide a screenshot?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 04:39:00 PM
It's at the top of this url

http://simpleportal.net/index.php?board=11.0
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on May 01, 2012, 04:45:13 PM
Quote from: simon36 on May 01, 2012, 04:39:00 PM
It's at the top of this url

http://simpleportal.net/index.php?board=11.0

I am guessing you have your AD BLOCKER software turned on.  Turn it off and look at that page.  That "blank bar" is where an ad is served up to those folks who are still living in the year 2001 without ad blocking software.

;)

Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 04:46:54 PM
Yes, I turned it off and there was an advert in there!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 01, 2012, 05:09:24 PM
That click-through revenue is important. SimplePortal runs at a loss.

But that's OT.  You cannot count on blocks being just the right size to make title bars line up.  You'd need some way to make them line up, and the templates have not been written that way.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: simon36 on May 01, 2012, 07:00:27 PM
Thank you, is that something that could be considered for a future version? Make the top blocks line up with the top of the message list?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 02, 2012, 07:19:49 AM
That would be nearly impossible, because you cannot count on the exact height of the stuff above the title bar in the message list.
I suppose you could look into changing the  point in the theme where the simpleportal stuff is inserted, so "that stuff" all happens BEFORE all the blocks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TwitchisMental on May 02, 2012, 06:56:48 PM
I have a small problem with this mod.


It seems there is an extra link below the container with another Simple Portal copyright..


Is this suppose to be there? If not can I get an answer on how to remove it?


To see it for yourself go here - http://nbktwitch.me/forum/ (http://nbktwitch.me/forum/)


I should also note that the copyright is also in the footer like it is suppose to be.




Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on May 02, 2012, 07:01:16 PM
Have you looked in your default theme to see if it shows there?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 02, 2012, 07:04:07 PM
I see
QuoteSimplePortal 2.3.5 © 2008-2012, SimplePortal
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on May 02, 2012, 07:05:11 PM
QuoteTheme by DzinerStudio and Modified By NBK*Twitch - SimplePortal 2.3.5 © 2008-2012, SimplePortal - Referrals System by CreateAForum.com
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 02, 2012, 07:06:27 PM
Yep.  The second one is almost invisible.  It's like something was done twice.
Can you enable the default theme?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TwitchisMental on May 02, 2012, 08:04:32 PM
Quote from: Old Fossil on May 02, 2012, 07:01:16 PM
Have you looked in your default theme to see if it shows there?


Yes it shows there aswell.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 03, 2012, 07:56:30 AM
Which version of SMF are you using?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TwitchisMental on May 03, 2012, 12:15:54 PM
Quote from: AngelinaBelle on May 03, 2012, 07:56:30 AM
Which version of SMF are you using?
The latest version - 2.0.2
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 03, 2012, 12:21:38 PM
Did this problem start after you upgraded SMF or SimplePortal?

Or did this start the first time you installed SimplePortal?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Xarkurai on May 13, 2012, 10:02:11 AM
Hello,

I've been trying to install this on a localhost server (wamp) just to test it out.
For some reason it returns me the following error:

( ! ) Fatal error: Cannot redeclare ssi_shutdown() (previously declared in C:\wamp\www\smf\SSI.php:199) in C:\wamp\www\smf\SSI.php on line 203
Call Stack
#   Time   Memory   Function   Location
1   0.0003   820000   {main}( )   ..\index.php:0
2   1.0163   11450224   obExit( )   ..\index.php:155
3   1.0163   11493104   template_header( )   ..\Subs.php:2844
4   1.0173   11706264   loadSubTemplate( )   ..\Subs.php:3402
5   1.0173   11706352   template_html_above( )   ..\Load.php:1882

Any recommendations are welcome since I'd love to try out this mod.
Thanks you.

p.s. it is installed on a fresh and new smf.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 14, 2012, 02:01:58 PM
Does this happen during install, or afterwards?  It sounds as though SSI.php is being required or included more than once.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: bearstreet on May 16, 2012, 05:55:44 AM
if we want to display staff page using simple portal, why is it that it shows only admin?
What if I want to include some particular membergroup also in the staff page?

Am I missing something or this staff page on simple portal is meant to be that way only?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 16, 2012, 09:40:20 AM
Correct.  That is how the staff block has been designed.
The staff block on simple portal shows only admins, global moderators, and local moderators.
If you would like that block to show something different, you may customize it.

This has been discussed several times at simpleportal.net.  Please try a search there, and see if you turn up what you need.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: bearstreet on May 16, 2012, 01:19:42 PM
Quote from: AngelinaBelle on May 16, 2012, 09:40:20 AM
Correct.  That is how the staff block has been designed.
The staff block on simple portal shows only admins, global moderators, and local moderators.
If you would like that block to show something different, you may customize it.

This has been discussed several times at simpleportal.net.  Please try a search there, and see if you turn up what you need.

Thanks for the pointer.
Will do the search at simpleportal.net

Title: Re: SimplePortal - 2.3.5 Released!
Post by: bearstreet on May 16, 2012, 01:39:28 PM
Got it.
In case some one needs it to be done posting the link here
it is done by a plugin called Add membergroups to the Simple Portal staff block

here is the link to the plugin
http://simpleportal.net/index.php?topic=10209.msg53685#msg53685
Title: Re: SimplePortal - 2.3.5 Released!
Post by: BinkyM on May 17, 2012, 05:57:10 PM
Hi, SimplePortal Studs!

SimplePortal was suggested to me by someone who thinks it *might* work to do something I need. After trying to sort through all the features, bug fixes, and upgrades listed on the Mod page, I'm not so sure. I don't wanna install it to find out and then have crumbs left over (a lotta mods leave crumbs behind), so I thought I'd ask if SimplePortal can do what I need and hope you'll understand what I'm asking and say "Yes! It'll do that easily!" (grin)

In Ikonboard, you can output text files with all sortsa handy tags, but I like to just output the URLs and titles of the five most recent posts in each forum. Then I use an SSI include to stick it on my home page (which isn't the forum) with a heading like "Latest Posts in the Science & Technology Forum," or "New in the Current Events Forum," and so on. IOW, it's like a sampling of what's going on in the forums and it's up-to-the-minute. Very spiderable.

Here's a sample line you'd find in one of my text files (I'm making this up):

» <a href="http://snarkish.com/forum/science/latest-post-here">Scientists discover prehistoric laptop</a>

Then I use an SSI include to include the text file on my home page.

I hope this is clear: it outputs a text file with links in it. That's what *I* do, anyway. I could, if I wanted to, include the text of posts, and the date, and the member name of the poster, and so on and so forth, but this happens to be what I like in the files. Some people get elaborate and make entire pages. Me, I like to put these things on my home page so it changes often, making it sexy to spiders.

Is this something that SimplePortal does, or shall I go look elsewhere? My users aren't shoutbox-type users (but if they were, I think they'd looove SimplePortal!).

Thanks for your assistance,

Binky
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Xarkurai on May 18, 2012, 09:38:15 AM
Quote from: AngelinaBelle on May 14, 2012, 02:01:58 PM
Does this happen during install, or afterwards?  It sounds as though SSI.php is being required or included more than once.

I've tried it on another live web version and it worked.
I guess something is messed up within my files? Not sure.

Anyway this mod looks very promising :).
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TwitchisMental on May 19, 2012, 07:15:24 PM
Quote from: AngelinaBelle on May 03, 2012, 12:21:38 PM
Did this problem start after you upgraded SMF or SimplePortal?

Or did this start the first time you installed SimplePortal?
This has happened since I installed SimplePortal as far as I can remember.


Sorry for the late reply I have had some problems the past few weeks..
Title: Re: SimplePortal - 2.3.5 Released!
Post by: H3lioz on May 19, 2012, 08:56:29 PM
Hey,

I know i asked this question for a long time ago & i got it answered but somehow i can't find it..
So i'll ask again.

How do i remove the blue xxx in the left side of the blocks & everything else like boards & stuff..
Like on this pic => http://screensnapr.com/v/2kM9UR.png


Edited by Old Fossil to remove foul language.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on May 19, 2012, 09:00:44 PM
Which version portal are you using?

There was a time when all you had to do was move the portal.css file to the theme  being used.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: H3lioz on May 19, 2012, 09:03:27 PM
Ah when u said it, it was easy to remember ^^

Thank you.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: winfield on May 20, 2012, 02:56:12 AM
this mods is lovely, successfully installed in my smf 2.0.2., until then [SiNaN]
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 21, 2012, 03:40:46 PM
NBKTwitch -- this is a bit of a puzzler.
Simple Portal uses a couple of techniques to figure out where to place its copyright notice.
It looks like it succeeded twice, which is a little bit of a surprise.
Can you tell me which version of php your site uses?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TwitchisMental on May 21, 2012, 03:56:17 PM
Quote from: AngelinaBelle on May 21, 2012, 03:40:46 PM
NBKTwitch -- this is a bit of a puzzler.
Simple Portal uses a couple of techniques to figure out where to place its copyright notice.
It looks like it succeeded twice, which is a little bit of a surprise.
Can you tell me which version of php your site uses?
5.2.17
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 21, 2012, 04:08:28 PM
Quote from: BinkyM on May 17, 2012, 05:57:10 PM
In Ikonboard, you can output text files with all sortsa handy tags, but I like to just output the URLs and titles of the five most recent posts in each forum. Then I use an SSI include to stick it on my home page (which isn't the forum) with a heading like "Latest Posts in the Science & Technology Forum," or "New in the Current Events Forum," and so on. IOW, it's like a sampling of what's going on in the forums and it's up-to-the-minute. Very spiderable.


Is this something that SimplePortal does, or shall I go look elsewhere? My users aren't shoutbox-type users (but if they were, I think they'd looove SimplePortal!).
I know that there are several ways, using SMF, to achieve the solution you seek.
The particular feature you seek (a block displaying recent posts or topics from one or more boards on your site front page) is certainly possible, using Simple Portal.
It is also possible without Simple Portal.

If you already have a site front page, written in either HTML or php, and separate from your forum, I know a couple of ways to replace the contents of your "recent news" block with content from an SMF forum.
1) The RSS feed from your website (either from all boards, one board, or (using a mod) several boards) -- For example, you can include the feed from http://www.simplemachines.org/community/index.php?action=.xml;type=rss in a website page on any website.  How do do that depends on whether your website page is created in HTML, php, ASP, whatever.
2) using a feature of SMF called SSI.php (for more on SSI, please see http://www.simplemachines.org/community/ssi_examples.php and documentation at http://wiki.simplemachines.org/smf/Category:SSI).

Simple Portal makes it easy to do some of the stuff SSI.php does, plus even more stuff, all without requiring you to do any programming. It is generally easy to install.
But to use it, you would generally want to completely replace an existing website page with a standalone portal page. Then, that page would have the same "skin" as your forum (or a different SMF skin, if set Simple Portal up with a special theme for the portal page).

I hope this helps you come a little closer to making your decision.  Please feel free to ask more questions and offer more information, so users of Simple Portal can help you decide if Simple Portal is what you want and need for your website.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 21, 2012, 04:26:10 PM
NBKTwitch,

I am surprised.  It looks to me like str_replace did its job, but returned "false" anyway, so simpleportal thought the str_replace did not work, and added the credit for SimplePortal to the very end of the page.  I wouldn't have expected that to happen in php 5.2.17.

I don't know what to think of it.  I don't know if this could be considered a bug in Simple Portal, but I'll report the issue there.
Thanks for the information.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TwitchisMental on May 21, 2012, 09:04:05 PM
Quote from: AngelinaBelle on May 21, 2012, 04:26:10 PM
NBKTwitch,

I am surprised.  It looks to me like str_replace did its job, but returned "false" anyway, so simpleportal thought the str_replace did not work, and added the credit for SimplePortal to the very end of the page.  I wouldn't have expected that to happen in php 5.2.17.

I don't know what to think of it.  I don't know if this could be considered a bug in Simple Portal, but I'll report the issue there.
Thanks for the information.


Thank you, is there any way I could go about removing it? As you can see in my picture I do have the copyright in the correct area aswell.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 22, 2012, 01:33:54 AM
On that topic, I don't have any advice for you at this time.
Your problem should not be happening, and the SimplePortal project has a policy of not providing information on how to meddle with the bottom-of-the-page credit links of SimplePortal, SMF, or any other mod or theme.  I hope you can understand this.

I have reported the issue to testers at SimplePortal.  I hope they will be able to test this on php 5.2.17 and report back whether they can reproduce the error.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 22, 2012, 01:24:07 PM
nbktwitch, can you let me see, from your theme, in index.template.php, the contents of the following functions:
* function template_body_below()
* function template_html_below()

Thanks
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TwitchisMental on May 22, 2012, 06:23:03 PM
Quote from: AngelinaBelle on May 22, 2012, 01:24:07 PM
nbktwitch, can you let me see, from your theme, in index.template.php, the contents of the following functions:
* function template_body_below()
* function template_html_below()

Thanks


html above =


function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;


echo '
<><>
';
global $modSettings;

if(!empty($modSettings['googleAnalyticsCode']))
echo '
<script type="text/javascript"><!-- // -->', chr(60), '![CDATA[', '
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', \'' . $modSettings['googleAnalyticsCode'] . '\']);
_gaq.push([\'_trackPageview\']);


(function() {
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
})();
// ]]', chr(62), '</script>';


echo '</body></html>';
}


// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show = false)
{
global $context, $settings, $options, $shown_linktree;


// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;


echo '
<div class="navigate_section">
<ul>';


// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';


// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];


// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';


// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];


// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' »';


echo '
</li>';
}
echo '
</ul>
<>';


$shown_linktree = true;
}







body below




function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;




echo '
<>
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
// Show the load time?
if ($context['show_load_time'])
echo '
<br />', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'];


echo '
<>';
}


function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;


echo '
<><>
';
global $modSettings;

if(!empty($modSettings['googleAnalyticsCode']))
echo '
<script type="text/javascript"><!-- // -->', chr(60), '![CDATA[', '
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', \'' . $modSettings['googleAnalyticsCode'] . '\']);
_gaq.push([\'_trackPageview\']);


(function() {
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
})();
// ]]', chr(62), '</script>';


echo '</body></html>';
}


// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show = false)
{
global $context, $settings, $options, $shown_linktree;


// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;


echo '
<div class="navigate_section">
<ul>';


// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';


// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];


// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';


// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];


// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' »';


echo '
</li>';
}
echo '
</ul>
<>';


$shown_linktree = true;
}
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 23, 2012, 12:49:49 AM
Here's your problem.
The line
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';


My advice is to change this -- this change will probably fix your problem.
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 &copy; 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';

or else remove the Simple Portal credit line from your them altogether -- this probably won't fix your problem until you fix something else. Please see below
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';


But, given what you have in that theme and what shows on your forum, I would have expected the Simple Portal credit line to be seen 3 times, not 2 times Twice on the line with "Simple Machines".  Please look at Subs-Portal.php.  What Software Version: of Simple Portal appears at the top of the file?


Edit: Corrected myself.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 23, 2012, 01:18:03 AM
This really depends on your theme.  Can you provide a link to your site?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TwitchisMental on May 23, 2012, 06:08:50 PM
Quote from: AngelinaBelle on May 23, 2012, 12:49:49 AM
Here's your problem.
The line
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';


My advice is to change this -- this change will probably fix your problem.
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 &copy; 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';

or else remove the Simple Portal credit line from your them altogether -- this probably won't fix your problem until you fix something else. Please see below
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';


But, given what you have in that theme and what shows on your forum, I would have expected the Simple Portal credit line to be seen 3 times, not 2 times.  Please look at Subs-Portal.php.  What Software Version: of Simple Portal appears at the top of the file?


SimplePortal 2.3.5
Title: Re: SimplePortal - 2.3.5 Released!
Post by: OFRD_GRL on May 29, 2012, 12:46:45 PM
http://coloradohorseforum.com/forum/index.php

I have a shout-box setup as block in the header....
I have simple portal set to "integration"

But nothing is showing up :(
I don't want an individual portal page, as I have a webpage built custom for an index page.
Any tips are hugely appreciated.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 29, 2012, 12:58:17 PM
Click the little icon of a wrench to edit the shoutbox block.
Then specify where you would like the shoutbox to show up.
Also, check the permissions for the block -- to make sure you are permitting people to view the block.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: OFRD_GRL on May 29, 2012, 01:02:20 PM
OOOH awesome, thanks!!!
I had it setup to show on the portal. Much appreciated!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on June 01, 2012, 10:25:12 AM
Great mod! It can be used as my fully homepage! Thanks :)

But I have an uncommon problem. Sometimes, though I was logged in to forum, but it doesn't logged in to Simple Portal, and still showing the login box. Help?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 01, 2012, 10:36:56 AM
Pokeman:
This sounds like a cookie problem.

Do you use standalone portal?
Is it in a different sub-domain?

* Please go to: Administration Center » Server Settings » Cookies and Sessions
* Make sure the box for "local storage of cookies cookies" is unset
* Make sure the box for "subdomain independent cookies" is set

That usually fixes the problem.
Does that work?


Title: Re: SimplePortal - 2.3.5 Released!
Post by: 4LP3RUZ1 on June 01, 2012, 11:49:12 AM
Question about Simpleportal's shoutbox:

When I do a refresh through the refresh button or an auto refresh, only the shoutbox messages are refreshed through AJAX, this is great.

However, when I enter and send a message the whole portal page gets refreshed. Is this normal behaviour?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 01, 2012, 11:55:20 AM
When you enter a shout and press the "Shout!" button, only the shoutbox should be refreshed.
If this is NOT what you observe, something is not working properly with your "Shout!" button.

That button should have the javascript sp_submit_shout(...,...,...) attached to the onclick event, which should kick off some AJAX stuff.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on June 01, 2012, 11:56:55 AM
Quote from: 4LP3RUZ1 on June 01, 2012, 11:49:12 AM
Question about Simpleportal's shoutbox:

When I do a refresh through the refresh button or an auto refresh, only the shoutbox messages are refreshed through AJAX, this is great.

However, when I enter and send a message the whole portal page gets refreshed. Is this normal behaviour?

Nope... at least not with auto shout OFF... when I type something new in... it only updates the shoutbox...not the whole page.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 01, 2012, 12:14:50 PM
Auto shout? Are you referring to auto refresh = 0?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on June 01, 2012, 01:10:07 PM
Yes... I mean auto-refresh.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: 4LP3RUZ1 on June 01, 2012, 01:57:30 PM
hmm, I wonder if its some other js thats the problem, my site header is not the cleanest :)

Details Removed
As an antispam measure.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: [SiNaN] on June 01, 2012, 03:30:05 PM
Can you make sure that the account you provided for testing has the necessary permissions to access the shoutbox? (blocks and shoutboxes has different permissions, so you need to set both for blocks that display shoutboxes)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: 4LP3RUZ1 on June 02, 2012, 02:14:31 AM
Sure, I updated the profile to have permissions.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on June 02, 2012, 04:12:15 AM
Quote from: AngelinaBelle on June 01, 2012, 10:36:56 AM
Pokeman:
This sounds like a cookie problem.

Do you use standalone portal?
Is it in a different sub-domain?

* Please go to: Administration Center » Server Settings » Cookies and Sessions
* Make sure the box for "local storage of cookies cookies" is unset
* Make sure the box for "subdomain independent cookies" is set

That usually fixes the problem.
Does that work?
It worked thanks!
Yes, I'm using the standalone portal.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on June 02, 2012, 06:57:02 AM
Another queston, how to justified the article text? Though I use css (.post) and html (<p align="justify") near the $article['message']['body'] (Themes/default/PortalArticles.template.php), but it doesn't working. Maybe the code is in wrong places?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: [SiNaN] on June 02, 2012, 02:51:25 PM
Quote from: 4LP3RUZ1 on June 02, 2012, 02:14:31 AM
Sure, I updated the profile to have permissions.

Shoutbox JavaScript functions use smf_editorArray variable to determine the version of SMF. That variable is defined at the beginning of script.js file in SMF. Your theme seems to write extra html headers before including the default SMF js files. Moving the <script> tag that includes script.js file before html headers variable in index.template.php file should fix the problem.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: 4LP3RUZ1 on June 03, 2012, 01:24:59 AM
Ur my hero, thanks :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 04, 2012, 09:18:58 AM
Pokemon -- it would help to be able to look at the HTML.
I recommend to you Firefox with the firebug extensions, or IE9, which comes with the "F12" developer's tools, to help you explore your HTML and CSS.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Gà Mái on June 05, 2012, 05:39:24 AM
Hi.. [SiNaN] Long time no see! ^^ :)
How are you?
I like your portal very much.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: [SiNaN] on June 05, 2012, 02:32:23 PM
Indeed. I'm still alive, which I'm grateful for. It's good to see that you're still using SimplePortal. You should be able to see how fast and well it evolved since the earlier versions, with this great team we have, better than a lot of others.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: rekatluos on June 09, 2012, 07:19:46 AM
I just installed simpleportal on my forum (im using dziner studio free theme) but the SimplePortal button does not show in the navigation bar and if i try to access the portal settings with the URL ,the page just shows like the main admin page ,not simpleportal .


Any idea pls?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 11, 2012, 07:50:47 AM
It sounds like the installation was not sucessful.
The Simple Portal stuff was not added to the admin menu. This indicates that the file edits did not happen.
Please also check in the Sources to see if PortalBlocks.php is there - this will tell you if the part of the install where files were copied into the Sources directory went OK.

This is sometimes the result of certain permission settings on certain hosts. The SMF package manager thinks that permissions are set appropriately, so it thinks installation must have been successful, but it does not have confirmation that the changes actually happened. This problem could occur with any large mod.

Please see the documentation at http://simpleportal.net/index.php?action=docs;area=solving_install_problems

The simplest thing to try (and therefore our first recommendation) is to create a folder called temp in the Packages folder, and give that temp folder 755 permission (using CHMOD or whatever tool your host provides).  If your host allows use of 777 for that folder, try that.
Please see the documentation at simpleportal.net
Title: Re: SimplePortal - 2.3.5 Released!
Post by: perfec2 on June 12, 2012, 07:20:41 PM
While installing it I got this error
"12.     Execute Modification     ./Sources/Subs.php     Test failed"

I'm using 1.16, please how can I go about it, as I need this?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on June 12, 2012, 07:28:57 PM
This just means that a manual edit is required using the mods parser.

Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on June 12, 2012, 07:46:39 PM
In layman terms:

The package manger can not find the line of code the software is looking for to either REPLACE the code or ADD code BEFORE or AFTER said line.  Because it can't find the line in your current code,  most likely due to another mod having already been installed that has moved or changed that line (or combination of lines),  it can't insert the code it's attempting to insert so you get the error.

What you need to do is manually edit that one file.

Are you familiar with manually editing code?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mark S on June 12, 2012, 09:23:23 PM
I was using SMF 2.0RC1 and upgraded the SP version to 2.3.5.  Everything went just fine.  Until I scrolled down on my home page.  At the bottom there appeared a mystery block I hadn't created.  It's VERY long top to bottom and it shows a whole bunch of posts... 8 pages of them!  One actual page and 7 pages of continuation links. 

When I upgraded the main forum to SMF v2.0.2, it was still there.  I have no idea how it got there or how to remove it.  I didn't create it and it's not showing as a bottom block in the SP admin.

I don't know if it's somehow garbled into the display template or if it's in the portal files.  I just need it gone!

The best way to see what I mean is to just take a look.  Go to my home page and scroll down.... and keep scrolling and scrolling.  After the end of the phantom block, there's a bottom block, "member sponsored stores".  This one IS supposed to be there.

http://www.classicwinnebagos.com/forum/index.php

Thanks - !
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on June 12, 2012, 09:26:58 PM
OO

Motorhomes. Are you trying to make me jealous whilst I have a look at your portal?

I'd love to swap my house for one.

Anyways dreaming aside do you have any articles activated on the forum?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mark S on June 12, 2012, 10:16:51 PM
Yes, I do.  And there's a block for them on the right blocks.  However, interesting thing... I am also having a similar problem with two other blocks appearing inside the the "pages" I created.  I was trying to get them out using the admin panel and accidentally hit the compatibility view icon in my IE 9 browser... guess what?  They ALL disappeared!  So, I guess that was the answer.   :laugh:

The site is very popular and there are thousands of people who own 30+ year old RVs.  They can be a lot of fun to tinker with, just like old cars... only bigger!  And, more and more Americans are turning to the vintage RVs as, what I call, "mobile alternative living options." - LOL!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on June 12, 2012, 10:19:49 PM
Quote from: ThePharaoh on June 12, 2012, 10:16:51 PM

The site is very popular and there are thousands of people who own 30+ year old RVs.  They can be a lot of fun to tinker with, just like old cars... only bigger!  And, more and more Americans are turning to the vintage RVs as, what I call, "mobile alternative living options." - LOL!

That's right rub it in. Since we first saw a fifth wheel in the UK we have since seen several.

Quite a site seeing these turn up at a campsite.

Anyways is the problem still occurring? If so if you would pm a temp admin account I will take a peep for ya.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mark S on June 12, 2012, 10:28:56 PM
Yeah, it's still there.  I had a couple of windows open and was looking at my "Test" site, which was a clean build to which I just transferred some database tables into to see how things would look.  The problem is still there.  I can temp admin you.  Not sure how to do that without going through our registration.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on June 12, 2012, 10:30:19 PM
No rush.

Can ya do it via pm though please.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mark S on June 12, 2012, 10:49:29 PM
PM Sent = Thanks. 
Title: Re: SimplePortal - 2.3.5 Released!
Post by: perfec2 on June 13, 2012, 06:15:26 AM
Quote from: FrizzleFried on June 12, 2012, 07:46:39 PM
In layman terms:

The package manger can not find the line of code the software is looking for to either REPLACE the code or ADD code BEFORE or AFTER said line.  Because it can't find the line in your current code,  most likely due to another mod having already been installed that has moved or changed that line (or combination of lines),  it can't insert the code it's attempting to insert so you get the error.

What you need to do is manually edit that one file.

Are you familiar with manually editing code?
I don't know how to edit that please I attach my file here so that you help me edit that, please? Also let me know the line you edit.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on June 13, 2012, 11:36:39 AM
Is it only the SUBS file that you had an error with?   If so,  you're looking at a dozen  or so different edits.  Which of the edits is giving you an error?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: perfec2 on June 13, 2012, 12:32:55 PM
Is only in subs.php i have "Test fail" error others went successful.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on June 13, 2012, 01:58:18 PM
Quote from: perfec2 on June 13, 2012, 12:32:55 PM
Is only in subs.php i have "Test fail" error others went successful.

You can expand the SUBS area where it failed and it will tell you which edits failed... I doubt all 14 edits (it looks like) failed.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: perfec2 on June 13, 2012, 02:11:09 PM
I don't know how to expand and know the one that fails, that is why i come here and attached my file for i to be helped. if this is the only way what are the steps?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on June 13, 2012, 02:24:25 PM
Quote from: perfec2 on June 13, 2012, 02:11:09 PM
I don't know how to expand and know the one that fails, that is why i come here and attached my file for i to be helped. if this is the only way what are the steps?

During the installation process... the package manager will show you a failure in the subs file... you can expand that list to see which edit(s) fail.  Try to install... when it fails,  expand the list and take a screen shot... post it here.  You may have to scroll and take multiple screen shots as there at 14 edits being made to that file.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: perfec2 on June 13, 2012, 02:53:40 PM
I'm using 1.16 version of smf, I can't see the expand option after I just try to reinstall. What am missing here?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on June 13, 2012, 03:24:33 PM
Quote from: perfec2 on June 13, 2012, 02:53:40 PM
I'm using 1.16 version of smf, I can't see the expand option after I just try to reinstall. What am missing here?

Sorry... I am not familiar with 1.1.16's package installation methods... I only have experience with 2.0.2.

:(

Title: Re: SimplePortal - 2.3.5 Released!
Post by: Goodman854 on June 14, 2012, 11:46:09 PM
I too am having an issue where when people post in the shout box it refresh's their entire page. Could any one please help me with this? Thanks.

Also is their a way I can make links just be normal again. So people can see the link and not have to click a box that says [LINK]

Thanks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on June 15, 2012, 12:10:12 AM
Quote from: goodman854 on June 14, 2012, 11:46:09 PM

Also is their a way I can make links just be normal again. So people can see the link and not have to click a box that says [LINK]

Thanks.

Unfortunately there is no way out of this at present although their beta testers have mentioned this.

/me is an SP beta tester.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Hakan™ on June 15, 2012, 10:07:11 AM
Great Modification :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Goodman854 on June 15, 2012, 05:18:53 PM
Quote from: Old Fossil on June 15, 2012, 12:10:12 AM
Quote from: goodman854 on June 14, 2012, 11:46:09 PM

Also is their a way I can make links just be normal again. So people can see the link and not have to click a box that says [LINK]

Thanks.

Unfortunately there is no way out of this at present although their beta testers have mentioned this.

/me is an SP beta tester.
So what about the shout box issue? Is there anything that can fix that?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 15, 2012, 05:52:58 PM
I have not run into this shoutbox refreshing issue myself, but I know that others have.  You are welcome to come over to simpleportal.net to discuss it.

That [LINK] in the shoutbox is a feature.  It was put there because links are usually too long for the shoutbox.
Getting rid of it would require some customization of the shoutbox.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Goodman854 on June 17, 2012, 02:09:11 AM
Quote from: AngelinaBelle on June 15, 2012, 05:52:58 PM
That [LINK] in the shoutbox is a feature.  It was put there because links are usually too long for the shoutbox.
Getting rid of it would require some customization of the shoutbox.
It's also a security risk for users who don't look at the status bar when clicking links. The idea of unknown links in my opinion is a very stupid idea.
A trailing "..." would even have been better EX: "www.google.com/serarch=balah+dog+cat+the+la....." shown visibly with the entire link being w/e it is.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: [SiNaN] on June 17, 2012, 01:54:07 PM
I have posted how to remove that feature here:

http://simpleportal.net/index.php?topic=10715.msg55104;topicseen#msg55104

And I'm sorry but I'll have to ask you to learn what you are talking about before labeling something as "stupid".
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Goodman854 on June 17, 2012, 03:23:36 PM
Quote from: [SiNaN] on June 17, 2012, 01:54:07 PM
I have posted how to remove that feature here:

http://simpleportal.net/index.php?topic=10715.msg55104;topicseen#msg55104

And I'm sorry but I'll have to ask you to learn what you are talking about before labeling something as "stupid".
What? I know what I'm talking about not sure you meant by that. I'm just saying in my opinion it's a bad idea. I understand why you did it, I'm just saying I don't think it was the correct work around for that.

I'm not trying to start a fight or anything just stating my personal opinion.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Lolafish on June 27, 2012, 06:49:54 PM
I'll be upgrading to this soon.  How well do simple portal "Pages" get indexed by Google?  For example, when you create a new Page, it gives you the option to create a new title, but the page ID is already filled in.  Since it's the page ID that is in the URL, there aren't any keywords in the url to be picked up on by Google.  Can we customize that, or must we use what's already supplied? 

Example:

My links page is currently http://www.aquapuppies.com/aquapuppies/index.php/page,page721.html

My old links page, which I haven't deleted from the server yet because it indexes better in Google is http://www.aquapuppies.com/links.htm

I am really terrible at SEO and trying to make some changes since I have a lot of mistakes right now.  Any advice is greatly appreciated.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 27, 2012, 10:03:03 PM
You can customize the page id.  It can be something like ?page=The_Best_Page_About_SEO if you want it to be.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Lolafish on June 27, 2012, 10:52:23 PM
Quote from: AngelinaBelle on June 27, 2012, 10:03:03 PM
You can customize the page id.  It can be something like ?page=The_Best_Page_About_SEO if you want it to be.


That is awesome to hear. Thank you.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on July 02, 2012, 08:54:07 AM
http://www.aquapuppies.com/aquapuppies/index.php/page,page721.html might link poorly because it cannot be found.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Lolafish on July 02, 2012, 12:14:20 PM
Quote from: AngelinaBelle on July 02, 2012, 08:54:07 AM
http://www.aquapuppies.com/aquapuppies/index.php/page,page721.html might link poorly because it cannot be found.


Because its been changed. ;)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on July 02, 2012, 12:19:02 PM
That's great.  I hope it is working well for you.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: LOVELORD on July 12, 2012, 07:26:15 PM
Hello,

i looked but i cant find...

is there any way to add image for bbc code in chat?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: NanoSector on July 13, 2012, 06:37:45 AM
Quote from: LOVELORD on July 12, 2012, 07:26:15 PM
Hello,

i looked but i cant find...

is there any way to add image for bbc code in chat?
You mean the shoutbox?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: HunterP on July 14, 2012, 03:10:58 PM
Question, I've just installed Simple Portal, but my forum is running on www.domain.com/forum and I'd like the portal to run on www.domain.com , is that possible?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: onepiece on July 14, 2012, 05:32:13 PM
Yes: http://simpleportal.net/index.php?action=docs;area=set_up_standalone_portal
Title: Re: SimplePortal - 2.3.5 Released!
Post by: HunterP on July 14, 2012, 06:46:29 PM
Quote from: onepiece on July 14, 2012, 05:32:13 PM
Yes: http://simpleportal.net/index.php?action=docs;area=set_up_standalone_portal

Thanks, their site was down when I was looking for this :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Uhura! on July 28, 2012, 12:30:36 PM
Fixed! Never mind :D
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TwitchisMental on August 02, 2012, 01:03:57 PM
I am not sure if this is a problem or what,but I cannot seem to allow guests to chat in the shoutbox.


They can see it,but they cannot use the shoutbox.


Is there a way to allow this?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Adrek on August 02, 2012, 01:22:42 PM
Check out this topic => http://simpleportal.net/index.php?topic=9834.0 ;)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TwitchisMental on August 02, 2012, 01:32:07 PM
Quote from: phantomm on August 02, 2012, 01:22:42 PM
Check out this topic => http://simpleportal.net/index.php?topic=9834.0 (http://simpleportal.net/index.php?topic=9834.0) ;)


Thank you that did it :).
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Tiensg on August 19, 2012, 11:59:50 AM
Is there any audible alert for new message in the shoutbox? I can't find any. By the way, I am using SMF 2.0.2.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Blackburn on August 19, 2012, 08:06:47 PM
very good mod ;)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on August 19, 2012, 08:14:30 PM
Quote from: Tiensg on August 19, 2012, 11:59:50 AM
Is there any audible alert for new message in the shoutbox? I can't find any. By the way, I am using SMF 2.0.2.

If you search on the simple portal forum then you should find the add on.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on August 22, 2012, 01:16:05 AM
Quote from: Tiensg on August 19, 2012, 11:59:50 AM
Is there any audible alert for new message in the shoutbox? I can't find any. By the way, I am using SMF 2.0.2.

Here is the link: http://simpleportal.net/index.php?topic=10205.0
I updated the plugin last week.

There is also another one available on the SP forum (written by another user) if you opt not to use the one I linked.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PLAYBOY on August 28, 2012, 05:02:10 AM
I uninstalled and re-installed the mod but now only i (Admin) can see the portal. Everybody else sees a blank page with forum header.
Can somebody help me please?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on August 28, 2012, 08:46:51 AM
Blank pages.  That is very unusual.  Have you checked your settings -- are you in forum maintenance mode?  Are you in portal maintenance mode?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PLAYBOY on August 28, 2012, 11:45:39 AM
Checked. Nothing is in maintenance mode. Somebody please help me about this!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on August 28, 2012, 11:55:13 AM
Have you submitted the URL to the XHTML validator?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PLAYBOY on August 28, 2012, 12:13:18 PM
This is what xhtml validator shows me


    Error Line 21, Column 19: there is no attribute "property"

    <meta property="og:type" content="article" />

    ✉

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    Warning Line 82, Column 23: character "&" is the first character of a delimiter but occurred as data

    if (((keyCode >= 65 && keyCode <= 90) && !shiftKey) || ((keyCode >= 97 && key...

    ✉

    This message may appear in several cases:
        You tried to include the "<" character in your page: you should escape it as "&lt;"
        You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
        Another possibility is that you forgot to close quotes in a previous tag.
    Warning Line 82, Column 24: character "&" is the first character of a delimiter but occurred as data

    if (((keyCode >= 65 && keyCode <= 90) && !shiftKey) || ((keyCode >= 97 && key...

    ✉

    This message may appear in several cases:
        You tried to include the "<" character in your page: you should escape it as "&lt;"
        You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
        Another possibility is that you forgot to close quotes in a previous tag.
    Warning Line 82, Column 34: character "<" is the first character of a delimiter but occurred as data

    if (((keyCode >= 65 && keyCode <= 90) && !shiftKey) || ((keyCode >= 97 && key...

    ✉

    This message may appear in several cases:
        You tried to include the "<" character in your page: you should escape it as "&lt;"
        You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
        Another possibility is that you forgot to close quotes in a previous tag.
    Warning Line 82, Column 41: character "&" is the first character of a delimiter but occurred as data

    ...if (((keyCode >= 65 && keyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyC...

    ✉

    This message may appear in several cases:
        You tried to include the "<" character in your page: you should escape it as "&lt;"
        You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
        Another possibility is that you forgot to close quotes in a previous tag.
    Warning Line 82, Column 42: character "&" is the first character of a delimiter but occurred as data

    ...f (((keyCode >= 65 && keyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyCo...

    ✉

    This message may appear in several cases:
        You tried to include the "<" character in your page: you should escape it as "&lt;"
        You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
        Another possibility is that you forgot to close quotes in a previous tag.
    Warning Line 82, Column 74: character "&" is the first character of a delimiter but occurred as data

    ...eyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyCode <= 122) && shiftKey))

    ✉

    This message may appear in several cases:
        You tried to include the "<" character in your page: you should escape it as "&lt;"
        You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
        Another possibility is that you forgot to close quotes in a previous tag.
    Warning Line 82, Column 75: character "&" is the first character of a delimiter but occurred as data

    ...eyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyCode <= 122) && shiftKey))

    ✉

    This message may appear in several cases:
        You tried to include the "<" character in your page: you should escape it as "&lt;"
        You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
        Another possibility is that you forgot to close quotes in a previous tag.
    Warning Line 82, Column 85: character "<" is the first character of a delimiter but occurred as data

    ...eyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyCode <= 122) && shiftKey))

    ✉

    This message may appear in several cases:
        You tried to include the "<" character in your page: you should escape it as "&lt;"
        You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
        Another possibility is that you forgot to close quotes in a previous tag.
    Warning Line 82, Column 93: character "&" is the first character of a delimiter but occurred as data

    ...eyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyCode <= 122) && shiftKey))

    ✉

    This message may appear in several cases:
        You tried to include the "<" character in your page: you should escape it as "&lt;"
        You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
        Another possibility is that you forgot to close quotes in a previous tag.
    Warning Line 82, Column 94: character "&" is the first character of a delimiter but occurred as data

    ...eyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyCode <= 122) && shiftKey))

    ✉

    This message may appear in several cases:
        You tried to include the "<" character in your page: you should escape it as "&lt;"
        You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
        Another possibility is that you forgot to close quotes in a previous tag.
    Error Line 91, Column 5: marked section end not in marked section declaration

    // ]]></script>

    ✉
    Error Line 109, Column 86: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

    ...section"><span style="float: right; margin-top: 10px;"><div id="fb-root"></div>

    ✉

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
    Error Line 110, Column 8: required attribute "type" not specified

    <script>

    ✉

    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
    Error Line 153, Column 104: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

    ...div id="siteslogan" class="floatright">My SLogan</d...

    ✉

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on August 28, 2012, 12:20:09 PM
The meta tag probably does not cause your problem.
However, the Warning Line 82 is very odd, and looks like you have some javascript which the browser will try to interpret as HTML

This is supported by the error on line 91, where it tells you that you are trying to close a script tag but never opened it.

Where is this javascript involving "shiftkey" coming from?


Finally, the error on line 153, in which you have a div some place where it is not allowed to be, indicates that you might have opened or closed something else improperly.  Please fix these HTML errors and see if matters improve.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PLAYBOY on August 28, 2012, 12:24:55 PM
QuoteWhere is this javascript involving "shiftkey" coming from?

I dont know what is it. I use adsense and google analytics. Those are the ones which i can think of as java right now.

QuoteFinally, the error on line 153, in which you have a div some place where it is not allowed to be, indicates that you might have opened or closed something else improperly.  Please fix these HTML errors and see if matters improve.
I dont know how to fix the html errors. I am not good at coding.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on August 28, 2012, 01:39:45 PM
There are many ways to improve the situation.
And you can learn a lot about HTML in a short time.
What you are looking for is the beginning of that javascript section that is flagged starting in line 81, and try to figure out where, in the code, it comes from.  You can attempt uninstalling other mods to see if they are responsible for it.

If you had any difficulties installing or uninstalling any of your mods along the way -- that may be the problem.

Have you tried turning off SimplePortal?
Did the problem start after the un-install re-install of simple portal?

If you don't feel very comfortable looking through the HTML and the php files, you might find it quicker and more convenient to start with a fresh SMF install
1) Take a copy of ALL your SMF files
2) Backup your database
3) uninstall all of your mods.  Don't bother if there are some errors.  DO NOT "remove data" when you uninstall.  You'll want to keep it.
4) replace all your SMF files with fresh ones from the appropriate install set (you shouldn't need to do the "upgrade" step to the database because you are sticking to the same version of SMF)
5) install the mods you want, one at a time, checking for problems between each install.

This is is the kind of thing you can do when you run into intractable problems with any mods

Good Luck!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PLAYBOY on August 28, 2012, 01:52:01 PM
QuoteIf you had any difficulties installing or uninstalling any of your mods along the way -- that may be the problem.

I have more than 40 mods installed, also got custom theme with many manual edits, plus the forum is in another language. I have been using the same forum since the last 5-6 years. Keeping most things updated. Therefore any kinda clean re-installation of smf would be a very big pain for me.

QuoteHave you tried turning off SimplePortal?
Did the problem start after the un-install re-install of simple portal?

All i wanted was to uninstall the sp and update it. I have uninstalled the sp then installed the newer version but portal page was showing only one of the columns and there were issues so i re-installed it the old one again after uninstalling the new version. That is when the problems have started. Now i got the good old version but portal shows blank page within my template.

Title: Re: SimplePortal - 2.3.5 Released!
Post by: PLAYBOY on August 28, 2012, 04:01:06 PM
Isnt there a permission settings on who can see the portal who cant?
Because i can see the portal perfectly fine but others cant.

There must be a permission settings for portal somewhere. Because so far i have re-installed the mod and almost every file in my smf with the files which i had before the issue started.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on August 28, 2012, 04:31:30 PM
I am not certain whether the update to simple portal made any changes to the database.  If this were the case, it would be difficult to go back to an older version.  But I am not certain if this would be an issue for you.

I am surprised to hear that simpleportal would show only one of the columns.
Sometimes, one column is collapsed.  This is a choice every user can make separately, using the little + or - icons near the top right of the simple portal area.  You can also turn off column collapsing in simple portal, to test if this is the case.

I do not know what other issues you might have had with version 2.3.5 of simple portal.  In general, 2.3.5, with version 2.0.2 of SMF, would work even better than 2.3.4.

It may take a bit of work to sort this all out.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PLAYBOY on August 28, 2012, 04:38:58 PM
I got it. I solved the problem finally. It was a permission issue.
Somehow all the blocks permissions were unchecked for all membergroups after re-installation. I have checked the permissions for all blocks again and VOILA!
Phew! that was pain!
Thx to everyone who helped.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on August 28, 2012, 04:42:15 PM
I'm glad you figured that out.
That is a little mysterious.
That's the first time I have heard of block permissions getting changed during an install or un-install.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Baloch on August 30, 2012, 05:19:34 AM
During installation of Simple portal latest module getting INTERNAL SERVER ERROR 500

Please advice what to do?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on August 30, 2012, 07:17:41 AM
I have seen this most frequently when there is a certain type of permission problem. So my advice is to check for and fix this permission problem.  Who is your web host?

If your web hosts uses suphp to make the php engine run with the file permissions YOU have on your file, you may need to use CHMOD to change permissions on directories to 755 and on your files to 644.  Please give that a try to see if it solves the problem.

---------------------
Here is a little more background on the problem:

http://simpleportal.net/index.php?action=docs;area=solving_install_problems
The problem, strangely, has to do with permission settings which are TOO permissive, on certain hosts, because of the way they have chosen to set things up.
In that case, the web server will simply refuse to serve those files with too-permissive settings. and it gives a 500 error.

To fix the problem, you need to REDUCE the permission settings to a point that the webserver will agree to serve them.

Here's the background: Certain hosts have things set up so that the web server and php deal with your files as though they were you.
This is more convenient, for several reasons, than having them work with your files as if they were nobody at all.
And if things are set up correctly, it is just as secure.

But that also means that anybody who is using your website could potentially have permission to mess with your files and directories, if the software would allow them to do so.  SMF uses logins to make sure that only admins can do "admin stuff".  But the webserver and the php engine cannot know that.  So they follow some very simple rules.  If permissions are set dangerously high, they simply refuse to serve those files until the problem is fixed.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: WantSome on September 12, 2012, 04:22:21 AM
Hey guys!  I've posted this on simpleportal.net but I figured I might get a reply here too (and the quicker the better!)

Today I tried to upgrade from 2.3.4 to 2.3.5 but when I pressed install I got a weird error.  I didn't copy the error, sorry.  And I tried a couple of different things but eventually resorted to manually parsing everything with the code on the smf site for parsing. 

Now my forum is not working, throwing out this error: 

QuoteParse error: syntax error, unexpected $end in /public_html/forum/index.php on line 392

Please help?  In the mean time nobody can use my forum!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Shambles on September 12, 2012, 04:31:28 AM
I find that's usually caused by mismatched { } in your source code. Maybe your edit wasn't correctly applied?

Try pushing your index.php to an online php checker service like this one (http://www.piliapp.com/php-syntax-check/), or dump it here so we can have a ganders
Title: Re: SimplePortal - 2.3.5 Released!
Post by: WantSome on September 12, 2012, 04:41:59 AM
Thanks Shambles!

I've dumped it on that checker you recommended - same error: 
QuoteParse error: syntax error, unexpected $end in CODE on line 392 Errors parsing CODE

It highlights line 392 which is the last line and all it contains is ?> (not that I know anything about code, so perhaps it's assuming I know it means some other line :P )

I'm attaching the file here, and would appreciate any advice!

Yes it is possible that I didn't correctly edit the parsing stuff - I did try to be very careful though!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Shambles on September 12, 2012, 05:24:32 AM
I think you need to put a } on line 221
Title: Re: SimplePortal - 2.3.5 Released!
Post by: WantSome on September 12, 2012, 05:34:20 AM
oh. my. gawd.  I was so stressed and annoyed with myself and it all resolved with one curly bracket.

I love you with my lover, Shambles, that worked!  You're a hero!

Thank you!!!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Orangine on September 17, 2012, 03:50:19 PM
What would be the best way to detect whether I'm on the [home] page from within a template? I want to hide the menu on my portal home page. I know how to do it for pages or forum (just checking $_GET for 'page'/'forum') but on the portal itself the url doesn't show anything.
Any help appreciated :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: tMicky on September 17, 2012, 04:05:56 PM
Hello,

Is there a way to make the recent topics scrolling?
show avatar, next to recent topics in block?
Have the shoutbox open in a new page and add a button to the shoutbox on the main menu?

Also, don't want a separate homepage, want my board index to be the front page, how do I do that?

thanks
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on September 17, 2012, 04:22:29 PM
@tMicky,
To make recent topics scrolling would require some customization. The php code for the recent topics block would be the place to start
The same with other changes to the recent topics blocks.
For more in-depth discussions of these things, I invite you to simpleportal.net, in the customization board.

You can create a special "shoutbox" page using a page, and display that shoutbox block only on that page.
To add a button to the main menu -- please see navigation buttons mods for simple machines.

If you want your board index to be the front page, you will want "integration mode".
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on September 17, 2012, 04:24:52 PM
@Orangine,

It seems to me someone has made this request before, and it may be that Suki came up with a simple solution.
There are two usual places to check -- in the URL, and in $context, but for the life of me I cannot remember.

The interesting thing about the portal page URL is that, typically, there is ?action, no topic, board, or ?msg=  on that page.
It is a process of elimination.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Orangine on September 17, 2012, 04:28:33 PM
figured that much @Angelina, using this for the moment:

if (($_GET["page"]=="") && (!empty($_GET)))
Title: Re: SimplePortal - 2.3.5 Released!
Post by: tMicky on September 17, 2012, 05:33:23 PM
Quote from: AngelinaBelle on September 17, 2012, 04:22:29 PM
@tMicky,
To make recent topics scrolling would require some customization. The php code for the recent topics block would be the place to start
The same with other changes to the recent topics blocks.
For more in-depth discussions of these things, I invite you to simpleportal.net, in the customization board.

You can create a special "shoutbox" page using a page, and display that shoutbox block only on that page.
To add a button to the main menu -- please see navigation buttons mods for simple machines.

If you want your board index to be the front page, you will want "integration mode".
Thank you, this is my first time with a portal.

problem 1:
Unfortunately, every time I activate the shoutbox, I get this:
Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation 'ifnull'
File: ./public_html/Sources/Subs-Portal.php
Line: 1251

problem 2:
How Can I remove date and time from showing in Recent Topics Block.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on September 17, 2012, 07:15:36 PM
The "mix of collations" problem is a database problem.  SimplePortal assumes you will have latin1_general collation on your data tables, and has set up sp_ tables with this collation, but your database actually already had data tables with latin1_swedish collation.

To fix the problem, you need to set the same collation on all the columns of all your tables.  This will take some work in phpmyadmin, or else writing a little script to find and fix all the columns with the "wrong" collation.

Collation, by the way, is related to "dictionary order".  It becomes important when you want to sort things -- order them alphabetically.
MySQL gets confused when you try to match up things that get sorted/ordered differently.

You can remove the date and time from showing in Recent Topics block by changing the code in PortalBlocks.php. This is where the "templates" for all the blocks can be found.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: tMicky on September 17, 2012, 07:23:39 PM
Quote from: AngelinaBelle on September 17, 2012, 07:15:36 PM
The "mix of collations" problem is a database problem.  SimplePortal assumes you will have latin1_general collation on your data tables, and has set up sp_ tables with this collation, but your database actually already had data tables with latin1_swedish collation.

To fix the problem, you need to set the same collation on all the columns of all your tables.  This will take some work in phpmyadmin, or else writing a little script to find and fix all the columns with the "wrong" collation.

Collation, by the way, is related to "dictionary order".  It becomes important when you want to sort things -- order them alphabetically.
MySQL gets confused when you try to match up things that get sorted/ordered differently.

You can remove the date and time from showing in Recent Topics block by changing the code in PortalBlocks.php. This is where the "templates" for all the blocks can be found.
sorry to be a pain, but how do I go about changing the tables. The Simple Portal tables have the latin_swedish info.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on September 17, 2012, 08:27:42 PM
Hmm.  This sounds all backwards.  There are some scripts available to help fix this kind of problem.
Please confirm some things about your SMF installation
1) This is not a UTF8 installation?
2) Most of your tables are latin_general collation?

Based on this information, I can help you with the right set-up parameters for a general-purpose script that will help you do the job.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Orangine on September 17, 2012, 08:29:07 PM
Ok, it didn't break anything, so I thought I will share it with the world:
http://dev2.theforumguys.com/
Title: Re: SimplePortal - 2.3.5 Released!
Post by: tMicky on September 17, 2012, 08:56:24 PM
Quote from: AngelinaBelle on September 17, 2012, 08:27:42 PM
Hmm.  This sounds all backwards.  There are some scripts available to help fix this kind of problem.
Please confirm some things about your SMF installation
1) This is not a UTF8 installation?
2) Most of your tables are latin_general collation?

Based on this information, I can help you with the right set-up parameters for a general-purpose script that will help you do the job.
Yes, most of the tables are latin_general_ci

Is it possible to have the Recent Topics Sidebar, show only on the board index or have it open on the board index, but collapsed everywhere else.

I already removed it from the admin, profile etc. pages, but it still shows on the topic pages.

thanks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on September 18, 2012, 10:45:25 AM
Simple Portal should leave collations alone -- use the default collation for your tables, which should also be the collation used when SMF created your tables in the first place.  But these kinds of changes sometimes happen, anyway.

So here is a general-purpose collation-changing script for MySQL.
1) Back up your entire database before you go any further.  And check to be sure you have got the whole thing. The SMF backup utility times out on some hosts.

2) Fill in the correct information near the top of this script -- some of this information will come from your $Settings file.
3) Fill in the correct collation for your SMF installation I assume this is going to be

$collation = 'latin1_general_ci';
$character_set = 'latin1';

4) Did I mention -- check your database backup?
5) Place the edited script anywhere you can run a php script from, and connect to your database, and point your browser at the correct URL to load that php page
6) remove the script from public access.  It is mostly harmless, but you don't want people randomly touching all your tables.
7) Check to see if the collation problem is solved.

It is absolutely possible to have the Recent Topics block show only on the board index.  Edit that block, and look under Display Options, so you can specify exactly where you want it to show up.


<?
#########################################################################
#########################################################################
##                                                                     ##
## Script coded by Eric Reiche                                         ##
##                                                                     ##
## Version: 0.2 / 2006-08-16 17:35 GMT + 100                           ##
## Version 0.2 contains bugfixes                                       ##
##                                                                     ##
## Inspired by serversupportforum.de user monotek                      ##
## ( http://www.serversupportforum.de/forum/sql/        \              ##
## 9279-kollation-von-tabellen-aendern.html#post67293 )                ##
## [Check link  for bashscript]                                        ##
##                                                                     ##
## Web: http://www.ericreiche.net  ||  Mail: [email protected]  ##
##                                                                     ##
## You can spread this script, until you don't touch this copymark     ##
##                                                                     ##
#########################################################################
#########################################################################


//Config:
  $mysqlserver = 'localhost';    //Host
  $mysqluser = 'username';           //User [It's recomment to use root]
  $mysqlpw = 'password;                 //Password
  $mysqldb = 'db_name';       //Database
  $stepping = 100;               //Queries per Page
  //$tabletoskip = 'really_big_table'; //If you have a really big table, you can enter it here,
                                 //it will be skipped, to prevent a script abort

  $collation = 'latin1_general_ci;
  $character_set = 'latin1';
//End Config

#######################################################################
# Do not change anything from here, until you know what you're doing  #
#######################################################################

if(isset($_GET['start']) && is_numeric($_GET['start'])){
  $start = $_GET['start'];
  if($start > 0){
    $start = $start * $stepping;
  }
}else{
  $start = 0;
}
//mysql connect
@mysql_connect($mysqlserver, $mysqluser, $mysqlpw) OR die("No Conncection to Server. Report: :".mysql_error());
mysql_select_db($mysqldb) OR die("couldn't select database, Report: ".mysql_error());
unset($mysqlserver);
unset($mysqluser);
unset($mysqlpw);

$i = 0;
print('<pre>');
if($start == 0){
  $sql = 'ALTER DATABASE '.$mysqldb.' DEFAULT CHARACTER SET '.$character_set.' COLLATE '.$collation.";\r\n";
  mysql_query($sql);
  print($sql);
}

$sql = 'Show tables;';
$result1 = mysql_query($sql);
while($tables = mysql_fetch_assoc($result1)){
    if($start == 0){
    $sql = 'ALTER TABLE '.$tables['Tables_in_'.$mysqldb].' DEFAULT CHARACTER SET '.$character_set.' COLLATE '.$collation.";\r\n";
    mysql_query($sql);
    print('&nbsp;&nbsp;'.$sql);
  }

  $sql = 'Show columns FROM '.$tables['Tables_in_'.$mysqldb];
  $result2 = mysql_query($sql);

  while($columns = mysql_fetch_assoc($result2)){

    if(substr_count($columns['Type'], 'varchar') || substr_count($columns['Type'], 'text')){
      $i++;
      if($i >= $start && $i < ($start + $stepping)){
        $sql = 'ALTER TABLE '.$tables['Tables_in_'.$mysqldb].' CHANGE '.$columns['Field'].' '.$columns['Field'].' '.$columns['Type'].' CHARACTER SET '.$character_set.' COLLATE '.$collation.';';
        if($tabletoskip != $tables['Tables_in_'.$mysqldb]){
          mysql_query($sql);
          print('&nbsp;&nbsp;&nbsp;&nbsp;'.$i.'. '.$sql."\r\n");
        }else{
          print('&nbsp;&nbsp;&nbsp;&nbsp;'.$i.'. <b>SKIPPED</b>: '.$sql."\r\n");
        }
      }
    }
  }

}
print('</pre>');


  print('<a href="'.$_SERVER['PHP_SELF'].'?start='.($_GET['start'] + 1).'">Weiter...</a>');

?>
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on September 18, 2012, 11:01:53 AM
Orangine -- that site looks lovely -- http://dev2.theforumguys.com/
It makes good use of Bloc's new Blocqs theme.

If you are developing that into a "REAL" site (not just a "dev2" site), then I think that one might really deserve to be featured on the
Simple Portal and SMF showcases.

It looks like this is aiming to be a commercial site (ask a dr.).  It is always interesting to see a free forum like SMF used on a commercial site.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Orangine on September 18, 2012, 12:33:25 PM
Thank you! That means a lot to me :) It is a commercial product, soon to be released to the production server.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on September 18, 2012, 01:28:38 PM
I can see it is a WIP (there are some obvious "spots" that ought to be links, for example). But it looks like it has the potential to be a good
example of how Simple Portal +SMF can be used to create a fully-featured website.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: tMicky on September 18, 2012, 03:06:30 PM
Quote from: AngelinaBelle on September 18, 2012, 10:45:25 AM
Simple Portal should leave collations alone -- use the default collation for your tables, which should also be the collation used when SMF created your tables in the first place.  But these kinds of changes sometimes happen, anyway.
...
Thank you so much for helping, truly appreciated.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on September 18, 2012, 03:35:04 PM
Did that script work?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: ProtoGT on September 26, 2012, 10:55:11 PM
http://gyazo.com/3eb257e531a5ee09c4324dfe9fe80e6f

^ How do I remove the space in between the text and header? I can't seem to find it anywhere in the CSS
Title: Re: SimplePortal - 2.3.5 Released!
Post by: bearstreet on September 29, 2012, 05:20:24 AM
http://simpleportal.net/index.php?topic=11864.msg60202#msg60202
have posted a query at simpleportal.net
posting it here also, in case I can get help here
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on October 01, 2012, 12:10:32 PM
ProtoGT,
Please consider using Firefox's Firebug, IE's F12 developers tools, Safari's Web Inspector, or any other similar tool to look at the topslice.  It is there for CURVE-type themes to give radius corners to the box.

For your theme, you may wish to make custom changes in Portal.template.php, since you don't seem to use radius corners.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: bukharifaran on October 20, 2012, 10:14:03 AM
I have installed Simple Portal 2.3.5 on my forum.

I wanted to count the top contributor in my forum on weekly basis. And this mod have an option to show a block of "Top Poster". But I don't find an option to reset the post count for each week. Is there any option to reset the post count only for Simple Portal, not for the main forum, so that I can select Top poster each week???

Or if resetting is not possible, is there any option to see the stats for a particular week? Like who are the top posters from Oct 15th to Oct 22nd?

Thanks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Shambles on October 20, 2012, 10:45:34 AM
It should reset according to the parameters configured within the "top poster" block itself, under the "Display" dropdown.

I have mine set to "This Week" and my stats reset every Sunday night at midnight. Ish.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: bukharifaran on October 21, 2012, 05:37:32 AM
Right. And can I fix the time at which it should reset along with the "This Week" Setting? Or can I see a report of top posters of previous week?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: NanoSector on October 22, 2012, 02:19:04 PM
On a side note (sorry to interrupt support), good to see you on facebook :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: KensonPlays on November 01, 2012, 11:43:16 AM
I found out that SP installs with no errors on 2.1 Alpha :-)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: WantSome on November 04, 2012, 03:38:33 PM
Hello,  I have a user on my forum that is reporting a strange problem with the portal page and chrome browser.

The user says that when they sign into google chrome, the portal page seems to only load the top half of the page, and the browser tab seems to be loading for ages but nothing after the top half of the page loads, and the user is unable to click anything on the page.

This does not happen on any other browser, and when the user is NOT signed into chrome, the page loads alright.

When the user types in the forum page address (i.e. by-passing the portal page which is our landing page) the forum loads alright and they can browse as usual except the problem arises once more if they click the home/portal page.

The user has cleared cache and cookies, and even reinstalled chrome but the issue persists.

Any ideas as to what this might be?

Thanks!
Title: failed to open stream
Post by: Lou69 on November 04, 2012, 08:15:11 PM
.......
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Lou69 on November 06, 2012, 09:18:25 PM
Are there problems with the SimplePortal.net site? I have registered and requested my validation email several times, still no reply. Also emailed their Info email account and no response.

thanks,
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Game.ruler on November 10, 2012, 03:44:46 AM
Hello, simpleportal is a great mod, i am using it from past 6 months.
But now i am using "mobile Device Detect" mod, in which we have to select 2 themes, 1 for mobile and 1 for pc.
I have selected core theme as mobile theme, and some other new installed theme as pc theme.
Now i want to disable portal for core theme only, means all blocks which i want to add like shoutbox, recent posts etc, only visible in pc theme not mobile theme.
Please help me to disable blocks in core theme.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on November 10, 2012, 03:52:26 PM

Game.ruler,

  To disable SimplePortal for any user using the core theme, perform the following edit:

File: Sources/Subs-Portal.php

find:

if (WIRELESS || ($standalone && (isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']))) || !empty($settings['disable_sp']) || empty($modSettings['sp_portal_mode']) || ((!empty($modSettings['sp_maintenance']) || !empty($maintenance)) && !allowedTo('admin_forum')) || isset($_GET['debug']) || (empty($modSettings['allow_guestAccess']) && $context['user']['is_guest']))


replace with:

if (WIRELESS || ($standalone && (isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']))) || !empty($settings['disable_sp']) || empty($modSettings['sp_portal_mode']) || ((!empty($modSettings['sp_maintenance']) || !empty($maintenance)) && !allowedTo('admin_forum')) || isset($_GET['debug']) || (empty($modSettings['allow_guestAccess']) && $context['user']['is_guest']) || $settings['name'] == 'Core Theme')



Title: Re: SimplePortal - 2.3.5 Released!
Post by: blunted on November 12, 2012, 10:31:15 PM
was wondering if there is a way to change the structure of the link feature in shout box, for some reason my link referral protection only works 1/2 the time so i hoped to hard code the call in.

thank you
Title: Re: SimplePortal - 2.3.5 Released!
Post by: SammehOsborn on November 13, 2012, 02:16:03 PM
How do I increase the height of a block?
I'm trying to get my slider to work properly but

http://puu.sh/1pQf8

I don't want the scroll option to be there, what should I do?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on November 13, 2012, 06:47:49 PM

SammehOsborn,

  For the block's body style enter desired height, width and/or any desired style attribute you wish.
overflow is what is used to disable the scroll bar.

ie.

height:250px;overflow:hidden;

Title: Re: SimplePortal - 2.3.5 Released!
Post by: Game.ruler on November 15, 2012, 08:36:10 AM
thanks a lot underdog, it just worked fine.
Please can you tell me 1 more thing, if there is any way to show only shoutbox in mobile theme, not other blocks?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on November 15, 2012, 09:03:39 AM
Using SimplePortal 2.3.5

Hi, about shoutbox, where can I find the whisper (private chat) code?
I want to change whisper's shouttext to italicized.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on November 16, 2012, 04:38:06 PM

Game.ruler,

  That will require you to perform 2 edits & revert the previous edit I gave you to its default.

First change the previous edit back to its original default configuration.

File: Sources/Subs-Portal.php

find:

function sportal_init($standalone = false)
{
global $context, $sourcedir, $scripturl, $modSettings, $txt;
global $settings, $options, $boarddir, $maintenance, $sportal_version;


Replace with:

function sportal_init($standalone = false)
{
global $context, $sourcedir, $scripturl, $modSettings, $txt;
global $settings, $options, $boarddir, $maintenance, $sportal_version;

if ($settings['name'] == 'Core Theme')
$modSettings['sp_portal_mode'] = 2;





Find:

$blocks = getBlockInfo(null, null, true, true, true);
$context['SPortal']['blocks'] = array();
foreach ($blocks as $block)
{
if (!$context['SPortal']['sides'][$block['column']]['active'])
continue;


Replace with:

$blocks = getBlockInfo(null, null, true, true, true);
$context['SPortal']['blocks'] = array();
foreach ($blocks as $block)
{
if ($block['type'] != 'sp_shoutbox' && $settings['name'] == 'Core Theme')
continue;
elseif (!$context['SPortal']['sides'][$block['column']]['active'])
continue;





The above will disable the home portal page & only allow shoutbox block(s) to function elsewhere on your forum while using the Core theme. The portal will function normally for all other theme's.

Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on November 16, 2012, 05:13:39 PM

PokémonS,

  Hmm.. Try this edit..

File: Sources/Subs-Portal.php

find:

foreach ($shouts as $shout)
{
if (preg_match('~^@(.+?): ~' . ($context['utf8'] ? 'u' : ''), $shout['text'], $target) && $smcFunc['strtolower']($target[1]) !== $smcFunc['strtolower']($user_info['name']) && $shout['author']['id'] != $user_info['id'] && !$user_info['is_admin'])
{
unset($shouts[$shout['id']]);
continue;
}


Replace with:

foreach ($shouts as $shout)
{
if (preg_match('~^@(.+?): ~' . ($context['utf8'] ? 'u' : ''), $shout['text'], $target) && $smcFunc['strtolower']($target[1]) !== $smcFunc['strtolower']($user_info['name']) && $shout['author']['id'] != $user_info['id'] && !$user_info['is_admin'])
{
unset($shouts[$shout['id']]);
continue;
}
elseif (preg_match('~^@(.+?): ~' . ($context['utf8'] ? 'u' : ''), $shout['text'], $target))
$shouts[$shout['id']]['text'] = '<i>' . $shouts[$shout['id']]['text'] . '</i>';

Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on November 16, 2012, 05:20:09 PM
Quote from: blunted on November 12, 2012, 10:31:15 PM
was wondering if there is a way to change the structure of the link feature in shout box, for some reason my link referral protection only works 1/2 the time so i hoped to hard code the call in.

thank you

blunted,

File: Themes/default/PortalShoutbox.template.php

find:

if ($context['can_shout'])
echo '
<div class="shoutbox_input smalltext">
<input type="text" name="new_shout" id="new_shout_', $shoutbox['id'], '" class="shoutbox_input sp_float_left input_text"', $context['browser']['is_ie'] ? ' onkeypress="if (sp_catch_enter(event)) { sp_submit_shout(' . $shoutbox['id'] . ', \'' . $context['session_var'] . '\', \'' . $context['session_id'] . '\'); return false; }"' : '', ' />
<input type="submit" name="submit_shout" value="', $txt['sp_shoutbox_button'], '" class="sp_float_right button_submit" onclick="sp_submit_shout(', $shoutbox['id'], ', \'', $context['session_var'], '\', \'', $context['session_id'], '\'); return false;" />
</div>';


The second input is the shout button.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Game.ruler on November 17, 2012, 04:20:15 AM
-Underdog- You are the hero sir. This just worked perfectly again.
Thanks a lot for helping me. You r really genius.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on November 17, 2012, 04:33:50 AM
Thanks -Underdog-, I edited some code and it works perfectly :D

(http://puu.sh/1r6ia)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on November 18, 2012, 01:23:37 AM
New problem, every week I got this error:

[11-Nov-2012 19:20:21 Asia/Jakarta] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 10021050 bytes) in /home/pokemons/public_html/forum/Sources/Subs-Portal.php on line 755
[18-Nov-2012 07:14:29 Asia/Jakarta] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 10021050 bytes) in /home/pokemons/public_html/forum/Sources/Subs-Portal.php on line 755


Subs-Portal.php Line 755
tourniquet = str_replace($finds, $replaces, $tourniquet);

From
function sp_query_string($tourniquet)
{
global $sportal_version, $context, $modSettings;

$fix = str_replace('{version}', $sportal_version, '<a href="http://www.simpleportal.net/" target="_blank" class="new_win">SimplePortal {version} &copy; 2008-2012, SimplePortal</a>');

if ((SMF == 'SSI' && empty($context['standalone'])) || empty($context['template_layers']) || WIRELESS || empty($modSettings['sp_portal_mode']) || strpos($tourniquet, $fix) !== false)
return $tourniquet;

$finds = array(
', Simple Machines LLC</a>',
', <a href="http://www.simplemachines.org" title="Simple Machines" target="_blank" class="new_win">Simple Machines</a>',
'class="copywrite"',
'class="copyright"',
);
$replaces = array(
', Simple Machines LLC</a><br />' . $fix,
', <a href="http://www.simplemachines.org" title="Simple Machines" target="_blank" class="new_win">Simple Machines</a><br />' . $fix,
'class="copywrite" style="line-height: 1em;"',
'class="copyright" style="line-height: 1.5em;"',
);

$tourniquet = str_replace($finds, $replaces, $tourniquet);

if (strpos($tourniquet, $fix) === false)
{
$fix = '<div style="text-align: center; width: 100%; font-size: x-small; margin-bottom: 5px;">' . $fix . '</div></body></html>';
$tourniquet = preg_replace('~</body>\s*</html>~', $fix, $tourniquet);
}

return $tourniquet;
}


Before this problem, I solved other problem with this method: http://www.simplemachines.org/community/index.php?topic=423482.msg2969724#msg2969724
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Game.ruler on November 25, 2012, 02:23:54 AM
Hi underdog, there is one more problem. Is there any way to make shoutbox block visible in header in mobile theme, and visible in left in pc theme.
Because in mobile theme due to only 1 shoutbox block in left looks odd. If it can be visible in header then it will be best.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Game.ruler on December 02, 2012, 01:28:04 AM
Please anyone tell me how to make footer copyright texts in only 1 single line.
Currently there are 4 lines of copyright.
1st for simplemachines, 2nd for simple portal, 3rd for xhtml rss wap2, and 4th for theme copyright.
i am able to make all in single line except simple portal line. I am not able to find it any of the php files.
Please help.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Howard43Willard on December 03, 2012, 03:02:41 AM
the same block's to side by side, mmm... centered like this
(http://www.rlgf.info/16.jpg)
(http://www.rlgf.info/13.jpg)
(http://www.rlgf.info/14.jpg)
(http://www.rlgf.info/17.jpg)
(http://www.sbqg.info/19.jpg)
(http://www.ryzu.info/10.jpg)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: jeff2081 on December 13, 2012, 05:04:57 PM
I am getting error:

Duplicate column name 'member_name'
File: ......install2.php

I was using 2.3.2 before and have completely uninstalled it before installing 2.3.5

Help would be appreciated? Thanks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: SD-X on December 17, 2012, 01:38:47 PM
Is SimplePortal 2.3.5 compatible with SMF 2.0.3? I don't see why not, since it worked fine in SMF 2.0.2, but I want to be sure before I go and update. :P
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Zuća on December 18, 2012, 08:39:53 PM
Quote from: SugarD-x on December 17, 2012, 01:38:47 PM
Is SimplePortal 2.3.5 compatible with SMF 2.0.3? I don't see why not, since it worked fine in SMF 2.0.2, but I want to be sure before I go and update. :P

it works perfectly on smf 2.0.3
Title: Re: SimplePortal - 2.3.5 Released!
Post by: SD-X on December 18, 2012, 08:50:24 PM
Quote from: Zuća on December 18, 2012, 08:39:53 PM
Quote from: SugarD-x on December 17, 2012, 01:38:47 PM
Is SimplePortal 2.3.5 compatible with SMF 2.0.3? I don't see why not, since it worked fine in SMF 2.0.2, but I want to be sure before I go and update. :P

it works perfectly on smf 2.0.3
Awesome, thank you!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: BCK on December 20, 2012, 09:05:04 AM
once i installed smf forum and added simple portal..i need to put /smf at end of url..after the .com   how can i get it to work without the /smf...so people can just use the url.com not url.com/smf       

thx in advance
Title: Re: SimplePortal - 2.3.5 Released!
Post by: NanoSector on December 20, 2012, 01:30:55 PM
Quote from: BCK on December 20, 2012, 09:05:04 AM
once i installed smf forum and added simple portal..i need to put /smf at end of url..after the .com   how can i get it to work without the /smf...so people can just use the url.com not url.com/smf       

thx in advance
Please move your forum files and run repair_settings.php (http://wiki.simplemachines.org/smf/Repair_settings.php).
Title: Re: SimplePortal - 2.3.5 Released!
Post by: BCK on December 20, 2012, 02:38:13 PM
move forum files..please explain...what files..where etc..
Title: Re: SimplePortal - 2.3.5 Released!
Post by: SD-X on December 20, 2012, 02:42:20 PM
Quote from: BCK on December 20, 2012, 02:38:13 PM
move forum files..please explain...what files..where etc..
Move all of your forum's files to the new directory where you want them, and then run that file he mentioned.

For example, if your forum is at http://www.example.com/smf/, and you want it at http://www.example.com/, then you would move your files there, and run http://www.example.com/repair_settings.php.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Baloch on December 22, 2012, 12:24:41 PM
Hello there,

Yesturday I have upgraded smf but today I got Database and forum's version difference error so as per suggestion I have installed LARGE UPGRADE but before that uninstalled all modules.
After successful upgrade I have re-installed all modules but as I clicked to install Simple Portal it ask me to enter information of FTP USER ID and password.
As I clicked on proceed it generated 500 internal server error.
My hosting company said that SP require writable permission while its not allowed from hosting company. so they advice me to do this installation manually.
Here is the reply of my hosting company.

QuotePlease accept our apologies for the delay. First of all, please note that we do not provide support with the installation of 3rd party software as well as do not provide support with the tracing/debugging/coding/analyzing of 3rd part scripts/software.
However, we have checked the issue you have encountered more closely. Its main reason is that the installation of your 3rd party software requires that some folder should has a writable permissions. But the server your account is hosted on does not allow to execute scripts from folders which do not have 755 permissions and the scripts which do not have 644 permissions. It depends on the global sever configuration and this can not be changed at all.
We recommend you to contact the developers of your 3rd party scripts/software and consult with them whether you are able to install your scripts manually e.g. by copying them to the related folders, etc.
We hope this information will be useful for you.
please advice how to do that.

Looking forward
Raji
Title: Re: SimplePortal - 2.3.5 Released!
Post by: WantSome on December 23, 2012, 09:47:21 AM
Hiya!

I'm getting the following error when I try to create a Top Member Stats block.  I'm trying to exclude inactive members, and this error pops up:

QuoteUnknown column 'lastLogin' in 'where clause'
File: /forum/Sources/PortalBlocks.php
Line: 899
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.2, while your database is at version 2.0. The above error might possibly go away if you execute the latest version of upgrade.php.

I went to look at PortalBlocks.php, and compared it to the one I have on my test forum (which works).  They seem the same.  To be safe, I uploaded a fresh version of the portalblocks.php from the official download but I'm still getting the above error.

If I don't try to limit the inactive users then I don't get this error, so I figure it has to be something to do with the lastlogin time, although I am not sure.

I should mention I'm on smf 2.0.2 and using simpleportal version 2.3.5.  I also don't think it's to do with my database version like the error message implies, but I need advice!

Is there any way to fix this?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: perfec2 on December 28, 2012, 03:33:00 PM
I want to put html text that I will like to display in board index only not repeating in all pages in that board e.g in introduction board, I write description and don't want that same description to be repeated in next page etc but only in board index when clicked introduction board to avoid duplication of same text. 
What would I put in "Custom Display Options"? 
Title: Re: SimplePortal - 2.3.5 Released!
Post by: johnpaul2k2 on December 29, 2012, 05:36:44 AM
is there any way to edit any of my block to contain 4 or 6 or 8 or more small adverts like this
(https://lh4.googleusercontent.com/-y_-sCRXfE1g/UN7Ggx1yrfI/AAAAAAAAAlA/_2AkL-ytpaI/s282/Capture.PNG)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on January 05, 2013, 05:07:17 PM
@WantSome -- what statement is on line 899 of your portalblocks.php?

@Baloch -- many users have encountered this problem when installing Simple Portal and other large mods on certain hosts.
The problem  is related to how SMF attempts to install the mods.  If it encounters a problem writing the directories, it will set the permissions "more permissive" until it thinks it has succeeded.

It should be possible to fix the problem by setting permission to 755 on directories and 644 on files, then doing the install.
At this point, all required files and directories should be writable by the SMF package manager, and it should not try to reset permissions.
The only remaining directory which MIGHT give a problem at this point MIGHT BE the "temp" directory.  For more information, please see
http://simpleportal.net/index.php?action=docs;area=solving_install_problems

@johnpaul -- yes.  It all depends on where your ads come from.
The simplest answer is -- use an HTML block to include the ad code.
Use a table to get them laid out properly.

If some php is required, you will need a php block.  Of course, that means using php to construct your HTML.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on January 06, 2013, 05:23:00 AM
Hi, I am still using SimplePortal 2.3.5 + SMF 2.0.2.

Now, I have a problem, users can chat in shoutboxes, but can`t delete their chat D:
Title: Re: SimplePortal - 2.3.5 Released!
Post by: NanoSector on January 06, 2013, 08:35:45 AM
Hey PokemonS,

I don't know if there are permissions for the shoutbox in SP, but please try to check the permissions of your users or the settings of the shoutbox block.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on January 06, 2013, 09:30:18 AM
I have checked all the permissions and shoutboxes settings, but there are no permission like that D:

I make a new clean shoutbox but users still cannot delete their chat D:
Title: Re: SimplePortal - 2.3.5 Released!
Post by: LOVELORD on January 07, 2013, 10:17:54 AM
I have problem with pages and blocks.. When I use HTML page or block... i cant post whole page... It have limited number of characters... SO can you tell me how to fix this?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on January 07, 2013, 03:48:57 PM
The HTML block and HTML page was never envisioned to be used for really huge HTML content.

There are two ways to approach this, though.
1) Change the size of the field on the table (please search simpleportal.net for more information on this)
2) or else, store the contents (no html, head, or body tag) of the page in a file within your site, and use php or html to include the file.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: LOVELORD on January 07, 2013, 04:13:21 PM
I cant find on simpleportal.net website.. I cant use php block, becouse i have few flash players and they have ' and ; caracters and that make a lot of problem. just html work
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on January 07, 2013, 04:29:04 PM
I used a google search like this: https://www.google.com/search?q=site%3Asimpleportal.net+html+page+limit

The top returned result is: http://simpleportal.net/index.php?topic=3418.0
There are other possible solutions, but this one is easy to find and easy to understand.

Title: Re: SimplePortal - 2.3.5 Released!
Post by: SD-X on January 07, 2013, 04:38:52 PM
Quote from: LOVELORD on January 07, 2013, 04:13:21 PM
I cant find on simpleportal.net website.. I cant use php block, becouse i have few flash players and they have ' and ; caracters and that make a lot of problem. just html work
Depending on the language used, sometimes you can switch between ' and " in HTML+PHP code to prevent conflicts.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: LOVELORD on January 07, 2013, 04:44:24 PM
Quote from: SugarD-x on January 07, 2013, 04:38:52 PM
Quote from: LOVELORD on January 07, 2013, 04:13:21 PM
I cant find on simpleportal.net website.. I cant use php block, becouse i have few flash players and they have ' and ; caracters and that make a lot of problem. just html work
Depending on the language used, sometimes you can switch between ' and " in HTML+PHP code to prevent conflicts.

I use this code

<object data="http://www.domain.com/player/player_mp3_maxi.swf" type="application/x-shockwave-flash" width="200" height="20" align="middle">
    <param name="movie" value="http://www.domain.com/player/player_mp3_maxi.swf" />
    <param name="bgcolor" value="#ffffff" />
    <param name="FlashVars" value="mp3=http%3A//www.domain.com/lista/2012/50.mp3&amp;showvolume=1" />
</object>


And that makes conflict in php... ANd I dont now how to use that in php. I have over 50 players on my website, plus chart top list, and then page is broken. I dont know how to fix this problem. First i want to make custom action page, and this flash player make me problems. Then i try use simplepage html page.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: SD-X on January 07, 2013, 05:05:41 PM
Quote from: LOVELORD on January 07, 2013, 04:44:24 PM
Quote from: SugarD-x on January 07, 2013, 04:38:52 PM
Quote from: LOVELORD on January 07, 2013, 04:13:21 PM
I cant find on simpleportal.net website.. I cant use php block, becouse i have few flash players and they have ' and ; caracters and that make a lot of problem. just html work
Depending on the language used, sometimes you can switch between ' and " in HTML+PHP code to prevent conflicts.

I use this code

<object data="http://www.domain.com/player/player_mp3_maxi.swf" type="application/x-shockwave-flash" width="200" height="20" align="middle">
    <param name="movie" value="http://www.domain.com/player/player_mp3_maxi.swf" />
    <param name="bgcolor" value="#ffffff" />
    <param name="FlashVars" value="mp3=http%3A//www.domain.com/lista/2012/50.mp3&amp;showvolume=1" />
</object>


And that makes conflict in php... ANd I dont now how to use that in php. I have over 50 players on my website, plus chart top list, and then page is broken. I dont know how to fix this problem. First i want to make custom action page, and this flash player make me problems. Then i try use simplepage html page.
A lot of times in PHP pages which contain HTML code, they will use an echo statement, which starts off using " and ends the HTML code with the same thing, to differentiate between languages. If the HTML within those characters contains the same characters, it will bug everything. Try switching all of the " to ' in that code you showed me, and see if it helps.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: haryour on January 11, 2013, 10:20:14 AM
Can someone help on how to let simpleportal blocks show on SMF Gallery without using "allaction"?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on January 11, 2013, 10:42:52 AM
What does a typical URL look like when looking at SMF Gallery pages?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on January 12, 2013, 03:43:23 AM
smf 2.0.3  default theme curve simple portal 2:3.5

After enabling " Top member stats"

Receiving :

http://m y s i te /index.php?
DB error: Unknown column 'lastLogin' in 'where clause'
File: /home/myuser/public_html/Sources/PortalBlocks.php
Satır: 899



code in portalblocks.php   882-889

// Okay load the data :D
$request = $smcFunc['db_query']('', '
SELECT
mem.id_member, mem.real_name, mem.avatar,
a.id_attach, a.attachment_type, a.filename,
{raw:field}
FROM {db_prefix}members as mem
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
{raw:where}
ORDER BY {raw:order} {raw:sort}
LIMIT {int:limit}', array(
'limit' => $context['common_stats']['total_members'] > 100 ? ($limit + 5) : $limit, // Prevent delete of user if the cache is avaible :D
'field' => $current_system['field'],
'where' => $where,
'order' => $current_system['order'],
'sort' => ($sort_asc ? 'ASC' : 'DESC'),
)
);



Any guidance ?

nb.   Looked through the DB. The table entry is "last_login"


lines  867-880
// Last active remove
if (!empty($last_active_limit))
{
$timeLimit = time() - $last_active_limit;
$where[] = "lastLogin > $timeLimit";
}
if (!empty($current_system['where']))
$where[] = $current_system['where'];

if (!empty($where))
$where = 'WHERE (' . implode(')
AND (', $where) . ')';
else
$where = "";




  Is this the same symptom, should I change "lastlogin" to "last_login"   ?
http://simpleportal.net/index.php?topic=11531.msg59051#msg59051


SOLVED :-)

The answer is YES  "lastlogin" should be changed to "last_login" in portalblocks.php
Title: Re: SimplePortal - 2.3.5 Released!
Post by: LOVELORD on January 12, 2013, 09:23:17 AM
Anybody know how to fix this:

I install Simple portal, and ater registration or login users are redirected to forum board, but i want to redirect users to portal, not to http://www.mydomain.com/index.php?action=forum i want to redirect user to index.php page... I look into register and loginbut i cant find solution for this.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on January 12, 2013, 09:27:59 AM
Do you mean ...


Simple portal --> General settings --> Portal mode   ( 3 options there  Portal, integrated and standalone )
Title: Re: SimplePortal - 2.3.5 Released!
Post by: LOVELORD on January 12, 2013, 09:38:38 AM
Quote from: teos55 on January 12, 2013, 09:27:59 AM
Do you mean ...


Simple portal --> General settings --> Portal mode   ( 3 options there  Portal, integrated and standalone )

When I chose other portal mode then Portal  I dont have portal...
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on January 12, 2013, 09:40:11 AM
You have to create blocks to be seen.  Start with the default ones, then you can create php or html blocks ..
Title: Re: SimplePortal - 2.3.5 Released!
Post by: LOVELORD on January 12, 2013, 09:50:26 AM
Quote from: teos55 on January 12, 2013, 09:40:11 AM
You have to create blocks to be seen.  Start with the default ones, then you can create php or html blocks ..

I have already running site... And I found now this problem and want to change. ANd i say how its look like. ALso you have already created blocks when you instalal SimplePortal
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on January 12, 2013, 09:56:54 AM
Last thing I can say, look at the block settings.  In block settings ,  "show block on" should be set to" portal" for your case.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: LOVELORD on January 12, 2013, 10:02:48 AM
Quote from: teos55 on January 12, 2013, 09:56:54 AM
Last thing I can say, look at the block settings.  In block settings ,  "show block on" should be set to" portal" for your case.

I dont have problem with that... I have problem with register and login redirection... It redirect user on forum not on portal.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on January 12, 2013, 10:09:44 AM
Lastd but not the least ...

Did you check  disable login redirection in general settings of simple portal ?

"If this box is unchecked, users will be redirected to the portal after they login or logout. If this box is checked, then users will be redirected to the BoardIndex."
Title: Re: SimplePortal - 2.3.5 Released!
Post by: LOVELORD on January 12, 2013, 10:24:41 AM
I try.. but not working.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: teos55 on January 12, 2013, 10:29:39 AM
Anotherway of getting help is to submit a topic to simpleportal.net with the detailed version and installed mod info.

I've seen similar topics there with different versions of SP.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mick. on February 11, 2013, 06:33:59 PM
This is my attempt to recreate the article main to look like pinterest.  I got the markup done. Now is to modify Simpleportal templates.

http://idesign360.com/community/index.php/page,page358.html

(http://www.idesign360.com/dev/images/pinsp.png)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on February 11, 2013, 08:27:08 PM
That is a different look.  Are you getting a lot of interest in it?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mick. on February 11, 2013, 08:53:46 PM
Quote from: AngelinaBelle on February 11, 2013, 08:27:08 PM
That is a different look.  Are you getting a lot of interest in it?
Not really.   Lately seen plenty of wordpress sites with this style instead of the typical article layout.   I thought of making something similar for SP. Maybe as a plugin or...
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mick. on February 11, 2013, 10:11:00 PM
Here's a 2 column layout and 3 column layout in a 720px space.  My forum sits on a 1200px width with the side bar ar 400px;


Im liking the 2 column layout best for Simple portal.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mick. on February 11, 2013, 11:01:47 PM
The markup is done. Im happy with it.  While looking at the PortalArticles.template.php im hoping to populate the markup tomorrow. Im hoping is going to be easy since its made out of tables.

(http://www.idesign360.com/community/images/2pinlg.png)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mick. on February 12, 2013, 09:32:51 AM
making progress with the PortalArticles.template.php

http://idesign360.com/dev/index.php

Now its time to apply the masonry style.

Title: Re: SimplePortal - 2.3.5 Released!
Post by: DAVID. D.A on February 13, 2013, 04:20:19 AM
Any way to have a promoted posts block with simple portal, like that of portamx?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: DAVID. D.A on February 13, 2013, 04:25:41 AM
...Or is there a way to select specific topics for the board news?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on February 13, 2013, 01:08:05 PM
There is a way to "promote posts"

That is to "add as article".  These articles will then appear on the portal page (if articles are enabled) or in any articles block.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mick. on February 14, 2013, 09:47:02 AM
(http://www.idesign360.com/images/sparticle.png)
Re-designing article layout to a much appealing look.

http://www.idesign360.com/dev/index.php
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on February 16, 2013, 12:29:46 PM
Is it possible to show avatar beside name & date in shoutbox?
Title: Re: SimplePortal Shout Box Block help needed
Post by: onedavester on February 16, 2013, 03:06:51 PM
I have a shoutbox in simple portal  as one of the blocks. I have it set to refresh every 30 seconds. When someone types a shout, it is repeated many times. This is not for all users but it happens a lot. If I type a shout and hit browser refresh, it reposts the shout too.

any suggestions for settings to fix this? I tried decreasing the refresh time to 5 seconds and 0 seconds with the same or similar results.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: DAVID. D.A on February 20, 2013, 05:14:51 PM
Quote from: AngelinaBelle on February 13, 2013, 01:08:05 PM
There is a way to "promote posts"

That is to "add as article".  These articles will then appear on the portal page (if articles are enabled) or in any articles block.
Thanks. how do i set it so latest added articles show up on top first, and not below the last added article.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on February 21, 2013, 12:30:45 PM
pokemanS -- SimplePortal is not written to do that, but you can do that if you customize  the php code for that block.

onedavestar -- I have never seen that (repeated shouts).  It is an odd error, and could be hard to pin down.  DO you have other AJAX things running at the same time?

David, D.A -- the articles are shown in reverse order of when the POST was created, not when they were added as article.
Simpleportal does not contain any code to do this any differently, but there are some customizations which can be used to control behavior to some extent.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on February 25, 2013, 11:00:39 AM
Hi, I am still using SimplePortal 2.3.5 + SMF 2.0.2.

Now, I have a problem, users can chat in shoutboxes, but can`t delete their chat D:
I have checked all the permissions and shoutboxes settings, but there are no permission to allow user to delete their chat D:
I make a new clean shoutbox but users still cannot delete their chat D:
I have uploaded any fresh file that related to shoutbox, but still can't D:

Solution?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on February 25, 2013, 03:16:08 PM
Users are not meant to delete their own chats.  There is a moderator permission to allow a moderator to delete any chats.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Game.ruler on March 08, 2013, 07:53:26 AM
Thanks, just solved my problem.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Alpay on March 08, 2013, 09:13:40 AM
@Mick.

Simpleportal : www.diablofanturkiye.com www.starcraftturkiye.com www.dotaturk.com
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mick. on March 08, 2013, 09:17:17 AM
Quote from: Alpay on March 08, 2013, 09:13:40 AM
@Mick.

Simpleportal : www.diablofanturkiye.com www.starcraftturkiye.com www.dotaturk.com
Looks great man.  Much better than Simpleportal default layout.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on March 08, 2013, 11:06:47 AM
Unfortunately he does not show the Simpleportal copyright on his pages as he's supposed to...

Looks nice though.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Game.ruler on March 10, 2013, 07:41:19 AM
Thanks, just solved my problem.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Game.ruler on March 11, 2013, 09:18:07 AM
Someone please help?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on March 13, 2013, 11:16:35 AM
SP 2.3.5

Hi, how to disable smiley in shoutbox?

Thx.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: demlak on March 17, 2013, 09:06:15 PM
support on this modification is down?
i tried a lot questions in the last few months on simpleportal.net... but no responses =(
Title: Re: SimplePortal - 2.3.5 Released!
Post by: winsoft on April 01, 2013, 12:19:46 PM
Is there anyway to use only sidebars and not the portal view?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on April 01, 2013, 12:21:22 PM
Quote from: winsoft on April 01, 2013, 12:19:46 PM
Is there anyway to use only sidebars and not the portal view?

You can integrate the portal into the forum itself.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on April 01, 2013, 12:22:48 PM
Quote from: demlak on March 17, 2013, 09:06:15 PM
support on this modification is down?
i tried a lot questions in the last few months on simpleportal.net... but no responses =(

Not as far as I know.

However patience is a virtue at times.

:)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on April 01, 2013, 01:31:03 PM
Quote from: PokémonS on March 13, 2013, 11:16:35 AM
SP 2.3.5

Hi, how to disable smiley in shoutbox?

Thx.
nvm already answered here http://simpleportal.net/index.php?topic=12427

Now, Standalone SP doesn't listed as activity in Who's Online, but SP pages still listed in Who's Online. How to repair it?
Title: Restore the SP's copyright in footer
Post by: PokémonS on April 05, 2013, 09:00:32 AM
SP 2.3.5, SMF 2.0.2

Another problem,

Hosting says that my webserver suddenly crashed, just only 10 minutes. After up, somethings wrong with my website, I can't login to cPanel so I request reset password to hosting. Another wrong is in the footer, the SP copyright suddenly in the very bottom from any copyright that isn't very bottom.

(http://puu.sh/2tLmJ)

Is there a way to move the SP's copyright text to after the "SMF 2.0.2 | SMF © 2011, Simple Machines"?

I also asked the same question here: http://simpleportal.net/index.php?topic=12470
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on April 05, 2013, 10:24:22 AM
Pokemon please consider upgrading to 2.0.4 the isuue you are having may  solve itself.

:)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: toastedone on April 19, 2013, 12:57:26 PM
hello, I am trying to set up a front page, but when I set it I get no forum button.

Any help would be appreciated
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on April 19, 2013, 03:54:10 PM
We meet again lol.


I take it there's no errors in the error log?

No test fail when installed?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: toastedone on April 19, 2013, 04:03:21 PM
No, I installed it about a week ago, when i first installed it the feature worked but I decided againts using it at that time, I am using some of its features like pages.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mick. on April 19, 2013, 06:32:51 PM
Quote from: toastedone on April 19, 2013, 04:03:21 PM
No, I installed it about a week ago, when i first installed it the feature worked but I decided againts using it at that time, I am using some of its features like pages.
Do you see it on the 'default' theme?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: toastedone on April 20, 2013, 02:33:08 AM
No I have just tried and there is no forum button
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on April 20, 2013, 06:07:02 AM
SP 2.3.5. SMF 2.0.2.

Hi,

In index.php?action=who, there are no Standalone Portal activity detected, but there are still activity from SP's pages.

Help? Thx.

I also asked here: http://simpleportal.net/index.php?topic=12488.0
But still no one reply
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on April 20, 2013, 04:54:33 PM
Pokemon it is strongly advised that you upgrade to 2.0.4

The sp copyright issue should correct itself when you do.

As for the other issue that is outta my league for which I apologise.

:)

Title: Re: SimplePortal - 2.3.5 Released!
Post by: toastedone on April 21, 2013, 08:03:34 AM
Quote from: toastedone on April 20, 2013, 02:33:08 AM
No I have just tried and there is no forum button

I have since tried another portal, dreamportal and still have the same issue, I have asked on the simpleportal forum for advice without answer, any help would be appreciated.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on April 21, 2013, 10:46:46 AM
Quote from: Old Fossil on April 20, 2013, 04:54:33 PM
Pokemon it is strongly advised that you upgrade to 2.0.4

The sp copyright issue should correct itself when you do.

As for the other issue that is outta my league for which I apologise.

:)

Nothing effect

(http://puu.sh/2EjR4.png)

Again,
In index.php?action=who, there are no Standalone Portal activity detected, but there are still activity from SP's pages.

Help? Thx.

I also asked here: http://simpleportal.net/index.php?topic=12488.0
But still no one reply
Title: Re: SimplePortal - 2.3.5 Released!
Post by: MarkoKg on April 22, 2013, 01:35:40 PM
Hello there all.

I would like to make blocks in header shows one to another, so it's all in one row, like in the picture. I made a new class in css for it and make it 200px width, and it's working, but I can't manage to have them all in one row. Any help please, I don't have an idea where to take a look, and which file to edit.

Regards,
MarkoKg
Title: Re: SimplePortal - 2.3.5 Released!
Post by: FrizzleFried on April 22, 2013, 01:43:26 PM
You need to read the block within a block thread on the Simpleportal forum...

Title: Re: SimplePortal - 2.3.5 Released!
Post by: karde on April 22, 2013, 02:49:10 PM
It's really good, the best thing you can use it as sidebars so don't have to use the portal.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: MarkoKg on April 22, 2013, 03:19:55 PM
Quote from: FrizzleFried on April 22, 2013, 01:43:26 PM
You need to read the block within a block thread on the Simpleportal forum...
Thanks for your answer FrizzleFried! However I'm not able to find anything that could help at SP forum right now, can you please be more specific, I would appreciate it.

Regards,
MarkoKg
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Adrek on April 22, 2013, 03:46:20 PM
Here it is described how to use it => http://simpleportal.net/index.php?topic=5332.0
Title: Re: SimplePortal - 2.3.5 Released!
Post by: MarkoKg on April 22, 2013, 04:24:25 PM
Quote from: phantomm on April 22, 2013, 03:46:20 PM
Here it is described how to use it => http://simpleportal.net/index.php?topic=5332.0
Thank youuuu! :)

It works like a charm  8)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: demlak on April 23, 2013, 12:47:16 PM
SP website is broken.. database error =(
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Abhijit_Guha on April 24, 2013, 10:06:31 AM
not working on my forum http://forum.andro-park.org please Help I want to try this out
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on April 25, 2013, 04:51:54 PM
Quote from: Abhijit_Guha on April 24, 2013, 10:06:31 AM
not working on my forum http://forum.andro-park.org please Help I want to try this out

A better explanation is necessary here.

Why doesn't the mod work?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: PokémonS on April 29, 2013, 05:14:45 AM
Old Fossil,

I already upgraded to 2.0.4 but the SP's copyright stiil in the very bottom.

So, other problem,

In index.php?action=who, there are no Standalone Portal activity detected, but there are still activity from SP's pages.

Help? Thx.

I also asked here: http://simpleportal.net/index.php?topic=12488.0
But still no one reply
Title: Re: SimplePortal - 2.3.5 Released!
Post by: tMicky on May 13, 2013, 07:31:26 PM
nvm, figured out my mistake  :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: tMicky on May 14, 2013, 11:21:57 AM
Is it possible to put 3 blocks side by side.

So for e.g. have the gallery block, recent topics block and an html block side by side in a Header Section.
Rather than having them be on top of each other.

thanks
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on May 14, 2013, 11:29:20 AM
http://simpleportal.net/index.php?topic=5332.0

This link on the Simple Portal forum may help.

Title: Re: SimplePortal - 2.3.5 Released!
Post by: tMicky on May 14, 2013, 11:39:25 AM
Quote from: Old Fossil on May 14, 2013, 11:29:20 AM
http://simpleportal.net/index.php?topic=5332.0

This link on the Simple Portal forum may help.
thank you  :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Ronal2dduff on May 15, 2013, 04:22:00 AM
(http://erem.bescomputer.com/6.jpg)
(http://erem.bescomputer.com/7.jpg)
(http://erem.bescomputer.com/8.jpg)
(http://erem.bescomputer.com/9.jpg)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: tMicky on May 15, 2013, 04:22:53 PM
Can someone help me, if I want to create an html block with it's own stylesheet, where would I place the stylesheets and images I want the block to call from?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: tMicky on May 16, 2013, 09:35:58 AM
nvm
Title: Re: SimplePortal - 2.3.5 Released!
Post by: ryan_dwight on May 21, 2013, 05:44:03 AM
is there a way to remove a scroll bar on the blocks like in the user info block. the size of the block is exactly enough for the info, why it has a scroll bar?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on May 21, 2013, 01:24:20 PM
Quote from: ryan_dwight on May 21, 2013, 05:44:03 AM
is there a way to remove a scroll bar on the blocks like in the user info block. the size of the block is exactly enough for the info, why it has a scroll bar?

ryan_dwight,

  Edit the block you are referring to and enter the following in Custom Body Style:

overflow:hidden;

Title: Re: SimplePortal - 2.3.5 Released!
Post by: ryan_dwight on May 21, 2013, 04:58:36 PM
i appreciate the reply underdog but i can't edit the user info block and i have a custom bbc block which i tried to put your code but it doesn't work
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on May 21, 2013, 09:29:32 PM
Quote from: ryan_dwight on May 21, 2013, 04:58:36 PM
i appreciate the reply underdog but i can't edit the user info block and i have a custom bbc block which i tried to put your code but it doesn't work

ryan_dwight,

  There is no block type named user info, so I assume you are referring to the Member Information block where perhaps you named it User Info?
Edit the block (click on the wrench from the blocks list) and look to the bottom right of it.. where it says Custom Body Style: you should see an empty input box, simply add the text of.. overflow:hidden; into it and save the block.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: ryan_dwight on May 22, 2013, 09:37:56 AM
now i get it thanks for the help underdog.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Retro Lad on May 29, 2013, 11:08:57 AM
I am having an issue. Occasionally, the BB code shows on the "Home" Page of simple portal, even though it is properly hidden in the actual post. Please visit Retro Buffs (http://retrobuffs.com) to see this error currently happening on the 1984 Gremlins Movie Remake (http://retrobuffs.com/index.php?topic=40.0) post.

How do I fix this?

Edit: Since installing the video mod, you can no longer view the error in question because the video pushes the error down the screen. Basically, on the "Home" page it shows the code, but not in the post:  [bExample[/b] vs Example  (I purposefully left a bracket absent to duplicate the error for you.)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Shambles on May 29, 2013, 01:59:56 PM
I can't see any unprocessed bbcode in your article (and I couldn't see it in the actual post, but you then edited your text to explain that).

What are we looking for?

This is what I see:

(http://i.imgur.com/mpMVsTw.jpg)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Mgt Madness on May 30, 2013, 06:33:28 PM
I tried to upload the latest Simple Portal .zip file to the website via the package manager, and when i click on upload, it shows a white screen and when i try and navigate back to the package manager, it shows a white screen, then i would have to the website host control panel and delete the uploaded SimplePortal_2.3.5 file.
Then the package manager would work again

Using the latests smf 2.04


EDIT: just found out that it does this with any mod uploaded
Title: Re: SimplePortal - 2.3.5 Released!
Post by: YogiBear on May 31, 2013, 10:04:17 AM
Welcome. :)

You are suffering from 'White screen of death syndrome'. Here's how to solve it...

http://www.simplemachines.org/community/index.php?topic=502354.msg3531364;topicseen#msg3531364
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Retro Lad on June 02, 2013, 07:42:30 PM
Quote from: Shambles on May 29, 2013, 01:59:56 PM
I can't see any unprocessed bbcode in your article (and I couldn't see it in the actual post, but you then edited your text to explain that).

What are we looking for?

This is what I see:

(http://i.imgur.com/mpMVsTw.jpg)

The code in question when I posted was pushed out of view once I added the embed video player. You can now see it again. "She will be terribly missed. I grew up watching [url=http://en.wik..."  Inside the post, the video shows properly. I am sure it isn't the  Simple Audio Video Embedder http://custom.simplemachines.org/mods/index.php?mod=2681 causing the error either. It existed before I installed the mod, on other text that I had used BB code on. :/
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on June 02, 2013, 07:46:21 PM
Is the url bb code ticked in Admin > Forum > posts and topics > bbc?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Retro Lad on June 02, 2013, 09:33:44 PM
Quote from: Old Fossil on June 02, 2013, 07:46:21 PM
Is the url bb code ticked in Admin > Forum > posts and topics > bbc?

Yes. And the codes work properly everywhere BUT in the simpleportal home page center blocks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Shambles on June 03, 2013, 06:47:15 AM
I see your problem.

Go to "Article Settings" and increase the value you see for the following:

Maximum Characters Before Article Cut-off
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Retro Lad on June 03, 2013, 03:55:27 PM
That did not work. I increased it all the way to 1500 characters and it did not change the amount of characters displayed at all. ?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Shambles on June 03, 2013, 05:16:52 PM
So, your posts are being truncated regardless of the setting I mentioned?

What happens if you posted the offending link/BBcode at the beginning of the article, with some text following, as a test. Can you count the number of characters visible in the article?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 12, 2013, 09:17:09 PM
Retro Lad, this is happening because the tag is cut off in the middle. What remains is not a complete tag, and shows up all wrong.
[url=http://www.ebay.com/itm/181146178129?ssPageName=STRK

Try this: Add a [cutoff] tag where you would LIKE the cutoff to occur.
This could solve the problem.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Burke ♞ Knight on June 18, 2013, 06:20:01 PM
On one of my sites, it seems that I can not add new custom php blocks.
I had copied a site and imported the database, and the rest of the portal and site work fine.
It just pops up with an error when I try to add a block.

QuoteAn Error Has Occurred!

Database error in block code. Please check the code.

The block I'm trying to add has no database calls in it. I even just tried with a line of text.
I can't even add a custom php page without getting the same error.
I've uninstalled every mod that I could think of that I've never run before that may have been a problem, yet still getting the error.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 18, 2013, 10:23:06 PM
This one is a mystery.  I saw your post at simpleportal.net, but had no answer for it.
I asked the founder and developer if he could take a look at it; he is AFK for a little over a week now.

It seems like there is some trouble adding a block to the database; perhaps some problem with the table.
SiNaN would know where to tell you to get started tracking down the problem.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Burke ♞ Knight on June 18, 2013, 10:26:11 PM
Even have the issue on a clean forum with no other mods installed.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: butch2k on June 19, 2013, 01:41:06 PM
Using MySQL or Postgres ?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Burke ♞ Knight on June 19, 2013, 01:45:17 PM
MySQL

It seems strange, but only found out this issue when had similar issue with SMF Download mod. It would not save comments or file descriptions.

I am thinking there may be a solution top the SP in the way the php I was copying was originally coded. I cleaned it up and ended up usinmg HTML Block instead, due to most of the code ended up being html.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: butch2k on June 19, 2013, 03:31:14 PM
are u using mod_security or something similar ?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Burke ♞ Knight on June 19, 2013, 04:52:33 PM
Like I said, I even had same results in clean forum on same server as all my other sites.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: butch2k on June 19, 2013, 05:39:39 PM
I'm speaking of the apache2 module, it filters data and might recognise php code as an attack.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Burke ♞ Knight on June 19, 2013, 05:48:16 PM
Nope. That's where the original code came from. I was working on a site that was already there, just remaking it into SMF integrated site.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: LadyAngel on June 23, 2013, 05:13:23 AM
Thanks for this fab mod, I really like it. Is there a way to set a cut off date when showing the latest posts in a block? Some of my posts are quite old, and in one block only one latest post is showing, though I have set it to show 6.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Burke ♞ Knight on June 23, 2013, 09:22:23 AM
Working in the Pages, how can I change the max character count for the input field?
I tried to add some coding to a page, and it cut it off halfway.

I really don't see why there is a cutoff.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: nick111 on July 04, 2013, 05:15:47 AM
i have un-installed the SP mod on my ver 2.0.4 which results database error


Table 'smfdata.smf_sp_blocks' doesn't exist
File: C:\Inetpub\vhosts\tricksadda.com\httpdocs\Sources\Subs-Portal.php
Line: 369

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


how to fix please?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: brynn on July 15, 2013, 06:08:33 AM
Hi Friends,
I've just been testing out Simple Portal, and so far, I like it a lot.  Although I'm having a problem with Articles.  I can't seem to find any way to write a new article.  And after almost an hour's investigation, I'm getting the impression that an "article" is simply a forum message that just gets called an article so it can be shown in an Articles block.  Is that how it goes?  Or otherwise, how to write a new article?

Thank you very much  :)

And PS - whenever I open any topic in which BK (BurkeKnight) has posted, I get "Address has been blocked" alerts from ESET Smart Security.  They all seem to be related to images hosted at http://www.strpg.cu.cc  (31.22.4.107) and sometimes there are 6 to 8 per page.  I'm assuming they are false positives, since I've been seeing them for a few days now.  But just in the interest of not having a negative light cast upon the name, domain, and/or products which the images might represent, perhaps you'd like to contact ESET to be removed from their blacklist, if these are indeed false positives?  http://www.eset.com/us/ 
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Shambles on July 15, 2013, 08:34:44 AM
Quote from: brynn
... I'm getting the impression that an "article" is simply a forum message that just gets called an article so it can be shown in an Articles block.  Is that how it goes?...
That's how I create "articles" on my forum - they're simply topics added to an article category, thus they can appear within an article block.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: knksyon29 on July 20, 2013, 12:11:28 AM
its seems when i installed this on smf 2.0.4..

the profile tab is not working when clicking the summary, account settings, and forum profile.. its just like having a refresh page..

the theme i was using is gearbox made by dzinerstudio.

anyone can help me out??
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Neo_TE on July 20, 2013, 02:02:15 AM
Quote from: knksyon29 on July 20, 2013, 12:11:28 AM
its seems when i installed this on smf 2.0.4..

the profile tab is not working when clicking the summary, account settings, and forum profile.. its just like having a refresh page..

the theme i was using is gearbox made by dzinerstudio.

anyone can help me out??
You will get better response if you open a support thread at simpleportal.net (http://simpleportal.net)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: knksyon29 on July 20, 2013, 06:20:18 AM
Quote from: xPandax on July 20, 2013, 02:02:15 AM
Quote from: knksyon29 on July 20, 2013, 12:11:28 AM
its seems when i installed this on smf 2.0.4..

the profile tab is not working when clicking the summary, account settings, and forum profile.. its just like having a refresh page..

the theme i was using is gearbox made by dzinerstudio.

anyone can help me out??
You will get better response if you open a support thread at simpleportal.net (http://simpleportal.net)

already posted at there site.. but seriously no one replied on my thread yet.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on August 07, 2013, 05:16:44 PM
Been getting various errors related to my forums Poll block.

Quotehttp://www.xxxxxxhttp://www.xxxxxxxxxx/
Apply Filter: Only show the errors with the same message
8: Undefined index: allow_view_results
Apply Filter: Only show the errors from this file
File: /home/xxxxx/public_html/Sources/PortalBlocks.php
Line: 1237

The polls show with no problem to members but not to guests.

(I'd like the polls to appear to guests but not be able to vote. Is that possible?)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Burke ♞ Knight on August 07, 2013, 05:42:15 PM
I've had same errors.
I just removed the poll block.

As for Guest permissions with polls:
Admin -> Permissions -> General Permissions -> Modify Guest
Scroll down to section: View additional board content
Can select them to be able to View, and not vote.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on August 07, 2013, 05:46:07 PM
Quote from: BurkeKnight on August 07, 2013, 05:42:15 PM
I've had same errors.
I just removed the poll block.

As for Guest permissions with polls:
Admin -> Permissions -> General Permissions -> Modify Guest
Scroll down to section: View additional board content
Can select them to be able to View, and not vote.

The test forum I have showed the block perfectly thankfully.  :o

Just wondering if it is tied in my the forum news (from sm) not showing. ( Not that I'm bothered if it does or not).
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Sudhakar Arjunan on August 07, 2013, 08:35:49 PM
I use the latest version of 2.3.5.

Last week my server load went 99% so i have to remove all mods. Also removed simple portal mod.

Now today after all test and checked server, trying to install simple portal mod and it always ends up to 500 error , because it was try to load longer time.

any advise.  8)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Burke ♞ Knight on August 08, 2013, 05:56:04 PM
Do you have a shoutbox enabled?
If so, make sure that the Auto Refresh is set at 0.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: snadge on August 13, 2013, 07:29:51 PM
Hi

Ive been using the Top Posters Block for ages and its been great, recently we changed it from "all-time" to "this months" and weve just noticed that its dropping every now and again? e,g, i had a page open from hours ago an i had 235 posts, my friend told me about it so i refreshed and right enough it went down to 218...?? i think the overall totals remain the same though so ive asked members to watch them to find out for sure...

can anyone help with this?

we have updated to SMF 2.0.5 but im sure my friend noticed it earlier today before I updated.

thanks
Title: Re: SimplePortal - 2.3.5 Released!
Post by: elf_fu on August 14, 2013, 09:19:20 AM
Good morning!


I am using SMF 2.0.5 with the latest downloaded version of SimplePortal. Recently I have been receiving a handful of errors in my error log from, I think one of my blocks. Can anyone help me figure out what it might be and how to clear it up?


http://gr.2phatgeeks.com/index.php?
2: in_array() expects at most 3 parameters, 4 given
/home/xxxxxxx/gr.2phatgeeks.com/Sources/PortalBlocks.php(3561) : eval()'d code
Line: 3
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Britvica on September 01, 2013, 04:04:03 PM
when i installed simple portal  my recent topics mode (ADK recent topics 1.0) has moved to the portal page. I don't want him to be there i want him to be on the forum page. Can someone help me ?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Kimmie on September 19, 2013, 01:12:26 PM
I have an issue that I am not sure how to resolve. In the block settings you are given the option to have it show "Topics" or "Posts" but in the block it is showing both and I don't want to. I only want it to show topics. I actually wanted two have 2 blocks - one that showed topics and one to show posts, but they both show the exact same things  (which is both).

How do I fix that?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Burke ♞ Knight on September 19, 2013, 01:27:15 PM
Topics show the topics that have last been posted in.

Posts show the actual last post.

If seeing them both showing the same, means that the last posts were new topics. They will be the same, until topics get replied to.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Kimmie on September 19, 2013, 01:36:57 PM
Quote from: BurkeKnight on September 19, 2013, 01:27:15 PM
Topics show the topics that have last been posted in.

Posts show the actual last post.

If seeing them both showing the same, means that the last posts were new topics. They will be the same, until topics get replied to.

oh ok. I was under the impression Topics meant it would only show the new topics that were created not the reply posts as well. It kind of defeats my purpose of using it. Thanks for the quick reply :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: ryan_dwight on September 21, 2013, 02:43:11 PM
i don't know if this was already asked but i cant find any answer in the search results.

i s there a way for the content of each block to be auto resize? because if you browse a forum on a mobile the bottom block content is overlapping to the right block.

Thank you
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Bigguy on September 23, 2013, 04:19:05 PM
Simple Portal seems to be down.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Burke ♞ Knight on September 23, 2013, 04:22:14 PM
Been down all day. :(
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Bigguy on September 23, 2013, 05:24:04 PM
That's not good.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: xpubstargamingx on September 26, 2013, 09:55:16 AM
I am using SMF 2.0.5 and I notice that when I switch themes the SimplePortal page is still using the SMF Default theme.

Any help would be greatly appreciated.

Site: http://pubstargaming.com

This was not an issue for me when using 1.1.18 so it seems to be more of a 2.0.5 support topic.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: ryan_dwight on September 26, 2013, 09:59:09 AM
on the admin page under simpleportal >>>>configuration >>>>general settings there you can change theme under portal theme
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Realinfo on September 30, 2013, 09:35:26 PM
Sir
   

In Board News , Instead of first post of new topic I need to have Last post of recent topic

Please guide how we can do it,

Is it possible by board News Block or some other block is there

Thanks

2.0.5 Default theme, 2.3.5 Simple Portal
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Kyrianchigozie on October 03, 2013, 08:32:48 AM
pls i want to install simple portal but it is teling me Unable to load the 'Portal' template, pls help
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Kyrianchigozie on October 03, 2013, 08:35:05 AM
and am using smf 2.05 wit simple portal 235
Title: Re: SimplePortal - 2.3.5 Released!
Post by: BFS010 on October 03, 2013, 08:40:40 AM
Simple Portal is awesome!  I can't believe how powerful and flexible it is.

I have to beg help for one question.  I have a complex action

action=form;n=1;submit

and if I use a wildcard, this does not work
~action|form;n=1;submit

but this does:
~action|form

But it is the more complex action I need.  I think what is happening is, the semicolons in "~action|form;n=1;submit" are being parsed, so that all pHp sees is ~action|form

Is that correct?

If so, is there a pHp function I could add that would keep the semicolons from being "read" until later, something like

"~action|form str( ; ) n=1 str( ; ) submit"

where str( ) is the name of such a function?  If not this, is there something else?


I tried using the "number" for semicolons


"~action|form &#59; n=1 &#59; submit"

but sadly the Simple Portal editor turned them into semicolons.

THANKS!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Kyrianchigozie on October 03, 2013, 08:55:20 AM
k hv seen d problem is from my host php settings, it has been corected nw. rnx very much
Title: Re: SimplePortal - 2.3.5 Released!
Post by: krittin98 on October 05, 2013, 12:26:22 PM
problems in installing shotbox

Database Error
Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation 'ifnull'
File: /home/theteamk/public_html/Sources/Subs-Portal.php
Line: 1251

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.5, while your database is at version 2.0.3. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: kat on October 05, 2013, 03:25:21 PM
If you look at this earlier post...

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

...you'll see a likely solution. :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on October 05, 2013, 05:47:49 PM
Quote from: Kyrianchigozie on October 03, 2013, 08:55:20 AM
k hv seen d problem is from my host php settings, it has been corected nw. rnx very much

Glad to see you got this sorted however would you please make sure future posts are written correctly and NOT using text speak.

Also the more information you give the more folks are in a position to help you.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: krittin98 on October 06, 2013, 11:47:19 AM
Quote from: K@ on October 05, 2013, 03:25:21 PM
If you look at this earlier post...

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

...you'll see a likely solution. :)
it says something about collation
but what is upgrade.php?
how should I use it to upgrade my database to SMF 2.0.5 as the error says my database is in accordance with SMF 2.0.3?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on October 10, 2013, 04:18:49 PM

krittin98,

  Are you still having issues with this? I wrote a tool a while back that adjusts your database tables to a common collation.
Try it out if you wish: http://webdevelop.comli.com/index.php?topic=32.0

  Imo remember to first backup your database prior to using the collation tool to be on the safe side.   
Title: Re: SimplePortal - 2.3.5 Released!
Post by: krittin98 on October 11, 2013, 01:32:33 PM
installed that mod
but after installation I get redirected to this message
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 'binary' at line 1
File: /home/theteamk/public_html/Packages/temp/SMF2/db-changes.php
Line: 44

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.5, while your database is at version 2.0.3. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on October 11, 2013, 10:42:26 PM

krittin98,

  Thanks for reporting the issue. I have used the mod on both local and live installations without issue but none the less I have adjusted the code. Delete v1.1 that you downloaded and try installing/using version 1.2 (http://webdevelop.comli.com/index.php?topic=32.msg491#msg491).

Please let me know if it works for you within the mods thread.

Thank you.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: maxmoto on October 24, 2013, 09:36:59 AM
is it possible ussed  an other Shoutbox than the  this slow in SimplePortal?
if i installed the Box from SMFHacks  it will show on the Top of the Forum but i need it on the Portal

Anybody here that can help me
Title: Re: SimplePortal - 2.3.5 Released!
Post by: margarett on October 24, 2013, 09:42:51 AM
For questions related to the MOD, you should ask it's author, in the MOD support topic (in this specific case, the MOD I'm referring is SMFHacks's box you want to display in the portal).

Now, why isn't SP's own shout not working for you?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: maxmoto on October 25, 2013, 02:48:30 AM
Yes it is SMF Hacks Shoutbox because the Box  from SimplePortal  is so slow.
On SP Boards nobody answer and the SP Site is down since i use SP.

Title: Re: SimplePortal - 2.3.5 Released!
Post by: margarett on October 25, 2013, 06:03:32 AM
The "slowlyness" is probably caused be the refresh of the shout. It will happen with *ANY* shout you use and it has to do with the refresh mechanism that is used in the shout boxes, plus the response capacity of your server. Who's your host?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: maxmoto on October 30, 2013, 08:30:43 AM
Germany 1&1  but the SMF Hack works perfect and i want youse it, but i need it on the Portal not in the Board
Title: Re: SimplePortal - 2.3.5 Released!
Post by: margarett on October 30, 2013, 08:39:33 AM
I guess it should be possible to do so, then... Dunno, I don't use neither portal neither shout :P
You should ask it that MOD's support topic, really ;)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: [SiNaN] on October 30, 2013, 05:07:38 PM
SimplePortal shoutbox is not slow. There aren't any mods with the name "SMF Hacks" or "SMF Hacks Shoutbox". I don't really understand why people are asking us to make SimplePortal support every mod out there, rather than asking the authors of those mods to support SimplePortal. Thanks to that, I got to know a great deal of mods available for SMF in great detail after spending lots of precious time I could've spent on something more productive. Anyway, if the shoutbox you are using is "A SMFPacks.com Shoutbox" then the following post should help you:

http://simpleportal.net/index.php?topic=12870.msg64059#msg64059
Title: Re: SimplePortal - 2.3.5 Released!
Post by: kat on October 30, 2013, 05:22:19 PM
Probably means this:

http://custom.simplemachines.org/mods/index.php?mod=1295

I'd use the SP one, over that one, any day. :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: maxmoto on October 31, 2013, 04:11:35 AM
Quote from: K@ on October 30, 2013, 05:22:19 PM
Probably means this:

http://custom.simplemachines.org/mods/index.php?mod=1295

I'd use the SP one, over that one, any day. :)


yes, this one is great but oi want use it on the Portal site at the Place where SP included is, but my Coding is not so that i can put this Shoutbox myself on the Portal site.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: GleamPlay.com on November 09, 2013, 06:21:21 AM
Is it possible to have a Buddy Online List left-side block for my SimplePortal?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Davotron on November 15, 2013, 07:35:42 PM
Hi there, Love simple portal. It was working great on my side for a day or two but now the portal is on every page for some reason and I can't use my forum. Any suggestions?

Title: Re: SimplePortal - 2.3.5 Released!
Post by: margarett on November 15, 2013, 07:48:47 PM
What changed meanwhile?! You sure agree that it just didn't decide not to work, right? :P
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Davotron on November 16, 2013, 07:24:56 PM
I didnt change anything meanwhile. No settings or uploads to ftp. It was just getting normal use. Now I can't even get to admin settings because it just shows portal page.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on November 19, 2013, 02:55:47 PM
Is it a standalone portal or a front-page portal?
When you click on "admin" what does your URL look like?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Davotron on November 19, 2013, 07:15:47 PM
It's a front page portal. Not Standalone.

http://www.ausvgc.com/index.php?action=admin
The links are fine they don't all go to the same page it just seems the portal is over-top of every page.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: kimnue on November 20, 2013, 11:43:15 AM
got problem about install simple portal and it cause first page of smf slow also.  anyone has idea how to fix it. :-X
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on November 20, 2013, 11:44:44 AM
You will need to explain what the problem is so we can assist you more.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: jeanineh on November 22, 2013, 06:19:08 PM
I have a couple questions that I hope someone can help me with. I have the 2.0.6 smf forum and downloaded the latest simple portal. I've been working with it in the maintenance mode and have finally gotten it to look somewhat like I want it to, for now anyways.

The problem I am having is when I take it out of maintenance and check it out the top category on the forum has gone all the way over to the left as if it is a left column. The other problem is when I check it out as a 'guest' the home portal does not look like it did. It now has a lot of empty space on both the left and right columns where it didn't before. I don't see this as admin or reg. member, just guest?

Any ideas? BTW, I really like this and think it was a fantastic idea!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on November 22, 2013, 06:22:08 PM
Can we see a link to the forum?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: jeanineh on November 22, 2013, 06:24:53 PM
Thanks for your quick reply! I just took it out of maintenance mode and will leave it out for a few minutes if you have the time to take a quick look. Appreciate it.

http://www.emptynestmomsforum.com/forum/index.php
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on November 22, 2013, 06:28:49 PM
Is it the contact block with the error?

Title: Re: SimplePortal - 2.3.5 Released!
Post by: jeanineh on November 22, 2013, 06:34:14 PM
I guess you could say that. I had some more topics but deleted them but it still did the same thing for the top category? What did the home portal look like to you? Did you see the white space on the left and right column? Thank you soooo much for looking. I'm a bit tech challenged so it takes me a while to figure things out.  ???
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on November 22, 2013, 06:36:45 PM
Which block do you use for the contact block? Is it a left block or header?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: jeanineh on November 22, 2013, 06:41:32 PM
Well actually it is neither. What I had before was about 4 different topics in the top category on the board. When I went to check it out it had moved over to the left and this was when I first stated working on it. I tried to delete it but the next category that was there did the same thing. It only seems to be the top on. I thought maybe there was some sort of setting that I was missing or something? I would like to take that off and have all of them the same (full across the board).
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on November 22, 2013, 06:46:13 PM
QuoteI would like to take that off and have all of them the same (full across the board

I'd have a look at using the header block.  :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: jeanineh on November 22, 2013, 06:49:25 PM
Well since I don't have one on the home portal maybe I will go and work on one now. Could it be that simple? ;D (we shall see!) Thank you very much kind sir for your help.  :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on November 22, 2013, 06:51:36 PM
Your welcome.

:)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: jeanineh on November 22, 2013, 07:20:00 PM
Ok, me again. :( I put a temporary headed up on the portal page and tried adding a new top category on the forum but it still seems to be doing the same thing. Knew it couldn't be that simple. :'( Any more ideas? I still have it out of maintenance mode for now.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: workinonstuff on November 22, 2013, 11:25:58 PM
Could any one tell me how to enable shout box for guest?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on November 22, 2013, 11:29:42 PM
Quote from: workinonstuff on November 22, 2013, 11:25:58 PM
Could any one tell me how to enable shout box for guest?

Have you loked at the permissions?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: workinonstuff on November 22, 2013, 11:40:24 PM
Yes, I have tried several different settings.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: GleamPlay.com on December 07, 2013, 09:03:22 AM
May I ask how to make Default Avatar mod work in the Top Posters block in Simple Portal?
Default Avatar Mod: http://custom.simplemachines.org/mods/index.php?mod=2665

Because the Top Poster block in my SMF show no image instead of the default image.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: br360 on December 08, 2013, 07:46:20 PM
A while back I installed this mod and somehow messed something up when I tried to uninstall. I have tried to manually uninstall it, but because I have added quite a few other mods since then, I am having an incredibly hard time removing the code from subs.php. without getting parse errors.

My question is; if I am able to remove everything else from the other files, and then drop the tables in the db, will I cause any problems by leaving the code in just  the subs.php?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on December 13, 2013, 07:30:54 AM
br360,

  Indeed you will need to remove SP's edits from that file or from any file for that matter. A possible solution for you is to clean everything up by using the SMF Large Upgrade package, Hooks Removal and then install all your mods anew.

SMF Large Upgrade Package (http://download.simplemachines.org/index.php?thanks;filename=smf_2-0-6_upgrade.zip)
Replacing current files with upgrade package files (http://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files)
Upgrade Instructions (http://wiki.simplemachines.org/smf/Upgrading)
Hooks Removal (http://webdevelop.comli.com/index.php?action=dlattach;topic=33.0;attach=26) (removes previous leftover hooks)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: marcusslavorum on December 13, 2013, 07:32:38 AM
Is there a way to have SimplePortal in root while leaving actual SMF Forum in /forum folder?

I had wordpress in root while had smf in /forum folder and i'd like to remove wordpress and maybe use simple portal instead of it. Moving whole forum from /forum folder in root is not an option as it would hurt my seo.


what i mean is, if i remove the wp blog, my domain.com will be empty. Can i just use "Standalone URL" option of simple portal and fill in my main domain that way or?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on December 13, 2013, 10:37:20 AM
marcusslavorum,

  Please read the documentation from the link for basic instruction:
http://simpleportal.net/index.php?action=docs;area=set_up_standalone_portal

Title: Re: SimplePortal - 2.3.5 Released!
Post by: marcusslavorum on December 13, 2013, 03:42:52 PM
Thanks, i guess that might solve the problem yes. Tell me is there a way to import/convert existing Wordpress articles into SimplePortal ones?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on December 14, 2013, 10:14:34 AM

marcusslavorum,

  With the current version you can only use in house topics for articles. You will need someone to create a custom block and/or plugin that does the task you request. Post your request in the appropriate board (http://simpleportal.net/index.php?board=56.0) at the Simple Portal website where someone may fulfill your request.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: br360 on December 15, 2013, 02:32:05 AM
Quote from: -Underdog- on December 13, 2013, 07:30:54 AM
br360,

  Indeed you will need to remove SP's edits from that file or from any file for that matter. A possible solution for you is to clean everything up by using the SMF Large Upgrade package, Hooks Removal and then install all your mods anew.

SMF Large Upgrade Package (http://download.simplemachines.org/index.php?thanks;filename=smf_2-0-6_upgrade.zip)
Replacing current files with upgrade package files (http://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files)
Upgrade Instructions (http://wiki.simplemachines.org/smf/Upgrading)
Hooks Removal (http://webdevelop.comli.com/index.php?action=dlattach;topic=33.0;attach=26) (removes previous leftover hooks)

Thank you for the help and the links. I asked the same question on the Simple Portal site, and luckily [SiNaN] was able to help me remove the rouge code from my files.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: D!esel on December 15, 2013, 07:12:35 AM
Hello,

Iam new with SMF since Today i have a short question..................

What i have to edit that only Articles are showing up on Portal Page?!

I dont want that Forum Posts are SHowed Up there.

Regards

Edit:

Found it :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: jonesH on December 19, 2013, 09:46:06 AM
In the hopes I am posting this in the right sectn, here is my issue:

How to make a Right Side Block (e.g. showing latest ten posts) show itself open (maxed) by default whenever the forum start-up page (BoardIndex) launches?

I run SP in Integration mode, and upon login users land on the boardindex page. I want the block to show open by default, and I also want the block to not show (at all, not even minimized) on any other pages.

Can be done?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: br360 on December 19, 2013, 11:17:40 AM
Yes, it can be done. Keep the SP setting in Integration mode. Then go to block list, and where you see display options make sure you set it to Portal in the "show block on" and then type in forum where it says "Custom Display Options"

That will show the right side block on only the index page, and will disappear when someone opens a board, link, etc.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: jonesH on December 20, 2013, 08:06:28 AM
It worked like a charm. Thank you!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: ftab4me on December 27, 2013, 10:31:36 PM
I am getting the attached error when I AM trying to install this mod. And no, this field does not exist in my test database. Thanks for looking and any help you can provide.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: ftab4me on December 28, 2013, 12:32:37 AM
OK more information.

I found the following fields were added to the end of the database and do not start with smf_ like the rest of the fields;

sp_articles
sp_blocks
sp_categories
sp_functions
sp_parameters

It appears that Simple Portal installed the new database fields without adding the smf_ and is looking for it "see post above". How do I rename the fields to add smf_ to these fields?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: ftab4me on December 28, 2013, 01:26:15 AM
OK More information. I added the prefix smf_ to sp_functions in other words smf_sp_functions. When I try to install Simple Portal again, it renames smf_sp_functions to sp_functions thus causing the error as attached above.

I do not know what else to try at this point.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: ftab4me on December 28, 2013, 02:01:25 AM
Alright than.

Found the problem and successfully installed the mod. It appears that the author is not paying attention to the MySQL table prefix: field. When I changed the field to empty/blank meaning no data and removed the table prefix from my database, the mod installed fine.

Hopefully, the author will fix this in a future release.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on December 28, 2013, 02:58:47 AM
ftab4me,

  The author knows precisely what he is doing. It is something that you are doing wrong or have set incorrectly with your configuration that is awry which is causing your issue. Ensure all settings in the Settings.php file are correct and also make sure your settings from Admin->Server Settings->Database and Paths are correct. (Database Prefix, Database Name)


Title: Re: SimplePortal - 2.3.5 Released!
Post by: ftab4me on December 28, 2013, 04:21:20 AM
Thank you for your comments. To make 100 percent that one of my other mods was not causing a conflict, I will setup a clean test system tomorrow. I will load 2.0.6 and create a new database and load only this mod.

Either way my findings do correct this error on an existing system. By doing a search on this very long thread  this problem has appeared several time without a solution.

More info to follow after my test.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on December 28, 2013, 03:08:07 PM

ftab4me,

  I can't seem to duplicate the issue you were having. I attempted to create fresh local SMF installations with db names & db prefixes identical to what appeared in your error image at SP without any problems during those tests. I am glad to here you got the issue sorted by manually adjusting tables although not an ideal solution.

Regards.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: ftab4me on December 28, 2013, 04:37:03 PM
-underdoq-

Will I tried several different combinations and still had the problem with the prefix. just for grins I downloaded a fresh copy of the mod and now everything is working fine. Beats the heck out of me what was going on. Good news is that everything now appears fine.

Thanks for your help.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: mulwa on December 28, 2013, 07:05:52 PM
Please how do i disable side panel or blocks from some themes? I only want to disable the side blocks. Thank You
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on December 28, 2013, 07:55:49 PM

mulwa,

  There are general overall settings to disable them (in all themes).
Admin->Simple Portal->Configuration->Block Settings

  You only want to hide those in specific themes? I will need to create a plugin or possibly some js to be put in a html block for that.
   
Title: Re: SimplePortal - 2.3.5 Released!
Post by: mulwa on December 29, 2013, 08:50:00 AM
underdog thank you for quick reply. Please if you will cause i know you can, help me how to disable or remove the left and right panel on some themes without it affecting other themes. I need a code for that. Thank you and have a nice day
Title: Re: SimplePortal - 2.3.5 Released!
Post by: mulwa on December 31, 2013, 09:06:31 PM
i used  "curve mobile theme" and when i installed simple portal it was not appearing on the theme. So i copied the index.template.php from "default theme" and replaced the one in "curve mobile theme" and it started showing all the blocks. But pls how do i disable the right and left panel from showing? I guess the scrip to be edited is in index.template.php but i don't know how, Please i need someone's help! Thank you for your time.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on January 03, 2014, 10:48:13 AM
mulwa,

  Sinan has responded to your request on the Simple Portal website.
ref. http://simpleportal.net/index.php?topic=13091.msg64794#msg64794
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on January 23, 2014, 04:56:37 PM
The SP site seems unavailable at present.  :(

I'm toying with the idea of making just one gallery folder available as a seperate block from the main gallery portal block.

Can this be done?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: SD-X on January 23, 2014, 05:01:32 PM
Quote from: Old Fossil on January 23, 2014, 04:56:37 PM
The SP site seems unavailable at present.  :(

I'm toying with the idea of making just one gallery folder available as a seperate block from the main gallery portal block.

Can this be done?
In theory, I don't see why not. I believe SimplePortal allows you to make your own custom blocks in addition to the administrative code block functions built into the Admin panel.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: MotRude on January 23, 2014, 09:07:31 PM
I Have a question about the simpleportal block top posters..can this block display top posters going across instead of down?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on January 23, 2014, 09:10:01 PM
Quote from: MotRude on January 23, 2014, 09:07:31 PM
I Have a question about the simpleportal block top posters..can this block display top posters going across instead of down?

It depends on the location. To do as you mention then either a header, top or bottom block would do.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: MotRude on January 23, 2014, 09:25:26 PM
i was gonna try and put it in the header on forum but it only displays down and not across...can't find a setting to change it.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Baloch on January 24, 2014, 01:57:14 AM
Is it compatible with SMF 2.0.7 ? do u recommend us to upgrade our SMF?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: margarett on January 24, 2014, 06:02:27 AM
Quote from: Baloch on January 24, 2014, 01:57:14 AM
Is it compatible with SMF 2.0.7 ? do u recommend us to upgrade our SMF?
Yes and yes :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: MotRude on January 25, 2014, 09:49:33 PM
I Have a question about the simpleportal block top posters..can this block display top posters going across instead of down?

QuoteIt depends on the location. To do as you mention then either a header, top or bottom block would do.

The Header,top and bottom block i see no way of making this block display across..
Title: Re: SimplePortal - 2.3.5 Released!
Post by: electricwildflower on February 04, 2014, 07:44:54 AM
If you can help me i need abit of help

I have a box on my portal which grabs latest posts from certain parts of my forum now these parts are for posting flyers, news etc but i have a problem. Sometimes when i post flyers there rather large they look ok in the forums but on a portal block i end up with a horizontal scroll and half the photo cut out.

would there be any way i could edit the block so no matter how big the photo, flyer is in the forums it will shrink it on the block so it looks better ?

Thanks :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: NekoJonez on February 04, 2014, 12:49:23 PM
Is there an update in the works?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on February 04, 2014, 04:01:34 PM
electricwildflower,

  Look at this block code: http://webdevelop.comli.com/index.php?topic=71.0
Adjust it to only alter image sizes within the needed container id.

Also for your actual block that is displaying these images, enter the following into Custom Body Style:
overflow:hidden;
   
  In this specific case you can attempt changing the container id to sp_center which will set the image max width & max height for all your center blocks (unless you edit the html output to use another id in one of those div containers). Also adjust those max values as they are at 200x200 in that example.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: TheListener on February 04, 2014, 06:37:06 PM
Quote from: NekoJonez on February 04, 2014, 12:49:23 PM
Is there an update in the works?

2.3.5 is the latest version and works perfectly as it is at present.

Whether a newer version is on the horizon is unknown.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: electricwildflower on February 04, 2014, 06:45:28 PM
Thanks for the reply but i think i might of worded it wrong or you misread it.

I have a block called board news which i picked a couple of boards from the list and it shows the latest posts from said boards and the boards i pick have pics, flyers etc posted which when showed on the block don't come out right as in overflow happens. I want to have the board news block shrink any photos that pass through it.

i have looked around the block settings but apart from picking which boards to show there is no custom html input box or anything. Oh and thanks for the link will come in handy sometime when i want to do a custom block . :)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on February 04, 2014, 09:07:19 PM
electricwildflower,

  I believe I do understand what you are attempting to accomplish and I provided one solution that may be satisfactory. You simply create a new html block on your home page which contains javascript that will control the max height & width of all your center blocks (which includes your forum news block containing images within their message bodies).

Step #1:
  Edit your forum news block and look to the bottom right of the page where you will see an input titled Custom Body Style and enter the following into the input box located there:
overflow:hidden;

.. now save the block. (this is most likely unnecessary due to the next step but do it anyway as it will forcibly disable any scroll bar within that block)

Step #2:
  Create a new custom HTML block (ie. footer block), look to the bottom of the page where you will see two check boxes titled No Body & No Title. Ensure both check boxes are selected/checked.
Use this code for that block:

<script type="text/javascript">
window.onload = function()
{
   var maxHeight = 1000;
   var maxWidth = 600;
   // var whatid = document.getElementById("portal_main");
   var whatid = document.getElementById("sp_center");
   var img = whatid.getElementsByTagName("img");

   for (var i = 0; i < img.length; i++) {

      if (img[i].height > maxHeight)
         img[i].height = maxHeight;
         
      if (img[i].width > maxWidth)
         img[i].width = maxWidth;
   }
}
</script>


... you only need to edit the lines shown below to the maximum desired height & width for those images.

   var maxHeight = 1000;
   var maxWidth = 600;





  That should work for you. Another option is for me to give you an edit for the code that displays that block. Possibly using DOM to forcibly add max width/height style attributes to each img tag. First try what I just posted here and let me know if it resolves your issue.
I tested this and it works fine for me.

Regards.


Example images for Forum News & the above HTML block style settings are attached. The style settings are located at the bottom of the page when editing blocks in SP admin.


Title: Re: SimplePortal - 2.3.5 Released!
Post by: NekoJonez on February 05, 2014, 06:39:13 AM
Quote from: Old Fossil on February 04, 2014, 06:37:06 PM
Quote from: NekoJonez on February 04, 2014, 12:49:23 PM
Is there an update in the works?

2.3.5 is the latest version and works perfectly as it is at present.

Whether a newer version is on the horizon is unknown.

Since I have some things that could use updating. Like there is no color legend in the who's online, and they are all listed under eachother... I wish it looked more like the who's online at the forum index.

Or is that possible with a small code change?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: MotRude on February 05, 2014, 08:19:19 PM
I Have a question about the simpleportal block top posters..can this block display top posters going across instead of down?

I Want it to display across on the forum not the portal..

(http://s10.postimg.org/elsgg991l/Add_Block.png)
Instead of the avatars going down i wanted them going across like ezportal.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Stirius on February 06, 2014, 10:46:15 AM
Guys, after migration of the forum there is a problem. If I go to http://forum.boiians.cz/forum/index.php then it is ok. But the link at the top left Forum http://forum.boiians.cz/index.php?action=forum then it is impossible to save the cookies and you must login all the time. Any ideas why is that so? How to correct it?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on February 06, 2014, 04:45:50 PM
Stirius,
  Are you positive you have the server settings set correctly for paths & URL's? Your forum appears to work off of 2 directories for whatever reason (.htaccess, BIND config or 2 directories?).

Try adjusting your forum url setting to have forum in it like the first url you posted.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: johnpaul2k2 on March 11, 2014, 04:35:10 AM
I am having a little issue there. and this is what i want to achieve

I want to disable my Forum index ( i mean every aspect of Boards, child boards, remaining the logo, menu and footer ), then add whatever i like through Simple portal Blocks.

If i disable through    
Administration Center »
Configuration »
General Settings >>>  Portal Mode>> , everything will go OFF , including the Blocks I want them to show , in place of index

Please who can help me solve it out
Title: Re: SimplePortal - 2.3.5 Released!
Post by: WCFA on March 23, 2014, 11:43:37 AM

Hi there tried asking on  SP website they must not think I am serious so asking here.

Installed flawlessly the SP works awesome, I see there are additional blocks one can install.
My question is :
How do you install a block or maybe a block php  people mention to copy a code for a block and install it?
Apparently the SP site has allot of blocks one can install but found now clear directions.

I am sure this is something very simple, and is why the SP website is not responding to it.

Found a couple blocks people made and wanted to copy the code and install however that is done.



Title: Re: SimplePortal - 2.3.5 Released!
Post by: GPowerE36 on March 27, 2014, 06:45:23 AM
Hi, I have a problem with SMF forum after installing SimplePortal, and it consists in the fact that when I try to log in through the gates into the forum and here it is obtained.
(http://s13.postimg.org/7snqfww6v/Screen_Shot_2014_03_27_at_12_41_24_PM.png)
How can I fix this problem? Mods I have installed are:
(http://s17.postimg.org/poxgom1tb/Screen_Shot_2014_03_27_at_12_43_13_PM.png)
SMF version is 2.0.7
Sorry for bad English and hope to resolve my problem.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 28, 2014, 01:24:28 PM
WCFA,

The reason you did not get an answer at SimplePortal is probably that there are only a small number of volunteers working to answer questions.
I just came from there, and I responded to your question already.  I am not sure I understood you though.  I hope I will be able to help you.

GPowerE36 -- this sounds as though one of the other mods has messed up your URL.  This should be /index.php?action=forum.
So which mod took out "index.php"?
Do you have pretty URLs turned on?  Can you try turning it off for testing?
Also, I am not familiar with Tapatalk.  It might be worth turning Tapatalk off (just for a moment) to see if it makes any difference.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: GPowerE36 on March 29, 2014, 04:31:56 PM
@ AngelinaBelle, I checked settings Tapatalk settings / In App Registration / Registration URL address was index.php?аction=forum. I changed it to index.php and the problem is resolved.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: WCFA on March 29, 2014, 06:23:54 PM
Quote from: AngelinaBelle on March 28, 2014, 01:24:28 PM
WCFA,

The reason you did not get an answer at SimplePortal is probably that there are only a small number of volunteers working to answer questions.
I just came from there, and I responded to your question already.  I am not sure I understood you though.  I hope I will be able to help you.

GPowerE36 -- this sounds as though one of the other mods has messed up your URL.  This should be /index.php?action=forum.
So which mod took out "index.php"?
Do you have pretty URLs turned on?  Can you try turning it off for testing?
Also, I am not familiar with Tapatalk.  It might be worth turning Tapatalk off (just for a moment) to see if it makes any difference.


Hi there,
This is a great portal program, thank you for your help.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on March 31, 2014, 03:17:39 PM
GPowerE36

Glad that fixed it.  The issue could very well be the fact that SimplePortal is disabled for phone users.
But I just dont' know enough about pretty urls, tapatalk, and simpleportal working together to begin to understand what happened.

I'm just glad you fixed it.
Title: Re: Portal Logo not showing up, but does in Forum.
Post by: SaltedWeb on April 25, 2014, 02:43:42 PM
I was about done with my 6 week project on my forum and uploaded my logo using the Curve Theme,
the logo shows up in the forum great. I click on the main page portal and it does not show the Logo.?

1. I tried putting the logo in the default / Images
2. I tried putting it in the curve/ Images Images
Tried putting in root no luck.
Tried png and jpg formats.
Oddly even the default SMF does not show up in the portal either.

Ideas ? I can't open the site until I figure this out.

Thank You !
Title: Re: SimplePortal - 2.3.5 Released!
Post by: SaltedWeb on April 26, 2014, 02:44:24 AM
Anyone ???
Title: Re: SimplePortal - 2.3.5 Released!
Post by: SaltedWeb on April 26, 2014, 01:20:30 PM
Is there no support in SMF for this >?
Open to any ideas.

Title: Re: SimplePortal - 2.3.5 Released!
Post by: MotRude on April 26, 2014, 09:27:43 PM
can the portal block top posters display going across instead of down?

i used to have ezportal and was able to display the block top posters at the top of my forum with the top posters going across instead of down..names with avatars going across.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on April 28, 2014, 01:53:04 PM
@Diamondcomputer -- are you using the same theme for the portal page as you are using for the rest of the forum?  Are you using a front page or standalone portal? Apologies for the slow response -- the SimplePortal community is smaller than the SMF community, and we don't have very many volunteers to answer questions.

@MotRude -- SimplePortal does not come with a way to do that, but you could certainly customize the code to do this.  The code is found in the file PortalBlocks.php.  For more detailed discussions of customizing SimplePortal, please come on over to SimplePortal.net.  There are some knowledgeable people over there (more knowledgeable than I am!)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: rafalkaminski on May 21, 2014, 05:25:21 AM
Very good addition, I recommend to all works great
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chas Large on May 30, 2014, 09:08:42 AM
Is simpleportal.net now dead? I can't make a connection with it for several months now.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on May 30, 2014, 09:39:52 AM
I last used it 2 days ago, but have been unable to reach it yesterday or today.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 02, 2014, 08:23:15 AM
Simpleportal.net is back up.  Seems there was some routine host-related stuff going on.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Osaugue on June 17, 2014, 08:26:09 AM
Have been trying on how to go about this but no way please i want the first attached image in the first message thumbnail to show on the article block help please
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 17, 2014, 09:27:41 AM
This would require customization.  Have you asked at simpleportal.net?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Osaugue on June 18, 2014, 02:46:14 PM
Quote from: Angelina Belle on June 17, 2014, 09:27:41 AM
This would require customization.  Have you asked at simpleportal.net?
yes i didn't get any reply
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 18, 2014, 03:32:54 PM
I think I remember seeing your post, or a similar one.

I apologize for the lack of response.  Simpleportal has a small community.

Please try bumping your request over there.  If you still don't get a bite from someone knowledgeable, you can try one of the custom coding forums around here.  The simpleportal code is familiar enough to SMF coders that the customization  should not be too difficult.

I hope you learn some interesting new skills in the process.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Osaugue on June 19, 2014, 11:58:02 AM
Quote from: Angelina Belle on June 18, 2014, 03:32:54 PM
I think I remember seeing your post, or a similar one.

I apologize for the lack of response.  Simpleportal has a small community.

Please try bumping your request over there.  If you still don't get a bite from someone knowledgeable, you can try one of the custom coding forums around here.  The simpleportal code is familiar enough to SMF coders that the customization  should not be too difficult.

I hope you learn some interesting new skills in the process.
i actually created a topic but was redirected here
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 19, 2014, 01:52:49 PM
Ouch! I'm sorry! Was that me?

I would recommend one of the SMF coding boards instead of this mod support topic.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: mulwa on June 22, 2014, 05:01:02 AM
pls how do i make the "articles" and "recent posts" to be centered in the blocks? Pls i need help
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 23, 2014, 06:11:43 AM
The first thing I would try is using the custom block style to apply the CSS for text-align: center

http://simpleportal.net/index.php?action=docs;area=block_editor
http://www.w3.org/Style/Examples/007/center.en.html#text

Title: Re: SimplePortal - 2.3.5 Released!
Post by: mulwa on June 23, 2014, 09:37:24 AM
thanks for that @Angelina. But i don't know where to start editing it, pls help me if possible.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 23, 2014, 09:47:42 AM
All you need to do is put text-align: center in the custom body style.  Then see if it helps center the text in the block.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: mulwa on June 26, 2014, 03:14:22 PM
@Angelina Belle God bless you!
That one worked perfectly for me!
Pls i have one problem, i removed the icon that it used to display before the articles; and when it was removed it displayed "Topic" which is not clickable before the Article link. If possible i would like to remove "Topic" before the clickable text (the "topic" is not clickable). And how do i make the articles that appear in the block to be more than five?
Pls don't be weard of my questions; am just a newbie. Thank  you
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 26, 2014, 03:27:04 PM
I think that there is a setting for the number of articles to display in the block -- use the block editor and check this.

You did some changes in portalblocks.php to remove the icon?  Then you already know how to make some changes to the HTML.
You can just remove the part that says "topic" -- only it will be $txt['      <-- and something between quotation marks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: mulwa on June 26, 2014, 05:10:23 PM
thanks a lot for your concern, but unfortunately, i couldn't trace it out. I removed that icon by deleting it from the theme files inside "sp folder"cause i couldn't get the link in the portalblocks,. I tried removing the "topic" in "portalblocks.php"  but it wasn't working.  and there is no number of articles to be displayed in the article block settings. Thank  you for your time.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on June 26, 2014, 05:20:35 PM
I am sorry I misunderstood. If you are comfortable working in the CSS files, you may be able to make "topic" display: none; in CSS.  Come on over to simpleportal.net for more help in customizing your blocks!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Padre gremista on July 01, 2014, 11:20:47 AM
How Modify for have 1000 topics in "recent posts bloc"?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on July 01, 2014, 11:45:24 AM
Simply use the http://simpleportal.net/index.php?action=docs;area=block_editor to change the number of posts/topics to show.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Padre gremista on July 01, 2014, 12:35:58 PM
Quote from: Angelina Belle on July 01, 2014, 11:45:24 AM
Simply use the http://simpleportal.net/index.php?action=docs;area=block_editor to change the number of posts/topics to show.

Yes, but I set to show 1000 topics and show only around 30. How I make manually edit for show more topics that the permitted?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on July 01, 2014, 02:12:54 PM
Ahh yes.  You will have to look in SSI.php.  There, in two places, it limits how far back to look in your recent posts.

you will see 35 * min(  ... something, 5) -- which severly limits things.  Increase the 35 to something large enough.
In the other place, there might be a 50 instead of a 35.  Increase this as well.

To get to 1000, of course, you need 200 * 5.  Do you really want to see 1000 recent posts in a block?

This will slow down your forum because of the fact that, every time that block is loaded, it is checking more messages in you database.

You can test this out and see if you can tell the difference.

Enjoy!
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Padre gremista on July 01, 2014, 11:46:06 PM
Possible is add the avatar miniature of the last user that posted beside the text marked in image annexed?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on July 02, 2014, 04:03:04 AM
That is certainly possible, and would require some php code writing.  You might bring the idea to one of the customization boards at simpleportal.net to see if anyone is interested in working with you on this.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Padre gremista on July 02, 2014, 01:29:05 PM
I try register in simpleportal.net but the captcha is always error. I can not register.

Can you post my mod request there?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Dhayzon on July 02, 2014, 03:34:12 PM
Quote from: Padre gremista on July 02, 2014, 01:29:05 PM
I try register in simpleportal.net but the captcha is always error. I can not register.

Can you post my mod request there?

<?php

/*
Block: Recent posts with post preview
Author: Blue @ Simple Portal.net
Version: 1.6
*/

/* [SETUP WHAT YOU WANT HERE] */

$topics_posts 1; // TOPICS - 1 | MESSAGES - 2
$limit 6; // How many recent posts do you want to output?
$number 30; // How many characters do you want to output?
$exclude_boards null; // IF null guests can see all boards | IF you want to hide some boards use: array( ID1, ID2, ID3) where ID is the board's ID
$htmlspecialcharacters false// Do you need to show html special characters like Greek characters?


// Do you want to translate it to your own language? :P
$text['sportal_false'] = 'Simple Portal not found';
$text['board'] = 'in';
$text['who'] = 'by';

/* [STOP!] - THIS IS THE END OF SETUP */

//Only code from now on ;)
global $smcFunc$scripturl$sourcedir$modSettings$user_info$settings$context$txt;

// Lets see if you are using Simple Portal. If not...well...go get them :D
if (!file_exists($sourcedir '/PortalBlocks.php'))
{
echo $text['sportal_false'];
return;
}

// Let's grab some database results
if ($topics_posts == 1) {

if (is_array($exclude_boards) || (int) $exclude_boards === $exclude_boards)
{
$exclude_boards is_array($exclude_boards) ? $exclude_boards : array($exclude_boards);
}
elseif ($exclude_boards != null)
{
$output_method $exclude_boards;
$exclude_boards = array();
}

$posts_result $smcFunc['db_query']('''
   SELECT m.poster_name,m.icon, m.poster_time, m.id_msg,t.num_views, t.num_replies, t.id_member_updated, m.subject, m.body, m.id_topic, b.name, t.id_last_msg, u.avatar, g.online_color,' 
. ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from'
) . '
   FROM {db_prefix}topics AS t
   LEFT JOIN {db_prefix}boards AS b ON (t.id_board = b.id_board)
   LEFT JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_last_msg)
   LEFT JOIN {db_prefix}members AS u ON (t.id_member_updated = u.id_member)
   LEFT JOIN {db_prefix}membergroups AS g ON (g.id_group = CASE WHEN u.id_group = 0 THEN u.id_post_group ELSE u.id_group END)
   ' 
. (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = m.id_topic AND lt.id_member = ' 
$user_info['id'] . ')
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = ' 
$user_info['id'] . ')' '') . '
   WHERE m.approved=1'   
. (empty($exclude_boards) ? '' '
AND b.id_board NOT IN ({array_int:exclude_boards})'
) . ' AND {query_see_board}
   ORDER BY t.id_last_msg DESC
   LIMIT ' 
$limit,
array(
'exclude_boards' => empty($exclude_boards) ? '' $exclude_boards,
)
   );
$posts = array();
while (
$row_posts $smcFunc['db_fetch_assoc']($posts_result))
{

      global 
$memberContext;
      
loadMemberData($row_posts['id_member_updated']);
      
loadMemberContext($row_posts['id_member_updated']);

      if (empty(
$modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row_posts['icon']]))
$icon_sources[$row_posts['icon']] = file_exists($settings['theme_dir'] . '/images/post/' $row_posts['icon'] . '.gif') ? 'images_url' 'default_images_url';

   
$posts[] = array(
  'id' => $row_posts['id_member_updated'],
  'views' => $row_posts['num_views'],
  'replies' => $row_posts['num_replies'],
  'icon' => '<img src="' $settings[$icon_sources[$row_posts['icon']]] . '/post/' $row_posts['icon'] . '.gif" align="middle" alt="' $row_posts['icon'] . '" border="0" />',
      
'username' => '<a style="color: ' $row_posts['online_color'] . ';" href="' $scripturl '?action=profile;u=' $row_posts['id_member_updated'] . '">' $row_posts['poster_name'] . '</a>',
      
'subject' => '<a style="font-weight: bold;" title="' $text['board'] . '&nbsp;' $row_posts['name'] .'" href="' $scripturl '?topic=' $row_posts['id_topic'] . '.msg' $row_posts['id_last_msg'] . ';topicseen#new">' $row_posts['subject'] . '</a>',
      
'body' => $row_posts['body'],
  'avatar' => $row_posts['avatar'] == '' $memberContext[$row_posts['id_member_updated']]['avatar']['href'] : (stristr($row_posts['avatar'], 'http://') ? $row_posts['avatar'] : $modSettings['avatar_url'] . '/' $row_posts['avatar']),
  'board' => $row_posts['name'],
  'time' => timeformat($row_posts['poster_time']),
  'poster' => array(
'id' => $row_posts['id_member'],
'name' => $row_posts['poster_name'],
'href' => !empty($row_posts['id_member']) ? $scripturl '?action=profile;u=' $row_posts['id_member'] : '',
'link' => !empty($row_posts['id_member']) ? '<a href="' $scripturl '?action=profile;u=' $row_posts['id_member'] . '">' $row_posts['poster_name'] . '</a>' $row_posts['poster_name']
),

  'new' => !empty($row_posts['is_read'])
   );
}
$smcFunc['db_free_result']($posts_result);

} else {

if (is_array($exclude_boards) || (int) $exclude_boards === $exclude_boards)
{
$exclude_boards is_array($exclude_boards) ? $exclude_boards : array($exclude_boards);
}
elseif ($exclude_boards != null)
{
$output_method $exclude_boards;
$exclude_boards = array();
}



$posts_result $smcFunc['db_query']('''
   SELECT  u.real_name,m.icon,m.poster_time, m.id_msg, m.id_member, m.subject, m.body, m.id_topic, b.name, b.id_board, u.avatar, g.online_color,' 
. ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from'
) . '
   FROM {db_prefix}messages AS m
   LEFT JOIN {db_prefix}boards AS b ON (m.id_board = b.id_board)
   LEFT JOIN {db_prefix}members AS u ON (m.id_member = u.id_member)
   LEFT JOIN {db_prefix}membergroups AS g ON (g.id_group = CASE WHEN u.id_group = 0 THEN u.id_post_group ELSE u.id_group END)
   ' 
. (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = m.id_topic AND lt.id_member = ' 
$user_info['id'] . ')
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = ' 
$user_info['id'] . ')' '') . '
   WHERE m.approved=1'   
. (empty($exclude_boards) ? '' '
AND b.id_board NOT IN ({array_int:exclude_boards})'
) . ' AND {query_see_board}
   ORDER BY m.id_msg DESC
   LIMIT ' 
$limit,
array(
'exclude_boards' => empty($exclude_boards) ? '' $exclude_boards,
)
   );
$posts = array();

      while (
$row_posts $smcFunc['db_fetch_assoc']($posts_result))
      {
      
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row_posts['icon']]))
$icon_sources[$row_posts['icon']] = file_exists($settings['theme_dir'] . '/images/post/' $row_posts['icon'] . '.gif') ? 'images_url' 'default_images_url';

      global 
$memberContext;
      
loadMemberData($row_posts['id_member']);
      
loadMemberContext($row_posts['id_member']);
$posts[] = array(
  'id' => $row_posts['id_member'],
  'icon' => '<img src="' $settings[$icon_sources[$row_posts['icon']]] . '/post/' $row_posts['icon'] . '.gif" align="middle" alt="' $row_posts['icon'] . '" border="0" />',
  'username' => '<a style="color: ' $row_posts['online_color'] . ';" href="' $scripturl '?action=profile;u=' $row_posts['id_member'] . '">'.$row_posts['real_name'] . '</a>',
  'subject' => '<a title="'.$row_posts['subject'].'" href="' $scripturl '?topic=' $row_posts['id_topic'] . '.msg' $row_posts['id_msg'] . ';topicseen#new">' .$row_posts['subject']. '</a>',
  'body' => $row_posts['body'],
  'avatar' => $row_posts['avatar'] == '' $memberContext[$row_posts['id_member']]['avatar']['href'] : (stristr($row_posts['avatar'], 'http://') ? $row_posts['avatar'] : $modSettings['avatar_url'] . '/' $row_posts['avatar']),
  'board' => $row_posts['name'],
  'time' => timeformat($row_posts['poster_time']),
  'new' => !empty($row_posts['is_read'])
);
      }

$smcFunc['db_free_result']($posts_result);

}
echo
'<div class="container-fluid nuevos_temas_indice">
'
;
foreach (
$posts as $post) {

// Lets fix the BBCode bug and Strip the Text
//' . $text['who'] . '&nbsp;

$content1 str_replace("[""<"$post['body']);
$content2 str_replace("]"">"$content1);
$content3 strip_tags($content2);
$preview substr ($content3,0,$number);
$preview2 preg_replace('/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i'''$preview);
echo
' <div class="row nuevas_respuestas_indice">
 <div class="col-xs-6 col-md-1">
 '
.$post['icon'].'
 </div>
  <div class="col-xs-12 col-md-6">'
;

 echo
'<h4 class="media-heading">' $post['subject']; if (!$post['new'] && $context['user']['is_logged'])
echo '&nbsp &nbsp<span class="label label-success">Nuevo</span>';
 echo
'</h4>
 '
;

    if (
$htmlspecialcharacters) {
echo htmlspecialchars($previewENT_NOQUOTES"UTF-8") . '...';
} else {
echo' <small>'.$preview2.' en  →',$post['board'],'</small>';
}
   echo
'</div>

<div class="col-xs-6 col-md-2">
<span><img src="/Themes/bootz/images/views.gif" title="Views" alt=" Views">&nbsp &nbsp<span class="label label-warning">'
.$post['views'].'</span></span>
<Span class="pull-right"><img src="/Themes/bootz/images/coments.gif" title="Replies" alt="Replies">&nbsp &nbsp<span class="label label-info"> '
$post['replies'], '</span></Span>
</div>

<div class="col-xs-6 col-md-3">
  <a class="pull-left" href="#" style=" margin-right: 10px; ">'
;
   if (empty(
$post['avatar']))
    {
 echo '<img class="media-object avatar" src="/avatars/noavatar.gif"  alt="no tengo avatar xD" width="34px" height="34px" />';
     }
else{

       echo 
'<img class="media-object avatar" src="' $post['avatar'] .'" alt="" width="34px" height="34px" />';
}
    echo
'

  </a>


  <div class="media-body">
   <span style="padding: 0 5px;display: inline-block;margin-bottom: 5px;"> ' 
$post['username'] . '</span><br><div><small>' $post['time'] .'</small></div>';



echo 
'
   </div>

  </div>
  </div>
'
;





}

echo'
</div>'
;


?>


http://simpleportal.net/index.php?topic=9138.0


preview

(http://i.imgur.com/YK6o4SM.png)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Angelina Belle on July 02, 2014, 03:51:58 PM
Please try to listen to the CAPTCHA, if there is a problem with CAPTCHA display.  That could work.
How many letters do you see when you look at the CAPTCHA, by the way?  How many do you hear when you listen to the captcha?


Thanks.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Padre gremista on July 02, 2014, 11:03:27 PM
Quote from: {dhayzon} on July 02, 2014, 03:34:12 PM
Quote from: Padre gremista on July 02, 2014, 01:29:05 PM
I try register in simpleportal.net but the captcha is always error. I can not register.

Can you post my mod request there?

<?php

/*
Block: Recent posts with post preview
Author: Blue @ Simple Portal.net
Version: 1.6
*/

/* [SETUP WHAT YOU WANT HERE] */

$topics_posts 1; // TOPICS - 1 | MESSAGES - 2
$limit 6; // How many recent posts do you want to output?
$number 30; // How many characters do you want to output?
$exclude_boards null; // IF null guests can see all boards | IF you want to hide some boards use: array( ID1, ID2, ID3) where ID is the board's ID
$htmlspecialcharacters false// Do you need to show html special characters like Greek characters?


// Do you want to translate it to your own language? :P
$text['sportal_false'] = 'Simple Portal not found';
$text['board'] = 'in';
$text['who'] = 'by';

/* [STOP!] - THIS IS THE END OF SETUP */

//Only code from now on ;)
global $smcFunc$scripturl$sourcedir$modSettings$user_info$settings$context$txt;

// Lets see if you are using Simple Portal. If not...well...go get them :D
if (!file_exists($sourcedir '/PortalBlocks.php'))
{
echo $text['sportal_false'];
return;
}

// Let's grab some database results
if ($topics_posts == 1) {

if (is_array($exclude_boards) || (int) $exclude_boards === $exclude_boards)
{
$exclude_boards is_array($exclude_boards) ? $exclude_boards : array($exclude_boards);
}
elseif ($exclude_boards != null)
{
$output_method $exclude_boards;
$exclude_boards = array();
}

$posts_result $smcFunc['db_query']('''
   SELECT m.poster_name,m.icon, m.poster_time, m.id_msg,t.num_views, t.num_replies, t.id_member_updated, m.subject, m.body, m.id_topic, b.name, t.id_last_msg, u.avatar, g.online_color,' 
. ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from'
) . '
   FROM {db_prefix}topics AS t
   LEFT JOIN {db_prefix}boards AS b ON (t.id_board = b.id_board)
   LEFT JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_last_msg)
   LEFT JOIN {db_prefix}members AS u ON (t.id_member_updated = u.id_member)
   LEFT JOIN {db_prefix}membergroups AS g ON (g.id_group = CASE WHEN u.id_group = 0 THEN u.id_post_group ELSE u.id_group END)
   ' 
. (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = m.id_topic AND lt.id_member = ' 
$user_info['id'] . ')
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = ' 
$user_info['id'] . ')' '') . '
   WHERE m.approved=1'   
. (empty($exclude_boards) ? '' '
AND b.id_board NOT IN ({array_int:exclude_boards})'
) . ' AND {query_see_board}
   ORDER BY t.id_last_msg DESC
   LIMIT ' 
$limit,
array(
'exclude_boards' => empty($exclude_boards) ? '' $exclude_boards,
)
   );
$posts = array();
while (
$row_posts $smcFunc['db_fetch_assoc']($posts_result))
{

      global 
$memberContext;
      
loadMemberData($row_posts['id_member_updated']);
      
loadMemberContext($row_posts['id_member_updated']);

      if (empty(
$modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row_posts['icon']]))
$icon_sources[$row_posts['icon']] = file_exists($settings['theme_dir'] . '/images/post/' $row_posts['icon'] . '.gif') ? 'images_url' 'default_images_url';

   
$posts[] = array(
  'id' => $row_posts['id_member_updated'],
  'views' => $row_posts['num_views'],
  'replies' => $row_posts['num_replies'],
  'icon' => '<img src="' $settings[$icon_sources[$row_posts['icon']]] . '/post/' $row_posts['icon'] . '.gif" align="middle" alt="' $row_posts['icon'] . '" border="0" />',
      
'username' => '<a style="color: ' $row_posts['online_color'] . ';" href="' $scripturl '?action=profile;u=' $row_posts['id_member_updated'] . '">' $row_posts['poster_name'] . '</a>',
      
'subject' => '<a style="font-weight: bold;" title="' $text['board'] . '&nbsp;' $row_posts['name'] .'" href="' $scripturl '?topic=' $row_posts['id_topic'] . '.msg' $row_posts['id_last_msg'] . ';topicseen#new">' $row_posts['subject'] . '</a>',
      
'body' => $row_posts['body'],
  'avatar' => $row_posts['avatar'] == '' $memberContext[$row_posts['id_member_updated']]['avatar']['href'] : (stristr($row_posts['avatar'], 'http://') ? $row_posts['avatar'] : $modSettings['avatar_url'] . '/' $row_posts['avatar']),
  'board' => $row_posts['name'],
  'time' => timeformat($row_posts['poster_time']),
  'poster' => array(
'id' => $row_posts['id_member'],
'name' => $row_posts['poster_name'],
'href' => !empty($row_posts['id_member']) ? $scripturl '?action=profile;u=' $row_posts['id_member'] : '',
'link' => !empty($row_posts['id_member']) ? '<a href="' $scripturl '?action=profile;u=' $row_posts['id_member'] . '">' $row_posts['poster_name'] . '</a>' $row_posts['poster_name']
),

  'new' => !empty($row_posts['is_read'])
   );
}
$smcFunc['db_free_result']($posts_result);

} else {

if (is_array($exclude_boards) || (int) $exclude_boards === $exclude_boards)
{
$exclude_boards is_array($exclude_boards) ? $exclude_boards : array($exclude_boards);
}
elseif ($exclude_boards != null)
{
$output_method $exclude_boards;
$exclude_boards = array();
}



$posts_result $smcFunc['db_query']('''
   SELECT  u.real_name,m.icon,m.poster_time, m.id_msg, m.id_member, m.subject, m.body, m.id_topic, b.name, b.id_board, u.avatar, g.online_color,' 
. ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from'
) . '
   FROM {db_prefix}messages AS m
   LEFT JOIN {db_prefix}boards AS b ON (m.id_board = b.id_board)
   LEFT JOIN {db_prefix}members AS u ON (m.id_member = u.id_member)
   LEFT JOIN {db_prefix}membergroups AS g ON (g.id_group = CASE WHEN u.id_group = 0 THEN u.id_post_group ELSE u.id_group END)
   ' 
. (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = m.id_topic AND lt.id_member = ' 
$user_info['id'] . ')
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = ' 
$user_info['id'] . ')' '') . '
   WHERE m.approved=1'   
. (empty($exclude_boards) ? '' '
AND b.id_board NOT IN ({array_int:exclude_boards})'
) . ' AND {query_see_board}
   ORDER BY m.id_msg DESC
   LIMIT ' 
$limit,
array(
'exclude_boards' => empty($exclude_boards) ? '' $exclude_boards,
)
   );
$posts = array();

      while (
$row_posts $smcFunc['db_fetch_assoc']($posts_result))
      {
      
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row_posts['icon']]))
$icon_sources[$row_posts['icon']] = file_exists($settings['theme_dir'] . '/images/post/' $row_posts['icon'] . '.gif') ? 'images_url' 'default_images_url';

      global 
$memberContext;
      
loadMemberData($row_posts['id_member']);
      
loadMemberContext($row_posts['id_member']);
$posts[] = array(
  'id' => $row_posts['id_member'],
  'icon' => '<img src="' $settings[$icon_sources[$row_posts['icon']]] . '/post/' $row_posts['icon'] . '.gif" align="middle" alt="' $row_posts['icon'] . '" border="0" />',
  'username' => '<a style="color: ' $row_posts['online_color'] . ';" href="' $scripturl '?action=profile;u=' $row_posts['id_member'] . '">'.$row_posts['real_name'] . '</a>',
  'subject' => '<a title="'.$row_posts['subject'].'" href="' $scripturl '?topic=' $row_posts['id_topic'] . '.msg' $row_posts['id_msg'] . ';topicseen#new">' .$row_posts['subject']. '</a>',
  'body' => $row_posts['body'],
  'avatar' => $row_posts['avatar'] == '' $memberContext[$row_posts['id_member']]['avatar']['href'] : (stristr($row_posts['avatar'], 'http://') ? $row_posts['avatar'] : $modSettings['avatar_url'] . '/' $row_posts['avatar']),
  'board' => $row_posts['name'],
  'time' => timeformat($row_posts['poster_time']),
  'new' => !empty($row_posts['is_read'])
);
      }

$smcFunc['db_free_result']($posts_result);

}
echo
'<div class="container-fluid nuevos_temas_indice">
'
;
foreach (
$posts as $post) {

// Lets fix the BBCode bug and Strip the Text
//' . $text['who'] . '&nbsp;

$content1 str_replace("[""<"$post['body']);
$content2 str_replace("]"">"$content1);
$content3 strip_tags($content2);
$preview substr ($content3,0,$number);
$preview2 preg_replace('/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i'''$preview);
echo
' <div class="row nuevas_respuestas_indice">
 <div class="col-xs-6 col-md-1">
 '
.$post['icon'].'
 </div>
  <div class="col-xs-12 col-md-6">'
;

 echo
'<h4 class="media-heading">' $post['subject']; if (!$post['new'] && $context['user']['is_logged'])
echo '&nbsp &nbsp<span class="label label-success">Nuevo</span>';
 echo
'</h4>
 '
;

    if (
$htmlspecialcharacters) {
echo htmlspecialchars($previewENT_NOQUOTES"UTF-8") . '...';
} else {
echo' <small>'.$preview2.' en  →',$post['board'],'</small>';
}
   echo
'</div>

<div class="col-xs-6 col-md-2">
<span><img src="/Themes/bootz/images/views.gif" title="Views" alt=" Views">&nbsp &nbsp<span class="label label-warning">'
.$post['views'].'</span></span>
<Span class="pull-right"><img src="/Themes/bootz/images/coments.gif" title="Replies" alt="Replies">&nbsp &nbsp<span class="label label-info"> '
$post['replies'], '</span></Span>
</div>

<div class="col-xs-6 col-md-3">
  <a class="pull-left" href="#" style=" margin-right: 10px; ">'
;
   if (empty(
$post['avatar']))
    {
 echo '<img class="media-object avatar" src="/avatars/noavatar.gif"  alt="no tengo avatar xD" width="34px" height="34px" />';
     }
else{

       echo 
'<img class="media-object avatar" src="' $post['avatar'] .'" alt="" width="34px" height="34px" />';
}
    echo
'

  </a>


  <div class="media-body">
   <span style="padding: 0 5px;display: inline-block;margin-bottom: 5px;"> ' 
$post['username'] . '</span><br><div><small>' $post['time'] .'</small></div>';



echo 
'
   </div>

  </div>
  </div>
'
;





}

echo'
</div>'
;


?>


http://simpleportal.net/index.php?topic=9138.0


preview

(http://i.imgur.com/YK6o4SM.png)

Where I must put this code?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Dhayzon on July 03, 2014, 12:13:12 AM
in new block   php
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Padre gremista on July 03, 2014, 02:21:09 AM
I think that there a error in the code, see image annexed.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Dhayzon on July 03, 2014, 11:41:21 AM

the code that I showed you is the same as this  http://simpleportal.net/index.php?topic=9138.0 but changed my way

use the code here

http://simpleportal.net/index.php?topic=9138.0
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Padre gremista on July 03, 2014, 09:02:28 PM
Thank you for help {dhayzon}, I managed to install.

I have other doubt. Possible is add a block with members and your avatars in portal, as it in image annexed?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Sono on August 04, 2014, 03:21:09 PM
Hello!

I have added a custom HTML block to the header of my forum. It contains a script that displays a belt slideshow advertisement. My problem is that when I resize the browser window, a slider appears under the advertisement. Where can I disable that to appear? Here is a video showing this problem:

https://www.dropbox.com/s/ul0w99lb3sf9o48/Video.avi

Another problem is: when I activate the header blocks, another block appears under it with a message: SMF Just Installed. It is only present when Simpleportal is active. How can I remove that notification? (This problem is also visible in the video.)
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on August 04, 2014, 10:52:52 PM

Sono,
  To hide a scroll bar that appears for your block you must edit the block and enter the following for the Custom Body Style input: overflow:hidden;
(located to the bottom right portion of the edit block template)

  The other block you do not want displayed is one of your top blocks. Navigate to your blocks list then disable or delete the block titled Forum News.

Regards.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: David111567 on August 23, 2014, 10:21:05 AM
Is the Simple Portal website no longer online?  Been trying to get to it for a little while now....seems to be gone?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: SaltedWeb on August 23, 2014, 11:19:34 AM
There online , I notice from time to time they are not but check back they should be there.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: blogmexicano on August 24, 2014, 05:33:45 PM
i need to know how i prevent google add my sp pagination?   i know its on robots.txt  but whats the code i must input in the file?
Title: Re: SimplePortal - 2.3.5 Released!
Post by: NekoJonez on August 26, 2014, 04:42:24 PM
I have seen on their forums they are working on 2.3.6 Alpha.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Chen Zhen on August 26, 2014, 09:32:41 PM
blogmexicano,

  If I understand you correctly I believe this may assist you: click here (http://www.robotstxt.org/orig.html#examples)
The url(s) will be...

/page=PAGENAME

or

http://example.com/page=PAGENAME

(example.com being your full site URL)




Keep in mind that this will only affect search engines that respect the robots.txt file rules.
Google is one that does.

Google provides a tool to check if your robots.txt file is configured properly to block what you have opted.
The instruction to use their tool is located here: click here (https://support.google.com/webmasters/answer/6062598)

They also provide a personal request to remove specific URL's from their search crawlers.
The request form is available after you register/confirm your site with them look to the left and click on: Google Index -> Remove URLs

Regards.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Motorhed on September 03, 2014, 02:01:41 AM
I haven't seen this anywhere...

How do I make the Recent Posts/Topics not expire? In other words, have it so they show the full number I told it to as opposed to not showing older posts if nothing new was posted...
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Kimmie on September 04, 2014, 12:28:11 PM
Quote from: David111567 on August 23, 2014, 10:21:05 AM
Is the Simple Portal website no longer online?  Been trying to get to it for a little while now....seems to be gone?


It is there http://www.simpleportal.net/
Title: Re: SimplePortal - 2.3.5 Released!
Post by: Burke ♞ Knight on September 04, 2014, 12:34:00 PM
Kimmie,

That was days ago, and they were down for a little bit, more likely for server maintenance.
They were back up, same day.
Title: Re: SimplePortal - 2.3.5 Released!
Post by: SaltedWeb on September 24, 2014, 10:40:14 PM
Integration blocks not showing in forum only setting, I have used SP for a few years and cant seem to figure why the portal shows but forum only wont work.

Thanks
Title: Re: SimplePortal - 2.3.6 Released!
Post by: SimplePortal Team on October 09, 2014, 05:19:26 PM
SimplePortal 2.3.6 Released! (http://simpleportal.net/index.php?topic=13678.0)

Quote
The SimplePortal Team is happy to announce the release of SimplePortal 2.3.6, code-named "Mist!" This release includes fixes for the bugs found in the 2.3.5 version, and the change of license to allow for open development of SimplePortal. As of this version and going forward, SimplePortal is licensed under the BSD License. Older versions of SimplePortal are still licensed under the Simple Machines License.

We urge all users to upgrade to SimplePortal 2.3.6 as soon as possible to take advantage of the bug fixes. A full list of changes for 2.3.6 can be found in the changelog.txt file within the SimplePortal package, but the major fixes are:

  • Updates and improvements to the built-in blocks.
  • Several security improvements.
  • Proper logging of portal activity.
  • Several fixes and improvements to the interface.
  • Styling options for board news block.
  • Fixes to shoutboxes module.
Unfortunately, there is no auto-upgrade option from 2.3.5 to 2.3.6 due to the number of changes. So, if you are running 2.3.5 or an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.

  • Uninstall SimplePortal.
  • Download SimplePortal 2.3.6. (http://simpleportal.net/index.php?action=downloads;area=stable_simpleportal_packages;file=139;download)
  • Install SimplePortal 2.3.6, and you are ready to go!

Thanks for all your support, and keep those bug reports and feature requests coming!
-The SimplePortal Team
Title: Re: SimplePortal - 2.3.6 Released!
Post by: SaltedWeb on October 09, 2014, 06:04:16 PM
Is there any compatibility issues? Or if it worked with 2.3.5 it should with 2.3.6 ?

Nice to see the update thank you.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: [SiNaN] on October 09, 2014, 06:38:22 PM
The new version only has some important bug fixes and a few improvements. There shouldn't be any compatibility issues but I may have a better idea if you could tell me compatibility issues with what exactly.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: akbora on October 09, 2014, 06:57:07 PM
@[SİNAN] What's the wrong with these codes that doesnt't work with sp block it was working before. thanks

global $context, $scripturl, $memberContext, $smcFunc;
echo '
<table class="sp_fullwidth">';

$admins = ssi_queryMembers('id_group = {int:id_group}', array('id_group' => 1,), '', 'id_member', 'array');
$genelyon = ssi_queryMembers('id_group = {int:id_group}', array('id_group' => 2,), '', 'id_member', 'array');
$duayen = ssi_queryMembers('id_group = {int:id_group}', array('id_group' => 37,), '', 'id_member', 'array');

$request = $smcFunc['db_query']('', '
SELECT id_member
FROM {db_prefix}moderators',
array(
)
);
$mod_ids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$mod_ids[] = $row['id_member'];
$smcFunc['db_free_result']($request);

if (empty($mod_ids))
return array();

// Load the members.
loadMemberData($mod_ids);

foreach ($mod_ids as $mod)
{
// Load their context data.
if (!loadMemberContext($mod))
continue;

// Store this member's information.
$mods[$mod] = $memberContext[$mod];
}

$stafmembers = $admins + $genelyon + $duayen + $mods;

$i = 1;
foreach ($stafmembers as $member)
{
if ($i == 1)
echo '
<tr>';
echo '
<td class="sp_member sp_center">', (!empty($member['avatar']['href']) ? '
<img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="35" />' : ''), '
</td>
<td class="sp_member_info">
', $member['link'], '<br />
', $member['group'], '' . ($member['group_id'] == 1 ?  '' : '<br />' . $member['last_login_p'] . '') . '
</td>';
if ($i == 6)
echo '
</tr>';

$i++;
if ($i == 6) $i = 1;

}

echo '
</tr>
</table>';
Title: Re: SimplePortal - 2.3.6 Released!
Post by: 420Connect.co.uk on October 10, 2014, 06:11:54 PM
I've probably got some setting wrong somewhere but for some reason my shoutbox and attached images aren't visible for guests/members except myself..
Title: Re: SimplePortal - 2.3.6 Released!
Post by: benz1 on October 10, 2014, 11:42:30 PM
Hi, trying to follow the uninstall/install instructions to upgrade from 2.1.1 to 2.3.6 but getting the following warnings. Is it safe to proceed?

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Installation Readme
This will uninstall SimplePortal 2.1 for SMF 1.1.

Uninstall Actions
Uninstall Actions "SimplePortal":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test failed
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Display.php    Test successful
4.    Execute Modification    ./Sources/Load.php    Test successful
5.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
6.    Execute Modification    ./Sources/QueryString.php    Test successful
7.    Execute Modification    ./Sources/Recent.php    Test successful
8.    Execute Modification    ./Sources/Subs.php    Test successful
9.    Execute Modification    ./Sources/Help.php    Test successful
10.    Execute Modification    ./Sources/ManageServer.php    Test successful
11.    Execute Modification    ./Sources/Admin.php    Test successful
12.    Execute Modification    ./SSI.php    Test successful
13.    Execute Modification    ./Themes/default/index.template.php    Test failed
14.    Execute Modification    ./Themes/default/Display.template.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/Who.english-utf8.php    Skipping file
17.    Delete File    ./Sources/SPortal1-1.php    
18.    Delete File    ./Sources/SPortalAdmin1-1.php    
19.    Delete File    ./Sources/Subs-SPortal1-1.php    
20.    Delete File    ./Themes/default/SPortal1-1.template.php    
21.    Delete File    ./Themes/default/SPortalAdmin1-1.template.php    
22.    Delete File    ./Themes/default/SPortalBlocks1-1.template.php    
23.    Delete File    ./Themes/default/languages/SPortal.english.php    
24.    Delete File    ./Themes/default/languages/SPortal.english-utf8.php    
25.    Delete File    ./Themes/default/languages/SPortalAdmin.english.php    
26.    Delete File    ./Themes/default/languages/SPortalAdmin.english-utf8.php    
27.    Delete File    ./Themes/default/languages/SPortalHelp.english.php    
28.    Delete File    ./Themes/default/languages/SPortalHelp.english-utf8.php    
29.    Delete File    ./Themes/default/images/arrow.gif    
30.    Delete File    ./Themes/default/images/dot.gif    
31.    Delete File    ./Themes/default/images/selected1.gif
Title: Re: SimplePortal - 2.3.6 Released!
Post by: [SiNaN] on October 11, 2014, 07:52:16 AM
Quote from: akbora on October 09, 2014, 06:57:07 PM
@[SİNAN] What's the wrong with these codes that doesnt't work with sp block it was working before. thanks

That code won't work if you don't have any board moderators.

It's probably not a good idea to return nothing here:

if (empty($mod_ids))
return array();


Use array_merge() instead:

$stafmembers = $admins + $genelyon + $duayen + $mods;

Quote from: 420connect.info on October 10, 2014, 06:11:54 PM
I've probably got some setting wrong somewhere but for some reason my shoutbox and attached images aren't visible for guests/members except myself..

I can't think of a possible reason for that. I could have a look at it for your if you can provide me temporary access to your forum.

Quote from: benz1 on October 10, 2014, 11:42:30 PM
Hi, trying to follow the uninstall/install instructions to upgrade from 2.1.1 to 2.3.6 but getting the following warnings. Is it safe to proceed?

Not really. You should remove the edits to those three files manually. Then proceed with the uninstall ignoring the warnings and replace the files that you had removed the edits from with the ones on the server. Although you may not need it in the end, make sure you have a backup in case things go wrong.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: 420Connect.co.uk on October 11, 2014, 12:50:27 PM
Just to update, I've solved my problem myself..

I didn't have the box ticked for guests being able to view attachments under permissions! ; ::)
(using an alternate chat now, so not sure if this would have fixed the missing shoutbox too.. but my images are displaying now)
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Mstcool on October 12, 2014, 03:31:38 AM
Yes!! Finally!! Woot Woot! :D

New Version  :D
Title: Re: SimplePortal - 2.3.6 Released!
Post by: longlong on October 13, 2014, 12:32:37 PM
How to disable Ohara Youtube embed from the Simple's Portal Shoutbox?

I am having this problem!
Whenever i am pasting a link into shoutbox the Ohara automatically adds
  tags              "test 1"
see this mp4 video  "cdn.mediacru.sh/aVs2TFikaWcC.mp4" i made with my problem!

i have to add [ url][ /url] tags every time to the link so it can be shown naturally                        "test 2"

i haven't found any way to modify the Ohara or Simple Portal's Shoutbox!   and the only link i found by searching was this but no answer!
http://www.simplemachines.org/community/index.php?topic=507505.msg3585380#msg3585380

i also asked Ohara YouTube Embed mods here!
http://www.simplemachines.org/community/index.php?topic=462968.msg3753712#msg3753712
Title: Re: SimplePortal - 2.3.6 Released!
Post by: [SiNaN] on October 13, 2014, 02:19:24 PM
Quote from: 420connect.info on October 11, 2014, 12:50:27 PM
Just to update, I've solved my problem myself..

I didn't have the box ticked for guests being able to view attachments under permissions! ; ::)
(using an alternate chat now, so not sure if this would have fixed the missing shoutbox too.. but my images are displaying now)

Good to hear that. Yeah, you probably had some permission issue regarding the shoutbox as well.

Quote from: longlong on October 13, 2014, 12:32:37 PM
How to disable Ohara Youtube embed from the Simple's Portal Shoutbox?

I am having this problem!
Whenever i am pasting a link into shoutbox the Ohara automatically adds
  tags              "test 1"
see this mp4 video  "cdn.mediacru.sh/aVs2TFikaWcC.mp4" i made with my problem!

i have to add [ url][ /url] tags every time to the link so it can be shown naturally                        "test 2"

i haven't found any way to modify the Ohara or Simple Portal's Shoutbox!   and the only link i found by searching was this but no answer!
http://www.simplemachines.org/community/index.php?topic=507505.msg3585380#msg3585380

i also asked Ohara YouTube Embed mods here!
http://www.simplemachines.org/community/index.php?topic=462968.msg3753712#msg3753712

Firstly, I would suggest using the Aeva mod; we already have support for that (since the author cared about the others and allowed us to disable their mod easily) and it's a really nice mod.

If you still want to use the one you currently have;

Sources/OharaYTEmbed.php

Code (Find) Select
// The extremely long regex...

Code (Replace) Select
global $context;

if (!empty($context['ohara_disable']))
return $message;

// The extremely long regex...


Sources/Subs-Portal.php

Code (Find) Select
$context['aeva_disable'] = true;

Code (Replace) Select
$context['aeva_disable'] = true;
$context['ohara_disable'] = true;
Title: Re: SimplePortal - 2.3.6 Released!
Post by: vbgamer45 on October 13, 2014, 02:40:11 PM
Nice idea    [SiNaN].
Decided to add that to S.A.V.E

$context['save_embed_disable'] = 1;
Title: Re: SimplePortal - 2.3.6 Released!
Post by: [SiNaN] on October 13, 2014, 03:30:01 PM
Thanks! I'll be adding built-in support for your mod in the next version of SimplePortal too. ;)
Title: Re: SimplePortal - 2.3.6 Released!
Post by: longlong on October 13, 2014, 05:02:41 PM
Very nice idea indeed & it was easier than i thought!

Thnk you very much! :)

Quote from: [SiNaN] on October 13, 2014, 02:19:24 PM

Firstly, I would suggest using the Aeva mod; we already have support for that
(since the author cared about the others and allowed us to disable their mod easily) and it's a really nice mod.

Thought Aeva was outdated & it had unnecessary stuff but anyway!
Title: Re: SimplePortal - 2.3.6 Released!
Post by: [SiNaN] on October 13, 2014, 06:29:22 PM
Quote from: longlong on October 13, 2014, 05:02:41 PM
Very nice idea indeed & it was easier than i thought!

Thnk you very much! :)

You're welcome. I just made a little change to the first edit though, so that you don't end up with errors in your logs.

Quote from: longlong on October 13, 2014, 05:02:41 PM
Thought Aeva was outdated & it had unnecessary stuff but anyway!

Yeah, it seems that you need a few edits here and there to get it working but it's the best once you do it.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Staazvaind on October 14, 2014, 08:32:11 AM
Hi,

i just installed your portal, ticked header block and added a shoutbox
which i add to create in the process to it.

on the mainpage this header block with shoutbox is not showing up.

any clues ?
all is standard settings from installation.

cheers


/edit:

wow ! this img verification sucks !


/edit 2:
nevermind - i use the top block now
wow ! image verification for editing a post?
not really userfriendly.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Burke ♞ Knight on October 14, 2014, 08:46:21 AM
Depending on where you want it to show, you have to select the display settings.

If just want it on main page, then select Portal.
If want on forum, then select Forum.
You can even slect the Advanced, and select which Actions, Pages, and Boards to display a block in.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: kigor on October 18, 2014, 07:13:17 AM
Hello
before today I have SMF 2.0.6 and SimplePortal 2.3.6
Today I update SMF to 2.0.9 and SimplePortal blockes disapeer and also in Admin config part too.
If I want to uninstall I have error like in attach.
What I can do

PS: forum is on address: http://croinfo.net/forum/index.php
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Mstcool on October 18, 2014, 09:11:09 PM
Fix the errors manually :P
Title: Re: SimplePortal - 2.3.6 Released!
Post by: akbora on October 19, 2014, 03:37:27 AM
Quote from: [SiNaN] on October 11, 2014, 07:52:16 AM
Quote from: akbora on October 09, 2014, 06:57:07 PM
@[SİNAN] What's the wrong with these codes that doesnt't work with sp block it was working before. thanks

That code won't work if you don't have any board moderators.

It's probably not a good idea to return nothing here:

if (empty($mod_ids))
return array();


Use array_merge() instead:

$stafmembers = $admins + $genelyon + $duayen + $mods;



@[SiNaN] You are wonderful bro.. The problem solved with your comment. Very very thanks. I assigned Board Mod and no problem.

Only I want to ask how can I change this codes with your suggestion
Title: Re: SimplePortal - 2.3.6 Released!
Post by: [SiNaN] on October 19, 2014, 12:50:41 PM
Quote from: kigor on October 18, 2014, 07:13:17 AM
Hello
before today I have SMF 2.0.6 and SimplePortal 2.3.6
Today I update SMF to 2.0.9 and SimplePortal blockes disapeer and also in Admin config part too.
If I want to uninstall I have error like in attach.
What I can do

PS: forum is on address: http://croinfo.net/forum/index.php

Attach your index.php file so I can check it out for you.

Quote from: akbora on October 19, 2014, 03:37:27 AM
Only I want to ask how can I change this codes with your suggestion

Code (Find) Select
if (empty($mod_ids))
return array();

// Load the members.
loadMemberData($mod_ids);


Code (Replace) Select
if (!empty($mod_ids))
loadMemberData($mod_ids);


Code (Find) Select
$stafmembers = $admins + $genelyon + $duayen + $mods;

Code (Replace) Select
$stafmembers = array_merge($admins, $genelyon, $duayen, $mods);
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Tommy-G on October 27, 2014, 02:25:32 PM
Sorry if this is the wrong place but i'm having an issue with my homepage using SimplePortal.

I have a header block that contains image links to sub-domains. there's also a log-in box to the left under the header, every time a member attempts to log in that way, they click in the box and they're automatically taken to the last website on the list "Seph Mugen." The link to his website automatically goes to the clipboard when you hover over it, I think it's any website in the last spot. Is there a way to prevent that so users can log in there without clicking the box and going to his website?

Here's my homepage so you can see for yourself.
http://mugenflowzone.com/
Title: Re: SimplePortal - 2.3.6 Released!
Post by: ARG01 on October 27, 2014, 08:34:51 PM
Quote from: Tommy-G on October 27, 2014, 02:25:32 PM
Sorry if this is the wrong place but i'm having an issue with my homepage using SimplePortal.

I have a header block that contains image links to sub-domains. there's also a log-in box to the left under the header, every time a member attempts to log in that way, they click in the box and they're automatically taken to the last website on the list "Seph Mugen." The link to his website automatically goes to the clipboard when you hover over it, I think it's any website in the last spot. Is there a way to prevent that so users can log in there without clicking the box and going to his website?

Here's my homepage so you can see for yourself.
http://mugenflowzone.com/

When I click the login link in the left block it takes me to the login page. However, when putting the cursor over the Home page it seems to activate hover for all links. Even when clicking on a blank space on the page it takes me to another site. I am not sure if it's a mod that you have installed but I am almost certain that this is causing your issue.

I do not believe that it is the portal itself as I have been using 2.3.6 since before release on many sites and have not experienced any similar issues.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Sono on October 30, 2014, 01:16:02 PM
I have a problem with embeddin a music player into a simple portal block. The player is SCM player. This is the embed code that is generated by their website:

<!-- SCM Music Player http://scmplayer.net -->
<script type="text/javascript" src="http://scmplayer.net/script.js"
data-config="{'skin':'skins/aquaBlue/skin.css','volume':50,'autoplay':false,'shuffle':true,'repeat':1,'placement':'bottom','showplaylist':false,'playlist':'http://youtu.be/B0N9yFcz4ho?list=RDB0N9yFcz4ho'}" ></script>
<!-- SCM Music Player script end -->


If I place it into a HTML or PHP block, the player is displayed correctly at the bottom of the website in all browsers, except for Safari. In Safari, it look like this:

(http://i.share.pho.to/1d70cdd1_o.jpeg)

What do you think, what can be the problem? The player is located correctly at the bottom, but the body of the forum is moved rightway and both from the body and the player the right portion is not visible.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Arantor on October 30, 2014, 01:18:43 PM
The music player doesn't behave properly in iOS? - not sure this is a SimplePortal problem...
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Sono on October 30, 2014, 02:25:10 PM
Maybe not. I asked it here because I thought maybe the place where you insert the code causes the problem. I tried to insert it into index.php of the SMF forum, too, but the same happens.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Arantor on October 30, 2014, 02:38:25 PM
Nope, that looks like it's a problem with the player. Also you generally should not be adding code like that directly into index.php, it will break other things.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Sono on October 30, 2014, 02:45:37 PM
Thanks, I will ask about it then in a Java coding forum.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Arantor on October 30, 2014, 02:46:46 PM
Just so we're clear - it's JavaScript not Java. The two are very, very different things.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Sono on October 30, 2014, 02:59:26 PM
Thank you! :D
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Padre gremista on October 31, 2014, 05:59:18 PM
Is possible create a block with last posts in a board for the portal?

The blocks will be how in the image "after" that I annexed here in the post.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Bigguy on October 31, 2014, 10:58:30 PM
Just wanted to say...using 2.3.6 on SMF 2.1 and they are getting along very nicely i must say. :)
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Padre gremista on November 02, 2014, 05:53:49 PM
Nobody can help me?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Cylent1 on November 11, 2014, 11:38:31 PM
I'm just gonna start by saying that the parse edits are not nearly correct to install into 2.0.9.
I have went through each edit, half of them were already edited, half of them were already edited and placed before what was supposed to be replaced, a couple of edits doesn't even exist in the files i'm supposed to edit.  WHAT A MESS!
I have a fresh install and default theme with no mods!  So does anybody else have this working on 2.0.9 Integrated?
If I install just like it is, there are no pretest errors and insatallation succeeds! But it will not let me use the integration feature.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: [SiNaN] on November 13, 2014, 11:44:45 AM
I just downloaded a fresh SMF 2.0.9 and SP 2.3.6. I could install it with absolutely no problems and integration mode works perfectly fine. Just remember that if you switch to the integration mode, you will need to set the display options for the blocks to be forum (or anything else like everything that covers it).
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Cylent1 on November 13, 2014, 06:19:20 PM
Quote from: [SiNaN] on November 13, 2014, 11:44:45 AM
I just downloaded a fresh SMF 2.0.9 and SP 2.3.6. I could install it with absolutely no problems and integration mode works perfectly fine. Just remember that if you switch to the integration mode, you will need to set the display options for the blocks to be forum (or anything else like everything that covers it).

Yes! thanks that was my issue....  NOW SOLVED!  ;D
Title: Re: SimplePortal - 2.3.6 Released!
Post by: NekoJonez on November 17, 2014, 11:41:22 AM
I'm curious, I added the "Who's Online" block, no issues except one visual one.

The users are listed underneath each other. I would like if they were besides each other. How do I do that?
Also, how can I show a legend of the colors that I use for the member groups?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: 420Connect.co.uk on November 20, 2014, 01:01:10 PM
I'd also be interested in implementing this ^^^^


But my own query is..

I'm only using SP as my website landing page but I'd like to change it so that clicking my forum logo will take you into the forum, rather than back to the landing page..

I don't imagine this being hard to change but can't seem to find the right file / code

As always, any help is appreciated! :)
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Sono on November 20, 2014, 06:42:13 PM
Is it possible to make it available for a member to mark some of his new posts articles? Also: can I set an "Article" block to display the list of articles in scrollable format?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: MyTime on November 24, 2014, 02:38:26 PM
I haven't gotten a response from sp support, but I was wondering if anyone here knew how too customize it too were the blocks have a custom border added, like a textured bordered that helps it flow with the site too separate each block?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Greygal on November 26, 2014, 09:40:13 AM
Attempting to install SimplePortal on 2.09, received the following error message for modifications to index.php:

Code: (Find) [Select]
      // Action and board are both empty... BoardIndex!
Code: (Replace) [Select]
      // Go catch it boy! Catch it!
      $sp_action = sportal_catch_action();
      if ($sp_action)
         return $sp_action;

      // Action and board are both empty... BoardIndex!

If someone could give me an idea where the "replace" code should be placed in index.php, I'll manually add it.  I can't find anything even remotely resembling the searched-for line on this particular edit.

That is the only error I am receiving.

Thanks in advance!

GG

EDIT:  Nevermind, I figured out what the problem is.  The search line apparently is looking for

"      // Action and board are both empty... BoardIndex!"

followed by a blank line.  I ended up searching for "BoardIndex," found the line, added two tabs before it and a blank line after it, and the mod installed without any error messages.

Title: Re: SimplePortal - 2.3.6 Released!
Post by: Herman's Mixen on November 26, 2014, 09:46:16 AM
[code snippet from the install.xml]
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>[SiNaN]:SimplePortal</id>
<version>2.3.6</version>

<file name="$boarddir/index.php">
<operation>
<search position="replace"><![CDATA[require_once($sourcedir . '/Security.php');]]></search>
<add><![CDATA[require_once($sourcedir . '/Security.php');
require_once($sourcedir . '/Subs-Portal.php');]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[ // Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))]]></search>
<add><![CDATA[ // Load SimplePortal.
sportal_init();

// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[ // Action and board are both empty... BoardIndex!]]></search>
<add><![CDATA[ // Go catch it boy! Catch it!
$sp_action = sportal_catch_action();
if ($sp_action)
return $sp_action;

// Action and board are both empty... BoardIndex!]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[ 'findmember' => array('Subs-Auth.php', 'JSMembers'),]]></search>
<add><![CDATA[ 'findmember' => array('Subs-Auth.php', 'JSMembers'),
'forum' => array('BoardIndex.php', 'BoardIndex'),
'portal' => array('PortalMain.php', 'sportal_main'),]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[if (empty($_REQUEST['action']) || ]]></search>
<add><![CDATA[if (empty($_REQUEST['action']) || !($_REQUEST['action'] == 'portal' && isset($_GET['xml'])) && ]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[ // Get the function and file to include - if it's not there, do the board index.]]></search>
<add><![CDATA[ if (!empty($context['disable_sp']))
unset($actionArray['portal'], $actionArray['forum']);

// Get the function and file to include - if it's not there, do the board index.]]></add>
</operation>
</file>



Title: Re: SimplePortal - 2.3.6 Released!
Post by: Greygal on November 26, 2014, 09:47:50 AM
Thanks Herman! I found it just as you posted it :)

The problem is it's searching for that line with two tabs before it and a blank line after.  Once I edited it thusly, it worked!

Thanks again!

GG
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Herman's Mixen on November 26, 2014, 09:48:49 AM
Your welcome :D
Title: Re: SimplePortal - 2.3.6 Released!
Post by: davidhs on December 07, 2014, 01:39:48 PM
Quote from: davidhs on April 10, 2012, 11:52:26 AM
I made a package for Spanish translation of SimplePortal 2.3.5 (based of translation 2.3.4 = 2.3.3 + new strings)

I attach this in SimplePortal website http://simpleportal.net/index.php?topic=11053.0
Language strings are same, this is valid for SimplePortal 2.3.6.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: lonewolfe2015 on December 10, 2014, 11:45:47 PM
Just started using SimplePortal (and consequently getting readjusted to SMF after a few years away), is there anyway for me to shift the shoutbox from below the statistics area to below the forum? I'd like to have the shoutbox inbetween my forum view and my statistics/online users, etc.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: MyTime on December 11, 2014, 01:19:07 AM
My question was skipped :[
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Burke ♞ Knight on December 11, 2014, 07:02:27 AM
Quote from: CannabisGamerClub on November 24, 2014, 02:38:26 PM
I haven't gotten a response from sp support, but I was wondering if anyone here knew how too customize it too were the blocks have a custom border added, like a textured bordered that helps it flow with the site too separate each block?

http://simpleportal.net/index.php?action=docs;area=block_editor (http://simpleportal.net/index.php?action=docs;area=block_editor)

Style Editor
Default Title Class Can be used to choose a style for the block title.
Custom Title Class Can be used to add an additional CSS class to the block title -- perhaps one that appears in a customized CSS file
Custom Title Style Allows you to add additional attributes to the CSS inline style of the block title.
No Title, if checked, will turn off display of the block title, as well as the block collabse button.

Default Body Class Can be used to choose a style for the block body.
Custom Body Class Can be used to add an additional CSS class to the block body -- perhaps one that appears in a customized CSS file
Custom Body Style Allows you to add additional attributes to the CSS inline style of the block body.
No Body, if checked, will show the body "unstyled" -- in the same style as the block area's background.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: MrMike on December 11, 2014, 02:16:48 PM
I looked on the Simple Portal site but couldn't find a list of blocks or add-ons...could you please point to a list, if there is one?

Thank you!
Title: Re: SimplePortal - 2.3.6 Released!
Post by: MESWEB on December 20, 2014, 06:39:45 PM
I found a bug wit this portal. When we create new post with break lines (when we write post then we hit ENTER and this create <br /> tag). This new post has been in home page in portal blocks and SimplePortal create link as
Quote...
this ... are like read more button. If any posts have <br /> tags yhen SimplePortal put link to post in <br /> tag. Simple explaining example:
<b<a href="http://obeznany.pl/index.php?topic=146.0" title="Airborne ranger">...</b<a>

So better if someone delete this short link "..."
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on December 21, 2014, 11:25:44 AM
MESWEB,

  You have a lot of changes to your site regarding JQuery/javascript scripts that may somehow be conflicting and causing the issue.
Also please note that although the respected licenses permit you to remove both your SMF & Simple Portal copyright notices/links, doing so means the support staff on both sites will most likely opt not to assist you.

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: MESWEB on December 21, 2014, 01:29:53 PM
I don't think so that errors making any JQuery /javascripts. This is from SimplPortal look at mod site I there ask couple years ago about this errors without solved topic. I found a clue - Simple portal making this shortcuts ... and puting in to <br /> tag when I just deleting this shortcut then SimplePortal put a < div=""> to <br /> tag. Ok I understand Your notice about notice but this site is not my - I'm not Admin I only upgrading and making SEO for this site.

So if anyone are interesting about w3validation SMF -
QuoteElement b< not allowed as child of element div in this context. (Suppressing further errors from this subtree.)
Then I don't help anyone with clearing php code in SMF file.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Burke ♞ Knight on December 21, 2014, 01:36:28 PM
MESWEB

This is not a bug.

If you post, and the character count exceeds what you set the block for, you will get the ... being a link to read more, taking you to the main post. It does the ... to show that there is more to the post than is shown in the block. It is not a bug, it is performing as it should.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on December 22, 2014, 01:06:10 AM
MESWEB,

  If you would like to try a possible solution then restore your PortalBlocks.php file to its default state and install this plugin:
http://web-develop.ca/index.php?action=downloads;sa=view;down=9

.. the description on the download page describes what it does. If you decide to use it please let me know if it resolves the issue.

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: MESWEB on December 22, 2014, 03:26:58 AM
Quote from: ♞ Burke Knight ♞ on December 21, 2014, 05:06:16 PM
It seems to have made a link to the post, and it looks valid to me. I clicked it, and it took me to the full post.

Are You kidding? Where You click link? On my site? It's not possible coz I delete shortcut ...

Quote from: Chen Zhen on December 22, 2014, 01:06:10 AM
MESWEB,

  If you would like to try a possible solution then restore your PortalBlocks.php file to its default state and install this plugin:
http://web-develop.ca/index.php?action=downloads;sa=view;down=9

.. the description on the download page describes what it does. If you decide to use it please let me know if it resolves the issue.

Regards.

I don't need personalized bbc mod.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on December 22, 2014, 04:24:38 PM
MESWEB,

  The mod I was referring to is not Personalized BBC, it is called SP-Truncate Recent Posts which Imo is a better sub-routine than what is currently in place.
However, if this is what is showing up on your pages as you described:

<b<a href="http://obeznany.pl/index.php?topic=146.0" title="Airborne ranger">...</b<a>


.. then that is not Simple Portal actually causing the issue.
Simple Portal cuts the text of the post short with '...' at the very end of what is being displayed for the post if it exceeds the opted message length whereas the dots are a hyperlink to the actual post. HTML wise it ends the message with ...</a> and does not add any partial bold tags as you seem to be posting.
Imo the only way for this to occur is if some client side javascript is changing the output, you edited SMF code itself at some point, you edited the PortalBlocks.php code incorrectly prior to the occurrence  or perhaps a mod that edits the buffer.  These are the only possibilities and if the PortalBlocks.php file is default (no edits) then it can not be caused by any Simple Portal code. It is something else that is causing that code to be changed as I just described.

Quote from: MESWEB
If this is not BUG how You explain this code in my site?

Quote from: MESWEB
This is not my site I only working for someone wit this www.

conflicting statements indeed?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: margarett on December 22, 2014, 06:32:16 PM
A small cleanup happened here, as you might notice. Please stop the insults and the arguments, everyone. Thank you.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: akbora on December 23, 2014, 01:30:37 PM
This mod has updated what is the difference last position?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Burke ♞ Knight on December 23, 2014, 03:28:42 PM
Quote from: SiNaN
The SimplePortal Team is happy to announce the release of SimplePortal 2.3.6, code-named "Mist!" This release includes fixes for the bugs found in the 2.3.5 version, and the change of license to allow for open development of SimplePortal. As of this version and going forward, SimplePortal is licensed under the BSD License. Older versions of SimplePortal are still licensed under the Simple Machines License.

We urge all users to upgrade to SimplePortal 2.3.6 as soon as possible to take advantage of the bug fixes. A full list of changes for 2.3.6 can be found in the changelog.txt file within the SimplePortal package, but the major fixes are:[cutoff]

  • Updates and improvements to the built-in blocks.
  • Several security improvements.
  • Proper logging of portal activity.
  • Several fixes and improvements to the interface.
  • Styling options for board news block.
  • Fixes to shoutboxes module.
Unfortunately, there is no auto-upgrade option from 2.3.5 to 2.3.6 due to the number of changes. So, if you are running 2.3.5 or an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.

  • Uninstall SimplePortal.
  • Download SimplePortal 2.3.6. (http://simpleportal.net/index.php?action=downloads;area=stable_simpleportal_packages;file=139;download)
  • Install SimplePortal 2.3.6, and you are ready to go!

Thanks for all your support, and keep those bug reports and feature requests coming!
-The SimplePortal Team
Title: Re: SimplePortal - 2.3.6 Released!
Post by: akbora on December 23, 2014, 03:47:10 PM
this was updated to 2.3.6 before, but yesterday I asked what the difference again updated
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Burke ♞ Knight on December 23, 2014, 04:09:17 PM
2.3.6 IS the latest update.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Shambles on December 23, 2014, 04:27:52 PM
I'm guessing akbora received a tardy email (subscription) notification of the mod update.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Burke ♞ Knight on December 23, 2014, 04:33:26 PM
Maybe they updated the info on the mod page.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: NekoJonez on December 24, 2014, 06:30:17 AM
So, I think nobody can solve the issue... ?

That all names are underneath each other instead of besides each other on the who's online block?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on December 24, 2014, 12:31:15 PM
NekoJonez,

  I can work out an edit for you or perhaps a plugin that does the editing for you. I will assume you want it to behave like it already does for left/right blocks but change to horizontal if using top,bottom,header or footer block or perhaps an option to opt either behaviour? When I have some time over the next few days I can do this.

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on December 25, 2014, 12:46:29 AM
NekoJonez,

  You can try out this plugin if you wish: http://web-develop.ca/index.php?action=downloads;sa=view;down=10
There is a checkbox added within the who's online block configuration to have the specific block display in horizontal mode.
You can leave comments to the plugin on my forum if you want some changes or have any other ideas for it.

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: NekoJonez on December 25, 2014, 01:29:38 PM
I'll. Thanks bro :)
Title: Re: SimplePortal - 2.3.6 Released!
Post by: NekoJonez on December 27, 2014, 09:46:22 AM
Quote from: Chen Zhen on December 25, 2014, 12:46:29 AM
NekoJonez,

  You can try out this plugin if you wish: http://web-develop.ca/index.php?action=downloads;sa=view;down=10
There is a checkbox added within the who's online block configuration to have the specific block display in horizontal mode.
You can leave comments to the plugin on my forum if you want some changes or have any other ideas for it.

Regards.

I tried to post a topic on your site but somehow my spacebar activated the Prezi presentation of the portal o.O

I got it to work but now I'll try to edit my post since I have an idea.

Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on December 27, 2014, 12:52:41 PM
NekoJonez,

  Ya that block uses the space bar or arrow keys to control what text is displayed. I changed that block's settings to not show when one is posting.
Thank you for the report.

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Bob La Londe on January 18, 2015, 01:51:35 PM
Ok... I originally installed simple portal so I could use it for side columns.  I've got it doing that on two different forums.  It seems to work great in integrated mode. 

Now I am trying to understand more of what it can do and I am struggling with either Front Page mode and/or Standalone mode. 

I think Front Page mode is supposed to do what I want.  Create a "home" page that has things not on the forum, but any block I setup only shows up on the home page if it also shows up on the forum.  Please hold my hand thru whatever it is that I am obviously missing so I can use it for a dynamic home page for the site instead of the semi static home page I am using now. 

Am I even on the right track? 

Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on January 18, 2015, 09:36:30 PM
Bob La Londe,

  When you edit or create a block look at the display options (2nd tier of settings) whereas you can use the drop-down else click on the Advanced Options setting.
These settings will allow you control on where you would like the block to display. Portal means your home page, the rest are rather self explanatory by name.

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Bob La Londe on January 19, 2015, 11:08:46 AM
Quote from: Chen Zhen on January 18, 2015, 09:36:30 PM
Bob La Londe,

  When you edit or create a block look at the display options (2nd tier of settings) whereas you can use the drop-down else click on the Advanced Options setting.
These settings will allow you control on where you would like the block to display. Portal means your home page, the rest are rather self explanatory by name.

That is the way I expected it to work.  On the less popular forum where I do my testing for all new mods it only shows those blocks on the portal/home page that are set to display on the forums or on everywhere.  Interestingly on my more popular forum it seems to work just fine.  Both are 2.0.9 installs.  I have a third 2.0.9 forum I could try it on as well, but I tend to keep that one very simple as it has a fairly private technical following who has no interest in bells and whistles. 

Title: Re: SimplePortal - 2.3.6 Released!
Post by: deep16 on February 03, 2015, 07:54:29 AM
how to hide blocks from topic
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Rk2910 on February 28, 2015, 08:10:31 AM
I am trying to uninstall 2.3.5 prior to installing 2.3.6 and am getting a couple errors.
I realize I could uninstall anything that was installed after SP and then uninstall SP, but there are 54 events after I installed SP and I am not sure I would not mess up some of the other things if I did that.
I've attached a capture of the errors that occur in the Index and ManagePermissions.php files.
Can anyone help me with this?  I am not a programmer.

Thanks.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: SaltedWeb on February 28, 2015, 11:31:44 AM
I have a HTML block with a width: 456px; height: 177px picture
and a few words under it. I placed it in the top box.
While the picture and words under it take up a very small amount of space
it still shows a scroll bar on it. I was wondering how do I adjust the maximum space
for these blocks ?
I tried disabling the right side even and at full screen it shows the same so tells me its a block limit.
I want the scroll bar gone so I can have a clean look.



Thanks
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Shambles on February 28, 2015, 12:03:59 PM
Quote from: SaltedW
I want the scroll bar gone so I can have a clean look.
I tend to use the "Custom Body Style" box in the block configuration, setting "overflow: hidden; vertical-align: middle;" seems to get me the result you're looking for.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: SaltedWeb on February 28, 2015, 12:24:43 PM
I see that setting cool, but
How are settings for those inputs made , in other words what is the proper code to
put in them?

Thanks
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Shambles on February 28, 2015, 12:46:22 PM
I gave you the settings I used. Enter them exactly as I did, without the quotation marks, thus:

overflow: hidden; vertical-align: middle;
Title: Re: SimplePortal - 2.3.6 Released!
Post by: SaltedWeb on February 28, 2015, 01:15:16 PM
Awesome worked , thank you looks nice and clean :)
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Obcy on March 15, 2015, 11:51:01 AM
How to make youtube links shoutbox simple portal and  youtube embed ohara 1.2.1 ?
Problem:
https://www.youtube.com/watch?v=pigC6D2KR8M

How to create normal link in shoutbox [Link]
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on March 15, 2015, 09:27:37 PM
Obcy,

  You can install this SimplePortal plugin: Extra Shoutbox Permissions/Options (http://web-develop.ca/index.php?action=downloads;sa=view;down=11)
It will allow you to set a permission for each membergroup to allow posting of links within the SP shoutbox.

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Obcy on March 16, 2015, 04:53:58 AM
Other links work. Only youtube does not work.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: NekoJonez on March 16, 2015, 12:16:37 PM
Maybe that has to do with a YT mod installed?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Obcy on March 16, 2015, 03:38:09 PM
Yes I have a mod youtube embed ohara 1.2.1. How does it get to work ?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: NekoJonez on March 17, 2015, 03:52:05 PM
My guess is that it's conflicting with the other code.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Obcy on March 18, 2015, 01:41:00 PM
Solution
http://www.smf.pl/index.php/topic,12124.msg60188.html?PHPSESSID=014177f3916bba4278cca9205f3387f4#msg60188
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Motorhed on April 09, 2015, 10:14:34 PM
Can someone shed any light on why attachments show on every page of Simple Portal EXCEPT the main "Home" portal page when you're a Guest?

In other words, Guests can see attachments on Blocks when they're anywhere BUT the "Home" portal page. Then it's like they don't have permission.

Yes, Guests have permission to view attachments on my forum.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Motorhed on April 21, 2015, 03:05:08 PM
I hate to "bump", but I wanted to note I still haven't found a solution for this... and maybe to explain a bit more.

Anywhere the portal block shows, the attachment shows... Except the front page of the portal. There, it is as if the attachment doesn't exist... but only for Guests.

Guests can see the attachments everywhere else the block appears, meaning it's not a permissions problem.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: player.samp on April 21, 2015, 04:45:33 PM
The only explanation I can give you is that you have a problem with the SimplePortal script but there might be other options which I am not aware of.

Which version of SimplePortal are you using?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chas Large on April 22, 2015, 02:15:06 AM
I've been using SP for years and have never seen this phenomenon. I use the main portal page as the front page for my site and the blocks thoughout the forum, never have I seen any attachments show in a block. It sounds like another mod is conflicting. I would be tempted to create a local (WAMPP) version of the site, do a full SMF install or update and then install SP followed by other mods to identify which one is causing the problem. When found you can then uninstall it from the live site.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on April 22, 2015, 05:56:59 PM
Motorhed,

  Something you have in a custom block or perhaps another edit or modification is likely causing the issue.
May I have a link to an example on your forum so that I can analyze the occurrence? 

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: lonewolfe2015 on April 26, 2015, 04:24:41 PM
I recently switched over my forum domain and it looks like there's a bit of a problem with logging in from the index page now.

Whenever members login from http://{forum}/index.php they're redirected to http://{forum}/action=forum, which 404's since it doesn't exist (needs to be http://{forum}/index.php?action=forum).

I figured I could probably just uninstall SimplePortal and re-install it, but now it's telling me there would be an error in ./Sources/Who.php if I did so.

Would anyone happen to have any suggestions for how I can troubleshoot this login bug and/or bypass the error I'm getting? Do I need to post the find/replace segments?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: lonewolfe2015 on April 28, 2015, 05:46:11 PM
Any chance someone could offer some suggestions here? Have more members noticing this 404 now. Would it be best for me to just try forcing the uninstall even with the error since I'm going to re-install it anyways?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on April 28, 2015, 05:56:57 PM
lonewolfe2015,

  This sounds to me like it may be a directory path issue.
Ensure the paths are correct for SMF, your themes and the standalone url (<-- if you use it).
This tool will allow you to easily adjust paths if necessary: http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php
Here is the instruction for it: http://wiki.simplemachines.org/smf/Repair_settings.php
Standalone url setting is within Simple Portal general settings (<-- if you use this feature)


Let me know if that resolves the issue.

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: lonewolfe2015 on April 28, 2015, 09:57:57 PM
The things I could do from the admin panel I checked, including accidentally breaking the forum link and having to reset it from ftp. I had the server owner run the repair settings utility too (he said he did it when he moved the domain over as well) and it was trying to get him point some items at his internal IP. But otherwise we believe we set all the directories to point where they should.

I ended up noticing that the disable portal redirection was on in the general settings when I checked there and re-enabled it. For now at least when my users log in they're being directed to the index page and logged in successfully, but I'd prefer they had the freedom to log in right to the forum.

I'm not sure what else it could be though than some sort of directory issue, so if the SMF tool checks all those is it possible SimplePortal isn't redirecting properly and there's a file somewhere I should check that might be off from the domain move?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Motorhed on April 29, 2015, 06:32:21 PM
Fortunately, the problem fixed itself. I have no idea how.

I kept trying over and over and over again, logging out and logging in, and images just would NOT show to guests on the "main" portal page. Now, days later, it's working perfectly as if nothing was wrong.

I can only assume it was some sort of cache issue that wasn't cleared up when I emptied logs, cleared my browser, etc. No idea what caused this.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Motorhed on May 01, 2015, 01:31:06 AM
I spoke too soon. Attachments are back to not showing for guests. :(

http://stinko.com

The sidebar post, "10 Unexpected Characters We Need to See in the Next Mortal Kombat", should have an image next to it.

See it displayed correctly here: http://stinko.com/articles/10-unexpected-characters-we-need-to-see-in-the-next-mortal-kombat/

It doesn't show the attachment next to the post title in the sidebar anywhere but the post view. This is so weird, because it seemed to have fixed itself...
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on May 01, 2015, 11:49:37 PM
Motorhed,

  The css for that block is different between your home page & the actual post's page. Also the home page does not display the html for that image at all.
Is this the included Articles block being used? What exact block is being used and if it is an included block, has it been modified?
If this is a blog block then which blog mod do you have installed?

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: MESWEB on May 02, 2015, 08:38:56 PM
Where is info about responsive portal. Google need responsive theme if You install it then portal is are not readable in smartphone with resolution like 360 x 480
Title: Re: SimplePortal - 2.3.6 Released!
Post by: DSystem on May 03, 2015, 07:46:33 AM
RESPOSIVE adaptations:


portal.css (...themes/default/css/portal.css)


before
body
{
min-width: 750px;
}


After
body
{
min-width: device-width;
}



Add at the end
@media only screen and (max-width: 799px)
{
#sp_left, #sp_right
{
display: none;
visibility: hidden;
}
}
Title: Re: SimplePortal - 2.3.6 Released!
Post by: MESWEB on May 03, 2015, 09:12:05 AM
Thanks man  :) . So how do You think how the website should look like if I want display sp right and left.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Motorhed on May 07, 2015, 02:19:22 PM
Quote from: Chen Zhen on May 01, 2015, 11:49:37 PM
Motorhed,

  The css for that block is different between your home page & the actual post's page. Also the home page does not display the html for that image at all.
Is this the included Articles block being used? What exact block is being used and if it is an included block, has it been modified?
If this is a blog block then which blog mod do you have installed?

Regards.

It's a direct SSI edit, with the SSI called in that block.

It's essentially pulling the threads from a specific board and displaying the first attachment to the left.

In the SSI file, if there's NO attachment, then it displays nothing. If there IS an attachment, it displays.

I'm starting to feel like this isn't a SimplePortal thing... but the problem is the attachment will display ANYWHERE else but the portal blocks outside the post.

Like, if I use it on an external web page completely separate from the forum in total, the attachments display.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on May 07, 2015, 08:43:18 PM
Motorhed,

  Would you be able to post exactly what code you are using?
Within BBcode code tags show the code within your php block and then show the actual edited SSI function.
This way I can adjust it to how you want it.

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Bixby on May 08, 2015, 12:18:56 PM
Hello.

I just uninstalled Simple Portal 2.3.4 in preparation for installing 2.3.6 and now the website generates this error:
"Fatal error: Call to undefined function sportal_init() in /home/content/r/e/a/readersgreg/html/forumsmwr/index.php on line 213"

Any help would be appreciated.
(1) I did a full backup prior to install.
(2) I am very non-technical (Using package manager for all installs and uninstalls).
(3) I am running SMF 2.0.10
(4) GoDaddy is my host.

EDIT: Resolved. Thankfully I have a friend that knows PHP
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Motorhed on May 11, 2015, 03:44:17 PM
Here's the block code:

<?php ssi_coolNews2(array(2,99), 6null0); ?>

Here's the specific SSI code being called:

// Show the latest news, with a template... by board.
function ssi_coolNews2($board = null, $limit = null, $start = null, $length = null, $output_method = 'echo')
{
global $scripturl, $db_prefix, $txt, $settings, $modSettings, $context;
global $smcFunc;

loadLanguage('Stats');

// Must be integers....
if ($limit === null)
$limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 5;
else
$limit = (int) $limit;

if ($start === null)
$start = isset($_GET['start']) ? (int) $_GET['start'] : 0;
else
$start = (int) $start;

/*
if ($board !== null)
$board = (int) $board;
elseif (isset($_GET['board']))
$board = (int) $_GET['board'];
*/

if (empty($board))
return;
elseif (!is_array($board))
$board = array($board);

if ($length === null)
$length = isset($_GET['length']) ? (int) $_GET['length'] : 0;
else
$length = (int) $length;

$limit = max(0, $limit);
$start = max(0, $start);

/*
// Make sure guests can see this board.
$request = $smcFunc['db_query']('', '
SELECT id_board
FROM {db_prefix}boards
WHERE ' . ($board === null ? '' : 'id_board = {int:current_board}
AND ') . 'FIND_IN_SET(-1, member_groups)
LIMIT 1',
array(
'current_board' => $board,
)
);
if ($smcFunc['db_num_rows']($request) == 0)
{
if ($output_method == 'echo')
die($txt['ssi_no_guests']);
else
return array();
}
list ($board) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
*/

// Load the message icons - the usual suspects.
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

// Find the post ids.
$request = $smcFunc['db_query']('', '
SELECT id_first_msg
FROM {db_prefix}topics
WHERE id_board IN ({array_int:current_board})' . ($modSettings['postmod_active'] ? '
AND approved = {int:is_approved}' : '') . '
ORDER BY id_first_msg DESC
LIMIT ' . $start . ', ' . $limit,
array(
'current_board' => $board,
'is_approved' => 1,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['id_first_msg'];
$smcFunc['db_free_result']($request);

if (empty($posts))
return array();

global $sourcedir, $attachments, $topic;
require_once($sourcedir . '/Display.php');

$attachments = array();
$request = $smcFunc['db_query']('', '
SELECT
a.id_attach, a.id_folder, a.id_msg, a.filename, IFNULL(a.size, 0) AS filesize, a.downloads, a.approved,
a.width, a.height' . (empty($modSettings['attachmentShowImages']) || empty($modSettings['attachmentThumbnails']) ? '' : ',
IFNULL(thumb.id_attach, 0) AS id_thumb, thumb.width AS thumb_width, thumb.height AS thumb_height') . '
FROM {db_prefix}attachments AS a' . (empty($modSettings['attachmentShowImages']) || empty($modSettings['attachmentThumbnails']) ? '' : '
LEFT JOIN {db_prefix}attachments AS thumb ON (thumb.id_attach = a.id_thumb)') . '
WHERE a.id_msg IN ({array_int:message_list})
AND a.attachment_type = {int:attachment_type}' . (!$modSettings['postmod_active'] || allowedTo('approve_posts') ? '' : '
AND a.approved = {int:is_approved}'),
array(
'message_list' => $posts,
'attachment_type' => 0,
'is_approved' => 1,
)
);
$temp = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$temp[$row['id_attach']] = $row;

if (!isset($attachments[$row['id_msg']]))
$attachments[$row['id_msg']] = array();
}
$smcFunc['db_free_result']($request);

ksort($temp);

foreach ($temp as $row)
$attachments[$row['id_msg']][] = $row;

// Find the posts.
$request = $smcFunc['db_query']('', '
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.num_views, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, t.id_last_msg
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
WHERE t.id_first_msg IN ({array_int:post_list})
ORDER BY t.id_first_msg DESC
LIMIT ' . count($posts),
array(
'post_list' => $posts,
)
);
$return = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
// If we want to limit the length of the post.
if (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);

// The first space or line break. (<br />, etc.)
$cutoff = max(strrpos($row['body'], ' '), strrpos($row['body'], '<'));

if ($cutoff !== false)
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$row['body'] .= '...';
}

$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);

// Check that this message icon is there...
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

censorText($row['subject']);
censorText($row['body']);

$topic = $row['id_topic'];
$return[] = array(
'attachments' => loadAttachmentContext($row['id_msg']),
'id' => $row['id_topic'],
'views' => $row['num_views'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" alt="' . $row['icon'] . '" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'timestamp' => forum_time(true, $row['poster_time']),
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['num_replies'] . ' ' . ($row['num_replies'] == 1 ? $txt['ssi_comment'] : $txt['ssi_comments']) . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';last_msg=' . $row['id_last_msg'],
'comment_link' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';last_msg=' . $row['id_last_msg'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false
);
}
$smcFunc['db_free_result']($request);

if (empty($return))
return $return;

$return[count($return) - 1]['is_last'] = true;

if ($output_method != 'echo')
return $return;

foreach ($return as $news)
{
$attachment = array();
if (!empty($news['attachments'][0]))
{
$attachment = $news['attachments'][0];

if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'])
echo '
<div style="display: block; overflow: auto;"><div class="floatsquare"><a href="', $news['href'], '"><img src="', $attachment['thumbnail']['href'], '" alt="' . $news['subject'] . '" border="0" /></a><br /></div><div class="newsblock">';
else
echo '
<div style="display: block; overflow: auto;"><div class="floatsquare"><a href="', $news['href'], '"><img src="' . $attachment['href'] . ';image" alt="' . $news['subject'] . '" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /></a><br /></div><div class="newsblock">';
}
}
else
echo '
<div style="display: block; overflow: auto;"><div class="newsblock2">';

echo '
<div class="headline"><a href="', $news['href'], '">', $news['subject'], '</a></div>
<div class="details">', $news['link'], $news['locked'] ? '' : ' | ' . $news['views'], ' views</div>

</div></div><div style="clear: both;"></div>';

if (!$news['is_last'])
echo '
<hr />';
}
}
Title: Re: SimplePortal - 2.3.6 Released!
Post by: CrashTester on May 12, 2015, 12:58:31 PM
Hi. I'm looking for support on Simple Portal, I registered to the forum a few days ago and did not get an activation email, have tried again and again to have it resent but nothing. Its not in my junk folder. I'm using my Hotmail account, my username is Crash100 please can you enable my account on http://simpleportal.net. Thanks.

My problem is that I get a the following error page when copy and pasting some HTML content into a new page I want to create, any suggestions on how to resolve this?

This page can't be displayed

•Make sure the web address http://condadodealhamaforum.com is correct.
•Look for the page with your search engine.
•Refresh the page in a few minutes.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on May 12, 2015, 09:05:56 PM
CrashTester,

  The email will show in your spam folder because it contains links from an unknown sender and not the junk folder (the 2 folders are not the same).
Simple Portal pages have 3 types ~ BBC, HTML & PHP. If it is HTML you are attempting to add then ensure it is the HTML page type selected.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: CrashTester on May 13, 2015, 07:22:49 AM
Thanks Chen Zhen. Hotmail only has a Junk folder (no Spam folder) and I check my junk folder daily - the emails are not arriving.

Incidentally I had exactly the same thing with Dream Portal - could never get registered to their support forum so ditched that in favour or Simple Portal. This is becoming a headache for me, I've never had a problem with any other registration before except the two forums mentioned.

Yep I am selecting HTML when creating my page. It seems to be when I pasted over a certain number of words/characters that it throws up the error.

Also, I have noticed that when I try to change the size of the left or right column it also errors. Seems to me that my install of Simple Portal is bad although it installed fine. I really want this fixed as it is causing me a major headache in trying to get my site off the ground.

Any suggestions on how to fix this? I could delete and reinstall the portal but not convinced that would help.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on May 14, 2015, 12:51:02 AM
CrashTester,

The solution for a block code that exceeds the character allowance is to create a php file that echo's the content, use a custom php block to include that file and execute its function(s). Imo structure it similar to an existing SMF PHP file and put it in one of the current directories such as the Sources folder.

Your SP account has been enabled.




ie. PHP file named: ../Sources/myblock1.php


<?php
// custom block code1

if (!defined('SMF'))
die('Hacking attempt...');

function 
custom_block1()
{
    echo 
'This is my HTML content!';
}
?>






Custom PHP block:

global $sourcedir;

require_once($sourcedir . '/myblock1.php');
custom_block1();





Regards.

Title: Re: SimplePortal - 2.3.6 Released!
Post by: CrashTester on May 14, 2015, 07:06:49 AM
Thanks Chen, I will try that to see if it works and report back. What is the character limit of an HTML file, where is that setting? My page is not that excessive and I find it disappointing that I have to use such a work around for something which is fairly basic (I've copied the page I am trying to create below).

Also, how does this explain the same error when trying to adjust the column widths?

Thanks again.

This Privacy Policy governs the manner in which Condado de Alhama Forum collects, uses, maintains and discloses information collected from users (each, a "User") of the <a href="www.condadodealhamaforum.com">www.condadodealhamaforum.com</a> website ("Site"). This privacy policy applies to the Site and all products and services offered by Condado de Alhama Forum.<br><br>

<b>Personal identification information</b><br><br>

We may collect personal identification information from Users in a variety of ways, including, but not limited to, when Users visit our site, register on the site, place an order, subscribe to the newsletter, and in connection with other activities, services, features or resources we make available on our Site. Users may be asked for, as appropriate, name, email address. We will collect personal identification information from Users only if they voluntarily submit such information to us. Users can always refuse to supply personally identification information, except that it may prevent them from engaging in certain Site related activities.<br><br>

<b>Non-personal identification information</b><br><br>

We may collect non-personal identification information about Users whenever they interact with our Site. Non-personal identification information may include the browser name, the type of computer and technical information about Users means of connection to our Site, such as the operating system and the Internet service providers utilized and other similar information.<br><br>

<b>Web browser cookies</b><br><br>

Our Site may use "cookies" to enhance User experience. User's web browser places cookies on their hard drive for record-keeping purposes and sometimes to track information about them. User may choose to set their web browser to refuse cookies, or to alert you when cookies are being sent. If they do so, note that some parts of the Site may not function properly.<br><br>

<b>How we use collected information</b><br><br>

Condado de Alhama Forum may collect and use Users personal information for the following purposes:<br>
<ul>
<li><i>- To personalize user experience</i><br>
We may use information in the aggregate to understand how our Users as a group use the services and resources provided on our Site.</li>
<li><i>- To improve our Site</i><br>
We may use feedback you provide to improve our products and services.</li>
<li><i>- To process payments</i><br>
We may use the information Users provide about themselves when placing an order only to provide service to that order. We do not share this information with outside parties except to the extent necessary to provide the service.</li>
<li><i>- To send periodic emails</i><br>
We may use the email address to send them information and updates pertaining to their order. If User decides to opt-in to our mailing list, they will receive emails that may include company news, updates, related product or service information, etc. If at any time the User would like to unsubscribe from receiving future emails, we include detailed unsubscribe instructions at the bottom of each email.</li>
</ul>
<b>How we protect your information</b><br><br>

We adopt appropriate data collection, storage and processing practices and security measures to protect against unauthorized access, alteration, disclosure or destruction of your personal information, username, password, transaction information and data stored on our Site.<br><br>

<b>Sharing your personal information</b><br><br>

We do not sell, trade, or rent Users personal identification information to others. We may share generic aggregated demographic information not linked to any personal identification information regarding visitors and users with our business partners, trusted affiliates and advertisers for the purposes outlined above.<br><br>

<b>Third party websites</b><br><br>

Users may find advertising or other content on our Site that link to the sites and services of our partners, suppliers, advertisers, sponsors, licensors and other third parties. We do not control the content or links that appear on these sites and are not responsible for the practices employed by websites linked to or from our Site. In addition, these sites or services, including their content and links, may be constantly changing. These sites and services may have their own privacy policies and customer service policies. Browsing and interaction on any other website, including websites which have a link to our Site, is subject to that website's own terms and policies.<br><br>

<b>Advertising</b><br><br>

Ads appearing on our site may be delivered to Users by advertising partners, who may set cookies. These cookies allow the ad server to recognize your computer each time they send you an online advertisement to compile non personal identification information about you or others who use your computer. This information allows ad networks to, among other things, deliver targeted advertisements that they believe will be of most interest to you. This privacy policy does not cover the use of cookies by any advertisers.<br><br>

<b>Google Adsense</b><br><br>

Some of the ads may be served by Google. Google's use of the DART cookie enables it to serve ads to Users based on their visit to our Site and other sites on the Internet. DART uses "non personally identifiable information" and does NOT track personal information about you, such as your name, email address, physical address, etc. You may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at <a href="http://www.google.com/privacy_ads.html">http://www.google.com/privacy_ads.html</a><br><br>

<b>Changes to this privacy policy</b><br><br>

Condado de Alhama Forum has the discretion to update this privacy policy at any time. When we do, we will revise the updated date at the bottom of this page. We encourage Users to frequently check this page for any changes to stay informed about how we are helping to protect the personal information we collect. You acknowledge and agree that it is your responsibility to review this privacy policy periodically and become aware of modifications.<br><br>

<b>Your acceptance of these terms</b><br><br>

By using this Site, you signify your acceptance of this policy. If you do not agree to this policy, please do not use our Site. Your continued use of the Site following the posting of changes to this policy will be deemed your acceptance of those changes.<br><br>

<b>Contacting us</b><br><br>

If you have any questions about this Privacy Policy, the practices of this site, or your dealings with this site, please contact us at: <a href="mailto:[email protected]?Subject=Privacy%20Policy" target="_top">[email protected]</a>
<br><br>
This document was last updated on February 22, 2015<br><br>
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on May 15, 2015, 11:35:18 PM
CrashTester,

  No your HTML is not that excessive and therefore what I previously mentioned is not necessary in this particular case.
I tested your HTML block/page which works fine although I'd like to mention that the SMF 2.0.X branch uses XHTML format (meaning your line breaks need to be self closed).

Here is your revised HTML block/page code:
This Privacy Policy governs the manner in which Condado de Alhama Forum collects, uses, maintains and discloses information collected from users (each, a "User") of the <a href="http://www.condadodealhamaforum.com">www.condadodealhamaforum.com</a> website ("Site"). This privacy policy applies to the Site and all products and services offered by Condado de Alhama Forum.<br /><br />

<b>Personal identification information</b><br /><br />

We may collect personal identification information from Users in a variety of ways, including, but not limited to, when Users visit our site, register on the site, place an order, subscribe to the newsletter, and in connection with other activities, services, features or resources we make available on our Site. Users may be asked for, as appropriate, name, email address. We will collect personal identification information from Users only if they voluntarily submit such information to us. Users can always refuse to supply personally identification information, except that it may prevent them from engaging in certain Site related activities.<br /><br />

<b>Non-personal identification information</b><br /><br />

We may collect non-personal identification information about Users whenever they interact with our Site. Non-personal identification information may include the browser name, the type of computer and technical information about Users means of connection to our Site, such as the operating system and the Internet service providers utilized and other similar information.<br /><br />

<b>Web browser cookies</b><br /><br />

Our Site may use "cookies" to enhance User experience. User's web browser places cookies on their hard drive for record-keeping purposes and sometimes to track information about them. User may choose to set their web browser to refuse cookies, or to alert you when cookies are being sent. If they do so, note that some parts of the Site may not function properly.<br /><br />

<b>How we use collected information</b><br /><br />

Condado de Alhama Forum may collect and use Users personal information for the following purposes:<br />
<ul>
<li><i>- To personalize user experience</i><br />
We may use information in the aggregate to understand how our Users as a group use the services and resources provided on our Site.</li>
<li><i>- To improve our Site</i><br />
We may use feedback you provide to improve our products and services.</li>
<li><i>- To process payments</i><br />
We may use the information Users provide about themselves when placing an order only to provide service to that order. We do not share this information with outside parties except to the extent necessary to provide the service.</li>
<li><i>- To send periodic emails</i><br />
We may use the email address to send them information and updates pertaining to their order. If User decides to opt-in to our mailing list, they will receive emails that may include company news, updates, related product or service information, etc. If at any time the User would like to unsubscribe from receiving future emails, we include detailed unsubscribe instructions at the bottom of each email.</li>
</ul>
<b>How we protect your information</b><br /><br />

We adopt appropriate data collection, storage and processing practices and security measures to protect against unauthorized access, alteration, disclosure or destruction of your personal information, username, password, transaction information and data stored on our Site.<br /><br />

<b>Sharing your personal information</b><br /><br />

We do not sell, trade, or rent Users personal identification information to others. We may share generic aggregated demographic information not linked to any personal identification information regarding visitors and users with our business partners, trusted affiliates and advertisers for the purposes outlined above.<br /><br />

<b>Third party websites</b><br /><br />

Users may find advertising or other content on our Site that link to the sites and services of our partners, suppliers, advertisers, sponsors, licensor and other third parties. We do not control the content or links that appear on these sites and are not responsible for the practices employed by websites linked to or from our Site. In addition, these sites or services, including their content and links, may be constantly changing. These sites and services may have their own privacy policies and customer service policies. Browsing and interaction on any other website, including websites which have a link to our Site, is subject to that website's own terms and policies.<br /><br />

<b>Advertising</b><br /><br />

Ads appearing on our site may be delivered to Users by advertising partners, who may set cookies. These cookies allow the ad server to recognize your computer each time they send you an online advertisement to compile non personal identification information about you or others who use your computer. This information allows ad networks to, among other things, deliver targeted advertisements that they believe will be of most interest to you. This privacy policy does not cover the use of cookies by any advertisers.<br /><br />

<b>Google Adsense</b><br /><br />

Some of the ads may be served by Google. Google's use of the DART cookie enables it to serve ads to Users based on their visit to our Site and other sites on the Internet. DART uses "non personally identifiable information" and does NOT track personal information about you, such as your name, email address, physical address, etc. You may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at <a href="http://www.google.com/privacy_ads.html">www.google.com/privacy_ads.html</a><br /><br />

<b>Changes to this privacy policy</b><br /><br />

Condado de Alhama Forum has the discretion to update this privacy policy at any time. When we do, we will revise the updated date at the bottom of this page. We encourage Users to frequently check this page for any changes to stay informed about how we are helping to protect the personal information we collect. You acknowledge and agree that it is your responsibility to review this privacy policy periodically and become aware of modifications.<br /><br />

<b>Your acceptance of these terms</b><br /><br />

By using this Site, you signify your acceptance of this policy. If you do not agree to this policy, please do not use our Site. Your continued use of the Site following the posting of changes to this policy will be deemed your acceptance of those changes.<br /><br />

<b>Contacting us</b><br /><br />

If you have any questions about this Privacy Policy, the practices of this site, or your dealings with this site, please contact us at: <a href="mailto:[email protected]?subject=Privacy%20Policy" target="_top">[email protected]</a>
<br /><br />
This document was last updated on February 22, 2015<br /><br />






I apologize as I think I may have misinterpreted your issue.
Were you able to save it to the database without issue?
Is it only an issue when you attempt to actually display this page?

When editing the page, the Page ID input should be privacypolicy in this specific case.

Title: Re: SimplePortal - 2.3.6 Released!
Post by: babalola olasehinde on May 17, 2015, 03:51:40 AM
while trying  to install this mod i got the errors below.pls what should i do

i am using mobile-desktop theme

should i go ahead to install
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on May 17, 2015, 04:55:09 PM
babalola olasehinde,

  You will need to enable those changes to that custom theme as well as parsing the flagged edit to the Subs.php file.
It can't find the exact code it is looking for within the Subs.php file due to a previous mod installation or manual edit within the same area.
After installing Simple Portal you will need to manually edit the Subs.php file to add the necessary edit that is showing an error.
ref. http://wiki.simplemachines.org/smf/Mod_and_Theme_Install_problems#Some_Install_Tests_Failed_or_the_mod_doesn.27t_seem_to_be_all_there

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: dannyv1708 on May 26, 2015, 01:49:22 AM
I would like to let guests to view my portal page but not my forum. What kind of setting should I configure?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: CrashTester on May 31, 2015, 05:20:25 PM
Thanks Chen Zhen - your last post helped solve my issue, I've only just got around to checking back and implementing this. I'm still getting to grips with some of SMF's finer details and was unaware of the XHTML tag issue so that will be useful for me anyway. Cheers!
Title: Re: SimplePortal - 2.3.6 Released!
Post by: villasg on June 07, 2015, 07:24:27 AM
Hi .
I want to install SimplePortal 2.3.6 in my smf 2.0.10 forum ( greek language ) .
But i do not find Greek Language pack for SimplePortal 2.3.6 i found only for SimplePortal 2.3.5 ( SimplePortal_2.3.5_Greek.zipby nikan )
I have a simple (?) question :
It is possible to install SimplePortal 2.3.6 with Language pack for 2.3.5 ?

Thanks
Title: Re: SimplePortal - 2.3.6 Released!
Post by: SaltedWeb on June 07, 2015, 05:47:43 PM
I have a question about blog setup. I installed the blog addon, and setup the blog block on SP, I tried directing it to show the content of the Category and it only shows the header information not content. I have tried messing around with cant seem to get SP to show the posts.  Is there something I am missing.?

PS to be clear I need the contents showing up not the poster topic name but cant seem to get a setting that does that.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: villasg on June 08, 2015, 02:24:21 AM
Hello .
Thanks for this great mod and  thanks to @nikan for greek translation .
I have installed in my new 2.0.10 ( upgrade from 1.1.21 ) and look like great .
But i need some help .
My guests cannot see the portal and i do not understand how enable this option .


Thank you

=========
Stupid stupid stupid ........

I forget  HelpMaintenance Mode ---> on

Fixed ...
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Motorhed on June 08, 2015, 11:57:43 PM
So no ideas on the guest image thing, right?

As I mentioned, the images show to for guests on outside PHP pages, but they don't show for guests on the portal.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Kerrith on June 12, 2015, 08:35:15 PM
Kudos for an excellent mod. I just upgraded my SMF 2.0.7 to SMF 2.0.10 and switched from Tiny Portal 1.0 to SimplePortal 2.3.6 and all went perfectly smoothly. Nary a glitch. Simply amazing!

My one remaining problem is how to delete "TinyPortal © 2005-2012" from the bottom credits, see Big Island Forum (http://www.bigislandforum.org/forums/index.php).

SMF 2.0.10 | SMF © 2015, Simple Machines
SimplePortal 2.3.6 © 2008-2014, SimplePortal
TinyPortal © 2005-2012

I've deleted everything I can find pertaining to TP.

Kerry
Title: Re: SimplePortal - 2.3.6 Released!
Post by: player.samp on June 13, 2015, 02:58:14 PM
Quote from: Kerrith on June 12, 2015, 08:35:15 PM
Kudos for an excellent mod. I just upgraded my SMF 2.0.7 to SMF 2.0.10 and switched from Tiny Portal 1.0 to SimplePortal 2.3.6 and all went perfectly smoothly. Nary a glitch. Simply amazing!

My one remaining problem is how to delete "TinyPortal © 2005-2012" from the bottom credits, see Big Island Forum (http://www.bigislandforum.org/forums/index.php).

SMF 2.0.10 | SMF © 2015, Simple Machines
SimplePortal 2.3.6 © 2008-2014, SimplePortal
TinyPortal © 2005-2012
I've deleted everything I can find pertaining to TP.

Kerry


I cannot see any "TinyPortal © 2005-2012" in the portal of your forum nor the index as a guest.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Kerrith on June 13, 2015, 04:56:30 PM
Hi Player...,

Since posting I downloaded the forum's directory and did a search of the entire directory for "tiny portal" using FileLocatorPro and found dozens of tp files. I deleted them and now now Tiny Portal doesn't appear at the bottom.

Thanks for the follow-up.

Kerry

PS: I ran my new updated SMF with SimplePortal through https://validator.w3.org/ (https://validator.w3.org/) and it passed with no errors—a first for me given that I have 17 websites all of which have numerous errors.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: rubens116 on June 23, 2015, 12:56:43 PM
Hello, thank you for this mod.

What I really would like to do is to have all my sticky topics on top of the Recent Posts block. Is there any way to do this? I was about to request a new mod for this, but because Simple Portal is already a mod itself I think the best thing to do is ask it here. So what I would like is to have all my sticky topics of all boards (or a few if it's possible to edit) on top of the Recent Posts block.

Thanks for the replies in advance.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Ninja ZX-10RR on August 07, 2015, 11:51:39 AM
rubens116,

Make them articles instead, so you will be able to select every single one of them accurately (since an article is essentially a topic and their sticky status won't be affected) ;)
Sorry for the late reply, we check the site more often than the topic itself, but I can't remember this being answered over there, so here you go!

Regards,
SimplePortal Support Team
Title: Re: SimplePortal - 2.3.6 Released!
Post by: iain sherriff on August 10, 2015, 05:48:51 AM
Is anyone using Simple Portal also using the Super simple Thread Tags mod 
http://custom.simplemachines.org/mods/index.php?mod=4034

If so could you take a look at my question here please

http://www.simplemachines.org/community/index.php?topic=533673.msg3829233#msg3829233

Thanks
Title: Re: SimplePortal - 2.3.6 Released!
Post by: adiboy on September 22, 2015, 02:34:25 PM
PLEASE... HOw do i make a block visible to mobile only? i want to make some block visible on mobile but dont want them to appear on pc. Lead me through please... i have been trying it for three days now but couldn't get through it. I REALLY NEED HELP
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Gluz on September 22, 2015, 04:25:07 PM
The easy way: you can hide the title and assign a Custom Class to the body of the Block and then add to your /Themes/yourtheme/css/index.css a rule to hide that class if the screen size exceed some width, with this in PC the block will be hidden and only in mobile devices will appear.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Ninja ZX-10RR on September 22, 2015, 09:41:00 PM
adiboy,

Gluz is right, even though (no offence) not much user-friendly if I dare to say it ;D
Anyways, this should be a more step-by-step guide: http://simpleportal.net/index.php?topic=13954.0 ;)

Regards,
~SimplePortal Support Team
Title: Re: SimplePortal - 2.3.6 Released!
Post by: waplist on December 12, 2015, 08:54:08 AM
Please add support for redsy theme, i mean for responsiveness.Redsy is popular theme. due to tables in simple portal its showing pc website
Title: Re: SimplePortal - 2.3.6 Released!
Post by: waplist on December 12, 2015, 09:13:32 AM
And how to set numbers of post to show on top area
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Ninja ZX-10RR on February 26, 2016, 02:13:26 PM
Quote from: waplist on December 12, 2015, 08:54:08 AM
Please add support for redsy theme, i mean for responsiveness.Redsy is popular theme. due to tables in simple portal its showing pc website
I apologize, I never saw your message and we don't check the topic often here, that's why there is a website dedicated to support this mod: http://simpleportal.net/index.php
Restoring responsiveness on Redsy is fairly easy, I did it a few weeks ago on http://www.colormeforum.com/ just remove the min-width property on the body (remove the whole body declaration), set in portal.css. You might need to tweak something here and there, but nothing as bad as that evil line :P Bear in mind SimplePortal was not thought to be responsive, because the responsive era came fairly late. I do not know what 2.4 will be like, but it's a complete recoding, so it *may* have been addressed.

For the second question I can friendly point you to the documentation ;) http://simpleportal.net/index.php?action=docs;area=block_editor

Regards,
~SimplePortal Support Team
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Kosuki on April 14, 2016, 06:47:15 PM
Some problems,
Simpleportal does not appear in the forum section.
Simpleportal does not appear in any section at all.
Simpleportal only appears in the Home button section.
Can not display forum categories in the simpleportal.

I would like to remove the Forum button in simple portal and have the forum it self be with in simpleportal.
Please Help

Images Below

(http://i.imgur.com/Qinsjae.png)
(http://i.imgur.com/I6Z6bYk.png)
(http://i.imgur.com/5DQKRqo.png)
(http://i.imgur.com/9KPE8Kx.png)
(http://i.imgur.com/4mn1nOK.png)
Title: Re: SimplePortal - 2.3.6 Released!
Post by: br360 on April 14, 2016, 09:49:20 PM
Go to Admin>>Simple Portal>>Configuration>>General Settings.

Where you see "Portal Mode", change that to Integration. That will integrate the portal into your main index page.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: chrishicks on April 14, 2016, 11:45:59 PM
I'm hoping this is okay to ask here since it is a SP related question just not an issue related one. I was wondering if anyone had a block code for Recent Topics that is a bit simpler than the built in one. I took a look at the SP forum and the only code I saw had avatars and such which shot my page queries up from around 15 to almost 200 because I have members who want to only use the portal to view new topics instead of viewing the various boards so I have the total shown set to 35-40 most recent topics. I'd love a code that just shows the name of the topic, user who posted it and the date it was posted. I can do without it showing the board the topic is in and the little dots that SP adds in front of each topic if possible so the topics fill the entire block from left to right. I apologize if this is the wrong spot to ask for this.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Ninja ZX-10RR on April 15, 2016, 08:15:33 PM
@br360, thanks.

@chrishicks, you may have some luck posting into our Custom Coding board, but we are all volunteers dedicating their time for free, so don't expect it to be a blazing fast reply. Thank you for your understanding!

Regards,
~SimplePortal Support Team
Title: Re: SimplePortal - 2.3.6 Released!
Post by: chrishicks on April 16, 2016, 05:36:00 PM
Ninja,

Thanks for the reply. I'll head over there and make a post in a bit. And I'm not in any kind of rush so I'm fine with waiting for however long it takes because I understand real life takes precedence over random internet stuff.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: nano1999 on April 21, 2016, 02:21:01 PM
how to add HTML facebook block ? I mean how to get the HTML code from the page..

Also how to enable Users Logged IN today ?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: TheKiller1000 on May 01, 2016, 03:34:50 AM
Hello! That would be a problem when I'm writing a chat in the text does not appear unless you refresh the page . ( SimplePortal , as 5s should upgrade . )

Please help :(
Title: Re: SimplePortal - 2.3.6 Released!
Post by: habeycole on July 08, 2016, 05:20:12 AM
Hi,

I added a SP HTML block to my Forum after which I deleted the block. I didn't turn off the block before deleting it, so after deleting the block, the content still shows. Could you please help me out on how I can switch off the block, and hide its contents from showing???
Title: Re: SimplePortal - 2.3.6 Released!
Post by: habeycole on July 15, 2016, 08:42:21 AM
I made a support post here for SP for some time now and I guess it's going to take forever to actually find support. Instead of waiting for this, I clicked over to their support site and need to register(as to seek for support), but a question is delaying my registration. Please who knows the answer to this question on SP's registration page?
Question:
"Spell the exact "number" of holes in a Duckpin bowling ball"

Expecting answers, pals.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Grammy on July 15, 2016, 10:27:12 AM
Quote from: habeycole on July 15, 2016, 08:42:21 AM
I made a support post here for SP for some time now and I guess it's going to take forever to actually find support. Instead of waiting for this, I clicked over to their support site and need to register(as to seek for support), but a question is delaying my registration. Please who knows the answer to this question on SP's registration page?
Question:
"Spell the exact "number" of holes in a Duckpin bowling ball"

Expecting answers, pals.


There aren't any holes in a Duckpin bowling ball, I'm pretty sure.   :-\

So I'd try zero or none? 
Title: Re: SimplePortal - 2.3.6 Released!
Post by: vbgamer45 on July 15, 2016, 11:02:52 AM
That's an odd question to ask... I would guess two...
Title: Re: SimplePortal - 2.3.6 Released!
Post by: MrMike on July 15, 2016, 11:07:25 AM
Quote from: Grammy on July 15, 2016, 10:27:12 AM
There aren't any holes in a Duckpin bowling ball, I'm pretty sure.   :-\

That's correct. Duckpin balls have no finger holes, so "zero" or "none" sounds right to me.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: habeycole on July 18, 2016, 07:08:07 AM
Thanks peeps for your answers. I already registered there and the acceptable answer is zero.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Ninja ZX-10RR on July 18, 2016, 10:49:58 PM
We are reviewing that registration question in team boards, seeing you had problems while registering. Thanks for the feedback.
Your question has been answered on SimplePortal.net by one of my teammates.

Regards,
~SimplePortal Support Team
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on July 18, 2016, 11:12:46 PM

Yes I am going to change that question to:
"Please spell the answer to the Ultimate Question of Life, the Universe, and Everything:"
.. which is quite simple really.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Grammy on July 18, 2016, 11:59:11 PM
Quote from: Chen Zhen on July 18, 2016, 11:12:46 PM

Yes I am going to change that question to:
"Please spell the answer to the Ultimate Question of Life, the Universe, and Everything:"
.. which is quite simple really.

Forty Two!   ;)
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Ninja ZX-10RR on July 19, 2016, 01:27:09 AM
We should totally do that ;D :P
Title: Re: SimplePortal - 2.3.6 Released!
Post by: habeycole on July 21, 2016, 08:11:20 AM
Quote from: Ninja ZX-10RR on July 18, 2016, 10:49:58 PM
We are reviewing that registration question in team boards, seeing you had problems while registering. Thanks for the feedback.
Please do, it's necessary.

Quote from: Ninja ZX-10RR on July 18, 2016, 10:49:58 PM
Your question has been answered on SimplePortal.net by one of my teammates.
Regards,
~SimplePortal Support Team
No, it's yet to be answered. I hope you can help provide an answer to it.

Regards.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Ninja ZX-10RR on July 21, 2016, 10:46:31 AM
Quote from: habeycole on July 21, 2016, 08:11:20 AM
Quote from: Ninja ZX-10RR on July 18, 2016, 10:49:58 PM
Your question has been answered on SimplePortal.net by one of my teammates.
Regards,
~SimplePortal Support Team
No, it's yet to be answered. I hope you can help provide an answer to it.
I haven't said it was solved, I said it was answered :P It's something I've never seen before, so the fix is not likely going to be "Hey tick that checkbox and save" ;) Hope you understand what I mean.

Anyways I have answered as well.

Regards
Title: Re: SimplePortal - 2.3.6 Released!
Post by: GoldTec on August 14, 2016, 03:48:55 PM
Hi all! I have one problem. I not found chatbox commands in simple portal. Only 1 working. That's /me. Other not working. Can you help me? Sorry for my bad english.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: ntfrance on August 18, 2016, 08:36:42 AM
Quote from: GoldTec on August 14, 2016, 03:48:55 PM
Hi all! I have one problem. I not found chatbox commands in simple portal. Only 1 working. That's /me. Other not working. Can you help me? Sorry for my bad english.

Correction problem : http://simpleportal.net/index.php?topic=13865.0
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Jailer on September 29, 2016, 09:04:15 PM
Shoutbox seems to be broken with the latest SMF update 2.0.12. I get shouts displayed when a new shout is entered but they all disappear when it refreshes.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Ninja ZX-10RR on September 29, 2016, 11:03:14 PM
We are aware and looking into it, thanks.
http://simpleportal.net/index.php?topic=14380.0
Title: Re: SimplePortal - 2.3.6 Released!
Post by: blunted on October 16, 2016, 12:53:22 PM
getting a 500 error when i try to add a page
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Ninja ZX-10RR on October 16, 2016, 04:46:16 PM
50x errors are server issues, you may want to ask your host about it, and possibly disable ModSecurity.

Regards,
SimplePortal Support Team
Title: Re: SimplePortal - 2.3.6 Released!
Post by: blunted on October 16, 2016, 04:50:10 PM
it was a code error. 500 errors can be caused by code. restored a backup. its fixed
Title: Re: SimplePortal - 2.3.6 Released!
Post by: BlackandGold on October 18, 2016, 10:07:03 AM
Hi Folks,

I wanted to install "SimplePortal", but it doesn't work:

I get a "modification parse error" for the file "install.xml" and if I try to go on regardless, I just get a white blank page.

I alread tried a few different things with chmod and chown, I unpacked the package into the packages folder. Is there anything else you could point out for me, which I should try?
Is there any information about my problem missing?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: aegersz on October 18, 2016, 11:48:32 PM
are you able to unzip the package file and check the contents of each file to ensure that it is not damaged somehow ?

as i said in another thread, can you download the mod from the mod site again then delete the package (in Package Manager) and then upload the fresh one and try the install again ?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: BlackandGold on October 19, 2016, 09:24:39 AM
OK, I have no clue what happened.

It just worked today.  ???

My only possible explanation would be that I unzipped the package into the Packages folder via FTP. Thats ALL I did.

But thank you very much for your help!
Title: Re: SimplePortal - 2.3.6 Released!
Post by: TMR Guy on November 23, 2016, 08:43:28 PM
I do not want to allow guests to browse my forum, but I would like them to be able to see the home page using this mod. Is there a way to do that without unchecking the allowed groups guests box in each board?

Thanks in advance,

TMR Guy.
Title: Re: SimplePortal - 2.3.6 Released!
Post by: SkzlN on December 31, 2016, 07:17:43 AM
Hey guys, i have smf 2.0.12, but when i installed simpleportal, the home and the forum ( HOME  FORUM ) got merging, it's has been that normaly when i do simpleportal, i must have HOME  FORUM, but i'm still have only HOME
anyone can help me?
Title: Re: SimplePortal - 2.3.6 Released!
Post by: Chen Zhen on December 31, 2016, 05:29:16 PM

SkzlN,

Have a look at this link:
http://simpleportal.net/index.php?action=docs;area=general_settings

Setting portal mode to front page should give you the desired behavior.
Title: Re: SimplePortal
Post by: danshell on February 05, 2017, 09:03:59 PM
Hi I have added a Poll block to the right side and it works fine for me as the administrator but none of my members or even guests can see it.

They get 'you can not see the results of this poll at the moment' message.

I have permissions for that block set to 'everyone', I even tried custom permissions and I am getting the same results.

Any help is appreciated.
Title: Re: SimplePortal
Post by: lurkalot on February 06, 2017, 02:23:15 AM
Quote from: danshell on February 05, 2017, 09:03:59 PM
Hi I have added a Poll block to the right side and it works fine for me as the administrator but none of my members or even guests can see it.

They get 'you can not see the results of this poll at the moment' message.

I have permissions for that block set to 'everyone', I even tried custom permissions and I am getting the same results.

Any help is appreciated.

Did you set that option when you created the poll?  Edit: Sorry, you mean they can't see the actual poll at all, or just the results?
Title: Re: SimplePortal
Post by: danshell on February 06, 2017, 04:43:49 PM
When I am logged in as the administrator I can see it ok but when I am logged out as a guest or even if I log back in as a regular member it doesnt show.....

Title: Re: SimplePortal
Post by: Linkjay on February 06, 2017, 05:05:01 PM
Quote from: danshell on February 06, 2017, 04:43:49 PM
When I am logged in as the administrator I can see it ok but when I am logged out as a guest or even if I log back in as a regular member it doesnt show.....

Did you make sure that the "Permissions" field on each block it set to everyone?
Title: Re: SimplePortal
Post by: danshell on February 06, 2017, 05:08:21 PM
Quote from: Linkjay on February 06, 2017, 05:05:01 PM


Did you make sure that the "Permissions" field on each block it set to everyone?

Yes. All the other blocks work ok it is just the Poll block that only works when logged in as admin.

Guests and regular members can see all the blocks.
Title: Re: SimplePortal
Post by: Chen Zhen on February 06, 2017, 05:16:08 PM

You must enable polls within SMF's Features & Options else it will only allow Admins to view the data.
This is a SMF setting & not one of Simple Portal's settings.

Title: Re: SimplePortal
Post by: danshell on February 07, 2017, 02:43:40 AM
Quote from: Chen Zhen on February 06, 2017, 05:16:08 PM

You must enable polls within SMF's Features & Options else it will only allow Admins to view the data.
This is a SMF setting & not one of Simple Portal's settings.

Polls are enabled.

Everyone can see the poll in its thread. All that works fine.

Its just the poll block on the portal front page that isnt showing for anyone other than admins. The block is showing, just the content is not.

Title: Re: SimplePortal
Post by: lurkalot on February 07, 2017, 03:13:58 AM
Quote from: danshell on February 07, 2017, 02:43:40 AM
Quote from: Chen Zhen on February 06, 2017, 05:16:08 PM

You must enable polls within SMF's Features & Options else it will only allow Admins to view the data.
This is a SMF setting & not one of Simple Portal's settings.

Polls are enabled.

Everyone can see the poll in its thread. All that works fine.

Its just the poll block on the portal front page that isnt showing for anyone other than admins. The block is showing, just the content is not.

Ok, so if the portal block is showing, but the content (Poll) isn't then it's a SMF permission setting.

Putting it another way. You're trying to display content from SMF inside a block, you have to make sure SMF allows that content to be displayed to those groups.  Check your SMF permission settings.
Title: Re: SimplePortal
Post by: danshell on February 07, 2017, 06:23:47 PM
Thanks lurkalot. I have checked and double checked all permissions and everyone including guests are allowed to see the topic and poll. Everyone can see it in the forum thread just not on the portal block.

Title: Re: SimplePortal
Post by: lurkalot on February 08, 2017, 02:09:54 AM
Quote from: danshell on February 07, 2017, 06:23:47 PM
Thanks lurkalot. I have checked and double checked all permissions and everyone including guests are allowed to see the topic and poll. Everyone can see it in the forum thread just not on the portal block.

Ok, I think I see what's happening. And confirm.  If you set up a poll, and set the poll options to "Show the poll's results to anyone." The poll content will show in the block.

If you set the poll options to either of the tow remaining settings,

"Only show the results after someone has voted."  Actual poll content is hidden, and you're presented with the 'you can not see the results of this poll at the moment' message.

"Only show the results after the poll has expired."  Actual poll content is hidden, and you're presented with the 'you can not see the results of this poll at the moment' message.
Title: Re: SimplePortal
Post by: danshell on February 08, 2017, 09:54:25 AM
Quote from: lurkalot on February 08, 2017, 02:09:54 AM
Quote from: danshell on February 07, 2017, 06:23:47 PM
Thanks lurkalot. I have checked and double checked all permissions and everyone including guests are allowed to see the topic and poll. Everyone can see it in the forum thread just not on the portal block.

Ok, I think I see what's happening. And confirm.  If you set up a poll, and set the poll options to "Show the poll's results to anyone." The poll content will show in the block.

If you set the poll options to either of the tow remaining settings,

"Only show the results after someone has voted."  Actual poll content is hidden, and you're presented with the 'you can not see the results of this poll at the moment' message.

"Only show the results after the poll has expired."  Actual poll content is hidden, and you're presented with the 'you can not see the results of this poll at the moment' message.

Yes, you got it. Thanks very much I really do appreciate the help. I would have never worked it out.
Title: Re: SimplePortal
Post by: lurkalot on February 08, 2017, 12:31:57 PM
Quote from: danshell on February 08, 2017, 09:54:25 AM
Quote from: lurkalot on February 08, 2017, 02:09:54 AM
Quote from: danshell on February 07, 2017, 06:23:47 PM
Thanks lurkalot. I have checked and double checked all permissions and everyone including guests are allowed to see the topic and poll. Everyone can see it in the forum thread just not on the portal block.

Ok, I think I see what's happening. And confirm.  If you set up a poll, and set the poll options to "Show the poll's results to anyone." The poll content will show in the block.

If you set the poll options to either of the tow remaining settings,

"Only show the results after someone has voted."  Actual poll content is hidden, and you're presented with the 'you can not see the results of this poll at the moment' message.

"Only show the results after the poll has expired."  Actual poll content is hidden, and you're presented with the 'you can not see the results of this poll at the moment' message.

Yes, you got it. Thanks very much I really do appreciate the help. I would have never worked it out.

Thing is though, it shouldn't really be like that.  It should still show the poll content with those two settings, just not the votes, if you see what I mean. I think it's a bug. ;)
Title: Re: SimplePortal
Post by: Captkaos on February 20, 2017, 11:50:33 PM
I am trying to uninstall Simple portal 2.3.5 on my forum running SMF 2.0.13 and I am getting the attached error.

can someone help"
Title: Re: SimplePortal
Post by: br360 on February 21, 2017, 12:02:11 AM
Looks like you are going to have to manually remove the code edits this mod makes to your default/Display.template.php and /Sources/Display.php.

Did you install an articles mod or edit anything in simple portal that had to do with the articles?
Title: Re: SimplePortal
Post by: Captkaos on February 21, 2017, 12:09:51 AM
Not that I am aware of.  Pretty must used it out of the box.

Not sure how to go about manually removing this either.
Title: Re: SimplePortal
Post by: br360 on February 21, 2017, 12:20:41 AM
Go to this link http://custom.simplemachines.org/mods/index.php?mod=1104

Look for "Manual Install Instructions for SMF" and click the parse tab. Scroll down until you see the files that are drawing errors and then you can edit those files, removing the code this mod added. (in your case default/Display.template.php and /Sources/Display.php)
Title: Re: SimplePortal
Post by: lukonic on March 31, 2017, 01:07:24 PM
Hello, how could i seperate the left/center/right blocks?
(http://i.imgur.com/epk7EdP.png)
i've tried playing with styles but it didn't want to work for me.
Title: Re: SimplePortal
Post by: lukonic on April 01, 2017, 09:15:07 AM
Quote from: lukonic on March 31, 2017, 01:07:24 PM
Hello, how could i seperate the left/center/right blocks?
(http://i.imgur.com/epk7EdP.png)
i've tried playing with styles but it didn't want to work for me.

Fixed it myself.  O:)
Title: Re: SimplePortal
Post by: Jsizizzle on May 13, 2017, 10:48:39 AM
Hello, I was told I had to find the answer to my problem here. Here goes. My problem is that I cannot fully change the theme on my page when I go to change the them and then reset for everyone all pages will change to the new theme except for my main portal page. The main page n always  stays the same for some reason. My website is at playersprogramu.com. I would really appreciate if someone can help me fix this or maybe just point me in the right direction as to what file to fix. Thank you
Title: Re: SimplePortal
Post by: lurkalot on May 13, 2017, 11:33:39 AM
Not sure if this will sort your problem because I don't use SP, but have you tried this setting?

Admin > Simpleportal > General Settings > Portal Theme.  (Select the theme which will be used for the portal)
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on May 17, 2017, 05:32:36 PM
Quote from: lurkalot on May 13, 2017, 11:33:39 AM
Not sure if this will sort your problem because I don't use SP, but have you tried this setting?

Admin > Simpleportal > General Settings > Portal Theme.  (Select the theme which will be used for the portal)
Tinyportal support supporting SimplePortal... Outrageous :P Thanks though, correct in my books.
Title: Re: SimplePortal
Post by: Arantor on May 17, 2017, 05:33:48 PM
Time was when SMF folks hung around in phpBB's IRC channel and phpBB folks lurked in SMF's IRC channel, all providing support.
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on May 17, 2017, 05:39:20 PM
Those kind of things got rare nowadays, though, so I tend to appreciate those small kindness acts.
Title: Re: SimplePortal
Post by: Jsizizzle on May 25, 2017, 08:11:47 PM
Is there a way to auto hide everything on my left block on my main portal page?
Title: Re: SimplePortal
Post by: Gryzor on May 29, 2017, 04:52:19 AM
Hello guys!

Yesterday I updated SMF to 2.0.14. I don't know if that's relevant or if the problem was there before, but it seems that when a user logs in through the "Profile Info" block he is redirected to a page with the error message: "Your session timed out while posting. Please go back and try again."

Can someone help?

Thanks!
Title: Re: SimplePortal
Post by: stratocaster on May 30, 2017, 04:17:36 PM
Quote from: Gryzor on May 29, 2017, 04:52:19 AM
Hello guys!

Yesterday I updated SMF to 2.0.14. I don't know if that's relevant or if the problem was there before, but it seems that when a user logs in through the "Profile Info" block he is redirected to a page with the error message: "Your session timed out while posting. Please go back and try again."

Can someone help?

Thanks!

Edit the  /Sources/PortalBlocks.php

FIND:
<input type="hidden" name="hash_passwrd" value="" />

REPLACE WITH:
<input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />

Credits for the member Gaza07 on the simpleportal forum:
https://simpleportal.net/index.php?topic=14466.0
Title: Re: SimplePortal
Post by: Gryzor on May 31, 2017, 03:10:40 AM
Ah, thanks for that pointer, much appreciated!
Title: Re: SimplePortal
Post by: Sigyn on July 10, 2017, 03:06:33 PM
Cheers, I currently use Cbox for my site's chat and am looking to move to using Discord. They offer a widget that I attempted to use with SimplePortal and it doesn't appear to work. They suggest using it with HTML so that was the block type I used with the following code:

<iframe src="https://discordapp.com/widget?id=285708870595248128&theme=dark" width="350" height="500" allowtransparency="true" frameborder="0"></iframe>

And it doesn't work. Is there any way that you all could integrate a way for Discord widgets to be used with SimplePortal? Or tell me if I did something wrong that should be changed to make it work?
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on July 11, 2017, 04:20:25 PM
Sorry but "doesn't work" is nowhere near to being an explanation...
Title: Re: SimplePortal
Post by: Sigyn on July 11, 2017, 04:54:35 PM
Quote from: Ninja ZX-10RR on July 11, 2017, 04:20:25 PM
Sorry but "doesn't work" is nowhere near to being an explanation...
As in nothing shows up. No widget, no code, no errors. It previews as an empty box with a semi-transparent background.
Title: Re: SimplePortal
Post by: Chen Zhen on July 11, 2017, 10:08:10 PM

After testing what you posted in a HTML type block it seems to work just fine.
Title: Re: SimplePortal
Post by: OCJ on July 26, 2017, 02:25:29 PM
Simple Portal site has been down a couple of days now - whats the problem?
Title: Re: SimplePortal
Post by: lurkalot on July 26, 2017, 03:01:44 PM
Quote from: OCJ on July 26, 2017, 02:25:29 PM
Simple Portal site has been down a couple of days now - whats the problem?

I noticed this last night, it was trying to download something to my PC rather than load the site.  No idea what it was, but now it just appears to be down.
Title: Re: SimplePortal
Post by: vbgamer45 on July 26, 2017, 03:14:47 PM
Looks like whole vps is down at solarvps
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on July 26, 2017, 05:56:34 PM
I already forwarded that to one of our admins to be taken care of earlier today, but thank you guys anyway :)
Title: Re: SimplePortal
Post by: NekoSensei on July 27, 2017, 05:41:58 PM
it's a bad redirect https ... look this : https://simpleportal.net/ instead of this http://www.simpleportal.net/
;D
Title: Re: SimplePortal
Post by: khigh on July 27, 2017, 06:00:32 PM
Thanks for Simple Portal - great tool and I love it.

I have a weird little annoyance, today, though.

For the center block on my home page, I use "recent topics" set to 40 topics, and it's suddenly displaying 17. I tried setting it to 50 and it didn't change. I tried making a new topic to see if maybe it had lost a marker and would grow as topics were added, but it rolled one off apparently to stay at 17.

Is it possible I've done something wrong?

ETA - checked in Chrome and Firefox on Win10, and Chrome on Android.

ETA2 - Logged out of admin and in as user - same. Always exactly 17 topics
Title: Re: SimplePortal
Post by: Chen Zhen on July 27, 2017, 06:41:38 PM
Quote from: NekoSensei on July 27, 2017, 05:41:58 PM
it's a bad redirect https ... look this : https://simpleportal.net/ instead of this http://www.simpleportal.net/
;D

We are aware of the issue regarding Apache configuration which somehow came to be after LAMP updates and .htaccess to redirect to https is not working for the moment.
Unfortunately I have not had the time to fix things in a timely manner therefore these issues are still pending.
If you need to peruse the Simple Portal forum or ask for support at this time it is up and running fine using a SSL link.

Regards.
Title: Re: SimplePortal
Post by: SimplePortal Team on August 02, 2017, 02:00:19 PM
SimplePortal 2.3.7 Released! (http://simpleportal.net/index.php?topic=14501.0)

Quote from: SimplePortal Team on March 10, 2008, 11:16:07 PM
The SimplePortal Team is happy to announce the release of SimplePortal 2.3.7, code-named "Ghost!" This release includes fixes for the bugs found in the 2.3.6 version and is aimed at providing an even more stable portal experience for our users.

We urge all users to upgrade to SimplePortal 2.3.7 as soon as possible to take advantage of the bug fixes. A full list of changes for 2.3.7 can be found in the changelog.txt file within the SimplePortal package, but some of the more important fixes are:

  • Shoutboxes stopping working on some multilingual installs.
  • Login form in user info block failing to log users in.
  • RSS feed block failing on latest versions of PHP.
  • Block previews causing warnings on latest versions of PHP.
  • Incorrectly set canonical URL for board index when portal mode is set to front page.
  • Guests logging in from custom portal pages not being redirected back to the page.
As usual, there is no auto-upgrade option from 2.3.6 to 2.3.7. So, if you are running 2.3.6 or an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.

  • Uninstall SimplePortal.
  • Download SimplePortal 2.3.7. (http://simpleportal.net/index.php?action=downloads;area=stable_simpleportal_packages;file=147;download)
  • Install SimplePortal 2.3.7, and you are ready to go!
Thanks for all your support, and keep those bug reports and feature requests coming!
-The SimplePortal Team
Title: Re: SimplePortal
Post by: efk on August 02, 2017, 02:52:58 PM
Nice.
@SimplePortal Team, I was wondering what can we do with blogs and articles since each time I try something with these options, nothing happens? For Blog seems there need to be installed some plugin, articles are mystery.
Title: Re: SimplePortal
Post by: Adrek on August 02, 2017, 03:44:56 PM
Blog needs this modification: https://custom.simplemachines.org/mods/index.php?mod=793

Articles don't need any mod installed, just create category for articles in SP settings (?action=admin;area=portalarticles) and after that you will see new button above first post in topic "Add as article"
(http://i.imgur.com/gFQTOW2.png)
Title: Re: SimplePortal
Post by: villasg on August 07, 2017, 02:53:48 AM
Hello all .
Thanks for the update .
I have a qestion .
I use Simple portal 2.3.6 with language pack 2.3.5 ( from simpleportal.net/index.php?action=downloads;area=stable_language_packs ) .
I want to know if its OK to use the language pack 2.3.5 withe the new Simple portal 2.3.6 or need new translation .

Thanks a lot
Title: Re: SimplePortal
Post by: [SiNaN] on August 07, 2017, 09:57:35 AM
Quote from: villasg on August 07, 2017, 02:53:48 AM
Hello all .
Thanks for the update .
I have a qestion .
I use Simple portal 2.3.6 with language pack 2.3.5 ( from simpleportal.net/index.php?action=downloads;area=stable_language_packs ) .
I want to know if its OK to use the language pack 2.3.5 withe the new Simple portal 2.3.6 or need new translation .

Thanks a lot

You can use 2.3.5 language packs with SimplePortal 2.3.7 version. This is the note I'd added to the announcement afterwards:

Quote
If you are using SimplePortal in a language other than English, there were no changes to language strings in this version, so the language packages for 2.3.5 can safely be used for 2.3.7 version as well.
Title: Re: SimplePortal
Post by: showngo on August 11, 2017, 07:54:48 AM
Im trying to go through all these pages.   
I "upgraded and have a dead site with HTTP ERROR 500.

I tried to resotore my DB from my backup from before the upgrade and still have the error,  I am trying a Complete restore.   Any insight here?
Title: Re: SimplePortal
Post by: showngo on August 11, 2017, 08:37:15 PM
Restoring the DB did not work so i restored the home directory.  I found the index.php was mrssed up.
All up and running on the old version now.
Title: Re: SimplePortal
Post by: khigh on August 29, 2017, 05:24:08 PM
Thanks as always for Simple Portal, and I've had fantastic luck in the past getting support on the site, but as far as I can tell, it's been down for a while now.

Anyone know what I'd need to look for if my main portal page has started loading very slowly - 30 seconds or more, while the rest of the page loads on the site are near instantaneous. It seems spotty - 10 seconds is probably average, but always a noticeable lag not present on any other pages on the forum.

Thanks for looking!
Title: Re: SimplePortal
Post by: aegersz on August 29, 2017, 06:58:59 PM
check the bottom of your page to see how long it took to build the page and with how many queries, for a start.
Title: Re: SimplePortal
Post by: khigh on August 29, 2017, 09:57:15 PM
Thanks for the pointer. I don't see it - either on the Portal page or the forum home page.

Is it something I need to enable?
Title: Re: SimplePortal
Post by: br360 on August 29, 2017, 10:21:26 PM
Admin» Features and Options » Layout

Look for Display time taken to create every page and make sure it is checked
Title: Re: SimplePortal
Post by: [SiNaN] on August 30, 2017, 02:44:10 AM
Quote from: khigh on August 29, 2017, 05:24:08 PM
Thanks as always for Simple Portal, and I've had fantastic luck in the past getting support on the site, but as far as I can tell, it's been down for a while now.

I'm glad to hear that we were able to help. Unfortunately we are having some server issues at this time but hopefully the site will be back soon.

Quote from: khigh on August 29, 2017, 05:24:08 PM
Anyone know what I'd need to look for if my main portal page has started loading very slowly - 30 seconds or more, while the rest of the page loads on the site are near instantaneous. It seems spotty - 10 seconds is probably average, but always a noticeable lag not present on any other pages on the forum.

It's probably one of the blocks on the front page that causes this. RSS feed block is the first one that comes to mind, since it relies on an external source for data. If you could tell us which blocks you have, we may have a better idea. It would be even better if you can identify which blocks appear only on the portal page and not on any other page of the site.
Title: Re: SimplePortal
Post by: khigh on August 30, 2017, 09:14:01 PM
Yes - I have RSS feeds on the front page and nowhere else.

That would make sense. Thanks!

Is there a way to track i a certain one is slow?
Title: Re: SimplePortal
Post by: [SiNaN] on August 31, 2017, 02:54:31 AM
The easiest way would be to deactivate the RSS feed blocks one by one and try loading the page. However, if you are able to find an alternative service that allows you to embed RSS feeds using JavaScript, that would be even better option. Unfortunately, the block we currently have in SimplePortal is not the best option performance-wise.
Title: Re: SimplePortal
Post by: kim_c on September 01, 2017, 09:24:38 AM
Quote from: [SiNaN] on August 30, 2017, 02:44:10 AM


I'm glad to hear that we were able to help. Unfortunately we are having some server issues at this time but hopefully the site will be back soon.



So glad I saw this, I thought simpleportal was no more. Hope it's back up soon :)
Title: Re: SimplePortal
Post by: khigh on September 02, 2017, 06:36:23 PM
Quote from: [SiNaN] on August 31, 2017, 02:54:31 AM
The easiest way would be to deactivate the RSS feed blocks one by one and try loading the page. However, if you are able to find an alternative service that allows you to embed RSS feeds using JavaScript, that would be even better option. Unfortunately, the block we currently have in SimplePortal is not the best option performance-wise.

OK yes I disabled the feeds one by one. and saw the difference. It seemed a lot to have to do with the level of site the feeds were coming from. National news feeds didn't slow it down, but mom and pop feeds do. All my users who have expressed an opinion say to keep the "lesser" feeds because that's the bulk of the useful information for our specialized site.

Would the java thing you mentioned help? If so, could you point me in the right direction to learn about it?

Thanks again for the wonderful tool and the helpful support.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 19, 2017, 05:05:16 PM
Is it possible to put SMFPacks shoutbox in SP portal block?
Title: Re: SimplePortal
Post by: efk on September 19, 2017, 11:36:51 PM
Quote from: Sir Osis of Liver on September 19, 2017, 05:05:16 PM
Is it possible to put SMFPacks shoutbox in SP portal block?
From what I know it is possible to place "Open Popup" in block, but then sound notification is lost. My friend did that, but probably you already tried this.
https://www.simplemachines.org/community/index.php?topic=269091.msg3939015#msg3939015
Title: Re: SimplePortal
Post by: br360 on September 20, 2017, 12:21:03 AM
Quote from: Sir Osis of Liver on September 19, 2017, 05:05:16 PM
Is it possible to put SMFPacks shoutbox in SP portal block?

Take a look at this link and read the few posts after as well- https://www.simplemachines.org/community/index.php?topic=269091.msg3843832#msg3843832

Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 20, 2017, 01:14:36 AM
Believe I tried that earlier today.  I can display shoutbox above portal blocks, but not in a block.  The function call does not appear in index.template.php, and doesn't work in php block.  Current version of SMFPacks shoutbox is different from what I've worked with previously.  Will have another look tomorrow.
Title: Re: SimplePortal
Post by: br360 on September 20, 2017, 01:51:55 AM
I just tried it again on a test forum with shoutbox 1.0.5 and simple portal 2.3.6 and it did work in a php block
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 21, 2017, 01:33:47 AM
Just getting around to this again.  The function call does not work in a php block.  Your screenshot shows the shoutbox at bottom of page, I've already done that using sportal_main, it can be placed top or bottom with shoutbox config, but not in a portal block.  This forum wants to do same thing as in your topic link, place it in top center block, but it doesn't work.
Title: Re: SimplePortal
Post by: br360 on September 21, 2017, 01:53:44 AM
I'm not exactly sure what you are saying about a block, as it was currently in a simple portal block (footer) It is definitely the smfpack shoutbox and not the portal shoutbox. Here is a screen shot of it now moved to a right side php block.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 21, 2017, 04:10:07 PM
Are you using this in php portal block?




//SMFPacks Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- SMFPacks Shoutbox



Doesn't work for me, just get the title bar, no shoutbox.  Unless, of course, I'm being stupid. ???
Title: Re: SimplePortal
Post by: br360 on September 21, 2017, 04:29:17 PM
Yes, that is the exact code I am using.

If it helps; this is what I did.

1). Remove that smfpack shoutbox code from your index.template.php

2). Go into the shoutbox setting in admin and where you see "pages where shoutbox should be printed" make sure to add sportal_main

3). Create a new php block in the simple portal admin section and add the code you posted above.

That was pretty much it really. If that doesn't work, try uninstalling and then reinstall the shoutbox mod and try the steps again
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 21, 2017, 05:28:42 PM
Uninstalled/reinstalled, no errors.  This version of shoutbox does not edit index.template.php, the function call is not added to the file.  Adding a php block with the function call in it creates an empty block with a title bar, no shoutbox.  If I add sportal_main to shoutbox config, it displays shoutbox top or bottom, but php block is still empty.  I'm guessing this is a hooks version, doesn't work the same as the older version.  May still have the old version somewhere, but prefer to stay with current.
Title: Re: SimplePortal
Post by: br360 on September 21, 2017, 06:52:29 PM
Looks like you are right in regards to the new updated version using hooks. I have been using the 1.0.5 version which does have the call in the index.template.php file. The newest 1.1 version of course does not
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 21, 2017, 07:02:57 PM
Found 104 and 105, will give 105 a shot.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 21, 2017, 07:37:41 PM

http://starwars.lostworldssff.com/index.php
Title: Re: SimplePortal
Post by: -Scott on September 24, 2017, 01:32:11 PM
Unable to receive reg email on the sp site? Gmail addy.
Title: Re: SimplePortal
Post by: Plus on October 08, 2017, 07:25:02 AM
i have error with iframe how can i do this
Title: Re: SimplePortal
Post by: Adrek on October 15, 2017, 02:39:50 PM
What is going on with SP site? For few days there's error ERR_NAME_RESOLUTION_FAILED
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on October 16, 2017, 12:17:43 AM
Been reported several times, got a couple complaints, already forwarded to project manager but no reply as of yet.
Title: Re: SimplePortal
Post by: ryry46d9 on October 18, 2017, 10:25:38 AM
So the website has been down for a few weeks now, is the project dead ?
Title: Re: SimplePortal
Post by: d3vcho on October 18, 2017, 10:28:13 AM
Quote from: ryry46d9 on October 18, 2017, 10:25:38 AM
So the website has been down for a few weeks now, is the project dead ?

No, it's not. Seems like they're just having problems server-side.
Title: Re: SimplePortal
Post by: vbgamer45 on October 18, 2017, 09:05:24 PM
I can offer free hosting if that helps. Cpanel based.
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on October 19, 2017, 12:18:35 PM
Quote from: ryry46d9 on October 18, 2017, 10:25:38 AM
So the website has been down for a few weeks now, is the project dead ?
Unknown status, sent 2 PMs already, won't send more.
Quote from: d3vcho(); on October 18, 2017, 10:28:13 AM
Quote from: ryry46d9 on October 18, 2017, 10:25:38 AM
So the website has been down for a few weeks now, is the project dead ?
No, it's not. Seems like they're just having problems server-side.
Unless you have some info that I don't have (unlikely), I'd say our admins can speak for ourselves (when they decide to do so)...
Quote from: vbgamer45 on October 18, 2017, 09:05:24 PM
I can offer free hosting if that helps. Cpanel based.
Definitely appreciated but none of the decisions are up to me, so I can just thank you for the time being :)
Title: Re: SimplePortal
Post by: d3vcho on October 19, 2017, 01:01:06 PM
Quote from: Ninja ZX-10RR on October 19, 2017, 12:18:35 PM
Unless you have some info that I don't have (unlikely), I'd say our admins can speak for ourselves (when they decide to do so)...

None of your admins is here to speak. I just say what I think it's happening. Not too long ago the project had server issues (which actually deleted my account there).
Title: Re: SimplePortal
Post by: OCJ on October 25, 2017, 05:34:16 AM
Ninja will have to forgive me for this one...

QuoteI'd say our admins can speak for ourselves (when they decide to do so)...

Sounds like a typical SMF brush off support reply  :P

It is a bit worrying seeing a blank page over there for so long.
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on October 25, 2017, 08:24:08 AM
Quote from: d3vcho(); on October 19, 2017, 01:01:06 PM
Quote from: Ninja ZX-10RR on October 19, 2017, 12:18:35 PM
Unless you have some info that I don't have (unlikely), I'd say our admins can speak for ourselves (when they decide to do so)...
None of your admins is here to speak. I just say what I think it's happening. Not too long ago the project had server issues (which actually deleted my account there).
Bah, fine, if you can't understand I'll explain the difference between thinking and stating something.
"I think they are simply having server issues" --> You think there are server issues and you hope the site will be back up.
"Seems like they're just having problems server-side" --> It appears you *know* what is going on exactly and replying to people, acting like you do know.
Quote from: OCJ on October 25, 2017, 05:34:16 AM
Ninja will have to forgive me for this one...

QuoteI'd say our admins can speak for ourselves (when they decide to do so)...

Sounds like a typical SMF brush off support reply  :P

It is a bit worrying seeing a blank page over there for so long.
I won't, as in my eyes that's a pretty bad insult. That bit was because I had no idea if anybody could be bothered at all (so far doesn't seem like it).


Bottom line I honestly don't think anybody can be bothered to bring the site back up, I've sent 3 PMs so far and none of them got any reply whatsoever.
Title: Re: SimplePortal
Post by: OCJ on October 26, 2017, 05:58:26 AM
I know they were paying substantial amounts for hosting out of their own pocket not that long ago. I asked if the forum could be cut back to essentials and cheap hosting used but there wasn't much enthusiasm for that.

I can understand they are tired of it maybe - its not being used that much these days. It does seem odd that they are not replying to messages.
You have lots of other projects to keep you busy I expect.

Title: Re: SimplePortal
Post by: aegersz on November 01, 2017, 07:19:56 AM
oh dear ! what will i do when a new patch or upgrade to SMF isn't supported by this portal and it breaks ?

I am quite heavily invested in it ... will anybody be around to support it, i wonder ?
Title: Re: SimplePortal
Post by: lostpathway on November 01, 2017, 12:10:45 PM
This is my big fear about mods and software -- getting into something a long ways and then having it go dead. I guess it's a risk of the trade.
Title: Re: SimplePortal
Post by: Suki on November 01, 2017, 12:20:22 PM
The software is released under a very permissive open source license. This means anyone can pick it up and continue to work on it or you can hire someone to help you with maintenance.
Title: Re: SimplePortal
Post by: vbgamer45 on November 01, 2017, 02:03:45 PM
I wouldn't mind putting it babckup. Just sad to loose the site/everything there...that takes time to resetup.
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on November 01, 2017, 10:38:26 PM
As of now the situation is unknown, I've been really busy today so I haven't asked SiNaN. I'd have gladly accepted vbgamer's offer already, had it been up to me. However, the issue doesn't seem to be money.
Title: Re: SimplePortal
Post by: aegersz on November 02, 2017, 03:48:07 AM
please try to get it back somehow. it's a great facility and I would be lost without it.

it complements SMF quite well and I have made good use of it.
Title: Re: SimplePortal
Post by: Sea Mac on November 02, 2017, 06:16:05 AM
Quote from: aegersz on November 02, 2017, 03:48:07 AM
please try to get it back somehow. it's a great facility and I would be lost without it.

it complements SMF quite well and I have made good use of it.
What he said ...
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on November 02, 2017, 09:21:54 PM
Doesn't depend on me, but I'll try :/
Title: Re: SimplePortal
Post by: DJF-1975 on November 05, 2017, 05:37:44 AM
Man I sure miss simple portal. I need help with the ver. 2.3.7 shoutbox not auto-loading after creating a shout, and having to refresh the browser. this was a problem before and there was an article at the SP site on a code-fix that I used before for this issue.  now that the site's down I want to help too like so many other's. I know this is NOT your decision, Ninja, but man.. I've got years and years of hosting space and great bandwidth available I use for my own stuff,

IF YOU EVER NEED IT please let me know. NO strings attached JUST to keep the web-space for SP alive.
I've chosen SP over TP for many reasons as I personally love SP, even though I've used TP for years.

Last but not least, if I can do anything to help, don't hesitate to ask. Cheers

D
FYI: Ninja,,, you're always gonna have the a-holes and d-bags whom do not appreciate greatness either because they're jealous, or just selfish and don't care. I guarantee you there's a HUGE influx of people that are wondering where you guys are at, And trust me, I REALLY appreciated SP> I used to tell you guys that all the time in the shoutbox on the SP site. THANK YOU for all your work. I really hope the SP project isn't dead.
DF-Gaming.US
DerekFrampton.com
Title: Re: SimplePortal
Post by: maglix04 on November 05, 2017, 01:54:46 PM
QuoteI need help with the ver. 2.3.7 shoutbox not auto-loading after creating a shout, and having to refresh the browser. this was a problem before and there was an article at the SP site on a code-fix that I used before for this issue.  now that the site's down I want to help too like so many other's.
Fortunately, I saved that topic on pc. I hope that's what you are looking for:
Quote
i found that in Portalshoutbox.template.php the use of htmlspecialchars for non utf-8 languages, due to php 5.4, generates empty values in xml, so that shoutboxes can't refresh when xml is compiled with special chars:
function template_shoutbox_xml()
{
global $context, $txt, $smcFunc;

echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<shoutbox>', $context['SPortal']['shoutbox']['id'], '</shoutbox>';

if ($context['SPortal']['updated'])
{
echo '
<updated>1</updated>
<error>', empty($context['SPortal']['shouts']) ? $txt['sp_shoutbox_no_shout'] : 0, '</error>
<warning>', !empty($context['SPortal']['shoutbox']['warning']) ? $smcFunc['htmlspecialchars']($context['SPortal']['shoutbox']['warning']) : 0, '</warning>
<reverse>', !empty($context['SPortal']['shoutbox']['reverse']) ? 1 : 0, '</reverse>';

foreach ($context['SPortal']['shouts'] as $shout)
echo '
<shout>
<id>', $shout['id'], '</id>
<author>', htmlspecialchars($shout['author']['link']), '</author>
<time>', htmlspecialchars($shout['time']), '</time>
<timeclean>', htmlspecialchars(strip_tags($shout['time'])), '</timeclean>
<delete>', !empty($shout['delete_link_js']) ? htmlspecialchars($shout['delete_link_js']) : 0, '</delete>
<content>', htmlspecialchars($shout['text']), '</content>
<is_me>', $shout['is_me'] ? 1 : 0, '</is_me>
</shout>';
}
else
echo '
<updated>0</updated>';

echo '
</smf>';

using $smcFunc['htmlspecialchars'] will fix it. can you consider it in next releases?
function template_shoutbox_xml()
{
global $context, $txt, $smcFunc;

echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<shoutbox>', $context['SPortal']['shoutbox']['id'], '</shoutbox>';

if ($context['SPortal']['updated'])
{
echo '
<updated>1</updated>
<error>', empty($context['SPortal']['shouts']) ? $txt['sp_shoutbox_no_shout'] : 0, '</error>
<warning>', !empty($context['SPortal']['shoutbox']['warning']) ? $smcFunc['htmlspecialchars']($context['SPortal']['shoutbox']['warning']) : 0, '</warning>
<reverse>', !empty($context['SPortal']['shoutbox']['reverse']) ? 1 : 0, '</reverse>';

foreach ($context['SPortal']['shouts'] as $shout)
echo '
<shout>
<id>', $shout['id'], '</id>
<author>', $smcFunc['htmlspecialchars']($shout['author']['link']), '</author>
<time>', $smcFunc['htmlspecialchars']($shout['time']), '</time>
<timeclean>', $smcFunc['htmlspecialchars'](strip_tags($shout['time'])), '</timeclean>
<delete>', !empty($shout['delete_link_js']) ? $smcFunc['htmlspecialchars']($shout['delete_link_js']) : 0, '</delete>
<content>', $smcFunc['htmlspecialchars']($shout['text']), '</content>
<is_me>', $shout['is_me'] ? 1 : 0, '</is_me>
</shout>';
}
else
echo '
<updated>0</updated>';

echo '
</smf>';





Title: Re: SimplePortal
Post by: DJF-1975 on November 05, 2017, 04:59:27 PM
It looks familiar, but It isn't working. Thank you for posting however! I'll try it again with a clean version of the template file.
FYI either I'm blind, or I do not see a difference in the two code examples?


*UPDATE*
I took the portal template file from another website I'd fixed it on during that phase of when the SP server/site was still up and it worked. Thanks for your help!


D
Title: Re: SimplePortal
Post by: OCJ on November 07, 2017, 08:31:00 AM
Maybe its time to pay my respects to Simple Portal and the team - thanks Sinan, and all the other people who volunteered so much. It was great to be involved with the people there.
Hopefully it will come back in some form or other.  At least it is the portal choice of another SMF fork.
Title: Re: SimplePortal
Post by: Arantor on November 07, 2017, 09:52:27 AM
The code is all still on GitHub. Nothing prevents anyone forking it and publishing it under their own name, especially if they make changes and improvements to it.
Title: Re: SimplePortal
Post by: vbgamer45 on November 07, 2017, 10:34:01 AM
Yeah that is true but would be nice to get the site back. A new name would take a lot time to get word out and then you would have two mods on the mod site that are basically the same. Own .org just in case and submitted offered for .com. Making some contacts to the SP team hopefully will get a reply.
Title: Re: SimplePortal
Post by: Arantor on November 07, 2017, 10:45:28 AM
I can help if there's anything I can do.
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on November 09, 2017, 08:12:08 AM
Appreciate all the lovely support but I can't do much other than waiting for SiNaN's reply (knowing his absences it may as well be months), other admins don't seem to be helpful at the moment, honestly.
Title: Re: SimplePortal
Post by: DJF-1975 on November 09, 2017, 08:45:13 AM
I completely understand.  I'm sure others will come around. Either way the 2.3.7 version is great 'cept for that one code snippet of the template file for the shoutbox for the refresh issue. I'll include it here. Obviously feel free to vet it.  It fixes the auto-refresh issue once a post is made in the shoutbox. I'd taken the code snippet from the SP site when it was up a few months ago. This file works. cheers

it goes in the ../themes/default/ directory.

D
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on November 09, 2017, 09:28:19 AM
I have no access to the team account, so I'll just thank you for posting but can't do anything else.
Title: Re: SimplePortal
Post by: zapiy on November 09, 2017, 12:06:53 PM
Is there anywhere that holds come of the custom block code?
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on November 09, 2017, 03:41:31 PM
Quote from: zapiy on November 09, 2017, 12:06:53 PM
Is there anywhere that holds come of the custom block code?
No, that's one of the many issues that come up with not having the site up.
Title: Re: SimplePortal
Post by: GL700Wing on November 10, 2017, 02:56:15 AM
Quote from: DJF-1975 on November 09, 2017, 08:45:13 AM
I completely understand.  I'm sure others will come around. Either way the 2.3.7 version is great 'cept for that one code snippet of the template file for the shoutbox for the refresh issue. I'll include it here. Obviously feel free to vet it.  It fixes the auto-refresh issue once a post is made in the shoutbox. I'd taken the code snippet from the SP site when it was up a few months ago. This file works. cheers

it goes in the ../themes/default/ directory.

D
I've just checked the file you attached to your message and it doesn't seem to contain the auto-load fix maglix04 (https://www.simplemachines.org/community/index.php?topic=227599.msg3946960#msg3946960) referred to.  It does, however, seem to contain a set of custom modifications relating to a read-only shoutbox.

Finally, the version of the Portalshoutbox.template.php that was installed from the Simple Portal 2.3.7 mod (https://custom.simplemachines.org/mods/index.php?mod=1104) file I downloaded from this forum already includes the auto-load fix ...
Title: Re: SimplePortal
Post by: aegersz on November 10, 2017, 10:17:35 PM
Quote from: zapiy on November 09, 2017, 12:06:53 PM
Is there anywhere that holds come of the custom block code?

but since many of us have some custom code blocks you could ask which one you want in another thread and if permitted, somebody could attach it ? if that's allowable ...
Title: Re: SimplePortal
Post by: zapiy on November 14, 2017, 04:24:24 AM
I have a lot of custom pages, I'd like a code that pulls the latest pages and displays a little like articles and so on like it word with joomla or wordpress.
Title: Re: SimplePortal
Post by: MarkoKg on November 21, 2017, 05:05:04 AM
I have a problem where I can't save content of custom php block, whatever I write inside it is says i have error in php syntax or something like that, even though I'm absolutely sure I don't have error, even if I just echo something etc. Any suggestions?
Title: Re: SimplePortal
Post by: Shambles on November 21, 2017, 05:13:04 AM
Can you show us what you're trying to insert into the custom php block?

(use [code] blocks)
Title: Re: SimplePortal
Post by: fanciboy4 on November 22, 2017, 04:49:40 PM
Recent post block don't have paging features. But the mod is nice.
Title: Re: SimplePortal
Post by: aegersz on November 23, 2017, 02:18:38 AM
Here is one custom PHP block called Recent Topics that i really like and it has prominence on my home page - i thought someone may want to use it and if you do then adjust the $limit variable to suit your needs:

global $txt, $scripturl, $settings, $context, $color_profile;

$boards = null;
$limit = 39;
$type = 'ssi_recentTopics';

$items = $type($limit, null, $boards, 'array');

if (empty($items))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
else
$items[count($items) - 1]['is_last'] = true;

$colorids = array();
foreach ($items as $item)
$colorids[] = $item['poster']['id'];

if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($items as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$items[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}

echo '
<table class="sp_fullwidth">';

foreach ($items as $item)
echo '
<tr>
<td class="sp_recent_icon sp_center">
', $item['new'] ? sp_embed_image('topic') : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>',
'</td>
<td class="sp_recent_subject">
<a href="', $item['href'], '">', $item['subject'], '</a><br />[', $item['board']['link'], ']
</td>
<td class="sp_recent_info sp_right">
', $item['poster']['link'], '<br />', $item['time'], '
</td>
</tr>';

echo '
</table>';
Title: Re: SimplePortal
Post by: zapiy on November 23, 2017, 01:53:52 PM
Anyone have a block that pulls pages like recent topics?
Title: Re: SimplePortal
Post by: pocttopus on November 26, 2017, 10:58:07 AM
What happened to official page http://www.simpleportal.net/?  :o ??? :-\
Title: Re: SimplePortal
Post by: LiroyvH on November 26, 2017, 11:10:12 AM
As far as I'm aware they're working on bringing it back online.
Title: Re: SimplePortal
Post by: davidhs on November 30, 2017, 08:56:33 AM
The new update of SimplePortal (2.3.7) works in SMF 2.0.14/2.0.15 but it do not use proxy in avatar images of PortalBlocks.php (I do not know if also is necessary in other files).
Title: Re: SimplePortal
Post by: CapadY on December 02, 2017, 08:00:55 AM
I need the Dutch languagepack for SimplePortal 2.3.7. but can't reach the official site.

Is here somebody who can help me to it ?
Title: Re: SimplePortal
Post by: d3vcho on December 02, 2017, 08:06:22 AM
Quote from: CapadY on December 02, 2017, 08:00:55 AM
I need the Dutch languagepack for SimplePortal 2.3.7. but can't reach the official site.

Is here somebody who can help me to it ?

I just could find the one for 2.3.5. Not sure if it's the same for 2.3.7;
Title: Re: SimplePortal
Post by: CapadY on December 02, 2017, 08:56:30 AM
I had to tell it immediately but do you also have the UTF-8 version ?


If not i give it a try renaming the uploaded version.
Title: Re: SimplePortal
Post by: d3vcho on December 02, 2017, 09:05:31 AM
Nope, sorry.
Title: Re: SimplePortal
Post by: Arantor on December 02, 2017, 10:06:27 AM
Does Dutch use any accented characters? If not, renaming will be fine. If it does, more work than renaming will be required.
Title: Re: SimplePortal
Post by: ormuz on December 02, 2017, 12:52:55 PM
how can I through a block do something like this:

- Have a predefined list of topics
- Show the amount of these topics to display
- Display them randomly
- Have a layout (output) similar to the boardnews block (subject, content, user, read more, etc)

Any ideas, suggestions?
Title: Re: SimplePortal
Post by: Madirex on December 02, 2017, 02:12:06 PM
Hello, I can not edit the "Portal Mode" when I change it and I give it to save it is put back to Disabled.

(https://image.prntscr.com/image/NQCJuFd0SIG5Ynj1tvQEyA.png)

When I modify anything else it leaves me without any problem.

When I installed the package it gave me an error in the file script.js but I did not manage to fix it manually, maybe it could be due to that, but I'm not sure.
Title: Re: SimplePortal
Post by: maglix04 on December 03, 2017, 10:09:39 AM
Quote from: davidhs on November 30, 2017, 08:56:33 AM
The new update of SimplePortal (2.3.7) works in SMF 2.0.14/2.0.15 but it do not use proxy in avatar images of PortalBlocks.php (I do not know if also is necessary in other files).
Me too :(
Solution?
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on December 03, 2017, 12:01:46 PM
Quote from: maglix04 on December 03, 2017, 10:09:39 AM
Quote from: davidhs on November 30, 2017, 08:56:33 AM
The new update of SimplePortal (2.3.7) works in SMF 2.0.14/2.0.15 but it do not use proxy in avatar images of PortalBlocks.php (I do not know if also is necessary in other files).
Me too :(
Solution?
Not atm. We got bigger issues than that.
Title: Re: SimplePortal
Post by: CapadY on December 03, 2017, 04:55:48 PM
Quote from: d3vcho(); on December 02, 2017, 09:05:31 AM
Nope, sorry.
.
utf8 files where also included in the zip-file, thanks
Title: Re: SimplePortal
Post by: CapadY on December 03, 2017, 04:57:54 PM
At the right side of te forum some portalblocks can be shown,
How can I select the blocks I want to be shown ?
At the moment it looks like there are some random blocks shown.
Title: Re: SimplePortal
Post by: Madirex on December 03, 2017, 06:02:48 PM
Quote from: Madirex on December 02, 2017, 02:12:06 PM
Hello, I can not edit the "Portal Mode" when I change it and I give it to save it is put back to Disabled.

(https://image.prntscr.com/image/NQCJuFd0SIG5Ynj1tvQEyA.png)

When I modify anything else it leaves me without any problem.

When I installed the package it gave me an error in the file script.js but I did not manage to fix it manually, maybe it could be due to that, but I'm not sure.

Any help for my case ?
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on December 03, 2017, 09:54:19 PM
Yes, fix your script.js issue and it will probably start to work. Why did you install with errors anyway?
Title: Re: SimplePortal
Post by: Ilkharnos on December 04, 2017, 07:33:44 AM
Hello,

I use the latest version of SP. I use a few "Recent Posts/Topics" blocks (set to "topics"). As far as I can see, this block doesn't show somewhat old topics. I cannot see the topics which I posted a few months ago.

I would like to have a recent posts/topics block which is timeless. Is there any way I can do that?

Thank you in advance.
Title: Re: SimplePortal
Post by: Madirex on December 04, 2017, 08:55:24 AM
Quote from: Ninja ZX-10RR on December 03, 2017, 09:54:19 PM
Yes, fix your script.js issue and it will probably start to work. Why did you install with errors anyway?

More files presented the errors and I edited them manually, but that file could not be edited because I could not find the text to replace.

<file name="$themedir/scripts/script.js">
<operation>
<search position="replace"><![CDATA['#c']]></search>
<add><![CDATA['?action=forum#c']]></add>
</operation>
</file>

that's what I have to change but I can not find "<! [CDATA ['# c']]>"
Title: Re: SimplePortal
Post by: Arantor on December 04, 2017, 10:55:05 AM
You just find the #c part, the CDATA stuff is how you write raw stuff in XML.
Title: Re: SimplePortal
Post by: Madirex on December 04, 2017, 11:02:10 AM
Quote from: Arantor on December 04, 2017, 10:55:05 AM
You just find the #c part, the CDATA stuff is how you write raw stuff in XML.
I can not find "<! [CDATA ['# c']]>" in my script.js ...
Title: Re: SimplePortal
Post by: Arantor on December 04, 2017, 11:23:08 AM
No, you won't because it isn't there!

Just literally look for the #c part. Not the rest of the line. Just literally a hash and a letter c.
Title: Re: SimplePortal
Post by: Madirex on December 04, 2017, 12:17:09 PM
Quote from: Arantor on December 04, 2017, 11:23:08 AM
No, you won't because it isn't there!

Just literally look for the #c part. Not the rest of the line. Just literally a hash and a letter c.

That is what I did

(https://image.prntscr.com/image/6_f2wwJsRKaOTQ1CCAbiJA.png)

(https://image.prntscr.com/image/jfR4supFSW6m2im12AfE5g.png)
Title: Re: SimplePortal
Post by: Arantor on December 04, 2017, 12:27:55 PM
Please attach your script.js file, I'll take a look when I get home from work.
Title: Re: SimplePortal
Post by: Madirex on December 04, 2017, 12:42:35 PM
Quote from: Arantor on December 04, 2017, 12:27:55 PM
Please attach your script.js file, I'll take a look when I get home from work.
Title: Re: SimplePortal
Post by: Arantor on December 04, 2017, 01:30:01 PM
You already have a mod that has modified it. The change would have been to line 1073 but something else has modified it to instead read action=forum;c=

Do you by any chance have the 'view single category' mod in place? If so, you don't need to worry about this change.
Title: Re: SimplePortal
Post by: Gluz on December 04, 2017, 04:10:08 PM
Quote from: Ilkharnos on December 04, 2017, 07:33:44 AM
Hello,

I use the latest version of SP. I use a few "Recent Posts/Topics" blocks (set to "topics"). As far as I can see, this block doesn't show somewhat old topics. I cannot see the topics which I posted a few months ago.

I would like to have a recent posts/topics block which is timeless. Is there any way I can do that?

Thank you in advance.

Well, that defeat the purpose of being Recent.

If you want a list of topics similar to how it's done in that block, but with your own set of topics you need to make a custom PHP block, have the topic IDs in an Array, fetch the id of first message of each topic, and use the ssi_fetchPosts function.

Someone asked a similar question yesterday, but as I'm in my mobile phone it's hard to put code, but that is what I remember from one site I used something similar.
Title: Re: SimplePortal
Post by: Madirex on December 04, 2017, 05:15:10 PM
Quote from: Arantor on December 04, 2017, 01:30:01 PM
You already have a mod that has modified it. The change would have been to line 1073 but something else has modified it to instead read action=forum;c=

Do you by any chance have the 'view single category' mod in place? If so, you don't need to worry about this change.

Yes, I have that mod.
So we go back to the initial problem:
(https://image.prntscr.com/image/2lfhDI2BQkmLkq_D_kzSdw.png)
Title: Re: SimplePortal
Post by: Arantor on December 04, 2017, 05:21:47 PM
It's nothing to do with script.js.

What did you try to change it to, exactly? What other settings did you change?
Title: Re: SimplePortal
Post by: Madirex on December 04, 2017, 05:23:59 PM
Quote from: Arantor on December 04, 2017, 05:21:47 PM
It's nothing to do with script.js.

What did you try to change it to, exactly? What other settings did you change?

I have not changed anything, I just installed it
Title: Re: SimplePortal
Post by: Arantor on December 04, 2017, 05:25:01 PM
You just installed it, and you said you tried to change the setting and it didn't save. What did you try to change it to?
Title: Re: SimplePortal
Post by: Madirex on December 04, 2017, 05:29:32 PM
Quote from: Arantor on December 04, 2017, 05:25:01 PM
You just installed it, and you said you tried to change the setting and it didn't save. What did you try to change it to?
I sent a photo the first time I reported the problem, i do not know if you have not understood me well, anyway I will explain it in a clearer way:

1. Click on Configuration
(https://image.prntscr.com/image/kylK_O0_SP_7FWMMm4Y2QA.png)

2. Click on General Settings
(https://image.prntscr.com/image/a96xsUFZRveN-uoR9-AbQA.png)

3. Change the Portal Mode from disabled to any other option
(https://image.prntscr.com/image/wT1tMm5LTZ_DhjGBR43MOw.png)

4. Press Save button
(https://image.prntscr.com/image/jjAfEQ6bQbCfGiHJ3Qb0xw.png)

5. It is not modified, it is still disabled
(https://image.prntscr.com/image/h8Grj8eUR4Wt6dh6GwvBZQ.png)

Any other option can be edited without any problem, but just that option does not let me edit it
Title: Re: SimplePortal
Post by: Arantor on December 04, 2017, 05:38:06 PM
Is your forum currently in maintenance mode?
Title: Re: SimplePortal
Post by: Chen Zhen on December 04, 2017, 06:27:41 PM
Madirex,

Did you edit the SPortalAdmin language file?

Ensure this variable has 4 options separated by | (or).

$txt['sp_portal_mode_options'] = 'Disabled|Front Page|Integration|Standalone';



Title: Re: SimplePortal
Post by: Arantor on December 04, 2017, 06:30:48 PM
I assumed this was OK based on the screenshot showing this ;)
Title: Re: SimplePortal
Post by: Chen Zhen on December 04, 2017, 06:32:30 PM

Ya I didn't notice that.. just trying to figure out things that would cause that behavior.
Title: Re: SimplePortal
Post by: Arantor on December 04, 2017, 06:34:54 PM
Seems like there's a possible case where if the forum is in maintenance mode, SP can become disabled.
Title: Re: SimplePortal
Post by: Chen Zhen on December 04, 2017, 06:41:37 PM

Well I tried toggling combinations of maintenance mode for the portal setting and SMF setting yet I can still change the portal mode drop-down and save its setting.

Title: Re: SimplePortal
Post by: Arantor on December 04, 2017, 06:55:34 PM
I figured, just saying I'd glanced at the code that that seemed like a combination that could occur - but I've not come across this otherwise.
Title: Re: SimplePortal
Post by: Chen Zhen on December 04, 2017, 10:36:05 PM
Modified default theme. SMF 2.0.14
Imo something incorrect in the XHTML on the Admin page and/or some sort of js causing conflict.
On the page of his/her forum I can see 2 XHTML errors but I'm not sure it would cause this behavior.
(unclosed link tag for the favicon and an improper img tag)
Of course I don't have access to the Admin page in question to see if I spot anything else.
Appears to be OneAll & AdkBlog mods installed but those mods don't cause issues when I test them.

Perhaps use a plugin that flags HTML/XHTML errors and fix them accordingly.
It may show errors causing unwanted behavior.
Title: Re: SimplePortal
Post by: Ilkharnos on December 05, 2017, 01:36:57 AM
Quote from: Gluz on December 04, 2017, 04:10:08 PM
Well, that defeat the purpose of being Recent.

If you want a list of topics similar to how it's done in that block, but with your own set of topics you need to make a custom PHP block, have the topic IDs in an Array, fetch the id of first message of each topic, and use the ssi_fetchPosts function.

Someone asked a similar question yesterday, but as I'm in my mobile phone it's hard to put code, but that is what I remember from one site I used something similar.

The thing is, my forum is not a very active one. For some boards, we even consider posts from two years ago as recent. But that's not the real point. What I really want is to fix different "Recent Topics" blocks to certain numbers of topics. That's about main page design and blocks' alignment with each other. However, when I see a number of topics less than what I had fixed, or when I see "No posts were found." message in such a block, the design becomes difficult (or impossible) for me.

Thank you for the information, by the way. I am not a coder and I cannot write such a code by myself. But I would be grateful for any assistance on altering the "Recent Posts/Topics" expiration limit.

Regards.
Title: Re: SimplePortal
Post by: davidhs on December 05, 2017, 07:21:31 AM
Quote from: Ninja ZX-10RR on December 03, 2017, 12:01:46 PM
Quote from: maglix04 on December 03, 2017, 10:09:39 AM
Quote from: davidhs on November 30, 2017, 08:56:33 AM
The new update of SimplePortal (2.3.7) works in SMF 2.0.14/2.0.15 but it do not use proxy in avatar images of PortalBlocks.php (I do not know if also is necessary in other files).
Me too :(
Solution?
Not atm. We got bigger issues than that.
It is true, this is not important. But, if your forum uses SSL (HTTPS) and any images of portal uses HTTP, navigator show a warning in HTTPS icon. :(

I did these changes in PortalBlocks.php (of SimplePortal 2.3.7) for SMF 2.0.14/2.0.15:

Code (search) Select

global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;

Code (replace) Select

global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

global $smcFunc, $sourcedir, $boarddir, $themedir;

Code (replace) Select

global $smcFunc, $sourcedir, $boarddir, $themedir;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);


Code (search) Select

global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;

Code (replace) Select

global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

global $smcFunc, $sourcedir, $scripturl, $modSettings, $color_profile;

Code (replace) Select

global $smcFunc, $sourcedir, $scripturl, $modSettings, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

global $smcFunc, $sourcedir, $modSettings, $scripturl, $txt, $color_profile;

Code (replace) Select

global $smcFunc, $sourcedir, $modSettings, $scripturl, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

global $context, $boarddir, $sourcedir, $txt, $color_profile;

Code (replace) Select

global $context, $boarddir, $sourcedir, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
Title: Re: SimplePortal
Post by: Portugal on December 05, 2017, 05:57:06 PM
Simpleportal forum is offline? I need help to restore responsiveness on my forum (ive upgaded my simpleportal and lost the triks to turn responsive with redsy theme)

Thanks in advance
Title: Re: SimplePortal
Post by: vbgamer45 on December 05, 2017, 05:58:05 PM
Yes the site has been offline for  a while now they are working on getting it back...
Title: Re: SimplePortal
Post by: Portugal on December 05, 2017, 06:08:30 PM
Thanks.


Quote from: vbgamer45 on December 05, 2017, 05:58:05 PM
Yes the site has been offline for  a while now they are working on getting it back...
Title: Re: SimplePortal
Post by: Madirex on December 06, 2017, 07:02:44 AM
Quote from: Chen Zhen on December 04, 2017, 06:27:41 PM
Madirex,

Did you edit the SPortalAdmin language file?

Ensure this variable has 4 options separated by | (or).

$txt['sp_portal_mode_options'] = 'Disabled|Front Page|Integration|Standalone';


I have not edited anything from that mod, I just installed it, as I said before
Title: Re: SimplePortal
Post by: McGran on December 08, 2017, 12:01:35 PM
Hi guys,

In the absence of Simpleportal.net does anyone have the how-to for setting up a Standalone page.

Everything works perfectly in Front Page mode but my forum is at domain/forum and I'd like to put a Standalone page to domain.

I've set the address in the standalone URL field and changed the setting to standalone but I'm still seeing my hosting company's holding page telling me to "remove the index.php file and replace it with your own"

Cheers

Andrew
Title: Re: SimplePortal
Post by: maglix04 on December 08, 2017, 01:32:17 PM
Quote from: davidhs on December 05, 2017, 07:21:31 AM

It is true, this is not important. But, if your forum uses SSL (HTTPS) and any images of portal uses HTTP, navigator show a warning in HTTPS icon. :(

I did these changes in PortalBlocks.php (of SimplePortal 2.3.7) for SMF 2.0.14/2.0.15:

Code (search) Select

global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;

Code (replace) Select

global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

global $smcFunc, $sourcedir, $boarddir, $themedir;

Code (replace) Select

global $smcFunc, $sourcedir, $boarddir, $themedir;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);


Code (search) Select

global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;

Code (replace) Select

global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

global $smcFunc, $sourcedir, $scripturl, $modSettings, $color_profile;

Code (replace) Select

global $smcFunc, $sourcedir, $scripturl, $modSettings, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

global $smcFunc, $sourcedir, $modSettings, $scripturl, $txt, $color_profile;

Code (replace) Select

global $smcFunc, $sourcedir, $modSettings, $scripturl, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

global $context, $boarddir, $sourcedir, $txt, $color_profile;

Code (replace) Select

global $context, $boarddir, $sourcedir, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

I have tried this change and it seems to work without problems. Thank you  :)
Title: Re: SimplePortal
Post by: Madirex on December 09, 2017, 09:48:17 AM
Quote from: Madirex on December 06, 2017, 07:02:44 AM
Quote from: Chen Zhen on December 04, 2017, 06:27:41 PM
Madirex,

Did you edit the SPortalAdmin language file?

Ensure this variable has 4 options separated by | (or).

$txt['sp_portal_mode_options'] = 'Disabled|Front Page|Integration|Standalone';


I have not edited anything from that mod, I just installed it, as I said before

^
Any help? Still dosent work
Title: Re: SimplePortal
Post by: Chen Zhen on December 09, 2017, 02:00:48 PM
Quote
Perhaps use a plugin that flags HTML/XHTML errors and fix them accordingly.
It may show errors causing unwanted behavior.

re. circuitsbm
If other save settings are working from the exact same admin page then something else on the page is likely causing it.
Improper XHTML and/or javascript can cause conflicts, from other mods or alterations to the page code (ie. added to the $context headers).
A plugin that shows XHTML/HTML errors may flag something on the page causing an issue.
You can try using something like HTML Validator plugin for Firefox and then view the source code on that specific admin page.
It may show you something causing an issue (ie. such as multiple inputs with the same id).

What mods do you have installed? Perhaps I can duplicate your issue by installing those mods on a local test site.
 
Title: Re: SimplePortal
Post by: Madirex on December 09, 2017, 05:53:04 PM
Quote from: Chen Zhen on December 09, 2017, 02:00:48 PM
Quote
Perhaps use a plugin that flags HTML/XHTML errors and fix them accordingly.
It may show errors causing unwanted behavior.

re. circuitsbm
If other save settings are working from the exact same admin page then something else on the page is likely causing it.
Improper XHTML and/or javascript can cause conflicts, from other mods or alterations to the page code (ie. added to the $context headers).
A plugin that shows XHTML/HTML errors may flag something on the page causing an issue.
You can try using something like HTML Validator plugin for Firefox and then view the source code on that specific admin page.
It may show you something causing an issue (ie. such as multiple inputs with the same id).

What mods do you have installed? Perhaps I can duplicate your issue by installing those mods on a local test site.


1.   Stop Forum Spam   1.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
2.   SimpleDesk - Integrated Helpdesk for Simple Machines Forum   2.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
3.   Custom Action Mod   3.2     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
4.   To-Do List   2.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
5.   Adk Bbc Tooltips   1.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
6.   PartyMembers   1.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
7.   BBC You   2.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
8.   Social Login   3.6     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
9.   Admin Notes   2.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
10.   MultiLanguage Registration Agreement   1.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
11.   open mod reports   1.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
12.   SimplePortal   2.3.7     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
13.   Edit All Message Titles   0.1.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
14.   TopicRenamer   2.2     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
15.   Custom Copyright   1.2     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
16.   SMF 2.0.12 Update   1.0     [ Listar archivos ] [ Borrar ]
17.   Social Login   3.5   [ Listar archivos ] [ Borrar ]
18.   SMF 2.1-style Admin Area   1.9     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
19.   Post History   1.03     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
20.   Custom Permissions   1.1.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
21.   BBPh Smilies   1.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
22.   Admin Ban Button in Post   3.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
23.   Split Forum Mod   1.39   [ Instalar modificación. ] [ Listar archivos ] [ Borrar ]
24.   Christmas Smileys   1.3     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
25.   Team Page   4.0.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
26.   Drafts      [ Desinstalar ] [ Listar archivos ] [ Borrar ]
27.   WYSIWYG Quick Reply   2.3     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
28.   Yet Another YouTube BBCode Tag   3.9     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
29.   Header Addon   1.0   [ Listar archivos ] [ Borrar ]
30.   cbi 1.0   1.8.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
31.   Quick Spoiler   0.9.6     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
32.   Adk New Button   1.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
33.   Prevent Adding Signature Images And Links   2.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
34.   Log Karma Actions   2.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
35.   Ultimate Profile   0.9.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
36.   Lock Recycled Topics   0.2     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
37.   EU Cookie   1.3.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
38.   Move Topic Notification   1.2     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
39.   Countdown BBCode   2.0.2     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
40.   Image Floating to Left or Right BBCode   1.19     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
41.   Alert   v.1.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
42.   @mention members   1.1.2     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
43.   Adk Blog   3.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
44.   Add [nobbc] button   1.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
45.   Add Social Media Icons To Profiles   1.2.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
46.   SimpleColorizer   1.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
47.   Show Only Specified Language   1.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
48.   Smart Pagination   0.8.2     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
49.   Remove Index.Php Completely From URL 2.0   1.2     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
50.   SA Shop   1.0 RC1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
51.   AdditionalMembergroups   1.04     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
52.   SMF Post Prefix   2.0.3     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
53.   View Single Category   2.5     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
54.   NoFollow All Links   1.2.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
55.   Add Stars To Profile   1.0.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
56.   Send Locked Topics To Bottom   1.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
57.   Gamer IDs   1.4     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
58.   BBC Message Boxes   2.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
59.   Redirector   1.2     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
60.   SMF Gallery Lite   5.6     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
61.   Remove old topic warning   1.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
62.   Karma Applaud Only   1.0.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
63.   SMF 2.0.13 Update   1.0     [ Listar archivos ] [ Borrar ]
64.   Simple Menu Icons   1.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
65.   Default Avatar   2.3     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
66.   Karma Buttons   1.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
67.   Bookmarks   2.5     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
68.   SMF 2.0.14 Update   1.0     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
69.   Users mass actions   0.1.1     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
70.   Progress Bar BBCode (CSS3 version)   1.2     [ Desinstalar ] [ Listar archivos ] [ Borrar ]
71.   Code Highlighting
Title: Re: SimplePortal
Post by: Chen Zhen on December 10, 2017, 08:06:09 PM
Madirex,

  I knew I likely walked into that one but was hoping to get lucky with few mods installed.
Well I think you must have known prior to posting that list that I will not be testing that many mods to figure out your issue.
If it was up to about 8 - 10 mods I likely would attempt it but with 71, that is just too many. 
As I stated prior, it is likely caused by something else conflicting on the page such as XHTML and/or javascript (<-- this includes JQuery libraries) or possibly manual edits.

If you have not performed manual edits to something appearing on the page then it will likely be one of those mods causing the conflict.
Using a tool such as I previously suggested can help you narrow it down.
Otherwise you will have to use trial & error by uninstalling other mods one at a time, clearing the cache from the browser history after each uninstall to see when/if the issue is resolved.
Title: Re: SimplePortal
Post by: maglix04 on December 11, 2017, 04:21:05 AM
The official website of simpleportal is back online even if it results in maintenance. I think it's great news.
Title: Re: SimplePortal
Post by: SaltedWeb on December 11, 2017, 01:18:56 PM
Indeed good news, wondered this morning if they would ever come back.  Good news. :D :D :D
Title: Re: SimplePortal
Post by: fanciboy4 on December 15, 2017, 05:12:25 PM
Is there any block that brings up recent topics? Where newly created topics or recent topics are displayed rather than posts.
Title: Re: SimplePortal
Post by: Black Tiger on December 21, 2017, 02:18:52 PM
Since the simpleportal.net site is closed temporarily...

I have enabled "Force secure cookies" in SMF, but on tests it says httponly and the 'secure' flag is not set on this cookie.
On a SMF forum without Simpleportal, it says the cookies are secure.

So it looks as if Simpleportal breaks this secure cookie somewhere. Can this be fixed within Simpleportal and how?
Title: Re: SimplePortal
Post by: Chen Zhen on December 21, 2017, 05:14:54 PM
Black Tiger,

Edit file:
../Sources/Subs-Portal.php

find the function named sp_query_string and change all the http links within the function to https.

This is likely not the culprit.
You have a mod or manual edit calling a jquery script via a Google API whereas the source link needs to be changed to https.
This:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>


needs to be changed to:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>


.. I do not know which mod/theme/edit is using the API, so you'll have to figure it out.
If that xmas decor is part of the theme then I advise to change to the default theme to see if it makes the site secure.
It looks like it is a jquery library being called for the Xmas decor at the top of the page.
Title: Re: SimplePortal
Post by: Black Tiger on December 21, 2017, 07:34:09 PM
Thank you.
However, that's not what's causing secure cookies to break. Must be something else.

I changed the links in sp_query_string, which imho don't matter if it'ss http or https being used for external links, unless they are images, which would break down SSL. But this has nothing to do with cookies as far as I know.

The javascript you're referring to isn't the cause either. Because that's coming from those Christmas bells indeed, called the Yandex Garland mod. If I disable this from the Admin panel, then the javascript line is gone, but cookies still are insecure according to the test.

So I tried the default theme, but that doesn't secure cookies either.
Title: Re: SimplePortal
Post by: maglix04 on December 22, 2017, 01:21:19 PM
Quote from: davidhs on December 05, 2017, 07:21:31 AM
Quote from: Ninja ZX-10RR on December 03, 2017, 12:01:46 PM
Quote from: maglix04 on December 03, 2017, 10:09:39 AM
Quote from: davidhs on November 30, 2017, 08:56:33 AM
The new update of SimplePortal (2.3.7) works in SMF 2.0.14/2.0.15 but it do not use proxy in avatar images of PortalBlocks.php (I do not know if also is necessary in other files).
Me too :(
Solution?
Not atm. We got bigger issues than that.
It is true, this is not important. But, if your forum uses SSL (HTTPS) and any images of portal uses HTTP, navigator show a warning in HTTPS icon. :(

I did these changes in PortalBlocks.php (of SimplePortal 2.3.7) for SMF 2.0.14/2.0.15:

Code (search) Select

global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;

Code (replace) Select

global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

global $smcFunc, $sourcedir, $boarddir, $themedir;

Code (replace) Select

global $smcFunc, $sourcedir, $boarddir, $themedir;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);


Code (search) Select

global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;

Code (replace) Select

global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

global $smcFunc, $sourcedir, $scripturl, $modSettings, $color_profile;

Code (replace) Select

global $smcFunc, $sourcedir, $scripturl, $modSettings, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

global $smcFunc, $sourcedir, $modSettings, $scripturl, $txt, $color_profile;

Code (replace) Select

global $smcFunc, $sourcedir, $modSettings, $scripturl, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

global $context, $boarddir, $sourcedir, $txt, $color_profile;

Code (replace) Select

global $context, $boarddir, $sourcedir, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


Code (search) Select

$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (search) Select

$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

I noticed that after making this change, the "board news" function of simpleportal has a bug, it creates duplicates the topics connected to the board in the home. Solutions?
Title: Re: SimplePortal
Post by: ormuz on December 22, 2017, 03:13:35 PM
How do I create an "inception block"?

So the idea is to have a php block that calls other blocks and show them randomly. Should be something like:

1 - call different blocks by ID
2 - randomize that blocks
3 - show only one block
Title: Re: SimplePortal
Post by: Chen Zhen on December 23, 2017, 12:06:39 AM
Black Tiger,

  Insecure scripts can indeed cause the security warning. It is not just insecure image url's that can cause the browser alert.
example ref. https://css-tricks.com/potential-dangers-of-third-party-javascript/

When I test your scenario with secure cookies enabled & Simple Portal installed on a secure SSL encrypted page (https), I receive no warnings and the page passes as fair.
Imo there is/was an insecure script on your forum causing the browser flagged warning.

Edit after looking at your forum today -> It seems to be passing as secure at the moment.
Title: Re: SimplePortal
Post by: Black Tiger on December 23, 2017, 09:06:22 AM
@Chen Zhen: The security warning is about the cookies. I didn't know this could have someting to do with a script.

QuoteEdit after looking at your forum today -> It seems to be passing as secure at the moment.
How do you see that?
When I test with https://securityheaders.io/ as well on the portal as on the forum, the forum is a bit more secure, but the insecure cookie notice is still the same.

I gues I have to search through all mods what can be the cause then as you said.

By the way, is Simpleportal.net coming back or... ?
Title: Re: SimplePortal
Post by: Chen Zhen on December 24, 2017, 01:29:03 AM
Black Tiger,

It might be one of your blocks.
Try disabling the blocks containing ads to see if it is the problem.

Just as an example, run simpleportal.net through that security headers scan to see the result.
I can assure you it is not the portal causing your flagged security warnings.

Title: Re: SimplePortal
Post by: davidhs on December 24, 2017, 01:03:25 PM
Quote from: maglix04 on December 22, 2017, 01:21:19 PM
Quote from: davidhs on December 05, 2017, 07:21:31 AM
[...]

I did these changes in PortalBlocks.php (of SimplePortal 2.3.7) for SMF 2.0.14/2.0.15:

Code (search) Select

global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;

Code (replace) Select

global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


[...]
I noticed that after making this change, the "board news" function of simpleportal has a bug, it creates duplicates the topics connected to the board in the home. Solutions?
I suppose this function is sp_boardNews. Write here code of this function, perhaps you have an error.
Title: Re: SimplePortal
Post by: maglix04 on December 24, 2017, 03:50:19 PM
QuoteI suppose this function is sp_boardNews. Write here code of this function, perhaps you have an error.
I have reset the portalblocks.php file without the changes you indicated, and the problem is solved so I think there is some problem with your modification. Thanks  you and merry christmas :)
Title: Re: SimplePortal
Post by: Black Tiger on December 24, 2017, 06:00:33 PM
@Checn-Zen: I disabled all custom made php and html cookies and still no secure cookie.

QuoteJust as an example, run simpleportal.net through that security headers scan to see the result.
I can assure you it is not the portal causing your flagged security warnings.
I'm glad you're trying to help. But it might be wise to test this yourself on the site mentioned before assuring it's not the portal.:)
I just ran simpleportal.net on that testsite like you suggested and.... no secure cookies. So it looks like it is the portal causing it.
Title: Re: SimplePortal
Post by: Black Tiger on December 24, 2017, 09:50:12 PM
@Chen-Zen: I finally found it.
On a fresh install with SMF and Simpleportal, i get a secured cookie when not using redirects.

As soon as I put a .htaccess redirect in the root, the cookie is not secured anymore according to the test.
This is my .htaccess which is quite normal. Changes non-www to www and to https:
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443 [OR]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.mydomain.com/$1 [R=301,L]

I use the exact same redirect on a phpBB forum on the same server and one phpBB on another server, no issues with secure cookies.

So I tested the same with only SMF installed and again, not a secured cookie. Not even when creating a redirect in the /forum folder. So it's not a mod or Simpleportal issue but an SMF core issue.
Title: Re: SimplePortal
Post by: Chen Zhen on December 24, 2017, 10:24:01 PM
Black Tiger,

When I test simpleportal.net on that website security check it gives it an A+.

Anyhow, try this as you .htaccess file:

# .htaccess for www.domain name.com
# ip address
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ip address
RewriteRule (.*) https://www.domain name.com/$1 [R=301,L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
Header set Content-Security-Policy "max-age=10886400; includeSubDomains; preload" env=HTTPS
Header set X-Content-Security-Policy "default-src 'self' data: https:"
Header set X-WebKit-CSP "default-src 'self' data: https:"
Header set Referrer-Policy no-referrer


.. that should redirect non-www to www and also anyone using your ip to www.yourdomain.org.
It also adjusts some header data to help you pass your security check where more adjustments can be added to perfect it.

{-edit: actual domain name and IP address removed}
Title: Re: SimplePortal
Post by: Chen Zhen on December 24, 2017, 11:32:16 PM
Here it is with your secure cookie setting that you are concerned about:

# .htaccess for www.domain.com
# ip address number
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ip address number
RewriteRule (.*) https://www.domain name.com/$1 [R=301,L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
Header set Content-Security-Policy "max-age=10886400; includeSubDomains; preload" env=HTTPS
Header set X-Content-Security-Policy "default-src 'self' data: https:"
Header set X-WebKit-CSP "default-src 'self' data: https:"
Header set Referrer-Policy no-referrer
Header set Set-Cookie HttpOnly;Secure


I am assuming you use Apache which I did not check btw.

{-edit: actual domain name and IP address removed}
Title: Re: SimplePortal
Post by: davidhs on December 25, 2017, 06:51:16 AM
Quote from: maglix04 on December 24, 2017, 03:50:19 PM
QuoteI suppose this function is sp_boardNews. Write here code of this function, perhaps you have an error.
I have reset the portalblocks.php file without the changes you indicated, and the problem is solved so I think there is some problem with your modification. Thanks  you and merry christmas :)
:)

I do not know... perhaps I have a typo, or your portalblocks.php was modified before...
You can try do step by step and text between steps.

I expect SimplePortal Team will fix this soon.
Title: Re: SimplePortal
Post by: Black Tiger on December 25, 2017, 08:27:24 AM
@Chen-zen:
QuoteWhen I test simpleportal.net on that website security check it gives it an A+.
Yeah lol today it does. Last night and yesterday that was not the case and the cookie gave also insecure. :)

I don't need all the lines with the ip since it's a shared hosting server and the site can't be reached by ip anyway. It would be nice if you had masked the ip and hostname, like I did. ;)
If you still can edit I would appreciate if you could change domain names and ip's in both examples.

I knew how to fix the other things, I was just wondering why there was no secure cookie on redirect and why other software would do it without the need for that specific setting in the .htaccess. Didn't know there was also a securecookie setting for .htaccess.

I will adjust the .htaccess by addint the header set and cookie lines.

Thank you for the help!
Title: Re: SimplePortal
Post by: maglix04 on December 29, 2017, 02:29:35 PM
Quote from: davidhs on December 05, 2017, 07:21:31 AM


Code (search) Select

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);




Quote from: davidhs on December 25, 2017, 06:51:16 AM
Quote from: maglix04 on December 24, 2017, 03:50:19 PM
QuoteI suppose this function is sp_boardNews. Write here code of this function, perhaps you have an error.
I have reset the portalblocks.php file without the changes you indicated, and the problem is solved so I think there is some problem with your modification. Thanks  you and merry christmas :)
:)

I do not know... perhaps I have a typo, or your portalblocks.php was modified before...
You can try do step by step and text between steps.

I expect SimplePortal Team will fix this soon.

I found the "bug". In the code that I quoted, you rewrote the same change twice, for this reason, using the Board News feature, it created duplicates the topics connected to the board in the home. ;)
Title: Re: SimplePortal
Post by: SaltedWeb on January 01, 2018, 05:57:01 PM
I have articles activated when creating a article it gives error
QuoteThe database value you're trying to insert does not exist: targetboard
Title: Re: SimplePortal
Post by: davidhs on January 03, 2018, 06:08:48 AM
Quote from: maglix04 on December 29, 2017, 02:29:35 PM
Quote from: davidhs on December 05, 2017, 07:21:31 AM


Code (search) Select

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (replace) Select

$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);




Quote from: davidhs on December 25, 2017, 06:51:16 AM
Quote from: maglix04 on December 24, 2017, 03:50:19 PM
QuoteI suppose this function is sp_boardNews. Write here code of this function, perhaps you have an error.
I have reset the portalblocks.php file without the changes you indicated, and the problem is solved so I think there is some problem with your modification. Thanks  you and merry christmas :)
:)

I do not know... perhaps I have a typo, or your portalblocks.php was modified before...
You can try do step by step and text between steps.

I expect SimplePortal Team will fix this soon.

I found the "bug". In the code that I quoted, you rewrote the same change twice, for this reason, using the Board News feature, it created duplicates the topics connected to the board in the home. ;)
:-[ Yes.
Title: Re: SimplePortal
Post by: CapadY on January 10, 2018, 08:26:47 AM
I have to make a new site but I am a little scary to use Simple Portal because they don't have a site up for several weeks and it seems not to be supported any longer ?

Can somebody tell/explain me something about it ?
Title: Re: SimplePortal
Post by: SaltedWeb on January 10, 2018, 12:10:26 PM
Simple Portal is supported and stable if you look at the post before yours you will see many able to help with issues.
Their site a few months ago was not seen, not partially up I would think soon it should be active.
That said, SP is a stable portal usually not needing much support unless other mods are installed.
I have used it since its inception its a pretty nice portal and yes its support by many here, I would guess
the site should be active someone time in the near future, hope this helps.
Title: Re: SimplePortal
Post by: Black Tiger on January 10, 2018, 12:14:46 PM
Their site was up for several years and only got to this state some months ago. I know Simpleportal is supported here, especially by Chen Zhen, but it would be nice to know if and when their site and forums will be online again because it also contains a treasure on information about Simpleportal.

So I hope somebody knows something more definite then "in the near future".

@Capady: Don't worry, Simple portal works very good and it isn't even that difficult, it's just great!
Title: Re: SimplePortal
Post by: aegersz on January 10, 2018, 01:03:28 PM
Tell me about it ! I really wanted to get on there and as for help ... I was trying to figure out why my SP mod to enable sound in the Shoutbox, stopped working.

I eventually resorted to Chrome's Developer's tools and found out that Chrome has been withdrawing support for Flash (as indicated by the error below)

QuoteSame-origin plugin content from https://forum_name/Themes/default/images/sp/shout_sounds.swf must have a visible size larger than 6 x 6 pixels, or it will be blocked. Invisible content is always blocked.

I could've saved myself a lot of bother ... i really want SP back too ... and suddenly, I have this fondness for IE.
Title: Re: SimplePortal
Post by: SaltedWeb on January 10, 2018, 02:09:37 PM
Quote from: Black Tiger on January 10, 2018, 12:14:46 PM
Their site was up for several years and only got to this state some months ago. I know Simpleportal is supported here, especially by Chen Zhen, but it would be nice to know if and when their site and forums will be online again because it also contains a treasure on information about Simpleportal.

So I hope somebody knows something more definite then "in the near future".


Yes but as we all know most all developers have other off site duties to pay their bills, I can only imagine trying to find time as
a developer and working a job and to get my site back up.  But there is progress not three months ago there was no site to access just an error. So the fact now there is a page now in maintenance mode means  1# its not abandoned as the question asked. #2 they have to be working on it since the site is now seen even if its limited its there.  So I would presume based on the progress sometime in the near future it would occur. I too have to remind myself at times SMF and 99% of the mods are all free supported mostly by non-paid persons.
Patience is needed sure it will resolve itself in due time.
Title: Re: SimplePortal
Post by: Black Tiger on January 10, 2018, 02:21:45 PM
Oh I understand that part, it's not that I'm impatient or unthankfull for free stuff.
It's more that it would be nicer to know what's going on. I also have a forum, which is not very busy anymore, but even in the busy days with my work and everything, it's possible for every forum admin to put some notice up, not just suddenly put a site offline which worries users. Not only about the admin but also if there will be support in the future and if they do or don't have to make an easy start to look around for something else. Which is also understandable.
But indeed the site is not down, it's just offline, so we will be patient. The only thing I stated was my hope that somebody would know a bit more. Nothing more, nothing less. ;)
Title: Re: SimplePortal
Post by: vbgamer45 on January 10, 2018, 02:57:25 PM
I wish it was back as well... Been waiting.
Title: Re: SimplePortal
Post by: SaltedWeb on January 10, 2018, 03:38:41 PM
If one looks back you can see about when the support become minimal and I suspect that some of the information on their site will need to be updated to fit the newer updates just so much has to be going on. Wasn't suggesting you weren't patient just putting a spin on it, like people have said that keep asking when the beta of SMF will be ready and the answer is when its ready and not before LOL . Guess same analogy could be said it will be up and working I suspect when its ready :-)
Title: Re: SimplePortal
Post by: [SiNaN] on January 14, 2018, 04:04:58 PM
I'm happy to announce that SimplePortal website is back online. I'm sorry for the inconvenience and worries we may have caused, and would like to thank everyone who offered their help and support during these past months.
Title: Re: SimplePortal
Post by: Black Tiger on January 14, 2018, 04:41:42 PM
Great to hear you're fine and Simpleportal is back up! Thank you!
Title: Re: SimplePortal
Post by: Arantor on January 14, 2018, 04:51:31 PM
Indeed, some good news :) Lemme know if there's anything I can do to help keep it up :)
Title: Re: SimplePortal
Post by: GL700Wing on January 14, 2018, 04:51:40 PM
Quote from: [SiNaN] on January 14, 2018, 04:04:58 PM
I'm happy to announce that SimplePortal website is back online.
Excellent news - thanks!
Title: Re: SimplePortal
Post by: vbgamer45 on January 14, 2018, 05:21:39 PM
I am getting an ssl error
Your connection is not private
Attackers might be trying to steal your information from www.simpleportal.net (for example, passwords, messages, or credit cards). Learn more
NET::ERR_CERT_COMMON_NAME_INVALID
Title: Re: SimplePortal
Post by: lurkalot on January 14, 2018, 05:32:55 PM
Quote from: vbgamer45 on January 14, 2018, 05:21:39 PM
I am getting an ssl error
Your connection is not private
Attackers might be trying to steal your information from www.simpleportal.net (for example, passwords, messages, or credit cards). Learn more
NET::ERR_CERT_COMMON_NAME_INVALID

Remove the www

https://simpleportal.net
Title: Re: SimplePortal
Post by: Black Tiger on January 14, 2018, 05:34:45 PM
Ah.. see what you mean. If you include the www it gives the issue, so the redirect should be adjusted or www added indeed.
Title: Re: SimplePortal
Post by: vbgamer45 on January 14, 2018, 06:41:43 PM
Ah yeah I clicked the link in Sinan's profile.
Title: Re: SimplePortal
Post by: Chen Zhen on January 14, 2018, 07:23:48 PM
www issue is now fixed
Title: Re: SimplePortal
Post by: SaltedWeb on January 14, 2018, 11:28:08 PM
Indeed great news glad yours back.
Title: Re: SimplePortal
Post by: aegersz on January 15, 2018, 04:28:11 AM
best news i have heard for ages - i may not pop in often but i need them, want them and love them !

my old name and password were not accepted so i am now waiting for my activation email ... it's overdue though.

anybody else having issues like me ?
Title: Re: SimplePortal
Post by: Chen Zhen on January 15, 2018, 05:14:13 PM

Emails have been reported as working correctly.
Please check your spam folder and white list posts from SimplePortal if they are being directed there.
Title: Re: SimplePortal
Post by: aegersz on January 15, 2018, 11:31:47 PM
Quote from: Chen Zhen on January 15, 2018, 05:14:13 PM

Emails have been reported as working correctly.
Please check your spam folder and white list posts from SimplePortal if they are being directed there.

it's nowhere to be found.

I had a similar problem when i first joined when aegersz went missing on me too.

I couldn't logon with my old name (aegersz2) using my regular password.

I tried with aegersz3 this time ... could you please remove aegersz3, reset aegersz2 and email me the password ?

this is a bit embarrassing ...
Title: Re: SimplePortal
Post by: [SiNaN] on January 16, 2018, 02:45:00 PM
Quote from: Arantor on January 14, 2018, 04:51:31 PM
Indeed, some good news :) Lemme know if there's anything I can do to help keep it up :)

Thank you Arantor. I really appreciate it very much. :)

Quote from: aegersz on January 15, 2018, 11:31:47 PM
it's nowhere to be found.

I had a similar problem when i first joined when aegersz went missing on me too.

I couldn't logon with my old name (aegersz2) using my regular password.

I tried with aegersz3 this time ... could you please remove aegersz3, reset aegersz2 and email me the password ?

this is a bit embarrassing ...

I've sent you a personal message on this forum. Please have a look at that.
Title: Re: SimplePortal
Post by: Dwev on January 27, 2018, 11:50:48 AM
Quote from: Gluz on December 04, 2017, 04:10:08 PM
Quote from: Ilkharnos on December 04, 2017, 07:33:44 AM
I use the latest version of SP. I use a few "Recent Posts/Topics" blocks (set to "topics"). As far as I can see, this block doesn't show somewhat old topics. I cannot see the topics which I posted a few months ago.

I would like to have a recent posts/topics block which is timeless. Is there any way I can do that?

Thank you in advance.

If you want a list of topics similar to how it's done in that block, but with your own set of topics you need to make a custom PHP block, have the topic IDs in an Array, fetch the id of first message of each topic, and use the ssi_fetchPosts function.

Someone asked a similar question yesterday, but as I'm in my mobile phone it's hard to put code, but that is what I remember from one site I used something similar.

Recent Topics seem to disappear after a month, I suppose that's a setting somewhere.

Isn't there a way to adjust that setting?

Seems a lot easier than what's 'Gluz' is suggesting, if it's feasible, of course.
Title: Re: SimplePortal
Post by: DJF-1975 on January 28, 2018, 11:25:02 PM
Excellent news! I'd be lost without this place IMO SP is the only solution for an SMF portal! thank you, and welcome back!

D
Title: Re: SimplePortal
Post by: landyvlad on January 29, 2018, 02:24:32 AM
Quote from: DJF-1975 on January 28, 2018, 11:25:02 PM
IMO SP is the only solution for an SMF portal!

I'd be interested to put this in context, what other portals have you tried?

For the record I've tried SP, TinyPortal and EZPortal. Each is different with its own strengths and weaknesses. I settled on TP as best for me, but when it comes to these three there is no wrong answer :)

Glad to see SP site back up and running.  Good work all :)



Title: Re: SimplePortal
Post by: DJF-1975 on January 29, 2018, 07:51:53 AM
I used TP for literally years. I've used EZ... SP's layout and ease of use is why I picked it.

D
Title: Re: SimplePortal
Post by: bigfan on February 07, 2018, 01:03:23 PM
Hi,

What happened to quick internal links? I can't find it in add new blocks option anymore. How do I enable it?

Thank you for your great works.
Title: Re: SimplePortal
Post by: Beowulf1976 on February 20, 2018, 05:25:54 AM
Hello,


when I try to add shoutbox I get a database error:

Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'File: /home/********/public_html/forum/Sources/Subs-Portal.phpLine: 1261


When I check that file, on that line I have:


      );


The bit before is this:


function sportal_get_shouts($shoutbox, $parameters)
{
   global $smcFunc, $scripturl, $context, $user_info, $modSettings, $options, $txt;


   $shoutbox = !empty($shoutbox) ? (int) $shoutbox : 0;
   $start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
   $limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 20;
   $bbc = !empty($parameters['bbc']) ? $parameters['bbc'] : array();
   $reverse = !empty($parameters['reverse']);
   $cache = !empty($parameters['cache']);
   $can_delete = !empty($parameters['can_moderate']);


   if (!empty($start) || !$cache || ($shouts = cache_get_data('shoutbox_shouts-' . $shoutbox, 240)) === null)
   {
      $request = $smcFunc['db_query']('', '
         SELECT
            sh.id_shout, sh.body, IFNULL(mem.id_member, 0) AS id_member,
            IFNULL(mem.real_name, sh.member_name) AS member_name, sh.log_time,
            mg.online_color AS member_group_color, pg.online_color AS post_group_color
         FROM {db_prefix}sp_shouts AS sh
            LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = sh.id_member)
            LEFT JOIN {db_prefix}membergroups AS pg ON (pg.id_group = mem.id_post_group)
            LEFT JOIN {db_prefix}membergroups AS mg ON (mg.id_group = mem.id_group)
         WHERE sh.id_shoutbox = {int:id_shoutbox}
         ORDER BY sh.id_shout DESC
         LIMIT {int:start}, {int:limit}',
         array(
            'id_shoutbox' => $shoutbox,
            'start' => $start,
            'limit' => $limit,
         )
      );



I know nothing about this kind of stuff, but I can see there seems to be an open { and no closing } ?

Title: Re: SimplePortal
Post by: SaltedWeb on February 23, 2018, 07:27:10 PM
Is there a way in SP to have blocks side by side each other in the header, top , bottom areas? ?
Title: Re: SimplePortal
Post by: Dwev on February 24, 2018, 03:33:45 AM
Reposting this one (https://www.simplemachines.org/community/index.php?topic=227599.msg3959665#msg3959665), because it was never answered.

Quote from: Gluz on December 04, 2017, 04:10:08 PM
Quote from: Ilkharnos on December 04, 2017, 07:33:44 AM
I use the latest version of SP. I use a few "Recent Posts/Topics" blocks (set to "topics"). As far as I can see, this block doesn't show somewhat old topics. I cannot see the topics which I posted a few months ago.

I would like to have a recent posts/topics block which is timeless. Is there any way I can do that?

Thank you in advance.

If you want a list of topics similar to how it's done in that block, but with your own set of topics you need to make a custom PHP block, have the topic IDs in an Array, fetch the id of first message of each topic, and use the ssi_fetchPosts function.

Someone asked a similar question yesterday, but as I'm in my mobile phone it's hard to put code, but that is what I remember from one site I used something similar.

Recent Topics seem to disappear after a month, I suppose that's a setting somewhere.

Isn't there a way to adjust that setting?

Seems a lot easier than what's 'Gluz' is suggesting, if it's feasible, of course.
Title: Re: SimplePortal
Post by: vbgamer45 on February 24, 2018, 08:32:33 AM
They disappear since it probably uses the smf default code which has a max topic id which it limits the results returned by.
Title: Re: SimplePortal
Post by: Dwev on February 24, 2018, 12:44:41 PM
@ vbgamer45: do you (or anybody else) know where this code can be found, and if it's (relatively) easy to change it?
Title: Re: SimplePortal
Post by: SaltedWeb on February 24, 2018, 03:19:20 PM
Disregard the above question, I am just going to create some tables and add it that way.

Thanks
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on February 25, 2018, 07:41:03 AM
Quote from: SaltedWeb on February 24, 2018, 03:19:20 PM
Disregard the above question, I am just going to create some tables and add it that way.

Thanks
Could also try a search on our website: https://simpleportal.net/index.php?topic=5332.0 maybe it would return something much nicer than a table :)
Title: Re: SimplePortal
Post by: SaltedWeb on February 25, 2018, 11:31:15 AM
Thanks I will give that a try.
Title: Re: SimplePortal
Post by: -Rock Lee- on February 26, 2018, 09:38:20 AM
As the translations are installable packages and the Spanish packages are updated to work with the latest version.


Regards!
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on February 26, 2018, 11:33:03 AM
I don't think we had any translation changes since 2.3.5, we store all the translation files here: https://simpleportal.net/index.php?action=downloads;area=stable_language_packs :)
But thanks anyway, I'm sure one of my colleagues will update it if necessary! :)
Title: Re: SimplePortal
Post by: -Rock Lee- on February 26, 2018, 11:39:02 AM
Quote from: Ninja ZX-10RR on February 26, 2018, 11:33:03 AM
I don't think we had any translation changes since 2.3.5, we store all the translation files here: https://simpleportal.net/index.php?action=downloads;area=stable_language_packs :)
But thanks anyway, I'm sure one of my colleagues will update it if necessary! :)

I had not used previous versions so I was not sure ... But since I had to go around on my HDD it never hurts to publish it :P


Regards!
Title: Re: SimplePortal
Post by: SaltedWeb on February 26, 2018, 01:37:48 PM
Does SP have anyway to sort the articles block?  Its nice that you can add it to the front page as a block but there is no way to order them as the seem go by date created.
Title: Re: SimplePortal
Post by: Beowulf1976 on February 26, 2018, 04:07:58 PM
Quote from: Beowulf1976 on February 20, 2018, 05:25:54 AM
Hello,


when I try to add shoutbox I get a database error:

Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'File: /home/********/public_html/forum/Sources/Subs-Portal.phpLine: 1261


When I check that file, on that line I have:


      );


The bit before is this:


function sportal_get_shouts($shoutbox, $parameters)
{
   global $smcFunc, $scripturl, $context, $user_info, $modSettings, $options, $txt;


   $shoutbox = !empty($shoutbox) ? (int) $shoutbox : 0;
   $start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
   $limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 20;
   $bbc = !empty($parameters['bbc']) ? $parameters['bbc'] : array();
   $reverse = !empty($parameters['reverse']);
   $cache = !empty($parameters['cache']);
   $can_delete = !empty($parameters['can_moderate']);


   if (!empty($start) || !$cache || ($shouts = cache_get_data('shoutbox_shouts-' . $shoutbox, 240)) === null)
   {
      $request = $smcFunc['db_query']('', '
         SELECT
            sh.id_shout, sh.body, IFNULL(mem.id_member, 0) AS id_member,
            IFNULL(mem.real_name, sh.member_name) AS member_name, sh.log_time,
            mg.online_color AS member_group_color, pg.online_color AS post_group_color
         FROM {db_prefix}sp_shouts AS sh
            LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = sh.id_member)
            LEFT JOIN {db_prefix}membergroups AS pg ON (pg.id_group = mem.id_post_group)
            LEFT JOIN {db_prefix}membergroups AS mg ON (mg.id_group = mem.id_group)
         WHERE sh.id_shoutbox = {int:id_shoutbox}
         ORDER BY sh.id_shout DESC
         LIMIT {int:start}, {int:limit}',
         array(
            'id_shoutbox' => $shoutbox,
            'start' => $start,
            'limit' => $limit,
         )
      );



I know nothing about this kind of stuff, but I can see there seems to be an open { and no closing } ?



Anyone? :'(
Title: Re: SimplePortal
Post by: Chen Zhen on February 26, 2018, 06:41:03 PM
Beowulf1976,

You can try the collation tools from this link: https://web-develop.ca/index.php?action=downloads;area=stable_smf_utilities
.. either will attempt to make your db collation uniform.
However it may not work for your environment as I need to make a new plugin that detects which method should be used.
I used to have version 1.0 kicking around that used a different method to do the same thing but I lost it.
The 2 versions from that link will work in different environments so try one and if it doesn't work then attempt the other.

Backup your database in its entirety prior to using those tools.

Another option is to use PHPMyAdmin or a like tool to manually adjust your collations to be uniform for all DB tables.

Title: Re: SimplePortal
Post by: Dwev on February 27, 2018, 09:43:42 AM
Because I can't get the "Recent reactions" to work as I want (they disappear too soon) I thought I found a clever workaround: use a RSS feed.

The RSS feed I made of the board of which I want to show the last 10 items works without a problem in a RSS app, but SimplePortal keeps giving me a "Invalid feed"-error.

The only field without anything in it is "Tags to Preserve:", because I don't know what to do with it.

I can send the feed URL in a Personal Message, putting it here doesn't seem a good idea (because after a while you can't edit your own messages here anymore).
The format at the moment is feed://www.xxxxx.xxx/index.php?action=.xml;sa=news;board=14;limit=10;type=rss2
Title: Re: SimplePortal
Post by: nofapturkiye on March 02, 2018, 10:31:16 AM
hi , i have created  custom php block . I want to know how can i connect my db without sharing "pass"  and "username"

i know  in smf  there is some sort of  global variable for this. but i dont know how to call it

$connect=mysqli_connect("localhost","username","pass");

this is a security issue for me . Thank you


Title: Re: SimplePortal
Post by: Beowulf1976 on March 02, 2018, 06:26:01 PM
Quote from: Chen Zhen on February 26, 2018, 06:41:03 PM
Beowulf1976,

You can try the collation tools from this link: https://web-develop.ca/index.php?action=downloads;area=stable_smf_utilities
.. either will attempt to make your db collation uniform.
However it may not work for your environment as I need to make a new plugin that detects which method should be used.
I used to have version 1.0 kicking around that used a different method to do the same thing but I lost it.
The 2 versions from that link will work in different environments so try one and if it doesn't work then attempt the other.

Backup your database in its entirety prior to using those tools.

Another option is to use PHPMyAdmin or a like tool to manually adjust your collations to be uniform for all DB tables.



Thank you so much for your help, I was beginning to think I was being ignored. eheh thanks again :) will come back and let you know if I fix it :)
Title: Re: SimplePortal
Post by: -Rock Lee- on March 02, 2018, 06:29:33 PM
Quote from: nofapturkiye on March 02, 2018, 10:31:16 AM
hi , i have created  custom php block . I want to know how can i connect my db without sharing "pass"  and "username"

i know  in smf  there is some sort of  global variable for this. but i dont know how to call it

$connect=mysqli_connect("localhost","username","pass");

this is a security issue for me . Thank you

Using the ssi.php can not achieve what you want? It has variables that you can extract and be useful.


Regards!
Title: Re: SimplePortal
Post by: Chen Zhen on March 02, 2018, 10:44:07 PM
Quote from: nofapturkiye on March 02, 2018, 10:31:16 AM
hi , i have created  custom php block . I want to know how can i connect my db without sharing "pass"  and "username"

i know  in smf  there is some sort of  global variable for this. but i dont know how to call it

$connect=mysqli_connect("localhost","username","pass");

this is a security issue for me . Thank you

Just use $smcFunc... ie.
ie.

global $smcFunc;
$admins = array();
$request = $smcFunc['db_query']('', '
SELECT id_member, member_name, id_group
FROM {db_prefix}members
WHERE id_group = {int:group}
ORDER BY id_member ASC',
array('group' => 1)
);

// Loop through all results & add them to an array
while ($row = $smcFunc['db_fetch_assoc']($request))
$admins[] = array('id' => $row['id_member'], 'name' => $row['member_name']);

$smcFunc['db_free_result']($request);
Title: Re: SimplePortal
Post by: Beowulf1976 on March 05, 2018, 12:29:31 AM
Quote from: Chen Zhen on February 26, 2018, 06:41:03 PM
Beowulf1976,

You can try the collation tools from this link: https://web-develop.ca/index.php?action=downloads;area=stable_smf_utilities
.. either will attempt to make your db collation uniform.
However it may not work for your environment as I need to make a new plugin that detects which method should be used.
I used to have version 1.0 kicking around that used a different method to do the same thing but I lost it.
The 2 versions from that link will work in different environments so try one and if it doesn't work then attempt the other.

Backup your database in its entirety prior to using those tools.

Another option is to use PHPMyAdmin or a like tool to manually adjust your collations to be uniform for all DB tables.

Thank you Chen Zhen! It worked perfectly! :D *hug*!
Title: Re: SimplePortal
Post by: becometa on March 12, 2018, 08:43:52 AM
Is there BBCode tags count limit while creating "Page"?
What I can observe is that after certain amount of bbcode tags is being used, the whole page body is being deleted.

If it does exist: any way to bypass the limit?

/edit: I'm wondering whether it would be better to convert the body to HTML
Title: Re: SimplePortal
Post by: nofapturkiye on March 13, 2018, 01:37:08 PM
Quote from: Rock Lee on March 02, 2018, 06:29:33 PM
Quote from: nofapturkiye on March 02, 2018, 10:31:16 AM
hi , i have created  custom php block . I want to know how can i connect my db without sharing "pass"  and "username"

i know  in smf  there is some sort of  global variable for this. but i dont know how to call it

$connect=mysqli_connect("localhost","username","pass");

this is a security issue for me . Thank you

Using the ssi.php can not achieve what you want? It has variables that you can extract and be useful.


Regards!



can you please elaborate ?  i open ssi.php it has many global variables but i need an example .
Title: Re: SimplePortal
Post by: -Rock Lee- on March 13, 2018, 01:49:16 PM
Quote from: nofapturkiye on March 13, 2018, 01:37:08 PM
can you please elaborate ?  i open ssi.php it has many global variables but i need an example .

If you check your SMF installation, bring a file of examples ... You should only change for your domain but you can see this SSI Examples (https://www.simplemachines.org/community/ssi_examples.php).


Regards!
Title: Re: SimplePortal
Post by: nofapturkiye on March 13, 2018, 03:26:35 PM
Quote from: Chen Zhen on March 02, 2018, 10:44:07 PM
Quote from: nofapturkiye on March 02, 2018, 10:31:16 AM
hi , i have created  custom php block . I want to know how can i connect my db without sharing "pass"  and "username"

i know  in smf  there is some sort of  global variable for this. but i dont know how to call it

$connect=mysqli_connect("localhost","username","pass");

this is a security issue for me . Thank you

Just use $smcFunc... ie.
ie.

global $smcFunc;
$admins = array();
$request = $smcFunc['db_query']('', '
SELECT id_member, member_name, id_group
FROM {db_prefix}members
WHERE id_group = {int:group}
ORDER BY id_member ASC',
array('group' => 1)
);

// Loop through all results & add them to an array
while ($row = $smcFunc['db_fetch_assoc']($request))
$admins[] = array('id' => $row['id_member'], 'name' => $row['member_name']);

$smcFunc['db_free_result']($request);



okey here is my code  but it returns with an error

global $context, $modSettings, $txt, $smcFunc,$settings, $user_info;

if ($context['user']['is_logged'])
{

$id=$user_info['id'];

$request = $smcFunc['db_query']('', 'SELECT id_member, member_name, id_group,real_sayac
FROM {db_prefix}members
                      WHERE id_member, = $id' 
);

var_dump($request );

}


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 ' = $id' at line 3




Title: Re: SimplePortal
Post by: vbgamer45 on March 13, 2018, 03:29:30 PM
Change to

$request = $smcFunc['db_query']('', 'SELECT id_member, member_name, id_group,real_sayac
FROM {db_prefix}members
                      WHERE id_member = ' . $id
);
Title: Re: SimplePortal
Post by: nofapturkiye on March 14, 2018, 11:19:15 AM
Quote from: vbgamer45 on March 13, 2018, 03:29:30 PM
Change to

$request = $smcFunc['db_query']('', 'SELECT id_member, member_name, id_group,real_sayac
FROM {db_prefix}members
                      WHERE id_member = ' . $id
);


thx a lot it worked like a charm . But can explain why we have to use .  ?
Title: Re: SimplePortal
Post by: vbgamer45 on March 14, 2018, 12:19:56 PM
That's how php works
Title: Re: SimplePortal
Post by: aegersz on April 30, 2018, 11:21:09 AM
Hello and "help" please, i have forgotten my password to SimplePortal !

i am aegersz2

I wanted to discuss how to code a "history" like buffer to scroll through so i can retrieve commands (because i usually mess them up after highlighting, colorizing etc.)


Title: Re: SimplePortal
Post by: vbgamer45 on April 30, 2018, 11:32:03 AM
Did you try to resend the password? Check your bulk and spam folder
Title: Re: SimplePortal
Post by: aegersz on April 30, 2018, 12:42:48 PM
no i didn't (yes, i am that stupid sometimes) but the password emailed to me is:

[color=navy]讚 i Yofumo + & j) pj human 榴 s q O turbocharger z Li ^ ~ cancer "Les Z IF (Yura鄧Hi b" xZ Aki 椌 E i 攜肩 Coca 徨匡 o:, z Yoa {
Z IF (Interview La% free time! - 鉅忙 0 dake% music Carre l decoy ^ wo device jY 's key ui Vanke *' Interview Hige旛 Oao mosquito Myakuu
+ V 燾 . Las basin 7y Tsu 8 to divide M {scan v ® v wo y § z three[/color]


that's one mofo of a thing to type in !

I then tried it a few more times after that but no joy.

any more suggestions would be appreciated but if not, i may try la 
Title: Re: SimplePortal
Post by: aegersz on April 30, 2018, 01:28:34 PM
ter
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on April 30, 2018, 04:37:11 PM
Quote from: aegersz on April 30, 2018, 12:42:48 PM
no i didn't (yes, i am that stupid sometimes) but the password emailed to me is:

[color=navy]讚 i Yofumo + & j) pj human 榴 s q O turbocharger z Li ^ ~ cancer "Les Z IF (Yura鄧Hi b" xZ Aki 椌 E i 攜肩 Coca 徨匡 o:, z Yoa {
Z IF (Interview La% free time! - 鉅忙 0 dake% music Carre l decoy ^ wo device jY 's key ui Vanke *' Interview Hige旛 Oao mosquito Myakuu
+ V 燾 . Las basin 7y Tsu 8 to divide M {scan v ® v wo y § z three[/color]


that's one mofo of a thing to type in !

I then tried it a few more times after that but no joy.

any more suggestions would be appreciated but if not, i may try la 
Forwarded. Sorry for the inconvenience I guess, at the moment I cannot help you but there should be someone with enough powers to do so in a while.
Title: Re: SimplePortal
Post by: Dwev on May 15, 2018, 06:04:14 AM
Recently my front page with SimplePortal doesn't display accents and such right anymore.

I guess this has something to do with ISO-8859-1 versus UTF-8.

The forum is set to UTF-8 and all accents display fine in topics and such.
But the same topics on the front page (through SimpelPortal) show the same characters scrambled.

I've searched but can't find a setting for this anywhere, so I hope someone here has the solution to this problem.
Title: Re: SimplePortal
Post by: Chen Zhen on May 15, 2018, 10:06:00 AM

Is it related to the recent plug-in you installed or Simple Portal itself?

Temporarily uninstall the recent plug-in and test your board news block again.
Report if the problem ceases or continues with the plug-in uninstalled.
Title: Re: SimplePortal
Post by: Dwev on May 15, 2018, 01:46:30 PM
@ Chen Zhen: didn't think of it, but turns out you're right.

Ironically the culprit turns out to be one that you wrote (https://web-develop.ca/index.php?action=downloads;area=stable_simple_portal_plugins;file=26) (and I'm still really happy with that one and grateful to you!).

Would there be a way to correct this unwanted side-effect?
Title: Re: SimplePortal
Post by: sundar_83 on May 22, 2018, 11:36:10 AM
getting this error after install smf portal and also cant login

Notice: Constant SMF already defined in /home/srimeein/forum.srimeenakshimobiles.com/index.php on line 29

Fatal error: Function name must be a string in /home/srimeein/forum.srimeenakshimobiles.com/Sources/Load.php on line 142

Fatal error: Function name must be a string in /home/srimeein/forum.srimeenakshimobiles.com/Sources/Load.php on line 2492
Title: Re: SimplePortal
Post by: sundar_83 on May 24, 2018, 02:32:20 AM
Any on help in this?
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on May 24, 2018, 07:51:36 AM
You most likely installed it with errors and kept going, because it definitely doesn't happen with a standard installation.
https://wiki.simplemachines.org/smf/A_mod_broke_my_forum
Title: Re: SimplePortal
Post by: mattizzy on July 11, 2018, 01:57:55 PM
Hello, How can I modify The Front Page to my taste and remove all those default Blocks
Title: Re: SimplePortal
Post by: Chen Zhen on July 11, 2018, 02:37:13 PM
Navigate to: Admin -> Simple Portal -> Blocks
.. from there you can add, edit and/or delete any blocks you want.
The editor is fairly self explanatory as it's titled/labeled for top, side, bottom blocks, etc.

To make a block simply choose where you want it placed, opt the block type (BBC, HTML or PHP), add the desired content, actual forum location (ie. board, forum, front page), permissions to view it (if desired) and then save it.

Title: Re: SimplePortal
Post by: SaltedWeb on July 15, 2018, 04:16:16 PM
Is there a way to change the color of the block header? They seem default blue and I need black to match the theme setting default doesn't seem to change it.
Thank You
Title: Re: SimplePortal
Post by: Chen Zhen on July 15, 2018, 11:10:40 PM

Admin -> Simple Portal -> Configuration -> General Settings
.. check the Portal Theme settings.
Default should set it to whichever theme is the selected default otherwise you can set it to a specific theme.
Title: Re: SimplePortal
Post by: CyanGaming on August 12, 2018, 03:24:42 PM
Trying to change the Top Posters list to: "Top posters of the week"
Upon making this change, this happened to the portal home page, it was not like this prior to the change

(https://i.imgur.com/pxjUYzv.png)
Title: Re: SimplePortal
Post by: CyanGaming on August 12, 2018, 03:37:40 PM
Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'smf.a.id_attach' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
File: /var/www/html/Sources/PortalBlocks.php
Line: 483
Title: Re: SimplePortal
Post by: Chen Zhen on August 13, 2018, 09:58:20 PM

If all you did was edit a language file then it should not change any behavior of source files.
If you started messing with the database query to display other info then this likely caused your error.
Recent versions of mysql & mariadb turn some strict modes on by default.

If you're going to play with db settings then I suggest you do 1 or both of the following:

Here are some references:
https://forums.cpanel.net/threads/trying-to-disable-mysql-strict-mode.177432/
https://mysqlserverteam.com/mysql-5-7-only_full_group_by-improved-recognizing-functional-dependencies-enabled-by-default/

The group by clause can include multiple db columns but order is important for your query to output the intended target data.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 17, 2018, 10:08:32 PM
Can SP 2.3.7 be used with responsive themes?  Installed in Mobile-Desktop, theme is no longer responsive.  Works fine with TP 1.5.1.
Title: Re: SimplePortal
Post by: Mick. on September 17, 2018, 10:23:57 PM
Quote from: Sir Osis of Liver on September 17, 2018, 10:08:32 PM
Can SP 2.3.7 be used with responsive themes?  Installed in Mobile-Desktop, theme is no longer responsive.  Works fine with TP 1.5.1.

the curve responsive mod drops the side block under when on mobile. See the css file at the very end. I don't know about the center blocks being responsive tho but I would think since its set 100%
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 17, 2018, 10:31:13 PM
Haven't tried it in Curve, this forum is working with Mobile-Desktop.  SP seems to completely override responsive css.
Title: Re: SimplePortal
Post by: Mick. on September 17, 2018, 10:33:03 PM
Is that a theme? Lol make sure it has responsive.css in its css  folder
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 17, 2018, 10:40:58 PM
http://custom.simplemachines.org/themes/index.php?action=search;basic_search=mobile-desktop

Works well in mobile view, but coding is a bit unconventional.  Works fine until SP is installed, then there's no responsive at all, uninstall and it's good again.  I think she'll go with TP if she settles on this theme.
Title: Re: SimplePortal
Post by: SychO on September 18, 2018, 04:40:51 AM
SP isn't a good idea with responsive themes, unless the theme in question has support for SP and forces it to be responsive.
Title: Re: SimplePortal
Post by: Mick. on September 18, 2018, 05:58:49 AM
I made SP responsive in my site about 5 years ago and I do remember now SP was overiding the default theme. I did fixed it then but in my devsite (fresh install) https://idesignsmf.com/demo/index.php I've made no changes to SP css file but use the responsive.css mod on default theme and geek theme and SP is responsive. Unless my main site is overiding my devsite making me think is responsive. Ive been fooled before.  :o
Title: Re: SimplePortal
Post by: SychO on September 18, 2018, 06:15:56 AM
Quote from: Mick. on September 18, 2018, 05:58:49 AM
I made SP responsive in my site about 5 years ago and I do remember now SP was overiding the default theme. I did fixed it then but in my devsite (fresh install) https://idesignsmf.com/demo/index.php I've made no changes to SP css file but use the responsive.css mod on default theme and geek theme and SP is responsive. Unless my main site is overiding my devsite making me think is responsive. Ive been fooled before.  :o

It looks like Responsive Curve supports SP
Title: Re: SimplePortal
Post by: Mick. on September 18, 2018, 06:17:55 AM
I went back and compared the portal.css files and I commented out this entry to make sp responsive work in my site. body is being used in index.css already without a width. Still needs responsive.css in the theme tho.

/*body
{
   min-width: 750px;
}*/

All blocks use percentage instead of PX, so this should work for you.
Title: Re: SimplePortal
Post by: Mick. on September 18, 2018, 06:19:17 AM
Quote from: SychO on September 18, 2018, 06:15:56 AM
Quote from: Mick. on September 18, 2018, 05:58:49 AM
I made SP responsive in my site about 5 years ago and I do remember now SP was overiding the default theme. I did fixed it then but in my devsite (fresh install) https://idesignsmf.com/demo/index.php I've made no changes to SP css file but use the responsive.css mod on default theme and geek theme and SP is responsive. Unless my main site is overiding my devsite making me think is responsive. Ive been fooled before.  :o

It looks like Responsive Curve supports SP
Yes, that's why I include responsive.css in my themes.
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on September 18, 2018, 09:50:34 AM
https://simpleportal.net/index.php?topic=13934.0
Title: Re: SimplePortal
Post by: WantSome on December 09, 2018, 03:26:12 PM
Hello!

I've noticed this error on my error log which I believe is related to this mod...

Quoteforum/index.php?action=forum
8: Undefined variable: scripturl
File: /home/wnsecmxs/public_html/forum/Sources/BoardIndex.php
Line: 44

This is the section it is referring to...

Quote
42:      // Set a canonical URL for this page.
43:      if (!empty($modSettings['sp_portal_mode']) && $modSettings['sp_portal_mode'] == 1)
==>44:         $context['canonical_url'] = $scripturl . '?action=forum';
45:      else
46:         $context['canonical_url'] = $scripturl;

I understand this is code that the simple portal modification adds, but from the package parse information it's not critical.

Should I just remove / undo this code?  Or can you please advise if there is a better solution?

Thanks!
Title: Re: SimplePortal
Post by: Chen Zhen on December 12, 2018, 08:19:44 PM

The edits are needed.
$scripturl is a global that should be located at the onset of that SMF function by default.
Although Simple Portal added the lines you posted, $scripturl should have been declared prior to using it.
Ensure that it is included in the list of globals at the beginning of the BoardIndex() function.
Title: Re: SimplePortal
Post by: overdue on January 09, 2019, 01:31:45 PM
Will this be updated for 2.0.15?
Title: Re: SimplePortal
Post by: Shambles on January 09, 2019, 01:32:40 PM
Quote from: overdue
Will this be updated for 2.0.15?

SP works fine on 2.0.15
Title: Re: SimplePortal
Post by: -Rock Lee- on January 09, 2019, 02:19:26 PM
Quote from: overdue on January 09, 2019, 01:31:45 PM
Will this be updated for 2.0.15?

Maybe reading this will help you: How can I install a mod that doesn't work in my SMF version? (https://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)


Regards!
Title: Re: SimplePortal
Post by: overdue on January 09, 2019, 02:32:50 PM
Quote from: Rock Lee on January 09, 2019, 02:19:26 PM
Quote from: overdue on January 09, 2019, 01:31:45 PM
Will this be updated for 2.0.15?

Maybe reading this will help you: How can I install a mod that doesn't work in my SMF version? (https://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)


Regards!
Awesome, thanks! I'll check this out.
Title: Re: SimplePortal
Post by: overdue on January 09, 2019, 03:55:16 PM
Even though I used the emulator for 2.0.14. I'm getting a test fail on the sources sub.

13.    Execute Modification    ./Sources/Subs.php    Test failed
9.    Replace    ./Sources/Subs.php    Test failed
Title: Re: SimplePortal
Post by: Shambles on January 09, 2019, 04:12:52 PM
It's all there in the link provided, but to save you some time...

https://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: SimplePortal
Post by: Aaron10 on February 04, 2019, 12:49:08 PM
How can I override the date/time format for the shoutbox? I'd like to simply have it display as [04/02/2019, 2:15pm], instead of Today/Yesterday etc. (I know this is a SMF setting but I'd like to not have it like this in the shoutbox).
Title: Re: SimplePortal
Post by: Seyit replikacep.com on February 05, 2019, 10:55:32 AM
Simpleportal  smf 2.1 When to remove compatible mode ?
Title: Re: SimplePortal
Post by: SD-X on February 07, 2019, 01:41:31 AM
Quote from: Replikacep on February 05, 2019, 10:55:32 AM
Simpleportal  smf 2.1 When to remove compatible mode ?
When they finish a version that works for SMF 2.1, which likely won't be officially completed until after SMF 2.1 itself is fully released.
Title: Re: SimplePortal
Post by: Seyit replikacep.com on February 07, 2019, 02:40:13 AM
Quote from: SugarD-x on February 07, 2019, 01:41:31 AM
Quote from: Replikacep on February 05, 2019, 10:55:32 AM
Simpleportal  smf 2.1 When to remove compatible mode ?
When they finish a version that works for SMF 2.1, which likely won't be officially completed until after SMF 2.1 itself is fully released.
smf 2.1 has been released, we are already waiting for this mode
Title: Re: SimplePortal
Post by: Arantor on February 07, 2019, 02:43:48 AM
RC1 was released, not "final".
Title: Re: SimplePortal
Post by: Seyit replikacep.com on February 07, 2019, 06:49:55 AM
Quote from: Arantor on February 07, 2019, 02:43:48 AM
RC1 was released, not "final".

at least in beta. published should
We waited for the SMF. Now just wait for a portal. can't be like that
Title: Re: SimplePortal
Post by: Arantor on February 07, 2019, 07:14:13 AM
RC is really just another label for "better beta". And yes, you can wait for people to have the free time to update things, no one owes you anything.
Title: Re: SimplePortal
Post by: RML on February 07, 2019, 08:06:43 AM
You can use EhPortal, it's the same as Simple Portal only for SMF 2.1, it works with RC1, I use it on my forum and it works fine.
Title: Re: SimplePortal
Post by: lurkalot on February 07, 2019, 08:53:25 AM
Quote from: RML on February 07, 2019, 08:06:43 AM
You can use EhPortal, it's the same as Simple Portal only for SMF 2.1, it works with RC1, I use it on my forum and it works fine.

Or TinyPortal works on both 2.0.15 and 2.1 RC1

Install on 2.1 is hooks only, no file edits.
Title: Re: SimplePortal
Post by: SD-X on February 07, 2019, 12:57:13 PM
Quote from: Replikacep on February 07, 2019, 02:40:13 AM
Quote from: SugarD-x on February 07, 2019, 01:41:31 AM
Quote from: Replikacep on February 05, 2019, 10:55:32 AM
Simpleportal  smf 2.1 When to remove compatible mode ?
When they finish a version that works for SMF 2.1, which likely won't be officially completed until after SMF 2.1 itself is fully released.
smf 2.1 has been released, we are already waiting for this mode
SMF 2.1 was not released. SMF 2.1 RC1 was released. RC stands for Release Candidate. It is not a final version, and its code can change. Those code changes can affect SimplePortal too.
Title: Re: SimplePortal
Post by: Seyit replikacep.com on February 08, 2019, 03:04:04 AM
Quote from: SugarD-x on February 07, 2019, 12:57:13 PM
Quote from: Replikacep on February 07, 2019, 02:40:13 AM
Quote from: SugarD-x on February 07, 2019, 01:41:31 AM
Quote from: Replikacep on February 05, 2019, 10:55:32 AM
Simpleportal  smf 2.1 When to remove compatible mode ?
When they finish a version that works for SMF 2.1, which likely won't be officially completed until after SMF 2.1 itself is fully released.
smf 2.1 has been released, we are already waiting for this mode
SMF 2.1 was not released. SMF 2.1 RC1 was released. RC stands for Release Candidate. It is not a final version, and its code can change. Those code changes can affect SimplePortal too.

no need anymore.
I've been using eh portal organized mobile compatible. I have edited and used ......   O:)  8) :laugh:

link : https://www.replikacep.com
Title: Re: SimplePortal
Post by: GigaWatt on February 24, 2019, 08:36:52 PM
Is there a way to make the search button appear on the right instead of the middle?

(https://i.postimg.cc/J7D8JJMk/SHOT8715.png)
Title: Re: SimplePortal
Post by: Bob Perry of Web Presence Consulting on February 24, 2019, 09:28:02 PM
Quote from: GigaWatt on February 24, 2019, 08:36:52 PM
Is there a way to make the search button appear on the right instead of the middle?

(https://i.postimg.cc/J7D8JJMk/SHOT8715.png)

Since you are using SP, absolutely... it would require you to set it up in a side panel block, if it is already in say one of the two upper middle ones, just move it to the right side panel area, if you are talking about the built in search function, you still set up a search block in the side panel and disable the built in one I think?
Title: Re: SimplePortal
Post by: GigaWatt on February 26, 2019, 09:04:55 PM
Yeah, but it's a center block. Sure, a centered Search button would actually look good on one of the right or left blocks, but not on a center block :-\.

And I've set the one in the example pic as a Header block.

Could you explain in more detail? I don't think I'm getting this :-\. It's the first time I'm actually setting up a portal of any kind :P :D.
Title: Re: SimplePortal
Post by: Chen Zhen on February 26, 2019, 09:55:30 PM

Add css attributes to the custom body style of the block.

ie.

width: 25em;float: right;
Title: Re: SimplePortal
Post by: GigaWatt on February 28, 2019, 10:14:11 PM
Thanks for the help, but that just shrinks the search field and aligns it to the right. The search button is still centered and under the search field, but relative to the search field, not the whole block.

I could post a pic if you'd like, make things easier to understand ;).
Title: Re: SimplePortal
Post by: Chen Zhen on March 01, 2019, 11:56:15 PM

Do you want it on the right but still underneath the textbox or beside the textbox?
Title: Re: SimplePortal
Post by: Chen Zhen on March 02, 2019, 12:32:14 AM

Your previous post seems to indicate that you want the search button beside the text box.
Sinan used a line break in the XHTML code instead of just css, therefore you will need to edit that code for the block.




file: ../Sources/PortalBlocks.php

find:

echo '
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<div class="sp_center">
<input type="text" name="search" value="" class="sp_search" /><br />
<input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
<input type="hidden" name="advanced" value="0" />
</div>
</form>';


replace:

echo '
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<div class="sp_center">
<input type="text" name="search" value="" class="sp_search" />
<input style="display: inline;" type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
<input type="hidden" name="advanced" value="0" />
</div>
</form>';





file: ../Themes/default/css/portal.css

find:

input.sp_search
{
width: 95%;
}


replace with:

input.sp_search
{
width: 85%;
}
Title: Re: SimplePortal
Post by: GigaWatt on March 22, 2019, 11:57:27 PM
Quote from: Chen Zhen on March 01, 2019, 11:56:15 PM
Do you want it on the right but still underneath the textbox or beside the textbox?

Sorry for the late reply :-\.

And no... on the right but next to the search box, not underneath it (like on a regular Google seach box ;)).

EDIT: Damn... just noticed that Google moved the search button to the center beneath the search box... I guess this was done a while ago, but I just noticed it :P :D.

Quote from: Chen Zhen on March 02, 2019, 12:32:14 AM
Your previous post seems to indicate that you want the search button beside the text box.

Yes, that is what I was aiming for ;).

(https://i.postimg.cc/ZKb4yX54/SHOT7006.png)
Title: Re: SimplePortal
Post by: 4everBlue on March 23, 2019, 07:44:57 PM
Hi, in the simple portal admin main page.

What does this mean - "Article view template active:" ?
Title: Re: SimplePortal
Post by: monbade on April 24, 2019, 10:53:05 PM
I was told to post this here. Hoping someone can help. My domain provider did an upgrade on my forum and when it was finished my simple portal was gone. I re-downloaded it to my forum, installed it and now am getting this error. Let me explain that my site was set up by a friend for me as i know little of programing and just enough to mess it up but i am learning. Unfortunately the person who did set it up has vanished off the net. I installed the simple portal (still waiting on my activation code from them for their site) and when i load the front page of my site thats what comes up so i removed it and tried two more times and the same error.
This is the error i get. Can anyone help me fix it.

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 ') AND ( payment_date <= -3600 )
AND (payment_status = 'Completed' OR paymen' at line 3
File: /home/newfe3/public_html/forum/Sources/DonationBlock.php
Line: 171

BTW i looked for the manual and have no idea where to find it

Monbade
Title: Re: SimplePortal
Post by: Chen Zhen on April 24, 2019, 10:59:26 PM
Quote
File: /home/newfe3/public_html/forum/Sources/DonationBlock.php

That file is not related to Simple Portal.
Title: Re: SimplePortal
Post by: Chen Zhen on April 24, 2019, 11:17:02 PM

@monbade:

After doing a little digging, I believe the Treasury modification contains a file with that name.
ref. https://custom.simplemachines.org/mods/index.php?mod=916

Try posting in that mod's thread for support.
Unfortunately it looks a bit dated.
Title: Re: SimplePortal
Post by: astralmonkey on May 04, 2019, 04:51:24 PM
How do I have a library for articles and ebooks on simpleportal?
I can't seem to figure this out. The articles that comes with simpleportal isn't what I am looking for because it pulls from the forum.
Title: Re: SimplePortal
Post by: Oldiesmann on May 07, 2019, 08:38:18 PM
SimplePortal doesn't really have a true articles system. For something like that you may want to try TinyPortal, or, if you don't want a portal, the SMF Articles mod.
Title: Re: SimplePortal
Post by: Seyit replikacep.com on May 08, 2019, 05:23:19 PM
Quote from: Oldiesmann on May 07, 2019, 08:38:18 PM
SimplePortal doesn't really have a true articles system. For something like that you may want to try TinyPortal, or, if you don't want a portal, the SMF Articles mod.
Simpleportal  When will the update for version 2.1
other portals updated  this was not updated.
Title: Re: SimplePortal
Post by: Oldiesmann on May 08, 2019, 10:42:57 PM
Quote from: Replikacep on May 08, 2019, 05:23:19 PM
Quote from: Oldiesmann on May 07, 2019, 08:38:18 PM
SimplePortal doesn't really have a true articles system. For something like that you may want to try TinyPortal, or, if you don't want a portal, the SMF Articles mod.
Simpleportal  When will the update for version 2.1
other portals updated  this was not updated.

https://web-develop.ca/index.php?action=downloads;area=stable_eh_portal;file=2 ;)
Title: Re: SimplePortal
Post by: Sir Osis of Liver on July 23, 2019, 07:13:57 PM
Having a problem with SP blocking access to forum with most urls. 

http://rustybowtie.com/index.php?action=forum - works
http://www.rustybowtie.com, www.rustybowtie.com, http://rustybowtie.com, rustybowtie.com - sometimes work, mostly don't.

All urls work when SP is uninstalled or disabled.  Running in 2.0.15, upgraded from SP 2.3.5 -> 2.3.7, same.
Title: Re: SimplePortal
Post by: Sverige on July 24, 2019, 12:12:11 PM
hello   :)

just installed this and everything seems to work but, where did my forum go?

also how do i remove the welcome message?
Title: Re: SimplePortal
Post by: Chen Zhen on July 24, 2019, 08:47:46 PM

@Sir Osis of Liver :

Check your portal mode settings. Perhaps you have it set to standalone mode in error?




@Sverige :
It sets itself to front page mode by default.
You are viewing the home page which is strictly blocks.
Go into the SP admin to edit blocks and change your settings to how you want things to behave.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on July 24, 2019, 11:07:27 PM
No, checked that last night, it was set for front page, standalone url is blank.  I've enabled SP for front page, try the above links.  We're on GoDaddy linux box, php 5.6.40, don't see anything wonky in cpanel.


Title: Re: SimplePortal
Post by: Chen Zhen on July 24, 2019, 11:58:15 PM

At the moment what comes to mind is a block causing some sort of loop.
I would start with disabling blocks one at a time and testing the home portal page each time.
This will allow you to figure out which block is causing the PHP loop.
More than likely it is a custom PHP block.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on July 25, 2019, 12:15:48 AM
Can't get to the front page at all now, but don't think all the active blocks are being displayed.  Should be abe to get to admin, will disable all blocks and reactivate one at a time.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on July 25, 2019, 12:23:29 AM
Here's the bad block.

This is the link - http://www.superchevy.com/rss/articles/features
Title: Re: SimplePortal
Post by: Chen Zhen on July 25, 2019, 11:37:27 PM

You can limit the rss feed to 10 items for now until I have time to look at Sinan's subroutine.
It shouldn't be allowing any feed to jam it up like that.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on July 25, 2019, 11:47:36 PM
It's a bad link, the feed appears to be down, browser sees a file download.  Forum owner is looking for another feed to replace it, meanwhile the block's deactivated and all urls to the forum work.
Title: Re: SimplePortal
Post by: Ilkharnos on July 29, 2019, 07:44:10 AM
Hello,

I need a small modification for the "Recent Posts" blocks I use in my portal page. When a topic is new (unread), instead of creating a "new.gif" icon, I need to give a certain color to the link itself. But I don't know how to do that. I would be grateful if you can help me.

if ($display == 'compact')
{
foreach ($items as $key => $item)
echo '
<a href="', $item['href'], '">', $item['subject'], '</a> <span class="smalltext">', ' ', $item['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new" rel="nofollow"><img src="' . $settings['lang_images_url'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>', '</span><br />', empty($item['is_last']) ? '<hr />' : '';
}


Thank you in advance.
Title: Re: SimplePortal
Post by: Antechinus on July 29, 2019, 05:34:49 PM
Easiest way is to give the new ones a class. That way you can style them in your CSS without changing markup every time you want a different look. This should do the trick:

if ($display == 'compact')
{
foreach ($items as $key => $item)
echo '
<a href="', $item['href'], '" ', $item['new'] ? '' :'class="some_useful_class_name_that_wont_confuse_people"','>', $item['subject'], '</a>
<br />',
empty($item['is_last']) ? '<hr />' : '';
}
Title: Re: SimplePortal
Post by: Ilkharnos on July 30, 2019, 06:07:43 AM
Yes, this worked for me well.

When I tried to add color to this new class through portal.css, I realised that the color style for standard forum links (in index.css) overrides the new color I am trying to add. So I wasn't able to change the font color. However, I was able to use other font styles (such as shadow) which didn't create any conflict. So, I solved the problem by adding a blue shadow for unread links. This seems enough for what I am trying to do.

You have been the most helpful. Thank you.
Title: Re: SimplePortal
Post by: Antechinus on July 30, 2019, 06:49:39 PM
Should be able to change the colour, or anything else, if you use the right CSS. What code were you trying to use? 
Title: Re: SimplePortal
Post by: Ilkharnos on July 31, 2019, 03:46:02 AM
I entered "unreadcolor" as a classname in your code. Then I added the following into portal.css

.unreadcolor
{
color: #hexcode;
}


I tried different hex codes for the color.

Other styles such as font-weight or text-shadow are working well. But color tag didn't work. The color remains the same as specified in index.css for all forum links.
Title: Re: SimplePortal
Post by: Antechinus on July 31, 2019, 05:12:43 AM
Aha. Yep, CSS specificity. The default index.css uses this:

/* Normal, standard links. */
a:link, a:visited
{
color: #346;
text-decoration: none;
}


If you declare your class as links it should work.

a.unreadcolor:link, a.unreadcolor:visited {
color: #hexcode_of_your_choice;
}
a.unreadcolor:hover {
color:#different_on_hover_if_you_want_that
}


Give that a whirl and see what happens. :)
Title: Re: SimplePortal
Post by: Ilkharnos on July 31, 2019, 06:01:45 AM
Yes. Now it works perfectly  :D

I am really grateful. Thank you very much!
Title: Re: SimplePortal
Post by: AKlion on August 24, 2019, 05:46:20 PM
After installing my portal on the main page, I need to make the forum remain on the main page, how can I do this?

When I posted the portal, two links appeared on the menu / FORUM / FORUM /. How can I make it / PORTAL / FORUM /?
Title: Re: SimplePortal
Post by: OCJ on August 31, 2019, 12:08:53 PM
Sad to see that simpleportal.net is now only archive status so no login, no posts, no replies. This is now the only place left to comment.
It was, and still is, a great portal for SMF. Maybe it is supported on another fork of SMF.
:(
Title: Re: SimplePortal
Post by: Arantor on August 31, 2019, 12:10:53 PM
Someone forked it for 2.1 under the name EhPortal.
Title: Re: SimplePortal
Post by: Bigguy on August 31, 2019, 12:45:25 PM
You might be able to find Eh Portal here:

https://web-develop.ca/index.php?action=forum
Title: Re: SimplePortal
Post by: Dwev on September 07, 2019, 07:28:25 AM
I'm trying to show an image in an SimplePortal block, it seems that the Custom HTML option would be the right one to use for this.

But whatever I enter in that block, I just get to see the code, no image.
I've searched on the whole SMF forum and in this thread specifically, but so far haven't found an answer.

Can anybody point me to the answer how I can show an image in a SimplePortal Block?

Maybe with some example code?

SMF and SimplePortal are both up-to-date (SMF is version 2.0.15, SimplePortal is version 2.3.7).

Thanks in advance.
Title: Re: SimplePortal
Post by: Arantor on September 07, 2019, 10:14:12 AM
What code were you trying to use?
Title: Re: SimplePortal
Post by: Dwev on September 09, 2019, 01:49:54 AM
Tried different approaches, even the most basic one:

<!DOCTYPE html>
<html>
<body>

<img src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley face" width="42" height="42">

</body>
</html>


Tried the same without the "DOCTYPE html", with html forum-tags, etc.
No dice in any way...[/code]
Title: Re: SimplePortal
Post by: lurkalot on September 09, 2019, 02:22:44 AM
Just this, should be enough to display a image in a custom html block.

<img src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley face" width="42" height="42">
Title: Re: SimplePortal
Post by: Chen Zhen on September 09, 2019, 07:48:22 PM

A HTML block only needs what you intend to put in the body of the document.

Imo use inline styling or perhaps a cascading style sheet (via class) instead of using the width/height properties directly.
em's are more device friendly if you're looking for a responsive layout.


<img src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley face" style="height: 2.625em;width: 2.625em;">
Title: Re: SimplePortal
Post by: Dwev on September 11, 2019, 02:55:17 AM
Tried both variations (from urkalot and Chen Zhen) and this time I simply don't see anything.

The block is visible, but the image isn't.

Could it be that the CSS on the site is overriding something?
Title: Re: SimplePortal
Post by: lurkalot on September 11, 2019, 03:00:09 AM
Quote from: Dwev on September 11, 2019, 02:55:17 AM
Tried both (form urkalot and Chen Zhen) and this time I simply don't see anything.

The block is visible, but the image isn't.

Could it be that the CSS on the site is overriding something?

This might be a stupid question, and please disregard if it is,  but you have switched the block on?  I'm assuming you have to with this portal.
Title: Re: SimplePortal
Post by: Arantor on September 11, 2019, 04:05:05 AM
Quote from: Dwev on September 11, 2019, 02:55:17 AM
Tried both variations (from urkalot and Chen Zhen) and this time I simply don't see anything.

The block is visible, but the image isn't.

Could it be that the CSS on the site is overriding something?

Is your site HTTPS and the image link to HTTP? If so that won't work (the image proxy doesn't naturally attach to portal blocks)
Title: Re: SimplePortal
Post by: @rjen on September 11, 2019, 06:21:58 AM
If you provide the link to the actual site that may help understanding the issue.
Title: Re: SimplePortal
Post by: sirfpsycho on September 20, 2019, 09:43:09 AM
Hi, using simple portal. I added Top Posters. But it counts all the topic and post both. I want to show only Topic posters count and its username. But currently it is counting replies in topic too.

Also in Topic posters, I want  my custom icon instead of avatar. Like 1st topic posters has cup icon. 2nd has another icon like this screenshot. Which mod can be used for it?
Title: Re: SimplePortal
Post by: Dwev on September 21, 2019, 07:05:29 AM
Sorry for the late reply, I was abroad and internet over there wasn't very good.

The site is https, and so is https://www.w3schools.com/tags/smiley.gif
And yes, the block is turned on (the block is visible, the content isn't).

And it can be seen here: (link removed).
(bottom right on the front page, the name of the block is "Test")

If I use an inspector on that block I see that the code there is correct:
<img src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley face" style="height: 2.625em;width: 2.625em;">

I tried it also with an image on the server off the site, still no dice.

Edit: link removed as requested by OP.
Title: Re: SimplePortal
Post by: Arantor on September 21, 2019, 07:15:40 AM
The sp-right column has a class of lastpost, and the default theme is set to hide images in .lastpost img, so it's hidden.
Title: Re: SimplePortal
Post by: sirfpsycho on September 21, 2019, 07:33:30 AM
Any help for me?  : :-\
Title: Re: SimplePortal
Post by: Dwev on September 21, 2019, 08:54:11 AM
Quote from: Arantor on September 21, 2019, 07:15:40 AM
The sp-right column has a class of lastpost, and the default theme is set to hide images in .lastpost img, so it's hidden.

Thanks, thought that I was going crazy.
(by the way, I just made the block invisible again, so no point in looking there anymore)

@ Arantor (or anyone else): I suppose that it's this bit in index.css?


.topic_table td.lastpost
{
background-image: none;
}


@ sirfpsycho: sorry, don't the answer to your question, otherwise I would give it right away.
Title: Re: SimplePortal
Post by: Arantor on September 21, 2019, 09:03:27 AM
No, it's the bit that says .lastpost img and contains 'visibility: none'.
Title: Re: SimplePortal
Post by: sirfpsycho on September 22, 2019, 10:56:43 PM
any help for me?  :(
Title: Re: SimplePortal
Post by: sirfpsycho on September 23, 2019, 01:11:48 AM
I have two more issue.

2) Right Block, In Recent Posts/Topics, It shows like:

New post by Cole

But if any user reply in new post it shows the replier name at the last but it should show the topic starter name. How to fix?

3) In Top Poster section, Avatar is not showing. Uploaded avatar is showing fine but avatar added via url is not showing.
It goes like this:
sitename.com/avatars/avatar-url.gif

that is why it is not showing. how to fix it?
Title: Re: SimplePortal
Post by: sirfpsycho on September 26, 2019, 05:26:50 AM
Help me please. 🙄
Title: Re: SimplePortal
Post by: Chen Zhen on September 26, 2019, 04:40:02 PM

For some of what you requested, you may find something useful in the plugins & blocks section of the Simple Portal archive.
ref.
https://simpleportal.net/index.php?board=55.0

Try "Advanced Unread Posts" which includes a php file that you can edit for specifics if needed.
This way you won't need to tamper directly with the SP source code or templates.
Title: Re: SimplePortal
Post by: sirfpsycho on September 26, 2019, 11:09:30 PM
Quote from: Chen Zhen on September 26, 2019, 04:40:02 PM

For some of what you requested, you may find something useful in the plugins & blocks section of the Simple Portal archive.
ref.
https://simpleportal.net/index.php?board=55.0

Try "Advanced Unread Posts" which includes a php file that you can edit for specifics if needed.
This way you won't need to tamper directly with the SP source code or templates.

I installed Advanced Unread Posts, but it still shows the commenters name at the end. But is must show topic author name.
Title: Re: SimplePortal
Post by: sirfpsycho on September 26, 2019, 11:10:11 PM
Quote from: sirfpsycho on September 20, 2019, 09:43:09 AM
Hi, using simple portal. I added Top Posters. But it counts all the topic and post both. I want to show only Topic posters count and its username. But currently it is counting replies in topic too.

Also in Topic posters, I want  my custom icon instead of avatar. Like 1st topic posters has cup icon. 2nd has another icon like this screenshot. Which mod can be used for it?

@Chen Zhen, what about this post?
Title: Re: SimplePortal
Post by: KBExit on September 28, 2019, 02:12:20 PM
I'm looking to see if I can add a block to a board and not have it show up in the topic?

I looked at the "Custom Display Options: " and haven't been able to accomplish this.
The value I entered is "-~action|post, -~action|topic, -~action|display" but I'm not accomplishing this result.
Title: Re: SimplePortal
Post by: KBExit on September 28, 2019, 04:33:28 PM
Quote from: KBExit on September 28, 2019, 02:12:20 PM
I'm looking to see if I can add a block to a board and not have it show up in the topic?

I looked at the "Custom Display Options: " and haven't been able to accomplish this.
The value I entered is "-~action|post, -~action|topic, -~action|display" but I'm not accomplishing this result.

Looks like I cannot edit my post...
Anyways I fixed it!
-~action|post,-~action|post2,-~topic
Worked!
Title: Re: SimplePortal
Post by: sirfpsycho on September 28, 2019, 09:51:44 PM
any help for me please  O:)
Title: Re: SimplePortal
Post by: KBExit on September 28, 2019, 10:07:49 PM
Quote from: sirfpsycho on September 23, 2019, 01:11:48 AM
I have two more issue.

2) Right Block, In Recent Posts/Topics, It shows like:

New post by Cole

But if any user reply in new post it shows the replier name at the last but it should show the topic starter name. How to fix?

3) In Top Poster section, Avatar is not showing. Uploaded avatar is showing fine but avatar added via url is not showing.
It goes like this:
sitename.com/avatars/avatar-url.gif

that is why it is not showing. how to fix it?

On the topic for the recent posts / topics block...
By any chance, are you already using the board news block? If not, I can probably help you modify the board news block since it retains the "original author" for each post instead of who replied last.

Edit:
Actually, have you taken a look into the PortalBlocks.php in the sources directory? You can modify each block that's standard in SimplePortal there to your liking if you understand PHP decently.
Title: Re: SimplePortal
Post by: sirfpsycho on September 28, 2019, 10:12:50 PM
I just added Forum News but it is not showing any recent topics. I think it will show only news. I want to show topics from boards.

Addition for your lines,
I am not able to write php codes as I don't know php very well. If anyone can help me I can pay for it too. I want to solve my 1 and 2 questions. If we solve 1 and 2 questions then 3rd question is not necessary.
Title: Re: SimplePortal
Post by: KBExit on September 28, 2019, 10:14:44 PM
Quote from: sirfpsycho on September 28, 2019, 10:12:50 PM
I just added Forum News but it is not showing any recent topics. I think it will show only news. I want to show topics from boards.

If you add a new block and select "board news" it will show each topic.

And have you taken a look at https://simpleportal.net/index.php?topic=14420.0
Title: Re: SimplePortal
Post by: sc2142 on October 01, 2019, 12:52:06 PM
Does anyone have a block for smfpacks Download System? I need it to display a screenshot also.
Title: Re: SimplePortal
Post by: sirfpsycho on October 02, 2019, 10:28:29 PM
Quote from: KBExit on September 28, 2019, 10:14:44 PM
Quote from: sirfpsycho on September 28, 2019, 10:12:50 PM
I just added Forum News but it is not showing any recent topics. I think it will show only news. I want to show topics from boards.

If you add a new block and select "board news" it will show each topic.

And have you taken a look at https://simpleportal.net/index.php?topic=14420.0

still no solution for me. :(
Title: Re: SimplePortal
Post by: epicmember on October 03, 2019, 08:06:04 AM
Hello,

I was trying to use Simple Portal to add a block that shows a specific forum stat. The default options that are available are for the general forum statistics and some other features which Im not using.

Im using the Say Thanks Mod and it is showing in statistics. Is there any way that I can add a custom block that would show this specific forum stat? I would very much like to show our members who the top 10 thanked members are.

I know there are custom blocks in Simple Portal, I just dont know how to set one up for the specific stat.

Title: Re: SimplePortal
Post by: epicmember on October 10, 2019, 12:05:20 PM
Quote from: epicmember on October 03, 2019, 08:06:04 AM
Hello,

I was trying to use Simple Portal to add a block that shows a specific forum stat. The default options that are available are for the general forum statistics and some other features which Im not using.

Im using the Say Thanks Mod and it is showing in statistics. Is there any way that I can add a custom block that would show this specific forum stat? I would very much like to show our members who the top 10 thanked members are.

I know there are custom blocks in Simple Portal, I just dont know how to set one up for the specific stat.

Any ideas?
Title: Re: SimplePortal
Post by: sirfpsycho on October 10, 2019, 12:27:59 PM
no is there to help. Seems dead topic.
Title: Re: SimplePortal
Post by: Arantor on October 10, 2019, 01:31:14 PM
Or it could be that you have very specialist desires and there's a lack of people that have the time and patience to build something just for you and that won't benefit anyone else.
Title: Re: SimplePortal
Post by: sirfpsycho on October 10, 2019, 01:36:34 PM
I already told I will pay for it but no one is there to help.
Title: Re: SimplePortal
Post by: Arantor on October 10, 2019, 01:40:45 PM
I wonder how much you think a job like this costs. But it's not all about the money, you're still waiting for someone with the time and energy to come along, and honestly, I'd be surprised if you were willing to pay my standard consulting rate ($150 US/hr, and I haven't even looked at what you actually want done, which probably puts it into a couple of hours minimum)

Hopefully someone nicer than me will come along, but I wouldn't bet on it. Custom work for people, for what people usually want to pay, honestly sucks to do.
Title: Re: SimplePortal
Post by: sirfpsycho on October 13, 2019, 08:36:52 AM
Oh great. My 3rd issue was related to basic profile picture. Hope it also charges.
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on October 18, 2019, 10:18:08 PM
Quote from: epicmember on October 10, 2019, 12:05:20 PM
Quote from: epicmember on October 03, 2019, 08:06:04 AM
Hello,

I was trying to use Simple Portal to add a block that shows a specific forum stat. The default options that are available are for the general forum statistics and some other features which Im not using.

Im using the Say Thanks Mod and it is showing in statistics. Is there any way that I can add a custom block that would show this specific forum stat? I would very much like to show our members who the top 10 thanked members are.

I know there are custom blocks in Simple Portal, I just dont know how to set one up for the specific stat.

Any ideas?
If it shows in the stats page it's kind of a matter of copy/paste the code from wherever those statistics are (don't know how the mod works so it could be in its own file or in the stats file itself).
Quote from: sirfpsycho on October 10, 2019, 12:27:59 PM
no is there to help. Seems dead topic.
It's not, but even for the board news you've been told what to do and you said "no solution" when I'm 100% sure that works. That alone probably nukes quite a lot of willingness to help you sir.
Arantor was a bit blunt but he explained the gist of it I would say.

Haven't tried to look into the code right now, it's 4am and I'm going to sleep, but just wanted to let you know the above.
~SP Support
Title: Re: SimplePortal
Post by: sirfpsycho on October 18, 2019, 10:27:10 PM
I tried to add news block but it does not show anything.
Title: Re: SimplePortal
Post by: Diego Andrés on October 19, 2019, 12:31:52 PM
Quote from: sirfpsycho on October 18, 2019, 10:27:10 PM
I tried to add news block but it does not show anything.

News block is for displaying forum news not topics from certain board.
If you don't have news set in Admin -> Main -> News then it won't show anything.

If you wanted to show topics, the block you're looking is either Recent Posts/Topics (make sure to select topics when creating it) or the Articles block.
Title: Re: SimplePortal
Post by: sirfpsycho on October 19, 2019, 12:43:21 PM
So, how there is no solution for my three questions?
Title: Re: SimplePortal
Post by: Diego Andrés on October 19, 2019, 12:45:16 PM
Literally just answered one of your questions.
Your welcome.
Title: Re: SimplePortal
Post by: sirfpsycho on October 19, 2019, 12:46:19 PM
I already asked 3 questions. and I did not see the perfect answer.
Title: Re: SimplePortal
Post by: aegersz on November 26, 2019, 06:14:34 PM
2.3.6 Shoutbox used to display youtube videos but no longer ?

what do you think has changed ?
Title: Re: SimplePortal
Post by: Chen Zhen on November 26, 2019, 07:42:50 PM

How are you posting youtube videos in the shoutbox?
Are you using bbcode or a mod that auto changes the link to show the video?
Which mod?
Title: Re: SimplePortal
Post by: aegersz on November 26, 2019, 07:48:18 PM
i have the Simple Audio & Video Embedder mod on and it just works if you post a youtube link in a post but once upon a time, the Shoutbox also managed to do it (without tags).

I have tried Dougie's youtube BBCode and that just also gets ignored. When i say ignored, i mean the command just disappears.

It's no big deal but i was just curious as why it worked years ago and doesn't now.

if i try to use the youtube embed code with the html BBCode then the URL gets messed up.

it may not even be a SP problem (?) but if i just paste the link into the Shoutbox command line it simply gets ignored; is that normal ?

The only way it works is via the url that comes up as [link] but that's not ideal.
Title: Re: SimplePortal
Post by: aegersz on November 26, 2019, 08:34:13 PM
ignore that - it now works if i add some text prior.

all good now
Title: Re: SimplePortal
Post by: sirfpsycho on December 20, 2019, 01:07:58 AM
Hi, how can I enable mobile Emoji in shoutbox? utf8 is enabled and working in forum comment. but in shoutbox it is not working.
Title: Re: SimplePortal
Post by: sirfpsycho on December 22, 2019, 01:25:28 AM
Hi, I have installed Extra permission mod for shoutbox. Now If user shout, it doesn't show immediately. it comes after 5 minutes of shout. Why?
Also automatic refresh is set in my shoutbox but it does not show new shout automatically after 5 minutes, If I reload page by pressing F5 or Clicking on logo then new shout shows. Refresh button in shout also does not work.

Additionally, I have disabled Cache option in shoutbox but still same issue.
Title: Re: SimplePortal
Post by: Chen Zhen on December 24, 2019, 10:15:42 PM

Try enabling the cache for the shoutbox and set the refresh to 10 seconds.

Those type of emojis are 4 byte characters.
You need a filter to convert them to 3 byte equivalents.
Install the attachment and let me know if the emojis work using that patch.
Title: Re: SimplePortal
Post by: sirfpsycho on December 25, 2019, 12:26:52 AM
I installed extra option mod for shoutbox and set refresh 10 seconds. Also enabled cache. But still I can not see latest shout without pressing Ctrl+F5 or by clicking on logo. Shout does not show automatically. Also not showing if I click on refresh button in shoutbox. After reloading page shout shows. If I delete shout then it also does not remove. If I reload page then shout is not showing in shoutbox. It means in realtime shout is not updating. If I reload page it shows the latest updated shout.

Additionally for Emoji in shoutbox, I installed given attachment, but still Mobile Emoji are not showing in shoutbox.
Title: Re: SimplePortal
Post by: Chen Zhen on December 28, 2019, 11:37:19 PM
Uninstall & delete version 1.0 of that plugin then install version 1.1 which is attached to this post.

I tested the Emojis and they work fine with this version.
If refresh still does not work and you are absolutely sure you have the setting adjusted properly in your shout admin then something else is causing a js conflict.
If this is the case, do you know how to troubleshoot js issues using your browser console?
Title: Re: SimplePortal
Post by: sirfpsycho on December 29, 2019, 01:07:12 AM
installed 1.1 but Still mobile Emoji is not working.

No, I don't know how to troubleshoot js. Please guide me.
Title: Re: SimplePortal
Post by: Chen Zhen on December 29, 2019, 02:13:16 AM

You have to clear your browser history due to changes within the javascript file.
Title: Re: SimplePortal
Post by: sirfpsycho on December 29, 2019, 03:53:56 AM
Quote from: Chen Zhen on December 29, 2019, 02:13:16 AM

You have to clear your browser history due to changes within the javascript file.

Yes after clearing cookies from cloudflare now mobile Emoji is working. But Extra option of shoutbox is not working properly.
Title: Re: SimplePortal
Post by: sirfpsycho on December 29, 2019, 05:56:18 AM
I found another bug in shout box. After Apostrophe words are not showing.
For example If I write text:

Mobile's text is not showing


Then only word (Mobile) is showing. After Apostrophe texts are not showing.

Symbol & is also not showing.

Edit: From PC these two symbol is working but from mobile these symbols are not working.
Title: Re: SimplePortal
Post by: Chen Zhen on December 29, 2019, 05:33:25 PM
Try the attachment.
This time I tested all the chars that appeared available on my phone & they work fine.

Remember to clear the browser history on all devices prior to testing.
Title: Re: SimplePortal
Post by: sirfpsycho on December 30, 2019, 01:56:16 AM
Thank you chen. Now it is working fine.
Can you please fix shoutbox extra mod?
Title: Re: SimplePortal
Post by: Sir Osis of Liver on December 31, 2019, 12:10:53 AM
Trying to get google ads working in portal.  Set up bottom and right side html blocks using google code that worked in ad management mod, but blocks are blank, only test text is displayed.

Title: Re: SimplePortal
Post by: fishoaus on January 02, 2020, 07:19:35 AM
Quote from: Arantor on October 10, 2019, 01:40:45 PM


Hopefully someone nicer than me will come along, but I wouldn't bet on it. Custom work for people, for what people usually want to pay, honestly sucks to do.

your still funny as Arantor, love ur posts same as it was at DzinerStudio back in the day, might need u to fix my stuff & theme from them to suit the latest upgrades ;-)
Title: Re: SimplePortal
Post by: lworang on February 06, 2020, 07:57:33 AM
Hello on my forum sometimes the shout on the shoutbox are not visible, I have to write more than one time sometimes few times. I started to have this issues recently. The shoutbox is a block at the end of the page, no changes or new mod installed recently.
No errors on the registry
Version Smf 2.0.17
Version Simple portal. 2.3.6
Any idea of what is going on please?
Title: Re: SimplePortal
Post by: SilverKnight on February 07, 2020, 05:46:03 AM
Simple portal did a great job, i have used this mod for many years. If anyone is interested, the split forum mod supports this ( Allows multiple forums inside one forum )
Title: Re: SimplePortal
Post by: Stirius on February 13, 2020, 04:13:54 PM
Hello, I'm searching and searching and am not able to find a solution for it. We moved to a new server and everything is working fine. We upgraded to 2.0.17 from 2.0.15. Still, everything seemed fine. However, we are not able to use in the shoutbox Czech chars like ýžářířčšž. Some of the chars completely blocks the shoutbox and nothing appears. Some of the chars end up like "%u011B%u0161%u010D"

I tried to install sp-extra-shoutbox, nothing. Changed language from UTF-8 to ISO-8859-2, nothing. To English, nothing.

Where to fix this please?

Thank you!
Title: Re: SimplePortal
Post by: Stirius on February 13, 2020, 05:19:29 PM
I have a feeling that the problem is with the language. There is just cs and not cs-CZ, see attached. Where to fix it?
Title: Re: SimplePortal
Post by: Chen Zhen on February 14, 2020, 08:50:20 PM
At the moment I do not seem to be able to duplicate your issue.
When I test it locally and live those characters work fine in the shoutbox.

Also when I just checked your website, the shoutbox appears to be working fine with accented characters such as those.
Title: Re: SimplePortal
Post by: Stirius on February 17, 2020, 09:06:28 AM
Quote from: Chen Zhen on February 14, 2020, 08:50:20 PM
At the moment I do not seem to be able to duplicate your issue.
When I test it locally and live those characters work fine in the shoutbox.

Also when I just checked your website, the shoutbox appears to be working fine with accented characters such as those.

Hi, you can see at www.boiians.cz the characters from the history. Before the update and migration. But right now it is still not working. Just try to write there "čážřčýářžč" and nothing happens. I have no idea how to get to the source of this issue. We searched the shoutbox php codes, error logs and everything and nothing is appearing as the core issue...?

Ok, I tried another shoutbox plugin and that one is also not working ( https://custom.simplemachines.org/mods/index.php?mod=1295 ). So this must be something in the settings. Do you have any ideas where the language, UTF etc. can get messy to be able to fix it? Because the forum works fine, even in Czech. Just the plugins don't...

Edit: this "ě" is visible as "%u011B" for example.

Thank you.
Title: Re: SimplePortal
Post by: dodos26 on February 19, 2020, 09:13:34 AM
Hey I use smf utf8 and see this bug in shoutbox:
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=227599.0;attach=267883;image)
Title: Re: SimplePortal
Post by: Stirius on February 19, 2020, 11:01:31 AM
Ok, so I am not the only one. I tried to check the database. If I change the text directly in the database, where utf-8 is correctly set up, everything shows fine. But as we can see, using different letters right now is not correctly inserted into the database. Something is blocking it. Some letters are completely denied and nothing is shown, some letters are changed to those symbols...
Title: Re: SimplePortal
Post by: Chen Zhen on February 19, 2020, 09:19:10 PM
I was able to duplicate the issue & fix it.
It involves database collation & charset changes.
I will give you some instruction, please follow what I say precisely.


It should work after that.
You also have the option of using "Convert VARCHAR and TEXT to UTF8" if you want to convert things already in the database.
Although this process may take a long time for large databases.


Title: Re: SimplePortal
Post by: dodos26 on February 20, 2020, 03:13:43 AM
I try but I see error:
Hacking attempt...
Title: Re: SimplePortal
Post by: Stirius on February 20, 2020, 05:38:41 AM
No, it doesn't work. We have our database in utf-8-czech-ci. Using the package with utf-general-ci or whatever does nothing. Converting VARCHAR to UTF-8 only completely changes czech chars to wrong ones. So this procedure is not working...

The problem is not with the database, that is correct. But most probably the connection and correctly added entries from the shoutbox. Just this one is making issues, forum is absolutely fine.
Title: Re: SimplePortal
Post by: dodos26 on February 20, 2020, 06:16:35 AM
The problem is that shoubox encodes characters by itself with any function, but when we use utf8 it doesn't decode it. The problem is in the code.
I don't remember what function it was but I found an entry somewhere in Google that it was coded by a function.
Title: Re: SimplePortal
Post by: Stirius on February 20, 2020, 07:11:51 AM
Well, it was working earlier with lower version of smf and lower version of the simple portal. So the problem is there, in the update and a wrong code in one of them.
Title: Re: SimplePortal
Post by: dodos26 on February 21, 2020, 11:07:21 AM
have any ideas?
Title: Re: SimplePortal
Post by: Stirius on February 21, 2020, 11:35:37 AM
I am not a programmer so I hope that the creator here will come up with the solution, update, fix...
Title: Re: SimplePortal
Post by: Chen Zhen on February 22, 2020, 12:27:36 PM
Are the two of you able to make a file edit for testing?

Please use a proper file editor such as Notepad++ or something else that is designed for unix file editing.
Do not use Microsoft Notepad because it will change line ending characters and mess up any files you edit.

Notepad++ can be downloaded here: https://notepad-plus-plus.org/downloads/

Now edit this file: ../Themes/default/scripts/portal.js

find:

shout_body = escape(document.getElementById('new_shout_' + shoutbox_id).value.replace(/&#/g, "&#").php_to8bit()).replace(/\+/g, "%2B");


replace with:

shout_body = encodeURIComponent(document.getElementById('new_shout_' + shoutbox_id).value.replace(/&#/g, "&#").php_to8bit()).replace(/\+/g, "%2B");


 
After the edit & prior to testing please ensure that you delete your browser history.
This will make the browser reload the javascript file for the new edit to work.

Please let me know if this works for you.
Thanks.
Title: Re: SimplePortal
Post by: Stirius on February 22, 2020, 05:57:33 PM
Hurray, seems to be working. I had to also delete cache on Cloudflare but right now it looks good. Thanks.
Title: Re: SimplePortal
Post by: dodos26 on February 23, 2020, 06:11:42 AM
For me also work thanks! And I just wanted the escape function in the post above! I was looking for it but in php files instead of js file :DD
Title: Re: SimplePortal
Post by: davidhs on March 26, 2020, 09:07:25 AM
Quote from: maglix04 on December 24, 2017, 03:50:19 PM
Quote from: davidhs on December 24, 2017, 01:03:25 PM
Quote from: maglix04 on December 22, 2017, 01:21:19 PM
Quote from: davidhs on December 05, 2017, 07:21:31 AM
[...]

I did these changes in PortalBlocks.php (of SimplePortal 2.3.7) for SMF 2.0.14/2.0.15:

Code (search) Select

global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;

Code (replace) Select

global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;


[...]
I noticed that after making this change, the "board news" function of simpleportal has a bug, it creates duplicates the topics connected to the board in the home. Solutions?
I suppose this function is sp_boardNews. Write here code of this function, perhaps you have an error.
I have reset the portalblocks.php file without the changes you indicated, and the problem is solved so I think there is some problem with your modification. Thanks  you and merry christmas :)
About this, my code was "correct" but I had a mistake in sp_boardNews function: I wrote two time same code and this shown topics duplicated. :-[




These are the changes in PortalBlocks.php (of SimplePortal 2.3.7) for SMF 2.0.16/2.0.17:

Code (Search) Select

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (Replace by) Select

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (Search) Select

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);

Code (Replace by) Select

$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);


Code (Search) Select

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (Replace by) Select

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (Search) Select

$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (Replace by) Select

$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (Search) Select

$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (Replace by) Select

$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (Search) Select

$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (Replace by) Select

$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);


Code (Search) Select

$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);

Code (Replace by) Select

$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
Title: Re: SimplePortal
Post by: ShanesTA on March 29, 2020, 08:53:34 PM
Hi Team,

I'm having some problems with SimplePortal after upgrading SMF to 2.0.17 and upgrading to PHP 7.

My site now just shows:


An Error Has Occurred!
syntax error, unexpected 'new' (T_NEW)

I have enabled PHP logging on my host and thw following is the only information I have:

#0 /Sources/PortalBlocks.php(3593): eval()
#1 /Sources/Load.php(2266) : eval()'d code(234): sp_php(Array, '17')
#2 /Sources/Load.php(2266) : eval()'d code(148): template_block_curve(Array)
#3 /Sources/Load.php(2266) : eval()'d code(99): template_block(Array)
#4 /Sources/Load.php(1978): template_portal_below()
#5 /Sources/Subs.php(3565): loadSubTemplate('portal_below', true)
#6 /Sources/Subs.php(2918): template_footer()
#7 /Sources/Errors.php(334): obExit(NULL, true, false, true)
#8 /Sources/Errors.php(162): setup_fatal_error_context('syntax error, u...')
#9 /inde in /Sources/PortalBlocks.php(3593) : eval()'d code on line 10

I'm not sure if this is of any help?

Thank you
Shane
Title: Re: SimplePortal
Post by: vbgamer45 on March 29, 2020, 10:49:12 PM
Are you on the newest version of Simple Portal?
Title: Re: SimplePortal
Post by: Chen Zhen on March 29, 2020, 10:53:20 PM
I suspect you may have a PHP block with deprecated or corrupt code.

Navigate directly to your admin URL and disable all PHP type blocks.
If your site works afterward then you can enable PHP blocks one by one until you find which one is causing the error.

Let me know if this resolves the problem.
Title: Re: SimplePortal
Post by: ShanesTA on March 30, 2020, 07:49:40 PM
Thank you for the advice.

Unfortunately even going directly to the admin url is not possible as the same error appears. My web host allows me to switch between php versions so I was temporarily able to switch back to php 5.6.

I was then able to access the admin area and disable all the blocks. Unfortunately as soon as I switched back to php 7 the error occurred again.

Do you have any more ideas?

Thank you
Title: Re: SimplePortal
Post by: ShanesTA on March 30, 2020, 07:57:00 PM
Thank you for your time. Unfortunately I have found the problem; it was the Gallery 2 Integration plugin :(

Thanks again
Shane
Title: Re: SimplePortal
Post by: Chen Zhen on March 31, 2020, 05:19:18 PM
Glad you found the problem.

Is that the pro version of vbgamer45's mod?
If so, I suggest you ask him on his site to update that mod.
Title: Re: SimplePortal
Post by: Oldiesmann on April 18, 2020, 06:08:42 PM
No, it's something I developed years ago to integrate the old Gallery 2 script with SMF. I stopped developing it because Gallery 2 was no longer in development and they also stopped development on Gallery 3 in mid-2014 (though someone else picked up development on that again back in November).

Unfortunately your only real option is to move on to something else as it would be way too much work to get Gallery2 to work with PHP 7 (too much work for one person anyway)
Title: Re: SimplePortal
Post by: ShanesTA on April 20, 2020, 01:58:25 AM
Hey Michael,

Your plugin has been working very well for many years now so thank you for that. Unfortunately as you said its time to be retired.

My gallery at this point is for archival purposes as the gallery images are inserted into SMF forum posts so it's important to keep the gallery operational (readable).

I have now successfully upgraded to Gallery3 which seems to be working with php7.4? I am also planning on upgrading to 3.1.2 via the revival project (https://galleryrevival.com/)

Thanks
Shane
Title: Re: SimplePortal
Post by: vbgamer45 on April 20, 2020, 01:01:50 PM
Heads up SMF 2.0.x is still iffy on PHP 7.4 there are a few things that need to be updated.
Title: Re: SimplePortal
Post by: davidhs on May 29, 2020, 01:05:12 PM
I search here and in old web https://simpleportal.net/ and I did not find solution for my question.

I need show one block only in some boards on my forum (they are around six boards and all their subboards, around 15-20 for each).

I use Advanced Options under Display Options in the block editor.




1. Show boards like a tree

I can select boards where show my block, but list of boards is order by alphabetic descending. I need show this list with board and subbords.

For example, I expect this
[ ] e Board 1
    [ ] i Board 1.1
    [ ] a Board 1.2
    [ ] f Board 1.3
[ ] b Board 2
[ ] g Board 3
    [ ] h Board 3.1
    [ ] d Board 3.2
[ ] c Board 4


but I see this
[ ] i Board 1.1
[ ] h Board 3.1
[ ] g Board 3
[ ] f Board 1.3
[ ] e Board 1
[ ] d Board 3.2
[ ] c Board 4
[ ] b Board 2
[ ] a Board 1.2


If I want select boards "e", "b" and subboards ("i", "a", "f"), it is very difficult because of I have not four boards with three subboards, I have many boards and subboards.

Is there any form for ordering like a tree? Now or in next update of Simple Portal.

About this question I found this:
https://simpleportal.net/index.php?topic=14036.msg69689#msg69689
but I think it is not solved.




2. Indicate subboards in "Custom Display Options"

By other hand I have many subboards and I can not select all subboards of one or two board. I can but it is many work, of course!

I saw field Custom Display Options https://simpleportal.net/index.php?action=docs;area=custom_blocks_display

With this I can indicate some boards with sintax
~board|1.0,~board|2.0,~board|3.0,~board|4.0
But I have many boards.

Is there any form for indicate subboards? Now or in next update of Simple Portal. (For example:
~subboard|1.0,~subboard|2.0
can indicate boards 1.0, 2.0 and all subboards).
Title: Re: SimplePortal
Post by: Sir Osis of Liver on May 29, 2020, 09:35:49 PM
One of my guys is running SimplePortal 2.3.7 in 2.0.17.  Hasn't changed anything but left blocks are now displaying as top blocks.  Host may have changed something (they've done it before).

Forum version: SMF 2.0.17 (more detailed)
Current SMF version: SMF 2.0.17
GD version: bundled (2.1.0 compatible)
Database Server: MySQL
MySQL version: 5.7.30-log
Memcached: ???
PHP: 7.1.33
Server version: Apache


Errors -



http://playersprogramu.com/index.php?http://playersprogramu.com/
2: mysqli_free_result() expects parameter 1 to be mysqli_result, null given
File: /home/playersp/public_html/Sources/PortalBlocks.php
Line: 534

http://playersprogramu.com/index.php?http://playersprogramu.com/
2: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
File: /home/playersp/public_html/Sources/PortalBlocks.php
Line: 504

http://playersprogramu.com/index.php?http://playersprogramu.com/
Database Error: Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'playersp_smf58.a.id_attach' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
File: /home/playersp/public_html/Sources/PortalBlocks.php
Line: 483

http://playersprogramu.com/index.php?http://playersprogramu.com/
2: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given
File: /home/playersp/public_html/Sources/DonationBlock.php
Line: 173

http://playersprogramu.com/index.php?http://playersprogramu.com/
Database Error: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'playersp_smf58.smfn7_treas_donations.user_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
File: /home/playersp/public_html/Sources/DonationBlock.php
Line: 171


Title: Re: SimplePortal
Post by: davidhs on May 30, 2020, 07:44:05 AM
Quote from: davidhs on May 29, 2020, 01:05:12 PM
I search here and in old web https://simpleportal.net/ and I did not find solution for my question. [...]
1. Show boards like a tree [...]
2. Indicate subboards in "Custom Display Options" [...]
Another question...

3. Set different width of columns at left/right in portal and forum/board

There are fields for set width of columns at left/right. These are used in blocks of portal and blocks of forum/board.

Can you add fields for set width of columns only in forum/board? I want use one width in portal and other width in board.
Title: Re: SimplePortal
Post by: Deaks on May 30, 2020, 08:31:11 AM
Quote from: davidhs on May 30, 2020, 07:44:05 AM
Quote from: davidhs on May 29, 2020, 01:05:12 PM
I search here and in old web https://simpleportal.net/ and I did not find solution for my question. [...]
1. Show boards like a tree [...]
2. Indicate subboards in "Custom Display Options" [...]
Another question...

3. Set different width of columns at left/right in portal and forum/board

There are fields for set width of columns at left/right. These are used in blocks of portal and blocks of forum/board.

Can you add fields for set width of columns only in forum/board? I want use one width in portal and other width in board.

This is not possible by default and would require sizeable changes made to the source code for it to be done correctly.
Title: Re: SimplePortal
Post by: Deaks on May 30, 2020, 09:12:07 AM
Quote from: davidhs on May 29, 2020, 01:05:12 PM
2. Indicate subboards in "Custom Display Options"

By other hand I have many subboards and I can not select all subboards of one or two board. I can but it is many work, of course!

I saw field Custom Display Options https://simpleportal.net/index.php?action=docs;area=custom_blocks_display

With this I can indicate some boards with sintax
~board|1.0,~board|2.0,~board|3.0,~board|4.0
But I have many boards.

Is there any form for indicate subboards? Now or in next update of Simple Portal. (For example:
~subboard|1.0,~subboard|2.0
can indicate boards 1.0, 2.0 and all subboards).

Their is no quick way to do it, child board are still classes as a  board just inside another one.  As for next update I would suggest holding your breathe, the project is in essence dead.
Title: Re: SimplePortal
Post by: davidhs on May 30, 2020, 05:30:46 PM
About...

Quote from: davidhs on May 29, 2020, 01:05:12 PM
1. Show boards like a tree
I did. Really it is not complex. 8) I write changes here, can be useful for anybody. I use SimplePortal 2.3.7.

Quote from: PortalAdminBlocks.php
Code (Search) Select
$request = $smcFunc['db_query']('','
SELECT id_board, name
FROM {db_prefix}boards
ORDER BY name DESC'
);
$context['display_boards'] = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$context['display_boards']['b' . $row['id_board']] = $row['name'];
$smcFunc['db_free_result']($request);

Code (Replace by) Select
$request = $smcFunc['db_query']('','
SELECT id_board, child_level, name
FROM {db_prefix}boards
ORDER BY board_order ASC'
);
$context['display_boards'] = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$context['display_boards']['b' . $row['id_board']] = array($row['child_level'], $row['name']);
$smcFunc['db_free_result']($request);

Quote from: PortalAdminBlocks.template.php
Code (Search) Select
foreach ($context['display_' . $type] as $index => $action)
{
echo '
<li><input type="checkbox" name="display_', $type, '[]" id="', $type, $index, '" value="', $index, '"', in_array($index, $context['SPortal']['block']['display']) ? ' checked="checked"' : '', ' class="input_check" /> <label for="', $type, $index, '">', $action, '</label></li>';
}

echo '
<li><input type="checkbox" onclick="invertAll(this, this.form, \'display_', $type, '[]\');" class="input_check" /> <em>', $txt['check_all'], '</em></li>
</ul>
<br />';

Code (Replace by) Select
foreach ($context['display_' . $type] as $index => $action)
{
if ('boards' == $type)
echo '
<li style="width: 100%; padding-left: ', $action[0], 'em;"><input type="checkbox" name="display_', $type, '[]" id="', $type, $index, '" value="', $index, '"', in_array($index, $context['SPortal']['block']['display']) ? ' checked="checked"' : '', ' class="input_check" /> <label for="', $type, $index, '">', $action[1], '</label></li>';
else
echo '
<li><input type="checkbox" name="display_', $type, '[]" id="', $type, $index, '" value="', $index, '"', in_array($index, $context['SPortal']['block']['display']) ? ' checked="checked"' : '', ' class="input_check" /> <label for="', $type, $index, '">', $action, '</label></li>';
}

echo '
<li', 'boards' == $type ? ' style="width: 100%;"' : '', '><input type="checkbox" onclick="invertAll(this, this.form, \'display_', $type, '[]\');" class="input_check" /> <em>', $txt['check_all'], '</em></li>
</ul>
<br />';




Quote from: Deaks on May 30, 2020, 09:12:07 AM
Quote from: davidhs on May 29, 2020, 01:05:12 PM
2. Indicate subboards in "Custom Display Options"
Their is no quick way to do it, child board are still classes as a  board just inside another one.
Yes, I saw. :( I tried add variable "subboard" in field Custom Display Option, but it is not possible.
In order to do this is necesary add a row "add_child" in database, and it is complex.




Quote from: Deaks on May 30, 2020, 08:31:11 AM
Quote from: davidhs on May 30, 2020, 07:44:05 AM
3. Set different width of columns at left/right in portal and forum/board
This is not possible by default and would require sizeable changes made to the source code for it to be done correctly.
Yes. :(

I add a code in order to do this (it is a quickly way, but it is not correct, I know!)
Quote from: Portal.template.php
Code (Search) Select
echo '
<td id="sp_right"', !empty($modSettings['rightwidth']) ? ' width="' . $modSettings['rightwidth'] . '"' : '', $context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : '', '>';

Code (Replace by) Select
echo '
<td id="sp_right"', !empty($modSettings['rightwidth']) ? ' width="' . (!empty($context['current_board']) ? 110 : $modSettings['rightwidth']) . '"' : '', $context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : '', '>';
(if we are in board, width=110, else width=$modSettings['rightwidth'])
Title: Re: SimplePortal
Post by: Chen Zhen on May 30, 2020, 11:05:02 PM

ref. for point #3:  https://stackoverflow.com/questions/23921117/disable-only-full-group-by

Title: Re: SimplePortal
Post by: Sir Osis of Liver on May 31, 2020, 10:50:54 PM
Thanks, Chen.  It was ONLY_FULL_GROUP_BY, I had found that on stackoverflow but did not have permission to change sql mode (shared server).  Told my guy to ask host support to remove it, they did, but for reasons unknown they denied that it was anything on their end.  Looks like they upgraded server to mysql 5.7 and borked the config.  Errors have stopped and blocks are displaying correctly.  Not the first time they broke his forum, and not the first time they bs'ed him.  Seems like some of these hosts are run by children.
Title: Re: SimplePortal
Post by: Chen Zhen on June 01, 2020, 02:32:21 PM

It's not that the host changed those settings but likely that the default settings for that MySQL version enables it.
I manage my own VPS, have to update these things and have had that setting automatically applied by default.

Here is a reference to MySQL 5.7 default values for sql_mode:
https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_sql_mode

Title: Re: SimplePortal
Post by: Sir Osis of Liver on June 01, 2020, 09:45:36 PM
Trying to get him to move.  Another table crashed last night, we're still getting 403s from mod_evasive, even though they told him they fixed it.  Busy forum on a crappy host. :P
Title: Re: SimplePortal
Post by: Xpresskonami on June 11, 2020, 03:56:46 AM
Hello, please is there any method or code to crawl the first image from topic post to simple portal block boardnews ???
Title: Re: SimplePortal
Post by: Xpresskonami on June 11, 2020, 04:34:58 AM
Quote from: Xpresskonami on June 11, 2020, 03:56:46 AM
Hello, please is there any method or code to crawl the first image from topic post to simple portal block boardnews ???

Check this image for preview

(https://i.imgur.com/qDUQ3Br.png)
Title: Re: SimplePortal
Post by: Chen Zhen on June 15, 2020, 11:25:51 AM

What does that image represent?
Are you able to have images from other posts show but just the initial post's image does not?
Title: Re: SimplePortal
Post by: 0ver12 on June 17, 2020, 09:17:55 PM
Hi. I'm having a issue with the right block (the only one I currently use).

The block is very close to the boards and  I don't know how can I set a margin to fix this.

I would like to set a 10 or 15px of distance from the block to the boards.

The image below show the issue.

Thanks!
Title: Re: SimplePortal
Post by: Chen Zhen on June 17, 2020, 10:38:32 PM

It looks like the columns are right against each other.
Perhaps it's due to a narrow theme container (tag) or you adjusted the block widths?

There is an actual style input at the bottom right of editing the block but that will only effect what is inside the block.
That option will only work if you opt no title & no body from the block settings.

If you want the default body & title then you can do one of 3 things to adjust the block settings.

Example of manually editing the template file:

find:

echo '
<td id="sp_right"', !empty($modSettings['rightwidth']) ? ' width="' . $modSettings['rightwidth'] . '"' : '', $context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : '', '>';


replace with something like this:

echo '
<td id="sp_right"', !empty($modSettings['rightwidth']) ? ' width="' . $modSettings['rightwidth'] . '"' : '', $context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : 'style="right: -2em;
position: relative;"', '>';


Title: Re: SimplePortal
Post by: 0ver12 on June 18, 2020, 06:44:18 AM
Quote from: Chen Zhen on June 17, 2020, 10:38:32 PM

It looks like the columns are right against each other.
Perhaps it's due to a narrow theme container (tag) or you adjusted the block widths?

There is an actual style input at the bottom right of editing the block but that will only effect what is inside the block.
That option will only work if you opt no title & no body from the block settings.

If you want the default body & title then you can do one of 3 things to adjust the block settings.

  • adjust the block width settings in: Admin ~ Simple Portal ~ Configuration ~ Block Settings ... Adjust width settings for left & right blocks (this is in px)
  • edit file: ../Themes/default/css/portal.css and add css to the .sp_right class (this requires clearing browser history to see changes)
  • manually edit file: ../Themes/default/Portal.template.php

Example of manually editing the template file:

find:

echo '
<td id="sp_right"', !empty($modSettings['rightwidth']) ? ' width="' . $modSettings['rightwidth'] . '"' : '', $context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : '', '>';


replace with something like this:

echo '
<td id="sp_right"', !empty($modSettings['rightwidth']) ? ' width="' . $modSettings['rightwidth'] . '"' : '', $context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : 'style="right: -2em;
position: relative;"', '>';


Thank you very much, my friend!

I tried the first two tips and it doesn't work, but the 3rd tip works perfectly!

Thanks again, see ya!
Title: Re: SimplePortal
Post by: Xpresskonami on June 19, 2020, 06:24:51 AM
Quote from: Chen Zhen on June 15, 2020, 11:25:51 AM

What does that image represent?
Are you able to have images from other posts show but just the initial post's image does not?

No am trying to grid the simple portal boardnews to be like this image post
Title: Re: SimplePortal
Post by: 0ver12 on June 19, 2020, 02:55:52 PM
I'm having another issue with the blocks...

I'm trying to use a Custom Body Class, so I added my CSS code to index.css and then filled the Custom Body Class with the name of the class, but the block don't change... How can I solve it?

Title: Re: SimplePortal
Post by: Chen Zhen on June 19, 2020, 04:32:03 PM

@Xpresskonami:
What you are actually after is a custom PHP block to display the desired effect.




@0ver12:
Try adding position: relative to your custom body css.
Title: Re: SimplePortal
Post by: 0ver12 on June 19, 2020, 06:12:09 PM
Quote from: Chen Zhen on June 19, 2020, 04:32:03 PM
@0ver12:
Try adding position: relative to your custom body css.

Didn't work

It continues to pull the predefined class established in Default Body Class.

this is my css code, included on index.css:


.right_block
{
   position: relative;
   padding: 0.5em 1em;
   font-size: 0.9em;
   line-height: 1.3em;
   border: 1px solid #bbb;
   background: #f0f6f0;
   margin: 0;
}


And an image of my block configuration, attached.
Title: Re: SimplePortal
Post by: Chen Zhen on June 19, 2020, 10:52:26 PM

Add you custom class to portal.css at the bottom of the file.
Also make sure you clear browser history prior to testing .css changes so the browser reloads the file else it will pull the data from its cache.

Title: Re: SimplePortal
Post by: Xpresskonami on June 20, 2020, 06:38:30 AM
Quote from: Chen Zhen on June 19, 2020, 04:32:03 PM

@Xpresskonami:
What you are actually after is a custom PHP block to display the desired effect.

yes i did that from 'Source/portalBlock.php' and this is the result i got, the topics are not grid in boardnews. This is the code and the <div> attached to it. instead of the topic to be in Grid, they not displaying as grid.

foreach ($return as $news)
{
echo '
<div class="sp_article_content">';

if (empty($style['no_title']))
{
echo '<div class="container">
                            <div class="row">
<div class="col-md-4"><div style="background-color: tomato;color: white;padding: 10px;">
<h1>
<a href="', $news['href'], '" >', $news['subject'], '</a>
</h1>
</div>';
}

if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="upperframe"><span></span></span>';
}

echo '
<div', empty($style['body']['class']) ? '' : ' class="' . $style['body']['class'] . '"', '>';

if (empty($style['no_body']))
{
echo '
<span class="topslice"><span></span></span>';
}

echo '
<div class="sp_content_padding"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', '>';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ',  $news['new_comment'], '</div>
</div>';

if (empty($style['no_body']))
{
echo '
<span class="botslice"><span></span></span>';
}

echo '
</div>';

if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="lowerframe"><span></span></span>';
}

echo '
</div></div></div></div>';
}


From the attachment... the second topic is under the first topic, but i want it to be at the right hand side/beside the first topic. just to make it look Grid
Title: Re: SimplePortal
Post by: Chen Zhen on June 20, 2020, 11:11:44 AM

edit this:

<div class="sp_article_content">


to this:
<div class="sp_article_content" style="display: inline-block;">

add this to the custom body style of the block:
overflow: auto;white-space: nowrap;width: 100%;

Without testing it I don't know if that will provide the desired effect.
You'll need to do some trial & error to get it the way you want.

The point is the child container needs inline styling so it can flow horizontally & the parent container (your block) needs to drop down to the next row when it reaches the end of its parent container (the center column in this case). 
If you google search the desired effect in short you will likely find some examples from stackoverflow and/or w3schools.
ie. "css evenly distribute divs horizontally"
Title: Re: SimplePortal
Post by: Xpresskonami on June 20, 2020, 04:38:56 PM
Quote from: Chen Zhen on June 20, 2020, 11:11:44 AM

edit this:

<div class="sp_article_content">


to this:
<div class="sp_article_content" style="display: inline-block;">

add this to the custom body style of the block:
overflow: auto;white-space: nowrap;width: 100%;

Without testing it I don't know if that will provide the desired effect.
You'll need to do some trial & error to get it the way you want.

The point is the child container needs inline styling so it can flow horizontally & the parent container (your block) needs to drop down to the next row when it reaches the end of its parent container (the center column in this case). 
If you google search the desired effect in short you will likely find some examples from stackoverflow and/or w3schools.
ie. "css evenly distribute divs horizontally"

Non of this work, but after i did lot of work on it. i got this result but the Pagination refuse to be clear out from the right side
Title: Re: SimplePortal
Post by: 0ver12 on June 20, 2020, 06:32:28 PM
Quote from: Chen Zhen on June 19, 2020, 10:52:26 PM

Add you custom class to portal.css at the bottom of the file.
Also make sure you clear browser history prior to testing .css changes so the browser reloads the file else it will pull the data from its cache.

Thanks man!
Title: Re: SimplePortal
Post by: Chen Zhen on June 21, 2020, 12:25:43 AM
@0ver12:
No problem.




@Xpresskonami:

The page indexing output is from the end of that function you are editing:

if (!empty($per_page))
echo '
<div class="sp_page_index">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';


If you didn't edit that part then the div should have dropped down below your previous content.
What you showed in your image may also be a result of broken HTML.
Perhaps you left a previous inline DIV open.
Title: Re: SimplePortal
Post by: Xpresskonami on June 21, 2020, 12:39:32 AM
Quote from: Chen Zhen on June 21, 2020, 12:25:43 AM
@0ver12:
No problem.




@Xpresskonami:

The page indexing output is from the end of that function you are editing:

if (!empty($per_page))
echo '
<div class="sp_page_index">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';


If you didn't edit that part then the div should have dropped down below your previous content.
What you showed in your image may also be a result of broken HTML.
Perhaps you left a previous inline DIV open.

I later fixed that. But the mobile view is not friendly, so I pend it for now... I may work on the mobile later in the day.

I want to set a block sticky. How can I do that.

I mean, I created a right bar HTML block. I want to set the block sticky, the block I'd is 13. How can I set the block I'd 13 sticky when scrolling down.
Title: Re: SimplePortal
Post by: Chen Zhen on June 21, 2020, 12:44:56 AM

What do you mean sticky?
You want it to show on top of everything else?

I'm not sure exactly what effect you're after but mess around with the position attribute.
ref.
https://www.w3schools.com/cssref/pr_class_position.asp
Title: Re: SimplePortal
Post by: Xpresskonami on June 21, 2020, 05:53:18 AM
Quote from: Chen Zhen on June 21, 2020, 12:44:56 AM

What do you mean sticky?
You want it to show on top of everything else?


I mean position: fixed from the w3school. How can I set the block to be position fixed??

Will I set it up in the HTML block id I create or at portal.css ?
Title: Re: SimplePortal
Post by: Xpresskonami on June 21, 2020, 07:59:26 AM
Quote from: Xpresskonami on June 21, 2020, 05:53:18 AM
Quote from: Chen Zhen on June 21, 2020, 12:44:56 AM

What do you mean sticky?
You want it to show on top of everything else?


I mean position: fixed from the w3school. How can I set the block to be position fixed??

Will I set it up in the HTML block id I create or at portal.css ?


i go through the w3school ref link.. i come up with this and set it under portal.css but its not working.

#sp_block15
    {
    top: 10px; width: 295px; position: fixed;
}
Title: Re: SimplePortal
Post by: Chen Zhen on June 21, 2020, 09:58:29 PM

You forgot the underscore...

#sp_block_15

Quote from: Chen ZhenAlso make sure you clear browser history prior to testing .css changes so the browser reloads the file else it will pull the data from its cache.
Title: Re: SimplePortal
Post by: Stirius on July 02, 2020, 10:16:12 AM
Hello,

I think the shoutbox was buggy and allowed to send spam emails, see here https://www.simplemachines.org/community/index.php?topic=573979.msg4062375#new

Well, I just installed SP-Shoutbox Options which "could??" help however after this mod is live, the shouts are not loaded and finished properly. When you send the shout, it gets stuck on

Uncaught TypeError: XMLDoc.getElementsByTagName is not a function
    at onShoutReceived (portal.js?237:27)
    at XMLHttpRequest.oSendDoc.onreadystatechange (script.js?fin20:23)
onShoutReceived   @   portal.js?237:27
oSendDoc.onreadystatechange   @   script.js?fin20:23
XMLHttpRequest.send (async)      
sendXMLDocument   @   script.js?fin20:25
sp_submit_shout   @   portal.js?237:19
onclick

When you refresh the page, the new text is there but not before you refresh the page.

How to fix it?

Thank you.
Title: Re: SimplePortal
Post by: Chen Zhen on July 05, 2020, 07:45:52 PM
The shoutbox uses Ajax (via javascript) to get the updated data it needs and then refreshes the shoutbox container (specific div).
It's going to do that every X number of seconds depending on the setting you made in SP admin.
If you are monitoring activity on your website then of course you are going to see it query that url frequently.
Imo it has nothing to do with your email problem.
Disable the shoutbox altogether for some time & see if the spam emails keep recurring.


I will look into the error reported from the plugin since I wrote it some time ago.
Just make sure you download it from my site & not the archived SP forum.

 
Title: Re: SimplePortal
Post by: Stirius on July 06, 2020, 05:11:38 PM
Quote from: Chen Zhen on July 05, 2020, 07:45:52 PM
The shoutbox uses Ajax (via javascript) to get the updated data it needs and then refreshes the shoutbox container (specific div).
It's going to do that every X number of seconds depending on the setting you made in SP admin.
If you are monitoring activity on your website then of course you are going to see it query that url frequently.
Imo it has nothing to do with your email problem.
Disable the shoutbox altogether for some time & see if the spam emails keep recurring.


I will look into the error reported from the plugin since I wrote it some time ago.
Just make sure you download it from my site & not the archived SP forum.



Hello,

yeah I know that it shoud update it regularly. However, I don't believe that there should be a request similar to this
?PHPSESSID=vcisne4cs7hhkdl2dt891vgh83&type=rss;action=.xml and around 200 times in a second. That IP is from Netherlands and is nowhere banned which is just strange. Just the hash behind = is changed every single request.

Regarding the ajax error, it is an issue only when using your mod, the single shoutbox works fine without yours.

Funny thing is that the shoutbox is hidden to everybody except some internal groups. So how the hell can still somebody tries to access it via URL?

Title: Re: SimplePortal
Post by: Arantor on July 06, 2020, 05:15:30 PM
That's not a request to the shoutbox; that's a request to your RSS feed, and if you're not on 2.0.17 it's possible you have the infamous bug that triggered it.

In fact if you are on 2.0.17 but upgraded from 2.0.16, double check all the edits got made.
Title: Re: SimplePortal
Post by: Stirius on July 06, 2020, 05:27:32 PM
Quote from: Arantor on July 06, 2020, 05:15:30 PM
That's not a request to the shoutbox; that's a request to your RSS feed, and if you're not on 2.0.17 it's possible you have the infamous bug that triggered it.

In fact if you are on 2.0.17 but upgraded from 2.0.16, double check all the edits got made.

Yeah, we upgraded from 2.0.16. Is there a way of checking or updating or reinstalling the last version? Or, some link with more info how to proceed? Btw. RSS is disabled, rights for all groups as well.

Also if you talk about this one https://www.simplemachines.org/community/index.php?topic=571025.0 then that is correct in our news.php I still have a feeling that most likely someone is trying to use the RSS and news feature to send the spams somehow. Using our smtp.

Thanks.
Title: Re: SimplePortal
Post by: Stirius on July 13, 2020, 06:47:17 AM
Quote from: Chen Zhen on July 05, 2020, 07:45:52 PM
The shoutbox uses Ajax (via javascript) to get the updated data it needs and then refreshes the shoutbox container (specific div).
It's going to do that every X number of seconds depending on the setting you made in SP admin.
If you are monitoring activity on your website then of course you are going to see it query that url frequently.
Imo it has nothing to do with your email problem.
Disable the shoutbox altogether for some time & see if the spam emails keep recurring.


I will look into the error reported from the plugin since I wrote it some time ago.
Just make sure you download it from my site & not the archived SP forum.



Hi, any news regarding the update?

Thank you.
Title: Re: SimplePortal
Post by: Chen Zhen on July 15, 2020, 03:12:41 AM

I found no issue with the SP extra shoutbox options plugin.
It is running on SMF 2.0.17 + SP 2.3.7 without any problems.

Please make sure to download the latest version here:
https://web-develop.ca/index.php?action=downloads;area=stable_simple_portal_plugins;file=25

Also note that improperly altering the reg. expression arguments in that plugin's settings can break the shoutbox.
If you altered those settings improperly and don't know how to fix it then there is a default option to revert it to its original state.





There is an edit to SP itself regarding the shoutbox for replacing deprecated javascript code that may or may not be relevant:
https://www.simplemachines.org/community/index.php?topic=227599.msg4047375#msg4047375



   
Title: Re: SimplePortal
Post by: Stirius on July 15, 2020, 06:09:36 AM
Quote from: Chen Zhen on July 15, 2020, 03:12:41 AM

I found no issue with the SP extra shoutbox options plugin.
It is running on SMF 2.0.17 + SP 2.3.7 without any problems.

Please make sure to download the latest version here:
https://web-develop.ca/index.php?action=downloads;area=stable_simple_portal_plugins;file=25

Also note that improperly altering the reg. expression arguments in that plugin's settings can break the shoutbox.
If you altered those settings improperly and don't know how to fix it then there is a default option to revert it to its original state.





There is an edit to SP itself regarding the shoutbox for replacing deprecated javascript code that may or may not be relevant:
https://www.simplemachines.org/community/index.php?topic=227599.msg4047375#msg4047375



We just tried to install it again into all possible templates and it seems to be working now. And, when your plugin was disabled, we got again abused and thousands of spams were sent. So I think the shoutbox can be easily hacked...
Title: Re: SimplePortal
Post by: Chen Zhen on July 15, 2020, 10:40:09 PM

It adds extra permissions & rules for each shoutbox so perhaps something you have set due to the plugin is stopping it.
Imo make it only visible for members which will stop any script from abusing it as a guest.
Title: Re: SimplePortal
Post by: grandseb59 on August 01, 2020, 10:52:54 AM
Hello,
I have just made another attempt to set up my forum before it goes into production, and I have 2 similar errors that appear in my error log that keep appearing as soon as I installed the "simple portal" mod.

Does this message tell you where my error is?

For info I'm in php 7.3
smf 2.0.17
with my original DB

Mod installed before sinple portal:

1.    SMF 2.0.X - PHP 7.2+ Compatibility    1.6    
2.    Stack Trace    1.0
3.    Dougiefresh's Reorganized Admin Area    1.3    
4.    Tidy Child Boards    2.0    
5.    Advanced Topic Prefix Mod    4.1.2    
6.    SimplePortal    2.3.7


2: Use of undefined constant Autres - assumed 'Autres' (this will throw an Error in a future version of PHP)

Fichier: /home/*******/public_html/Sources/PortalBlocks.php(3593) : eval()'d code
Ligne: 24
#0 /Sources/PortalBlocks.php(3593): eval()
#1 /Themes/default/Portal.template.php(234): sp_php(array, string)
#2 /Themes/default/Portal.template.php(148): template_block_curve(array)
#3 /Themes/default/Portal.template.php(56): template_block(array)
#4 /Sources/Load.php(2023): template_portal_above()
#5 /Sources/Subs.php(3454): loadSubTemplate(string, boolean)
#6 /Sources/Subs.php(2899): template_header()
#7 /index.php(185): obExit(NULL, boolean, boolean)
#8 {main}

Title: Re: SimplePortal
Post by: grandseb59 on August 01, 2020, 11:50:27 AM
If it helps, these errors are displayed 5 times each time I return to the home page.
Title: Re: SimplePortal
Post by: vbgamer45 on August 01, 2020, 11:54:35 AM
My guess would be coming from a php code you have entered into a SP portal block
Title: Re: SimplePortal
Post by: grandseb59 on August 01, 2020, 06:41:06 PM
That's it!  :)
But I went to see them many times...but without seeing them, and there they were, the rascals   ;D ...!
Thank you very much, Vbgamer.
Title: Re: SimplePortal
Post by: artvolt on August 11, 2020, 09:12:43 AM
"Simple Portal - not active button in the menu in stand-alone mode"

Hello. The portal "Simple Portal" is switched to standalone (autonomous) mode. The address is set - "/index.php?action=portal". When you enter the button Portal, the Forum button lights up in the menu as an active button. How to make the Portal button appear active when entering the portal page? Thank.

Forum address - https://art-cafe.info/index.php

Photo:

1) Portal button pressed

2) Committed entry into the Portal (Портал) page

3) Active (highlighted in orange) Forum (Форум) button - Why?

(http://images.vfl.ru/ii/1597148660/032cb7cf/31313463_m.jpg)

(SMF - 2.0.17, "Simple Portal" - 2.3.7)
Title: Re: SimplePortal
Post by: grandseb59 on August 18, 2020, 05:57:36 PM
Hello
I have a problem with the shoutbox integrated to the simple portal mods.
As soon as you put a letter with an accent in a sentence and validate it, nothing is displayed.
How to fix this bug?
Is it a panel setting or a modification in a script?
And if it is a modification in a script, what is the modification and in which file?
And if it's in the admin panel, what is the procedure?
thank you
Title: Re: SimplePortal
Post by: Chen Zhen on August 19, 2020, 10:01:48 PM
@grandseb59:
Try this plug-in which will fix the shoutbox input for Simple Portal 2.3.7:
https://web-develop.ca/index.php?action=downloads;area=stable_simple_portal_plugins;file=25
Title: Re: SimplePortal
Post by: Mark S on October 16, 2020, 02:20:06 AM
Just tried to login to the main site but the login screen says "login has been disabled"

What's up?
Title: Re: SimplePortal
Post by: Shambles on October 16, 2020, 03:35:24 AM
Quote from: Mark S on October 16, 2020, 02:20:06 AM
Just tried to login to the main site but the login screen says "login has been disabled"

What's up?

What's up?   Their login system has been disabled.

Quote from: SP.netThis is an Archive Forum.
Title: Re: SimplePortal
Post by: Mark S on October 16, 2020, 12:32:30 PM

I'll elaborate my on my question.

Trying to get assistance with a simple portal feature, but can't login on the SP site because the login is disabled.  Is this temporary? Should I ask for assistance here?

Thanks in advance
Title: Re: SimplePortal
Post by: Tonyvic on October 16, 2020, 01:46:13 PM
See the top of Simple Portal site: https://simpleportal.net/index.php (https://simpleportal.net/index.php) where it states
QuoteThis is an Archive Forum.
Title: Re: SimplePortal
Post by: Arantor on October 16, 2020, 02:00:58 PM
They had a partial server failure some time ago and that is all they have left. I suspect this means they are not taking it further going forward.

Questions can still be asked here though.
Title: Re: SimplePortal
Post by: Mark S on October 16, 2020, 02:38:52 PM
Wow, that's sad to hear.  The portal has been a huge plus on my site for years.

Thank you.
Title: Re: SimplePortal
Post by: Deaks on October 16, 2020, 02:42:23 PM
As arantor said you can still ask on this thread and people will try help
Title: Re: SimplePortal
Post by: Mark S on October 16, 2020, 11:56:44 PM
I made some changes to my registration method and member groups.  I added some post based groups but I still have some assigned member groups.  When I did this, the shoutbox simply says, "sorry, this shoutbox doesn't exist."  I looked in the SP admin and it's still there.  I tried deleting it.  It was still there, same message.  I tried deleting it an making a new one.  Same message.

I can't get it to work and I can't delete it.  It's gone in the shoutbox admin panel, but it's still physically on the forum with that message.

Any way to fix this?
Title: Re: SimplePortal
Post by: ysu on October 17, 2020, 12:56:03 AM
Guys, is the simplePortal dead?

If yes, can someone please update the opening post with the relevant info, eg remove the (dead) download link and replace it with a "no longer available" message?

Also the mod page could be updated to state this fact.
https://custom.simplemachines.org/mods/index.php?mod=1104

Oh, and can someone recommend an alternative?
Title: Re: SimplePortal
Post by: @rjen on October 17, 2020, 03:02:38 AM
As far as I kown it is not 'dead' as such, but the dedicated support site is no longer being maintained....

Be that as it may, there are alternatives available: check the mod section for 'Portals"

https://custom.simplemachines.org/mods/index.php?action=search;type=17
Title: Re: SimplePortal
Post by: Mark S on October 17, 2020, 09:40:11 AM
Quote from: @rjen on October 17, 2020, 03:02:38 AM
As far as I kown it is not 'dead' as such, but the dedicated support site is no longer being maintained....

Be that as it may, there are alternatives available: check the mod section for 'Portals"

https://custom.simplemachines.org/mods/index.php?action=search;type=17

Thank you for the chat alternative.

I suppose the only thing to do is either to wait to see if SP recovers or switch to tiny portal to ensure future SMF compatibility.
Title: Re: SimplePortal
Post by: Arantor on October 17, 2020, 09:49:32 AM
The fact that the only 2.1 compatible version of SP that exists is not an official SP "product" would not bode well given that 2.1 is now into year 9 of development.
Title: Re: SimplePortal
Post by: Mark S on October 17, 2020, 01:12:55 PM
I see. So, changing to Tiny Portal would be prudent?

Title: Re: SimplePortal
Post by: Xpresskonami on October 25, 2020, 08:00:55 PM
Any method of setting two columns on Simpleportal Boardnews like this
Title: Re: SimplePortal
Post by: Chen Zhen on October 25, 2020, 09:32:45 PM

Use notepad++ ( not ms notepad ) or another file editor that handles unix line endings properly.

file: ../Sources/PortalBlocks.php
only replace the one function I am including below inside that file.
function to replace: sp_boardNews()

function sp_boardNews($parameters, $id, $return_parameters = false)
{
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;

$width = '49%';

$block_parameters = array(
'board' => 'boards',
'limit' => 'int',
'start' => 'int',
'length' => 'int',
'avatar' => 'check',
'per_page' => 'int',
);

if ($return_parameters)
return $block_parameters;

$board = !empty($parameters['board']) ? explode('|', $parameters['board']) : null;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
$start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
$length = isset($parameters['length']) ? (int) $parameters['length'] : 250;
$avatars = !empty($parameters['avatar']);
$per_page = !empty($parameters['per_page']) ? (int) $parameters['per_page'] : 0;
$style = !empty($parameters['style']) ? $parameters['style'] : sportal_parse_style('explode', '', true);

$limit = max(0, $limit);
$start = max(0, $start);

loadLanguage('Stats');

$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

$request = $smcFunc['db_query']('', '
SELECT t.id_first_msg
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
WHERE {query_see_board}
AND ' . (empty($board) ? 't.id_first_msg >= {int:min_msg_id}' : 't.id_board IN ({array_int:current_board})') . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '') . '
AND (t.locked != {int:locked} OR m.icon != {string:icon})
ORDER BY t.id_first_msg DESC
LIMIT {int:limit}',
array(
'current_board' => $board,
'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
'is_approved' => 1,
'locked' => 1,
'icon' => 'moved',
'limit' => $limit,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['id_first_msg'];
$smcFunc['db_free_result']($request);

if (empty($posts))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
elseif (!empty($per_page))
{
$limit = count($posts);
$start = !empty($_REQUEST['news' . $id]) ? (int) $_REQUEST['news' . $id] : 0;

$clean_url = str_replace('%', '%%', preg_replace('~news' . $id . '=[^;]+;?~', '', $_SERVER['REQUEST_URL']));
$current_url = $clean_url . (strpos($clean_url, '?') !== false ? (in_array(substr($clean_url, -1), array(';', '?')) ? '' : ';') : '?');

$page_index = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);
}

$request = $smcFunc['db_query']('', '
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, mem.avatar,
a.id_attach, a.attachment_type, a.filename, t.num_views
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE t.id_first_msg IN ({array_int:post_list})
ORDER BY t.id_first_msg DESC
LIMIT ' . (!empty($per_page) ? '{int:start}, ' : '') . '{int:limit}',
array(
'post_list' => $posts,
'start' => $start,
'limit' => !empty($per_page) ? $per_page : $limit,
)
);
$return = array();
$colorids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$limited = false;
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
$limited = true;
}

$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);

// Only place an ellipsis if the body has been shortened.
if ($limited)
$row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" title="' . $row['subject'] . '">...</a>';

if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}

if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

censorText($row['subject']);
censorText($row['body']);

if ($modSettings['sp_resize_images'])
$row['body'] = preg_replace('~class="bbc_img~i', 'class="bbc_img sp_article', $row['body']);

if (!empty($row['id_member']))
$colorids[$row['id_member']] = $row['id_member'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
}
$smcFunc['db_free_result']($request);

if (empty($return))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}

$return[count($return) - 1]['is_last'] = true;

if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($return as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$return[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}

if ($context['SPortal']['core_compat'])
{
foreach ($return as $news)
{
echo '
<div class="sp_article_content">
<div class="', !empty($style['no_body']) ? '' : ' tborder', '">
<table class="sp_block">';

if (empty($style['no_title']))
{
echo '
<tr>
<td class="sp_middle ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>', $news['icon'], '</td>
<td class="sp_middle sp_regular_padding sp_fullwidth ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '><a href="', $news['href'], '">', $news['subject'], '</a></td>
</tr>';
}

echo '
<tr>
<td class="sp_block_padding', empty($style['body']['class']) ? '' : ' ' . $style['body']['class'], '"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', ' colspan="2">';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '<br /><br /></div>
<div class="sp_right ">', $news['link'], ' ',  $news['new_comment'], '</div>
</td>
</tr>
</table>
</div>
</div>';
}
}
else
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div>
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';

if (empty($style['no_title']))
{
echo '
<div class="', in_array($style['title']['class'], array('titlebg', 'titlebg2')) ? 'title_bar' : 'cat_bar', '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>
<h3 class="', $style['title']['class'], '">
<span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a>
</h3>
</div>';
}

if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="upperframe"><span></span></span>';
}

echo '
<div', empty($style['body']['class']) ? '' : ' class="' . $style['body']['class'] . '"', '>';

if (empty($style['no_body']))
{
echo '
<span class="topslice"><span></span></span>';
}

echo '
<div class="sp_content_padding"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', '>';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ',  $news['new_comment'], '</div>
</div>';

if (empty($style['no_body']))
{
echo '
<span class="botslice"><span></span></span>';
}

echo '
</div>';

if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="lowerframe"><span></span></span>';
}

echo '
</div>';

if ($key % 2 == 0)
echo '
</div>';
}
}

echo !empty($return) && count($return) % 2 == 0 ? '
</div>' : '';

if (!empty($per_page))
echo '
<div class="sp_page_index">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
}


You can change the $width variable at the onset of the function to ie. 49.5% if you want them a bit closer together.
Title: Re: SimplePortal
Post by: Xpresskonami on October 26, 2020, 08:23:03 AM
Quote from: Chen Zhen on October 25, 2020, 09:32:45 PM

Use notepad++ ( not ms notepad ) or another file editor that handles unix line endings properly.

file: ../Sources/PortalBlocks.php
only replace the one function I am including below inside that file.
function to replace: sp_boardNews()

function sp_boardNews($parameters, $id, $return_parameters = false)
{
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;

$width = '49%';

$block_parameters = array(
'board' => 'boards',
'limit' => 'int',
'start' => 'int',
'length' => 'int',
'avatar' => 'check',
'per_page' => 'int',
);

if ($return_parameters)
return $block_parameters;

$board = !empty($parameters['board']) ? explode('|', $parameters['board']) : null;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
$start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
$length = isset($parameters['length']) ? (int) $parameters['length'] : 250;
$avatars = !empty($parameters['avatar']);
$per_page = !empty($parameters['per_page']) ? (int) $parameters['per_page'] : 0;
$style = !empty($parameters['style']) ? $parameters['style'] : sportal_parse_style('explode', '', true);

$limit = max(0, $limit);
$start = max(0, $start);

loadLanguage('Stats');

$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

$request = $smcFunc['db_query']('', '
SELECT t.id_first_msg
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
WHERE {query_see_board}
AND ' . (empty($board) ? 't.id_first_msg >= {int:min_msg_id}' : 't.id_board IN ({array_int:current_board})') . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '') . '
AND (t.locked != {int:locked} OR m.icon != {string:icon})
ORDER BY t.id_first_msg DESC
LIMIT {int:limit}',
array(
'current_board' => $board,
'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
'is_approved' => 1,
'locked' => 1,
'icon' => 'moved',
'limit' => $limit,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['id_first_msg'];
$smcFunc['db_free_result']($request);

if (empty($posts))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
elseif (!empty($per_page))
{
$limit = count($posts);
$start = !empty($_REQUEST['news' . $id]) ? (int) $_REQUEST['news' . $id] : 0;

$clean_url = str_replace('%', '%%', preg_replace('~news' . $id . '=[^;]+;?~', '', $_SERVER['REQUEST_URL']));
$current_url = $clean_url . (strpos($clean_url, '?') !== false ? (in_array(substr($clean_url, -1), array(';', '?')) ? '' : ';') : '?');

$page_index = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);
}

$request = $smcFunc['db_query']('', '
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, mem.avatar,
a.id_attach, a.attachment_type, a.filename, t.num_views
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE t.id_first_msg IN ({array_int:post_list})
ORDER BY t.id_first_msg DESC
LIMIT ' . (!empty($per_page) ? '{int:start}, ' : '') . '{int:limit}',
array(
'post_list' => $posts,
'start' => $start,
'limit' => !empty($per_page) ? $per_page : $limit,
)
);
$return = array();
$colorids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$limited = false;
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
$limited = true;
}

$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);

// Only place an ellipsis if the body has been shortened.
if ($limited)
$row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" title="' . $row['subject'] . '">...</a>';

if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}

if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

censorText($row['subject']);
censorText($row['body']);

if ($modSettings['sp_resize_images'])
$row['body'] = preg_replace('~class="bbc_img~i', 'class="bbc_img sp_article', $row['body']);

if (!empty($row['id_member']))
$colorids[$row['id_member']] = $row['id_member'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
}
$smcFunc['db_free_result']($request);

if (empty($return))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}

$return[count($return) - 1]['is_last'] = true;

if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($return as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$return[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}

if ($context['SPortal']['core_compat'])
{
foreach ($return as $news)
{
echo '
<div class="sp_article_content">
<div class="', !empty($style['no_body']) ? '' : ' tborder', '">
<table class="sp_block">';

if (empty($style['no_title']))
{
echo '
<tr>
<td class="sp_middle ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>', $news['icon'], '</td>
<td class="sp_middle sp_regular_padding sp_fullwidth ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '><a href="', $news['href'], '">', $news['subject'], '</a></td>
</tr>';
}

echo '
<tr>
<td class="sp_block_padding', empty($style['body']['class']) ? '' : ' ' . $style['body']['class'], '"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', ' colspan="2">';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '<br /><br /></div>
<div class="sp_right ">', $news['link'], ' ',  $news['new_comment'], '</div>
</td>
</tr>
</table>
</div>
</div>';
}
}
else
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div>
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';

if (empty($style['no_title']))
{
echo '
<div class="', in_array($style['title']['class'], array('titlebg', 'titlebg2')) ? 'title_bar' : 'cat_bar', '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>
<h3 class="', $style['title']['class'], '">
<span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a>
</h3>
</div>';
}

if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="upperframe"><span></span></span>';
}

echo '
<div', empty($style['body']['class']) ? '' : ' class="' . $style['body']['class'] . '"', '>';

if (empty($style['no_body']))
{
echo '
<span class="topslice"><span></span></span>';
}

echo '
<div class="sp_content_padding"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', '>';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ',  $news['new_comment'], '</div>
</div>';

if (empty($style['no_body']))
{
echo '
<span class="botslice"><span></span></span>';
}

echo '
</div>';

if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="lowerframe"><span></span></span>';
}

echo '
</div>';

if ($key % 2 == 0)
echo '
</div>';
}
}

echo !empty($return) && count($return) % 2 == 0 ? '
</div>' : '';

if (!empty($per_page))
echo '
<div class="sp_page_index">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
}


You can change the $width variable at the onset of the function to ie. 49.5% if you want them a bit closer together.

Ok let me give it a trials
Title: Re: SimplePortal
Post by: Xpresskonami on October 26, 2020, 08:42:58 AM
Quote from: Chen Zhen on October 25, 2020, 09:32:45 PM

Use notepad++ ( not ms notepad ) or another file editor that handles unix line endings properly.

file: ../Sources/PortalBlocks.php
only replace the one function I am including below inside that file.
function to replace: sp_boardNews()

function sp_boardNews($parameters, $id, $return_parameters = false)
{
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;

$width = '49%';

$block_parameters = array(
'board' => 'boards',
'limit' => 'int',
'start' => 'int',
'length' => 'int',
'avatar' => 'check',
'per_page' => 'int',
);

if ($return_parameters)
return $block_parameters;

$board = !empty($parameters['board']) ? explode('|', $parameters['board']) : null;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
$start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
$length = isset($parameters['length']) ? (int) $parameters['length'] : 250;
$avatars = !empty($parameters['avatar']);
$per_page = !empty($parameters['per_page']) ? (int) $parameters['per_page'] : 0;
$style = !empty($parameters['style']) ? $parameters['style'] : sportal_parse_style('explode', '', true);

$limit = max(0, $limit);
$start = max(0, $start);

loadLanguage('Stats');

$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

$request = $smcFunc['db_query']('', '
SELECT t.id_first_msg
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
WHERE {query_see_board}
AND ' . (empty($board) ? 't.id_first_msg >= {int:min_msg_id}' : 't.id_board IN ({array_int:current_board})') . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '') . '
AND (t.locked != {int:locked} OR m.icon != {string:icon})
ORDER BY t.id_first_msg DESC
LIMIT {int:limit}',
array(
'current_board' => $board,
'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
'is_approved' => 1,
'locked' => 1,
'icon' => 'moved',
'limit' => $limit,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['id_first_msg'];
$smcFunc['db_free_result']($request);

if (empty($posts))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
elseif (!empty($per_page))
{
$limit = count($posts);
$start = !empty($_REQUEST['news' . $id]) ? (int) $_REQUEST['news' . $id] : 0;

$clean_url = str_replace('%', '%%', preg_replace('~news' . $id . '=[^;]+;?~', '', $_SERVER['REQUEST_URL']));
$current_url = $clean_url . (strpos($clean_url, '?') !== false ? (in_array(substr($clean_url, -1), array(';', '?')) ? '' : ';') : '?');

$page_index = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);
}

$request = $smcFunc['db_query']('', '
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, mem.avatar,
a.id_attach, a.attachment_type, a.filename, t.num_views
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE t.id_first_msg IN ({array_int:post_list})
ORDER BY t.id_first_msg DESC
LIMIT ' . (!empty($per_page) ? '{int:start}, ' : '') . '{int:limit}',
array(
'post_list' => $posts,
'start' => $start,
'limit' => !empty($per_page) ? $per_page : $limit,
)
);
$return = array();
$colorids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$limited = false;
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
$limited = true;
}

$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);

// Only place an ellipsis if the body has been shortened.
if ($limited)
$row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" title="' . $row['subject'] . '">...</a>';

if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}

if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

censorText($row['subject']);
censorText($row['body']);

if ($modSettings['sp_resize_images'])
$row['body'] = preg_replace('~class="bbc_img~i', 'class="bbc_img sp_article', $row['body']);

if (!empty($row['id_member']))
$colorids[$row['id_member']] = $row['id_member'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
}
$smcFunc['db_free_result']($request);

if (empty($return))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}

$return[count($return) - 1]['is_last'] = true;

if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($return as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$return[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}

if ($context['SPortal']['core_compat'])
{
foreach ($return as $news)
{
echo '
<div class="sp_article_content">
<div class="', !empty($style['no_body']) ? '' : ' tborder', '">
<table class="sp_block">';

if (empty($style['no_title']))
{
echo '
<tr>
<td class="sp_middle ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>', $news['icon'], '</td>
<td class="sp_middle sp_regular_padding sp_fullwidth ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '><a href="', $news['href'], '">', $news['subject'], '</a></td>
</tr>';
}

echo '
<tr>
<td class="sp_block_padding', empty($style['body']['class']) ? '' : ' ' . $style['body']['class'], '"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', ' colspan="2">';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '<br /><br /></div>
<div class="sp_right ">', $news['link'], ' ',  $news['new_comment'], '</div>
</td>
</tr>
</table>
</div>
</div>';
}
}
else
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div>
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';

if (empty($style['no_title']))
{
echo '
<div class="', in_array($style['title']['class'], array('titlebg', 'titlebg2')) ? 'title_bar' : 'cat_bar', '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>
<h3 class="', $style['title']['class'], '">
<span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a>
</h3>
</div>';
}

if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="upperframe"><span></span></span>';
}

echo '
<div', empty($style['body']['class']) ? '' : ' class="' . $style['body']['class'] . '"', '>';

if (empty($style['no_body']))
{
echo '
<span class="topslice"><span></span></span>';
}

echo '
<div class="sp_content_padding"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', '>';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ',  $news['new_comment'], '</div>
</div>';

if (empty($style['no_body']))
{
echo '
<span class="botslice"><span></span></span>';
}

echo '
</div>';

if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="lowerframe"><span></span></span>';
}

echo '
</div>';

if ($key % 2 == 0)
echo '
</div>';
}
}

echo !empty($return) && count($return) % 2 == 0 ? '
</div>' : '';

if (!empty($per_page))
echo '
<div class="sp_page_index">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
}


You can change the $width variable at the onset of the function to ie. 49.5% if you want them a bit closer together.

NO CHANGES AFTER PASTING THIS CODE
Title: Re: SimplePortal
Post by: Chen Zhen on October 26, 2020, 02:08:33 PM

Am I correct about this concerning the "board news" block ?
Title: Re: SimplePortal
Post by: Chen Zhen on October 26, 2020, 02:50:11 PM
Try the one here:

function sp_boardNews($parameters, $id, $return_parameters = false)
{
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;

$width = '48%';

$block_parameters = array(
'board' => 'boards',
'limit' => 'int',
'start' => 'int',
'length' => 'int',
'avatar' => 'check',
'per_page' => 'int',
);

if ($return_parameters)
return $block_parameters;

$board = !empty($parameters['board']) ? explode('|', $parameters['board']) : null;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
$start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
$length = isset($parameters['length']) ? (int) $parameters['length'] : 250;
$avatars = !empty($parameters['avatar']);
$per_page = !empty($parameters['per_page']) ? (int) $parameters['per_page'] : 0;
$style = !empty($parameters['style']) ? $parameters['style'] : sportal_parse_style('explode', '', true);

$limit = max(0, $limit);
$start = max(0, $start);

loadLanguage('Stats');

$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

$request = $smcFunc['db_query']('', '
SELECT t.id_first_msg
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
WHERE {query_see_board}
AND ' . (empty($board) ? 't.id_first_msg >= {int:min_msg_id}' : 't.id_board IN ({array_int:current_board})') . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '') . '
AND (t.locked != {int:locked} OR m.icon != {string:icon})
ORDER BY t.id_first_msg DESC
LIMIT {int:limit}',
array(
'current_board' => $board,
'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
'is_approved' => 1,
'locked' => 1,
'icon' => 'moved',
'limit' => $limit,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['id_first_msg'];
$smcFunc['db_free_result']($request);

if (empty($posts))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
elseif (!empty($per_page))
{
$limit = count($posts);
$start = !empty($_REQUEST['news' . $id]) ? (int) $_REQUEST['news' . $id] : 0;

$clean_url = str_replace('%', '%%', preg_replace('~news' . $id . '=[^;]+;?~', '', $_SERVER['REQUEST_URL']));
$current_url = $clean_url . (strpos($clean_url, '?') !== false ? (in_array(substr($clean_url, -1), array(';', '?')) ? '' : ';') : '?');

$page_index = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);
}

$request = $smcFunc['db_query']('', '
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, mem.avatar,
a.id_attach, a.attachment_type, a.filename, t.num_views
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE t.id_first_msg IN ({array_int:post_list})
ORDER BY t.id_first_msg DESC
LIMIT ' . (!empty($per_page) ? '{int:start}, ' : '') . '{int:limit}',
array(
'post_list' => $posts,
'start' => $start,
'limit' => !empty($per_page) ? $per_page : $limit,
)
);
$return = array();
$colorids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$limited = false;
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
$limited = true;
}

$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);

// Only place an ellipsis if the body has been shortened.
if ($limited)
$row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" title="' . $row['subject'] . '">...</a>';

if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}

if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

censorText($row['subject']);
censorText($row['body']);

if ($modSettings['sp_resize_images'])
$row['body'] = preg_replace('~class="bbc_img~i', 'class="bbc_img sp_article', $row['body']);

if (!empty($row['id_member']))
$colorids[$row['id_member']] = $row['id_member'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
}
$smcFunc['db_free_result']($request);

if (empty($return))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}

$return[count($return) - 1]['is_last'] = true;

if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($return as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$return[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}

if ($context['SPortal']['core_compat'])
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div style="padding-top: 0.3em;">
<div style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';

echo '
<div class="sp_article_content">
<div class="', !empty($style['no_body']) ? '' : ' tborder', '">
<table class="sp_block">';

if (empty($style['no_title']))
{
echo '
<tr>
<td class="sp_middle ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>', $news['icon'], '</td>
<td class="sp_middle sp_regular_padding sp_fullwidth ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '><a href="', $news['href'], '">', $news['subject'], '</a></td>
</tr>';
}

echo '
<tr>
<td class="sp_block_padding', empty($style['body']['class']) ? '' : ' ' . $style['body']['class'], '"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', ' colspan="2">';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '<br /><br /></div>
<div class="sp_right ">', $news['link'], ' ',  $news['new_comment'], '</div>
</td>
</tr>
</table>
</div>
</div>';

if ($key % 2 == 0)
echo '
</div>
</div>';
else
echo '
</div>';
$lastBody = !empty($style['no_body']) ? '' : 'cla tborder';


}

echo !empty($return) && count($return) % 2 != 0 ? '
<div class="sp_block_section" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">
<div class="sp_article_content">
<div>
<table class="sp_block">
<tr>
<td class="sp_block_padding" colspan="2">
&nbsp;
</td>
</tr>
</table>
</div>
</div>
</div>
</div>' : '';
}
else
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div style="padding-top: 0.3em;">
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';

if (empty($style['no_title']))
{
echo '
<div class="', in_array($style['title']['class'], array('titlebg', 'titlebg2')) ? 'title_bar' : 'cat_bar', '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>
<h3 class="', $style['title']['class'], '">
<span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a>
</h3>
</div>';
}

if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="upperframe"><span></span></span>';
}

echo '
<div', empty($style['body']['class']) ? '' : ' class="' . $style['body']['class'] . '"', '>';

if (empty($style['no_body']))
{
echo '
<span class="topslice"><span></span></span>';
}

echo '
<div class="sp_content_padding"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', '>';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ',  $news['new_comment'], '</div>
</div>';

if (empty($style['no_body']))
{
echo '
<span class="botslice"><span></span></span>';
}

echo '
</div>';

if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="lowerframe"><span></span></span>';
}

echo '
</div>';

if ($key % 2 == 0)
echo '
</div>';
}

echo !empty($return) && count($return) % 2 != 0 ? '
</div>' : '';
}

if (!empty($per_page))
echo '
<div class="sp_page_index centertext">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
}


In your block settings it's better if you have the amount of topics set to an even number & also the block position at the top of the section list.
Title: Re: SimplePortal
Post by: Xpresskonami on October 26, 2020, 10:23:09 PM
Quote from: Chen Zhen on October 26, 2020, 02:50:11 PM
Try the one here:

function sp_boardNews($parameters, $id, $return_parameters = false)
{
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;

$width = '48%';

$block_parameters = array(
'board' => 'boards',
'limit' => 'int',
'start' => 'int',
'length' => 'int',
'avatar' => 'check',
'per_page' => 'int',
);

if ($return_parameters)
return $block_parameters;

$board = !empty($parameters['board']) ? explode('|', $parameters['board']) : null;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
$start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
$length = isset($parameters['length']) ? (int) $parameters['length'] : 250;
$avatars = !empty($parameters['avatar']);
$per_page = !empty($parameters['per_page']) ? (int) $parameters['per_page'] : 0;
$style = !empty($parameters['style']) ? $parameters['style'] : sportal_parse_style('explode', '', true);

$limit = max(0, $limit);
$start = max(0, $start);

loadLanguage('Stats');

$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

$request = $smcFunc['db_query']('', '
SELECT t.id_first_msg
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
WHERE {query_see_board}
AND ' . (empty($board) ? 't.id_first_msg >= {int:min_msg_id}' : 't.id_board IN ({array_int:current_board})') . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '') . '
AND (t.locked != {int:locked} OR m.icon != {string:icon})
ORDER BY t.id_first_msg DESC
LIMIT {int:limit}',
array(
'current_board' => $board,
'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
'is_approved' => 1,
'locked' => 1,
'icon' => 'moved',
'limit' => $limit,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['id_first_msg'];
$smcFunc['db_free_result']($request);

if (empty($posts))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
elseif (!empty($per_page))
{
$limit = count($posts);
$start = !empty($_REQUEST['news' . $id]) ? (int) $_REQUEST['news' . $id] : 0;

$clean_url = str_replace('%', '%%', preg_replace('~news' . $id . '=[^;]+;?~', '', $_SERVER['REQUEST_URL']));
$current_url = $clean_url . (strpos($clean_url, '?') !== false ? (in_array(substr($clean_url, -1), array(';', '?')) ? '' : ';') : '?');

$page_index = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);
}

$request = $smcFunc['db_query']('', '
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, mem.avatar,
a.id_attach, a.attachment_type, a.filename, t.num_views
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE t.id_first_msg IN ({array_int:post_list})
ORDER BY t.id_first_msg DESC
LIMIT ' . (!empty($per_page) ? '{int:start}, ' : '') . '{int:limit}',
array(
'post_list' => $posts,
'start' => $start,
'limit' => !empty($per_page) ? $per_page : $limit,
)
);
$return = array();
$colorids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$limited = false;
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
$limited = true;
}

$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);

// Only place an ellipsis if the body has been shortened.
if ($limited)
$row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" title="' . $row['subject'] . '">...</a>';

if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}

if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

censorText($row['subject']);
censorText($row['body']);

if ($modSettings['sp_resize_images'])
$row['body'] = preg_replace('~class="bbc_img~i', 'class="bbc_img sp_article', $row['body']);

if (!empty($row['id_member']))
$colorids[$row['id_member']] = $row['id_member'];

$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
}
$smcFunc['db_free_result']($request);

if (empty($return))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}

$return[count($return) - 1]['is_last'] = true;

if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($return as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$return[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}

if ($context['SPortal']['core_compat'])
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div style="padding-top: 0.3em;">
<div style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';

echo '
<div class="sp_article_content">
<div class="', !empty($style['no_body']) ? '' : ' tborder', '">
<table class="sp_block">';

if (empty($style['no_title']))
{
echo '
<tr>
<td class="sp_middle ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>', $news['icon'], '</td>
<td class="sp_middle sp_regular_padding sp_fullwidth ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '><a href="', $news['href'], '">', $news['subject'], '</a></td>
</tr>';
}

echo '
<tr>
<td class="sp_block_padding', empty($style['body']['class']) ? '' : ' ' . $style['body']['class'], '"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', ' colspan="2">';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '<br /><br /></div>
<div class="sp_right ">', $news['link'], ' ',  $news['new_comment'], '</div>
</td>
</tr>
</table>
</div>
</div>';

if ($key % 2 == 0)
echo '
</div>
</div>';
else
echo '
</div>';
$lastBody = !empty($style['no_body']) ? '' : 'cla tborder';


}

echo !empty($return) && count($return) % 2 != 0 ? '
<div class="sp_block_section" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">
<div class="sp_article_content">
<div>
<table class="sp_block">
<tr>
<td class="sp_block_padding" colspan="2">
&nbsp;
</td>
</tr>
</table>
</div>
</div>
</div>
</div>' : '';
}
else
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div style="padding-top: 0.3em;">
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';

if (empty($style['no_title']))
{
echo '
<div class="', in_array($style['title']['class'], array('titlebg', 'titlebg2')) ? 'title_bar' : 'cat_bar', '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>
<h3 class="', $style['title']['class'], '">
<span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a>
</h3>
</div>';
}

if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="upperframe"><span></span></span>';
}

echo '
<div', empty($style['body']['class']) ? '' : ' class="' . $style['body']['class'] . '"', '>';

if (empty($style['no_body']))
{
echo '
<span class="topslice"><span></span></span>';
}

echo '
<div class="sp_content_padding"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', '>';

if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';

echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ',  $news['new_comment'], '</div>
</div>';

if (empty($style['no_body']))
{
echo '
<span class="botslice"><span></span></span>';
}

echo '
</div>';

if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="lowerframe"><span></span></span>';
}

echo '
</div>';

if ($key % 2 == 0)
echo '
</div>';
}

echo !empty($return) && count($return) % 2 != 0 ? '
</div>' : '';
}

if (!empty($per_page))
echo '
<div class="sp_page_index centertext">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
}


In your block settings it's better if you have the amount of topics set to an even number & also the block position at the top of the section list.

NO CHANGES. Check (http://spyloadedforum.cf/index.php)
Title: Re: SimplePortal
Post by: Chen Zhen on October 27, 2020, 07:55:38 PM
No need to yell with caps.. I am reading your posts.

What I posted for you was indeed for the board news block.
The second edit that I posted affected both core & curve template layouts.
Title: Re: SimplePortal
Post by: pretor on November 09, 2020, 08:36:09 AM
Hello ;)

For many years (9 years) I use the portal "sipmpleportal" in various forums and so far I have been very pleased him. Unfortunately, I see that update last one was held in 2017 and aid forum just died and it worries me greatly. or portal "simpleportal" will be updated even if there is a possibility that someone tried to make it "responsive", so that the content displayed by the portal, tailored to smartphone and tablet screens?

PS. Sorry for my english but I'm using the google translator.

Quote from: PolishOd wielu lat (9 lat) używam portalu "SipmplePortal" na różnych forach i do tej pory byłem niego bardzo zadowolony.
Niestety widzę, że ostania aktualizacja, odbyła się w 2017 roku a forum pomocowe zwyczajnie umarło i mocno mnie to martwi.

Czy portal "SimplePortal" będzie jeszcze aktualizowany, czy istnieje możliwość aby ktoś spróbował zrobić go "responsywnym", tak aby wyświetlane przez portal treści, dopasować do ekranów smartphone i tabletów ?

Title: Re: SimplePortal
Post by: Deaks on November 10, 2020, 09:31:21 AM
their are no known plans for it to be updates.  Their is a fork for 2.1 but main SP is unlikley to move forward.
Title: Re: SimplePortal
Post by: Shades. on November 11, 2020, 02:00:44 PM
Anybody have a copy of the ehportal. I tried clicking on the link but not working...https://web-develop.ca/index.php?action=downloads;area=stable_eh_portal
Title: Re: SimplePortal
Post by: Shades. on November 11, 2020, 02:06:38 PM
Quote from: RML on February 07, 2019, 08:06:43 AM
You can use EhPortal, it's the same as Simple Portal only for SMF 2.1, it works with RC1, I use it on my forum and it works fine.
Do you have a copy I can download? The link to download it doesn't work...https://web-develop.ca/index.php?action=downloads;area=stable_eh_portal
Title: Re: SimplePortal
Post by: Mick. on November 11, 2020, 02:12:22 PM
Try this.. https://web-develop.ca/index.php?action=downloads;area=stable_eh_portal;file=2
Title: Re: SimplePortal
Post by: Shades. on November 11, 2020, 02:25:35 PM
Quote from: Mick. on November 11, 2020, 02:12:22 PM
Try this.. https://web-develop.ca/index.php?action=downloads;area=stable_eh_portal;file=2
None of the links to web-develop work for me (been trying since yesterday)
Title: Re: SimplePortal
Post by: Mick. on November 11, 2020, 02:50:03 PM
Quote from: Shades. on November 11, 2020, 02:25:35 PM
Quote from: Mick. on November 11, 2020, 02:12:22 PM
Try this.. https://web-develop.ca/index.php?action=downloads;area=stable_eh_portal;file=2
None of the links to web-develop work for me (been trying since yesterday)
clear your web browser cache. The site works for me just fine.
Title: Re: SimplePortal
Post by: Bigguy on November 11, 2020, 02:57:13 PM
Works fine for me as well.
Title: Re: SimplePortal
Post by: Shades. on November 11, 2020, 03:06:48 PM
Well dang I cant get it to work and I tried 3 different browsers! :(
Title: Re: SimplePortal
Post by: Bigguy on November 11, 2020, 03:26:48 PM
Maybe your DNS cache needs clearing.
Title: Re: SimplePortal
Post by: Shades. on November 11, 2020, 05:18:06 PM
Quote from: Bigguy on November 11, 2020, 03:26:48 PM
Maybe your DNS cache needs clearing.
Ok i tried this and everything else I could think of and rebooted and still cant access that link! Does anybody have a copy they can PM me?
Title: Re: SimplePortal
Post by: Shambles on November 11, 2020, 05:49:23 PM
See your PMs
Title: Re: SimplePortal
Post by: Shades. on November 11, 2020, 06:04:48 PM
Quote from: Shambles on November 11, 2020, 05:49:23 PM
See your PMs
Perfect thank you! :)
Title: Re: SimplePortal
Post by: oblio2007 on November 20, 2020, 05:53:49 AM
There is a custom block to show all sticky threads from specified boards ?
Thank You!
Title: Re: SimplePortal
Post by: Sono on December 05, 2020, 03:39:33 AM
I wonder if anyone could help me with this:

I am trying to implement an Adsense code into my site. I have Simpleportal installed. I am trying to place the Adsense code into a Simpleportal Top block. For this, I created a custom HTML block, and set it to appear in the TOP block. Unfortunately, the result is that the banner is not aligned properly. I set it to be centered, but the banner appears slightly off centered. The first element in the hierarchy that the Adsense script creates (<ins class="adsbygoogle") is in the proper position that I set for it. However, all child elements are out of position. You can see it on the first two photos I attached (offc1 offc2). Interestingly, however, when I place the same code to a Simple Portal Header block, the banner will be properly aligned. See the third photo attached (offc3).

Does anyone have an idea why the code doesn't work correctly in the Top block?

So here are the photos and my code:

<div style="text-align:center;margin-bottom:10px;">
<div style="
    max-width:729px;
    display:block;margin-left:auto;margin-right:auto;
    text-align: center;">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:block;height:110px;"
     data-ad-client="xxxxxxxxxxxxxxxx"
     data-ad-slot="xxxxxxxxxxxxxxxx"
     data-ad-format="horizontal"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>


Title: Re: SimplePortal
Post by: SilverKnight on December 07, 2020, 02:43:47 AM
Does anyone have a recent posts php module with Split Forum Mod (https://custom.simplemachines.org/mods/index.php?mod=3730) support?
Title: Re: SimplePortal
Post by: Chen Zhen on December 07, 2020, 06:25:19 PM
@Sono:
I assume you mean vertically & horizontally centered?
Perhaps you have left & right blocks causing top blocks to be more narrow than the header blocks?
Maybe use a percentage for the max-width & hide the overflow.

Try this example (adjust max-width to your preference):

<div style="max-width:90%;overflow: hidden;display:block;margin: 0 auto;text-align: center;">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display: block;height: 110px;"
     data-ad-client="xxxxxxxxxxxxxxxx"
     data-ad-slot="xxxxxxxxxxxxxxxx"
     data-ad-format="horizontal"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
Title: Re: SimplePortal
Post by: SilverKnight on December 12, 2020, 05:30:00 AM
I want a block to only appear on a custom action but the syntax i am unsure of.

Under advanced options inside  display options, i want a block to only show when visiting the following action with the value:

index.php?action=forum;c=3

Anyone know what would be the correct syntax for this?
Title: Re: SimplePortal
Post by: Chen Zhen on December 12, 2020, 11:55:40 PM

Edit the block and click (enable) the "Advanced Options" checkbox.
Ensure that no options have been checked within "Select Actions" & "Select Boards".

Enter this in the custom display options:
~c|3, -~action|forum

Save the block, test it and then let me know if it worked as expected.
Title: Re: SimplePortal
Post by: Chen Zhen on December 13, 2020, 04:10:33 PM

@SilverKnight:
What I previously posted will actually allow the block to be viewed if c=3 for any action which if I understand correctly is not what you are after.

Multiple conditions added to a single action to view the block do not appear to be possible by default.
However, I just created a plugin to do just that.

Download & install this Simple Portal plug-in:
https://web-develop.ca/index.php?action=downloads;area=stable_simple_portal_plugins;file=86




Edit the block and click (enable) the "Advanced Options" checkbox.
Ensure that no options have been checked within "Select Actions" & "Select Boards".

Enter this in the custom display options:
~action|forum, &c|3


... you can add additional conditions using a comma to separate them and the "&' for each condition. Swap out any "=" from the URL with the "|" character.
The above example input should give you some idea for what to enter in the custom display options.
Title: Re: SimplePortal
Post by: Sono on December 16, 2020, 02:15:47 PM
Quote from: Chen Zhen on December 07, 2020, 06:25:19 PM
@Sono:
I assume you mean vertically & horizontally centered?
Perhaps you have left & right blocks causing top blocks to be more narrow than the header blocks?
Maybe use a percentage for the max-width & hide the overflow.

Try this example (adjust max-width to your preference):

<div style="max-width:90%;overflow: hidden;display:block;margin: 0 auto;text-align: center;">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display: block;height: 110px;"
     data-ad-client="xxxxxxxxxxxxxxxx"
     data-ad-slot="xxxxxxxxxxxxxxxx"
     data-ad-format="horizontal"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>


We have investigated this since then in the Google Adsense forum. The Google script has a glitch, when you insert it in table circumstance, like when you place it in the Top Block that Simple Portal installs, it gets confused, and does not align the banners properly. You have to add: "border-collapse:collapse;" to its style and limit the banner size under the minimum width of the Top Block or page size, so that the banner alignment would function properly.
Title: Re: SimplePortal
Post by: chyyyone on December 30, 2020, 04:24:50 PM
I'm using Simple Portal 2.3.7 on SMF 2.0.17 with the Fumes theme.

I am no longer going to use the Title on Simple Portal because I made my own and put the code in the body on portal so I would like to round the top corners of the default body class windowbg on Portal if possible. Thanks :)

(https://i.imgur.com/7FZAG0x.png)
Title: Re: SimplePortal
Post by: Chen Zhen on December 30, 2020, 08:57:24 PM

I'm not positive if I understand exactly what you're trying to do but here is an edit that will cause all block containers to have rounded corners.

file: ../Themes/default/css/portal.css

add this code at the very end of the file:

div[class^="sp_block_"] div[class^="windowbg"] span[class^="topslice"] {
display: none;
}
div[class^="sp_block_"] div[class^="windowbg"] span[class^="botslice"] {
displaY: none;
}
div[class^="sp_block_"] div[class^="windowbg"] {
border-radius: 15px 50px;
padding: 10px;
}


You can adjust the border-radius to make the corners appear as you wish.
The padding will likely need to be adjusted depending on your opted border-radius and/or what you prefer.

reference for border-radius:
https://www.w3schools.com/cssref/css3_pr_border-radius.asp
Title: Re: SimplePortal
Post by: chyyyone on January 03, 2021, 08:47:21 PM
Quote from: Chen Zhen on December 30, 2020, 08:57:24 PM

I'm not positive if I understand exactly what you're trying to do but here is an edit that will cause all block containers to have rounded corners.

file: ../Themes/default/css/portal.css

add this code at the very end of the file:

div[class^="sp_block_"] div[class^="windowbg"] span[class^="topslice"] {
display: none;
}
div[class^="sp_block_"] div[class^="windowbg"] span[class^="botslice"] {
displaY: none;
}
div[class^="sp_block_"] div[class^="windowbg"] {
border-radius: 15px 50px;
padding: 10px;
}


You can adjust the border-radius to make the corners appear as you wish.
The padding will likely need to be adjusted depending on your opted border-radius and/or what you prefer.

reference for border-radius:
https://www.w3schools.com/cssref/css3_pr_border-radius.asp


This is what I wanted and it worked. Thank You!
Title: Re: SimplePortal
Post by: Grammy on January 18, 2021, 01:32:43 PM
Could you guys help me move the SimplePortal copyright (screenshot attached) into the SMF 2.0.17 Default wrapper (index.css/div#wrapper) with all the other copyrights instead of by itself below the wrapper?  It's a brand new test forum, all mods installed easily with no manual editing, no forum errors, so I'm not sure if it's meant to be outside the forum wrapper that way, or it that's a glitch? 

Thanks so much.   :)
Title: Re: SimplePortal
Post by: Grammy on January 18, 2021, 03:57:51 PM
I lack the permissions to modify or delete the above post, but while clunking around in my site's cosmetics, I managed to sort it.  Thanks, though.   :)
Title: Re: SimplePortal
Post by: Sir Osis of Liver on January 26, 2021, 05:46:44 PM
Running SP 2.3.7 here (https://playersprogramu.com/work/index.php) in Nightbreeze.  When viewed on phone, left blocks are stacked on top of top blocks.  We want top blocks on top (duh!).  Is that a theme thing or SP thing?
Title: Re: SimplePortal
Post by: Chen Zhen on January 26, 2021, 06:59:42 PM
Simple Portal was never designed for mobile display.
It uses standard tables and does not contain the appropriate CSS to make it responsive.
I don't know if Sinan intends to update SP at some point to make such changes.

EhPortal (ported from SP after its license was amended) is responsive but only supports the SMF 2.1 branch.
Title: Re: SimplePortal
Post by: Shades. on February 24, 2021, 04:37:30 PM
Quote from: Grammy on January 18, 2021, 01:32:43 PM
Could you guys help me move the SimplePortal copyright (screenshot attached) into the SMF 2.0.17 Default wrapper (index.css/div#wrapper) with all the other copyrights instead of by itself below the wrapper?  It's a brand new test forum, all mods installed easily with no manual editing, no forum errors, so I'm not sure if it's meant to be outside the forum wrapper that way, or it that's a glitch? 

Thanks so much.   :)

Can you let me know how you did this cause I have the same issue?
Title: Re: SimplePortal
Post by: Sir Osis of Liver on March 06, 2021, 05:09:49 PM
We've noticed the "ADD AS ARTICLE" button in display template does not appear in Nightbreeze theme phone view.  It also calls a nonexistent gif.  Same for "REMOVE FROM ARTICLES".



/// Article related buttons...
if (!empty($modSettings['articleactive']))
{
if ($context['can_add_article'] && !$context['topic_is_article'])
$normal_buttons['add_article'] = array('text' => 'sp-add_article', 'image' => 'addarticle.gif', 'lang' => true, 'url' => $scripturl . '?action=portal;sa=addarticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
if ($context['can_remove_article'] && $context['topic_is_article'])
$normal_buttons['remove_article'] = array('text' => 'sp-remove_article', 'image' => 'removearticle.gif', 'lang' => true, 'url' => $scripturl . '?action=portal;sa=removearticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
}



Any way to fix this?
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on March 07, 2021, 07:20:46 PM
Clearly, because that theme reworks the whole thing... Honestly it's more of a theme thing than a mod issue. You will have the same problem with SimpleDesk for example...
Regardless, I'm nice, Nightbreeze/css/index.css
Code (add at the end) Select
.button_strip_add_article:before {content:"\f055"}
.button_strip_remove_article:before {content: "\f056"}

Replace the \f055 and \f056 with whichever font-awesome icon you prefer, as long as it's present in version 5.11.2

As for the missing icons that are being called that's interesting, never noticed ;D

~SP Support
Title: Re: SimplePortal
Post by: Sir Osis of Liver on March 07, 2021, 10:37:58 PM
That worked, thanks Ninja.
Title: Re: SimplePortal
Post by: sirfpsycho on March 07, 2021, 10:39:20 PM
In right block I have added 8 Recent Posts/Topics. Yesterday everything was working fine. But from today only 1st and last Recent Posts/Topics is showing topics. Other Recent Posts/Topics are not showing any topics. How to fix it?
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on March 08, 2021, 09:24:10 PM
Quote from: Sir Osis of Liver on March 07, 2021, 10:37:58 PM
That worked, thanks Ninja.
Glad to help old friend :)
Quote from: sirfpsycho on March 07, 2021, 10:39:20 PM
In right block I have added 8 Recent Posts/Topics. Yesterday everything was working fine. But from today only 1st and last Recent Posts/Topics is showing topics. Other Recent Posts/Topics are not showing any topics. How to fix it?
I could be wrong because I haven't used it in a while, but from what I remember that was the intended use. Recent as in last 48h or so ::)
Title: Re: SimplePortal
Post by: 4LP3RUZ1 on March 25, 2021, 03:45:39 AM
I read a few pages back but couldn't find anything. For some reason, maybe after 2.0.18 update, my front page news that include symbols like apostrophe, get replaced like this:

Toyota'nın
Toyota'#039nın

When I go into the topic its fine, but on the portal page its replaced.
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on March 25, 2021, 05:40:02 PM
Heard about this elsewhere but that was related to utf8 conversion...

My dirty fix for this is to simply add '#039 to censored words and replace it with ' ;D Nobody in a good state of mind would type '#039 in a discussion anyway.
Title: Re: SimplePortal
Post by: 4LP3RUZ1 on April 03, 2021, 04:48:34 AM
sounded like a very good idea, but didnt work. The posts are ok, so I'm guessing replace engine doesn't work. It has to do with some function simpleportal uses I am guessing.

edit: ok I'm tracing this down to the feature where portal blocks are shortened to specific amount of characters. If I disable that, portal posts return to normal.

edit2:
I can fix it if I change this part:
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
$limited = true;
}


like this:

if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = substr($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = substr($row['body'], 0, $length);
$limited = true;
}


why would $smcFunc['substr'] do this?
Title: Re: SimplePortal
Post by: Sir Osis of Liver on May 13, 2021, 05:27:24 PM
Does SP 2.3.7 allow php code in blocks?  All are Custom HTML, don't see any way to switch existing block to php.
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on May 14, 2021, 08:23:12 AM
Add block -> Custom PHP ???
;D

No, you may not change the block type once you created it.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on May 14, 2021, 12:44:48 PM
Yeah, did that last night, php tags don't work in custom html block.  Reason I asked is ad management mod has dropmenu to switch type on existing block, saves a few steps.
Title: Re: SimplePortal
Post by: SD-X on May 15, 2021, 11:40:32 AM
Quote from: Sir Osis of Liver on May 14, 2021, 12:44:48 PM
Yeah, did that last night, php tags don't work in custom html block.  Reason I asked is ad management mod has dropmenu to switch type on existing block, saves a few steps.
My best guess is the block may be using the forum's rules on HTML tags there, but don't quote me on that. It may also be set to only process HTML, and blocks out PHP code for security purposes.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on July 30, 2021, 10:27:05 PM
Server is logging a lot of these in 2.0.18, SP 2.3.7 -



[30-Jul-2021 22:00:57 America/Santo_Domingo] PHP Parse error:  syntax error, unexpected '/' in /home/mxb125/public_html/Sources/Load.php(2291) : eval()'d code on line 24



Only changes made to Load.php are from SP.
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on July 31, 2021, 08:44:14 PM
Well, you can start by removing templates evaluation and see what comes up ::)
Title: Re: SimplePortal
Post by: Sir Osis of Liver on August 01, 2021, 12:23:26 AM
Found it in Errors.english.php -



/$txt['not_a_user'] = 'The user whose profile you are trying to view does not exist.';/



Nothing to do with SP.  This was another pretty urls screwup, but don't think that had anything to do with it either.  More likely forum owner was dicking around with the code.
Title: Re: SimplePortal
Post by: Ninja ZX-10RR on August 06, 2021, 04:35:38 PM
Kek ;D Glad you found out!
Title: Re: SimplePortal
Post by: Dave J on October 01, 2021, 01:25:59 AM
PHP7.4 causes an error with SP 2.3.7.

The error is

8: Trying to access array offset on value of type null
Apply Filter: Only show the errors from this file
File: /*/*/public_html/Sources/PortalBlocks.php(3591) : eval()'d code
Line: 35

The line of code is

void sp_recent()
Reverting back to PHP7.3 stops the error

I have 'Disable evaluation of templates' enabled.

Any ideas on a fix to go forward with PHP7.4 please?

Title: Re: SimplePortal
Post by: Chen Zhen on October 03, 2021, 07:10:37 PM
Your error message actually shows line 3591 of PortalBlocks.php which is just the eval function that executes the code from your custom PHP blocks.
Line 35 is what's triggering the error from a PHP custom block.

Disable every custom PHP block, switch back to PHP 7.4 and then enable your custom PHP blocks one at a time until the error occurs. This will allow you to determine which blocks are causing the error.
Keep in mind that you may have multiple custom PHP blocks containing deprecated code.
With that possibility this process may have to be repeated.
 
If you copy the problem block code in a proper code editor it will give you line numbers which should allow you to find the line of code causing the error.
Title: Re: SimplePortal
Post by: Mike66 on October 26, 2021, 08:29:08 AM
@ Dave J

I like the design of your Hobby Workshop site Dave  8)

Cheers
Mike
Title: Re: SimplePortal
Post by: Wellwisher on November 27, 2021, 08:43:07 PM
I am trying to move a block to the 1st position. When I attempt to change it, I get the following new error:

It's never happened before, I have been running this mod for years  :-\

Current version I am using is SimplePortal version 2.3.7

The rest of my forum seems to be fine.


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 'row = row + 1
WHERE col = 4
AND row >= 1
AND row < 3' at line 2
File: ////forum/Sources/PortalAdminBlocks.php
Line: 662

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

Title: Re: SimplePortal
Post by: Dave J on November 29, 2021, 01:58:55 AM
Quote from: Mike66 on October 26, 2021, 08:29:08 AM@ Dave J

I like the design of your Hobby Workshop site Dave  8)

Cheers
Mike

Thanks Mike
Title: Re: SimplePortal
Post by: Dave J on November 29, 2021, 02:01:52 AM
Quote from: Chen Zhen on October 03, 2021, 07:10:37 PMYour error message actually shows line 3591 of PortalBlocks.php which is just the eval function that executes the code from your custom PHP blocks.
Line 35 is what's triggering the error from a PHP custom block.

Disable every custom PHP block, switch back to PHP 7.4 and then enable your custom PHP blocks one at a time until the error occurs. This will allow you to determine which blocks are causing the error.
Keep in mind that you may have multiple custom PHP blocks containing deprecated code.
With that possibility this process may have to be repeated.
 
If you copy the problem block code in a proper code editor it will give you line numbers which should allow you to find the line of code causing the error.

I've only just seen this as I didn't get an alert/email to say it was posted.

Thanks UD I'll look into it.
Title: Re: SimplePortal
Post by: Dave J on November 29, 2021, 07:48:15 AM
Quote from: Chen Zhen on October 03, 2021, 07:10:37 PMYour error message actually shows line 3591 of PortalBlocks.php which is just the eval function that executes the code from your custom PHP blocks.
Line 35 is what's triggering the error from a PHP custom block.

Disable every custom PHP block, switch back to PHP 7.4 and then enable your custom PHP blocks one at a time until the error occurs. This will allow you to determine which blocks are causing the error.
Keep in mind that you may have multiple custom PHP blocks containing deprecated code.
With that possibility this process may have to be repeated.
 
If you copy the problem block code in a proper code editor it will give you line numbers which should allow you to find the line of code causing the error.

I have found the issue now and removed the block. Thanks UD
Title: Re: SimplePortal
Post by: Chen Zhen on November 30, 2021, 09:43:25 PM
Quote from: WellwisherI am trying to move a block to the 1st position. When I attempt to change it, I get the following new error:

It's never happened before, I have been running this mod for years  :-\

Current version I am using is SimplePortal version 2.3.7

The rest of my forum seems to be fine.

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 'row = row + 1
WHERE col = 4
AND row >= 1
AND row < 3' at line 2
File: ////forum/Sources/PortalAdminBlocks.php
Line: 662

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

I reported this to Sinan in the past: ref. https://github.com/SimplePortal/SimplePortal/issues/17
.. he used a column name in this mod that became a reserved word in MySQL.
There are only 2 ways to fix it but both involve editing the SP code..

(1) encase each instance of that column name with grave accents

or

(2) replace that column name with ie. rowx in the installer and the regular code. This will also involve editing the sp_blocks table in ie. PhpMyAdmin to change the column name.
 
Title: Re: SimplePortal
Post by: Wellwisher on December 01, 2021, 10:31:27 AM
Quote from: Chen Zhen on November 30, 2021, 09:43:25 PM
Quote from: WellwisherI am trying to move a block to the 1st position. When I attempt to change it, I get the following new error:

It's never happened before, I have been running this mod for years  :-\

Current version I am using is SimplePortal version 2.3.7

The rest of my forum seems to be fine.

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 'row = row + 1
WHERE col = 4
AND row >= 1
AND row < 3' at line 2
File: ////forum/Sources/PortalAdminBlocks.php
Line: 662

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

I reported this to Sinan in the past: ref. https://github.com/SimplePortal/SimplePortal/issues/17
.. he used a column name in this mod that became a reserved word in MySQL.
There are only 2 ways to fix it but both involve editing the SP code..

(1) encase each instance of that column name with grave accents

or

(2) replace that column name with ie. rowx in the installer and the regular code. This will also involve editing the sp_blocks table in ie. PhpMyAdmin to change the column name.
 

Thank you Chen Zhen. At least your reply has relaxed me knowing that there's nothing wrong with my Smf set-up / data base.

You reported that to the dev in 2020 and its still not fixed. I am assuming this is why people have moved to other portals and shame on me for finding out late lol.

I was trying to put my Christmas banner in first place  ;D .

Title: Re: SimplePortal
Post by: Chen Zhen on December 02, 2021, 06:17:23 PM

@Wellwisher:
You can use this slightly updated/modified version which should fix your MySQL reserved word problem.
ref. https://simpleportal.net/index.php?action=downloads;area=stable_beta_packages;file=147

If you have any problems with it please ask for support in this thread.
Title: Re: SimplePortal
Post by: Wellwisher on December 02, 2021, 06:56:52 PM
Quote from: Chen Zhen on December 02, 2021, 06:17:23 PM@Wellwisher:
You can use this slightly updated/modified version which should fix your MySQL reserved word problem.
ref. https://simpleportal.net/index.php?action=downloads;area=stable_beta_packages;file=147

If you have any problems with it please ask for support in this thread.

Thank you. How do you recommend I update this mod? Should I completely uninstall the previous version, or just install new version as is?

I am assuming either way, I will lose all the content in my boxes (which isn't too much of a biggie)?
Title: Re: SimplePortal
Post by: Chen Zhen on December 02, 2021, 07:28:42 PM
You uninstall Simple Portal 2.3.7 and then install SP 2.3.8 ..
you will not lose any block data if you leave the "Remove all data associated with this modification" <-- unchecked.

Title: Re: SimplePortal
Post by: rcane on December 12, 2021, 12:30:57 PM
Good morning,

I'm getting the following error when trying to use the portal shoutbox.

The SMF side didn't see a problem with the db and suggested a post over here.


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 'FROM smfqg_sp_blocks
WHERE col = 5
ORDER BY row DESC
LIMIT 1' at line 2
File: /home/myDomain/public_html/myDomainName.com/Sources/PortalAdminBlocks.php
Line: 680

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.18, while your database is at version 2.0.17. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: SimplePortal
Post by: Chen Zhen on December 13, 2021, 10:15:53 PM

It seems like you have the same issue that Wellwisher reported a few posts back in this thread.

Uninstall your current Simple Portal package & replace it with this one:
https://simpleportal.net/index.php?action=downloads;area=stable_beta_packages;file=147
Title: Re: SimplePortal
Post by: xtian on December 26, 2021, 09:21:02 PM
Hi I am trying to uninstall 2.3.7 so I can install 2.3.8 but says module can't be found.
It is running, or was untill I deleted the files in admin package manager.
Now can't install either 2.8.7 or 8
And smf 2.0.19 has errors in the install
I think I broke something :-(
Not a program person just a user
cheers
Title: Re: SimplePortal
Post by: Chen Zhen on December 28, 2021, 04:27:11 PM

@xtian:
re. Simple Portal & the SMF 2.0 branch

Having no idea what you did regarding deleting files & such, you do have the option of using the repair_settings.php to remove all hooks and then use the SMF 2.0.19 upgrade package.
If you do those 2 steps properly your forum will be back to square one with the database intact.
After which you can install all your mods again.

repair_settings.php instructions (remove hooks link is on bottom right when using the file):
https://wiki.simplemachines.org/smf/Repair_settings.php

Upgrade instructions:
https://wiki.simplemachines.org/smf/Upgrading

Title: Re: SimplePortal
Post by: Chen Zhen on December 28, 2021, 10:07:13 PM

SimplePortal 2.3.8-BETA2 has been released for those that are interested.
This version appears to be necessary for custom PHP blocks to work with SMF 2.0.19.

It can be downloaded here:
https://simpleportal.net/index.php?action=downloads;area=stable_beta_packages;file=147
Title: Re: SimplePortal
Post by: efk on February 05, 2022, 04:19:26 PM
Quote from: efk on February 05, 2022, 12:56:04 PMWhen tracking user IP
8: Undefined index: banUpdate
?action=shoutbox;sa=get;xml;row=40

Error log
8: Undefined index: banUpdate
Only show the errors from this file
File: /home/name/www/www/Sources/Subs-Shoutbox.php
Line: 93

Ok, so I just noticed that a single user is caught in this error, we have SimplePortal shoutboxes, 3-5, 1 or 2 are public, and SMFPacks Shoutbox which is public, but I don't think there are any bans visible to me.
We just moved to the new hosting. I see user last activity was from 1 hour ago, but this error keep spamming error log for single user, what could it be?
We are at 2.0.18, before upgrading to 19 I want to make sure everything works.
Title: Re: SimplePortal
Post by: Ataru Moroboshi on February 11, 2022, 05:43:08 PM
got this error trying to update a custom php block:

Parse error: syntax error, unexpected ''&#39;;' (T_ENCAPSED_AND_WHITESPACE) in C:\xampp\domain\bcorg\Sources\PortalBlocks.php(3605) : eval()'d code on line 12

it works well on 2.0.18, this is what i get after updating to 2.0.19.
i'm on 2.3.8, in 2.3.7 it was a laconic "syntax error: unexpected '='", or something similar.

they changed something in parsing code?
Title: Re: SimplePortal
Post by: dodos26 on April 02, 2022, 02:11:12 PM
It work for me on 2.0.19 when use two update pack 2.0.17 -- > 18 --> 19. I recently made a clean forum from the begining and now have this error "syntax error, unexpected 'if' (T_IF)" php 7.4 x64 and sp 2.3.7
{
$global $txt;

$items = ssi_recentAttachments(2, array('torrent'), 'array');

if (empty($items))
{
echo '
', $txt['error_sp_no_attachments_found'];
return;
}

echo '
<ul class="sp_list">';

foreach ($items as $item)
echo '
<li style="word-wrap: break-word; max-width: 100%">', sp_embed_image('attach'), ' <a href="', $item['file']['href'], '">',$item['file']['filename'], '</a></li>
<li class="smalltext">', $txt['downloads'], ': ', $item['file']['downloads'], '</li>
<li class="smalltext">', $txt['filesize'], ': ', $item['file']['filesize'], '</li>';

echo '
</ul>';
}
Title: Re: SimplePortal
Post by: dodos26 on April 02, 2022, 02:37:32 PM
Also error: syntax error, unexpected '&', expecting ']'

<?php
{

global $smcFunc$scripturl$modSettings$user_info$txt$context$color_profile$settings$db_prefix;

$list_limit 10;
$category_id_array_list = array(2);

$request $smcFunc['db_query']('''
SELECT
m.poster_time, ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.id_parent, b.name AS board_name, t.num_replies, t.num_views, c.id_cat,
. ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from'
) . '
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)' 
. (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {int:current_member})
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {int:current_member})' 
'') . '
WHERE t.id_board != 0 AND c.id_cat = {array_int:category_id_array}' 
. ($modSettings['postmod_active'] ? '
AND t.approved = {int:approved}
AND m.approved = {int:approved}' 
'') . '
ORDER BY t.id_topic DESC
LIMIT {int:limit}'
,
array(
'approved' => 1,
'limit' => $list_limit,
'category_id_array' => $category_id_array_list,
'current_member' => $user_info['id'],
)
);

$topics = array();
while ($row $smcFunc['db_fetch_assoc']($request))
{
censorText($row['subject']);
$topics[] = $row;
}
$smcFunc['db_free_result']($request);

if (empty($topics))
{
echo $txt['error_sp_no_posts_found'];
return;
}
else
$topics[count($topics) - 1]['is_last'] = true;

$colorids = array();
foreach ($topics as $item)
$colorids[] = $item['id_member'];
sp_loadColors($colorids);

echo '<table class="sp_fullwidth">';

foreach ($topics as $item)
{
$allOfParents = array();
$allOfParents array_reverse(getBoardParents($item['id_parent']));
echo '
<tr>
<td class="sp_recent_icon sp_center">
'
sp_embed_image('topic'), '
</td>
<td class="sp_recent_subject">
<a href="'
$scripturl '?topic=' $item['id_topic'] . '.msg' $item['id_msg'] . ';topicseen#new''">'$item['subject'], '</a> 
'
, !empty($item['is_read']) ? '' '<a href="' $scripturl '?topic=' $item['id_topic'] . '.msg' $item['new_from'] . ';topicseen#new"><img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new.gif" alt="' $txt['new'] . '" border="0" /></a>',
'<br />';
foreach ($allOfParents as $Parents_Data)
{
echo isset($Parents_Data['url']) ? '[<a href="' $Parents_Data['url'] . '">' $Parents_Data['name'] . '</a>]' '[' $Parents_Data['name'] . ']';
echo ' » ';
}
echo '[''<a href="' $scripturl '?board=' $item['id_board'] . '.0">' $item['board_name'] . '</a>'']
</td>
<td class="sp_recent_info sp_right">
'
$color_profile[$item['id_member']]['link'], ' | '$txt['sp-articlesViews'], ': '$item['num_views'], ' | '$txt['sp-articlesComments'], ': '$item['num_replies'], '<br />'timeformat($item['poster_time']), '
</td>
</tr>'
;
}
echo '</table>';

}
?>
Title: Re: SimplePortal
Post by: Arantor on April 02, 2022, 03:02:23 PM
Um, that can't be the code causing the error. Your error message says it found a &, there is no & in that sample.

In any case, SimplePortal has not been maintained in a while... your choices are to upgrade to 2.1 and use the 2.1 version called EhPortal, or move to TinyPortal.
Title: Re: SimplePortal
Post by: dodos26 on April 02, 2022, 03:20:54 PM
U read what i say???
Title: Re: SimplePortal
Post by: Arantor on April 02, 2022, 04:00:38 PM
Yes, yes I did. Unexpected &... in a piece of code that doesn't HAVE a & in it. So it CAN'T be that.
Title: Re: SimplePortal
Post by: dodos26 on April 02, 2022, 04:40:40 PM
I mean, it used to work fine, also if use patch to 18 next to 19 work good, but after clear install it dont work.
It looks like it to me, that a clean update has a function not properly closed somewhere.

I do not intend to go to 2.1 is ugly and a huge flop, so the developers working on it promote it so strongly, including closing the modification only for 2.1 (I know that older versions are hardly available for the average person but also not developed.).

And yes i try 2.3.8 but always get this:
Table 'dbname.sob_sp_blocks' doesn't exist
Plik: /home/www2/www3/smf/Packages/temp/smf2/install.php
Linia: 30
Title: Re: SimplePortal
Post by: dodos26 on April 02, 2022, 06:16:52 PM
Installing another clean forum without any modifications right after clean installation and simple portal installation 2.3.7. After uninstalling simple portal 2.3.7 without removing the database and installing simple portal 2.3.8 beta, it gets a forum clone in the php block.

<?php
{

    global 
$smcFunc$scripturl$modSettings$user_info$txt$context$color_profile$settings$db_prefix;

    
$list_limit 10;
    
$category_id_array_list = array(2);

    
$request $smcFunc['db_query']('''
        SELECT
            m.poster_time, ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.id_parent, b.name AS board_name, t.num_replies, t.num_views, c.id_cat,
            ' 
. ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' '
            IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
            IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from'
) . '
        FROM {db_prefix}topics AS t
            INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
            INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
            INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg)
            LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)
            LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)' 
. (!$user_info['is_guest'] ? '
            LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {int:current_member})
            LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {int:current_member})' 
'') . '
        WHERE t.id_board != 0 AND c.id_cat = {array_int:category_id_array}' 
. ($modSettings['postmod_active'] ? '
            AND t.approved = {int:approved}
            AND m.approved = {int:approved}' 
'') . '
        ORDER BY t.id_topic DESC
        LIMIT {int:limit}'
,
        array(
            
'approved' => 1,
            
'limit' => $list_limit,
            
'category_id_array' => $category_id_array_list,
            
'current_member' => $user_info['id'],
        )
    );

    
$topics = array();
    while (
$row $smcFunc['db_fetch_assoc']($request))
    {
        
censorText($row['subject']);
        
$topics[] = $row;
    }
    
$smcFunc['db_free_result']($request);

    if (empty(
$topics))
    {
        echo 
$txt['error_sp_no_posts_found'];
        return;
    }
    else
        
$topics[count($topics) - 1]['is_last'] = true;

    
$colorids = array();
    foreach (
$topics as $item)
        
$colorids[] = $item['id_member'];
    
sp_loadColors($colorids);

    echo 
'<table class="sp_fullwidth">';
    
    foreach (
$topics as $item)
    {
        
$allOfParents = array();
        
$allOfParents array_reverse(getBoardParents($item['id_parent']));
        echo 
'
            <tr>
                <td class="sp_recent_icon sp_center">
                    '
sp_embed_image('topic'), '
                </td>
                <td class="sp_recent_subject">
                    <a href="'
$scripturl '?topic=' $item['id_topic'] . '.msg' $item['id_msg'] . ';topicseen#new''">'$item['subject'], '</a> 
                    '
, !empty($item['is_read']) ? '' '<a href="' $scripturl '?topic=' $item['id_topic'] . '.msg' $item['new_from'] . ';topicseen#new"><img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new.gif" alt="' $txt['new'] . '" border="0" /></a>',
                    
'<br />';
                    foreach (
$allOfParents as $Parents_Data)
                    {
                        echo isset(
$Parents_Data['url']) ? '[<a href="' $Parents_Data['url'] . '">' $Parents_Data['name'] . '</a>]' '[' $Parents_Data['name'] . ']';
                        echo 
' » ';
                    }
                    echo 
'[''<a href="' $scripturl '?board=' $item['id_board'] . '.0">' $item['board_name'] . '</a>'']
                </td>
                <td class="sp_recent_info sp_right">
                    '
$color_profile[$item['id_member']]['link'], ' | '$txt['sp-articlesViews'], ': '$item['num_views'], ' | '$txt['sp-articlesComments'], ': '$item['num_replies'], '<br />'timeformat($item['poster_time']), '
                </td>
            </tr>'
;
    }
    echo 
'</table>';

}
?>

Clear install 2.0.19
xxxxx1.png


Loook here when patching from 2.0.17 to 2.0.19 work good :)
The problem must be in the clean install itself, there is somewhere a function that is not closed properly.
xxxxx.png


I try also now 2.0.18 clear install and work good.
I try also 2.0.18 and patch to 2.0.19 and work good.
Title: Re: SimplePortal
Post by: dodos26 on April 03, 2022, 05:53:21 AM
Testing further and found that installing smf 2.0.18 and installing a simple portal 2.3.7
The php block will work fine, will also work fine after patching to smf 2.0.19
It will work even after uninstalling and reinstalling simpleportal 2.3.7
But if, when uninstalling simple portal, you select to remove entries in the database, after reinstalling, adding a block will bring up a window in a window.
Title: Re: SimplePortal
Post by: dodos26 on April 03, 2022, 06:23:43 AM
Yeah i found error before updating smf to 2.0.19 block in the database looks like this:

&lt;?php
{

    global $smcFunc, $scripturl, $modSettings, $user_info, $txt, $context, $color_profile, $settings, $db_prefix;

    $list_limit = 10;
    $category_id_array_list = array(2);

    $request = $smcFunc[&#039;db_query&#039;](&#039;&#039;, &#039;
        SELECT
            m.poster_time, ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.id_parent, b.name AS board_name, t.num_replies, t.num_views, c.id_cat,
            &#039; . ($user_info[&#039;is_guest&#039;] ? &#039;1 AS is_read, 0 AS new_from&#039; : &#039;
            IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) &gt;= m.id_msg_modified AS is_read,
            IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from&#039;) . &#039;
        FROM {db_prefix}topics AS t
            INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
            INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
            INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg)
            LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)
            LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)&#039; . (!$user_info[&#039;is_guest&#039;] ? &#039;
            LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {int:current_member})
            LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {int:current_member})&#039; : &#039;&#039;) . &#039;
        WHERE t.id_board != 0 AND c.id_cat = {array_int:category_id_array}&#039; . ($modSettings[&#039;postmod_active&#039;] ? &#039;
            AND t.approved = {int:approved}
            AND m.approved = {int:approved}&#039; : &#039;&#039;) . &#039;
        ORDER BY t.id_topic DESC
        LIMIT {int:limit}&#039;,
        array(
            &#039;approved&#039; =&gt; 1,
            &#039;limit&#039; =&gt; $list_limit,
            &#039;category_id_array&#039; =&gt; $category_id_array_list,
            &#039;current_member&#039; =&gt; $user_info[&#039;id&#039;],
        )
    );

    $topics = array();
    while ($row = $smcFunc[&#039;db_fetch_assoc&#039;]($request))
    {
        censorText($row[&#039;subject&#039;]);
        $topics[] = $row;
    }
    $smcFunc[&#039;db_free_result&#039;]($request);

    if (empty($topics))
    {
        echo $txt[&#039;error_sp_no_posts_found&#039;];
        return;
    }
    else
        $topics[count($topics) - 1][&#039;is_last&#039;] = true;

    $colorids = array();
    foreach ($topics as $item)
        $colorids[] = $item[&#039;id_member&#039;];
    sp_loadColors($colorids);

    echo &#039;&lt;table class=&quot;sp_fullwidth&quot;&gt;&#039;;
   
    foreach ($topics as $item)
    {
        $allOfParents = array();
        $allOfParents = array_reverse(getBoardParents($item[&#039;id_parent&#039;]));
        echo &#039;
            &lt;tr&gt;
                &lt;td class=&quot;sp_recent_icon sp_center&quot;&gt;
                    &#039;, sp_embed_image(&#039;topic&#039;), &#039;
                &lt;/td&gt;
                &lt;td class=&quot;sp_recent_subject&quot;&gt;
                    &lt;a href=&quot;&#039;, $scripturl . &#039;?topic=&#039; . $item[&#039;id_topic&#039;] . &#039;.msg&#039; . $item[&#039;id_msg&#039;] . &#039;;topicseen#new&#039;, &#039;&quot;&gt;&#039;, $item[&#039;subject&#039;], &#039;&lt;/a&gt;
                    &#039;, !empty($item[&#039;is_read&#039;]) ? &#039;&#039; : &#039;&lt;a href=&quot;&#039; . $scripturl . &#039;?topic=&#039; . $item[&#039;id_topic&#039;] . &#039;.msg&#039; . $item[&#039;new_from&#039;] . &#039;;topicseen#new&quot;&gt;&lt;img src=&quot;&#039; . $settings[&#039;images_url&#039;] . &#039;/&#039; . $context[&#039;user&#039;][&#039;language&#039;] . &#039;/new.gif&quot; alt=&quot;&#039; . $txt[&#039;new&#039;] . &#039;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&#039;,
                    &#039;&lt;br /&gt;&#039;;
                    foreach ($allOfParents as $Parents_Data)
                    {
                        echo isset($Parents_Data[&#039;url&#039;]) ? &#039;[&lt;a href=&quot;&#039; . $Parents_Data[&#039;url&#039;] . &#039;&quot;&gt;&#039; . $Parents_Data[&#039;name&#039;] . &#039;&lt;/a&gt;]&#039; : &#039;[&#039; . $Parents_Data[&#039;name&#039;] . &#039;]&#039;;
                        echo &#039; » &#039;;
                    }
                    echo &#039;[&#039;, &#039;&lt;a href=&quot;&#039; . $scripturl . &#039;?board=&#039; . $item[&#039;id_board&#039;] . &#039;.0&quot;&gt;&#039; . $item[&#039;board_name&#039;] . &#039;&lt;/a&gt;&#039;, &#039;]
                &lt;/td&gt;
                &lt;td class=&quot;sp_recent_info sp_right&quot;&gt;
                    &#039;, $color_profile[$item[&#039;id_member&#039;]][&#039;link&#039;], &#039; | &#039;, $txt[&#039;sp-articlesViews&#039;], &#039;: &#039;, $item[&#039;num_views&#039;], &#039; | &#039;, $txt[&#039;sp-articlesComments&#039;], &#039;: &#039;, $item[&#039;num_replies&#039;], &#039;&lt;br /&gt;&#039;, timeformat($item[&#039;poster_time&#039;]), &#039;
                &lt;/td&gt;
            &lt;/tr&gt;&#039;;
    }
    echo &#039;&lt;/table&gt;&#039;;

}
?&gt;

After update to 2.0.19 block in database look like this:
&lt;?php
{

    global $smcFunc, $scripturl, $modSettings, $user_info, $txt, $context, $color_profile, $settings, $db_prefix;

    $list_limit = 10;
    $category_id_array_list = array(2);

    $request = $smcFunc[&#39;db_query&#39;](&#39;&#39;, &#39;
        SELECT
            m.poster_time, ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.id_parent, b.name AS board_name, t.num_replies, t.num_views, c.id_cat,
            &#39; . ($user_info[&#39;is_guest&#39;] ? &#39;1 AS is_read, 0 AS new_from&#39; : &#39;
            IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) &gt;= m.id_msg_modified AS is_read,
            IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from&#39;) . &#39;
        FROM {db_prefix}topics AS t
            INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
            INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
            INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg)
            LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)
            LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)&#39; . (!$user_info[&#39;is_guest&#39;] ? &#39;
            LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {int:current_member})
            LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {int:current_member})&#39; : &#39;&#39;) . &#39;
        WHERE t.id_board != 0 AND c.id_cat = {array_int:category_id_array}&#39; . ($modSettings[&#39;postmod_active&#39;] ? &#39;
            AND t.approved = {int:approved}
            AND m.approved = {int:approved}&#39; : &#39;&#39;) . &#39;
        ORDER BY t.id_topic DESC
        LIMIT {int:limit}&#39;,
        array(
            &#39;approved&#39; =&gt; 1,
            &#39;limit&#39; =&gt; $list_limit,
            &#39;category_id_array&#39; =&gt; $category_id_array_list,
            &#39;current_member&#39; =&gt; $user_info[&#39;id&#39;],
        )
    );

    $topics = array();
    while ($row = $smcFunc[&#39;db_fetch_assoc&#39;]($request))
    {
        censorText($row[&#39;subject&#39;]);
        $topics[] = $row;
    }
    $smcFunc[&#39;db_free_result&#39;]($request);

    if (empty($topics))
    {
        echo $txt[&#39;error_sp_no_posts_found&#39;];
        return;
    }
    else
        $topics[count($topics) - 1][&#39;is_last&#39;] = true;

    $colorids = array();
    foreach ($topics as $item)
        $colorids[] = $item[&#39;id_member&#39;];
    sp_loadColors($colorids);

    echo &#39;&lt;table class=&quot;sp_fullwidth&quot;&gt;&#39;;
   
    foreach ($topics as $item)
    {
        $allOfParents = array();
        $allOfParents = array_reverse(getBoardParents($item[&#39;id_parent&#39;]));
        echo &#39;
            &lt;tr&gt;
                &lt;td class=&quot;sp_recent_icon sp_center&quot;&gt;
                    &#39;, sp_embed_image(&#39;topic&#39;), &#39;
                &lt;/td&gt;
                &lt;td class=&quot;sp_recent_subject&quot;&gt;
                    &lt;a href=&quot;&#39;, $scripturl . &#39;?topic=&#39; . $item[&#39;id_topic&#39;] . &#39;.msg&#39; . $item[&#39;id_msg&#39;] . &#39;;topicseen#new&#39;, &#39;&quot;&gt;&#39;, $item[&#39;subject&#39;], &#39;&lt;/a&gt;
                    &#39;, !empty($item[&#39;is_read&#39;]) ? &#39;&#39; : &#39;&lt;a href=&quot;&#39; . $scripturl . &#39;?topic=&#39; . $item[&#39;id_topic&#39;] . &#39;.msg&#39; . $item[&#39;new_from&#39;] . &#39;;topicseen#new&quot;&gt;&lt;img src=&quot;&#39; . $settings[&#39;images_url&#39;] . &#39;/&#39; . $context[&#39;user&#39;][&#39;language&#39;] . &#39;/new.gif&quot; alt=&quot;&#39; . $txt[&#39;new&#39;] . &#39;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&#39;,
                    &#39;&lt;br /&gt;&#39;;
                    foreach ($allOfParents as $Parents_Data)
                    {
                        echo isset($Parents_Data[&#39;url&#39;]) ? &#39;[&lt;a href=&quot;&#39; . $Parents_Data[&#39;url&#39;] . &#39;&quot;&gt;&#39; . $Parents_Data[&#39;name&#39;] . &#39;&lt;/a&gt;]&#39; : &#39;[&#39; . $Parents_Data[&#39;name&#39;] . &#39;]&#39;;
                        echo &#39; » &#39;;
                    }
                    echo &#39;[&#39;, &#39;&lt;a href=&quot;&#39; . $scripturl . &#39;?board=&#39; . $item[&#39;id_board&#39;] . &#39;.0&quot;&gt;&#39; . $item[&#39;board_name&#39;] . &#39;&lt;/a&gt;&#39;, &#39;]
                &lt;/td&gt;
                &lt;td class=&quot;sp_recent_info sp_right&quot;&gt;
                    &#39;, $color_profile[$item[&#39;id_member&#39;]][&#39;link&#39;], &#39; | &#39;, $txt[&#39;sp-articlesViews&#39;], &#39;: &#39;, $item[&#39;num_views&#39;], &#39; | &#39;, $txt[&#39;sp-articlesComments&#39;], &#39;: &#39;, $item[&#39;num_replies&#39;], &#39;&lt;br /&gt;&#39;, timeformat($item[&#39;poster_time&#39;]), &#39;
                &lt;/td&gt;
            &lt;/tr&gt;&#39;;
    }
    echo &#39;&lt;/table&gt;&#39;;

}
?&gt;

The difference is that old is all &#039; after update is &#39;
test.png


After changing the code to the old one in the database, it works fine.
Now how fix it where fix it in code.
Or you can insert regular code without replacing " ' " to " &#039 ".

Code ("/Soucres/PortalAdminBlocks.php (608)") Select
        if (!isset($_POST['block_name']) || $smcFunc['htmltrim']($smcFunc['htmlspecialchars']($_POST['block_name']), ENT_QUOTES) === '')
Code ("/Soucres/PortalBlocks.php (3587)") Select
    $content = trim(un_htmlspecialchars($content));

<!--  2.0.19 updates for Load.php  -->
<file name="$sourcedir/Load.php">
<operation>
<search position="replace">
<![CDATA[ return $fix_utf8mb4($ent_check(htmlspecialchars($string, $quote_style, $utf8 ? 'UTF-8' : $charset))); ]]>
</search>
<add>
<![CDATA[ return $fix_utf8mb4($ent_check(htmlspecialchars($string, $quote_style, $utf8 ? 'UTF-8' : $charset), true)); ]]>
</add>
</operation>
</file>
Title: Re: SimplePortal
Post by: dodos26 on April 03, 2022, 07:43:44 AM
Fix the problem with custom blocks:
Found:
Code ("/Soucres/PortalBlocks.php (3587)") Select
$content = trim(un_htmlspecialchars($content));Replace:
$content = trim(htmlspecialchars_decode($content, ENT_QUOTES));
Title: Re: SimplePortal
Post by: Oldiesmann on April 04, 2022, 01:30:30 AM
What exactly is a "huge flop" about 2.1? It has numerous improvements over 2.0.
Title: Re: SimplePortal
Post by: Steve on April 04, 2022, 08:10:56 AM
Don't you just love it when people who don't know what they're talking about make generalized criticisms like that?  ::)
Title: Re: SimplePortal
Post by: Plus on July 13, 2022, 06:31:00 AM
we miss...
Title: Re: SimplePortal
Post by: greddy on September 10, 2022, 02:03:42 PM
Hello,

can anyone tell me if SimplePortal 2.3.7 works with PHP 8.1 ?

Greets, Peter
Title: Re: SimplePortal
Post by: Doug Heffernan on September 10, 2022, 02:09:19 PM
Quote from: greddy on September 10, 2022, 02:03:42 PMHello,

can anyone tell me if SimplePortal 2.3.7 works with PHP 8.1 ?

Greets, Peter

Hello Peter,

The mod is free. You can also download it and test it for yourself :)
Title: Re: SimplePortal
Post by: greddy on September 10, 2022, 05:02:26 PM

Hello,

long time i use it with php7 and when i try php8 nothing is working.
This is the reason i ask but now i remove it and the result is the same,
the problem is not the Simple-Portal ... :)

i must search again which mod the problem is.

Thanks for answer

Greets, Peter
Title: Re: SimplePortal
Post by: -Rock Lee- on September 10, 2022, 09:11:04 PM
SMF 2.0.x does not work correctly with PHP 8.x, any mod that works correctly with the PHP 7.x branch usually works or generates an error log telling you what the problem is (in most it is due to writing or function).


Regards!
Title: Re: SimplePortal
Post by: Dave J on September 11, 2022, 03:04:13 AM
This portal has now been superceded by EHPortal which works with SMF2.1, the latest version can be found here
Quotehttps://web-develop.ca/index.php?action=downloads;area=stable_eh_portal
Title: Re: SimplePortal
Post by: dodos26 on September 14, 2022, 04:21:18 PM
Quote from: Dave J on September 11, 2022, 03:04:13 AMThis portal has now been superceded by EHPortal which works with SMF2.1, the latest version can be found here
Quotehttps://web-develop.ca/index.php?action=downloads;area=stable_eh_portal


Nobody wants to use 2.1 so much since for every problem only the developers always inform about going to 2.1?  :O  ;D  ;D
Title: Re: SimplePortal
Post by: assemblytube on November 14, 2022, 08:31:16 AM
Quote from: dodos26 on April 03, 2022, 07:43:44 AMFix the problem with custom blocks:
Found:
Code ("/Soucres/PortalBlocks.php (3587)") Select
$content = trim(un_htmlspecialchars($content));Replace:
$content = trim(htmlspecialchars_decode($content, ENT_QUOTES));

I too have been having problems with custom blocks and syntax errors which seem to have started when I upgraded to SMF 2.0.19
.
When I look at the code line referred to above
Code ("/Sources/PortalBlocks.php (3587)") Select
$content = trim(un_htmlspecialchars($content));
I see in my setup
Code ("/Sources/PortalBlocks.php (3592)") Select
$content = sp_decode(trim(un_htmlspecialchars($content)));
I have tried editing this piece of code to get rid of the syntax errors but have so far not managed to get rid of the syntax errors. I don't know why my code is different to author=dodos26 code above and don't know if altering it would remove the syntax errors I am getting. I feel dodos26 is on the right lines. Can anyone suggest how I can fix the syntax errors I am getting by altering PortalBlocks.php.
Thank you.
Title: Re: SimplePortal
Post by: dodos26 on November 14, 2022, 03:07:45 PM
U use Simpleportal 2.3.7 or Beta Simple Portal 2.3.8?
sp_decode I find in beta 2.3.8.

Install 2.3.7 and make the changes I wrote about.
Title: Re: SimplePortal
Post by: assemblytube on November 15, 2022, 05:57:27 AM
Quote from: dodos26 on November 14, 2022, 03:07:45 PMU use Simpleportal 2.3.7 or Beta Simple Portal 2.3.8?
sp_decode I find in beta 2.3.8.

Install 2.3.7 and make the changes I wrote about.
Thank you dodos26. You are correct that I am using Beta Simple Portal 2.3.8.
I installed this because the creator of that version says it fixes the following problems in SMF 2.0.18

+ Added option to disable PHP eval() function in favor of temporary PHP file creation.
+ Added option to enable an escape/backslash filter for PHP/HTML block code output.
+ Added option to purge PHP block temp folder
! Fixed decoding of character entities for HTML & PHP blocks.
+ Dynamically add $context['html_headers'] content from PHP blocks/pages.
! Fixed parsing error in installation due to recent changes in SMF.
! Fixed escaped Unicode characters for shoutbox input.
! Fixed MySQL reserved column name of "row" changed to "rowx".
! Copyright injection updated due to more recent changes in SMF.
! Changed: moved some block options to block settings
- Removed SMF 1.1.X branch support.
- Removed obsolete extra utf8 language files (all language files are UTF8)

So I am reluctant to go to Simpleportal 2.3.7 in case I then have to solve problems fixed by Beta 2.3.8.
Seems like there are problems with both simpleportal 2.3.7 and 2.3.8 from what I can understand. I am hoping there is a way to have Simpleportal with zero problems. Best wishes.
Title: Re: SimplePortal
Post by: dodos26 on November 15, 2022, 11:09:35 AM
Theoretically, this shouldn't be a problem either in 2.3.8
This change:
$content = sp_decode(trim(un_htmlspecialchars($content)));to
$content = trim(htmlspecialchars_decode($content, ENT_QUOTES));
I haven't tested it but you can test it, don't forget to back up this file.

Edit:
I tested clean 2.3.8 beta now and I have no errors there. It seems you just have to copy all the php code from the block then remove it and create a new php block.
Because the php code in the database is written incorrectly and contains set characters " ' ' ' ' ". Due to a bad save before the update.


Edit #2:
Still, I encourage you to use the native php functions I wrote above instead of running the additional functions written in 2.3.8
Title: Re: SimplePortal
Post by: assemblytube on November 16, 2022, 06:33:44 AM
Hi Dodos26.

I made the change you suggested in simpleportal 2.3.8 portalblocks.php and custom php blocks now work.

For anyone else doing this, there are 2 lines in simpleportal 2.3.8 portalblocks.php that need to be changed.
(I believe simpleportal 2.3.8 adds extra lines of code to simpleportal 2.3.7.)
In my setup they were lines 3592, and 3635 that I changed exactly as Dodos26 says above.

Thank you so much for your help on this Dodos26. Very much appreciated. Best wishes.
Title: Re: SimplePortal
Post by: dodos26 on December 09, 2022, 03:14:04 PM
Hey, all!
I fix problem with User_Info / Login_Menu block. This block went beyond its area and did not have any responsiveness.
You can use it also as a custom php block load style using html <style>selector and remove function name in php code "function sp_userInfo($parameters, $id, $return_parameters = false)"

#1 Open Themes/default/css and open file portal.css and insert:
.sp_user_info_name
{
    display: flex;
    flex-direction: column;
    margin-bottom: 3%;
}
.sp_user_info_padding
{
    padding-bottom: 1%;
}
.sp_user_info_password
{
    display: flex;
    flex-direction: column;
    margin-bottom: 8%;
}
.sp_user_info_submit
{
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    margin-bottom: 4%;
    scale: 98%;
}
#2 Faster open Sources/PortalBlocks.php find function function sp_userInfo($parameters, $id, $return_parameters = false) and replace to:
function sp_userInfo($parameters, $id, $return_parameters = false)
{
    global $context, $txt, $scripturl, $memberContext, $modSettings, $user_info, $color_profile, $settings;

    $block_parameters = array();

    if ($return_parameters)
        return $block_parameters;

    echo '
                                <div class="sp_center sp_fullwidth">';

    if ($context['user']['is_guest'])
    {
        echo '
                                    <script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/sha1.js"></script>
                                    <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', ' >
                                        <div>
                                            <div class="sp_user_info_name">
                                                <label for="sp_user" class="sp_user_info_padding">', $txt['username'], ':</label>
                                                <input type="text" id="sp_user" name="user" size="9" value="', !empty($user_info['username']) ? $user_info['username'] : '', '" />
                                            </div><div class="sp_user_info_password">
                                                <label for="sp_passwrd" class="sp_user_info_padding">', $txt['password'], ':</label>
                                                <input type="password" name="passwrd" id="sp_passwrd" size="9" />
                                            </div><div class="sp_user_info_submit">
                                                <select name="cookielength">
                                                    <option value="60">', $txt['one_hour'], '</option>
                                                    <option value="1440">', $txt['one_day'], '</option>
                                                    <option value="10080">', $txt['one_week'], '</option>
                                                    <option value="43200">', $txt['one_month'], '</option>
                                                    <option value="-1" selected="selected">', $txt['forever'], '</option>
                                                </select>
                                                <input type="submit" value="', $txt['login'], '" class="button_submit" />
                                            </div>
                                        </div>
                                        <input type="hidden" name="hash_passwrd" value="" />
                                        <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
                                    </form>', sprintf($txt['welcome_guest'], $txt['guest_title']);
    }
    else
    {
        loadMemberData($user_info['id']);
        loadMemberContext($user_info['id'], true);

        $member_info = $memberContext[$user_info['id']];

        if (sp_loadColors($member_info['id']) !== false)
            $member_info['colored_name'] = $color_profile[$member_info['id']]['colored_name'];

        $member_info['karma']['total'] = $member_info['karma']['good'] - $member_info['karma']['bad'];

        echo '
                                    ', strtolower($member_info['name']) === 'okarin' ? 'Okae-Rin, ' : $txt['hello_member'], ' <strong>', !empty($member_info['colored_name']) ? $member_info['colored_name'] : $member_info['name'], '</strong>
                                    <br /><br />';

        if (!empty($member_info['avatar']['image']))
            echo '
                                    <a href="', $scripturl, '?action=profile;u=', $member_info['id'], '">', $member_info['avatar']['image'], '</a><br /><br />';

        if (!empty($member_info['group']))
            echo '
                                    ', $member_info['group'], '<br />';
        else
            echo '
                                    ', $member_info['post_group'], '<br />';

        echo '
                                    ', $member_info['group_stars'], '<br />';

        echo '
                                    <br />
                                    <ul class="sp_list">';

        echo '
                                        <li>', sp_embed_image('dot'), ' <strong>', $txt['posts'], ':</strong> ', $member_info['posts'], '</li>';

        if (!empty($modSettings['karmaMode']))
        {
            echo '
                                        <li>', sp_embed_image('dot'), ' <strong>', $modSettings['karmaLabel'], '</strong> ';

            if ($modSettings['karmaMode'] == 1)
                echo $member_info['karma']['total'];
            elseif ($modSettings['karmaMode'] == 2)
                echo '+', $member_info['karma']['good'], '/-', $member_info['karma']['bad'];

            echo '</li>';
        }

        if (allowedTo('pm_read'))
        {
            echo '
                                        <li>', sp_embed_image('dot'), ' <strong>', $txt['sp-usertmessage'], ':</strong> <a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a></li>
                                        <li>', sp_embed_image('dot'), ' <strong>', $txt['sp-usernmessage'], ':</strong> ', $context['user']['unread_messages'], '</li>';
        }

        echo '
                                        <li>', sp_embed_image('dot'), ' <a href="', $scripturl, '?action=unread">', $txt['unread_topics_visit'], '</a></li>
                                        <li>', sp_embed_image('dot'), ' <a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a></li>';

        echo '
                                    </ul>
                                    <br />';

        echo '
                                    ', sp_embed_image('arrow'), ' <a href="', $scripturl, '?action=profile">', $txt['profile'], '</a> ', sp_embed_image('arrow'), ' <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', $txt['logout'], '</a>';
    }

    echo '
                                </div>';
}

Effects:
xxx.png

I also have a fixed calendar and style selection when the preview image is too large. But nobody asks :D
Title: Re: SimplePortal
Post by: DeadMan... on January 08, 2023, 02:53:41 PM
Is there going to be an update for this for the 2.1.x line?
I'd really hate to try to work with a different portal, especially since so used to SP.
Title: Re: SimplePortal
Post by: vbgamer45 on January 08, 2023, 09:54:39 PM
eHPortal is a 2.1 port with some changes
https://web-develop.ca/index.php?action=downloads;area=stable_eh_portal;file=2
Title: Re: SimplePortal
Post by: DeadMan... on January 09, 2023, 05:35:31 AM
I tried that and there's issues with the pages function.
I have SP running on an ElkArte forum with PHP pages and when tried them on EhPortal, they wont work, no matter what try with the PHP settings in Block Settings page. That's why was hoping SP would be updated.
Title: Re: SimplePortal
Post by: vbgamer45 on January 09, 2023, 06:39:43 AM
Not likely at this point. I would report that issue on the EhPortal site.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on April 23, 2023, 04:08:32 PM
SP appears to be the only portal that allows a post to be sent to portal block as article.  I've tried TP, Light Portal, ezPortal, none of them do it.  I see EhPortal on github, does it have this feature?  Will it work in 2.0?
Title: Re: SimplePortal
Post by: Arantor on April 23, 2023, 04:11:29 PM
EhPortal is the 2.1 version of SP.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on April 23, 2023, 04:14:31 PM
Is the github d/l a stable release?  Where is it supported?
Title: Re: SimplePortal
Post by: Arantor on April 23, 2023, 04:18:30 PM
I have no idea if it's stable, but support will be found at Chen Zhen's place - https://web-develop.ca/
Title: Re: SimplePortal
Post by: Sir Osis of Liver on April 23, 2023, 04:24:59 PM
Ok, will try it.  Thanks.
Title: Re: SimplePortal
Post by: Chen Zhen on April 23, 2023, 05:39:32 PM
EhPortal will not work for the SMF 2.0 branch & SimplePortal has not been updated in a while.
I released a beta update version for SimplePortal some time ago but it had 1 bug report that I neglected to fix as of yet. You can look back in this thread for a possible edit to it until I can do that fix.

I haven't been around much for the last 1.5 years or so.
Life just keeps me busy but I'm still here & plan to keep a few mods supported as long as SMF is still kicking. Perhaps I'll look at that one bug report & put up another beta release tonight as it looks like a simple fix.

You can also put in a request at TP for what you're referring to. The devs were still active for that portal last I checked. They might be able to help you out.



Title: Re: SimplePortal
Post by: Sir Osis of Liver on April 23, 2023, 06:13:44 PM
I've installed EH on 2.1 test install, doesn't have the "ADD AS ARTICLE" feature from SP.  Looks good otherwise, but my guy needs that, so we'll probably stay in 2.0.
Title: Re: SimplePortal
Post by: Oldiesmann on April 23, 2023, 10:03:13 PM
What does that feature do again? It's been so long since I've used SP (I upgraded to 2.1 and went with TinyPortal)
Title: Re: SimplePortal
Post by: Chen Zhen on April 23, 2023, 11:19:44 PM

Here is a bug fix update for SimplePortal 2.3.8-Beta:
https://simpleportal.net/index.php?action=downloads;area=stable_beta_packages;file=147

Title: Re: SimplePortal
Post by: Sir Osis of Liver on April 24, 2023, 12:59:50 PM
I've installed EH on a 2.1 install that's connected to a database that contains SP tables.  Good news is it's inherited the block content, bad news is homepage is blank.

Update:  Installs correctly when I remove the 2.0 SP tables. 
Title: Re: SimplePortal
Post by: Sir Osis of Liver on April 24, 2023, 01:34:19 PM
Quote from: Oldiesmann on April 23, 2023, 10:03:13 PMWhat does that feature do again?

Board posts are sent to portal block as articles.  It's a main feature of homepage, so we'll have to stay with 2.0.

Title: Re: SimplePortal
Post by: Chen Zhen on April 24, 2023, 06:50:42 PM
All SP blocks should work for EHPortal. When I ported it nothing regarding block or page content was changed dB table/column wise except for reserved name usage which was part of the reason I released SP 2.3.8.

Send me some links in a PM regarding the website you're working on & I can take a quick look if you want.
Title: Re: SimplePortal
Post by: dodos26 on April 25, 2023, 10:07:23 AM
This is an entity problem. When data saved/changed in db. If you changes block names or use custom php html you may experience this problem.
Title: Re: SimplePortal
Post by: tinoest on April 25, 2023, 11:08:18 AM
Quote from: Sir Osis of Liver on April 24, 2023, 01:34:19 PM
Quote from: Oldiesmann on April 23, 2023, 10:03:13 PMWhat does that feature do again?

Board posts are sent to portal block as articles.  It's a main feature of homepage, so we'll have to stay with 2.0.



FYI; You can have board posts displayed on the front page in TinyPortal. There is a promote to frontpage button.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on April 25, 2023, 05:23:14 PM
Not seeing that.  Where is it?
Title: Re: SimplePortal
Post by: @rjen on April 25, 2023, 05:33:59 PM
https://www.tinyportal.net/docs/index.php?page=Frontpage-settings

Set the Frontpage to show Promoted topics. A button will then appear in the forum topics that allows you to promote specific topics to the Frontpage...
Title: Re: SimplePortal
Post by: dodos26 on April 25, 2023, 06:03:04 PM
A man wants to use simpleportal and you tell him to use something else. Why?
Title: Re: SimplePortal
Post by: Sir Osis of Liver on April 25, 2023, 06:14:33 PM
I've installed TP on 2.1 clone, have asked owner to see if it meets his requirements.  Thanks.

Quote from: dodos26 on April 25, 2023, 06:03:04 PMA man wants to use simpleportal and you tell him to use something else. Why?
If you bothered to read the topic, you'd know we're in need of a 2.1 portal that has the add to frontpage feature.  SP does not support 2.1, and it's unlikely it will be upgraded.
Title: Re: SimplePortal
Post by: DeadMan... on April 25, 2023, 06:16:08 PM
Quote from: dodos26 on April 25, 2023, 06:03:04 PMA man wants to use simpleportal and you tell him to use something else. Why?
Because, there's no SimplePortal version for SMF 2.1.x

That's why.
You'd have seen the discussion if you'd have read a bit.
Title: Re: SimplePortal
Post by: Arantor on April 25, 2023, 07:18:23 PM
Quote from: dodos26 on April 25, 2023, 06:03:04 PMA man wants to use simpleportal and you tell him to use something else. Why?

Because SP isn't supported any more, and the choices are LP, TP or a fork of SP that doesn't necessarily have the features the person is asking for. TP at least seems to have the feature being asked about.
Title: Re: SimplePortal
Post by: dodos26 on April 26, 2023, 09:46:59 AM
Quote from: Sir Osis of Liver on April 25, 2023, 06:14:33 PMI've installed TP on 2.1 clone, have asked owner to see if it meets his requirements.  Thanks.

Quote from: dodos26 on April 25, 2023, 06:03:04 PMA man wants to use simpleportal and you tell him to use something else. Why?
If you bothered to read the topic, you'd know we're in need of a 2.1 portal that has the add to frontpage feature.  SP does not support 2.1, and it's unlikely it will be upgraded.


I went to as much trouble as the developers in the 2.0 department. In which my topic with security holes was considered redundant and to install 2.1. I went to as much trouble as the developers reading that I don't want 2.1. :)))
Title: Re: SimplePortal
Post by: Arantor on April 26, 2023, 10:09:01 AM
So you just admit you're trolling because you didn't like the answer you got?
Title: Re: SimplePortal
Post by: Sir Osis of Liver on April 26, 2023, 12:45:23 PM
Quote from: dodos26 on April 26, 2023, 09:46:59 AMI went to as much trouble as the developers reading that I don't want 2.1.

As is well known here, I haven't been a big fan of 2.1, and continue to run 2.0 on my own production forums.  But this is a rare case where I'm recommending 2.1 because the owner wants to add multiple forums, each for a different team, so he'll end up with a lot of installs running a basically outdated version, with outdated themes and mods, and it will be a major chore to upgrade everything when 2.0 goes eol.  Much easier to do it now, while we're starting with just one forum.  But he does want to retain the functionality he's currently using, and as noted there is no 2.1 version of SP, and probably never will be.

Title: Re: SimplePortal
Post by: dodos26 on April 28, 2023, 11:39:10 AM
I found some bug in PortalAdminBlocks.php
This is perhaps related to newer versions of mysql
            $request =  $smcFunc['db_query']('','
                SELECT row
                FROM {db_prefix}sp_blocks
                WHERE col = {int:col}' . (!empty($_REQUEST['block_id']) ? '
                    AND id_block != {int:current_id}' : '' ) . '
                ORDER BY row DESC
                LIMIT 1',
                array(
                    'col' => $_POST['block_column'],
                    'current_id' => $_REQUEST['block_id'],
                )
            );

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 'FROM xxx_sp_blocks
WHERE col = 5
ORDER BY row DESC
LIMIT 1' at line 2
Plik: C:\wamp64\www\Sources\PortalAdminBlocks.php
Linia: 680

When fix row to `row` it will start working fine. Probably all rows should be replaced to avoid problems arising from the use of the keyword.
$request = $smcFunc['db_query']('','
    SELECT `row`
    FROM {db_prefix}sp_blocks
    WHERE col = {int:col}' . (!empty($_REQUEST['block_id']) ? '
        AND id_block != {int:current_id}' : '' ) . '
    ORDER BY `row` DESC
    LIMIT 1',
    array(
        'col' => $_POST['block_column'],
        'current_id' => $_REQUEST['block_id'],
    )
);


Yeah i found it
"The "ROW" keyword in MySQL was added in version 8.0.23."
Title: Re: SimplePortal
Post by: dodos26 on May 06, 2023, 11:11:16 AM
I found the place of the problem after wrong redirection when we use some non-standard parameters. Example fbclid.
Open Subs/PortalMain.php and find:
function sportal_main()
Next find:
    global $smcFunc, $context, $sourcedir;and replace:
    global $smcFunc, $context, $sourcedir, $modSettings;Next find:
    if (!isset($_REQUEST['sa']) || !isset($actions[$_REQUEST['sa']]))
        $_REQUEST['sa'] = 'articles';

    if (!empty($actions[$_REQUEST['sa']][0]))
        require_once($sourcedir . '/' . $actions[$_REQUEST['sa']][0]);

    $actions[$_REQUEST['sa']][1]();
And replace:
    if (!empty($modSettings['articleactive']))
    {
        if (!isset($_REQUEST['sa']) || !isset($actions[$_REQUEST['sa']]))
            $_REQUEST['sa'] = 'articles';

        if (!empty($actions[$_REQUEST['sa']][0]))
            require_once($sourcedir . '/' . $actions[$_REQUEST['sa']][0]);

        $actions[$_REQUEST['sa']][1]();
    } else redirectexit();

This solution will come in handy when you don't use articles. If you are using articles but there are no articles in them, it is better to disable them. Otherwise, you will receive an error due to the lack of articles, or add a check of how many articles there are on par with if (!empty($modSettings['articleactive'])).
Title: Re: SimplePortal
Post by: dodos26 on May 07, 2023, 12:49:49 PM
Ignore the above message, I didn't delete so you know how to undo the changes.

Read it:
For some reason it worked on my local machine with a standard theme and simple portal modem. It doesn't work!,  on another site it didn't work for me, it kept taking me to the forum page. The real cause lies here: Sources/Subs-Portal.php
Code (find) Select
// Function to get a block's display/show information.
function getShowInfo($block_id = null, $display = null, $custom = null)
Quote// Will hopefully get larger in the future.
Clearly this part of the code is unfinished.
Code (find) Select
    // Will hopefully get larger in the future.
    $portal_actions = array(
        'articles' => true,
        'start' => true,
        'theme' => true,
        'PHPSESSID' => true,
        'wwwRedirect' => true,
        'www' => true,
        'variant' => true,
        'language' => true,
        'action' => array('portal'),
    );

    // Set some action exceptions.
    $exceptions = array(
        'post' => array('announce', 'editpoll', 'emailuser', 'post2', 'sendtopic'),
        'register' => array('activate', 'coppa'),
        'forum' => array('collapse'),
        'admin' => array('credits', 'theme', 'viewquery', 'viewsmfile'),
        'moderate' => array('groups'),
        'login' => array('reminder'),
        'profile' => array('trackip', 'viewprofile'),
    );

    // Still, we might not be in portal!
    if (!empty($_GET) && empty($context['standalone']))
        foreach ($_GET as $key => $value)
        {
            if (preg_match('~^news\d+$~', $key))
                continue;

            if (!isset($portal_actions[$key]))
                $portal = false;
            elseif (is_array($portal_actions[$key]) && !in_array($value, $portal_actions[$key]))
                $portal = false;
        }

How fix? Insert (Probably the safest method, but only for known parameters):
Code (select) Select
    $portal_actions = array(
        'articles' => true,
        'start' => true,
        'theme' => true,
        'PHPSESSID' => true,
        'wwwRedirect' => true,
        'www' => true,
        'variant' => true,
        'language' => true,
        'action' => array('portal'),
    );
Example insert for fbclid:
Code ("Insert: 'fbclid' => true,") Select
    $portal_actions = array(
        'articles' => true,
        'start' => true,
        'theme' => true,
        'PHPSESSID' => true,
        'wwwRedirect' => true,
        'www' => true,
        'variant' => true,
        'language' => true,
        'action' => array('portal'),
        'fbclid' => true,
    );


My question is how to add support for unknown parameters. Many sites these days add tracking parameters to links.
Title: Re: SimplePortal
Post by: Chen Zhen on May 08, 2023, 07:10:56 PM
@dodos26:

BTW the reserved db name issue was fixed in the 2.3.8-BETA release.

You're asking how to put in support to add unique parameters to that array such as your Facebook identifier? One could add an input to the SP admin section to add unique additions to that array.
You have at least one mod submitted to this forum so perhaps you have the skills to do that on your own?

re. removed as requested.orgFYI - Usually people who remove all copyright links to SMF & its mods on their forum(s) have the ability to code so they aren't asking for support. 

 
Title: Re: SimplePortal
Post by: dodos26 on May 09, 2023, 04:46:01 PM
Bro please remove link to this page she doesn't want publicity. If I've posted a link to this page anywhere, I apologize for that, and point me to where I'll remove it. Your solution seems good, I even thought about it. But I still thought it was just a bug where it didn't check the reserved parameters.

In my case, I don't need to create such a modification since I know where to add it, but as part of my training, because I'm still learning, I'm able to do it for the community.
Title: Re: SimplePortal
Post by: DeadMan... on May 09, 2023, 05:46:46 PM
Quote from: Chen Zhen on May 08, 2023, 07:10:56 PMFYI - Usually people who remove all copyright links to SMF & its mods on their forum(s) have the ability to code so they aren't asking for support.

Isn't it also against ToS to help support with warez sites?
Title: Re: SimplePortal
Post by: Aleksi "Lex" Kilpinen on May 09, 2023, 11:33:43 PM
We don't officially really say one way or the other about your use of SMF, you are free to do what you want with it and the team is free to choose if they want to provide support for your particular use. But we do not usually provide support to sites that remove copyrights from the core product or break licenses of other SMF related products such as modifications. You are allowed to hide the SMF copyright, but doing so means you have chosen not to seek support from us, you may not be allowed at all to remove copyrights from mods depending on their licensing.
Title: Re: SimplePortal
Post by: dodos26 on May 10, 2023, 05:04:09 AM
I sensitize you again before removing the link to my private page.

Also, note that the "help" link is in the "Other" tab. And there is information about the modification of simple portal and simple machines forum. Also, as "Aleksi "Lex" Kilpinen says, the BSD license allows me to modify and use the code in any way I want, and forbids redistribution without preserving the information. It does not redistribute modified code anywhere, and information on how to modify is not a modification or redistribution.

I would also like to mention that I showed a solution to a problem that I spent several hours tracking where it is. Asking for help was just an additional form for which I did not expect an answer, when I expected I would write in the support tab.

By the way, your determined attacks against me through all sorts of reports are amazing. Your determination to cause harm without legal knowledge is downright sad.
Title: Re: SimplePortal
Post by: DeadMan... on May 10, 2023, 08:30:24 AM
You really have not much of sense, do you? I was not attacking, I was merely making a statement due to other topics I have seen where it was stated that support isn't given for sites that have certain things that are not totally legal.

I for one, run a web host, as well as support for a major web host, and sites like that are usually suspended on sight. So, before you start a pity party, you might want to rethink the facts.
Title: Re: SimplePortal
Post by: Aleksi "Lex" Kilpinen on May 10, 2023, 08:36:13 AM
I want to point out this particular part of my post.

Quote from: Aleksi "Lex" Kilpinen on May 09, 2023, 11:33:43 PMdoing so means you have chosen not to seek support from us, you may not be allowed at all to remove copyrights from mods depending on their licensing.

Yes, you are allowed to remove SMF copyright. This means no support though. This does not extend to mods, mods may have legal requirements outside SMF.
Title: Re: SimplePortal
Post by: Steve on May 10, 2023, 08:46:53 AM
That will be enough @dodos26@DeadMan... is correct in his statement that we won't knowingly provide support for sites that promote, provide or use illegal products.

And our Project Manager has addressed the copyright issue.
Title: Re: SimplePortal
Post by: dodos26 on May 10, 2023, 10:40:14 AM
It's amazing this toxic community that made ****** storms in an attempt / willingness to help others.
You don't want to support me, remove my private page from the post.
Not to mention that completely one person started a conversation that is completely unrelated to the content of this topic. When I started a topic not related my posts were deleted within 5 minutes. You guys are acting like a bunch of hypocrites right now.
Title: Re: SimplePortal
Post by: Aleksi "Lex" Kilpinen on May 10, 2023, 10:47:50 AM
Alright, alright. I removed the link, if you want the rest removed please seek them out and report them.
But you should know that public websites are public, it's not a "private page" when anyone can see it.
Also this discussion should end here. Any more and posts will be deleted to clean up this topic.
Title: Re: SimplePortal
Post by: aegersz on July 08, 2023, 05:16:06 AM
HI, I am on version 2.3.6 and I get errors when I just try to preview (no changes) my Custom PHP Block for Recent Topics (see below for the contents). If  I make no changes and save it then the whole thing blows up.

global $txt, $scripturl, $settings, $context, $color_profile;

    $boards = null;
    $limit = 49;
    $type = 'ssi_recentTopics';

    $items = $type($limit, null, $boards, 'array');

    if (empty($items))
    {
        echo '
                                ', $txt['error_sp_no_posts_found'];
        return;
    }
    else
        $items[count($items) - 1]['is_last'] = true;

    $colorids = array();
    foreach ($items as $item)
        $colorids[] = $item['poster']['id'];

    if (!empty($colorids) && sp_loadColors($colorids) !== false)
    {
        foreach ($items as $k => $p)
        {
            if (!empty($color_profile[$p['poster']['id']]['link']))
                $items[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
        }
    }

    echo '
                            <table class="sp_fullwidth">';

    foreach ($items as $item)
        echo '
                                <tr>
                                    <td class="sp_recent_icon sp_center">
                                        ', $item['new'] ? sp_embed_image('topic') : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>',
                                    '</td>
                                    <td class="sp_recent_subject">
                                        <a href="', $item['href'], '">', $item['subject'], '</a><br />[', $item['board']['link'], ']
                                    </td>
                                    <td class="sp_recent_info sp_right">
                                        ', $item['poster']['link'], '<br />', $item['time'], '
                                    </td>
                                </tr>';

    echo '
                            </table>';

The error is:

ParseError: syntax error, unexpected '=' in /var/www/html/Sources/PortalBlocks.php(3644) : eval()'d code:7
Stack trace:
#0 /var/www/html/Themes/default/Portal.template.php(242): sp_php(Array, '39')
#1 /var/www/html/Themes/default/Portal.template.php(148): template_block_curve(Array)
#2 /var/www/html/Themes/default/PortalAdminBlocks.template.php(106): template_block(Array)
#3 /var/www/html/Sources/Load.php(2245): template_block_edit()
#4 /var/www/html/Sources/Subs.php(3027): loadSubTemplate('block_edit')
#5 /var/www/html/index.php(191): obExit(NULL, true, true)
#6 {main}

The only way I can make changes is by editing the actual database entry and that works ok.

Do you know why this is ?

I also see these additional errors in the log:

8: A non well formed numeric value encountered
/var/www/html/Sources/PortalAdminBlocks.php
Line: 430

8: A non well formed numeric value encountered
/var/www/html/Sources/PortalAdminBlocks.php
Line: 421
Title: Re: SimplePortal
Post by: aegersz on July 08, 2023, 06:50:49 AM
Oh, i forgot to add this:

I can use another block to produce the right results so it's not critical - I was just curious if anyone has any thoughts on this bizarre error.
Title: Re: SimplePortal
Post by: Dave J on July 08, 2023, 09:37:32 AM
It's worth noting that Simple Portal has been superseded by Eh Portal (it's basically the same thing) you can find it here and get support for it too

https://web-develop.ca/index.php?action=downloads;area=stable_eh_portal
Title: Re: SimplePortal
Post by: aegersz on July 15, 2023, 01:55:22 PM
Thanks
Title: Re: SimplePortal
Post by: Sir Osis of Liver on August 30, 2023, 10:08:27 PM
Should remember this, but I don't. :(  Has SP been updated to support php 8.0?  Getting create_function() and other mysql errors in 2.3.7.
 
Title: Re: SimplePortal
Post by: Chen Zhen on August 30, 2023, 11:02:46 PM
No it hasn't..  if you're still using the SMF 2.0 branch then you can use version 2.3.8 from the beta/rc download section of SP.

If you're using SMF 2.1 branch then use EhPortal which is a ported version.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on August 30, 2023, 11:06:34 PM
It's a 2.0.19 forum.  I've downgraded php to 7.4, but thst's not a long term solution. 

Does EH Portal work in 2.0?  Does it inherit SP content?  Link to 2.3.8?
Title: Re: SimplePortal
Post by: Chen Zhen on August 31, 2023, 12:26:57 AM
EhPortal inherits everything from SP but it's strictly for the SMF 2.1 branch.

SP 2.3.8 should work for PHP 8.3

SP 2.3.8 Link (https://simpleportal.net/index.php?action=downloads;area=stable_beta_packages;file=147)
Title: Re: SimplePortal
Post by: Sir Osis of Liver on August 31, 2023, 03:59:45 PM
Don't think this guy will upgrade to 2.1, will try 2.3.8.  Thanks, Chen.
Title: Re: SimplePortal
Post by: Chen Zhen on August 31, 2023, 04:43:15 PM
If you have any problems with it just report them here and I'll make adjustments to SP. Include errors from the PHP error log if it's relevant.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 01, 2023, 01:36:52 PM
Will do.  I'll try 2.3.8 tonight.

We're getting this error in 2.3.7 when adding block -


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 'row = row + 1
WHERE col = 1
AND row >= 5' at line 2
Apply Filter: Only show the errors from this file
File: /home/wpsvetsc/public_html/Sources/PortalAdminBlocks.php
Line: 662



                $smcFunc['db_query']('', '
                    UPDATE {db_prefix}sp_blocks
                    SET row = row + 1
                    WHERE col = {int:col}
                        AND row >= {int:start}' . (!empty($current_row) ? '
                        AND row < {int:end}' : ''),
                    array(
                        'col' => (int) $_POST['block_column'],
                        'start' => $row,
                        'end' => !empty($current_row) ? $current_row : 0,
                    )
                );

Title: Re: SimplePortal
Post by: Chen Zhen on September 01, 2023, 07:01:06 PM
That is fixed in 2.3.8 ..
Sinan used "row" as a db column name which became a reserved word in MySQL.
There are a few instances of reserved words that were patched in 2.3.8.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 01, 2023, 09:30:42 PM
2.3.8 doesn't work in php 8.0.  Uninstalled 2.3.7, couple of manual edits in Load.php.  Installed 2.3.8, same edits in Load.php.  Portal crashes with this -


Fatal error: Uncaught Error: Call to undefined function create_function() in /home/wpsvetsc/public_html/Sources/PortalBlocks.php:2029 Stack trace: #0 /home/wpsvetsc/public_html/Sources/Load.php(1652) : eval()'d code(234): sp_rssFeed() #1 /home/wpsvetsc/public_html/Sources/Load.php(1652) : eval()'d code(148): template_block_curve() #2 /home/wpsvetsc/public_html/Sources/Load.php(1652) : eval()'d code(56): template_block() #3 /home/wpsvetsc/public_html/Sources/Load.php(1439): template_portal_above() #4 /home/wpsvetsc/public_html/Sources/Subs.php(3450): loadSubTemplate() #5 /home/wpsvetsc/public_html/Sources/Subs.php(2895): template_header() #6 /home/wpsvetsc/public_html/Sources/Errors.php(337): obExit() #7 /home/wpsvetsc/public_html/Sources/Errors.php(161): setup_fatal_error_context() #8 /home/wpsvetsc/public_html/index.php(131): fatal_error() #9 [internal function]: {closure}() #10 {main} thrown in /home/wpsvetsc/public_html/Sources/PortalBlocks.php on line 2029


Works in php 7.4.
Title: Re: SimplePortal
Post by: Tyrsson on September 01, 2023, 10:22:48 PM
Might be because of:

https://www.php.net/manual/en/function.create-function.php
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 01, 2023, 10:29:27 PM
Yes, it is, but 2.3.8 is supposed to support up to php 8.3.

Quote from: Chen Zhen on August 31, 2023, 12:26:57 AMSP 2.3.8 should work for PHP 8.3



Title: Re: SimplePortal
Post by: Chen Zhen on September 02, 2023, 06:06:23 AM
I thought I remembered replacing those with anonymous functions already.
Anyhow, there is a newer amended file available for you at the same link.
Title: Re: SimplePortal
Post by: Sir Osis of Liver on September 02, 2023, 05:12:23 PM
Installed BETA8, running fine so far in php 8.0.  Thanks again.

Title: Re: SimplePortal
Post by: Sir Osis of Liver on October 09, 2023, 12:30:31 PM
Getting this error in SP 2.3.7 when clicking on block edit button -

 Call to undefined function sportal_admin_block_edit()

Wasn't happening previously.  2.0.19 in php 8.0.
Title: Re: SimplePortal
Post by: dodos26 on October 12, 2023, 03:39:10 PM
To fix use `row` instead row . You will need to do this with many other parts of the code where be db_query request in PortalAdminBlocks.

                $smcFunc['db_query']('', '
                    UPDATE {db_prefix}sp_blocks
                    SET row = row + 1
                    WHERE col = {int:col}
                        AND row >= {int:start}' . (!empty($current_row) ? '
                        AND row < {int:end}' : ''),
                    array(
                        'col' => (int) $_POST['block_column'],
                        'start' => $row,
                        'end' => !empty($current_row) ? $current_row : 0,
                    )
                );

zxc.png
Title: Re: SimplePortal
Post by: Sir Osis of Liver on October 12, 2023, 04:42:05 PM
Shouldn't be necessary, it was working when first installed.  Will uninstall/reinstall, see if it goes away.
Title: Re: SimplePortal
Post by: dodos26 on October 12, 2023, 05:31:33 PM
"ROW" is a reserved word in MySQL starting from version 8.0.3
Change row to `row`
Title: Re: SimplePortal
Post by: Sir Osis of Liver on October 12, 2023, 06:27:39 PM
Uninstall/reinstall fixed it.
Title: Re: SimplePortal
Post by: Jailer on November 20, 2023, 06:40:27 PM
Posting this here since I've tried posting on the EhPortal support thread at webdev and there is something wrong with that forum not allowing me to post.

I'm having a problem with EhPortal on a freshly upgraded 2.1.4 forum. There are no other mods installed. I upgraded the forum from 2.0.19 and installed a fresh set of files before the upgrade was performed. The problem I'm having is when I click on my profile and the Summary page is displayed the age line is blank and the Last Active line is completely missing. Clicking on my profile also genreates 4 errors in the error log. Clicking on any other members profile brings up their summary page with all the information displayed correctly and no errors. If I un install EhPortal the problem goes away and everything works and displays as it should. Any help you can provide would be greatly appreciated.

Here are the errors from the log file.

Error
Type of error
Undefined_vars
Error message
2: Undefined array key "show_last_login"
File
/usr/local/www/nginx/Themes/default/Profile.template.php
Line
429
URL of page causing the error
http://192.168.0.5/index.php?action=profile;u=2
Backtrace information

    #0: smf_error_handler()
    Called from /usr/local/www/nginx/Themes/default/Profile.template.php on line 429
    #1: template_summary()
    Called from /usr/local/www/nginx/Sources/Load.php on line 2778
    #2: loadSubTemplate()
    Called from /usr/local/www/nginx/Sources/Subs.php on line 4214
    #3: obExit()
    Called from /usr/local/www/nginx/index.php on line 187


Error
Type of error
Undefined_vars
Error message
2: Undefined array key "today_is_birthday"
File
/usr/local/www/nginx/Themes/default/Profile.template.php
Line
323
URL of page causing the error
http://192.168.0.5/index.php?action=profile;u=2
Backtrace information

    #0: smf_error_handler()
    Called from /usr/local/www/nginx/Themes/default/Profile.template.php on line 323
    #1: template_summary()
    Called from /usr/local/www/nginx/Sources/Load.php on line 2778
    #2: loadSubTemplate()
    Called from /usr/local/www/nginx/Sources/Subs.php on line 4214
    #3: obExit()
    Called from /usr/local/www/nginx/index.php on line 187


Error
Type of error
Undefined_vars
Error message
2: Undefined array key "age"
File
/usr/local/www/nginx/Themes/default/Profile.template.php
Line
323
URL of page causing the error
http://192.168.0.5/index.php?action=profile;u=2
Backtrace information

    #0: smf_error_handler()
    Called from /usr/local/www/nginx/Themes/default/Profile.template.php on line 323
    #1: template_summary()
    Called from /usr/local/www/nginx/Sources/Load.php on line 2778
    #2: loadSubTemplate()
    Called from /usr/local/www/nginx/Sources/Subs.php on line 4214
    #3: obExit()
    Called from /usr/local/www/nginx/index.php on line 187


Error
Type of error
Undefined_vars
Error message
2: Undefined array key "posts_per_day"
File
/usr/local/www/nginx/Themes/default/Profile.template.php
Line
304
URL of page causing the error
http://192.168.0.5/index.php?action=profile;u=2
Backtrace information

    #0: smf_error_handler()
    Called from /usr/local/www/nginx/Themes/default/Profile.template.php on line 304
    #1: template_summary()
    Called from /usr/local/www/nginx/Sources/Load.php on line 2778
    #2: loadSubTemplate()
    Called from /usr/local/www/nginx/Sources/Subs.php on line 4214
    #3: obExit()
    Called from /usr/local/www/nginx/index.php on line 187


Title: Re: SimplePortal
Post by: WantSome on January 08, 2024, 08:24:52 AM
Hi all,

Hi!

Running 2.0.19, clicked uninstall on Simple Portal in order to reinstall the latest version.  When I tried to uninstall there were no test errors, but it clearly didn't work because I got this error when after I tried to access my forum...

"This page isn't working right nowwww.wantsome.co.uk can't currently handle this request.
HTTP ERROR 500"

I then decided to try 'reinstall' the mod using the manual parse method.  Now I can access the forum, but wherever I click I get the following error:
"An Error Has Occurred!
Call to undefined function sportal_init()"
(the theme is broken too but that might be unrelated)

Could you advise what I can do to fix this?

Thanks
WS
Title: Re: SimplePortal
Post by: WantSome on January 10, 2024, 04:40:42 AM
I figured it out.  Don't mind me.