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"> © <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;"', '>
Do you want us to add the code inside your file?
Please bud.
Doing so would mean I can get on with adding some more features to my chat room and shoutbox.
Add the index.template.php .. not index.template2.php . Because I can't find that code in that file.
That is the correct file.
If renamed indextemplate.php it gives me an error.
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.
I only have the one it seems.
I found an index template.php in my recycle bin if that is any help?
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?
No.
:(
Can I have a link to your forum please?
www.visionaryhosting.info (http://www.visionaryhosting.info)
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]
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?
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.
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?
Quote from: H
Most likely it is because of the theme that is in use or because another mod already changed that code
http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608
This is what I am trying to do.
I understand..but you need an index.template.php .
the file I gave you??
You gave me index.template2.php .. and besides, the codes that are listed to find, are not in your index template.
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.
Attachment as requested.
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.
Ok will leave it for now.
Thanks for having a go.
Topic marked as solved for now.
Glad to see you got everything worked out :)