NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 09-24-2006 14:41:37

Sadil
Member

Avatars on shared boards

Hey,

I converted back to Wacintaki (can't keep my paws off those nifty features.. hehe) and added an additional board. They both run on the same member database (op_). Everything works fine so far, except for the fact I can't seem to use my avatar on both boards.

Say, I add my avatar on the main board. Then I go to my collab board and add my avatar there. But when I return to the main board, my avatar is gone. The same thing happens to the collab board if I reupload my avatar on the main board.

It's not such a big issue... But I'm curious as to why it does it, and how I can fix it.


OH. I just noticed... due to avatar use, the comments appear 'glued' on top of each other, without spaces between them. (It doesn't happen when I don't use avatars) Is there any way I can fix it without disabling avatars?

Boards:
http://www.hakai.org
http://collab.hakai.org



Edit:

I also noticed that when you reply to O-mails, the person's name doesn't appear in the "Sent to" box. You have to add the name manually, even if you click "Reply" on an O-mail you received. The name is present in the URL, but doesn't show up in the box.

i.e. http://collab.hakai.org/mailsend.php?se … mode=reply

That results in an empty "Sent to" box. Any idea why it does that?


I really hope I'm not being a pain in the butt with this. ^^;

Last edited by Sadil (09-24-2006 17:58:23)

Offline

#2 09-25-2006 00:20:22

Waccoon
Administrator

Re: Avatars on shared boards

I assume the subdomain structure of your website means your main board is in the root folder, and the colab board is in a "collab" subfolder.

If this is the case, the avatar path for the main board should be "avatars/" and the collab board should be "../avatars/"

If you're not sure where the folders are located (you're just uploading stuff to "www.hakai.org" and "collab.hakai.org"), you'll have to find out what the local paths are on the server for avatar sharing to work.

As for the mailbox... um, that's another bug.  Here's a fix (v1.3.5).

Offline

#3 09-25-2006 05:50:00

Sadil
Member

Re: Avatars on shared boards

Hmmm. Nothing seems to work when I try it. Seems kind of odd. o_O None of these work;

../avatars/
../collab/avatars/

And, yes, my main board is in /public_html/ and my collab oekaki is in the /public_html/collab/ folder.



Thanks for the fix. <3 It worked.

Last edited by Sadil (09-25-2006 09:39:51)

Offline

#4 09-26-2006 01:57:06

Waccoon
Administrator

Re: Avatars on shared boards

OK, here's what happens...

Both boards have to use the same avatars folder.  For the main board, that should be avatars/ (note that there are no periods or a slash in front of the path).  The actual local path should then be /public_html/avatars/

Bascily, the main board's avatar folder path should be left alone.  It's the collab board we need to change.

On the collab board, you need to backtick one directory to access the public_html directory.  You do that with two periods (../).  You can then get into the main board's avatars folder with ../avatars/.  Since I can access the collab board with www.hakai.org/collab/, this path should work.

Be aware that you will have to copy any files in the collab board avatars folder to the main board avatars folder.  Otherwise, the board will send an image link to client web browsers, but there will be nothing to display.  After copying the files, everything should appear as normal.

Offline

#5 09-26-2006 11:40:32

Sadil
Member

Re: Avatars on shared boards

I think I figured out why it's not working... the avatar/ dictory on the main board seems locked. I can't upload, edit or remove any contents from it. I'll contact my host about this and see what's going on. I'll get back to you later once I make sure.

Offline

#6 09-27-2006 03:16:16

Waccoon
Administrator

Re: Avatars on shared boards

Tip:  there's a script called testinfo.php that allows you to see some diagnostics for your board (you must be logged in as owner to access it).  It will tell you if the avatars folder, and various other paths, are locked or not.

Again, regardless of what the collab board needs to be, the main board should have an avatar path of avatars/

Offline

#7 09-28-2006 17:07:53

Sadil
Member

Re: Avatars on shared boards

Okay, folder thing solved... but the issue remains. Main board is avatars/, collab board is ../avatars/ and yet it only works on the main board as far as displaying the images goes. It upload the image into the folder, but for some reason it doesn't display it properly.

I've no idea what's going on, everything LOOKS fine... (tried the testinfo.php file, it said OK)

Offline

#8 09-29-2006 04:07:14

Waccoon
Administrator

Re: Avatars on shared boards

Ohhhhhhh...  DUH!  Now I know what's wrong.

On the server end, things work fine (uploading the avatar, for example).  However, the link in the web browser isn't working with the subdomain path.  In other words, ../avatars/ is sent to the web browser, which ends up being http://collab.site.com/avatars/, which is wrong.  It should be http://www.site.com/avatars/

Well, the easy fix is to tell people to visit http://www.hakai.org/collab/ instead of http://collab.hakai.org.  Otherwise, I can edit the index and profile viewer to serve a direct URL (I believe there's only three places this needs to be done).  Lemme know what you'd like to do.

Offline

#9 09-29-2006 07:10:14

Sadil
Member

Re: Avatars on shared boards

I thought it might be something like that, but since I've no insight on how the oekaki was coded I didn't dare mention it. xD;

I'd prefer a fix to display a direct URL, it makes life easier to me. ^_^

Offline

#10 09-30-2006 05:15:52

Waccoon
Administrator

Re: Avatars on shared boards

OK, here's the patch.  It is designed to replace files in v1.3.4 only.  You only have to copy it to the collab board, but copying it to both boards will probably make things easier:  Avatar URL path patch

The magic starts on line 99 of "boot.php":

Code:

if (strpos ('../', $cfg['avatar_folder']) !== FALSE) {
    // Check backticks -- absolute URL path needed
    $avatar_url = 'http://www.hakai.org/avatars';
} else {
    // No backticks -- use relative path
    $avatar_url = $cfg['avatar_folder'];
}

What this does is check if you are using the main avatars folder or not.  If so, just avatars/ is used.  If not, the url path is used.  Basicly, it's already set up for you.  Just make sure that in the contol panel, the main board is set up with avatars/ and the collab board uses ../avatars/, and you'll be all set.

I keep these patches on file, so if a new version of Wacintaki is released, just remind me about this and I'll update it.

Offline

#11 09-30-2006 08:59:06

Sadil
Member

Re: Avatars on shared boards

I uploaded the patch to both the oekakis, but... it still doesn't work. (What do you mean, frustrating?) It's still looking in the collab/avatars/ folder for the avatars instead of the main board (i.e. http://collab.hakai.org/avatars/822ee09 … 8ff848.gif)

If you like, I can give you my login info for the boards and the FTP.

Offline

#12 09-30-2006 23:03:37

Waccoon
Administrator

Re: Avatars on shared boards

If you like.  All I want to know is what the IMG tag link for the collab board avatars looks like.  I tried it on my board and it worked fine.

Offline

#13 10-01-2006 04:48:12

Sadil
Member

Re: Avatars on shared boards

Sure thing, how can I send you the info? Email, PM, Omail on your oekaki etc..?

Offline

#14 10-04-2006 03:08:15

Waccoon
Administrator

Re: Avatars on shared boards

E-mail would be best.  I realized a short time ago that this forum doesn't support PM!  WTF?

Offline

#15 10-04-2006 19:01:29

Sadil
Member

Re: Avatars on shared boards

YES, I noticed that. XDD;; I just thought you hated PM or something. Rofl.

Sent the info. ^^ Let me know here ot through Email when you got it fixed or know what's wrong etc.

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB