Advertisement:

Author Topic: SimplePortal  (Read 1510055 times)

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,478
Re: SimplePortal
« Reply #5420 on: July 25, 2019, 12:15:48 AM »
Can't get to the front page at all now, but don't think all the active blocks are being displayed.  Should be abe to get to admin, will disable all blocks and reactivate one at a time.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,478
Re: SimplePortal
« Reply #5421 on: July 25, 2019, 12:23:29 AM »
Here's the bad block.

This is the link - http://www.superchevy.com/rss/articles/features
« Last Edit: July 25, 2019, 12:41:48 AM by Sir Osis of Liver »

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,191
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
    • WebDev.ca
Re: SimplePortal
« Reply #5422 on: July 25, 2019, 11:37:27 PM »

You can limit the rss feed to 10 items for now until I have time to look at Sinan's subroutine.
It shouldn't be allowing any feed to jam it up like that.

My SMF Mods & Plug-Ins

WebDev
Simple Portal Support

Request politely & demand nothing.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,478
Re: SimplePortal
« Reply #5423 on: July 25, 2019, 11:47:36 PM »
It's a bad link, the feed appears to be down, browser sees a file download.  Forum owner is looking for another feed to replace it, meanwhile the block's deactivated and all urls to the forum work.

Offline Ilkharnos

  • Jr. Member
  • **
  • Posts: 128
  • Gender: Male
    • Kara Miğfer Hanı
Re: SimplePortal
« Reply #5424 on: July 29, 2019, 07:44:10 AM »
Hello,

I need a small modification for the "Recent Posts" blocks I use in my portal page. When a topic is new (unread), instead of creating a "new.gif" icon, I need to give a certain color to the link itself. But I don't know how to do that. I would be grateful if you can help me.

Code: [Select]
if ($display == 'compact')
{
foreach ($items as $key => $item)
echo '
<a href="', $item['href'], '">', $item['subject'], '</a> <span class="smalltext">', ' ', $item['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new" rel="nofollow"><img src="' . $settings['lang_images_url'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>', '</span><br />', empty($item['is_last']) ? '<hr />' : '';
}

Thank you in advance.

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,845
  • Master of BBC Abuse
Re: SimplePortal
« Reply #5425 on: July 29, 2019, 05:34:49 PM »
Easiest way is to give the new ones a class. That way you can style them in your CSS without changing markup every time you want a different look. This should do the trick:

Code: [Select]
if ($display == 'compact')
{
foreach ($items as $key => $item)
echo '
<a href="', $item['href'], '" ', $item['new'] ? '' :'class="some_useful_class_name_that_wont_confuse_people"','>', $item['subject'], '</a>
<br />',
empty($item['is_last']) ? '<hr />' : '';
}

Offline Ilkharnos

  • Jr. Member
  • **
  • Posts: 128
  • Gender: Male
    • Kara Miğfer Hanı
Re: SimplePortal
« Reply #5426 on: July 30, 2019, 06:07:43 AM »
Yes, this worked for me well.

When I tried to add color to this new class through portal.css, I realised that the color style for standard forum links (in index.css) overrides the new color I am trying to add. So I wasn't able to change the font color. However, I was able to use other font styles (such as shadow) which didn't create any conflict. So, I solved the problem by adding a blue shadow for unread links. This seems enough for what I am trying to do.

You have been the most helpful. Thank you.

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,845
  • Master of BBC Abuse
Re: SimplePortal
« Reply #5427 on: July 30, 2019, 06:49:39 PM »
Should be able to change the colour, or anything else, if you use the right CSS. What code were you trying to use? 

Offline Ilkharnos

  • Jr. Member
  • **
  • Posts: 128
  • Gender: Male
    • Kara Miğfer Hanı
Re: SimplePortal
« Reply #5428 on: July 31, 2019, 03:46:02 AM »
I entered "unreadcolor" as a classname in your code. Then I added the following into portal.css

Code: [Select]
.unreadcolor
{
color: #hexcode;
}

I tried different hex codes for the color.

Other styles such as font-weight or text-shadow are working well. But color tag didn't work. The color remains the same as specified in index.css for all forum links.

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,845
  • Master of BBC Abuse
Re: SimplePortal
« Reply #5429 on: July 31, 2019, 05:12:43 AM »
Aha. Yep, CSS specificity. The default index.css uses this:

Code: [Select]
/* Normal, standard links. */
a:link, a:visited
{
color: #346;
text-decoration: none;
}

If you declare your class as links it should work.

Code: [Select]
a.unreadcolor:link, a.unreadcolor:visited {
color: #hexcode_of_your_choice;
}
a.unreadcolor:hover {
color:#different_on_hover_if_you_want_that
}

Give that a whirl and see what happens. :)

Offline Ilkharnos

  • Jr. Member
  • **
  • Posts: 128
  • Gender: Male
    • Kara Miğfer Hanı
Re: SimplePortal
« Reply #5430 on: July 31, 2019, 06:01:45 AM »
Yes. Now it works perfectly  :D

I am really grateful. Thank you very much!

Offline AKlion

  • Newbie
  • *
  • Posts: 2
Re: SimplePortal
« Reply #5431 on: August 24, 2019, 05:46:20 PM »
After installing my portal on the main page, I need to make the forum remain on the main page, how can I do this?

When I posted the portal, two links appeared on the menu / FORUM / FORUM /. How can I make it / PORTAL / FORUM /?

Offline OCJ

  • Full Member
  • ***
  • Posts: 494
  • Gender: Male
Re: SimplePortal
« Reply #5432 on: August 31, 2019, 12:08:53 PM »
Sad to see that simpleportal.net is now only archive status so no login, no posts, no replies. This is now the only place left to comment.
It was, and still is, a great portal for SMF. Maybe it is supported on another fork of SMF.
 :(

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: SimplePortal
« Reply #5433 on: August 31, 2019, 12:10:53 PM »
Someone forked it for 2.1 under the name EhPortal.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,995
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: SimplePortal
« Reply #5434 on: August 31, 2019, 12:45:25 PM »
You might be able to find Eh Portal here:

https://web-develop.ca/index.php?action=forum

Offline Dwev

  • Jr. Member
  • **
  • Posts: 223
Re: SimplePortal
« Reply #5435 on: September 07, 2019, 07:28:25 AM »
I'm trying to show an image in an SimplePortal block, it seems that the Custom HTML option would be the right one to use for this.

But whatever I enter in that block, I just get to see the code, no image.
I've searched on the whole SMF forum and in this thread specifically, but so far haven't found an answer.

Can anybody point me to the answer how I can show an image in a SimplePortal Block?

Maybe with some example code?

SMF and SimplePortal are both up-to-date (SMF is version 2.0.15, SimplePortal is version 2.3.7).

Thanks in advance.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: SimplePortal
« Reply #5436 on: September 07, 2019, 10:14:12 AM »
What code were you trying to use?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Dwev

  • Jr. Member
  • **
  • Posts: 223
Re: SimplePortal
« Reply #5437 on: September 09, 2019, 01:49:54 AM »
Tried different approaches, even the most basic one:

Code: [Select]
<!DOCTYPE html>
<html>
<body>

<img src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley face" width="42" height="42">

</body>
</html>

Tried the same without the "DOCTYPE html", with html forum-tags, etc.
No dice in any way...[/code]

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,508
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: SimplePortal
« Reply #5438 on: September 09, 2019, 02:22:44 AM »
Just this, should be enough to display a image in a custom html block.

Code: [Select]
<img src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley face" width="42" height="42">

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,191
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
    • WebDev.ca
Re: SimplePortal
« Reply #5439 on: September 09, 2019, 07:48:22 PM »

A HTML block only needs what you intend to put in the body of the document.

Imo use inline styling or perhaps a cascading style sheet (via class) instead of using the width/height properties directly.
em's are more device friendly if you're looking for a responsive layout.

Code: [Select]
<img src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley face" style="height: 2.625em;width: 2.625em;">

My SMF Mods & Plug-Ins

WebDev
Simple Portal Support

Request politely & demand nothing.