Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: crazystu on May 23, 2005, 04:50:25 AM

Title: SimplePortal
Post by: crazystu on May 23, 2005, 04:50:25 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=131)

A very SimplePortal like Smartor's ezPortal for phpBB. Has no admin but works well with most templates. Remember to read the readme after install.
Also Supports Package Manager ;)
Live Demo (http://dev.nsf.mher.org)
Title: Re: SimplePortal
Post by: dustrho on May 23, 2005, 09:38:36 AM
I keep gettting the following error messages when trying to install this MOD (see image below).  I am using SMF 1.0.3 with the latest version of the Helios theme.

(http://www.sandtroopers.com/dustrho/errors/20050523st_error.png)
Title: Re: SimplePortal
Post by: jazz on May 23, 2005, 10:25:32 AM
Are you sure this isn't Bloc's TinyPortal?

Edited:  I guess I could have looked at the code before I asked this question.  Great job!  Anything built in for modifying the blocks and articles?
Title: Re: SimplePortal
Post by: dustrho on May 23, 2005, 10:39:24 AM
No, this is the SimplePortal by nesianstyles.  Is Bloc's TinyPortal good to use?  I need something simple & easy to use in conjunction with my SMF forums.  Thanks!
Title: Re: SimplePortal
Post by: Thantos on May 23, 2005, 01:27:16 PM
Um I don't see any errors in that screen shot.
Title: Re: SimplePortal
Post by: dustrho on May 23, 2005, 01:48:23 PM
Quote from: MikeMill on May 23, 2005, 01:27:16 PM
Um I don't see any errors in that screen shot.

You don't necessarily see "Failures" on that list, but you can tell that it stops installing as soon as it gets to step #6.  Then it asks for FTP information, I provide it, and it goes right back to this page.  How should the local path to the forums look?  I've tried it a number of a ways with no luck.
Title: Re: SimplePortal
Post by: [Unknown] on May 23, 2005, 01:55:25 PM
No, those steps can't fail, so to speak.

-[Unknown]
Title: Re: SimplePortal
Post by: dustrho on May 23, 2005, 02:17:27 PM
Unreal... I tried it again so that I could show you more information about the messages I'm getting, and now it's working.  How do I go about customizing this?
Title: Re: SimplePortal
Post by: jazz on May 23, 2005, 02:31:05 PM
Quote from: dustrho on May 23, 2005, 02:17:27 PM
Unreal... I tried it again so that I could show you more information about the messages I'm getting, and now it's working.  How do I go about customizing this?

No idea.  I downloaded it to my test forum, but couldn't figure it out.  I use TinyPortal which you can find at http://bloczone.net.  It's still in a beta, but he's still working on it and adding features.  It's very easy to customize.  You can also see it in action at http://carmenrasmusen.com/members/index.php.

I'm sure that this one has it's benefits also, I just haven't had a chance to play with it yet.
Title: Re: SimplePortal
Post by: dustrho on May 23, 2005, 02:43:45 PM
Not to get off this topic, but I did install TinyPortal but I have no idea on how to work with it.  Is it suppose to have a GUI interface?  Am I suppose to edit one of the PHP files?  I'm not sure how to start customizing it.  I have posted a thread in Bloc's forums, and I'm waiting to hear back from someone about it.  Until the mean time... any ideas?
Title: Re: SimplePortal
Post by: jazz on May 23, 2005, 03:22:12 PM
I posted a reply at bloczone.

I suggest this topic be split out of courtesy so that it doesn't interfere with this new portal.
Title: Re: SimplePortal
Post by: crazystu on May 23, 2005, 03:56:12 PM
Quote from: dustrho on May 23, 2005, 02:17:27 PM
Unreal... I tried it again so that I could show you more information about the messages I'm getting, and now it's working.  How do I go about customizing this?
Well it sounds like you've gone to bloc's Tiny Portal, but anyway if you want to customize it, open Themes/default/Portal.template.php and you can find how it works there. Here is also a example html block if it helps:
<table class="tborder" border="0" width="95%" cellspacing="1" cellpadding="4">
<tr><td class="titlebg">Title</td>
</tr>
<tr><td class="windowbg2">Content</td>
</tr></table>
<br />
Title: Re: SimplePortal
Post by: dustrho on May 23, 2005, 04:01:16 PM
I haven't gone with any portal as of yet.  I'm trying to find the simplest one to use, and so far I haven't found any that are truly a sinch to customize.  I would prefer to find one that had a GUI interface, but at this point in time I'm not attached to any one portal just yet.
Title: Re: SimplePortal
Post by: SeaOfSin on May 23, 2005, 07:10:29 PM
Quote from: dustrho on May 23, 2005, 09:38:36 AM
I keep gettting the following error messages when trying to install this MOD (see image below).  I am using SMF 1.0.3 with the latest version of the Helios theme.

(http://www.sandtroopers.com/dustrho/errors/20050523st_error.png)

That is the same problem I'm having....it all says successful but it keeps asking for the ftp details!

Sea Of Sin
Title: Re: SimplePortal
Post by: Thantos on May 23, 2005, 07:41:18 PM
That is just a test page, it means it was successful in testing the modification.  SMF 1.1 indicates this better
Title: Re: SimplePortal
Post by: SeaOfSin on May 23, 2005, 09:26:27 PM
I did a manual install and it worked fine! :)

It looks great! I may use it to replace MKportal!


Sea Of Sin
Title: Re: SimplePortal
Post by: mastersmurfie on May 23, 2005, 10:35:36 PM
Quote from: SeaOfSin on May 23, 2005, 07:10:29 PM
Quote from: dustrho on May 23, 2005, 09:38:36 AM
I keep gettting the following error messages when trying to install this MOD (see image below).  I am using SMF 1.0.3 with the latest version of the Helios theme.


That is the same problem I'm having....it all says successful but it keeps asking for the ftp details!

Sea Of Sin

had this same problem...created "Blocks" folder manually, and installed without a hitch...maybe this will help someone else out...

By the way...EXCELLENT!!  Thank you!!
Title: Re: SimplePortal
Post by: crazystu on May 24, 2005, 01:25:43 AM
thankyou SeaOfSin & mastersmurfie. I'll post that fix in the description ;)
Title: Re: SimplePortal
Post by: dustrho on May 24, 2005, 09:57:56 AM
OK, I finally got it installed (not sure what I did differently though).  How do I go about customizing this?  If I have to change the code what files should I be working with?
Title: Re: SimplePortal
Post by: MichiganMinis on May 24, 2005, 02:58:36 PM
Any chance of getting controls in the Admin panel?
Title: Re: SimplePortal
Post by: crazystu on May 24, 2005, 03:43:57 PM
Quote from: dustrho on May 24, 2005, 09:57:56 AM
OK, I finally got it installed (not sure what I did differently though).  How do I go about customizing this?  If I have to change the code what files should I be working with?
Themes/default/Portal.template.php
And in the future I plan on having a admin section.
Title: Re: SimplePortal
Post by: MichiganMinis on May 24, 2005, 04:44:46 PM
Quote from: nesianstyles on May 24, 2005, 03:43:57 PM
Quote from: dustrho on May 24, 2005, 09:57:56 AM
OK, I finally got it installed (not sure what I did differently though).  How do I go about customizing this?  If I have to change the code what files should I be working with?
Themes/default/Portal.template.php
And in the future I plan on having a admin section.

I tried to customize it with the templete, but I could not get it to work.
Title: Re: SimplePortal
Post by: crazystu on May 24, 2005, 08:31:28 PM
Quote from: MichiganMinis on May 24, 2005, 04:44:46 PM
Quote from: nesianstyles on May 24, 2005, 03:43:57 PM
Quote from: dustrho on May 24, 2005, 09:57:56 AM
OK, I finally got it installed (not sure what I did differently though).  How do I go about customizing this?  If I have to change the code what files should I be working with?
Themes/default/Portal.template.php
And in the future I plan on having a admin section.

I tried to customize it with the templete, but I could not get it to work.
What couldn't you get to work?
I need to know this before I can help you! ;)
Title: Re: SimplePortal
Post by: mastersmurfie on May 25, 2005, 12:31:40 AM
QuoteWhat couldn't you get to work?
I need to know this before I can help you! ;)
Quote from: nesianstyles on May 24, 2005, 08:31:28 PM
Quote from: MichiganMinis on May 24, 2005, 04:44:46 PM
Quote from: nesianstyles on May 24, 2005, 03:43:57 PM
Quote from: dustrho on May 24, 2005, 09:57:56 AM
OK, I finally got it installed (not sure what I did differently though).  How do I go about customizing this?  If I have to change the code what files should I be working with?
Themes/default/Portal.template.php
And in the future I plan on having a admin section.

I tried to customize it with the template, but I could not get it to work.
What couldn't you get to work?
I need to know this before I can help you! ;)

@nesianstyles...

I am trying to make the content in the "Recent Posts" block to be left aligned...and I can't figure out how to make it work!!???  This should be something simple that I just can't seem to find.  I've gotten all the other blocks...

nevermind...I found it in /Blocks.  The other ones that I wanted to change the appearance of, I was able to edit in the portal.template.php, but this one wasn't.

Sharing in case anyone else runs into this type of problem.  Again, THANKS! for this.  It is live on my site and looks great! www.faithtabernacleupc.net/forum2 (http://www.faithtabernacleupc.net/forum2)
Title: Re: SimplePortal
Post by: MichiganMinis on May 25, 2005, 11:50:28 AM
I to finally got it. I just can figure out how to get the forum to open up in the same window as the portal.
Title: Re: SimplePortal
Post by: crazystu on May 25, 2005, 03:45:21 PM
Quote from: MichiganMinis on May 25, 2005, 11:50:28 AM
I to finally got it. I just can't figure out how to get the forum to open up in the same window as the portal.
That would be hard as you would need to create it so it includes the portal header then after it the footer. If you want something that does that then I recomend you be a beta tester for bloc's tiny portal.
Although I could figure a way, but I don't see it as the most needed thing for a portal and it squashes the forum a bit.
Title: Re: SimplePortal
Post by: DemonicInfluence on June 02, 2005, 01:04:38 PM
its really good! i love it. all my members love it. the only thing i want to add is like to add like a recent arcade scores and random arcade games. that would make it even cooler ;)
Title: Re: SimplePortal
Post by: Elegant John on June 04, 2005, 05:27:46 PM
Without a doubt one of the easiest installs I've encountered.

I've been looking for something like this. Thanks a lot.

Just learning my way around it but the customization options seem unlimited. Looking forward to the admin panel though and possibly a block builder ala php=nuke to be able to put adverts up.

Thanks again
Title: Re: SimplePortal
Post by: JustClem on June 05, 2005, 02:26:21 PM
Quote from: nesianstyles on May 23, 2005, 04:50:25 AM
A very SimplePortal like Smartor's ezPortal for phpBB. Has no admin but works well with most templates. Remember to read the readme after install.
Also Supports Package Manager ;)
Live Demo (http://dev.nesian.info)

Wow, very nice, Nessian.  I am currently using TinyPortal and really like it, but maybe I will make a second test forum and try out SimplePortal too.
Title: Re: SimplePortal
Post by: MichiganMinis on June 05, 2005, 05:39:06 PM
How, can I edit the menu block?? I want to add some links for my own page in there.
Title: Re: SimplePortal
Post by: crazystu on June 05, 2005, 06:40:32 PM
open Themes/default/Portal.template.php and change this part:
<table class="tborder" border="0" width="95%" cellspacing="1" cellpadding="4">
<tr><td class="titlebg">'.$txt['portal_1'].'</td>
</tr>
<tr><td class="windowbg2"><a href="index.php">'.$txt['portal_2'].'</a><br />
<a href="index.php?action=forum">'.$txt['portal_16'].'</a><br />
<a href="index.php?action=help">'.$txt['portal_3'].'</a><br />
<a href="index.php?action=search">'.$txt['portal_4'].'</a><br />';
if ($context['user']['is_logged']) {
echo'<a href="index.php?action=profile">'.$txt['portal_5'].'</a><br />
<a href="index.php?action=logout;sesc='.$context['session_id'].'">'.$txt['portal_17'].'</a>';
} else {
echo'<a href="index.php?action=login">'.$txt['portal_18'].'</a><br />
<a href="index.php?action=register">'.$txt['portal_19'].'</a>';
}
echo'</td>
</tr></table>
Title: Re: SimplePortal
Post by: MichiganMinis on June 05, 2005, 09:46:26 PM
How do I use links out side of the portal?? I want to link to my chat room, but it wont come up in the menu as chat.. Its just what ever number the portal realtes to.
Title: Re: SimplePortal
Post by: SeaOfSin on June 05, 2005, 11:36:39 PM
if you did something like this for the chat room link

echo'<a href="index.php?action=login">'.$txt['portal_xx'].'</a><br />


xx being the number you put for the chat room, you need to go into languages under themes and find portal.english. and add the $txt['portal_xx'] as shown below


$txt['portal_xx'] = "Chat Room";


hope that helps!
Title: Re: SimplePortal
Post by: crazystu on June 06, 2005, 04:04:25 PM
You can also do this as a link
<a href="index.php?action=chatroom">ChatRoom</a>
Title: Re: SimplePortal
Post by: Metal_GunBlade on June 18, 2005, 11:54:54 AM
umm, how can I change the forum ID# for the announcements???
QuoteForum Announcements
You cannot specify a board that doesn't allow guests. Please check the board ID before trying again.
Title: Re: SimplePortal
Post by: mastersmurfie on June 19, 2005, 12:01:49 PM
in portal.template.php:

// What Board Is Used For Announcements?
$newsb = '2';


Change '2' to the number of the board that you want to use
Title: Re: SimplePortal
Post by: forumite on June 23, 2005, 10:54:55 PM
Could someone tell me if SimplePortal is still available and working? I read something about it being withdrawn pending some development work.

TIA

Oops, just realized the note referred to TinyPortal.
Title: Re: SimplePortal
Post by: ivo2296 on June 24, 2005, 02:55:38 PM
JUst manualy installed on 1.0.5 works so far :)
Title: Re: SimplePortal
Post by: Nyx on June 27, 2005, 07:25:45 PM
How can I fix this?

