News:

Wondering if this will always be free?  See why free is better.

Main Menu

AjaxChat Integration (latest version 3.2.1)

Started by .HuNTeR., August 27, 2008, 12:59:06 AM

Previous topic - Next topic

mrtrc266

@ The Priest did you put all these in here or did your theme come like this? That's kinda what it would look like for 1.1.8

    <li><a href="', $scripturl, '" class="kwick opt1">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" /><span>' : $txt[103]), '</span></a></li>
    <li><a href="', $scripturl, '?action=help" class="kwick opt3">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" /><span>' : $txt[119]), '</span></a></li>
    <li><a href="', $scripturl, '?action=gallery" class="kwick opt3">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . $txt[182] . '" /><span>' : $txt[182]), '</span></a></li>
   
    <li><a href="http://www.landrover6pot.org/sixpotforum/chat" class="kwick opt4" target="_blank">', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['calendar24'] . '" /><span>' : $txt['calendar24']), '</span></a></li>';

    if ($context['allow_memberlist'])
    echo '<li><a href="', $scripturl, '?action=mlist" class="kwick opt5">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/memberlist.gif" alt="' . $txt[331] .'" /><span>' : $txt[member_list]), '</span></a></li>';
   if ($context['allow_admin'])
    echo '<li><a href="', $scripturl, '?action=admin" class="kwick opt5">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] .'" /><span>' : $txt[2]), '</span></a></li>';   
   
    if ($context['user']['is_logged'])
    echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '" class="kwick opt6">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" /><span>' : $txt[108]), '</span></a></li>';
    if ($context['user']['is_guest'])   
    echo '<li><a href="', $scripturl, '?action=login" class="kwick opt8">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[34]), '</span></a></li>';
    if ($context['user']['is_guest'])
    echo '<li><a href="', $scripturl, '?action=register" class="kwick opt7">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[97]), '</span></a></li>';
echo '</ul>


For RC1 all the code for the buttons are in your sub.php file and look more like this now.
   //[Chat] button
    'chat' => array(
    'title' => $txt['chat'],
    'href' => str_replace("index.php", "chat/index.php", $scripturl),
    'show' => true,
    'sub_buttons' => array(
    ),
   ),

ThePriest

Hi. No it came that way except my bodge to get the chat working.

I replaced line 341 which had originally pointed to the calendar.

<li><a href="', $scripturl, '?action=calendar" class="kwick opt4">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" /><span>' : $txt['calendar24']), '</span></a></li>';


With

<li><a href="http://www.landrover6pot.org/sixpotforum/chat" class="kwick opt4" target="_blank">', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['calendar24'] . '" /><span>' : $txt['calendar24']), '</span></a></li>';

mrtrc266

Very odd that the author put the button code in the index.template file I thought they go in the subs now ???  Anyway try this

<li><a href="http://www.landrover6pot.org/sixpotforum/chat/index.php" class="kwick opt4"   onclick="openWindow(this.href);this.blur();return false;"', '>', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['chat'] . '" style="margin: 0px 0;" border="0" /><span>' : $txt['chat']), '</span></a></li>';

ThePriest

Hi getting there although a little back step I'm afraid.

It does now link to the chat but not in a popup 'chat size' window without the scroll and toolbars.


mrtrc266

Ok, one more time...I just installed your theme and used your original code and just added chat/index.php and changed the laguage strings to 'chat' and it opened in a new window and went straight into chat.

<li><a href="http://www.landrover6pot.org/sixpotforum/chat/index.php" class="kwick opt4" target="_blank">', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['chat'] . '" /><span>' : $txt['chat']), '</span></a></li>


mrtrc266

Ooops, add ';
to the end of the line

Sorry guess it didn't copy the end of it

ThePriest

Thanks again but that just takes me back where I started. I still have the full size window and still have the toolbars.  I am very gratefull for you trying to help me with this though.

mrtrc266

NP, we'll get this sorted. I have to run off to work but will check in when I get back. It just worked on my test site with the same theme, so it's gotta be something simple. Have a g1

kolt

Hello, I tryed to install it but doen't work for me!


Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test failed
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/ManagePermissions.php Test failed
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
6. Execute Modification ./Themes/default/index.template.php Test successful
7. Execute Modification ./Themes/default/style.css Test successful
8. Execute Modification ./Themes/default/languages/Help.english.php Test successful
9. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
10. Execute Modification ./Themes/default/languages/Help.persian.php Skipping file
11. Execute Modification ./Themes/default/languages/Modifications.persian.php Skipping file
12. Delete Tree ./chat 
13. Delete Tree ./shoutBox
I

I have the last version of smf forum 1.1.8.
I'm attaching the two files that doen't work, please help because I like this mod.

ThePriest

I stripped back and installed a fresh copy of SMF2 RC1 on my test server then installed the theme I modded this one from to see if I could isolate another error I have been getting

8: Undefined offset: 108
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum2/Themes/WBlog20rc1/index.template.php
Line: 348 

Looking at the log it seems the errors all appear to come from the section of the theme we have been looking at. The buttons.

I think this whole section needs re-writting but I do not have the knowledge to do this.

If you want to look at the test forum it is at

http://www.landrover6pot.org/sixpotforum2/index.php?

Username and password have been PM'd to you mrtrc266


TheListener

can someone help fix the 500 error which we get when testing the shoutbox please.

I found a site shows what to do to get the mod colours to work in chat ( we have other staff too) but don't have a clue how to do it.

Also are there any animated smileys available?

ɔɔɔɔɔɔuɥoɾ

change the CHMOD/Permissions on the  directories to 755

your server/Shoutbox
your server/Chat


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

TheListener

Do you know where to look for the problem?

I haven't a clue.

ɔɔɔɔɔɔuɥoɾ

Quote from: TheListener on May 09, 2009, 12:55:50 AM
Do you know where to look for the problem?

I haven't a clue.
Go to the file manager on your hosts website and look for the permission settings for those folders, if you cant find it, contact support for your hosting and ask them how to change permissions.

If your using a FTP client, you can locate the folder and right click and select permission settings (clients vary)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

TheListener

We looked at our ftp for a manual install and still didn't have a clue what to do nor where to look.

amlucent

chmod your "/Chat/index.php" to 755.. that got rid of my 500 error

TheListener

1. How?

2. Where?


We are using black rain v2 on 1.1.8


TheListener

Jblaze we have filezilla but thats as far as we go.


Advertisement: