News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

nneonneo's Shoutbox

Started by nneonneo, December 26, 2006, 06:58:11 PM

Previous topic - Next topic

lhz

How to set a message limit from a user ? I'm using 1.21 Advanced / SMF1.1.6.

It would be nice if someone make a FAQ, with questions like that on the main post. Search it on 202 pages is hard, a Link to the post with the solution help a lot of people with the same problem.

Anyway, it's a great Mod, thanks nneonneo.

nneonneo

@Lionheartzu: See http://www.simplemachines.org/community/index.php?topic=137508.msg1683120#msg1683120. The code goes at the top of writeLine().

@jamie-mate-2k8: I am not sure what you mean by "middle"...you should just be able to move/put the shoutbox code block where you want it.

@itisme1760: You need to disable (set to false) $gzipCompression (yshout/settings.php). This is because some code (on your host or yshout.php) is adding advertising scripts, which interfere with compression.
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

itisme1760


lhz

Quote from: nneonneo on October 06, 2008, 09:30:12 PM
@Lionheartzu: See http://www.simplemachines.org/community/index.php?topic=137508.msg1683120#msg1683120. The code goes at the top of writeLine().

Done, but it didnt work (Users still send 4 or more messages and dont get any Warning).
There is another way?

Thanks.

MothMan

@ nneonneo:

Quote@MothMan: I am not sure about the Global Headers and Footers mod. However, I do know that moving the shoutbox(); call in index.template.php to right after
Code: [Select]
function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;
then it should show up where you want it (after the Info Center).

Hmmm... I tried copying that shoutbox block of code and inserting it in various places below that line you indicated... but nothing change in the resulting layout.  Shoutbox was still up top.

Ideally I'd like the box to appear at the bottom, be collapsable, but still be in a spot where it is visible from any page in the forum (ie.  main page, board view, thread view).

katib

Thank you for this mod
I am using SMF 2 beta4
so I installed the mos manually
but didnot get it to work
it says:
Notice: Undefined index: forumProfile in F:\AppServ\www\smf116-2\Sources\Subs.php on line 3786
if I hit the shout button, the page itsself refresh, but nothing is shouted  :(
منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

nneonneo

@Lionheartzu, Nequil: That would be because I totally posted the wrong code...
global $ip;
$matches=Array();
if(!isMod() && preg_match_all("/$ip/", file_get_contents($chatPath),$matches)>3)
die("Sorry, you've already posted 3 messages...");

is the correct code (now actually tested! woot!)

@MothMan: You need to *move* it, not copy it.

@katib: First problem doesn't look related to the shoutbox (since it is in Subs.php, a file I have not altered), and the second problem sounds like it is related to missing JS files or something.
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

katib

#4027
thank you for propmt reply

Quote from: nneonneo on October 07, 2008, 07:28:44 PM
@katib: First problem doesn't look related to the shoutbox (since it is in Subs.php, a file I have not altered), and the second problem sounds like it is related to missing JS files or something.
well
but if I undo the mod changes, the error message disappears

by the way
if I set
$gzipCompression=false;
I get :


please, notice that the "admin" button is disabled


but if:
$gzipCompression=true;
I get only the line with error message:




last quesyion: where I can find the shoutbox seetings in the adminCP ?
I didnot found:
QuotePermissions for the shoutbox: in the admin panel, under Membergroups->Permissions.
as it stated on mod page
منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

nneonneo

What's on line 3786 of Subs.php? My unmodified Subs.php doesn't even go up that high, so I suspect interference from another mod.

Also, the permissions are there for v1.21, but you had to have done the manual edits to the ManagePermissions.php file too.
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

katib

#4029
Quote from: nneonneo on October 07, 2008, 07:57:46 PM
Also, the permissions are there for v1.21, but you had to have done the manual edits to the ManagePermissions.php file too.
Yes, I manually did the changes ManagePermissions.php file

Quote from: nneonneo on October 07, 2008, 07:57:46 PM
What's on line 3786 of Subs.php? My unmodified Subs.php doesn't even go up that high, so I suspect interference from another mod.

the line 3786 is in red:
Quote

                  'show' => allowedTo(array('profile_identity_any', 'profile_identity_own', 'manage_membergroups')),
               ),
               'profile' => array(
                  'title' => $txt['forumProfile'],
                  'href' => $scripturl . '?action=profile;sa=forumProfile',
                  'show' => allowedTo(array('profile_extra_any', 'profile_extra_own')),

when I swith the forum language from arabic-utf8 to english, the error message goeas away, all look normal,  but still cant shout
منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

nneonneo

OK, the language thing is a bug. See http://www.simplemachines.org/community/index.php?topic=266731.0.

As for not being able to shout, I have no idea, unless the shoutbox JS is missing. Maybe I can take a look at the forum (please give me an account in English though since I cannot read Arabic at all :( )
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

katib

#4031
Quote from: nneonneo on October 07, 2008, 08:16:54 PM
OK, the language thing is a bug. See http://www.simplemachines.org/community/index.php?topic=266731.0.

MAny thanks nneonneo !!!
now the error message about subs.php file has gone
But there is no shout thought  :(

Quote from: nneonneo on October 07, 2008, 08:16:54 PM
As for not being able to shout, I have no idea, unless the shoutbox JS is missing.
I redownloaded the package, recopy the files over, but no success
By the way blueimp Ajax shoubox also didnot shout while on arabic-utf8
Now it can shout , after fixing the index.arabic.php bug
But nneonneo shoutbox still cant shout !!!

Quote from: nneonneo on October 07, 2008, 08:16:54 PM
Maybe I can take a look at the forum (please give me an account in English though since I cannot read Arabic at all :( )
the forum is only on local server, since I am still doing tests locally before converting my online phpbb2 forum to SMF

again, there is no membersgroup ---> permission   settings:

منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

nneonneo

Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

MothMan

Quote from: nneonneo on October 07, 2008, 07:28:44 PM


@MothMan: You need to *move* it, not copy it.


Sorry, that's what I meant I tried.

THis is a copy of the section in index.template.php after I've moved the shoutbox code.

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

// Show the shoutbox!
shoutbox();

echo '
</div>';

// SHOUTBOX HERE
global $txt,$context,$boarddir;
if(allowedTo('yshout_view'))
{
echo '<div id="yshout">';
include_once($boarddir.'/yshout/yshout.php');
echo '</div>';
}
elseif($context['user']['is_guest'])
echo $txt['yshout_no_guests'];
// SHOUTBOX END

echo '
</div>';

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
.... etc, etc, etc


The shoutbox still appears in the header area

indra00

i want to put The Shout Box under the total time logged on i.e under the profile pic above the page

I use smf 2.0 beta4 and my theme is Blackrain

it installed successfully

i hv put it under
Quote// If we're in a board, or a topic for that matter, the index will be the board's index.
   if (!empty($context['current_board']))
      echo '
   <link rel="index" href="', $scripturl, '?board=', $context['current_board'], '.0" />';

so its presently at the top of page

plzz help soon


nneonneo

@MothMan: post the whole file (as an attachment)
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

MothMan

Oh snap... you know what?  I was editting the wrong file. >_<

On editting the correct one, just as you said, it moved the shoutbox.  I still didn't quite like the result, as it kind of messed up the look of the forum ... it removed the separation between the forum header, discussion boards, footer, etc. and blocked it all into one big chunk.

But, I now know what bit of code to play with, Thanks. :)

cr34t1v3

#4037
Hi nneonneo,

I tried to apply this shout box to my forum, but nothing seem to happen.
I use SMF 1.1.5 + TinyPortal v0.9.8
I installed SB_121.
I paste the code in page 1, in center phpbox, and also edited the /theme/TPstyle11_tp/index.template.php manually.


But it shows nothing. Am i missing something?
Or should I install the AdV_SB121?
Index.template.php attached

Thx before
Notebook & Computer Online Store in Indonesia:
http://www.anugrahpratama.com
Computer & Notebook Forum in Indonesia:
http://forum.anugrahpratama.com
Computer & Laptop Review & News Blog:
http://blog.anugrahpratama.com

cr34t1v3

i changed the phpbox to scriptbox, and it shows only between <div> </div> only. and the other code also displayed as is, so it looks terible.
whats wrong?
Notebook & Computer Online Store in Indonesia:
http://www.anugrahpratama.com
Computer & Notebook Forum in Indonesia:
http://forum.anugrahpratama.com
Computer & Laptop Review & News Blog:
http://blog.anugrahpratama.com

synicfan

Hi,
Im having trouble getting my TinyPortal center block to show my shoutbox.

This is all that shows:


here is the permission for the block:


and here is the permissions in the admin section:


I already copied the code as instructed in the initial directions:
QuoteInstalling to TinyPortal: Follow the instructions for the "<head> code" block under Installation to Other Themes, then add either of the "shoutbox code" blocks to a new TinyPortal center phpbox.

CAN SOMEONE HELP ME PLEASE?
THANK YOU!

Advertisement: