SimplePortal

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

Previous topic - Next topic

LOVELORD

I want to make all blocks into left, right or top same size in procent of display. Now if I open form IE blocks isn't same size.

[SiNaN]

Specify the width in pixels like: 200px
Former SMF Core Developer | My Mods | SimplePortal

MultiformeIngegno

Quote from: [SiNaN] on May 27, 2009, 11:09:20 AM
Quote from: lorenzone92 on May 26, 2009, 10:39:14 AM
I'd like to change 'em only in the portal... :)

Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:

if (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';

Mmh.. what do this code do? And in which file I have to put it?

Quote from: [SiNaN] on May 27, 2009, 11:09:20 AM
Quote from: lorenzone92 on May 26, 2009, 10:39:14 AM
In SPortal2.php I see this:

You should be able to see more than that, no? ;)

Code (Find) Select
// If you want to remove Forum link when it is
// alone, take out the following two comment lines.
//if (empty($context['linktree'][1]))
// $context['linktree'] = array();


Code (Replace) Select
// If you want to remove Forum link when it is
// alone, take out the following two comment lines.
if (empty($context['linktree'][1]))
$context['linktree'] = array();

OK, thanks!!! :D
It works! ;)
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

LOVELORD


Shades.

I'm using SimplePortal 2.2.1 and have a question about the "Recent Post" block. Is there anyway to just show the topic that was started once instead of a new one each time someone replies? Maybe just update the topic date and time when there are new replies?

(See attachment for image of what I'm talking about)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

ディン1031

Quote from: BoZilla on May 27, 2009, 10:50:25 PM
I'm using SimplePortal 2.2.1 and have a question about the "Recent Post" block. Is there anyway to just show the topic that was started once instead of a new one each time someone replies? Maybe just update the topic date and time when there are new replies?

(See attachment for image of what I'm talking about)
As far i know for this is the "Recent Topics" Block ;).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

[SiNaN]

Quote from: lorenzone92 on May 27, 2009, 12:40:40 PM
Quote from: [SiNaN] on May 27, 2009, 11:09:20 AM
Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:

if (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';

Mmh.. what do this code do? And in which file I have to put it?

Using $context['standalone'], as I showed in the example, you can hide or show things you want only on portal. In your case, you'll have to edit your index.template.php to hide things as in the example.

Quote from: LOVELORD on May 27, 2009, 01:01:37 PM
Quote from: [SiNaN] on May 27, 2009, 11:57:54 AM
Specify the width in pixels like: 200px

where?

Admin > SimplePortal > Configuration > Block Settings

Left side width and Right side width settings.

Quote from: BoZilla on May 27, 2009, 10:50:25 PM
I'm using SimplePortal 2.2.1 and have a question about the "Recent Post" block. Is there anyway to just show the topic that was started once instead of a new one each time someone replies? Maybe just update the topic date and time when there are new replies?

(See attachment for image of what I'm talking about)

Yeah, as ディン1031 noted above, Recent Topics block does that.
Former SMF Core Developer | My Mods | SimplePortal

Shades.

Quote from: [SiNaN] on May 28, 2009, 02:25:52 AM
Quote from: lorenzone92 on May 27, 2009, 12:40:40 PM
Quote from: [SiNaN] on May 27, 2009, 11:09:20 AM
Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:

if (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';

Mmh.. what do this code do? And in which file I have to put it?

Using $context['standalone'], as I showed in the example, you can hide or show things you want only on portal. In your case, you'll have to edit your index.template.php to hide things as in the example.

Quote from: LOVELORD on May 27, 2009, 01:01:37 PM
Quote from: [SiNaN] on May 27, 2009, 11:57:54 AM
Specify the width in pixels like: 200px

where?

Admin > SimplePortal > Configuration > Block Settings

Left side width and Right side width settings.

Quote from: BoZilla on May 27, 2009, 10:50:25 PM
I'm using SimplePortal 2.2.1 and have a question about the "Recent Post" block. Is there anyway to just show the topic that was started once instead of a new one each time someone replies? Maybe just update the topic date and time when there are new replies?

(See attachment for image of what I'm talking about)

Yeah, as ディン1031 noted above, Recent Topics block does that.

Thanks to both of you! :)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

noelchiew

The button images (move up, down etc) in my Block List page are not showing. I check the links and they are searching for the image files in my root directory. It should be looking for the images in the theme's images directory since that is where the images were installed (Images/SP folder).

How do I point them in the right folder path?

[SiNaN]

Do you have any errors in your Forum Error Log?
Former SMF Core Developer | My Mods | SimplePortal

noelchiew

Oh yes now that you mention it... this is the error:

Undefined index: sp_images_url
File: /home/cravchi7/public_html/forum/Sources/Subs-SPortal1-1.php
Line: 1062

The line there is:
$image = '<img src="' . $settings['sp_images_url'] . '/' . $name . '.png" alt="' . $alt . '"' . (!empty($title) ? ' title="' . $title . '"' : '') . (!empty($width) ? ' width="' . $width . '"' : '') . (!empty($height) ? ' height="' . $height . '"' : '') . (!empty($id) ? ' id="' . $id . '"' : '') . ' class="png_fix" />';

[SiNaN]

Do you have portal disabled ATM?
Former SMF Core Developer | My Mods | SimplePortal

noelchiew

#2232
Yes that's right... I have it disabled cos I want to finish customising the blocks etc first before revealing it as a new feature to my members :)

Is that the problem? If I enabled the portal there will not be any errors? I still have other errors actually but I think the one that I posted has to do with the images issue that I have.

The other errors that I have:

Undefined index: portal_url
File: /home/cravchi7/public_html/forum/Themes/default/Profile.template.php (eval?)
Line: 86

Undefined index: portal_url
File: /home/cravchi7/public_html/forum/Themes/default/Display.template.php (main sub template - eval?)
Line: 198

Undefined index: portal_url
File: /home/cravchi7/public_html/forum/Themes/default/Who.template.php (eval?)
Line: 86

Undefined index: cannot_sp_moderate
File: /home/cravchi7/public_html/forum/Sources/Security.php
Line: 764

MultiformeIngegno

#2233
Quote from: [SiNaN] on May 28, 2009, 02:25:52 AM
Quote from: lorenzone92 on May 27, 2009, 12:40:40 PM
Quote from: [SiNaN] on May 27, 2009, 11:09:20 AM
Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:

if (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';

Mmh.. what do this code do? And in which file I have to put it?

Using $context['standalone'], as I showed in the example, you can hide or show things you want only on portal. In your case, you'll have to edit your index.template.php to hide things as in the example.
So, for example, to modify the "description" meta tag, I have to replace the code with this:

<meta name="description" content="if (!empty($context['standalone']))
echo 'This is the description of the portal';
else
echo 'This is the description of the forum';" />


Is it correct?

P.S.: I've selected, instead of "Standalone" mode, "Integration"... do I have to use $context['standalone'] or $context['integration']
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

JM2Chen

I tried to add simple portal. Nice
I like Simple Machines Forum

MultiformeIngegno

Quote from: lorenzone92 on May 28, 2009, 08:45:10 AM
Is it correct?
Uhm... I receive a template parse error here:
<meta name="description" content="if (!empty($context['standalone']))

syntax error, unexpected T_STRING, expecting ',' or ';'
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

[SiNaN]

Quote from: lorenzone92 on May 28, 2009, 08:45:10 AM
P.S.: I've selected, instead of "Standalone" mode, "Integration"... do I have to use $context['standalone'] or $context['integration']

If you have changed to Integration mode, than you won't have a portal page. So you want to hide info on board index?
Former SMF Core Developer | My Mods | SimplePortal

MultiformeIngegno

I'm going to use the portal as my home page...

So I want to modify the info on board index, instead of "MYSITE FORUM", I'd like to have "MYSITE HOME"...
Then I'd like to change also the "description" metatag, 'cause it's different...

I tried with:
<meta name="description" content="if (!empty($context['standalone']))
   echo 'This is the description of the portal';
else
   echo 'This is the description of the forum';" />


...but I think I've missed something... :P
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

noelchiew

Quote from: JM2Chen on May 28, 2009, 11:45:04 AM
I tried to add simple portal. Nice
Looks like it really is simple for you though not simple for me... pun intended. :)

Come to think of it, since I have disabled the portal at the moment, wonder why these errors are there...

[SiNaN]

If you want to disable it while you are custumizing the portal, enable portal maintenance mode. It will make it so that only users who can manage SimplePortal will see the portal. Then you can safely enable the portal. It shouldn't be causing errors then.
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: