I miss buttons like "Show unread posts since last visit." and "Show new replies to your posts.". I use my old template which I converted, but I dont get theese functions. And why is all my 3000 members hidden ???? How do I turn this off and how do I turn Quick reply box ON on everybody ?
There isnt button like that. Its a link, like
<td>
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a>
<td>
Quotehow do I turn Quick reply box ON on everybody
http://www.simplemachines.org/community/index.php?topic=7676.0
Ok, thanks. But all my members are hidden. How do I turn this is off?
Quote from: TF_ on March 18, 2004, 02:02:42 PM
Ok, thanks. But all my members are hidden. How do I turn this is off?
Do you have phpmyadmin?
Quote from: Owdy on March 18, 2004, 02:07:17 PM
Quote from: TF_ on March 18, 2004, 02:02:42 PM
Ok, thanks. But all my members are hidden. How do I turn this is off?
Do you have phpmyadmin?
Yes I have
Try this
UPDATE members SET showOnline= '1' WHERE showOnline = '0';
Thanks!
But how do I set this "Show unread post" thing in the template? I get only error.
And what is the code for Show new replies ?
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt[247], ' <b>', $context['user']['name'], '</b>, ';
I WANT THE SHOW NEW POSTS HERE
// Are there any members waiting for approval?
Quote from: Owdy on March 18, 2004, 02:18:18 PM
Try this
UPDATE members SET showOnline= '1' WHERE showOnline = '0';
In which database table ?
Quote from: TF_ on March 18, 2004, 02:30:17 PM
Quote from: Owdy on March 18, 2004, 02:18:18 PM
Try this
UPDATE members SET showOnline= '1' WHERE showOnline = '0';
In which database table ?
members / in Query window
Quote from: Owdy on March 18, 2004, 02:33:18 PM
Quote from: TF_ on March 18, 2004, 02:30:17 PM
Quote from: Owdy on March 18, 2004, 02:18:18 PM
Try this
UPDATE members SET showOnline= '1' WHERE showOnline = '0';
In which database table ?
members / in Query window
Thnx again ;) But now I only want answer on my last post over here! Thank you ;D
Quote from: TF_ on March 18, 2004, 02:28:26 PM
Thanks!
But how do I set this "Show unread post" thing in the template? I get only error.
And what is the code for Show new replies ?
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt[247], ' <b>', $context['user']['name'], '</b>, ';
I WANT THE SHOW NEW POSTS HERE
// Are there any members waiting for approval?
Replace that:
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt[247], ' <b>', $context['user']['name'], '</b>', $context['allow_pm'] ? ', ' . $txt[152] . ' <a href="' . $scripturl . '?action=pm">' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ? $txt[153] : $txt[471]) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']) : '', '.<br/>
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a>
';
// Are there any members waiting for approval?
Remember backup!
Thanks a lot!!!
Im a really pain in the ass now but now its look like this:
Hey, Admin, you have 61 messages, 1 is new.
Show unread posts since last visit.
Show new replies to your posts. you have 61 messages, 1 is new.
18. March 2004, 20:40
I want it to look like this:
Hey, Admin, you have 61 messages, 1 is new. 18. March 2004, 20:40
Show unread posts since last visit.
Show new replies to your posts.
Find this in your code ', $context['current_time'], '
and move that in that code i posted.
Something like this:
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt[247], ' <b>', $context['user']['name'], '</b>,', $context['current_time'], '<br />
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a>
';
// Are there any members waiting for approval?
Was that hidden menbers fixed? Can i have url to your board?