Welcome Guest ( Log In | Register )



5 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> SMF - Shout Box Mod Installation, Help Requested
chaosx2x
post Mar 17 2005, 08:24 PM
Post #1


Advanced Member
Group Icon

Group: Members
Posts: 109
Joined: 14-March 05
Member No.: 3,046



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!
Go to the top of the page
 
+Quote Post
rkage
post Mar 17 2005, 09:40 PM
Post #2


Member - Active Contributor
Group Icon

Group: Members
Posts: 79
Joined: 5-March 05
Member No.: 2,909



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!

Go to the top of the page
 
+Quote Post
vujsa
post Mar 18 2005, 02:40 AM
Post #3


Absolute Newbie
Group Icon

Group: Admin
Posts: 887
Joined: 20-February 05
From: Indianapolis, Indiana, USA (Midwest)
Member No.: 2,714



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

Open:
    [/tab]Themes > default > index.template.php

Add in the template where you want the shoutbox:
[tab]smfshout()
=OR=
    [/tab]', 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>';
[tab]    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
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Mar 18 2005, 04:55 AM
Post #4


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411



Great solution vujsa.. it's good to see the new sub-forums already getting active & nice. Keep up the good works guys.
Go to the top of the page
 
+Quote Post
chaosx2x
post Mar 18 2005, 09:21 AM
Post #5


Advanced Member
Group Icon

Group: Members
Posts: 109
Joined: 14-March 05
Member No.: 3,046



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!
Go to the top of the page
 
+Quote Post
vujsa
post Mar 18 2005, 11:45 PM
Post #6


Absolute Newbie
Group Icon

Group: Admin
Posts: 887
Joined: 20-February 05
From: Indianapolis, Indiana, USA (Midwest)
Member No.: 2,714



You're missing a closing quote.

CODE
==============================================================================
    [/tab][tab]    </div>
    [/tab][tab]</div>';

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

echo '
    <tr>
    [/tab][tab]<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
Go to the top of the page
 
+Quote Post
rkage
post Mar 19 2005, 06:19 PM
Post #7


Member - Active Contributor
Group Icon

Group: Members
Posts: 79
Joined: 5-March 05
Member No.: 2,909



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!!
Go to the top of the page
 
+Quote Post
Trekkie101
post Mar 19 2005, 06:22 PM
Post #8


Teh Teckeh Trekkeh
Group Icon

Group: Members
Posts: 682
Joined: 8-September 04
From: Scotland, UK
Member No.: 389



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.
Go to the top of the page
 
+Quote Post
chaosx2x
post Mar 21 2005, 08:45 AM
Post #9


Advanced Member
Group Icon

Group: Members
Posts: 109
Joined: 14-March 05
Member No.: 3,046



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
Go to the top of the page
 
+Quote Post
vujsa
post Mar 21 2005, 08:52 AM
Post #10


Absolute Newbie
Group Icon

Group: Admin
Posts: 887
Joined: 20-February 05
From: Indianapolis, Indiana, USA (Midwest)
Member No.: 2,714



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
Go to the top of the page
 
+Quote Post

5 Pages V   1 2 3 > » 
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Installing Photoshop 7 On Linux (fedora)(10)
  2. Create Your Own Shout Box(13)
  3. Freebsd Burning & Installation Problems(4)
  4. Ssh Access Requested(1)
  5. Urgent Help Required: 123Flash Chat Installation(5)
  6. Installation Gone Bad...(14)
  7. Suse Installation Question(17)
  8. An Installation Problem - Can Someone Help?(20)
  9. Phpbb2 And Imperialbb Which Is Better ?(1)
  10. Problem With Fedora Core 5 Installation(14)
  11. Automated File Structure Creation Script(3)
  12. Using Ndiswrapper In Fedora Core 6(4)
  13. Drupal Installation(1)
  14. Need Help With Set Up Shout Box On My Forum(4)
  15. Phpbb - Installation Tutorial ( For Newbies Based On Astahost Cpane)l(4)
  1. True Type Fonts In Linux(4)
  2. Ubuntu Installation Help !(11)
  3. Customize Your Installation Of Windows(3)
  4. Basic Info & Download/ Installation Tutorial For Asp.net 2.0(1)
  5. And The Award 4 Worst Installer Goes To Dreamweaver Cs3 For 3+ Hours Marathon Installation(7)
  6. Introduction To Openbsd With A Brief Installation Guide(7)
  7. Q: How Can I Delete Installation Entries?(8)
  8. With Wubi The Hard Drive Does Not Have To Be Repartitioned Before The Ubuntu Installation(2)
  9. Joost.com And Bitme.org Invites Kindly Requested(5)
  10. Hipergate Installation Services Required(1)
  11. Free Online Media File Conversion - No Software Installation Required(12)
  12. Errors When Installing/booting(13)
  13. Php And Mysql Extension Installation(0)


 



- Lo-Fi Version Time is now: 30th August 2008 - 03:01 PM