|
|
|
|
![]() ![]() |
Mar 17 2005, 08:24 PM
Post
#1
|
|
|
Advanced Member Group: Members Posts: 109 Joined: 14-March 05 Member No.: 3,046 |
hey! i'm the first to open a topic in this forum!
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! |
|
|
|
Mar 17 2005, 09:40 PM
Post
#2
|
|
|
Member - Active Contributor 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!
|
|
|
|
Mar 18 2005, 02:40 AM
Post
#3
|
|
|
Absolute Newbie 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. [tab] I actually use the blank table cell for a translation box from www.altavista.com.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>'; 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, vujsa |
|
|
|
Mar 18 2005, 04:55 AM
Post
#4
|
|
|
PsYcheDeLiC dR3aMeR 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.
|
|
|
|
Mar 18 2005, 09:21 AM
Post
#5
|
|
|
Advanced Member 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
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 THX for the quick reply man! u're great! |
|
|
|
Mar 18 2005, 11:45 PM
Post
#6
|
|
|
Absolute Newbie 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, vujsa |
|
|
|
Mar 19 2005, 06:19 PM
Post
#7
|
|
|
Member - Active Contributor 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!! |
|
|
|
Mar 19 2005, 06:22 PM
Post
#8
|
|
|
Teh Teckeh Trekkeh 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.
|
|
|
|
Mar 21 2005, 08:45 AM
Post
#9
|
|
|
Advanced Member Group: Members Posts: 109 Joined: 14-March 05 Member No.: 3,046 |
|
|
|
|
Mar 21 2005, 08:52 AM
Post
#10
|
|
|
Absolute Newbie 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 |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 30th August 2008 - 03:01 PM |