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

bearstreet

Quote from: AngelinaBelle on May 16, 2012, 09:40:20 AM
Correct.  That is how the staff block has been designed.
The staff block on simple portal shows only admins, global moderators, and local moderators.
If you would like that block to show something different, you may customize it.

This has been discussed several times at simpleportal.net.  Please try a search there, and see if you turn up what you need.

Thanks for the pointer.
Will do the search at simpleportal.net

Dont do drugs, coz if you get caught u will go to prison, and drugs are real expensive in prison
:P

Ask me Maths Questions

bearstreet

Got it.
In case some one needs it to be done posting the link here
it is done by a plugin called Add membergroups to the Simple Portal staff block

here is the link to the plugin
http://simpleportal.net/index.php?topic=10209.msg53685#msg53685
Dont do drugs, coz if you get caught u will go to prison, and drugs are real expensive in prison
:P

Ask me Maths Questions

BinkyM

Hi, SimplePortal Studs!

SimplePortal was suggested to me by someone who thinks it *might* work to do something I need. After trying to sort through all the features, bug fixes, and upgrades listed on the Mod page, I'm not so sure. I don't wanna install it to find out and then have crumbs left over (a lotta mods leave crumbs behind), so I thought I'd ask if SimplePortal can do what I need and hope you'll understand what I'm asking and say "Yes! It'll do that easily!" (grin)

In Ikonboard, you can output text files with all sortsa handy tags, but I like to just output the URLs and titles of the five most recent posts in each forum. Then I use an SSI include to stick it on my home page (which isn't the forum) with a heading like "Latest Posts in the Science & Technology Forum," or "New in the Current Events Forum," and so on. IOW, it's like a sampling of what's going on in the forums and it's up-to-the-minute. Very spiderable.

Here's a sample line you'd find in one of my text files (I'm making this up):

» <a href="http://snarkish.com/forum/science/latest-post-here">Scientists discover prehistoric laptop</a>

Then I use an SSI include to include the text file on my home page.

I hope this is clear: it outputs a text file with links in it. That's what *I* do, anyway. I could, if I wanted to, include the text of posts, and the date, and the member name of the poster, and so on and so forth, but this happens to be what I like in the files. Some people get elaborate and make entire pages. Me, I like to put these things on my home page so it changes often, making it sexy to spiders.

Is this something that SimplePortal does, or shall I go look elsewhere? My users aren't shoutbox-type users (but if they were, I think they'd looove SimplePortal!).

Thanks for your assistance,

Binky

Xarkurai

#4523
Quote from: AngelinaBelle on May 14, 2012, 02:01:58 PM
Does this happen during install, or afterwards?  It sounds as though SSI.php is being required or included more than once.

I've tried it on another live web version and it worked.
I guess something is messed up within my files? Not sure.

Anyway this mod looks very promising :).
Useful paid mod: Badge Awards - Award members for actions

TwitchisMental

Quote from: AngelinaBelle on May 03, 2012, 12:21:38 PM
Did this problem start after you upgraded SMF or SimplePortal?

Or did this start the first time you installed SimplePortal?
This has happened since I installed SimplePortal as far as I can remember.


Sorry for the late reply I have had some problems the past few weeks..

H3lioz

#4525
Hey,

I know i asked this question for a long time ago & i got it answered but somehow i can't find it..
So i'll ask again.

How do i remove the blue xxx in the left side of the blocks & everything else like boards & stuff..
Like on this pic => http://screensnapr.com/v/2kM9UR.png


Edited by Old Fossil to remove foul language.

TheListener

Which version portal are you using?

There was a time when all you had to do was move the portal.css file to the theme  being used.

H3lioz

Ah when u said it, it was easy to remember ^^

Thank you.

winfield

this mods is lovely, successfully installed in my smf 2.0.2., until then [SiNaN]

Angelina Belle

NBKTwitch -- this is a bit of a puzzler.
Simple Portal uses a couple of techniques to figure out where to place its copyright notice.
It looks like it succeeded twice, which is a little bit of a surprise.
Can you tell me which version of php your site uses?
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

TwitchisMental

Quote from: AngelinaBelle on May 21, 2012, 03:40:46 PM
NBKTwitch -- this is a bit of a puzzler.
Simple Portal uses a couple of techniques to figure out where to place its copyright notice.
It looks like it succeeded twice, which is a little bit of a surprise.
Can you tell me which version of php your site uses?
5.2.17

Angelina Belle

Quote from: BinkyM on May 17, 2012, 05:57:10 PM
In Ikonboard, you can output text files with all sortsa handy tags, but I like to just output the URLs and titles of the five most recent posts in each forum. Then I use an SSI include to stick it on my home page (which isn't the forum) with a heading like "Latest Posts in the Science & Technology Forum," or "New in the Current Events Forum," and so on. IOW, it's like a sampling of what's going on in the forums and it's up-to-the-minute. Very spiderable.


Is this something that SimplePortal does, or shall I go look elsewhere? My users aren't shoutbox-type users (but if they were, I think they'd looove SimplePortal!).
I know that there are several ways, using SMF, to achieve the solution you seek.
The particular feature you seek (a block displaying recent posts or topics from one or more boards on your site front page) is certainly possible, using Simple Portal.
It is also possible without Simple Portal.

If you already have a site front page, written in either HTML or php, and separate from your forum, I know a couple of ways to replace the contents of your "recent news" block with content from an SMF forum.
1) The RSS feed from your website (either from all boards, one board, or (using a mod) several boards) -- For example, you can include the feed from http://www.simplemachines.org/community/index.php?action=.xml;type=rss in a website page on any website.  How do do that depends on whether your website page is created in HTML, php, ASP, whatever.
2) using a feature of SMF called SSI.php (for more on SSI, please see http://www.simplemachines.org/community/ssi_examples.php and documentation at http://wiki.simplemachines.org/smf/Category:SSI).

Simple Portal makes it easy to do some of the stuff SSI.php does, plus even more stuff, all without requiring you to do any programming. It is generally easy to install.
But to use it, you would generally want to completely replace an existing website page with a standalone portal page. Then, that page would have the same "skin" as your forum (or a different SMF skin, if set Simple Portal up with a special theme for the portal page).

I hope this helps you come a little closer to making your decision.  Please feel free to ask more questions and offer more information, so users of Simple Portal can help you decide if Simple Portal is what you want and need for your website.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Angelina Belle

NBKTwitch,

I am surprised.  It looks to me like str_replace did its job, but returned "false" anyway, so simpleportal thought the str_replace did not work, and added the credit for SimplePortal to the very end of the page.  I wouldn't have expected that to happen in php 5.2.17.

I don't know what to think of it.  I don't know if this could be considered a bug in Simple Portal, but I'll report the issue there.
Thanks for the information.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

TwitchisMental

Quote from: AngelinaBelle on May 21, 2012, 04:26:10 PM
NBKTwitch,

I am surprised.  It looks to me like str_replace did its job, but returned "false" anyway, so simpleportal thought the str_replace did not work, and added the credit for SimplePortal to the very end of the page.  I wouldn't have expected that to happen in php 5.2.17.

I don't know what to think of it.  I don't know if this could be considered a bug in Simple Portal, but I'll report the issue there.
Thanks for the information.


Thank you, is there any way I could go about removing it? As you can see in my picture I do have the copyright in the correct area aswell.

Angelina Belle

On that topic, I don't have any advice for you at this time.
Your problem should not be happening, and the SimplePortal project has a policy of not providing information on how to meddle with the bottom-of-the-page credit links of SimplePortal, SMF, or any other mod or theme.  I hope you can understand this.

I have reported the issue to testers at SimplePortal.  I hope they will be able to test this on php 5.2.17 and report back whether they can reproduce the error.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Angelina Belle

nbktwitch, can you let me see, from your theme, in index.template.php, the contents of the following functions:
* function template_body_below()
* function template_html_below()

Thanks
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

TwitchisMental

Quote from: AngelinaBelle on May 22, 2012, 01:24:07 PM
nbktwitch, can you let me see, from your theme, in index.template.php, the contents of the following functions:
* function template_body_below()
* function template_html_below()

Thanks


html above =


function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;


echo '
<><>
';
global $modSettings;

if(!empty($modSettings['googleAnalyticsCode']))
echo '
<script type="text/javascript"><!-- // -->', chr(60), '![CDATA[', '
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', \'' . $modSettings['googleAnalyticsCode'] . '\']);
_gaq.push([\'_trackPageview\']);


(function() {
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
})();
// ]]', chr(62), '</script>';


echo '</body></html>';
}


// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show = false)
{
global $context, $settings, $options, $shown_linktree;


// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;


echo '
<div class="navigate_section">
<ul>';


// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';


// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];


// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';


// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];


// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' »';


echo '
</li>';
}
echo '
</ul>
<>';


$shown_linktree = true;
}







body below




function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;




echo '
<>
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
// Show the load time?
if ($context['show_load_time'])
echo '
<br />', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'];


echo '
<>';
}


function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;


echo '
<><>
';
global $modSettings;

if(!empty($modSettings['googleAnalyticsCode']))
echo '
<script type="text/javascript"><!-- // -->', chr(60), '![CDATA[', '
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', \'' . $modSettings['googleAnalyticsCode'] . '\']);
_gaq.push([\'_trackPageview\']);


(function() {
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
})();
// ]]', chr(62), '</script>';


echo '</body></html>';
}


// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show = false)
{
global $context, $settings, $options, $shown_linktree;


// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;


echo '
<div class="navigate_section">
<ul>';


// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';


// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];


// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';


// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];


// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' »';


echo '
</li>';
}
echo '
</ul>
<>';


$shown_linktree = true;
}

Angelina Belle

#4537
Here's your problem.
The line
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';


My advice is to change this -- this change will probably fix your problem.
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 &copy; 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';

or else remove the Simple Portal credit line from your them altogether -- this probably won't fix your problem until you fix something else. Please see below
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';


But, given what you have in that theme and what shows on your forum, I would have expected the Simple Portal credit line to be seen 3 times, not 2 times Twice on the line with "Simple Machines".  Please look at Subs-Portal.php.  What Software Version: of Simple Portal appears at the top of the file?


Edit: Corrected myself.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Angelina Belle

This really depends on your theme.  Can you provide a link to your site?
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

TwitchisMental

Quote from: AngelinaBelle on May 23, 2012, 12:49:49 AM
Here's your problem.
The line
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';


My advice is to change this -- this change will probably fix your problem.
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 &copy; 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';

or else remove the Simple Portal credit line from your them altogether -- this probably won't fix your problem until you fix something else. Please see below
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';


But, given what you have in that theme and what shows on your forum, I would have expected the Simple Portal credit line to be seen 3 times, not 2 times.  Please look at Subs-Portal.php.  What Software Version: of Simple Portal appears at the top of the file?


SimplePortal 2.3.5

Advertisement: