Advertisement:

Author Topic: Buttons are not there after converting  (Read 13056 times)

Offline TF_

  • Semi-Newbie
  • *
  • Posts: 87
  • Gender: Male
  • I'm a llama!
Buttons are not there after converting
« on: March 18, 2004, 12:37:23 PM »
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 ? 

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Buttons are not there after converting
« Reply #1 on: March 18, 2004, 01:54:08 PM »
There isnt button like that. Its a link, like
Code: [Select]
<td>
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a>
<td>


Quote
how do I turn Quick reply box ON on everybody
http://www.simplemachines.org/community/index.php?topic=7676.0


« Last Edit: March 18, 2004, 01:55:58 PM by Owdy »
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline TF_

  • Semi-Newbie
  • *
  • Posts: 87
  • Gender: Male
  • I'm a llama!
Re: Buttons are not there after converting
« Reply #2 on: March 18, 2004, 02:02:42 PM »
Ok, thanks. But all my members are hidden. How do I turn this is off?

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Buttons are not there after converting
« Reply #3 on: March 18, 2004, 02:07:17 PM »
Ok, thanks. But all my members are hidden. How do I turn this is off?
Do you have phpmyadmin?
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline TF_

  • Semi-Newbie
  • *
  • Posts: 87
  • Gender: Male
  • I'm a llama!
Re: Buttons are not there after converting
« Reply #4 on: March 18, 2004, 02:14:59 PM »
Ok, thanks. But all my members are hidden. How do I turn this is off?
Do you have phpmyadmin?
Yes I have

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Buttons are not there after converting
« Reply #5 on: March 18, 2004, 02:18:18 PM »
Try this

UPDATE members SET showOnline= '1' WHERE showOnline = '0';
« Last Edit: March 18, 2004, 02:19:55 PM by Owdy »
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline TF_

  • Semi-Newbie
  • *
  • Posts: 87
  • Gender: Male
  • I'm a llama!
Re: Buttons are not there after converting
« Reply #6 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 ?

Code: [Select]
// 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?


Offline TF_

  • Semi-Newbie
  • *
  • Posts: 87
  • Gender: Male
  • I'm a llama!
Re: Buttons are not there after converting
« Reply #7 on: March 18, 2004, 02:30:17 PM »
Try this

UPDATE members SET showOnline= '1' WHERE showOnline = '0';

In which database table ?

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Buttons are not there after converting
« Reply #8 on: March 18, 2004, 02:33:18 PM »
Try this

UPDATE members SET showOnline= '1' WHERE showOnline = '0';

In which database table ?
members / in Query window
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline TF_

  • Semi-Newbie
  • *
  • Posts: 87
  • Gender: Male
  • I'm a llama!
Re: Buttons are not there after converting
« Reply #9 on: March 18, 2004, 02:37:30 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

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Buttons are not there after converting
« Reply #10 on: March 18, 2004, 02:41:16 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 ?

Code: [Select]
// 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:
Code: [Select]
// 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!
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline TF_

  • Semi-Newbie
  • *
  • Posts: 87
  • Gender: Male
  • I'm a llama!
Re: Buttons are not there after converting
« Reply #11 on: March 18, 2004, 02:51:00 PM »
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.

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Buttons are not there after converting
« Reply #12 on: March 18, 2004, 03:27:55 PM »
Find this in your code
Code: [Select]
', $context['current_time'], ' and move that in that code i posted.
Something like this:
Code: [Select]
// 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?
« Last Edit: March 18, 2004, 03:30:26 PM by Owdy »
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0