News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SimplePortal

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

Previous topic - Next topic

FFSFFS


Nathaniel

@FFSFFS,
I don't see any issues with that file, or SimplePortal installed. Can you please install SimplePortal 2.3.1 and then attach that file (updated) if you get that error again?
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

DragonKith

I just recently installed Simple Portal 2.3 and for some reason i cant seem to upgrade it to the newest verison i didn't see a download button on my admin panel can someone help me.


Thank you


Kimmie

Quote from: Nathaniel on October 23, 2009, 08:58:43 PM
Quote from: Kimmie on October 23, 2009, 08:50:25 PM
Quote from: Nathaniel on October 23, 2009, 05:47:01 PM
@Kimmie,
Do you have an theme with ID 1? If you go to your list of themes in the admin panel, the theme ID can be seen in the urls (like ";th=id", where id is the relevant theme id).

k I must be missing something because none of mine have that. Only place it shows urls is on the Theme Settings page and there are no id's at the end of them. I also went to Current Theme and there isnt an ID at the end of those urls either.

Wouldnt the Default theme be theme 1?



I didn't mean the url setting, I meant the url being displayed by your browser when you view the admin pages. When you view the settings for a specific theme, it should have "th=id" in the url.

The default theme should be at ID 1.

Correct, it is. I have 4 custom themes installed and they are numbered 2 thru 5. I just noticed that the error only occurs when I change to the default theme and then try and view the portal page.

8: Undefined index: 1
File: /home/****/public_html/Sources/PortalBlocks.php
Line: 2155

I dont let my members use that theme, which is why it is only happening under my name (I change to that theme when I need to install mods, etc). that also means that there is a problem with it on that theme apparently. Any Ideas what?

Jrock2394

I have this code set for my "home" and "forum" button, but when i click the home button it takes me to the forum. What do i have to change so it takes me to the portal instead of the forum.
        // Show the [home] button.
         echo '<li><a href="', $scripturl, '?action=home">' , $txt[103] , '</a></li>';
           
       // Show the [forum] button.
         echo '<li><a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a></li>';

Eliana Tamerin

        // Show the [home] button.
         echo '<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
           
       // Show the [forum] button.
         echo '<li><a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a></li>';


Change to this.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Jrock2394


PRaDiUS

When I am adding a new block to my portal there is nowhere in advanced display options to make a block display on SMF Media Gallery. Currently the only way I can make a block display on the gallery is if I display it "Everywhere". Is there any way I can fix this? Will you be adding a gallery option to the advanced block display in the future?

          [ RGXbox.com ]

Eliana Tamerin

Quote from: PRaDiUS on November 02, 2009, 06:18:18 PM
When I am adding a new block to my portal there is nowhere in advanced display options to make a block display on SMF Media Gallery. Currently the only way I can make a block display on the gallery is if I display it "Everywhere". Is there any way I can fix this? Will you be adding a gallery option to the advanced block display in the future?

You should be able to use the Custom Display Options (Check Advanced after the display option dropdown) and write "~gallery"  in the text box. That should display the block on the gallery pages.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

PRaDiUS

Tried that, but unfortunately its not working either.

Quote from: Eliana Tamerin on November 02, 2009, 08:36:52 PM
You should be able to use the Custom Display Options (Check Advanced after the display option dropdown) and write "~gallery"  in the text box. That should display the block on the gallery pages.

          [ RGXbox.com ]

Nathaniel

@DragonKith,
You have to download SP 2.3.1, then upload it using the package manager. Then there should be an 'upgrade' option next to the SimplePortal 2.3.1 package in the package list.

@Kimmie,
I am unsure what is going wrong at the moment, the main function seems to work fine. Try upgrading to SP 2.3.1 (if you haven't already) to see if that fixes the issue at all. Otherwise, I can try to debug it on your site.

@PRaDiUS,
Try '~action|mgallery'.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

PRaDiUS

That worked like a charm. Thank you much! = )

