• Welcome to Simple Machines Community Forum. Please login or sign up.

[Preview] Unplugged 2.1 theme

Started by Mick., October 21, 2021, 07:58:41 AM

Previous topic - Next topic

Mick.

You cannot see attachments on this board.

Mick.

This template is changing constantly. I added an MP3 player for the admin so he/she can promote whichever song track. You already seen the album covers at the footer linked to whatever page or topic.

Remember; all features have the option to show on front page and/or board index.

You cannot see attachments on this board.

Mick.

Exploring darkness  8) 

You cannot see attachments on this board.

Mick.

October 22, 2021, 05:46:22 PM #3 Last Edit: October 23, 2021, 08:35:30 AM by Mick.
I'm slacking.

Swift demo: https://

..still in progress.

TwitchisMental

That is looking great Mick. 

shadav

 :laugh: you are having entirely too much fun

Mick.

...and it looks fantastic using a portal. (Their article layouts are awesome)
You now have a website landing page when using any portal plus theme options and boom!  8)

A custom theme revolution has begun.


Mick.


TwitchisMental

Quote from: Mick. on October 23, 2021, 12:08:52 PMSpotify Has a decent player with API

https://www.idesignsmf.com/dev-site2/index.php
Okay that is pretty cool... You should make that a mod XD.

Keep up the good work!

Mick.

Quote from: TwitchisMental on October 23, 2021, 02:03:26 PM
Quote from: Mick. on October 23, 2021, 12:08:52 PMSpotify Has a decent player with API

https://www.idesignsmf.com/dev-site2/index.php
Okay that is pretty cool... You should make that a mod XD.

Keep up the good work!
Thanx dude! but I don't write mods anymore. I think it has been 10yrs since lol

gecitli

Quote from: Mick. on October 23, 2021, 02:16:46 PM
Quote from: TwitchisMental on October 23, 2021, 02:03:26 PM
Quote from: Mick. on October 23, 2021, 12:08:52 PMSpotify Has a decent player with API

https://www.idesignsmf.com/dev-site2/index.php
Okay that is pretty cool... You should make that a mod XD.

Keep up the good work!
Thanx dude! but I don't write mods anymore. I think it has been 10yrs since lol

Hi you can do this with a simple query

{
global $smcFunc, $scripturl;
    $boards = array();
    $request = $smcFunc['db_query']('order_by_board_order', '
        SELECT b.id_board, b.name AS board_name, c.name AS cat_name
        FROM {db_prefix}boards AS b
            LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)',
        array(
        )
    );
    while ($row = $smcFunc['db_fetch_assoc']($request))
        $boards[] = $row['id_board'];
    $smcFunc['db_free_result']($request);
   
    $request = $smcFunc['db_query']('', '
    SELECT t.id_topic, m.subject, m.body
    FROM {db_prefix}topics AS t
    INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
    WHERE t.id_board IN ({array_int:boards})
    ORDER BY t.id_topic DESC
    LIMIT {int:limit}',
    array(
        'boards' => $boards,
        'limit' => 9,
        )
    );
    $topics = array();
    while ($row = $smcFunc['db_fetch_assoc']($request))
      $topics[] = array(
        'id_topic' => $row['id_topic'],
        'subject' => $row['subject'],
        'body' => $row['body'],
        'first_image'  => preg_match_all('~\[img.*?\]([^\]]+)\[\/img\]~i', $row['body'],  $images) ? '<img src="' . $images[1][0] . '" alt="' .  $row['subject'] . '" height="150" width="200" />      ' : '',
      );
    $smcFunc['db_free_result']($request);
    echo'<section class="container">
  <div id="carousel">';
    foreach ($topics as $topic)
    {
    if($topic['first_image'])
    {       
    echo ' <figure><a  href="', $scripturl, '?topic=', $topic['id_topic'], '.0">',  $topic['first_image'], '</a></figure>';
    }
    }
echo'  </div>
http://www.webtiryaki.com
webmaster forumu
Free & Premium Responsive Themes for SMF.

Mick.


Mick.

October 24, 2021, 09:08:02 AM #12 Last Edit: October 24, 2021, 10:32:52 AM by Mick.
testing Youtube videos and Event calendar support 8)

https://www.idesignsmf.com/dev-site2/index.php

You cannot see attachments on this board.

gecitli

Quote from: Mick. on October 24, 2021, 07:46:43 AM@gecitli
What's this for?
You have an Albums section, it takes pictures added here?

By the way, your theme is very nice.
http://www.webtiryaki.com
webmaster forumu
Free & Premium Responsive Themes for SMF.

Mick.

Quote from: gecitli on October 24, 2021, 01:00:27 PM
Quote from: Mick. on October 24, 2021, 07:46:43 AM@gecitli
What's this for?
You have an Albums section, it takes pictures added here?

By the way, your theme is very nice.
Yes. I already have a slot for images for the admin. Thank you though

Mick.

The Event Calendar has a bug so for now I added a few slots for admin to populate in theme options for the time being until SMF squash the bug.

Added tour dates to index  ;)

https://www.idesignsmf.com/dev-site2/index.php

You cannot see attachments on this board.


shadav

and again I say, you are having entirely too much fun  :laugh:
but this is looking awesome

Mick.

Quote from: shadav on October 24, 2021, 03:34:12 PMand again I say, you are having entirely too much fun  :laugh:
but this is looking awesome
Ha! I just got back from the pub after a few pints!  8)  I'm at it again.

Mick.

Added Soundcloud & Spotify Follow buttons and moved Event block below videos. Easy since I'm lit this afternoon.  :P

You cannot see attachments on this board.

Mick.

Too bad Billboard100 API is dead.  :o

Advertisement: