Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Shoutbox Rework
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2009-03-20 05:37:57
[size=14px]UPDATED[/size]

Hey Everyone!!  :unsure:

Tired of Typing in your shoutbox only to have the typing wiped out by the automatic refresh???

Also...Waiting for the other user to Reply to you?!? Can you wait??  :unsure:

Here is the FIX...MOD....Not sure what you would call it!! LOL

This is Strictly the base shoutbox coding...split into an in and out section...therefore no need for long refresh times. There are no MOD's in this release. If you have mods in your shoutbox...you will have to re-install them. If you need help finding code....let me know! I will try and help! Have a great DAY!

Find in Index.php:

	echo '<IFRAME name="shout_frame" src="'.$site_config["SITEURL"].'/shoutbox.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="210" width=350 scrolling="no" align="middle"></IFRAME>';

echo "(Shoutbox will auto-refresh every 60 seconds)<BR>";
Replace with:


// Begin Shoutbox Rework

echo '<IFRAME name="shout_out" src="'.$site_config["SITEURL"].'/shoutout.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="285" width=350 scrolling="no" align="middle"></IFRAME>';

echo '<IFRAME name="shout_in" src="'.$site_config["SITEURL"].'/shoutin.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="40" width=350 scrolling="no" align="middle"></IFRAME>';

echo "(Shoutbox will auto-refresh every <B>10</B> seconds.)<BR>";

//End Shoutbox Rework



Download and copy the 2 files into the folder where shoutbox.php is located:

Delete shoutbox.php when and if your ready....or like!

ALL DONE!!   :rolleyes:

This is fully theme and language compliant!

Please test and let us know how it works for you guys!!

Brought to you by - [url="http://safe-torrents.com"]Safe-Torrents[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3601"]shoutin.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3602"]shoutout.php[/url]
shoutin.php
Download
shoutout.php
Download
Unknown User
2009-03-20 06:28:02
Well I would say it works perfectly, but then again I tested it and tested theme compatiblity so it works on [url="http://safe-torrents.com"]Safe-Torrents[/url]  :rolleyes:
Unknown User
2009-03-21 02:01:37
OH!! And here is a copy of the shoutout that will remove the scroll bar from the right hand side and display more of the text sideways.

PLUS with a fast refresh..it does little good to have the scroll bar!!  :rolleyes:

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3606"]shoutout.php[/url]
shoutout.php
Download
Unknown User
2009-03-26 10:47:28
thanks works well.

only one thing: when you post your message, it takes also 10 sec to appear :rolleyes:
Unknown User
2009-03-27 00:41:20
"AzuriS, post: 55544":
thanks works well.only one thing: when you post your message, it takes also 10 sec to appear  :rolleyes:

You can change this setting in the shoutout.php

Find in Shoutout.php:

<META HTTP-EQUIV="refresh" content="10">
Replace with:


<META HTTP-EQUIV="refresh" content="X">



Make X the value in seconds you want messages to refresh in output box.
Unknown User
2009-03-27 09:14:39
yes, i saw that   :rolleyes:

10 secondes is a good way for refresh shoutout

but when you post a new message, it also take 10 secondes to appear and it will be better to have it instantanetly like before :unsure:
Unknown User
2009-03-27 09:31:05
"AzuriS, post: 55567":
yes, i saw that   :unsure: 10 secondes is a good way for refresh shoutout

but when you post a new message, it also take 10 secondes to appear and it will be better to have it instantanetly like before  :unsure:

Yes...I am Working on trying to find the coding to set it to force the refresh of shoutout.php....using shoutin.php. Cause like before though...if it refreshed while you were typing...you would lose all of your typing...so that is the reason i did it this way. you can set it to one.....it only applies to the shoutout refresh...not the whole page....it just puts more load on users computer...10 seconds.....not that long.....and why do you care about reading what you typed so quickly?!?   :unsure:

If you can help with a line of code to force the refresh of a seperate .php....would be more then happy to figure it out faster!! :rolleyes:
Unknown User
2009-03-27 09:47:03
"David Rickerd, post: 55569":
and why do you care about reading what you typed so quickly?!?   :unsure:

some users click 2 times, cause they think it didn't work first time

"David Rickerd, post: 55569":
If you can help with a line of code to force the refresh of a seperate .php....would be more then happy to figure it out faster!!  :rolleyes:

maybe with javascript to insert message but I'm so noobs with JS :unsure:
Unknown User
2009-06-03 17:24:05
Hi all  :)

New shoutin.php :

CHANGELOG :

- Focus AFTER send a message.

- Refresh just after the shoutout.php

- button refresh

New shoutout.php :

CHANGELOG

- Color in username

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3776"]shoutin.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3777"]shoutout.php[/url]
shoutin.php
Download
shoutout.php
Download
Unknown User
2011-08-23 08:24:44
Thank you !
Unknown User
2011-12-27 17:19:57
this is all great very much appreciated from you all but i have one question please how do i get more rows into the shout i have made it bigger but can get the rows to follow suit

maybe have like 10- 15 lines there?
Unknown User
2011-12-29 16:07:16
thanks its all good but one thing lost class colours along the way except for vip which took on the colour of the admins

   $a = mysql_query("SELECT class FROM `users` WHERE id = $row[userid] ");
$a = @mysql_fetch_row($a);

switch ($a[0]) {

case 7: // Administrator

$user = "<font color=#FF00FF>$row[user]</font>";

break;

case 6: // Super Moderator

$user = "<font color=#FF8080>$row[user]</font>";

break;

case 5: // Moderator

$user = "<font color=#0000FF>$row[user]</font>";

break;

case 4: // Uploader

$user = "<font color=#800000>$row[user]</font>";

break;

case 3: // VIP

$user = "<font color=#9A03FE>$row[user]</font>";

break;

case 2: // Power User

$user = "<font color=#00CC00>$row[user]</font>";

break;

case 1: // User

$user = "<font color=#000000>$row[user]</font>";

break;

default: // User

$user = $row[user];

}

that was the code for shoutcolours which worked with shoutbox.php but not shout in or shoutout  any suggestions?
Unknown User
2011-12-30 22:31:08
in thory you really dont need any of that lol

if have the class_user addon

just replace

$a = mysql_query("SELECT class FROM `users` WHERE id = $row[userid] ");

$a = @mysql_fetch_row($a);

switch ($a[0]) {

case 7: // Administrator

$user = "<font color=#FF00FF>$row[user]</font>";

break;

case 6: // Super Moderator

$user = "<font color=#FF8080>$row[user]</font>";

break;

case 5: // Moderator

$user = "<font color=#0000FF>$row[user]</font>";

break;

case 4: // Uploader

$user = "<font color=#800000>$row[user]</font>";

break;

case 3: // VIP

$user = "<font color=#9A03FE>$row[user]</font>";

break;

case 2: // Power User

$user = "<font color=#00CC00>$row[user]</font>";

break;

case 1: // User

$user = "<font color=#000000>$row[user]</font>";

break;

default: // User

$user = $row[user];

}
with


$user = class_user($row['user']);


I dont have this shoutbox mod, i love my current shoutbox, yes mine sometimes does fresh when in the middle of typing but heck works hehe

I guess i could mess around on my beta site to make sure but in thory this should the above code should work.

Ps: yes it works fine:)  Link to the class_user mod for those who might want it [url="http://www.torrenttrader.org/index.php?showtopic=12259"]http://www.torrenttrader.org/index.php?showtopic=12259[/url]
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728