Quote from: Nathaniel on November 03, 2009, 12:12:59 AM
@PRaDiUS,
Try '~action|mgallery'.

          [ RGXbox.com ]

marcimila

Simple Portal 2.3.1 increase my database usage very much!
Before I was with tiny portal with lateral bar and shoutbox, now i passed to simple portal and I see an increase of queries....

Report below the last statistics, how you can see sice 30-10 there is an increase... :-( I hope the future versions are more optimized.

Day     Disk Usage     Connects     Queries     (Conueries)     (Ratio)
2009-10-06    232.789 MB    27231    578153    1.259 MCn    0.849

2009-10-08    235.930 MB    30805    667782    1.438 MCn    0.867

2009-10-10    233.891 MB    25656    562426    1.204 MCn    0.877

2009-10-12    236.098 MB    23985    511875    1.111 MCn    0.854

2009-10-14    238.242 MB    25509    550651    1.188 MCn    0.863

2009-10-16    239.773 MB    26036    571702    1.223 MCn    0.878

2009-10-18    236.371 MB    33248    746604    1.578 MCn    0.898

2009-10-20    238.340 MB    26027    551185    1.202 MCn    0.847

2009-10-22    237.055 MB    26971    570360    1.245 MCn    0.846

2009-10-24    238.824 MB    22720    476218    1.044 MCn    0.838

2009-10-26    240.277 MB    31080    666612    1.444 MCn    0.858

2009-10-28    239.832 MB    45669    776504    1.918 MCn    0.680

2009-10-30    241.430 MB    64317    1020374    2.628 MCn    0.635

2009-11-01       82764    1469487    3.539 MCn    0.710

2009-11-03       87935    1447747    3.646 MCn    0.659


Totals:    238.008 MB    1181543    22703587    52.242 MCn    0.769


Nathaniel

@marcimila,
What version of SMF are you using? If you are worried about the shoutbox, then the shoutbox for SMF 2 uses caching to reduce the load.

We are certainly going to try and optimize SimplePortal as much as possible, although if you have a huge number of blocks, then there is little that can be done to avoid some increase in db queries.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

LC

Got these two errors after I added a php script to a block.
Any ideas?


8: Undefined offset: 7
File: /home/site/Themes/default/PortalArticles.template.php (portal_above sub template - eval?)
Line: 30
   

8: Undefined variable: title
File: /home/site/Themes/default/PortalArticles.template.php (portal_above sub template - eval?)
Line: 34

Nathaniel

@LadyChaos,
Can you post the PHP code? That is likely an issue with the code that you added to the block.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

LC

Quote from: Nathaniel on November 05, 2009, 07:12:25 PM
@LadyChaos,
Can you post the PHP code? That is likely an issue with the code that you added to the block.
Sure :)
<?php
$ip 
"87.98.159.91";
$port "9042";
$fp = @fsockopen($ip,$port,$errno,$errstr,1);
if (!
$fp

$listeners "0;";

else

fputs($fp"GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
while (!feof($fp)) 
{
$info fgets($fp);
}
$split explode(','$info);
if ($split[1] == "0" )
{
$listeners "0";
}
else
{
$listeners $split[0];
}
}
echo 
$listeners;
?>


Eliana Tamerin

You shouldn't need to post the intro and trailing <?php or ?> codes. Those are automatically inserted by the php block's rendering code.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Nathaniel

Okay, so that code doesn't even have 30 lines, I guess it isn't the problem.

The 'eval' message makes it harder to work out where the real issue is, can you disable template eval temporily?

You can 'Disable template eval' via this mod: http://custom.simplemachines.org/mods/index.php?mod=2054

Or you can run this db query:
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

LC

Quote from: Eliana Tamerin on November 05, 2009, 08:20:22 PM
You shouldn't need to post the intro and trailing <?php or ?> codes. Those are automatically inserted by the php block's rendering code.
I removed the intro/trailing tags as you suggested right now. Still getting the same errors.  :-[

Good to know for later use though. :)

Advertisement: