[ALPHA] Shoutbox MOD v0.1.3

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10965
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye »

1. Not really, it will be this month though :)
2. Because I have never used it before, and therefore don't know how.
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D
User avatar
DaMnY
Registered User
Posts: 51
Joined: Sun Jan 26, 2003 10:09 am
Location: The Netherlands
Contact:

Post by DaMnY »

Everyone can delete the shouts now?
Know Thyself
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10965
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye »

Whoops, you're right :o

As a quick solution:

Code: Select all

	if( $HTTP_GET_VARS['mode'] == "delete" )
	{
After add

Code: Select all

		if( $userdata['user_level'] != ADMIN )
		{
		die();
		}
That was in shoutbox.php
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10965
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye »

Ok, that was fixed in 0.0.5. I also added functionality for the word censor.
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D
jlhaslip
Registered User
Posts: 25
Joined: Sun Sep 25, 2005 3:07 am

Post by jlhaslip »

Okay, I've downloaded the shoutbox.php file.
What do I do next?
I've never modded a forum before, so if someone could give me some direction, that'd be great.
Thanks.
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10965
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye »

Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D
User avatar
beggers
Registered User
Posts: 1257
Joined: Fri Nov 23, 2001 8:19 pm
Location: Las Vegas
Contact:

Post by beggers »

battye wrote: It will in the near future, 0.0.4 doesn't though.

Peter77sx, I could have sworn I haven't included a refresh function yet :?
Although if I have, yes it would Peter. Mine is the only Shoutbox MOD I am aware of that doesn't use Iframes.


Please take a close look at your SM_Installation.mod.txt file. It appears to have some embedded non-ascii characters.
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10965
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye »

beggers wrote:
battye wrote:It will in the near future, 0.0.4 doesn't though.

Peter77sx, I could have sworn I haven't included a refresh function yet :?
Although if I have, yes it would Peter. Mine is the only Shoutbox MOD I am aware of that doesn't use Iframes.


Please take a close look at your SM_Installation.mod.txt file. It appears to have some embedded non-ascii characters.


It does? Do you know what line, I have looked and come up with nothing :?
dmg81
Registered User
Posts: 210
Joined: Sun Apr 24, 2005 4:15 am
Location: trying to figure things out

Post by dmg81 »

Hi, does this shoutbox have a scrollbar?
thanks, dmg
hmartin
Registered User
Posts: 118
Joined: Mon Jun 06, 2005 2:49 am
Location: /home/
Contact:

Post by hmartin »

I'm trying to pick between your and Niels shoutboxes, so can you tell me what the main differences are?
Last edited by hmartin on Tue Dec 13, 2005 4:22 am, edited 1 time in total.
hmartin
Registered User
Posts: 118
Joined: Mon Jun 06, 2005 2:49 am
Location: /home/
Contact:

Post by hmartin »

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#

functions.php
should be

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#

includes/functions.php
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Post by Peter77sx »

hmartin wrote: I'm trying to pick between your and Niels shoutboxes, so can you tell me what the main differences are?


Niels SB is refreshed within a iframe.

battye's SB does not work with iframes. the whole index refreshes with every post you make to the shoubox. though I do think this one works and looks better - it doesn't make your index page look crappy by looking like it is being "stretched" because of iframes. it was not for me though cause my index is a little too 'heavy' to be refreshing with each shout posted.
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10965
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye »

Peter77sx wrote:
hmartin wrote:I'm trying to pick between your and Niels shoutboxes, so can you tell me what the main differences are?


Niels SB is refreshed within a iframe.

battye's SB does not work with iframes. the whole index refreshes with every post you make to the shoubox. though I do think this one works and looks better - it doesn't make your index page look crappy by looking like it is being "stretched" because of iframes. it was not for me though cause my index is a little too 'heavy' to be refreshing with each shout posted.


As Peter said, the only difference is the removal of iframe, which I think is better for the same reasons that Peter outlined :)
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D
hmartin
Registered User
Posts: 118
Joined: Mon Jun 06, 2005 2:49 am
Location: /home/
Contact:

Post by hmartin »

Since, I don't want the shoutbox displayed to non-registered users, I put it inside a <!-- BEGIN switch_user_logged_in --> switch. However, when I do this none of the shouts will display. How do I fix this bug?
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10965
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye »

You did end the switch right?

<!-- BEGIN switch_user_logged_in -->
<!-- END switch_user_logged_in -->

And that code will cause the shoutbox to be displayed to members only, as you said :)
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D
Post Reply

Return to “[2.0.x] MODs in Development”