collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 51
  • Dot Hidden: 0
  • Dot Users: 4
  • Dot Users Online:

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • Underdog: there have been recent host changes and most likely issues due to configuration during that process. all should be resolved now please let us know of any further issue in this board: [link]  .. Thank you.
    December 20, 2014, 05:41:39 pm
  • BurkeKnight: Well, sometimes that error does show, like I said, when don't even get to the server. I have yet to figure out why...lol... However, there are times that you will see a msg about server stress here, but I have yet to get a 500 error, myself. And I'm here about 30 times a day, checking for new posts. :P
    December 20, 2014, 05:18:38 am
  • SeeingBlue: I was under the impressions that 500 Internal Server Error are only produced by the server(aka your site). Plus sanb below said he was having the same issue. Anyways just trying to help, not arguing.
    December 19, 2014, 06:59:40 pm
  • BurkeKnight: SeeingBlue, it may not be this end. There may be an issue in the connection from you to the SP site, that shows that. I know things like that can happen, due to the fact I had issues on my own site before, yet no one else did, nor were there any logs on it.
    December 19, 2014, 02:46:05 pm
  • ♦ Ninja ZX-10RR ♦: I'm not admin nor a staff member... I tried connecting with a different IP and via proxy. No errors...
    December 18, 2014, 01:15:06 pm
  • SeeingBlue: You've just been lucky, Ninja. There is a problem. Check your stats and see how many 500 error hits you've been getting.
    December 18, 2014, 08:08:56 am
  • ♦ Ninja ZX-10RR ♦: The server might be have a high load but it still works here...
    December 17, 2014, 03:13:51 pm
  • sanb: i cant post a reply(
    December 17, 2014, 01:36:59 pm
  • SeeingBlue: It's intermittent. I bet if the admin logs into the cpanel they'll find either CPU or Ram hitting it's limit.
    December 17, 2014, 09:11:07 am
  • ♦ Ninja ZX-10RR ♦: The site works fine here...
    December 16, 2014, 11:01:27 am
  • SeeingBlue: I was finally able to make 1 post, but I can't edit it or make another. I'm frustrated, I give up.
    December 16, 2014, 08:49:37 am
  • SeeingBlue: I even tried a different browser. I'm just getting a 500 Internal Server Error.
    December 16, 2014, 08:30:15 am
  • SeeingBlue: When I "hit" post, sorry.
    December 16, 2014, 08:26:04 am
  • SeeingBlue: I'm trying to reply to my thread "Loading custom JS files" and when I get post it just loads a blank page.
    December 16, 2014, 08:25:43 am
  • Eliana Tamerin: Let's kick this over to his support topic, folks.
    December 03, 2014, 10:16:21 pm
  • Underdog: what is the issue with it? the naviagtion links? look here: [link]
    December 03, 2014, 09:54:07 pm
  • [SiNaN]: Oh! I didn't even see that. The author seems to have posted some instructions at the theme support topic at sm.org: [link]
    December 03, 2014, 02:11:58 pm
  • WhiteEagle: No the menu on top... the one that comes down when you mouse over it. ;)
    December 03, 2014, 02:02:35 pm
  • [SiNaN]: I already posted it!
    December 03, 2014, 01:51:11 pm
  • WhiteEagle: Any idea what I can do with the menu on top in that theme [SiNaN]?
    December 03, 2014, 01:28:25 pm

* Recent Posts

Re: Error with ... shortcuts by BurkeKnight
[Today at 02:15:11 pm]


Re: Error with ... shortcuts by ♦ Ninja ZX-10RR ♦
[Today at 02:03:36 pm]


Re: Mod adding custom block by Arantor
[Today at 01:14:32 pm]


Re: Mod adding custom block by [SiNaN]
[Today at 12:58:38 pm]


Error with ... shortcuts by MESSIAH
[Today at 12:00:40 pm]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: [Tip] Post Notifications on shoutbox  (Read 11707 times)

0 Members and 1 Guest are viewing this topic.

Offline 130860

  • Super Handsome Language Coordinator
  • Comrade
  • *
  • Posts: 1777
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: [Tip] Post Notifications on shoutbox
« Reply #20 on: January 28, 2011, 03:36:23 pm »
ok, can you tell me the ID of the shout you're modifying?  this tip supose to modify the shout with ID 1, but you need to change that to your actual shout ID

Offline Divecall

  • Full Member
  • ***
  • Posts: 214
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: [Tip] Post Notifications on shoutbox
« Reply #21 on: January 28, 2011, 03:49:31 pm »
I have only one shoutbox...this is with ID 1

Offline 130860

  • Super Handsome Language Coordinator
  • Comrade
  • *
  • Posts: 1777
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: [Tip] Post Notifications on shoutbox
« Reply #22 on: January 28, 2011, 06:18:35 pm »
ok, try with this one:

Code: [Select]
$foros = array (42,54);
     
     
      if (in_array($board, $foros))
echo '';
 
  else
      {
global $user_info, $board, $scripturl, $boardName, $topic;
     
         $smcFunc['db_insert']('',
      '{db_prefix}sp_shouts',
      array(
         'id_shoutbox' => 'int',
         'id_member' => 'int',
         'member_name' => 'string',
         'log_time' => 'int',
         'body' => 'string',
      ),
      array(
         1,
         $user_info['id'],
         $user_info['name'],
         time(),
         '[color=red][b]Neues Thema: [url=http://'.$scripturl . '?topic=' . $topic . '.new#new'.']'.html_entity_decode($_POST['subject']).'[/url][/b][/color]',
      ),
      array('id_shout')
   );

Offline Divecall

  • Full Member
  • ***
  • Posts: 214
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: [Tip] Post Notifications on shoutbox
« Reply #23 on: January 28, 2011, 06:48:29 pm »
Wow! Thats amazing!

It is working. THANK YOU SO MUCH!

Offline robbie93

  • Semi Newbie
  • *
  • Posts: 18
  • Gender: Male
    • R & H
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: [Tip] Post Notifications on shoutbox
« Reply #24 on: February 20, 2011, 01:14:10 pm »
Thank you sooooo much for this tip - I am using this code

Code: [Select]
global $user_info, $board, $scripturl, $boardName, $topic;
     
         $smcFunc['db_insert']('',
      '{db_prefix}sp_shouts',
      array(
         'id_shoutbox' => 'int',
         'id_member' => 'int',
         'member_name' => 'string',
         'log_time' => 'int',
         'body' => 'string',
      ),
      array(
         1,
         $user_info['id'],
         $user_info['name'],
         time(),
         '[color=red][b]New Topic: [url='.$scripturl . '?topic=' . $topic . '.new#new'.']'.html_entity_decode($_POST['subject']).'[/url][/b][/color]',
      ),
      array('id_shout')
   );


It is working fine but when I upload a new game and the topic is created it doesnt show up in the sbox

the board for the arcade games is here http://robbie93andhotchildxox.net/index.php/board,4.0.html

how can I get each new topic to show up in the sbox when one is created? thanks.

Offline 130860

  • Super Handsome Language Coordinator
  • Comrade
  • *
  • Posts: 1777
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: [Tip] Post Notifications on shoutbox
« Reply #25 on: February 20, 2011, 09:56:19 pm »
does your shoutbox has the ID 1?

Offline robbie93

  • Semi Newbie
  • *
  • Posts: 18
  • Gender: Male
    • R & H
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: [Tip] Post Notifications on shoutbox
« Reply #26 on: February 21, 2011, 02:26:38 pm »
No my sbox has the ID 5 I changed the array to 5 on the code, most topics work but new topics created when a game is installed do not.

Offline 130860

  • Super Handsome Language Coordinator
  • Comrade
  • *
  • Posts: 1777
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: [Tip] Post Notifications on shoutbox
« Reply #27 on: February 22, 2011, 09:12:37 am »
this code will only work for new topics created by members,  if you have a mod that automatically creates a new topic, then this code won't show that topic.

Offline robbie93

  • Semi Newbie
  • *
  • Posts: 18
  • Gender: Male
    • R & H
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: [Tip] Post Notifications on shoutbox
« Reply #28 on: February 22, 2011, 12:15:49 pm »
Ahh, ok no probs - thanks for a great tip anyway.

Offline phantomm

  • Support
  • *
  • Posts: 390
  • Gender: Male
  • Smile, tomorrow will be worse...
    • Polish ElkArte community
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: [Tip] Post Notifications on shoutbox
« Reply #29 on: July 04, 2012, 02:54:45 pm »
few questions:

  • If I want show as author of this shouts user with ID 80 - what I have to change?
  • If I want to change text in shout to:
      New topic [linked topic name] posted by [linked username]
    How to do this? Is it possible?
« Last Edit: July 04, 2012, 02:57:15 pm by phantomm »

Offline velorooms

  • Jr. Member
  • **
  • Posts: 76
    • Velorooms
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: [Tip] Post Notifications on shoutbox
« Reply #30 on: October 19, 2012, 11:59:56 am »
dito the above. i want it to put the topic name rather than just "new topic"
Admin and Owner of Velorooms.com - Using SMF 2.0.3 and Simpleportal 2.3.5

weerforum

  • Guest
Re: [Tip] Post Notifications on shoutbox
« Reply #31 on: October 31, 2012, 12:21:38 pm »
Is there a way to show answers, too - not only the new topic?
I would love that  :D

weerforum

  • Guest
Re: [Tip] Post Notifications on shoutbox
« Reply #32 on: November 06, 2012, 02:43:09 pm »
No help ???    :| :| :|

weerforum

  • Guest
Re: [Tip] Post Notifications on shoutbox
« Reply #33 on: November 27, 2012, 06:51:49 am »
 :'( :'( :'(

Offline 130860

  • Super Handsome Language Coordinator
  • Comrade
  • *
  • Posts: 1777
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: [Tip] Post Notifications on shoutbox
« Reply #34 on: November 29, 2012, 03:12:42 pm »
Doing it for messages will put a heavy load on your server, it is not recommended.

You can add the same piece of code right after this comment on the same file:

Code: [Select]
// Only send it to everyone if the topic is approved, otherwise just to the topic starter if they want it.

weerforum

  • Guest
Re: [Tip] Post Notifications on shoutbox
« Reply #35 on: November 29, 2012, 03:16:11 pm »
Sorry i am dutch where to put that code ?

Offline 130860

  • Super Handsome Language Coordinator
  • Comrade
  • *
  • Posts: 1777
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: [Tip] Post Notifications on shoutbox
« Reply #36 on: November 29, 2012, 03:21:47 pm »
Open the Sources/Post.php  and find that exact line, put the code on the first message of this topic right after that comment line.

Or just attach the file here.

weerforum

  • Guest
Re: [Tip] Post Notifications on shoutbox
« Reply #37 on: November 29, 2012, 03:25:05 pm »
Thnx for the help here is mi attachment

Offline 130860

  • Super Handsome Language Coordinator
  • Comrade
  • *
  • Posts: 1777
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: [Tip] Post Notifications on shoutbox
« Reply #38 on: November 29, 2012, 03:27:36 pm »
use this one, make a back up of your site before tryig to use this file as its totally untested.

weerforum

  • Guest
Re: [Tip] Post Notifications on shoutbox
« Reply #39 on: November 29, 2012, 03:32:26 pm »
Didn`t work sorry ?
Not showing new post in te shoutbox