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
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
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,

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg389.imageshack.us%2Fimg389%2F5709%2Fportal1ek9wv1.jpg&hash=58f231d61a08e310ef9467817934bd11)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg357.imageshack.us%2Fimg357%2F6571%2Fportal2no9.jpg&hash=f101263a175db93e8d2a7239145d7906)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg357.imageshack.us%2Fimg357%2F7702%2Fportal3vc6.jpg&hash=5aea068101479db87211b58eb889e96f)

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
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
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:

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

to

Code: [Select]
<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
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
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
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
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.

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.

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
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
How can I make the text flowing form right to left without blank space, in the Announce block?

SPortal.template.php

Find:

Code: [Select]
<tr class="windowbg" align="center">
Replace:

Code: [Select]
<tr class="windowbg">
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:
Code: [Select]
<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:

Code: [Select]
<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
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.

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:

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

Replace:

Code: [Select]
<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
Quote
I'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
I'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 :

Code: [Select]
Unable to load the 'main' template
error..

Title: Re: SimplePortal
Post by: [SiNaN] on March 16, 2008, 12:29:06 PM
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 :

Code: [Select]
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
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
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

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
Code: [Select]
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
Quote
I have added it to the mod page as SimplePortal_Shop.

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

Brilliant!  Thanks for the add!

Quote
Soon 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:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg168.imageshack.us%2Fimg168%2F1984%2Fgameofdayus6.jpg&hash=540942bdc45fb9b54f3052e5d7c1de8f)
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
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
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:

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

Replace:

Code: [Select]
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
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
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
Quote
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?

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
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
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
any chance of  upgrading to SMF 2?

*[SiNaN] just whistles.

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
any chance of  upgrading to SMF 2?

*[SiNaN] just whistles.

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
any chance of  upgrading to SMF 2?

*[SiNaN] just whistles.

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
any chance of  upgrading to SMF 2?

*[SiNaN] just whistles.

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
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
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
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
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
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
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.

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:

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

And this is the end:

Code: [Select]
...................
<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
Marvelous ! It's super ! Thx a lot !

Not at all. :)

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: Joomlamz on March 23, 2008, 08:46:11 AM
Thank you
i translate for potuguese

download  attach

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi275.photobucket.com%2Falbums%2Fjj306%2Fplilisilva%2FInfomation.gif&hash=b23662c0dae952d9508c2b5d40a30e4c)

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.

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), '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
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.

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
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
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.

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:
Code: [Select]
Line 291    if($modSettings['showboardnews'])
Code: [Select]
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:

Quote
Mod 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
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.

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
Quote
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.)

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
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
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.

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
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
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
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
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
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
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:

Code: [Select]
<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: Joomlamz 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
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
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
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
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
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:

Code: [Select]
array('text', 'aannouncetext'),
Replace:

Code: [Select]
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
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:

Code: [Select]
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:

Quote
8: 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
Quote
ARSENIUM 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
Quote
ARSENIUM 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


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: Joomlamz 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


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.

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
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:

Quote
8: 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?

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
Quote
ARSENIUM 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
Quote
ARSENIUM 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:

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

Replace:

Code: [Select]
/* 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:

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

Code: [Select]
$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>.';

thank update....

translate portuguese Update V1.1


Thanks JoomlaMz, you are the best. ;)

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.

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

 
Code: [Select]
// 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
yes i need to create my own block is possible?

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

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:

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

Add After:

Code: [Select]
// 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.

@[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:

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

Code: [Select]
$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
Code: [Select]
$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
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. :)

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
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.

Code: [Select]
��<�?�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
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
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.

@[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:

Code: [Select]
$_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:


Code: [Select]
$_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

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

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

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

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

Opps. I small mistake. Do this.

../Sources/Subs-Board.php

Find:

Code: [Select]
$_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:


Code: [Select]
$_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!!! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fforum.arseniums.com%2FSmileys%2Fdefault%2F015-ok.gif&hash=72dfc2f4beb0ddfb2a49e4d55191affe)

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
[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.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcp72.org%2Fhostit%2Fimages%2Fss39bkfa1mlnztd96mxa_thumb.png&hash=7a969ddcdc8c73960d287d5313a2a313) (http://cp72.org/hostit/viewer.php?file=ss39bkfa1mlnztd96mxa.png)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcp72.org%2Fhostit%2Fimages%2Ftevxula5mb94i6mvehq_thumb.png&hash=eeb2038ea94443a1aa27041c59ddfeee) (http://cp72.org/hostit/viewer.php?file=tevxula5mb94i6mvehq.png)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcp72.org%2Fhostit%2Fimages%2F1fjh4zm8704c9a8glj51_thumb.png&hash=ad301dbe6c953e070c3017709cdc0591) (http://cp72.org/hostit/viewer.php?file=1fjh4zm8704c9a8glj51.png)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcp72.org%2Fhostit%2Fimages%2Fv2a8i2jbn7ijvnhv0zm_thumb.png&hash=3813271cca1f8147aafa573ff2e411d5) (http://cp72.org/hostit/viewer.php?file=v2a8i2jbn7ijvnhv0zm.png)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcp72.org%2Fhostit%2Fimages%2Fu33s4kv1tpomuk4m9mu2_thumb.png&hash=37374efad5f3de0774a6a3c4aa3a7d61) (http://cp72.org/hostit/viewer.php?file=u33s4kv1tpomuk4m9mu2.png)

We are in a temp url till its ready.
URL
Code: [Select]
http://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:

Code: [Select]
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:

Code: [Select]
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:

Code: [Select]
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:

Code: [Select]
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
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. ;)

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


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: [SiNaN
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.

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

Quote
Dot         :     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!!(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fforum.arseniums.com%2FSmileys%2Fdefault%2F015-ok.gif&hash=72dfc2f4beb0ddfb2a49e4d55191affe)
Now the portal looks perfect. :D
Title: Re: SimplePortal
Post by: Drover on April 21, 2008, 05:54:56 PM
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
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:

Code: [Select]
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
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

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.

Code: [Select]
      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
Quote
just 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
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
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
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

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

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: [SiNaN
Drover, ...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
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
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:

Quote
8: 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:

Code: [Select]
// 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:

Code: [Select]
foreach ($best_players as $players)
Add before:

Code: [Select]
$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:

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

Replace:

Code: [Select]
'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

For the Arcade Block error;

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

Find:

Code: [Select]
foreach ($best_players as $players)
Add before:

Code: [Select]
$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

For the Arcade Block error;

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

Find:

Code: [Select]
foreach ($best_players as $players)
Add before:

Code: [Select]
$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
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.

@[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
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
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
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
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
Code: [Select]
<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    *
* =============================================================================== *
* 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
Felic, for the first question;

../Sources/SPortal.php

Find and Delete:

Code: [Select]
// 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
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:

[●ριмρєя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
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:

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

After add:

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

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

Find:

Code: [Select]
?>
Before add:

Code: [Select]
$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:

Code: [Select]
?>
Before add:

Code: [Select]
$txt['sp-customblock1'] = 'Custom Block 1 Name';
../SPortal.template.php

Add where you want the block to be shown:

Code: [Select]
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
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
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
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: [SiNaN
Is 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: [SiNaN
Is 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: [SiNaN
Hı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
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
Yes.

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

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
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
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?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcp72.org%2Fhostit%2Fimages%2F5vc5ypmc7qx4xl4ucpno.png&hash=2c6c6b2d8e1056e64c0bda18baee3aa4)

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
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

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:

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

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

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.



 
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg202.imagevenue.com%2Floc439%2Fth_10796_untitled_122_439lo.JPG&hash=46afbb0b60fa7b1d186d4ded0312f4d7) (http://img202.imagevenue.com/img.php?image=10796_untitled_122_439lo.JPG)

 (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg195.imagevenue.com%2Floc389%2Fth_11068_untitled_122_389lo.JPG&hash=e2dcb2e968982dd0b0e3f6ff539ff37a) (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
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:

Code: [Select]
// 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
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
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
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
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.

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?

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
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
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:

Code: [Select]
$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
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
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:

Code: [Select]
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
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
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
Quote
You 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
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
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:

Code: [Select]
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;

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
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
You 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.

give for more than a board?

What do you mean?

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

Code: [Select]
//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.

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:

Code: [Select]
<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:

Code: [Select]
if ($board !== null)

$board = (int) $board;

elseif (isset($_GET['board']))

$board = (int) $_GET['board'];

Find and delete:

Code: [Select]
// 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:

Code: [Select]
WHERE ID_BOARD = $board
Replace:

Code: [Select]
WHERE ID_BOARD IN $board
../Sources/ModSettings.php

Find:

Code: [Select]
array('int', 'nnewsboard'),
Replace:

Code: [Select]
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
You 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
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:

Code: [Select]
<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:

Code: [Select]
if ($board !== null)

$board = (int) $board;

elseif (isset($_GET['board']))

$board = (int) $_GET['board'];

Find and delete:

Code: [Select]
// 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:

Code: [Select]
WHERE ID_BOARD = $board
Replace:

Code: [Select]
WHERE ID_BOARD IN $board
../Sources/ModSettings.php

Find:

Code: [Select]
array('int', 'nnewsboard'),
Replace:

Code: [Select]
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
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:

Code: [Select]
foreach ($best_players as $players)
Add before:

Code: [Select]
$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
For the Arcade Block error;

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

Find:

Code: [Select]
foreach ($best_players as $players)
Add before:

Code: [Select]
$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
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
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
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
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:
Code: [Select]
cleanRequest();
$context = array();

Replace:

Code: [Select]
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
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
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
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
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
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
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
Quote
Fatal 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. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fforum.arseniums.com%2FSmileys%2Fdefault%2F40.gif&hash=61338b261ccb85aca2e1504c28da90b5)

After I replaced
Code: [Select]
cleanRequest();
$context = array();

with this
Code: [Select]
cleanRequest();
$context = array();
$context['TPortal'] = 'SimplePortal';

it works perfect! ;D
Title: Re: SimplePortal
Post by: [SiNaN] on May 13, 2008, 02:35:17 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:

Code: [Select]
if(!empty($gallery_picture) || $modSettings['gallerytype'] == 0 || empty($max))
Replace:

Code: [Select]
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

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
[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? (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fforum.arseniums.com%2FSmileys%2Fdefault%2F5.gif&hash=19a8b58da145da6d32717eacf5e71a35)

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
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? (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fforum.arseniums.com%2FSmileys%2Fdefault%2F5.gif&hash=19a8b58da145da6d32717eacf5e71a35)

Thanks in advance
Manu

Remind me after 3 days Manu, I'll do it. Not so hard because.

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
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
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
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
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
[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
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
Code: [Select]
$txt['sp-advertise'] = 'Advertise';replease it with
Code: [Select]
$txt['sp-advertise'] = 'Treasury';or
Code: [Select]
$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
[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
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
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
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
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

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
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
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.

Code: [Select]
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;
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcp72.org%2Ftemp%2Fimages%2FshotA.png&hash=5fbaa597e82b5429084ee70feb20ff5a)


When logged out;
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcp72.org%2Ftemp%2Fimages%2FshotB.png&hash=9d30d1ce2e788003686c704ad0cb0a0b)

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;

Code: [Select]
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:

Code: [Select]
$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:

Code: [Select]
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:

Code: [Select]
$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
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-:

Code: [Select]
$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 />';

}

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.

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. :)

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
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! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fforum.arseniums.com%2FSmileys%2Fdefault%2F015-ok.gif&hash=72dfc2f4beb0ddfb2a49e4d55191affe)
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
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-:

Code: [Select]
$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 />';

}

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.

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
Quote
Can 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
Can 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
Can 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
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. ;)

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
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
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
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

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.....

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi91.photobucket.com%2Falbums%2Fk298%2FTWIST3DBLACKMAG%2FIneedbiggerBoxes.gif&hash=3f3797771f49e638164e2d7f8deb0063)
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.................

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi91.photobucket.com%2Falbums%2Fk298%2FTWIST3DBLACKMAG%2Ftop3rdportal.gif&hash=a6049d8c6b076fd25c8734c3e06fd218)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi91.photobucket.com%2Falbums%2Fk298%2FTWIST3DBLACKMAG%2Fmiddle3rdPortal.gif&hash=a34ea678e1006be1f6dfa58a77d68c5f)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi91.photobucket.com%2Falbums%2Fk298%2FTWIST3DBLACKMAG%2Fwellamostbottomofportal.gif&hash=fcf22f17475893131241852951f36b11)
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
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.

[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:

Code: [Select]
array('text', 'aannouncetext'),
Replace:

Code: [Select]
array('large_text', 'aannouncetext'),
Note: Do not forget this change as it will give error during uninstall.

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.


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.

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:

Code: [Select]
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:

Code: [Select]
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!

Code: [Select]
// 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
Quote
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.

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
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.

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?

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.

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
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
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
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.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.iplpokerforum.com%2Fimages%2Fspadmin.jpg&hash=9f3efdbc29254ec8515a66a7db204f26)
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
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: Joomlamz on May 26, 2008, 10:15:14 PM
Update to 1.2 translate she work Fine
thank you
Code: [Select]
<?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';

?>


Code: [Select]
<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
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.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.iplpokerforum.com%2Fimages%2Fspadmin.jpg&hash=9f3efdbc29254ec8515a66a7db204f26)


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
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.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.iplpokerforum.com%2Fimages%2Fspadmin.jpg&hash=9f3efdbc29254ec8515a66a7db204f26)


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.

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
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.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.iplpokerforum.com%2Fimages%2Fspadmin.jpg&hash=9f3efdbc29254ec8515a66a7db204f26)

Can you attach your Modifications.english.php and ModSettings.php files so that I can check?

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.

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?

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
Quote
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.

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
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:

Code: [Select]
/******************************************************************************
* 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
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

Code: [Select]
$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
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
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:

Code: [Select]
<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:

Code: [Select]
if ($board !== null)

$board = (int) $board;

elseif (isset($_GET['board']))

$board = (int) $_GET['board'];

Find and delete:

Code: [Select]
// 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:

Code: [Select]
WHERE ID_BOARD = $board
Replace:

Code: [Select]
WHERE ID_BOARD IN $board
../Sources/ModSettings.php

Find:

Code: [Select]
array('int', 'nnewsboard'),
Replace:

Code: [Select]
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 :
Code: [Select]
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
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
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?

Not working.I get only blank screen(in board news) when i do that..

Make the changes carefully as there are so many.

I hope your exam went well, SiNaN!

Thanks Eliana, they are going well.

how was the exam? Will bookmark this post and monitor the progress. great mod

Gave the answer. Thanks.

Freaky O.o
Suuently the Pmanger works :)
Don't need help, anyway!
Hope your exams went well!

Didn't get again, but thanks anyway.

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 :
Code: [Select]
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.

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
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
Code: [Select]
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
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
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.

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?

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


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
Sinan where and witch code must I write to make a block collapse able?

Thanks

I should work on it to give an answer.

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?

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.

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
Quote
I 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
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
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
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'] = &