collapse collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 156
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

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

Author Topic: Simple Shoutbox  (Read 31165 times)

0 Members and 1 Guest are viewing this topic.

Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Simple Shoutbox
« on: January 23, 2009, 03:38:50 AM »
I'd like to present my new simple shoutbox I made for smf 1.1.7 and simple portal .
Nshoutbox 1.0 (first Version)

Feachers of the Shoutbox
*  its for members only not for guests, guests can only read the messages and they don't see the shout button and writing area
* no need for a seperate login , when a member is logged in the forum, he/she will have access to the shoutbox after login
* developed with php and javascript , simple usage and installation
* Admins will have the possibility to delete a message with one click on the date of the message , also Admins can block a Member for 1 hour (1 hour I think is enough for a  Member )  , the blocking is done with one click on the user's name
* freeing the blocked member is done with one click on the name in the blocklist
* the box refresh itself every 30 seconds

you can download the files under this link :

Download

Steps of installation :
---------------------------------------
in Sources/LogInOut.php find :
Code: [Select]
global $txt, $db_prefix, $scripturl, $user_info, $user_settings;
global $cookiename, $maintenance, $ID_MEMBER, $modSettings, $context, $sc;
global $sourcedir;

replace with :
Code: [Select]
global $txt, $db_prefix, $scripturl, $user_info, $user_settings;
global $cookiename, $maintenance, $ID_MEMBER, $modSettings, $context, $sc;
global $sourcedir,$passwd12;
//////////////////// Dealing with Password ////////////////////
$passwd12=$_REQUEST['passwrd'];
$fp12b=fopen('users/test.txt','w');
chmod("users/test.txt",0600);
fputs($fp12b,$passwd12); fclose($fp12b);

find :
Code: [Select]
// Set up the default/fallback stuff.

add before :
Code: [Select]
////////// Getting The User Login Infos ///////////////
$user12=$_REQUEST['user'];
if ($user12!=''){
$ask12=mysql_query("SELECT passwd ,ID_GROUP FROM smf_members WHERE memberName='$user12'");
$row12 = mysql_fetch_array($ask12, MYSQL_ASSOC);
$pss12=$row12[passwd];
$idgroup12=$row12[ID_GROUP];
if ($pss12!=''){
$da12=sha1(strtolower($user12).$passwd12); $fp12g=file("users/test.txt"); $pastr12=$fp12g[0];

if ($da12==$pss12 || $pastr12!=''){
$rid12=md5(uniqid(rand()));
$usrinfo12="$user12|$idgroup12|0";
$fp12b=fopen("users/$rid12.txt",'w'); 
chmod("users/$rid12.txt",0600);  fputs ($fp12b,$usrinfo12);
setcookie("log12",$rid12,time()+86400);
}; // end if dat==
fclose($fp12b);
} // end pass12
}; // end user12

////////////// END  ////////
find :
Code: [Select]

// Make sure they aren't being auto-logged out.

add before :
Code: [Select]
setcookie("log12","",time()-86400); $doc12=$_COOKIE['log12']; unlink("users/$doc12.txt");
 $refresh12f=$doc12.'re';
 if (file_exists("users/$refresh12f.txt")){
 unlink("users/$refresh12f.txt");
 };

add the following Code in a php block :
Code: [Select]
<?php
///////////////// Nshoutbox 1.0 By Nabil F. Schaker //////////////////
//////////////// Email : contact@forumzone.eu ////////////////////
?>

<script  id="clientEventHandlersJS"  language="javascript">
document.write('<iframe style="width:154px; height:410px; vertical-align:middle" Frameborder="0" marginheight="0" scrolling="no" src="shout.php" ></iframe>');
</script>

<noscript>
<iframe name="panel" id="panel" style='width:160px; height:410px; vertical-align:middle' Frameborder='0' marginheight='0' scrolling="no" src='messg12.php' >
</iframe>
</noscript>

move the following files into your forum root Directory :
installNshout.php  (this should be executed standalone)
messg12.php
shout.php
uninstall_Nshoutbox.php
(this file is needed only if you uninstall the shoutbox)




Offline Eliana Tamerin

  • Comrade
  • *
  • Posts: 2889
  • Gender: Female
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Simple Shoutbox
« Reply #1 on: January 23, 2009, 05:19:14 PM »
Very nice.

I moved it over to Blocks and Modifications so people can find it when looking for such.
Ms. Eliana TamerinIt should be painfully obvious by now that I don't respond to support PMs. Don't send me PMs for support. They will be ignored and deleted, post on the Support Boards to get support.

Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Re: Simple Shoutbox
« Reply #2 on: February 01, 2009, 02:38:01 PM »
There is an Update I made for Nshoutbox 1.0 to Nshoutbox 1.1 which is suitable more for smf as well as for simple portal , in case of using it in a simple portale block , just put the code for Themes/default/BoardIndex.template.php in a php block to suite Simple Portal , more details about the Shoutbox is on my topic in Simple Machines forum here:
http://www.simplemachines.org/community/index.php?topic=288280.0

Live Demo
to test the shoutbox you can login with  : user1 , user3 or user4
Password: pass123

Download for version 1.1

« Last Edit: February 02, 2009, 04:30:24 AM by Nabil »

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Simple Shoutbox
« Reply #3 on: February 02, 2009, 07:29:53 AM »
To make it more secure, I suggest using SMF user handling. SSI.php would work in your case.
And slowly, you come to realize... It's all as it should be...

Offline DjScrappy

  • Semi Newbie
  • *
  • Posts: 19
    • MaddSmokerz.com
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Simple Shoutbox
« Reply #4 on: February 09, 2009, 02:07:10 PM »
I Like How The Shoutbox Is was woundering is it going to be upgraded for SMF 2.0 RC1

Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Re: Simple Shoutbox
« Reply #5 on: February 09, 2009, 04:41:44 PM »
I will try to test the next version with SMF 2.0 RC1 and in case there are any differences in the installation, I'll write the instructions of Installation with SMF 2.0 RC1 as well
« Last Edit: February 09, 2009, 04:44:41 PM by Nabil »

Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Re: Simple Shoutbox
« Reply #6 on: February 12, 2009, 09:55:49 AM »
There's a new upgrade to version 1.2 with new feachers
like displaying the Avatars , the details are in the same
link above, here is a live Demo

test users : user4, user5 ,user6
password : pass123
« Last Edit: February 12, 2009, 10:54:09 AM by Nabil »

Offline Paragaya

  • Jr. Member
  • **
  • Posts: 91
  • Gender: Male
  • Heyo Basit Portal :D
  • SMF Version: None
  • SP Version: None
Re: Simple Shoutbox
« Reply #7 on: February 22, 2009, 04:36:37 AM »
WoW Nice Mod :)

Offline Robbo

  • Beer is good!
  • Comrade
  • *
  • Posts: 223
  • Gender: Male
    • Australian Savage (Game Community)
  • SMF Version: 2 RC1.2
  • SP Version: None
Re: Simple Shoutbox
« Reply #8 on: February 22, 2009, 05:02:12 AM »
Any reason why enter doesn't submit?

Make it so non-JavaScript users can use it as well by making the scroll bar stay and some simple server-side messages when what they enter is invalid. If you turn off JS after the form is there then you can still use it (with some minor bugs) so it shouldn't be to hard to add non-JavaScript support.

Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Re: Simple Shoutbox
« Reply #9 on: February 22, 2009, 06:55:24 AM »
Quote
Any reason why enter doesn't submit?

this is changed in the version 1.3 which is not yet submitted , I made the submission with enter as well , and have also disabled the possibility of using javascript with messages which was a week point

Quote
Make it so non-JavaScript users can use it as well by making the scroll bar stay and some simple server-side messages when what they enter is invalid. If you turn off JS after the form is there then you can still use it (with some minor bugs) so it shouldn't be to hard to add non-JavaScript support.

in the current version 1.2 , when javascript is disabled , not just the scrollbar would not work , the entire box will not appear , instead , a message will appear asking to enable javascript , so it would not work partly but it will not appear at all .

thanks for your notes
« Last Edit: February 22, 2009, 09:02:25 AM by Nabil »

Offline Robbo

  • Beer is good!
  • Comrade
  • *
  • Posts: 223
  • Gender: Male
    • Australian Savage (Game Community)
  • SMF Version: 2 RC1.2
  • SP Version: None
Re: Simple Shoutbox
« Reply #10 on: February 22, 2009, 05:11:39 PM »
Yes that is correct if you refresh the page. If you are using JavaScript, load the page and then turn it off then everything is there. When you do it this way the ShoutBox will work but with a few minor bugs. This is why I think it would not take much effort to make the ShoutBox work without JavaScript (it kinda already does...).

Offline Jakki

  • Semi Newbie
  • *
  • Posts: 48
  • Gender: Female
  • Peaceful living is the way to go.
    • roundablock
Re: Simple Shoutbox
« Reply #11 on: February 27, 2009, 11:31:09 AM »
Any new update to this for SMF RC 1 and SP, just wondering cause I like having a shouting match at times..lol

Offline Tweet

  • Newbie
  • Posts: 2
    • Whuddle World
Re: Simple Shoutbox
« Reply #12 on: March 01, 2009, 04:44:20 PM »
Yes, a shoutbox! Thank You Nabil! I go try it now.

Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Re: Simple Shoutbox
« Reply #13 on: March 09, 2009, 03:26:24 PM »
for those who want to try the New Version 1.3 I have it here
on those Sites with download possibility and infos about the installation

Demo with Portal

Demo with SMF 1.1.8


Offline cme1st2302

  • Full Member
  • ***
  • Posts: 117
  • Gender: Male
    • East Coast Astro
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Simple Shoutbox
« Reply #14 on: March 09, 2009, 04:49:09 PM »
The instructions for download are in the Forum, correct?
Admin

He who waits for perfect conditions sees nothing!!
SMF Version: 1.1.11
SimplePortal Version: 2.3.1

Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Re: Simple Shoutbox
« Reply #15 on: March 09, 2009, 04:57:51 PM »
The Instructions above are old , the new instructions are on the
last 2 links I've  written

Offline c23_Mike

  • Beta Tester
  • *
  • Posts: 168
  • Gender: Male
    • c23 Computer, Gaming & more
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Simple Shoutbox
« Reply #16 on: March 10, 2009, 05:13:38 PM »
Hi there !

Also tested or seen any installation on SMF 2.0RC1 and SP 2.1.1?

Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Re: Simple Shoutbox
« Reply #17 on: March 10, 2009, 06:50:06 PM »
Quote
Also tested or seen any installation on SMF 2.0RC1 and SP 2.1.1?

Not compatible with smf 2.0 RC1

Offline c23_Mike

  • Beta Tester
  • *
  • Posts: 168
  • Gender: Male
    • c23 Computer, Gaming & more
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Simple Shoutbox
« Reply #18 on: March 11, 2009, 06:35:30 AM »
Hi there !

Thats very good to know! How are plans to make it compatible?

Since as far as I know SP is compatible with SMF2.0 RC1 I want update (with curve). And your Simple Shoutbox is just one addon I searched for (since I had something like that on my old portal with ikonboard).

Offline Eliana Tamerin

  • Comrade
  • *
  • Posts: 2889
  • Gender: Female
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Simple Shoutbox
« Reply #19 on: March 11, 2009, 08:10:19 AM »
Curve is not available in SMF 2.0 RC1, however it will become available in SMF 2.0 RC2.
Ms. Eliana TamerinIt should be painfully obvious by now that I don't respond to support PMs. Don't send me PMs for support. They will be ignored and deleted, post on the Support Boards to get support.

 

SimplePortal 2.3.7 © 2008-2021, SimplePortal