News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF & Wordpress

Started by newbie13601, October 16, 2019, 10:58:32 AM

Previous topic - Next topic

newbie13601

I want a super simple site with one single page only. The top of the frontpage or landing page is the usual Wordpress stuff. The bottom of the same page will have my SMF forum.

Can this be done easily with WP/SMF or should I try other forums instead?

thanks


Arantor

If you're going to have one page, why do you need WordPress? Everything you want to do could be done with SMF plus a portal addon at that point.

newbie13601

I have both sites setup and working. I don't want to spend time learning SMF.

Arantor

Well, to be honest, I'd personally simplify everything to just have one system with a common theme that doesn't require patching every few weeks for the latest security holes (i.e. no WordPress) and that spending a little bit of time learning might actually save you a lot of time in the long run.

Especially as there is no solution for your current problem as described that doesn't require core changes to SMF.

Sir Osis of Liver

You'll have the same problem with any forum software.  In the old days we did things like this with frames, but frames have long since fallen into disrepute. :(
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor

Quote from: Sir Osis of Liver on October 16, 2019, 12:14:19 PM
You'll have the same problem with any forum software.  In the old days we did things like this with frames, but frames have long since fallen into disrepute. :(


Especially because they make accessibility hard, but they're also a multi-way security risk.

newbie13601

I watched a youtube tutorial. I'm starting to like it. Just two things.

1-I don't want posters email addresses to be displayed.
2-The video didn't cover simple links. I get hxxp:wiseenergy.org/ [nonactive]

shawnb61

If you really want it that simple, there are some Wordpress forum plugins.  SMF may be overkill.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

mark lar

SMF and WordPress are two different products that serve two different purposes. The best course of action might be to manually import SMF posts to WP articles, and include a "view the discussion" link to point people to the appropriate topic on your SMF board. Comments should disabled on WordPress to force people to use the SMF board for replies. In this way you leverage the strengths of WordPress and SMF while minimizing their weaknesses. Keep in mind, though, that WordPress does not support BBcodes, so you must import the rendered HTML and not the raw post data.

(Interesting that the first plugin on thw /search/smf page is a demo for a commercial product that only works with a test install of SMF. And the company has dozens of such demo plugins in the repository. I didn't think those were allowed...)

Korotana365

******After the Final No is a YES!******

Ricky.

As @shawnb61 said, if he doesn't want to learn SMF, he can go for some WP addons like bbpress .

njtweb

Quote from: shawnb61 on October 16, 2019, 08:28:08 PM
If you really want it that simple, there are some Wordpress forum plugins.  SMF may be overkill.

And they all suck. I've also learned over the years, Google hates indexing Wordpress sites. I've had much, much, MUCH more success with my SMF forum using a portal.

Kindred

Quote from: njtweb on April 03, 2020, 01:11:02 PM
I've also learned over the years, Google hates indexing Wordpress sites. I've had much, much, MUCH more success with my SMF forum using a portal.

I have no idea what you mean.   I run three wordpress sites as well. All of them are well indexed by Google and other SEs.
Сл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."

njtweb

Quote from: Kindred on April 03, 2020, 01:36:15 PM
Quote from: njtweb on April 03, 2020, 01:11:02 PM
I've also learned over the years, Google hates indexing Wordpress sites. I've had much, much, MUCH more success with my SMF forum using a portal.

I have no idea what you mean.   I run three wordpress sites as well. All of them are well indexed by Google and other SEs.

I've had two different Wordpress sites one for almost 2 years and another for just over 2 years and they were impossible to get up and running. All 3 of my SMF sites I've run over the past 12 years have all been successful with Google.

Ricky.

Quote from: njtweb on April 03, 2020, 01:51:48 PM

I have no idea what you mean.   I run three wordpress sites as well. All of them are well indexed by Google and other SEs.


I've had two different Wordpress sites one for almost 2 years and another for just over 2 years and they were impossible to get up and running. All 3 of my SMF sites I've run over the past 12 years have all been successful with Google.
As far I know, Google loves WP sites, there must be something particular for your WP sites.

But, as said, hopefully OP has made its decision by now.

captcha

Quote from: newbie13601 on October 16, 2019, 10:58:32 AM
I want a super simple site with one single page only. The top of the frontpage or landing page is the usual Wordpress stuff. The bottom of the same page will have my SMF forum.

Can this be done easily with WP/SMF or should I try other forums instead?

thanks
You can use SSI in your frontpage. At least you can show recent topics of SMF at bottom of your front page.

drewactual

this ain't that hard, guys.

check out https://www.carolina-woodworkers.com .... i'm using the following code live there.  the configuration is pretty straight forward even with the random image (which only shows if a WP post doesn't have an image).

from elsewhere- only thing i didn't share is the SMF index.template must php include or require (i use include) the WP load.php function...  it's a one line entry akin to SMF using include or require for SSI...

anyway:

Quote from: drewactual on April 17, 2020, 12:13:15 AM
-you'll want to inject a conditional php script because you most likely don't want this on every page.
-you'll want to play with the code i'm about to provide.. i'm providing the style "I" used so you have a starting block, and the code here only show 3 blocks that have some dynamic effect on hover... you can dump that with the css provided.

this is something of a breakthrough with WP/SMF sites having the login shared, and this may compliment folks using the two systems as stand alone... to further join them short of integration.

the script i'm offering is for most recent WP posts, but can also do specific categories.. I ALSO am providing a default image for WP posts that don't have an image, so something (one of three, as it is) will show up in those posts... IF the post has an image, it will show that image.

I use this in a free standing file which is conditional so it only shows on the index page... you can interject it directly to your index.template or where ever you want... the conditional usage serves most folks best, and i can show you how to do that if you don't know.

anyway, the WP 'inject' code:

<div class="cat_bar" id="category"><h3 class="catbg"><a href="/publisher" target="_blank">THE TITLE BAR TEXT</h3></a><div class="desc">MORE TITLE BAR TEXT</div></div>

<div class="catbg" style="background:#fff;padding:20px auto">
<?php $wp_query = new \WP_Query(); $wp_query->query('showposts=3'); while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

<div class="sneekerz">
<a href="<?php the_permalink() ?>"target="_blank"><div class="titlez-sneek"><?php the_title(); ?></div><?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { ?><?php echo'<img src="/images/wp-random/';$random=rand(1,3);echo$random;echo'.jpg"  alt="random featured image" title="random featured image when one not provided"/>';?><?php ?></a>
</div>

<?php endwhile; ?>
</div>
<?php wp_reset_query(); ?>


and the css i use for the style in the inject:

#pub-boxz{display:block;width:100%;height:auto;margin:10px auto;}
.sneekerz {display:inline-block;width:28%;margin:45px 20px;box-shadow:0 0 10px #784212;border-radius:.5em;background:#fff;font-weight:600;font-size:16pt;padding:10px;line-height:1.5;height:250px;overflow:hidden;transform:scale(.95);}
.sneekerz img{width:100%;height:auto;margin:0 auto;border-radius:.5em;}
.sneekerz:hover{transform:scale(1.15);}
.sneekerz .titlez-sneek{display:block;width:95%;margin:10px auto;padding:5px;text-align:center;font-size:12pt;background:#fcfbb6;border-radius:.5em;}
a:link .titlez-sneek{color:#784212;}
a:visited .titlez-sneek{color:#784212;}
a:active .titlez-sneek{color:#784212;}
a:hover .titlez-sneek{color:#784212;}

@media only screen and (max-width:1024px){
#pub-boxz{margin:10px 0;}
#pub-boxz .sneekerz{width:27%;margin:0 10px;}
}


NOTE: to use the random image in the case a WP post doesn't have one, you MUST add a folder to your top directory named "images" ( there is likely one already there) and with a SUB-DIRECTORY named "wp-random"... in that file, add 3 images that are named 1.jpg, 2.jpg, 3.jpg (following that naming convention strictly- jpg's and simple numbers).  poof- you'll have a random fall-back image when your WP post doesn't have one, which will keep your page looking tidy.

just for shtz and grins, i'm going to link instructions on how to do the conditional script to... it's handy to have if you want to show something (a banner perhaps?) on a specific board, or to show (or not) on the index of your forum.  if you follow the link to the page i provided above you'll see how it can REALLY tidy up a SMF+WP website.  the instructions for that are at  https://www.simplemachines.org/community/index.php?topic=572749.0 and starting at post #6...

all of that does precisely what you'll see on the page linked.  it's just a simple three article feed.. i added a menu bar to make it appear more integrated... the code of importance is in the 'sneekerz' div class.  it's just a simple 'outside the loop' lasso of the three most recent posts... you can do most recent, from a specific category (such as 'featured' perhaps?) or by author... refer to WP codex for that.  This has worked for me for years (though the linked page is the only place i'm using it live currently) through many different iterations of WP and SMF...

let me know if you have any questions about its use... it seems like it will do precisely what you're asking for.

landyvlad

Quote from: newbie13601 on October 16, 2019, 11:19:56 AM
I don't want to spend time learning SMF.

Herein lies the problem - it's not a good idea to try to have an SMF forum (or any other forum software) if you can't be bothered learning how to work it...
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Advertisement: