News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF Shoutbox

Started by Deep, March 15, 2006, 08:09:52 AM

Previous topic - Next topic

kok3n

Quote from: DarkAngel612 on November 17, 2007, 06:56:51 PM
@kok3n:

try putting that code in the index.template.php file and place it just above:

// Show a random news item?


I think this will put it just above the news fader.

are you talking about the index.template.php of the current theme that i'm using? coz i can't find the code in there..

DarkAngel612

Quote from: kok3n on November 17, 2007, 07:42:38 PM


are you talking about the index.template.php of the current theme that i'm using? coz i can't find the code in there..

I am talking about the theme you are using if not using the default smf theme.

You will not find the coding in any other theme isntalled...the package installers only edit the smf default theme.....you have to manually edit any other theme.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

kok3n

#1322
hi DarkAngel612..

im using  Fg:.:Zm for my theme and and attached is a copy of my index.template.php

please advise on where i should add the code..

thanks in advance!! ;)

DarkAngel612

find:

// Show a random news item?

then place the code directly above that line
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

kok3n

Quote from: DarkAngel612 on November 18, 2007, 12:47:34 AM
find:

// Show a random news item?

then place the code directly above that line

strangely, that code is not in there..

DarkAngel612

shoot...I know some themes did not have the boardindex file but I did not know that line was not in the index file...sorry.

let's try here:

FIND:
echo '
      </div>';insert the code here
      if (!empty($settings['enable_news']))


hopefully that will show it above the news fader.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

dvlasic

Nick AutoComplete MOD for Shoutbox

Let's say that there is user Davorin on your forum.

If you write in Shoutbox

dav: hey there!

this mod will find "Davorin" in user database and change your text to this:

[b]@Davorin:[/b] hey there!

MOD:

In sboxDB.php find

$content = $_REQUEST['sboxText'];

and replace with

$content = AutoNickInsertMOD($_REQUEST['sboxText']);


Then find

?>

and before add this:

function AutoNickInsertMOD($poruka)
{
@include("../Settings.php");

$prvi_razmak=strpos($poruka," ");
$prva_dvotocka=strpos($poruka,":");
$znak_ispred_razmaka=substr($poruka, $prvi_razmak-1,1);

if($znak_ispred_razmaka==":" && ($prva_dvotocka < $prvi_razmak))
{
// uzimam prednji dio
$sufix=substr($poruka,0,$prvi_razmak);

// trazmi u bazi nick slican tome
@MYSQL_CONNECT($db_server, $db_user, $db_passwd);
@mysql_select_db($db_name);
$sql_upit =  ("SELECT * FROM smf_members WHERE memberName LIKE '" . substr($sufix,0,strlen($sufix)-1) . "%'");

$rezultat = MYSQL_QUERY($sql_upit);
$rec_broj = mysql_numrows($rezultat);

if($rec_broj>0)
{
$slican_nick=mysql_result($rezultat, 0,"memberName");

// zamijenjujem
return "[b]@" . $slican_nick . "[/b]:" . substr($poruka,$prvi_razmak);
}
else
{
return $poruka;
}
}
else
{
return $poruka;
}
}


(sorry for Croatian comments and var names)

digital_freeway

If I am using Account other than administrator I get the attached error message. Anybody knows how I can fix this?

LaVioRtH_cL

How can I restrict my shoutbox to members of under 50 messages?

 
 

mansoor

i am trying to make the shout box ONLY for MODS/Admins...
How do i do this?

I am using sbox_v1.16b by Mbirth

Can some1 please advise.

Thanks in advance

trekkie2444

#1330
My font is way too small on my shoutbox, how do I make the shout text larger? I'm using the Enterprise TP theme. Also, how do you change the time it takes to autorefresh?

sueco

Hey, where will i type this code,   // display shoutbox
  if (function_exists('sbox')) sbox();
In the themes files? and where there? I just installed sms websystem.

sweetgirlee

#1332
i've a problem when i want to instal the shoutbox.

When i'm running sbox_setup
i've this error

Incorrect table name ''
Bestand: /home/vhosts/kletsplezier.nl/httpdocs/forum2/sbox_setup.php
Regel: 83

beegator

I am running black22 theme. I can put the code into the BoardIndex.php but the text color is dark blue on a dark grey background. I would love to change the font color to white. Where do you change the font color?  Sorry for the stupid question.

DarkAngel612

In admin section --- features and options, this is where your settings are found. At the bottom of the list there of things you can change is a section to adjust things for dark background themes. Make sure you have your themes name in there and then set the colors accordingly.


Quote from: beegator on November 22, 2007, 06:23:37 PM
I am running black22 theme. I can put the code into the BoardIndex.php but the text color is dark blue on a dark grey background. I would love to change the font color to white. Where do you change the font color?  Sorry for the stupid question.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

beegator

Quote from: DarkAngel612 on November 23, 2007, 12:17:03 AM
In admin section --- features and options, this is where your settings are found. At the bottom of the list there of things you can change is a section to adjust things for dark background themes. Make sure you have your themes name in there and then set the colors accordingly.


Quote from: beegator on November 22, 2007, 06:23:37 PM
I am running black22 theme. I can put the code into the BoardIndex.php but the text color is dark blue on a dark grey background. I would love to change the font color to white. Where do you change the font color?  Sorry for the stupid question.

Thank you I saw that, I just don't see where I can change the text color within the shout box. Thanks anyway.

DarkAngel612

#1336
in that same place...where it says font color at the bottom...you type in the hex color code to change the color of the font, we have ours set at #ffcc33 which is a goldish color.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

beegator

Thanks DarkAngel, that option does not appear anywhere on my screen under any options or tab.  Then again i'm using internet explorer. 

DarkAngel612

first....try the default theme and see if the option pictured is shown there sometimes things are not in the added themes...you might also check the folder containing the default theme on your server to make sure that any and all files that have to do with the sbox are also in the dark theme in the same locations as the default theme.

confused yet, I do confusion really well....sory.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

beegator

That's ok, I do village idiot really well.  I loaded the default theme and that option to change the font is not there. I have the current version SMF via web install but maybe not all the templates are current. I'll try and figure this out tomorrow. Migrane headache is setting in.  :(

Advertisement: