Advertisement:

Author Topic: Missing text  (Read 5053 times)

TheListener

  • Guest
Missing text
« 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;"', '>
« Last Edit: August 06, 2009, 07:37:06 PM by TheListener »

Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: Missing text
« Reply #1 on: August 06, 2009, 01:34:28 AM »
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

  • Guest
Re: Missing text
« Reply #2 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.


Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: Missing text
« Reply #3 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.
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

  • Guest
Re: Missing text
« Reply #4 on: August 06, 2009, 01:41:19 PM »
That is the correct file.

If renamed indextemplate.php it gives me an error.

Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: Missing text
« Reply #5 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.
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

  • Guest
Re: Missing text
« Reply #6 on: August 06, 2009, 01:47:42 PM »
I only have the one it seems.


TheListener

  • Guest
Re: Missing text
« Reply #7 on: August 06, 2009, 01:49:03 PM »
I found an index template.php in my recycle bin if that is any help?

Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: Missing text
« Reply #8 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?
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

  • Guest
Re: Missing text
« Reply #9 on: August 06, 2009, 01:56:27 PM »
No.

 :(

Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: Missing text
« Reply #10 on: August 06, 2009, 01:57:08 PM »
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

TheListener

  • Guest
Re: Missing text
« Reply #11 on: August 06, 2009, 01:57:47 PM »

Offline N3RVE

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,907
  • Gender: Male
    • N3RVE.COM
Re: Missing text
« Reply #12 on: August 06, 2009, 02:00:00 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

Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: Missing text
« Reply #13 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?
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

  • Guest
Re: Missing text
« Reply #14 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.

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: Missing text
« Reply #15 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?
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

Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: Missing text
« Reply #16 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
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

  • Guest
Re: Missing text
« Reply #17 on: August 06, 2009, 05:18:09 PM »

Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: Missing text
« Reply #18 on: August 06, 2009, 05:21:34 PM »
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

  • Guest
Re: Missing text
« Reply #19 on: August 06, 2009, 05:23:07 PM »
the file I gave you??