Nov 8, 2009
Pages: 1, 2, 3, 4, 5, 6

SMF - Shout Box Mod Installation - Help Requested

free web hosting

Read Latest Entries..: (Post #51) by cybergoblin65 on Dec 12 2008, 05:05 PM.
Hello all, this is my first post on here and hope someone can help me.I am having the same problem as chaosx2x , Template parse error keeps popping up.Here is the code to index.templateHelp please topics, respectively. if (!empty($context['current_topic'])) echo ' <link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" /> <link rel="next" href="', �...
read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion & Free Web Hosting > Computers & Tech > Software > Bulletin Board Systems > Simple Machines Forum

SMF - Shout Box Mod Installation - Help Requested

chaosx2x
hey! i'm the first to open a topic in this forum! rolleyes.gif

I've a problem, i've donwloaded and installed with success SMF board, then i've downloaded Shout Box created by Grudge

Shout Box MOD

installed it with success...but i can't find the shoutbox....in admin control panel i can set up many options of shout box but i can see it into my forum....on SMF forum them say i have to add some codelines in my index.template.php but i dunno how to do that....can anyone help me?

THX in advance!

Comment/Reply (w/o sign-up)

rkage
I have the exact same problem, I set the options for the shoutbox and it says it is there, I just can't get it to appear!

Comment/Reply (w/o sign-up)

vujsa
Hi guys, you'll need to edit your template to include the shoutbox.

Open:
    Themes > default > index.template.php

Add in the template where you want the shoutbox:
    smfshout()
=OR=
    ', smfshout() ,'

Use the first command if you are not inside an echo command.
And use thae second command if you are inside a echo command.

Here is what I did:
Find:
CODE
    // The "key stats" box.
    echo '
       <div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
       <div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif);">
     <img src="', $settings['images_url'], '/', $context['user']['language'], '/keystats.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
     <div style="height: 35px; padding: 5px;" class="smalltext">
         <b>', $modSettings['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $modSettings['totalTopics'], '</b> ', $txt[64], ' ', $txt[525], ' <b>', $modSettings['memberCount'], '</b> ', $txt[19], '<br />
         ', $txt[656], ': <b> <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '">', $modSettings['latestRealName'], '</a></b>
     </div>
       </div>';

    echo '
   </td>
     </tr>';


Add After:
CODE
    // The "shoutbox" box.

    echo '
     <tr>
   <td align="left">

<!-- // Shout Box Script Start-->

       <div class="headertitles" style="margin-right: 5px; position: relative;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
       <div class="headerbodies" style="position: relative; margin-right: 5px; background-image: url(', $settings['images_url'], '/box_bg.gif);">
     <img src="', $settings['images_url'], '/', $context['user']['language'], '/shoutbox.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
     <div style="overflow: auto; padding: 5px;" class="smalltext">',smfshout(),'</div>
       </div>

<!-- // Shout Box Script End-->

   </td>

   <td align="center">
       <!-- // blank table cell here -->
   </td>
     </tr>';
        I actually use the blank table cell for a translation box from www.altavista.com.

This will give you a box similar to the News Flash box. You'll need to create a shoutbox.gif and place it in your images directory.

Additionally, I edited the shout.template.php to customize the look of the shout box.

Happy Modding, cool.gif
vujsa

 

 

 


Comment/Reply (w/o sign-up)

miCRoSCoPiC^eaRthLinG
Great solution vujsa.. it's good to see the new sub-forums already getting active & nice. Keep up the good works guys.

Comment/Reply (w/o sign-up)

chaosx2x
i've the changes to moy index.template.php but i've received an error sad.gif

QUOTE
Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.


This is the code as i changed it

CODE
    
// The "key stats" box.
    echo '
       <div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
       <div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif);">
     <img src="', $settings['images_url'], '/', $context['user']['language'], '/keystats.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
     <div style="height: 35px; padding: 5px;" class="smalltext">
         <b>', $modSettings['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $modSettings['totalTopics'], '</b> ', $txt[64], ' ', $txt[525], ' <b>', $modSettings['memberCount'], '</b> ', $txt[19], '<br />
         ', $txt[656], ': <b> <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '">', $modSettings['latestRealName'], '</a></b>
     </div>
       </div>';

    echo '
   </td>
     </tr>
// The "shoutbox" box.

echo '
 <tr>
  <td align="left">

<!-- // Shout Box Script Start-->

   <div class="headertitles" style="margin-right: 5px; position: relative;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
   <div class="headerbodies" style="position: relative; margin-right: 5px; background-image: url(', $settings['images_url'], '/box_bg.gif);">
    <img src="', $settings['images_url'], '/', $context['user']['language'], '/shoutbox.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
    <div style="overflow: auto; padding: 5px;" class="smalltext">',smfshout(),'</div>
   </div>

<!-- // Shout Box Script End-->

  </td>

       </table>

 <a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTemp" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 2ex;" />';

 // Show the menu here, according to the menu sub template.
 template_menu();

    echo '


i'm very newbie, so maybe it's my fault tongue.gif. pls check my modified code tongue.gif

THX for the quick reply man! u're great!

Comment/Reply (w/o sign-up)

vujsa
You're missing a closing quote.

CODE
==============================================================================
            </div>
        </div>';

echo '
        </td>
    </tr>';
// The "shoutbox" box.

echo '
    <tr>
        <td align="left">

<!-- // Shout Box Script Start-->


==============================================================================

This should do it for you.

Good luck to you.
Once you get it to work, you'll be able to more easily see how you can customized the template to suit your needs.

Happy Shouting, cool.gif
vujsa

Comment/Reply (w/o sign-up)

rkage
Thanks vujsa! I just remembered that I was using a different theme.

So I carried out those commands and got a fatal error, so then I couldn't open any of the forum pages so i went and reinstalled the Subs file and now my shop is giving me problems...so fustrating.

On a related note, the Shop MOD is really interesting and it is really simple to deploy new items that can annoy your members but also let them have so much fun. I created my own STEAL item which randomly guessed whether the steal was successful and if it wasn't the person trying to steal money lost theirs. And I was creating a button on the profile that you could click to steal their money, but now I can't...I just hope I dont have to reinstall the whole thing again!!

Comment/Reply (w/o sign-up)

Trekkie101
Your mods will probably be screwed if you upload subs.php again, its one of the core files along with load.php. If you can go into your admin panel and remove the mod using the uninstaller and then install again, yeah the shop mod is a weird shop alright.

Comment/Reply (w/o sign-up)

chaosx2x
QUOTE (vujsa @ Mar 18 2005, 11:45 PM)
You're missing a closing quote.


Happy Shouting, cool.gif
vujsa
*


THX so much! It now works fine! You're great! tongue.gif

i was breaking b*lls to Trekkie101 for helping me with this mod....so thanks to him too. smile.gif

Comment/Reply (w/o sign-up)

vujsa
We're happy to help. Glad to hear that everything is working for you now.

Now you can try to customize the script further for you specific needs.
Alway backup the file you're going to work of first.

Let us know if you run into further problems.
[hr=][/hr]
vujsa

Comment/Reply (w/o sign-up)

Latest Entries

cybergoblin65
ohmy.gif Hello all, this is my first post on here and hope someone can help me.
I am having the same problem as chaosx2x , Template parse error keeps popping up.
Here is the code to index.template
Help please mellow.gif

topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'],

'.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a

topic for that matter, the index will be the board's index.
// YSHOUT HERE - <head> code
global $boardurl,$shoutFile;
$shoutFile='home';
$scripturlparsed = parse_url($scripturl);
$scriptpath=isset($scripturlparsed['path'])?$scripturlparsed['path']:'/';
$args='';
foreach($_GET as $key => $value) // passthrough $_GET
$args.='&'.urlencode($key).'='.urlencode($value);
echo '
&lt;script src="',$boardurl,'/yshout/js/moo.ajax.js" type="text/javascript"></script>
&lt;script src="',$boardurl,'/yshout/settings.js" type="text/javascript"></script>
&lt;script type="text/javascript"><!-- // --><![CDATA[
window.onload=function(){loadChat();};
var shoutFile="',$shoutFile,'";
var yshout_php="',$scriptpath,'?yshout',$args,'";
// ]]></script>
&lt;script src="',$boardurl,'/yshout/js/yshout.js?July062008" type="text/javascript"></script>
<style type="text/css">
#yshout {
font-size: 10px;
overflow: hidden;
}
#yshout #yshout-toollinks { /* tool links (History, Commands, etc.) */
}
#yshout #shouts { /* main shouts area */
}
#yshout .shout { /* one shout */
margin: 0 0 0; /* Top Bottom Linespacing */
line-height: 1;
}
#yshout .shout-timestamp {
font-style: normal;
font-weight: normal;
}
#yshout .shout-adminlinks { /* del and ban buttons */
font-size: 6pt;
color: #141414;
}
#yshout #shout-form {
margin: 0;
padding: 0;
}
#yshout #shout-form fieldset {
border: none;
}
#yshout #forum-name {
color: #666666;
width: 70px;
margin-right: 5px;
}
#yshout #shout-text {
width: 310px;
margin-right: 5px;
}
#yshout #shout-button {
width: 55px;
}
#yshout .shout-invalid { /* invalid shout (shout textbox) */
background: #FFFDD1;
}
</style>';
// YSHOUT END - <head> code
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

//

We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE


<input type="submit" value="', $txt[34], '" /><br />


<span class="middletext">', $txt['smf52'], '</span>
<input

type="hidden" name="hash_passwrd" value="" />
// YSHOUT HERE - shoutbox code
global $txt,$context,$boarddir;
if(allowedTo('yshout_view'))
{
echo '<br /><b>',$txt['yshout_shoutbox'],'</b><br /><br />';
echo '<div id="yshout">';
include_once($boarddir.'/yshout/yshout.php');
echo '</div>';
}
elseif($context['user']['is_guest'])
echo $txt['yshout_no_guests'];
// YSHOUT END - shoutbox code
</form>';
}

echo '
</td>
</tr>


</table>
</td>
</tr>
</table>';

echo '
<table id="upshrinkHeader2"', empty


Comment/Reply (w/o sign-up)

iGuest
Hii i need help
SMF - Shout Box Mod Installation

Hi I want to add a shoutbox at the bottom of my forum, but when I add it show up on the top of the forum, can somone please help me and tell me how I add that in the bottom.
I have SMF Umderground theme for my forum.
Any suggestion will be appreciated.

With regards nabel

-reply by nabel

Comment/Reply (w/o sign-up)

iGuest
Making the shoutbox appear:
This modification will NOT modify any of your themes for you during install - this is to allow you to put the shoutbox where you want it to appear - not where I say! To actually make the shoutbox appear you need to modify the themes to display it. This is a VERY simple process I will take you through below.

Firstly, confirm the installation was successful. You can do this by going to "Feature Settings and Options", if you see some shoutbox options at the bottom of this page the install worked - well done!

Now, you need to edit a template to display the shoutbox. Most people will want the shoutbox to appear on every page - in this case you want to edit the file called index.Template.Php found in each theme directory - the default theme is Themes/default/index.Template.Php

Work out where you want the shoutbox to appear, and add the following code to the template:
Code: [Select]
If (function_exists('smfshout'))
smfshout();

You may find that you want to put the code in the middle of some existing HTML, and if you are not familiar to PHP may find adding this is causing your forum to error. If this is the case replace the code above with:
Code: [Select]
';
If (function_exists('smfshout'))
smfshout();
Echo '

And this should fix the error!

Editing the shoutbox template itself:
If you want to edit how the shoutbox itself looks (for example making the message box bigger, putting it in two columns), you need to look at the shoutbox template. The shoutbox template is in the file called shout.Template.Php, and is located in your Themes/default directory. There are three functions in this file, one does the archive, one does the main shoutbox, and one does the form people shout into. Just edit the HTML in this file to change the appearance of the shoutbox on your site.

Please note, if you do change this file I recommend you keep a copy of the changes you made - as if you upgrade your forum in the future and reinstall the mod - your changes will of course be overwritten!

Putting the shoutbox elsewhere on your site:
If you want ideas for where to put the shoutbox on your page, please read this thread for examples. Note also you can use SSI to add the shoutbox elsewhere on your site - refer to: www.Yoursite.Com/smf/ssi_examples.Php for examples of this!


Comment/Reply (w/o sign-up)

iGuest
Script Installation Help
SMF - Shout Box Mod Installation

Replying to vujsa

I am trying to install a script for the first time and have to add mysql database fields into the some php files.

I got these instructions and followed them.

1) Create a folder named "responder" on your web server and copy ALL files in that folder. Chmod 777 the folder, temp - DONE

2) Create a new database and run the SQL file, autoresponder.Sql (If your webhost has PHPMyAdmin, you can run the sql file
There) - DONE.

3) Modify the MYSQL database information using the new database you have just created in the file include/globals.Php - DONE

4) Modify the mail account username/password (main email address for domain*) in the file robot/imap_globals.Php.
Note: For $MailHost, the variable is usually yoursite.Com. If you are unsure of your mail server, please contact your host
Administrator - DONE

5) Open the 2 files: signin.Tpl and signin_aff.Tpl found in the folder templates/signin and edit the paypal email address - DONE

6) Add to cron job php responder/robot/check_deliver_broadcast_messages.Php once at a minute - DONE CHANGED '0' TO '1'

7) Add to cron job php responder/robot/check_deliver_followup_messages.Php once at one day- DONE CHANGED '0' TO '1'

8) Add to cron job php responder/robot/check_instant_messages.Php once at a minute - DONE CHANGED '0' TO '1'

Can you help to just check where I am making a mistake as it does not connect to the mysql datbase as it gives an error. Please let me know by email at: ezeemart (at) gmail.Com

Comment/Reply (w/o sign-up)

iGuest
I have no idea how to change it... Please any1 want to help me. I tried placing these codes but I'm having a extra '[' on line 118, I'm confused. Please any1 help.

lukejenx92 at hotmail.Co.Uk

-reply by Luke

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2, 3, 4, 5, 6
Similar Topics

Keywords : Smf Mod Installation Requested


    Looking for smf, shout, box, mod, installation, requested

See Also,

*SIMILAR VIDEOS*
Searching Video's for smf, shout, box, mod, installation, requested
advertisement



SMF - Shout Box Mod Installation - Help Requested

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com