Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: iain sherriff on March 30, 2013, 08:12:47 AM

Title: changing some standard forum text
Post by: iain sherriff on March 30, 2013, 08:12:47 AM
Hi.
I want to change "watched" to "warned" in the warn system
and

I want to add something to the <div class="nextlinks_bottom"></div>  area but I can't find which template it is on!

can anyonme help please  :)
Title: Re: changing some standard forum text
Post by: Kindred on March 30, 2013, 08:45:49 AM
well, for the first... check index.english,php first.

For the second, be more clear...
on what screen does that div appear?
Title: Re: changing some standard forum text
Post by: iain sherriff on March 31, 2013, 07:32:05 AM
thanks.Have done the "warned" bit  :)

next_links div is the one that contains <<previous   next>> at the bottom of the topic page (after the last post)
Title: Re: changing some standard forum text
Post by: Kindred on March 31, 2013, 07:51:10 AM
so...  on the page of a displayed thread?


Then you're looking in Display.template.php
Title: Re: changing some standard forum text
Post by: iain sherriff on April 02, 2013, 10:01:05 AM
Kindred. What I am trying to do is add the "unread since last visit" link to the next_links div.
I have tired adding
$txt['unread_since_visit'] 
but I get errors.
Can you tell me what I should be doing ?

thanks
Title: Re: changing some standard forum text
Post by: iain sherriff on April 03, 2013, 08:47:27 AM
or I would welcome anyone else who has an answer  :)
Title: Re: changing some standard forum text
Post by: Kindred on April 03, 2013, 09:12:44 AM
attach your display.template.php file...
Title: Re: changing some standard forum text
Post by: iain sherriff on April 03, 2013, 10:30:31 AM
 :)
Title: Re: changing some standard forum text
Post by: Kindred on April 03, 2013, 12:19:54 PM
Code (find) Select

// Show the page index... "Pages: [1]".
echo '
<div class="pagesection">
', template_button_strip($normal_buttons, 'right'), '
<div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><strong>' . $txt['go_up'] . '</strong></a>' : '', '</div>
<div class="nextlinks_bottom">', $context['previous_next'], '</div>
</div>';


Code (replace) Select

// Show the page index... "Pages: [1]".
echo '
<div class="pagesection">
', template_button_strip($normal_buttons, 'right'), '
<div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><strong>' . $txt['go_up'] . '</strong></a>' : '', '</div>
<div class="nextlinks_bottom">', $context['previous_next'], '</div>
<div class="unread_bottom"><a href="', $scripturl, '?action=unread" title="', $txt['unread_since_visit'], '">', $txt['unread_since_visit'], '</a></div>
</div>';


and then specify class=unread_bottom in the index.css file.
Title: Re: changing some standard forum text
Post by: iain sherriff on April 04, 2013, 06:38:47 AM
thank you kind Sir......just what I wanted  :)
Title: Re: changing some standard forum text
Post by: iain sherriff on April 15, 2013, 05:06:17 PM
............and if I wanted to add the % of warn with the "Warned" text ?

can that be done ?
Title: Re: changing some standard forum text
Post by: Kindred on April 15, 2013, 05:11:18 PM
huh?   %warned?   The bit that we were discussing before is related to the thread...   who would you list the warning for at the bottom of the thread?   especially a thread with 40 different posters.....
Title: Re: changing some standard forum text
Post by: iain sherriff on April 16, 2013, 12:41:32 AM
sorry Kindred...

In my first post I asked about altering "watched" to "warned" which you pointed me to index.english.php to fix.

I want to show users the % they have now as well next to "warned" in the standard place.