Advertisement:

Author Topic: Light Portal  (Read 16359 times)

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,440
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Light Portal
« Reply #60 on: December 12, 2020, 07:28:43 AM »
Any errors in the console?
All is good. I had to re-copy the lightportal folder into my theme.

Here's a thing to consider, it seems the new update added the "teaser" in the front blocks too right? The thing is, if that article block has a reply, when clicked it takes you straight to the reply. It should go straight to the first post instead.

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Light Portal
« Reply #61 on: December 12, 2020, 07:56:57 AM »
It depends on the article sorting type, the article type. For example, if you select "by the last comment" option, the article title will be as the link to the last reply, and the article image will be as the link to the first post. Is it a little confusing?

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,440
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Light Portal
« Reply #62 on: December 12, 2020, 08:06:40 AM »
It depends on the article sorting type, the article type. For example, if you select "by the last comment" option, the article title will be as the link to the last reply, and the article image will be as the link to the first post. Is it a little confusing?

I see it now.   I changed it in ViewFrontPage.template.php so both links go to the first post.

from:
Code: [Select]
<a href="', $topic['msg_link'], '">', $topic['subject'], '</a>
to:
Code: [Select]
<a href="', $topic['link'], '">', $topic['subject'], '</a>
Thank you again bruh!

Offline pocttopus

  • Full Member
  • ***
  • Posts: 499
  • Low pressure
    • @pocttopus on Twitter
    • mkreef.com
Re: Light Portal
« Reply #63 on: December 12, 2020, 10:42:12 AM »
v1.4

Code: [Select]
* Fixed found issues
* Added a new section in settings ("Misc")
* Added a new addon - Polls
* Added likes/unlikes for pages
* Added some new helpers
* Added a new addon type - "impex" (import/export)
* Added new addons - TinyPortal and EhPortal(=SimplePortal), to import pages from these mods
* Added alpine.js to improve work with JS
* Added a note field for blocks (for comfort work with untitled blocks in Admin section)
* Added one more option to sorting articles - by the date of update

This update requires to uninstall any previous versions of the LP
Thanks!  ;)

Offline pocttopus

  • Full Member
  • ***
  • Posts: 499
  • Low pressure
    • @pocttopus on Twitter
    • mkreef.com
Re: Light Portal
« Reply #64 on: December 14, 2020, 03:09:14 AM »
So... what's new in v.1.4.1?

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Light Portal
« Reply #65 on: December 14, 2020, 03:42:33 AM »
Code: [Select]
Fixed issues with import from EhPortal/TinyPortal
Fixed issues with comments
Fixed other found issues

Offline pocttopus

  • Full Member
  • ***
  • Posts: 499
  • Low pressure
    • @pocttopus on Twitter
    • mkreef.com
Re: Light Portal
« Reply #66 on: December 14, 2020, 04:25:38 AM »
Thanks! This mod is awesome...  ;)

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,440
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Light Portal
« Reply #67 on: December 25, 2020, 12:17:24 PM »
Bro, I would like to find out where to change the post time from Military time to regular time?

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Light Portal
« Reply #68 on: December 26, 2020, 12:49:39 AM »
Do you mean the time of articles on the frontpage?

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,440
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Light Portal
« Reply #69 on: December 26, 2020, 12:56:27 AM »
Do you mean the time of articles on the frontpage?
Yes.

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Light Portal
« Reply #70 on: December 26, 2020, 01:38:43 AM »
/LightPortal/FrontPage.php, replace
Code: [Select]
$article['date']     = Helpers::getFriendlyTime($article['date']);with
Code: [Select]
$article['date'] = timeformat($article['date']);Then article cards will use forum time format.

Or, you can use your own format here, like this:
Code: [Select]
$article['date'] = date('F j, Y', $article['date']);

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,440
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Light Portal
« Reply #71 on: December 26, 2020, 07:50:55 AM »
/LightPortal/FrontPage.php, replace
Code: [Select]
$article['date']     = Helpers::getFriendlyTime($article['date']);with
Code: [Select]
$article['date'] = timeformat($article['date']);Then article cards will use forum time format.

Or, you can use your own format here, like this:
Code: [Select]
$article['date'] = date('F j, Y', $article['date']);
That worked. Thank you.

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,440
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Light Portal
« Reply #72 on: December 27, 2020, 12:45:35 PM »
Bugo,
I'd would like to make a suggestion....

Topic articles in the front page image and title link point to:
Code: [Select]
https://www.idesignsmf.com/index.php?topic=596.new;topicseen#new   

I think it should be just the actual link of post.
Code: [Select]
https://www.idesignsmf.com/index.php?topic=596.0

I looked around and found this bit in TopicArticle.php

Code: [Select]
'link'        => $scripturl . '?topic=' . $row['id_topic'] . ($row['new_from'] > $row['id_msg_modified'] ? '.0' : '.new;topicseen#new'),
This is where the change should be? Or do I need to look somewhere else?

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Light Portal
« Reply #73 on: December 27, 2020, 03:24:54 PM »
Yes, this is what you need. Do not forget to clean the SMF cache after your changes.

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,440
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Light Portal
« Reply #74 on: December 27, 2020, 03:43:04 PM »
Yes, this is what you need. Do not forget to clean the SMF cache after your changes.
Thank you. That did it. I had forgotten to clear cache lol

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,440
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Light Portal
« Reply #75 on: December 30, 2020, 05:44:21 PM »
Bugo, The sticky thingy on either left or right blocks, is it pure css or is it using javascript? I can't seem to find the js. I have a custom theme and the sticky it's not reading the anchor. #header or whatever the class may be. I need to find out tho so I can make the changes. Ty.

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Light Portal
« Reply #76 on: December 31, 2020, 10:18:27 AM »
Just a CSS

For your theme you should add these changes into CSS:
Code: [Select]
body {
    overflow-x: visible !important;
}

#lp_layout .sticky_sidebar {
    position: sticky;
    top: 100px;
}

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,440
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Light Portal
« Reply #77 on: December 31, 2020, 10:44:34 AM »
Just a CSS

For your theme you should add these changes into CSS:
Code: [Select]
body {
    overflow-x: visible !important;
}

#lp_layout .sticky_sidebar {
    position: sticky;
    top: 100px;
}
Yup. I was missing the body part. Alls good. Ty

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Light Portal
« Reply #78 on: January 01, 2021, 01:49:47 AM »
v1.5

Code: [Select]
* Fixed found issues
* Updated some template files
* Updated addons
* Updated language files
* Added a portal.php file into the package (as an example for the standalone mode)
* Added new addons: Search, and BoardStats
* Added a sample example of a custom template for article pages
* Added new frontpage modes
* Added new settings for customizing article cards
* Added the plugin maker wizard to create simple addon skeletons

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,440
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Light Portal
« Reply #79 on: January 01, 2021, 07:51:01 AM »
Unable to load the 'plugin_post' template.  :o  Happens when trying to add plugin