EXPLORER
(http://www.uteros.com.ar/romi/explorer.jpg)

FIREFOX
(http://www.uteros.com.ar/romi/firefox.jpg)

I want all on the left  :-[ I use defaultXT theme
Title: Re: SimplePortal
Post by: ivo2296 on June 27, 2005, 08:21:52 PM
How can i install this mod on custom theme?
Title: Re: SimplePortal
Post by: mastersmurfie on June 27, 2005, 09:47:55 PM
Quote from: Nyx on June 27, 2005, 07:25:45 PM
How can I fix this?

EXPLORER


FIREFOX


I want all on the left  :-[ I use defaultXT theme
Nyx...try this:

Find 3 instances of

<td width="XX%" align="XXXXXX" valign="top">

in Portal.template.php (there *should* a  "20%", "60%", and a "20%" in that order)  I looked for same thing, and changing the "align=" to "left" fixed it for both IE and Firefox (for me anyways...)
Title: Re: SimplePortal
Post by: Nyx on June 27, 2005, 10:18:10 PM
Thank you very much, works fine now :D
Title: Re: SimplePortal
Post by: mastersmurfie on June 27, 2005, 10:34:45 PM
I found out another "cosmetic" tip for SimplePortal...

notice how your "Quick Search" box is a bit wider than the rest?  (this may apply to anyone who uses SimplePortal  ;)...)

if you open PortalSearch.php and change

<input type="text" name="search" size="30" />

to

<input type="text" name="search" size="25" />

that should fix it (if it doesn't look right...)
Title: Re: SimplePortal
Post by: mastersmurfie on June 27, 2005, 10:38:26 PM
now I have a question that I can't figure out...

see Nyx's pics above?  Why, in IE are the borders around the blocks seemingly thinner than they are in Firefox, and can this be fixed as well? 

I see this also when viewing my forum....
Title: Re: SimplePortal
Post by: PopLife on June 30, 2005, 12:16:36 AM
It would be even better if it was uninstallable  ;D
Title: Re: SimplePortal
Post by: artful on July 03, 2005, 02:54:29 PM
Boy oh boy, am I thick??
I have added this simpleportal to my forum but I cannot see how to call it up.
I cannot see a new page like index.php to start the portal.

Can some brainy person point me clearly in the right direction? :-[
Title: Re: SimplePortal
Post by: DemonicInfluence on July 04, 2005, 10:09:52 AM
just the home page. if your site is www.blablabla.com. then go to that.
Title: Re: SimplePortal
Post by: artful on July 04, 2005, 11:12:00 AM
thanks, but that does not work.

my site is www.xxxxx.xxx/forum  but when I use this it comes up with the forum and not the portal

any more idea's?? :'(
Title: Re: SimplePortal
Post by: DemonicInfluence on July 06, 2005, 11:12:03 PM
#1 do you have a site at blablahbalh.com? or is it just blablahbalh.com/forum
#2 did the simpleportal work all right? check the main index.php in your html directory for the portal modification. (just open index.php and the modification xml file and check the edit in index.php)
Title: Re: SimplePortal
Post by: Michelle on July 09, 2005, 11:15:16 PM
Just installed and it seems marvellous! I have some questions though about the customizing.
How can we configure it so that the news aren't only from one board but from the child boards as well. We would also like the name of the board that each article comes from to be displayed.
Also, how can we change the titles of each item? They are blank now!
We also would like to make the whoisonline as a link for the whois online page
How do we edit the menu and link items?

Sorry if it doesn't make sense but I'm too excited at the moment! :D
Title: Re: SimplePortal
Post by: Michelle on July 10, 2005, 12:42:53 AM
plz delete
Title: Re: SimplePortal
Post by: Michelle on July 10, 2005, 03:14:44 AM
We wanted to use this for articles not announcements! Is there a way that it displays only the first eg 200 words of the article and the user has to click to a link to see the whole? And also, is there a way that if there are many articles that they aren't all displayed in the home page but in several pages? Because now the homepage gets huge and it's ugly to have the whole article there! Please help! Urgent!
Title: Re: SimplePortal
Post by: DemonicInfluence on July 10, 2005, 05:06:38 AM
Quote from: Michelle on July 09, 2005, 11:15:16 PM
Just installed and it seems marvellous! I have some questions though about the customizing.
How can we configure it so that the news aren't only from one board but from the child boards as well. We would also like the name of the board that each article comes from to be displayed.
Also, how can we change the titles of each item? They are blank now!
We also would like to make the whoisonline as a link for the whois online page
How do we edit the menu and link items?

Sorry if it doesn't make sense but I'm too excited at the moment! :D
The portal.template.php file in default is where you edit links. Also, you need the portal.english.php for language. Lets say you want to say " BLBAAHlkhfskjahlfd". Just go to the language file and out another line. copy like line 24. change the number and the words. and reference it in the portal.template.

Quote from: Michelle on July 10, 2005, 03:14:44 AM
We wanted to use this for articles not announcements! Is there a way that it displays only the first eg 200 words of the article and the user has to click to a link to see the whole? And also, is there a way that if there are many articles that they aren't all displayed in the home page but in several pages? Because now the homepage gets huge and it's ugly to have the whole article there! Please help! Urgent!
That would need a lot of coding. I don't think that is a standard feature... Wait for someone else. i dunno about this :(
Title: Re: SimplePortal
Post by: Michelle on July 10, 2005, 12:45:58 PM
Thanks Libo but in the meantime we already found that out.
Now the main questions are (ignore alla others, they are solved):
-How to make each article title as a link to the actual article?
-How to make the articles be from several child boards and each child board mentioned on top of the articles (for categrorisation purposes)?
-How to make the "X members and Y guests online now" a link like it is in the forum?
-How can I add more menu items?
-How can I add a poll to the first page?

Also a tip I stumbled across some hours ago while trying to make it like I wanted. If you don't want the whole article to be displayed but only the X first characters then open PortalNews.php and find
// If we want to limit the length of the post.
        if (!empty($length) && strlen($row['body']) > $length)
{
$row['body'] = substr($row['body'], 0, $length);


Then add the line
$length = "500" ;  (if 500 is the number of characters you want for each article preview, else put the number you want instead of 500)
just after the comment and before the rest of the code. At least in me it worked! :)
Title: Re: SimplePortal
Post by: DemonicInfluence on July 10, 2005, 04:07:50 PM
Quote from: Michelle on July 10, 2005, 12:45:58 PM
Thanks Libo but in the meantime we already found that out.
Now the main questions are (ignore alla others, they are solved):
-How to make each article title as a link to the actual article?
-How to make the articles be from several child boards and each child board mentioned on top of the articles (for categrorisation purposes)?
-How to make the "X members and Y guests online now" a link like it is in the forum?
-How can I add more menu items?
-How can I add a poll to the first page?

Also a tip I stumbled across some hours ago while trying to make it like I wanted. If you don't want the whole article to be displayed but only the X first characters then open PortalNews.php and find
// If we want to limit the length of the post.
        if (!empty($length) && strlen($row['body']) > $length)
{
$row['body'] = substr($row['body'], 0, $length);


Then add the line
$length = "500" ;  (if 500 is the number of characters you want for each article preview, else put the number you want instead of 500)
just after the comment and before the rest of the code. At least in me it worked! :)


Quote-How to make the "X members and Y guests online now" a link like it is in the forum?

before this line in portalwhosonline
', $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'], $return['hidden'] > 0 ? ' (' . $return['hidden'] . ' ' . $txt['hidden'] . ')' : '', '<br />


Add <a href="', $scripturl, '?action=who">

So like this <a href="', $scripturl, '?action=who">', $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'], $return['hidden'] > 0 ? ' (' . $return['hidden'] . ' ' . $txt['hidden'] . ')' : '', '<br />


For menu items, search for <a href="index.php?action=forum">'.$txt['portal_16'].'</a><br /> in portal.template.php.

Right there. just copy that code and change the a href and the txt (with the language file (portal.english.php))

For the rest, i dunno
Title: Re: SimplePortal
Post by: Michelle on July 10, 2005, 04:41:34 PM
With the who is online I did something better ;)
I changed the title of the block and made it as a link
Title: Re: SimplePortal
Post by: Michelle on July 10, 2005, 08:07:26 PM
I want to add a forum button in the main menu on top of the page because when they press the home they go to the portal. I have seen that this is built in with hte classic theme but I'm using the YaBB theme, what can I do?
Title: Re: SimplePortal
Post by: DemonicInfluence on July 10, 2005, 09:11:36 PM
Quote from: Michelle on July 10, 2005, 08:07:26 PM
I want to add a forum button in the main menu on top of the page because when they press the home they go to the portal. I have seen that this is built in with hte classic theme but I'm using the YaBB theme, what can I do?

Just edit the index.template.php according to the mod. open the mod files and check the edit for index.template.php. then, get the index.template.php file from the yabb theme and mod it accordingly
Title: Re: SimplePortal
Post by: Michelle on July 10, 2005, 09:30:02 PM
erm? can you explain it a bit more pleaseee because I didn't get it? :(
Title: Re: SimplePortal
Post by: DemonicInfluence on July 11, 2005, 07:00:37 PM
use your ftp and enter you yabb theme. Download the index.template.php file. In your browser, go to your admin. then package manager. then go to the simpleportal mod. Click List Files. Click on the simpleportal.xml. Search for index.template.php. If tells you to find a line. Open the download index.template.php. Search for the line. After that, it tells you to add something. Do that. Then your done.

P.S. you need to also download the forum.gif file from your classic theme english images folder. Then put it in your yabb theme's english images.
Title: Re: SimplePortal
Post by: Michelle on July 12, 2005, 04:15:07 PM
Thanks for all the help but I uninstalled it and installed MKportal which suits my needs better :)
Title: Re: SimplePortal
Post by: DemonicInfluence on July 12, 2005, 06:19:24 PM
lol. Okay.
Title: Re: SimplePortal
Post by: Unnamed~ on July 14, 2005, 01:35:50 PM
One cuestion, how I can add more blocks to the portal? I am interested in adding one block for Afiliated (including the mini banners of others webs) and add one block for Link to uss (including my minni banner).

Thanks.
Title: Re: SimplePortal
Post by: crazystu on July 18, 2005, 06:05:08 PM
You can always use the link block,
But for creating blocks you have to edit Themes/default/Portal.template.php
Find some table code, duplicate it and take out a few includes and strings and replace them with the content.
Title: Re: SimplePortal
Post by: deviantz on July 22, 2005, 10:55:41 AM
Hi, I'm new..  I haven't encounter any problems on the previous mods I installed than this, this is a great mod.. but It doesn't seem to work...

regardlessly, the problem first occured here: http://www.sandtroopers.com/dustrho/errors/20050523st_error.png

Before using the package installer, I made a new folder Blocks on the forum roots as suggest.. and it still turns out that problem. Second I did try to manually install it..and that didn't work at all, well I couldn't see where I can activate it. Now I delete it and try again and when I apply the mod..   this error showed up:

" An Error Has Occurred!
You cannot download or install new packages because the Packages directory is not writable! "

^ However I chmod just about everything, and that error still shows up. I'm really sick of it, I can't find a better way to make this work.

any help is appreciated
Title: Re: SimplePortal
Post by: 3-CXT on July 22, 2005, 06:30:36 PM
how to install this mod... by ftp manually i dont got any idea... and with the package manager.. it ask me bout ftp settings.. i put them in and he gave me failure 550...and then i still dont know how to install...

please help me
Title: Re: SimplePortal
Post by: Isaac on July 22, 2005, 11:12:12 PM
Did you try creating the directory "Blocks" in your forums folder?
Title: Re: SimplePortal
Post by: 3-CXT on July 23, 2005, 04:09:46 AM
i tried it. i ve createt a directory. but still the same failure message 550 no such directory.
Title: Re: SimplePortal
Post by: Unnamed~ on July 23, 2005, 01:30:59 PM
The folder that call "forum" must have permission CMHOD 777.

Check these error in Fire Fox

(http://img299.imageshack.us/img299/5620/dibujo6cl.jpg)

How i can fix?
Title: Re: SimplePortal
Post by: Rik© on July 23, 2005, 03:29:14 PM
@ unnamed~

There is a fault in the html (i think it's in the Portal.template.php)
Find
<td width="20%" align="60%" valign="20%">
<table class="tborder" border="0" width="95%" cellspacing="1" cellpadding="4">
<tr><td class="titlebg">Menu</td>

The first line, align and valign can NOT be 60% or 20%
try align="center"vallign="top"
Title: Re: SimplePortal
Post by: SkylarSmith on July 25, 2005, 06:42:41 PM
How do i edit the links? Onyl thing i cant find out how to change thanks!
Title: Re: SimplePortal
Post by: mastersmurfie on July 25, 2005, 07:11:33 PM
If I remember correctly, you can change these in Portal.english.php in

Themes/**/languages

modify the $txt['portal_24'] line and add whatever you want.

Title: Re: SimplePortal
Post by: SkylarSmith on July 25, 2005, 07:16:43 PM
Thanks!
Title: Re: SimplePortal
Post by: 3-CXT on July 30, 2005, 04:07:15 PM
Quote from: 3-CXT on July 23, 2005, 04:09:46 AM
i tried it. i ve createt a directory. but still the same failure message 550 no such directory.
#
so once again, how do i install this mod.. i want a nice portal for my board
plese help
Title: Re: SimplePortal
Post by: Rik© on July 31, 2005, 03:28:46 AM
Quote from: 3-CXT on July 30, 2005, 04:07:15 PM
#
so once again, how do i install this mod.. i want a nice portal for my board
plese help

Which version of SMF do you use?
Title: Re: SimplePortal
Post by: 3-CXT on July 31, 2005, 04:13:00 AM
i use the smf v1.1 beta public
Title: Re: SimplePortal
Post by: Rik© on July 31, 2005, 04:53:52 AM
Quote from: 3-CXT on July 31, 2005, 04:13:00 AM
i use the smf v1.1 beta public
I just tested it (downloaded the package, created the Blocks folder, installed package) and got no errors...

Create a folder called Blocks in your forum root before installing with the package manager.
So if your forum is at www.irgendwas.de/smf you create the Blocks folder in the folder called smf (www.irgendwas.de/smf/Blocks).


Title: Re: SimplePortal
Post by: 3-CXT on July 31, 2005, 02:48:57 PM
thanks noch it wörks... but how can i chance the numbers of top posters... i wwant more than only the top poster showing there.. the top 5 could be tha best.....
Title: Re: SimplePortal
Post by: DemonicInfluence on July 31, 2005, 08:52:16 PM
prolly change the $topNumber = 1 to something like $topNumber = 1,2,3,4,5. I dunno guessing....
Title: Re: SimplePortal
Post by: Rik© on August 01, 2005, 02:25:07 AM
Quote from: Libo on July 31, 2005, 08:52:16 PM
prolly change the $topNumber = 1 to something like $topNumber = 1,2,3,4,5. I dunno guessing....
Like Libo said.... open the Block file (PortalTopPoster.php)
Look for
function PortalTopPoster($topNumber = 1, $output_method = 'echo')

And change $topNumber = 1 to $topNumber = 5

-Rik©
Title: Re: SimplePortal
Post by: 3-CXT on August 01, 2005, 12:34:05 PM
thanks. an now.. i want, that the top posters look good, like the top topics or top boards...... please....
Title: Re: SimplePortal
Post by: Rik© on August 02, 2005, 02:08:26 AM
You mean something like this?
(http://img226.imageshack.us/img226/3728/sttopposters2bm.png)


Title: Re: SimplePortal
Post by: 3-CXT on August 02, 2005, 04:41:09 AM
yeah genau das meine ich
yeah this is what i meant like!


in fact i saw ur portal, do u use the same portal like i do (simpleportal)?

urs is nice modificated...

button inside the nav
etc...
is there a possible way to get ur version of the simpleportal?
cuz it looks way better ...... aufgräumter... cleaner than the originial one....
Title: Re: SimplePortal
Post by: Rik© on August 03, 2005, 06:34:59 AM
I use a modified personal version of SimplePortal.
It won't be released to the public, but most blocks i made/make will :D

At the moment a pre-release of one of my blocks is being tested and the final public release will be released this week...
Title: Re: SimplePortal
Post by: 3-CXT on August 03, 2005, 07:47:09 AM
of one block or of all of your blocks?
Title: Re: SimplePortal
Post by: Rik© on August 03, 2005, 01:02:21 PM
Quote from: 3-CXT on August 03, 2005, 07:47:09 AM
of one block or of all of your blocks?
Yes... one block per release.
Some blocks also need upgrading to work properly with SMF 1.1B3P (i'll make 2 versions of them).

Rik©
Title: Re: SimplePortal
Post by: trenchteam on August 03, 2005, 07:47:44 PM
Quote from: Rik© on August 02, 2005, 02:08:26 AM
You mean something like this?
(http://img226.imageshack.us/img226/3728/sttopposters2bm.png)




I want too! ;D
Title: Re: SimplePortal
Post by: gh0stw4lk3r on August 05, 2005, 04:48:29 AM
great mod :)

i want to change the info on the welcom block, so far no problem, but i also want to add a image there. if i just use standard html in the portal.english.php file i get parse erros.
what do i need to do to get a image working in that block?
Title: Re: SimplePortal
Post by: Rik© on August 05, 2005, 05:59:32 AM
Quote from: gh0stw4lk3r on August 05, 2005, 04:48:29 AM
great mod :)

i want to change the info on the welcom block, so far no problem, but i also want to add a image there. if i just use standard html in the portal.english.php file i get parse erros.
what do i need to do to get a image working in that block?

Use something like this...
$txt['portal_21'] = "<img src='Themes/default/images/smflogo.gif' alt='' /><br />Welcome to Our Site.<br />Here you can talk about whatever you want.<br />Enjoy your Time<br /> - Management";


Rik©
Title: Re: SimplePortal
Post by: gh0stw4lk3r on August 05, 2005, 06:36:21 AM
tnx works like a charm. i missed the brackets ;)
Title: Re: SimplePortal
Post by: trenchteam on August 09, 2005, 02:26:23 AM
Quote from: Rik© on August 05, 2005, 05:59:32 AM
Quote from: gh0stw4lk3r on August 05, 2005, 04:48:29 AM
great mod :)

i want to change the info on the welcom block, so far no problem, but i also want to add a image there. if i just use standard html in the portal.english.php file i get parse erros.
what do i need to do to get a image working in that block?

Use something like this...
$txt['portal_21'] = "<img src='Themes/default/images/smflogo.gif' alt='' /><br />Welcome to Our Site.<br />Here you can talk about whatever you want.<br />Enjoy your Time<br /> - Management";


Rik©

that code doesn't work for me. Is there something missing? what brackets are you refering to?
Title: Re: SimplePortal
Post by: mennou on August 09, 2005, 11:05:25 AM
how can i see the admin for simple portal??
Title: Re: SimplePortal
Post by: DemonicInfluence on August 09, 2005, 11:49:08 AM
no admin for simple portal...
Title: Re: SimplePortal
Post by: 3-CXT on August 09, 2005, 11:51:08 AM
hope it will come soon
Title: Re: SimplePortal
Post by: ivytony on August 10, 2005, 02:33:05 PM
if the portal system can display pictures attached to posts, that would be more attractive.

it's already pretty good.

thank you!
Title: Re: SimplePortal
Post by: mflintjer on August 12, 2005, 12:59:26 PM
OK -- I just downloaded the zip file, and poked around in there, and found the readme file.

Now, can someone explain to me how to run the installer?  I am not very sure how it works.  There are no REAL instructions on what needs to where, and what needs to be added.

I realize the creator put in a lot of time creating this, but a little more time on the readme file -- for those of us that are not as good as he is at coding -- to explain it just a bit more would be nice.

I will give it a go, but will come back to see if someone replies to this ;)
Title: Re: SimplePortal
Post by: Rik© on August 12, 2005, 01:42:44 PM
You can use the SMF package manager (Administration Center)
Don't forget to create a folder called Blocks in your forum root before installing with package manager...

- Rik©
Title: Re: SimplePortal
Post by: mflintjer on August 12, 2005, 01:49:57 PM
oh, thanx -- will give it a go ;)

EDIT:  I don't see the simple portal in the package manager -- what am I doing wrong?

I uploaded all of the files to the server, but the package doesn't show up.
Title: Re: SimplePortal
Post by: mflintjer on August 12, 2005, 01:59:52 PM
ummm...I don't see the simple portal in the package manager -- what am I doing wrong?

I uploaded all of the files to the server, but the package doesn't show up.
Title: Re: SimplePortal
Post by: mflintjer on August 12, 2005, 02:04:25 PM
nevermind -- just got it working.  didn't know how that package thing worked as this is the very first mod i installed using SMF boards  :P
Title: Re: SimplePortal
Post by: Rik© on August 12, 2005, 03:56:18 PM
Glad you got it figured out...

- Rik©
Title: Re: SimplePortal
Post by: 3-CXT on August 15, 2005, 04:41:53 AM
ur two blocks are fine.. hope the rest will coming really soon too.... go ahead...

and put alle these blocks into the standard portal version... so u wiill got the portal 1.1. ;)
Title: Re: SimplePortal
Post by: snork13 on August 15, 2005, 10:28:26 PM
i added a gallery block, i also made a login block, was working on the clock...but got pulled away

-snork
Title: Re: SimplePortal
Post by: DemonicInfluence on August 16, 2005, 04:24:06 PM
ugh... For all my themes, the dumb footer doesn't load properly on the portal page.... However, in everywhere else, it does. Help?

Edit: nvm
Title: Re: SimplePortal
Post by: Takeo on August 17, 2005, 02:46:56 PM
Hi there guys!

I've discovered SMF recently and 'till now it's the best forum system I've ever used. :)
I don't know much (or none :S ) of php and when I saw this mod I thought it would be very nice to build up some nice portals! :) Could someone tell me how to install SimplePortal on SMF 1.0.5?

Help me please :( Thanks!
Title: Re: SimplePortal
Post by: DemonicInfluence on August 17, 2005, 05:54:27 PM
admin>packages>download new packages>upload the pacakage>apply mod
Title: Re: SimplePortal
Post by: teido.com on August 21, 2005, 03:36:44 PM
hi guys.. im new to this whole smf thingy.  here is the quesiton, ive installed simpleportal using the builtin package installer.  the challenge we are encountering is that nothing on the left column is showing up.  quick search, links, shoutout, etc..  the footer doesnt show up either.  please help!

you can see what i mean at... http://www.teido.com

thanks ahead of time!
J
Title: Re: SimplePortal
Post by: teido.com on August 21, 2005, 03:41:25 PM
Nevermind, I fixed it.  Thanks for everything!
J
Title: Re: SimplePortal
Post by: teido.com on August 21, 2005, 03:55:34 PM
hi can someone show me what i need to modify to have it so the "about" and "announcements" are aligned to the left and not center?

thanks, we really appreciate it!
J
Title: Re: SimplePortal
Post by: ArkServer on August 21, 2005, 09:04:40 PM
ive got an error installing with a theme (Themis design by  Bloc)
"index.template.php     Failure"

my index.template,
Im sure something needs to be changed but i don;t know what.


// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
        global $context, $settings, $options, $scripturl, $txt;

        // Show the [home] and [help] buttons.

        $menu1 = '
                                <a href="'. $scripturl. '"><img src="' . $settings['images_url'] . '/gnome/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" /></a>
                                <a href="'. $scripturl. '?action=help" target="_blank"><img src="' . $settings['images_url'] . '/gnome/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" /></a>';

       $menu2='<a href="'.$scripturl. '">'.$txt[103]. '</a> |
                       <a href="'. $scripturl. '?action=help" target="_blank">'.$txt[119]. '</a>';

        // How about the [search] button?
        if ($context['allow_search']){
                $menu1 .= '
                                <a href="'. $scripturl. '?action=search"><img src="' . $settings['images_url'] . '/gnome/search.gif" alt="' . $txt[182] . '" style="margin: 2px 0;" border="0" /></a>';
                $menu2 .=' |
                                <a href="'. $scripturl. '?action=search">'.$txt[182].'</a>';
         }
        // Is the user allowed to administrate at all? ([admin])
        if ($context['allow_admin']){
                $menu1 .='
                                <a href="'. $scripturl. '?action=admin"><img src="' . $settings['images_url'] . '/gnome/admin.gif" alt="' . $txt[2] . '" style="margin: 2px 0;" border="0" /></a>';
                $menu2 .='   |
                                <a href="'. $scripturl. '?action=admin">'.$txt[2].'</a>';

          }
        // Edit Profile... [profile]
        if ($context['allow_edit_profile']){
                $menu1 .= '
                                <a href="'. $scripturl. '?action=profile"><img src="' . $settings['images_url'] . '/gnome/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" /></a>';
                $menu2.= '    |
                                <a href="'. $scripturl. '?action=profile">'.$txt[467]. '</a>';
        }
        // The [calendar]!
        if ($context['allow_calendar']){
                $menu1 .= '
                                <a href="'. $scripturl. '?action=calendar"><img src="' . $settings['images_url'] . '/gnome/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" /></a>';
                $menu2 .= '  |
                                <a href="'. $scripturl. '?action=calendar">'.$txt['calendar24'].'</a>';
        }
        if (!$context['user']['allow_guest'])
echo'
<a href="', $scripturl, '?action=sc_radio">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/radio.gif" alt="' . $txt['infostream'] . '" style="margin: 2px 0;" border="0" />' : $txt['infostream']), '</a>', $context['menu_separator'];

// If the user is a guest, show [login] and [register] buttons.
        if ($context['user']['is_guest'])
        {
                $menu1 .=  '
                                <a href="'. $scripturl. '?action=login"><img src="' . $settings['images_url'] . '/gnome/login.gif" alt="' . $txt[34] . '" style="margin: 2px 0;" border="0" /></a>
                                <a href="'. $scripturl. '?action=register"><img src="' . $settings['images_url'] . '/gnome/register.gif" alt="' . $txt[97] . '" style="margin: 2px 0;" border="0" /></a>';
                $menu2 .= '   |
                                <a href="'. $scripturl. '?action=login">'.$txt[34].'</a> |
                                <a href="'. $scripturl. '?action=register">'.$txt[97].'</a>';
        }
        // Otherwise. they might want to [logout]...
        else{
                $menu1 .=  '
                                <a href="'. $scripturl. '?action=logout;sesc='. $context['session_id']. '"><img src="' . $settings['images_url'] . '/gnome/logout.gif" alt="' . $txt[108] . '" style="margin: 2px 0;" border="0" /></a>';
                $menu2 .= '   |
                                <a href="'. $scripturl. '?action=logout;sesc='. $context['session_id']. '">'.$txt[108]. '</a>';
         }
        echo '<div>';
        echo '<a href="#" onclick="shrinkHeadertext(!current_headertext); return false;"><img id="upshrinktext" src="', $settings['images_url'], '/', empty($options['collapse_headertext']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 15px 0px;" align="top" border="0" /></a><img align="top" id="upshrinkTemptext" src="', $settings['images_url'], '/blank.gif" alt="" style="margin: 10px 0px;" />'.$menu1.'</div>';
        echo '<div id="upshrinkHeadertext" style="', empty($options['collapse_headertext']) ? '' : 'display: none;' , 'padding-bottom: 0px; padding-left: 23px; position: relative; top: -6px; z-index: 1;">'.$menu2.'</div>';

}
Title: Re: SimplePortal
Post by: modtang on August 21, 2005, 10:49:07 PM
A user on my forums just pointed out that when you click on the link to take you back to the parent categpry (in this case, Discussion (see below)) of each board the URL now takes you back to the portal rather than the category.

(http://img394.imageshack.us/img394/7472/discussion8ik.gif)

Anyone know how to fix this? Thanks. :)
Title: Re: SimplePortal
Post by: ArkServer on August 22, 2005, 07:24:24 AM
Quote from: modtang on August 21, 2005, 10:49:07 PM
A user on my forums just pointed out that when you click on the link to take you back to the parent categpry (in this case, Discussion (see below)) of each board the URL now takes you back to the portal rather than the category.

(http://img394.imageshack.us/img394/7472/discussion8ik.gif)

Anyone know how to fix this? Thanks. :)

a bit off topic but, how did you do that index thing?
Title: Re: SimplePortal
Post by: Rik© on August 22, 2005, 04:42:17 PM
Quote from: modtang on August 21, 2005, 10:49:07 PM
A user on my forums just pointed out that when you click on the link to take you back to the parent categpry (in this case, Discussion (see below)) of each board the URL now takes you back to the portal rather than the category.

(http://img394.imageshack.us/img394/7472/discussion8ik.gif)

Anyone know how to fix this? Thanks. :)

Here's the fix --> http://simpletweaks.co.nr/forum/index.php?topic=8.0

- Rik©
Title: Re: SimplePortal
Post by: modtang on August 22, 2005, 06:34:20 PM
Thanks Rik©. Simple fix. :)
Title: Re: SimplePortal
Post by: Rik© on August 23, 2005, 03:53:24 AM
Quote from: ArkServer on August 21, 2005, 09:04:40 PM
ive got an error installing with a theme (Themis design by  Bloc)
"index.template.php     Failure"

my index.template,
Im sure something needs to be changed but i don;t know what.
You need to add the forum button (and link) to your theme manually.


Here we go...
QuoteALWAYS make backups of the files you want to edit/modify!

- First create a Forum button (forum.gif) and put it in the theme's /images/english folder.
(noticed your buttons are in a folder called gnome so for your theme i think you must put it in the gnome folder (/images/english/gnome/forum.gif).

- Then go to your theme's index.template.php and open it (after you made a backup ;D).

Find:
        $menu1 = '
                                <a href="'. $scripturl. '"><img src="' . $settings['images_url'] . '/gnome/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" /></a>
                                <a href="'. $scripturl. '?action=help" target="_blank"><img src="' . $settings['images_url'] . '/gnome/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" /></a>';

Replace with:
$txt['forum'] = 'Forum';
        $menu1 = '
                                <a href="'. $scripturl. '"><img src="' . $settings['images_url'] . '/gnome/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" /></a>
                                <a href="'. $scripturl. '?action=forum"><img src="' . $settings['images_url'] . '/gnome/forum.gif" alt="' . $txt['forum'] . '" style="margin: 2px 0;" border="0" /></a>
                                <a href="'. $scripturl. '?action=help" target="_blank"><img src="' . $settings['images_url'] . '/gnome/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" /></a>';


Find:
       $menu2='<a href="'.$scripturl. '">'.$txt[103]. '</a> |
                       <a href="'. $scripturl. '?action=help" target="_blank">'.$txt[119]. '</a>';

Replace with:
       $menu2='<a href="'.$scripturl. '">'.$txt[103]. '</a> | <a href="'.$scripturl. '?action=forum">'.$txt['forum']. '</a> |
                       <a href="'. $scripturl. '?action=help" target="_blank">'.$txt[119]. '</a>';


This should add the forum button and link to your theme...

- Rik©
Title: Re: SimplePortal
Post by: ArkServer on August 24, 2005, 10:46:57 AM
The problem is that the portal won't show up  :-\
Title: Re: SimplePortal
Post by: Rik© on August 24, 2005, 05:22:33 PM
Quote from: ArkServer on August 24, 2005, 10:46:57 AM
The problem is that the portal won't show up  :-\
I can see the portal.... http://arkserver.servehttp.com/forum/index.php
Title: Re: SimplePortal
Post by: Elmacik on August 26, 2005, 12:51:09 AM
i setup this mod but nothing shows up.. i dont know how to use
still the same forum :)
Title: Re: SimplePortal
Post by: xtremecruiser on September 12, 2005, 05:47:07 PM
I cant get to http://dev.nesian.info/ for the last few days ?
Title: Re: SimplePortal
Post by: Xarcell on September 14, 2005, 11:55:53 AM
Try:

http://simpt.si.funpic.org/forum/index.php
Title: Re: SimplePortal
Post by: Rik© on September 14, 2005, 01:51:43 PM
Quote from: Xarcell on September 14, 2005, 11:55:53 AM
Try:

http://simpt.si.funpic.org/forum/index.php
This is not Nesianstyles site (dev.nesian.info) but Simple Tweaks, the support site for my Simple ImageShack mod and the blocks i released for SimplePortal.
Nesianstyles is working hard to get his site back... but i don't know when it will be back.

- Rik©

ps it's better to use http://simpletweaks.co.nr if you want to visit Simple Tweaks.

Title: Re: SimplePortal
Post by: modtang on September 28, 2005, 10:37:26 PM
I'm having some redirect issues with this portal. Help would be appreciated.

- When I click the Mark as read button it redirects me to the portal instead of back to the forum.
- This is related to another mod but you may be able to help. I have the Visual Warning Mod installed.
http://mods.simplemachines.org/index.php?mod=6

After I change someone's warn level (click Submit) it redirects me to the portal instead of the forum/post.

Here's the relevant piece of code I've narrowed it down to (I think).


<edit file>
$sourcedir/Post.php
</edit file>

<search for>
// Might've changed the subject/poster.
updateLastMessages($board);

$newTopic = false;
}
</search for>

<add after>
elseif(!isset($_REQUEST['msg']) && !$user_info['is_admin'] && $user_info['warning'] == 2){
$idtostore = $topic == null ? -1 : $topic;
$request = db_query("
INSERT INTO {$db_prefix}postmoderation
(ID_MEMBER, ID_TOPIC, ID_BOARD, subject, posterName,
posterEmail, posterTime, posterIP, body, icon,smiliesEnabled, ID_POLL)
VALUES ($ID_MEMBER, '$idtostore', '$board', '$_POST[subject]',
'$_POST[guestname]', '$_POST[email]', " . time() . ", '$_SERVER[REMOTE_ADDR]',
'$_POST[message]','$_POST[icon]', " . (isset($_POST['ns']) ? '0' : '1') . ", $ID_POLL)", __FILE__, __LINE__);
if ($modSettings['returnToPost'] == '1' && $topic != '')
redirectexit("$scripturl?topic=$threadid;start=new");
else
redirectexit("$scripturl?board=$board");
}
</add after>


There's also some redirects in here:


<?php
/******************************************************************************
* VisualWarning.php                                                           *
*******************************************************************************
* SMF: Simple Machines Forum - MOD                                            *
* =========================================================================== *
* Software Version:           1.0                                      *
* Software by:                Matthew Wolf (a.k.a Grudge)      *
* Updates:  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 Lewis Media.        *
*                                                                             *
* 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...');

function
AddWarning()
{
global $context, $scripturl, $db_prefix, $modSettings, $user_info, $sourcedir;
global $ID_MEMBER, $txt, $topic, $enable_ubbc;

loadTemplate('VisualWarning');
$context['sub_template'] = 'add_warning';
$context['page_title'] = $txt['visual_raise'];

// Permission
isAllowedTo('visual_warn_any');

if (!isset($_REQUEST['user']))
fatal_error("hacker");
// Important
$context['topic'] = $topic;
$context['back'] = isset($_REQUEST['back']) ? $_REQUEST['back'] : -1;
$context['memberID'] = $_REQUEST['user'];
$context['msg'] = isset($_REQUEST['msg']) ? $_REQUEST['msg'] : -1;
$context['start'] = isset($_REQUEST['start']) ? $_REQUEST['start'] : -1;

$request = db_query("
SELECT ID_GROUP
FROM
{$db_prefix}members
WHERE ID_MEMBER='
$_REQUEST[user]' LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($request);
if ($row['ID_GROUP']== 1)
fatal_error("You CANNOT warn admins/mods");
$request = db_query("
SELECT ID, memberID, warningText, messageID, time, level
FROM
{$db_prefix}vwarnings
WHERE MemberID='
$_REQUEST[user]' LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($request);

if($row){
$request = db_query("
SELECT body
FROM
{$db_prefix}messages
WHERE ID_MSG =
$context[msg] LIMIT 1", __FILE__, __LINE__);
$message = mysql_fetch_assoc($request);
include_once($sourcedir . '/Subs-Post.php');

if ($enable_ubbc)
$message['body'] = doUBBC($message['body']);
$context['previous'] = array(
'warnid' => $row['ID'],
'body' => $message['body'],
'level' => $row['level'],
'time' => timeformat($row['time']),
'warningtext' => $row['warningText'],
);
}
obExit();
}


function
AddWarning2()
{
global $scripturl, $db_prefix, $settings, $modSettings, $txt, $sourcedir;

// Permission
isAllowedTo('visual_warn_any');

// Load the language file for sendpm.
loadLanguage('InstantMessage');

if ($_REQUEST['timelast'] == "")
$_REQUEST['timelast'] = -1;

$_REQUEST['level'] = isset($_REQUEST['level']) ? (int) $_REQUEST['level'] : 0;
$_REQUEST['msg'] = isset($_REQUEST['msg']) ? (int) $_REQUEST['msg'] : 0;
$_REQUEST['user'] = isset($_REQUEST['user']) ? (int) $_REQUEST['user'] : 0;
$_REQUEST['timelast'] = isset($_REQUEST['timelast']) ? (int) $_REQUEST['timelast'] : 0;

// Sorry dude but admins only here
if ($_REQUEST['level'] > 3)
is_admin();

include_once($sourcedir . '/Subs-Post.php');
// Sort out the message.
$message = htmlspecialchars($_REQUEST['warningmsg'], ENT_QUOTES);
preparsecode($message);

$request = db_query("
SELECT ID_MEMBER, memberName, warning, emailAddress
FROM
{$db_prefix}members
WHERE ID_MEMBER =
$_REQUEST[user] LIMIT 1", __FILE__, __LINE__);
$member = mysql_fetch_assoc($request);
if ($_REQUEST['msg'] != -1){
$request = db_query("
SELECT body
FROM
{$db_prefix}messages
WHERE ID_MSG =
$_REQUEST[msg] LIMIT 1", __FILE__, __LINE__);
list($body) = mysql_fetch_row($request);
}
else
$body = '';
// Make the warnings things look pretty
if ($_REQUEST['msg'] != -1 && $body != '' && $_REQUEST['level'] > 0 && $_REQUEST['level'] < 5){
if ($_REQUEST['level'] == 1){
$warn = 'warn';
}
elseif ($_REQUEST['level'] == 2){
$warn = 'pmod';
}
elseif ($_REQUEST['level'] == 3){
$warn = 'mute';
}
else {
$warn = 'ban';
}
$body .= "\n[center]"
. ($modSettings['visualw_image_' . $warn] != "" ?
'[img]' . $settings['images_url'] . '/' . $modSettings['visualw_image_' . $warn] . '[/img]'
: '')
. ($modSettings['visualw_color_' . $warn] != "" ?
'&nbsp;[color=' . $modSettings['visualw_color_' . $warn] . ']' . $message . '[/color]'
: '') . '[/center]';
// Update the message
db_query("
UPDATE
{$db_prefix}messages
SET body = '
$body'
WHERE ID_MSG =
$_REQUEST[msg]", __FILE__, __LINE__);
}
// firstly update the user profile for the new warning
db_query("
UPDATE
{$db_prefix}members
SET warning =
$_REQUEST[level]
WHERE ID_MEMBER =
$_REQUEST[user]", __FILE__, __LINE__);
// Now if the warning has been changed to zero - delete the members entry in the warning table
if ($_REQUEST['level'] == 0)
{
$_REQUEST['warnid'] = (int) $_REQUEST['warnid'];
if ($_REQUEST['warnid'] != -1)
db_query("
DELETE FROM
{$db_prefix}vwarnings
WHERE ID =
$_REQUEST[warnid] LIMIT 1", __FILE__, __LINE__);
}
else{
if ($_REQUEST['level'] == 4){
is_admin();
// Ban this user!
db_query("
INSERT INTO
{$db_prefix}banned (ID_MEMBER, ban_type, reason, notes, restriction_type, ban_time, expire_time)
VALUES (
$_REQUEST[user], 'user_ban', '$message', '$txt[visual_warning_management]', 'full_ban', " . time() . ", " . ($_REQUEST['timelast'] != -1 ? time() + 24 * 60 * 60 * (int) $_REQUEST['timelast'] : 'NULL') . ")", __FILE__, __LINE__);
}
// for all the rest just update the table with the new details!
elseif($_REQUEST['warnid'] == -1){
$time=time();
db_query("
INSERT INTO
{$db_prefix}vwarnings
(memberID, messageID, warningText, time, level, timeToWarn)
VALUES (
$_REQUEST[user],$_REQUEST[msg],'$message',
"
. time() . ", $_REQUEST[level], $_REQUEST[timelast])",__FILE__, __LINE__);
}
else{
db_query("
UPDATE
{$db_prefix}vwarnings
SET time = "
. time() . ", level=$_REQUEST[level], messageID=$_REQUEST[msg],
warningText='
$message', timeToWarn=$_REQUEST[timelast]
WHERE ID=
$_REQUEST[warnid]", __FILE__, __LINE__);
}
}
// Send user warning IM
if($member['warning'] != $_REQUEST['level']){
$imsubject = $member['warning'] > $_REQUEST['level'] ? $txt['visual_reduced'] : $txt['visual_official_warning'];
$immessage = $member['memberName'] . "\n\n";
if($member['warning'] < $_REQUEST['level']){
if ($_REQUEST['msg'] != -1 && $_REQUEST['topic'] != -1)
$immessage .= $txt['visual_received_warning'] .
"\n\n $scripturl?topic=$_REQUEST[topic]/$_REQUEST[msg]#$_REQUEST[msg]";
else
$immessage .= $txt['visual_warning_increased'];
}
else
$immessage .= $txt['visual_warning_reduced'];
$recs = array(
'to' => array($member['ID_MEMBER']),
'bcc' => array()
);
sendpm($recs, $imsubject, $immessage, 0);
}
if ($_REQUEST['back'] != -1)
redirectexit("$scripturl?action=$back");
elseif ($_REQUEST['msg'] != -1 && $_REQUEST['topic'] != -1)
redirectexit("$scripturl?topic=$_REQUEST[topic]/$_REQUEST[msg]#$_REQUEST[msg]");
else
redirectexit();
}

function
ListWarnings()
{

global $scripturl, $db_prefix, $settings, $modSettings, $ID_MEMBER, $txt, $context;

loadTemplate('VisualWarning');
$context['sub_template'] = 'list_warnings';
$context['page_title'] = $txt['visual_warning_management'];

adminIndex('warning_manager');

// Permission
isAllowedTo('visual_warn_any');

$request = db_query("
SELECT w.ID, w.memberID, w.warningText, w.time, w.level, m.memberName, m.realName
FROM
{$db_prefix}vwarnings as w
LEFT JOIN
{$db_prefix}members as m ON (m.ID_MEMBER = w.memberID)
WHERE w.level > 0 AND w.level < 4
ORDER BY w.time"
, __FILE__, __LINE__);

$context['warnings'] = array();
$warnText = array(
1 => 'warn',
2 => 'pmod',
3 => 'mute'
);
while ($row = mysql_fetch_assoc($request))
{
$context['warnings'][] = array(
'memberID' => $row['memberID'],
'time' => timeformat($row['time']),
'memberName' => $row['memberName'],
'realName' => $row['realName'],
'level' => $txt['visual_text_' . $warnText[$row['level']]],
'warningText' => $row['warningText']
);
}
obExit();
}


function
ListWarnings2(){
global $scripturl, $db_prefix, $settings, $modSettings, $txt;

// Permission
isAllowedTo('visual_warn_any');

if (empty($_REQUEST['lower']))
$_REQUEST['lower'] = array();

foreach ($_REQUEST['lower'] as $id => $dummy)
{
$id = (int) $id;
db_query("
UPDATE
{$db_prefix}members
SET warning = warning - 1
WHERE ID_MEMBER =
$id AND warning > 0", __FILE__, __LINE__);
$request = db_query("
SELECT level FROM
{$db_prefix}vwarnings
WHERE memberID =
$id LIMIT 1", __FILE__, __LINE__);
list($level) = mysql_fetch_row($request);
if ($level == 1)
db_query("
DELETE FROM
{$db_prefix}vwarnings
WHERE memberID =
$id", __FILE__, __LINE__);
else
db_query("
UPDATE
{$db_prefix}vwarnings
SET level = level - 1, timeToWarn = -1
WHERE memberID =
$id", __FILE__, __LINE__);
}
redirectexit("action=warnlist");
}

function
Manager(){

global $scripturl, $db_prefix, $settings, $modSettings, $enable_ubbc, $txt, $context, $sourcedir;

$context['start'] = isset($_REQUEST['start']) ? $_REQUEST['start'] : 0;
$display=40;

// Permissions
isAllowedTo('visual_approve_any');

loadTemplate('VisualWarning');
$context['sub_template'] = 'pmod_manager';
$context['page_title'] = $txt['visual_postmod_manager'];

adminIndex('postmod_manager');

$request = db_query("
SELECT p.ID, p.ID_MEMBER, p.ID_POLL, p.subject, p.body,
m.realName, m.memberName
FROM
{$db_prefix}postmoderation as p
LEFT JOIN
{$db_prefix}members as m ON (m.ID_MEMBER = p.ID_MEMBER)
ORDER BY p.posterTime
LIMIT
$context[start], $display", __FILE__, __LINE__);
$numrows = mysql_num_rows($request);
$context['posts'] = array();
include_once($sourcedir . '/Subs-Post.php');
while ($row = mysql_fetch_assoc($request))
{
preparsecode($row['body']);
if ($enable_ubbc)
$row['body'] = doUBBC($row['body']);
$context['posts'][] = array(
'ID' => $row['ID'],
'ID_POLL'=> $row['ID_POLL'],
'ID_MEMBER' => $row['ID_MEMBER'],
'subject' => $row['subject'],
'body' => $row['body'],
'realName' => $row['realName'],
'memberName' => $row['memberName']
);
}
$context['pageIndex'] = constructPageIndex("$scripturl?action=warnpmman", $context['start'], $numrows, $display);
obExit();
}

function
Manager2(){
global $scripturl, $db_prefix, $settings, $modSettings, $sourcedir, $txt;

// Permissions
isAllowedTo('visual_approve_any');

if (empty($_REQUEST['message']))
$_REQUEST['message'] = array();

foreach ($_REQUEST['message'] as $id => $dummy)
{
$id = (int) $id;
$request = db_query("
SELECT ID, ID_MEMBER, ID_BOARD, ID_POLL, ID_TOPIC, subject, posterName,
posterEmail, posterTime, posterIP, body, icon, smiliesEnabled
FROM
{$db_prefix}postmoderation
WHERE ID =
$id LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($request);
// Due to current sorting methods only this will work! :(
$row['posterTime'] = time();
if($txt['visual_postmod_approve'] == $_REQUEST['waction'])
{  //approve
$time=time();
$row['body'] = addslashes($row['body']);
$row['subject'] = addslashes($row['subject']);
// Insert the post.
db_query("
INSERT INTO
{$db_prefix}messages
(ID_BOARD, ID_TOPIC, ID_MEMBER, subject, posterName, posterEmail, posterTime,
                              posterIP, smileysEnabled, body, icon)
VALUES (
$row[ID_BOARD], $row[ID_TOPIC], $row[ID_MEMBER], '$row[subject]', '$row[posterName]', '$row[posterEmail]',
'
$row[posterTime]','$row[posterIP]', '$row[smiliesEnabled]', '$row[body]',
'
$row[icon]')", __FILE__, __LINE__);
$ID_MSG = mysql_insert_id();
// Post count
db_query("
UPDATE
{$db_prefix}members
SET posts = posts + 1
WHERE ID_MEMBER =
$row[ID_MEMBER]", __FILE__, __LINE__);
if ($row['ID_TOPIC'] == 0 || $row['ID_TOPIC'] == -1) //new topic
{
if ($ID_MSG > 0)
{
// Insert the new topic.
db_query("
INSERT INTO
{$db_prefix}topics
(ID_BOARD, ID_MEMBER_STARTED, ID_MEMBER_UPDATED, ID_FIRST_MSG, ID_LAST_MSG,
numViews, ID_POLL)
VALUES (
$row[ID_BOARD], $row[ID_MEMBER], $row[ID_MEMBER], $ID_MSG, $ID_MSG,
0,
$row[ID_POLL])", __FILE__, __LINE__);
$topic = mysql_insert_id();
if ($topic > 0)
{
// Fix the message with the topic.
db_query("
UPDATE
{$db_prefix}messages
SET ID_TOPIC =
$topic
WHERE ID_MSG =
$ID_MSG
LIMIT 1"
, __FILE__, __LINE__);
// Increase the number of posts and topics on the board.
db_query("
UPDATE
{$db_prefix}boards
SET numPosts = numPosts + 1, numTopics = numTopics + 1
WHERE ID_BOARD =
$row[ID_BOARD]
LIMIT 1"
, __FILE__, __LINE__);

// There's been a new topic AND a new post today.
if (!empty($modSettings['trackStats']))
trackStats(array('topics' => '+', 'posts' => '+'));

// Update all the stats so everyone knows about this new topic and message.
updateStats('topic');
updateStats('message');
UpdateLastMessages($row['ID_BOARD']);
}
}
$newTopic = true;
}
else
{
if ($ID_MSG > 0)
{
// Check this is the most recent reply
$request = db_query("
SELECT ID_MSG
FROM
{$db_prefix}messages
WHERE ID_TOPIC =
$row[ID_TOPIC]
ORDER BY posterTime LIMIT 1"
, __FILE__, __LINE__);
list($lastMsg) = mysql_fetch_row($request);
// Update the number of replies and the lock/sticky status.
db_query("
UPDATE
{$db_prefix}topics
SET "
. ($lastMsg == $ID_MSG ? 'ID_MEMBER_UPDATED = ' . $row['ID_MEMBER'] . '
, ID_LAST_MSG = '
. $ID_MSG . ',' : '') . "
numReplies = numReplies + 1
WHERE ID_TOPIC =
$row[ID_TOPIC]
LIMIT 1"
, __FILE__, __LINE__);
// Update the post count.
db_query("
UPDATE
{$db_prefix}boards
SET numPosts = numPosts + 1
WHERE ID_BOARD =
$row[ID_BOARD]
LIMIT 1"
, __FILE__, __LINE__);

// Statistics...
if (!empty($modSettings['trackStats']))
trackStats(array('posts' => '+'));

// Update the *other* stats.
updateStats('message');
UpdateLastMessages($row['ID_BOARD']);
}
$newTopic = false;
}
//now just delete the post from the moderation list!
db_query("
DELETE
FROM
{$db_prefix}postmoderation
WHERE id=
$row[ID] LIMIT 1", __FILE__, __LINE__);
}
else{ //delete
if ($row['ID_POLL'] > 0)//delete poll entry too
{
// Remove all poll choices.
db_query("
DELETE FROM
{$db_prefix}poll_choices
WHERE ID_POLL =
$row[ID_POLL]", __FILE__, __LINE__);
// Remove the poll itself.
db_query("
DELETE FROM
{$db_prefix}polls
WHERE ID_POLL =
$row[ID_POLL]
LIMIT 1"
, __FILE__, __LINE__);
}
db_query("
DELETE
FROM
{$db_prefix}postmoderation
WHERE ID =
$row[ID] LIMIT 1", __FILE__, __LINE__);
}

}
redirectexit("action=warnpmman;start=$_REQUEST[start]");
}

?>


Need to know the general gist of what has to be changed so I can fix these myself in future. Thanks. :)
Title: Re: SimplePortal
Post by: 3-CXT on October 12, 2005, 02:05:43 PM
is there a new version of simple portal out now? i mean for the new rc1.1 smf!
Title: Re: SimplePortal
Post by: snork13 on October 12, 2005, 09:27:58 PM
Quote from: 3-CXT on October 12, 2005, 02:05:43 PM
is there a new version of simple portal out now? i mean for the new rc1.1 smf!

it works just fine with 1.1rc1

demo: www.phantasyposters.net/community (http://www.phantasyposters.net/community)
Title: Re: SimplePortal
Post by: mastroale on October 17, 2005, 05:01:53 AM
Hi, someone coule explain me the steps to manually install this feature? I dont'know why tha packagemaneger doesn't work either in local and in my server. I tried to upload the files in the forum directory, but I can't see nothing new... thanks in advance, Ale
Title: Re: SimplePortal
Post by: snork13 on October 17, 2005, 01:34:49 PM
Quote from: mastroale on October 17, 2005, 05:01:53 AM
Hi, someone coule explain me the steps to manually install this feature? I dont'know why tha packagemaneger doesn't work either in local and in my server. I tried to upload the files in the forum directory, but I can't see nothing new... thanks in advance, Ale

look at the .xml files
Title: Re: SimplePortal
Post by: mastroale on October 17, 2005, 05:53:26 PM
Quote from: snork13 on October 17, 2005, 01:34:49 PM
look at the .xml files

Looked, but it doesn't help me anyway...   :'(

Please, noone could kindly tell me step by step? I'm not a newbie, but really I can't install this feature...
Title: Re: SimplePortal
Post by: Xarcell on October 19, 2005, 02:49:44 PM
I can't seem to download any of the additional blocks at simpletweaks.

Anyone know where I can get them?

-Xarcell
Title: Re: SimplePortal
Post by: DemonicInfluence on October 19, 2005, 09:33:31 PM
Did u register?
Title: Re: SimplePortal
Post by: Xarcell on October 23, 2005, 02:12:28 PM
Yep, and when I click to download, then the agree tab, this is the error page I get:

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

Not Found
The requested URL /userfiles/SimpleT/SimpleTweaks/ST-UserInfo_103.zip was not found on this server.

Apache/1.3.33 Server at thefilehut.com Port 80

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

Anyone have the recent blocks? Such as user info?

-Xarcell
Title: Re: SimplePortal
Post by: Xarcell on October 23, 2005, 03:13:42 PM
Is SimplePortal no longer supported? I hope not, I like it better than tinyportal.

-Xarcell
Title: Re: SimplePortal
Post by: DemonicInfluence on October 23, 2005, 07:03:17 PM
Quote from: Xarcell on October 23, 2005, 02:12:28 PM
Yep, and when I click to download, then the agree tab, this is the error page I get:

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

Not Found
The requested URL /userfiles/SimpleT/SimpleTweaks/ST-UserInfo_103.zip was not found on this server.

Apache/1.3.33 Server at thefilehut.com Port 80

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

Anyone have the recent blocks? Such as user info?

-Xarcell

I have user info... Do u want?
Title: Re: SimplePortal
Post by: Xarcell on October 23, 2005, 10:28:59 PM
Sure!

Clock too if ya got it, 1.1b3? Although I'm running rc1.
Title: Re: SimplePortal
Post by: DemonicInfluence on October 24, 2005, 07:24:32 AM
I had clock. Not sure now.

this is user info. should work for RC1

http://thehouseofpolitics.com/Packages/ST-UserInfo_103.zip
Title: Re: SimplePortal
Post by: Psyclones on October 24, 2005, 08:11:51 AM
FYI

Nesian has updated his website address on his profile,

try

http://dev.nsf.mher.org/index.php

for simple protal website
Title: Re: SimplePortal
Post by: Elmacik on October 24, 2005, 08:54:45 AM
i thought his site is off.. did he move? :-\
Title: Re: SimplePortal
Post by: DemonicInfluence on October 24, 2005, 06:02:09 PM
Yes.
Title: Re: SimplePortal
Post by: 3-CXT on October 26, 2005, 02:16:41 PM
and what happen wit the further work of this nice portal?
Title: Re: SimplePortal
Post by: redone on October 26, 2005, 02:32:37 PM
Nessian's site and development of simpleportal is stil alive and well.

http://dev.nsf.mher.org/index.php

;)
Title: Re: SimplePortal
Post by: Xarcell on October 29, 2005, 12:28:25 AM
Thanx alot for the userinfo block. Works great...

Anyone have clock? 1.1b3 or rc1?

-Xarcell

Title: Re: SimplePortal
Post by: PowerPyx on November 05, 2005, 09:47:31 AM
Quote from: redone on October 26, 2005, 02:32:37 PM
Nessian's site and development of simpleportal is stil alive and well.

http://dev.nsf.mher.org/index.php

;)

link doesn't work ... testet on November, 5th. ?

Maybe somebody nows if he moves his side ?

Title: Re: SimplePortal
Post by: holis on November 05, 2005, 02:18:09 PM
Hoping someone can help me ...

Thru editing I seem to have lost the code that adds the forums button to the top bar.

Can anyone assist me in adding it back ?

Take a look at http://www.freerollerz.com for more details.

Thanks!
Title: Re: SimplePortal
Post by: DemonicInfluence on November 05, 2005, 08:07:51 PM
Quote from: PowerPyx on November 05, 2005, 09:47:31 AM
Quote from: redone on October 26, 2005, 02:32:37 PM
Nessian's site and development of simpleportal is stil alive and well.

http://dev.nsf.mher.org/index.php

;)

link doesn't work ... testet on November, 5th. ?

Maybe somebody nows if he moves his side ?



It works. I think he was having problems or something.


//How about the [forum] button?
$txt['forum'] = 'Forum';
echo '           <a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt['forum'] . '" style="margin: 2px 0;" border="0" />' : $txt['forum']), '</a>', $context['menu_separator'];


That is code for the forums button on the default theme.

Title: Re: SimplePortal
Post by: Teknomancer on November 29, 2005, 01:58:47 AM
What permissions are needed? Because thru package manager it says

Quote
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.
Title: Re: SimplePortal
Post by: DemonicInfluence on November 29, 2005, 08:15:46 PM
777?
Title: Re: SimplePortal
Post by: Teknomancer on November 30, 2005, 03:58:52 AM
Strange thing is (because of CGI i think) sometimes simply giving FULL permissions won't work, you need to set the EXACT permissions such as 655 etc to get it to work...

btw, its working on my site but on my localhost:// all the permissions seem to have been messed up and now clicking "Apply Mod" for ANY MOD (not just this one) gives that FTP warning of permissions being incorrect.

I heavily use localhost to do all the changes and now that seems to be broken :(
Title: Re: SimplePortal
Post by: DemonicInfluence on November 30, 2005, 07:20:45 AM
what are os are u using for localhost? Windows?
Title: Re: SimplePortal
Post by: Pink Bee on November 30, 2005, 09:08:57 PM
Some few dumb qns here:

1. How do I change this text into something else?
QuoteWelcome to Our Site.
Here you can talk about whatever you want.
Enjoy your Time
- Management

2. How do I add more blocks like Polls, Affiliates etc.?

3. How do I assign a board to [Forum Announcements]?

Very sorry if the questions have been repeated...
Title: Re: SimplePortal
Post by: Teknomancer on November 30, 2005, 11:00:08 PM
Quote from: Libo on November 30, 2005, 07:20:45 AM
what are os are u using for localhost? Windows?

Debian Linux.
Title: Re: SimplePortal
Post by: Psyclones on December 01, 2005, 03:53:34 AM
Quote from: pinkbee on November 30, 2005, 09:08:57 PM
1. How do I change this text into something else?
QuoteWelcome to Our Site.
Here you can talk about whatever you want.
Enjoy your Time
- Management

2. How do I add more blocks like Polls, Affiliates etc.?

3. How do I assign a board to [Forum Announcements]?

Very sorry if the questions have been repeated...

A1. Open Themes/default/languages/Portal.english.php and change $txt['portal_21'] to what you want. This will show under the about block.

A2 You will need to edit Thems/Default/portal.template.php

A3 Please change the Board Number and if you want the number in Themes/default/Portal.template.php
If you want to turn them off then Open Themes/default/Portal.template.php and change the option there.

hope this helps


All this information is in the docs of the simple portal.
Title: Re: SimplePortal
Post by: DemonicInfluence on December 01, 2005, 07:24:32 AM
Quote from: Teknomancer on November 30, 2005, 11:00:08 PM
Quote from: Libo on November 30, 2005, 07:20:45 AM
what are os are u using for localhost? Windows?

Debian Linux.

then set permissions to just 777 ... That's the code for full. I think
Title: Re: SimplePortal
Post by: holis on December 11, 2005, 06:05:51 PM
Need help!


I just stared getting this message today :


   8: Undefined index: forum
File: /home/holis/public_html/freerollerz/Themes/default/languages/Portal.english.php (eval?)
Line: 484

When you click on the link you get this:

Database Error: Got error 127 from storage engine
File: /home/holis/public_html/freerollerz/Sources/BoardIndex.php
Line: 82


Any ideas here ? My site is dead in the water right now...

Title: Re: SimplePortal
Post by: Thantos on December 11, 2005, 06:14:04 PM
Please don't cross post holis.  Please see you topic for assistance.
Title: Re: SimplePortal
Post by: crazystu on December 13, 2005, 08:24:02 PM
It seems I've let this topic run off...
Please for any support issues use my forum here (http://dev.nsf.mher.org).
Title: Re: SimplePortal
Post by: Prasad007 on December 18, 2005, 10:08:27 AM
wow this is cool.! Thanks!
Title: Re: SimplePortal
Post by: Byohki on January 02, 2006, 08:20:36 PM
Is is maybe possible to create another "links" table but the on the left under the "Menu" table ? And with a different title?
I'm using SMF 1.05 with the portal system: 1.0
Title: Re: SimplePortal
Post by: Psyclones on January 03, 2006, 03:50:29 AM
I know nessian is away for a few weeks but it is possible,

I think you will have to edit the themes/default/ index.template.php

to achieve what you want.

if you get stuck let me know and i will try to have a look at it for you.
Title: Re: SimplePortal
Post by: Byohki on January 03, 2006, 08:34:58 PM
Could you maybe check? :-[ Cuz I suck at PHP.. :-[
Title: Re: SimplePortal
Post by: Byohki on January 05, 2006, 06:23:05 PM
Anyone? :-[
Title: Re: SimplePortal
Post by: Psyclones on January 06, 2006, 03:48:16 AM
Have not forgot about you, but busy at moment should be able to get something sorted for the weekend for you.

Thanks
Psyclones.
Title: Re: SimplePortal
Post by: Byohki on January 06, 2006, 07:46:48 AM
Ah ok thnx mate..  :)
Title: Re: SimplePortal
Post by: Psyclones on January 08, 2006, 06:56:23 AM
Right then Matey

Goto Themes/Default/Languages/ and open portal.english for editing.

paste the following at the end of the file just before the ?>


$txt['portal_25'] = "Links2";
$txt['portal_26'] = '<a href="http://dev.nesian.info/">NesianDev</a><br />
<a href="http://simplemachines.org">Simple Machines Forum</a><br />';


then save the file.  This is where you would add your 2nd set of links.

Open themes/default/portal.template for editing.

Find

echo'<a href="index.php?action=login">'.$txt['portal_18'].'</a><br />
<a href="index.php?action=register">'.$txt['portal_19'].'</a>';
}
echo'</td>
</tr></table>
<br>


and underneath it add the following code

<table class="tborder" border="0" width="95%" cellspacing="1" cellpadding="4">
<tr><td class="titlebg">'.$txt['portal_25'].'</td>
</tr>
<tr><td class="windowbg2">'.$txt['portal_26'].'</td>
</tr></table>
<br />


if the above it a bit complex for you download the archive and copy the modded files into the right places.  Text file included in archive.

Download File Here (http://allinhosting.co.uk/links.zip)

hope this helps
Title: Re: SimplePortal
Post by: Byohki on January 08, 2006, 11:37:47 AM
Ah thnx allot dude.. :D I'll try it out immediatly.. :D

Edit: It works.. Thnx allot mate..  :D
Title: Re: SimplePortal
Post by: ArkServer on January 11, 2006, 03:16:37 PM
Anyone know how to add the recent post code in the portal? i tried but it doenst work..

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent">
<img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" border="0" /></a>
</td>
<td class="windowbg2">';

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b><br />
<span class="smalltext">
', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
</span>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table width="100%" border="0">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
<td valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
<td align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</td>
</tr>';
}
Title: Re: SimplePortal
Post by: Psyclones on January 11, 2006, 06:49:18 PM
isnt it already there,

have you read the docs and setup which forum you want the posts to come from.?
Title: Re: SimplePortal
Post by: ArkServer on January 11, 2006, 08:13:38 PM
Quote from: Psyclones on January 11, 2006, 06:49:18 PM
isnt it already there,

have you read the docs and setup which forum you want the posts to come from.?


I want to use the one in the index template. Can you help me getting it displayed under the latest announcement?
Title: Re: SimplePortal
Post by: Psyclones on January 12, 2006, 08:43:08 AM
I`m sorry my brain isnt working properly could you supply an in depth explination of what you are attempting to do.

The standard install of simpleportal has the following boxes (blocks) on the main page

Menu Block                               About Block                                         Shout Block (if enabled)

Welcome User Block                     Forum Announcement Block                Quick Search

Who`s Online Block                                                                             Links Block

Recent Posts BLock                                                                              Newest Member Block

Top Poster Block                                                                                   Top Topics Block

Top Boards Block

Is it one of these your are after or a new block.

Title: Re: SimplePortal
Post by: Byohki on January 12, 2006, 12:46:39 PM
I might be a pest but I'd like to know if there's a way to display images on the portal like in links or something.. :-[

I tried regular html like:

<IMG SRC="image.gif">
<A HREF="http://www.htmlgoodies.com"><IMG SRC="homepage.gif"></A>

And some others but they all crashed the skin.. :P
Title: Re: SimplePortal
Post by: 3-CXT on January 13, 2006, 11:36:50 AM
Quote from: Psyclones on January 12, 2006, 08:43:08 AM
I`m sorry my brain isnt working properly could you supply an in depth explination of what you are attempting to do.

The standard install of simpleportal has the following boxes (blocks) on the main page

Menu Block                               About Block                                         Shout Block (if enabled)

Welcome User Block                     Forum Announcement Block                Quick Search

Who`s Online Block                                                                             Links Block

Recent Posts BLock                                                                              Newest Member Block

Top Poster Block                                                                                   Top Topics Block

Top Boards Block

Is it one of these your are after or a new block.


how can ii delete in the template following blocks..

top posters, top boards, top topics block.... and i will throw the newest member block to the other side....
Title: Re: SimplePortal
Post by: Byohki on January 14, 2006, 07:00:37 AM
Could someone help us on this? ::)
Title: Re: SimplePortal
Post by: Psyclones on January 14, 2006, 09:57:25 AM
Byohki:

edit Themes/default/languages/Portal.english.php

find

$txt['portal_24'] = '<a href="http://dev.nesian.info/">NesianDev</a>


replace urls to this format for images.

<a href="lastpage.htm"><img src="link to image" alt="Alt text in here" border="0" /></a>


that should work, cannot test it at moment as my test server is down.

hope this helps

Title: Re: SimplePortal
Post by: Psyclones on January 14, 2006, 10:01:45 AM
3-CXT

WHat version smf and portal are you using?

Title: Re: SimplePortal
Post by: 3-CXT on January 14, 2006, 12:22:28 PM
Quote from: Psyclones on January 14, 2006, 10:01:45 AM
WHat version smf and portal are you using?

i am using the normal simpleportal v1.0 version and the smf 1.1 rc1 (but why the version of smf is important for that?, just 'S changing the portal.template.php, isn't it?)
Title: Re: SimplePortal
Post by: DemonicInfluence on January 14, 2006, 12:35:33 PM
yes..

find: <table class="tborder" border="0" width="95%" cellspacing="1" cellpadding="4">
<tr><td class="titlebg">'.$txt['portal_8'].'</td>
</tr>
<tr><td class="windowbg2">';
include('./Blocks/PortalTopPoster.php');
PortalTopPoster();
echo '</td>
</tr></table>
<br />
<table class="tborder" border="0" width="95%" cellspacing="1" cellpadding="4">
<tr><td class="titlebg" colspan="3">'.$txt['portal_9'].'</td>
</tr>';
include('./Blocks/PortalTopBoards.php');
PortalTopBoards();
echo '</table>
</td>


delete that..

Find:

<br />
<table class="tborder" border="0" width="95%" cellspacing="1" cellpadding="4">
<tr><td class="titlebg" colspan="3">'.$txt['portal_14'].'</td>
</tr>';
include('./Blocks/PortalTopTopics.php');
PortalTopTopics();
echo '</table>


That removes the blocks u didn't want..

Where do u want to put the newest member block?

That should work. I hope. :D
Title: Re: SimplePortal
Post by: Byohki on January 14, 2006, 02:30:34 PM
Psyclones: It doesn't work.. Also that crashes my skin.. :(
Title: Re: SimplePortal
Post by: 3-CXT on January 15, 2006, 06:32:16 AM
Quote from: DemonicInfluence on January 14, 2006, 12:35:33 PMWhere do u want to put the newest member block?

That should work. I hope. :D

on the left side right under the menu block...

and thanks that works fine til now...
Title: Re: SimplePortal
Post by: Psyclones on January 15, 2006, 02:08:31 PM
Byohki

I will look at it when i boot my server back up for you and hopefully resolve it for you.
Title: Re: SimplePortal
Post by: 3-CXT on January 15, 2006, 02:34:06 PM
thanks a lot...

now my portal... look at it :D

www.battleholicz.de
Title: Re: SimplePortal
Post by: Byohki on January 16, 2006, 04:01:30 AM
Aint that seen as promotion? ???
Quote from: Psyclones on January 15, 2006, 02:08:31 PM
Byohki

I will look at it when i boot my server back up for you and hopefully resolve it for you.

Thnx dude.. :D I'll wait.. :)
Title: Re: SimplePortal
Post by: ExistenZ on January 16, 2006, 04:59:56 AM
Can someone get this to work on RC2, perhaps?
Title: Re: SimplePortal
Post by: Psyclones on January 16, 2006, 12:09:43 PM
Quote from: Byohki on January 14, 2006, 02:30:34 PM
Psyclones: It doesn't work.. Also that crashes my skin.. :(

Right then,

In themes/default/  open Portal.english.php in a PHP editor or Wordpad.

Find $txt['portal_24'] =

my portal24 =

$txt['portal_24'] = '<a href="team-project.org"><img src="http://www.team-project.org/images/link2us.gif" alt="Team Project" border="0"></a><br />
<a href="http://www.concs-r-us.com/">ConCs R US</a><br />
<a href="http://unseenprophecy.com/ConC/index.htm">[ConC]</a><br />';

hopefully you should be able to follow this and sort it out.  the 1st link is the link with img and the 2 and 3rd are text links

hope this helps
.


Title: Re: SimplePortal
Post by: Byohki on January 16, 2006, 01:20:55 PM
w00t.. :D Thnx allot dude.. I now also know my mistake..
I had

$txt['portal_28'] = "text";

instead of

$txt['portal_28'] = 'text';

>:( *feels stupid..*
Title: Re: SimplePortal
Post by: Psyclones on January 16, 2006, 01:38:56 PM
as long as its working, thats the main thing.
Title: Re: SimplePortal
Post by: whiteshadow123 on January 20, 2006, 06:51:56 AM
Can anyone successfully installed this mod in RC2?
I have problems in doing it in RC2. It was succussfully installed in 1.0.3.
Thanks,
Title: Re: SimplePortal
Post by: tL0z on January 21, 2006, 08:02:18 AM
Can anyone please indicate me a Live Demo? The one on the first post doesn't work.
Title: Re: SimplePortal
Post by: Psyclones on January 21, 2006, 01:17:19 PM
http://dev.nsf.mher.org/

is the website address of the simple portal wirter
Title: Need help with simpleportal script please
Post by: {FUBAR}techno on February 03, 2006, 08:32:57 AM
Hi there, Trying to install simpleportal, and install is successful, however, on my homepage: http://fubarclan.net , I get this error at the bottom:

Unknown column 'm.ID_MEMBER' in 'on clause'
File: C:\www\fubarclan.net\www\Blocks\PortalRecentPosts.php
Line: 28

Any text editor I use won't show me line 28, so, not sure how to re write the code if needing to. 
Title: Re: SimplePortal
Post by: ArkServer on February 03, 2006, 04:10:38 PM
Same here
tho most of the portal things works.

www.happyserver.be < check it out (portal)
Title: Re: SimplePortal
Post by: 3-CXT on February 04, 2006, 05:04:55 AM
does an upgrade from 1.1 rc1 to 1.1.rc2 kill my simple portal?
or kann i easily upgrade my board without any problems?
Title: Re: SimplePortal
Post by: DemonicInfluence on February 04, 2006, 02:47:31 PM
u have to install it again when u update to rc2. otherwise shouldbe good.
Title: Re: SimplePortal
Post by: ArkServer on February 05, 2006, 10:29:12 AM
Anyone know how to stretch out the "about" and announcement table? I've got an ugly empty space between the menu link and the about table..

www.happyserver.be
Title: Re: SimplePortal
Post by: DemonicInfluence on February 05, 2006, 12:17:05 PM
err... I cant see it...