Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: TheListener on August 05, 2009, 10:00:58 PM

Title: Missing text
Post by: TheListener on August 05, 2009, 10:00:58 PM
When trying to make a few changes to my chat and shoutbox I go to look in the attached file yet am unable to find the required text.

Any ideas? The only folk who seem to frequent the mods topic are general users like myself.

yourforum/Themes/yourtheme/index.tempalte.php

Find

Code: [Select]

      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>

Replace with

Code: [Select]

      <div class="tborder" style="margin: 10px 0 10px 0;">
         <table width="100%" class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <tr>
            <td width="50%">
                  <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
         </div>
      </td>
         <td width="50%" align="right">
      <div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">
          <font size="1">AJAX Chat</font></a><font size="1"> &copy; <a href="https://blueimp.net">blueimp.net</a> |
          </font> <a href="http://4tmu.ir/forum/index.php"><font size="1">Integrated with SMF</font></a></div>
               </td>
            </tr>
         </table>
      <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
Title: Re: Missing text
Post by: Yigal on August 06, 2009, 01:34:28 AM
Do you want us to add the code inside your file? 
Title: Re: Missing text
Post by: TheListener on August 06, 2009, 12:37:21 PM
Please bud.

Doing so would mean I can get on with adding some more features to my chat room and shoutbox.

Title: Re: Missing text
Post by: Yigal on August 06, 2009, 01:24:27 PM
Add the index.template.php .. not index.template2.php .  Because I can't find that code in that file.
Title: Re: Missing text
Post by: TheListener on August 06, 2009, 01:41:19 PM
That is the correct file.

If renamed indextemplate.php it gives me an error.
Title: Re: Missing text
Post by: Yigal on August 06, 2009, 01:45:42 PM
Your theme should have an Index.Template.php and an Index.Template2.php .
You don't have both?
I can't find even one line in that file with the codes you provided.
Title: Re: Missing text
Post by: TheListener on August 06, 2009, 01:47:42 PM
I only have the one it seems.

Title: Re: Missing text
Post by: TheListener on August 06, 2009, 01:49:03 PM
I found an index template.php in my recycle bin if that is any help?
Title: Re: Missing text
Post by: Yigal on August 06, 2009, 01:55:02 PM
Sure...we could try that.  I don't know if it's updated with your forum though... Do you have a index.template.php in you theme directory?
Title: Re: Missing text
Post by: TheListener on August 06, 2009, 01:56:27 PM
No.

:(
Title: Re: Missing text
Post by: Yigal on August 06, 2009, 01:57:08 PM
Can I have a link to your forum please?
Title: Re: Missing text
Post by: TheListener on August 06, 2009, 01:57:47 PM
www.visionaryhosting.info (http://www.visionaryhosting.info)
Title: Re: Missing text
Post by: N3RVE on August 06, 2009, 02:00:00 PM
Quote from: Yigal on August 06, 2009, 01:45:42 PM
Your theme should have an Index.Template.php and an Index.Template2.php .

Why is that? Which theme has both? ::)

-[n3rve]
Title: Re: Missing text
Post by: Yigal on August 06, 2009, 02:03:16 PM
NVM, I was thinking about that back up file "index.template.php~"  *woops*

But I can't find any of those codes in that file.  Have you installed this modification?
Title: Re: Missing text
Post by: TheListener on August 06, 2009, 02:07:01 PM
the chat room and shoutbox both work perfectly.

Where the second piece of text should go I have no idea.

What it does is give the shoutbox its own smileys and font colours.
Title: Re: Missing text
Post by: Norv on August 06, 2009, 02:48:51 PM
If you cannot find an index.template.php in ./Themes/{your_theme}, then please attach here the one in ./Themes/default.

On another note, it seems that the code you displayed assumes that shoutbox is already installed.
Quote
... <img id="ajax_shoutbox_collapse"  ...
Can you please link the mod you try to install?
Title: Re: Missing text
Post by: Yigal on August 06, 2009, 03:26:37 PM
Quote from: H
Most likely it is because of the theme that is in use or because another mod already changed that code
Title: Re: Missing text
Post by: TheListener on August 06, 2009, 05:18:09 PM
http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608

This is what I am trying to do.

Title: Re: Missing text
Post by: Yigal on August 06, 2009, 05:21:34 PM
I understand..but you need an index.template.php .
Title: Re: Missing text
Post by: TheListener on August 06, 2009, 05:23:07 PM
the file I gave you??

Title: Re: Missing text
Post by: Yigal on August 06, 2009, 05:26:45 PM
You gave me index.template2.php .. and besides, the codes that are listed to find, are not in your index template.
Title: Re: Missing text
Post by: Norv on August 06, 2009, 05:35:40 PM
That was something "index.template2.php" which is not a file from SMF.
EDIT: Yigal beat me to it ;)

Please:
Quote from: Norv on August 06, 2009, 02:48:51 PM
If you cannot find an index.template.php in ./Themes/{your_theme}, then please attach here the one in ./Themes/default.
Title: Re: Missing text
Post by: TheListener on August 06, 2009, 06:10:50 PM
Attachment as requested.

Title: Re: Missing text
Post by: Norv on August 06, 2009, 07:24:30 PM
I'm afraid this file doesn't have the code to find either.

I've made a little check: if you installed this mod: AjaxChat Integration (http://custom.simplemachines.org/mods/index.php?mod=1319), then it doesn't install that code, so the post you linked, from the mod support thread, cannot be applied.
Perhaps it had that code in the past (I don't know), but it seems that the current version of the mod doesn't have anymore that code, so the enhancement you refer to cannot be applied anymore. Perhaps you can ask in mod's thread what is the new code for that enhancement. Alternatively, if another mod should be installed first, on which the enhancement depends, please ask what that mod is.
Title: Re: Missing text
Post by: TheListener on August 06, 2009, 07:37:57 PM
Ok will leave it for now.

Thanks for having a go.

Topic marked as solved for now.
Title: Re: Missing text
Post by: Yigal on August 06, 2009, 08:07:35 PM
Glad to see you got everything worked out :)