News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Recents Posts area of forum

Started by DarkAngel612, January 28, 2021, 01:54:46 PM

Previous topic - Next topic

DarkAngel612

SMF 2.0.17http://www.thefantasiesattic.net/attic/index.php
Mods listed in image attached most are upgraded/all say they work in this version.
3 additional themes installed aside from default and core, FA-Darkly (GamerZ edited), InsidiousV2 (turned off due to breaking forum), Blumoonlight Version 2.0, BRFinale2.0

the area is off. it lists new posts but not flush left, rather "scattered"/ How can I fix this.
see image

Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

shadav

i'm guessing the code got messed up somewhere

in your themes boardindex.template.php compare it to the default theme

this section
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
{
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
', $txt['recent_posts'], '
</span>
</h4>
</div>
<div class="hslice" id="recent_posts_content">
<div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '</div>
<div class="entry-content" style="display: none;">
<a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '</a>
</div>';

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '</a></strong>
<p id="infocenter_onepost" class="middletext">
', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
</p>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<dl id="ic_recentposts" class="middletext">';

/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
<dd>', $post['time'], '</dd>';
echo '
</dl>';
}
echo '
</div>';
}


yours is probably different a bit....

but I just viewed the site and it looks fine to me, though I'm guessing you are currently using the default theme and not the theme from the image you provided

Kindred

Well, your site seems to use the Curve theme right now, not whatever you posted in the image....

Since that would appear to be something other than the curve/default theme, you should 1) enable access to that theme and 2) ask the question in the support topic dedicated to that theme...
Сл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."

DarkAngel612

oh for goodness sake...sorry about that the two affected are the FADarkly and Bluemoonlight, the other two behave. They are not at all like the Insidious one which is my favorite one that gets broken entirely when used...the shout box area is fine  and the side blocks are fine but the forum area shows up waaaay down under the last side block....LOL
The curve theme is the default for guests and non logged in members. the theme selector block I thought was able to be seen/used by them..I will go set it that way now, so sorry.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

DarkAngel612

Quote from: shadav on January 28, 2021, 02:03:01 PM
i'm guessing the code got messed up somewhere

in your themes boardindex.template.php compare it to the default theme

this section
   // This is the "Recent Posts" bar.
   if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
   {
      echo '
         <div class="title_barIC">
            <h4 class="titlebg">
               <span class="ie6_header floatleft">
                  <a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
                  ', $txt['recent_posts'], '
               </span>
            </h4>
         </div>
         <div class="hslice" id="recent_posts_content">
            <div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '</div>
            <div class="entry-content" style="display: none;">
               <a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '</a>
            </div>';

      // Only show one post.
      if ($settings['number_recent_posts'] == 1)
      {
         // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
         echo '
            <strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '</a></strong>
            <p id="infocenter_onepost" class="middletext">
               ', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
            </p>';
      }
      // Show lots of posts.
      elseif (!empty($context['latest_posts']))
      {
         echo '
            <dl id="ic_recentposts" class="middletext">';

         /* Each post in latest_posts has:
               board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
               subject, short_subject (shortened with...), time, link, and href. */
         foreach ($context['latest_posts'] as $post)
            echo '
               <dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
               <dd>', $post['time'], '</dd>';
         echo '
            </dl>';
      }
      echo '
         </div>';
   }


yours is probably different a bit....

but I just viewed the site and it looks fine to me, though I'm guessing you are currently using the default theme and not the theme from the image you provided

I surely will, IF I don't use the theme's file and just let default take over will that hurt?
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

DarkAngel612

OK, I have checked in the original zips and they do not have their own board index so I put the one from an older version fo default theme (not responsive) and to no avail. they are still not aligned.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

DarkAngel612

Quote from: DarkAngel612 on January 28, 2021, 03:16:22 PM
OK, I have checked in the original zips and they do not have their own board index so I put the one from an older version fo default theme (not responsive) and to no avail. they are still not aligned.
I love themes that have a will of their own...grrr LOL
I tried older board indexes from default templates, no joy. I used older ones cause I thought since this one is responsive??? that made a difference when my older templates are not.
Then in BlueMoonlight I went to css, and added in theindex file, in red, the following and it now works but not in the FA Darkly theme: text-align:left;



/* Styles for the info center on the board index.
---------------------------------------------------- */

dl#ic_recentposts
{
    margin: 0 0 0.5em 0;
    padding: 0.5em;
    line-height: 1.3em;
    text-align: left;
}


Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

DarkAngel612

sorry, I did not see kindred's entire reply so will stop bothering here and go find the support threads for  Insidious V2, GamerZ and I think I fixed Bluemoonlight.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Advertisement: