News:

Keeping Crip's dream alive is our mission! :)

 

Recent Topics

Members
Stats
  • Total Posts: 10,783
  • Total Topics: 1,380
  • Online today: 159
  • Online ever: 879
  • (Jan 21, 20, 05:49:15 PM)
Users Online
Users: 0
Guests: 21
Total: 21

style400 SMF 2.0.4

Started by VastOne, Feb 10, 13, 08:00:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VastOne

I would like to move/or duplicate

View the most recent posts on the forum

from the Forum Stats area to the Head area right below

Show new replies to your posts

Would you please direct me to which files they are in to make these changes?

Thanks!

ZarPrime

Well, I'm not familiar with that theme and whether it has it's own BoardIndex.template.php & index.template.php files or whether it depends on those same files in the default theme.  So, I will let Crip answer your question.  However, I can tell Crip where those lines are located in the default theme.

Jeff, first of all, here are the themestrings in question in the default theme ...

\smf_2-0-4_install\Themes\default\languages\index.english.php
Line 166:
$txt['recent_view'] = 'View the most recent posts on the forum.';


\smf_2-0-4_install\Themes\default\languages\index.english.php
Line 634:
$txt['show_unread_replies'] = 'Show new replies to your posts.';





Since 'View the most recent posts on the forum.' is in the info center, that line is in the BoardIndex.template.php file in the default theme on line 399.  It's on a different line for the core theme ...

\smf_2-0-4_install\Themes\default\BoardIndex.template.php
Line 399:
<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />


'Show new replies to your posts.' is in the index.template.php file in the default theme on line 200.  It's on a different line for the core theme ...

\smf_2-0-4_install\Themes\default\index.template.php
Line 200:
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';


That should give you the information you need to tell him how to do it.

ZarPrime

Crip

  • it doesn't have it's own [BoardIndex.Template] i don't believe?>> , but it can have it's own to edit it ..
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

Crip

#3
Upload this where your "[ index.template.php ]" is , & then we can show you the code that goes up at the user area.
2 -- ATTACH::=>
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

Crip

THIS SHOULD ADD THE CODE YOU WANTED UP TOP IN THE USER AREA.
   ==>BACK UP YOUR (INDEX.TEMPLATE.PHP) 1ST!!!




   // If the user is logged in, display stuff like their name, new messages, etc.
   if ($context['user']['is_logged'])
   {
      if (!empty($context['user']['avatar']))
         echo '
            <p class="avatar">', $context['user']['avatar']['image'], '</p>';
      echo '
            <ul class="reset">
               <li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
               <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
               <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>
               <li><a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a></li>';
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

VastOne

Editing and adding/modifying to /smf/Themes/style400/index.template.php worked perfectly perfectly Crip

These changes only effect this theme, I will track down the default based on what ZarPrime posted

This is what I settled on

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<ul class="reset">
<li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
               <li><a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a></li>';




Thank you so much for your help!

Crip

I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.