News:

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

Main Menu

Missing text

Started by TheListener, August 05, 2009, 10:00:58 PM

Previous topic - Next topic

TheListener

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;"', '>

Yigal

Do you want us to add the code inside your file? 
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

TheListener

Please bud.

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


Yigal

Add the index.template.php .. not index.template2.php .  Because I can't find that code in that file.
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

TheListener

That is the correct file.

If renamed indextemplate.php it gives me an error.

Yigal

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.
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

TheListener

I only have the one it seems.


TheListener

I found an index template.php in my recycle bin if that is any help?

Yigal

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?
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

TheListener


Yigal

Can I have a link to your forum please?
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods


N3RVE

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]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

Yigal

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?
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

TheListener

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.

Norv

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?
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Yigal

Quote from: H
Most likely it is because of the theme that is in use or because another mod already changed that code
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods


Yigal

I understand..but you need an index.template.php .
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

TheListener


Advertisement: