First category Modification

Started by vostro1400, August 30, 2018, 07:11:51 AM

Previous topic - Next topic

vostro1400

I just upgraded by forum to 2.1 Beta 3 and it went smoothly. However, Im running this within my org for internal use and a request was made that i dont  really know how to achieve that. Let me explain it.

1) I want to make the first category content not to be in board but to be on the home page.
2) Rather than a board appearing in the first category - i want the content of the board to appear
3) I want this to be ONLY for the FIRST Category.
4) Only the newest topic content of the board in the first category will
- See attachment - Fiirst category and how the content should appear.

I different way of doing it will be appreciated... BUt whichever way. I want the admin to be able to update the content.


d3vcho

We recommend not to use SMF 2.1 Beta 3. Since it's under development, a lot of commits have been made to SMF 2.1 since Beta 3 was released. Furthermore, we don't recommend using SMF 2.1 on live sites because you may encounter bugs.

Latest GitHub version can be found here: https://github.com/SimpleMachines/SMF2.1
"Greeting Death as an old friend, they departed this life as equals"

Kindred

well, at this point, you should be using the github version which is beta4 hundreds of things have been fixed since beta3.


However... no, there is no way to do what you are asking without recoding a significant part of the system

you might try a portal mod....   but I'm not sure that any have been updated to 2.1 yet
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

d3vcho

I think TinyPortal has basic support for SMF 2.1 on their latest released version.
"Greeting Death as an old friend, they departed this life as equals"

Bigguy

EhPortal works well with 2.1 as well. I did the three block thing on my portal but had to use code found somewhere on the net and than I tweaked it for what I wanted. Check out my site if you like and see if that's something you want.

vostro1400

Quote from: Bigguy on August 30, 2018, 08:00:50 AM
EhPortal works well with 2.1 as well. I did the three block thing on my portal but had to use code found somewhere on the net and than I tweaked it for what I wanted. Check out my site if you like and see if that's something you want.

Hi Bigguy , may i have your website and how do i replicate what you did.

vostro1400

Quote from: d3vcho(void) on August 30, 2018, 07:36:44 AM
I think TinyPortal has basic support for SMF 2.1 on their latest released version.

i will check it out

vostro1400

Quote from: Kindred on August 30, 2018, 07:35:51 AM
well, at this point, you should be using the github version which is beta4 hundreds of things have been fixed since beta3.


However... no, there is no way to do what you are asking without recoding a significant part of the system

you might try a portal mod....   but I'm not sure that any have been updated to 2.1 yet

Any mod or idea to do similar thing will be appreciated

Bigguy

First I use EhPortal:
https://web-develop.ca/  (Any portal will work though)
My website if you have not seen it is:
https://www.whatsurbeef.net
The code I used for those 3 blocks on the portal page is:
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome message</title>
<style>
#wrapper {
  clear:all;
  display:table;
}
#row {
  display:table-row;
}
.divboxtitlebg {
    background: #0964b0;
    padding: 8px;
    margin: -3px -1px -3px;
    border: 1px solid #0964b0;
    border-radius: 8px;
    color:#fff;
-webkit-box-shadow: 0px 0px 2px rgba(0,0,0,.8);
              -moz-box-shadow: 0px 0px 2px rgba(0,0,0,.8);
                         box-shadow: 0px 0px 2px rgba(0,0,0,.8);

          z-index: 100;
}
#block1 {
  display:table-cell;
  background-color:#88f793;
  width:350px;
  border-radius: 8px;
}
#block2 {
  background-color:#f7ec79;
  display:table-cell;
  width:350px;
  border-radius: 8px;
}
#block3 {
  background-color:#f9bd6d;
  display:table-cell;
  width:350px;
   border-radius: 8px;
}
</style>
</head>

<body>
<center>
<div id="row">
    <div id="block1">
        <h2 class="divboxtitlebg">Welcome</h2>
<br />
Text Here
    </div>
    <div id="block2">
       <h2 class="divboxtitlebg">Community</h2>
<br />
Text Here
    </div>
<div id="block3">
      <h2 class="divboxtitlebg">Discussion</h2>
<br />
Text Here</div>
</div>
</div>
</center>
</body>
</html>

vostro1400

Thank you Bugguy for the reply. I have checked out your sites and I prefer https://www.whatsurbeef.net/

May i have the code for the 3 Horizontal blocks ( see attachment)

2) How are you making the Privacy to pop up at the button right.. I can use that to display other important info
3) How did u removed the logo totally and replaced it with We wanna know... I was able to do it but the fragment of the image still remains and appear as unloading /broken image.
4) I Noticed the slider at the top of the 3 block. May i know how u did that..

Plz give me the steps and code and how to replicate that[where to place the code]. Really appreciate

Bigguy

The code for the three boxes is posted above your post. As for the cookie popup... I went to this site and played around a bit:

https://cookieconsent.insites.com/demos/

The "We wanna know" is configurable in the admin panel under theme settings I think it is (without looking) I am not sure what you mean by "slider" ??

Bigguy

The easiest way to use the code in this post:
https://www.simplemachines.org/community/index.php?topic=561951.msg3986548#msg3986548
is to use a portal. That's what I did. It could be placed in the index.template.php file but that is not how I did it so I would not be able to help in that respect with out playing around a bit. The cookie link I posted allows you to pre-configure what you want and then just copy and paste the code that is generated on their site to your index.template.php file. The code I used I placed right after the <head> tag in the index.template.php file.


EDIT: still not sure what you mean by slider.

Illori

the slider is the news, enable Show news fader on board index under current theme for that feature and put the news entries under the correct spot in the admin panel.

Bigguy


vostro1400

Quote from: Bigguy on August 30, 2018, 06:20:07 PM
The easiest way to use the code in this post:
https://www.simplemachines.org/community/index.php?topic=561951.msg3986548#msg3986548
is to use a portal. That's what I did. It could be placed in the index.template.php file but that is not how I did it so I would not be able to help in that respect with out playing around a bit. The cookie link I posted allows you to pre-configure what you want and then just copy and paste the code that is generated on their site to your index.template.php file. The code I used I placed right after the <head> tag in the index.template.php file.


EDIT: still not sure what you mean by slider.

Hi Bigguy,

Thank you for the reply. I have chosen to do the following:
First I use EhPortal:
https://web-develop.ca/ :


However, How do i make the welcome page (attached) Editable in the Admin. So the Admins can update it from time to time and also upload images.

The main purpose is to have a front/home page that is editable and only the admin(s) can post information which includes pics. Let me know if EhPortal is the right plugin and how to work around it or any suggestion.

Bigguy

If you go into EhPortal settings to General settings. You should set all that up first and figure out HOW you are going to use Ehportal. Will it be stand alone. Which is to say your forum would be at:

www. yoursite.com/forum

and your standalone front page would be at:

www. yoursite.com

or are you going to use it as integrated, which is to say your forum sits at www.yoursite.com and so does the portal. After you have the portal installed than you can start playing with blocks and stuff to see how you want things. My portal mode is set to front page under general settings. Then I started to play around with the block list and all the options there as well. We can get into that in a bit though. If you do have it installed than set up all the options first and play around a bit.

vostro1400

Thank you for the feedback. I have played around with it and have been able to model it to close to what I'm looking for. However, I tried inserting pics on the "Welcome Block" Attached) but the image doesn't appear.. Any Idea on how to make the image appear there.

Bigguy

That looks like the default text for the portal which leads me to believe it is a portal problem that should be reported to see what the mod authors can do. I would check the image path and see if the image is there or not.

Chen Zhen

The last image posted is from Simple Portal which does not support SMF 2.1 at the moment.
The previous posts were concerning EhPortal which is specifically for SMF 2.1.
Although EhPortal was ported from Simple Portal to facilitate SMF 2.1 users, some of the coding has undergone changes from its onset and more so over the years.

The original coding of that block from Simple Portal never included any images.
The path to the image that was added is likely incorrect.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

vostro1400

I have checked and the path is correct. But However, what is the correct path. This is on my wampserver. I have tried all the paths that works on other application
\Themes\default\images
\www\smf\Themes\default\images
smf\Themes\default\images

I have tried all the paths.

Chen Zhen

Assuming you're using port 80 on Wamperver then an image path uses the localhost url
You have to include the directory path(s) after the onset of the www folder

ie. if the folder path of the SMF installation in www is called forum1 and the image is named image1.png located in the SMF default theme images path:

http://localhost/forum1/Themes/default/images/image1.png

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

vostro1400

I have fix the issue by using gallery mod

Advertisement: