News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Uploaded Avatars Not Showing

Started by jeepwrangler2k, May 14, 2021, 04:50:10 PM

Previous topic - Next topic

jeepwrangler2k

Uploaded avatars are not showing up for guests (and only guests not members) in 2.0.18 and I've tried everything in the admin avatars configuration section with no luck.  They simple show up as broken images or as that little page icon.

any ideas?

Steve

I've split this topic off from the one you posted in as it was a solved topic from 4 years ago.

A couple of questions:

Did you read that whole topic and none of it was helpful?

And, would you mind if we shortened your display name as it's running into the title and time of the post? Possibly to jeepwrangler2k?
DO NOT pm me for support!

jeepwrangler2k

Quote from: Steve on May 14, 2021, 06:31:19 PM
I've split this topic off from the one you posted in as it was a solved topic from 4 years ago.

A couple of questions:

Did you read that whole topic and none of it was helpful?

And, would you mind if we shortened your display name as it's running into the title and time of the post? Possibly to jeepwrangler2k?

Yes I read the whole topic.  Thanks.

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jeepwrangler2k

Oh sorry..  https ://undergroundmusiccompanion.com but I think this forum will xxx out my post.

Sir Osis of Liver

Guests can't view anything except portal blocks.  Where are you not seeing avatars?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jeepwrangler2k

In my theme called Redsy they normally show up along the top of the forum under the Online area just above the login prompt.

Sir Osis of Liver

That's odd.  If you look at this link you'll see avatar -

https://www.thekrashsite.com/smf20/index.php?action=dlattach;attach=1;type=avatar

You're a guest on my test forum and can see it.  But on your forum it goes to login -

https://undergroundmusiccompanion.com/index.php?action=dlattach;attach=7;type=avatar

Guests cannot view avatars.  There's no permission for that, unless it's something in the portal.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Same thing in Curve, it's not a theme problem.  Don't see anything in TP that can cause that (you should upgrade to current version).  Is mod_security enabled on your server?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jeepwrangler2k

the TP version I'm using is the only one that worked for 2.0.18.   I don't know if mod_security is enabled on the server. How do I find that?

Sir Osis of Liver

If it's in cpanel -> security you can disable it, otherwise you'd have to ask host support.  IIRC you should have it in HG cpanel, but don't really think that's the problem.  Just something to eliminate.

I just installed TP 2.0.1 on 2.0.18 forum, should work fine on yours.  You have to uninstall existing version first, all content will be retained if you don't check 'Remove all data associated with this modification'.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

I've registered as Krash and can see avatars when logged in.  Going offline, if you can't fix it make me admin and I'll have a look tomorrow.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Aleksi "Lex" Kilpinen

It's pretty simple really. Your forum doesn't allow guest browsing, so the forum isn't showing anything to guests even though the portal is.
You can move avatars to a separate folder and not treat them as attachments - this would fix the problem, or you can allow guest browsing on the forum and limit access with permissions instead.
( For moving the avatars out of attachments, see step 1 in https://www.simplemachines.org/community/index.php?topic=293441.0 )
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Sir Osis of Liver

   Of course, that's the one thing I didn't try.  Replicates the glitch in TP on test install.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

@rjen

I think Lex already identified the issue: the avatars being attachments blocks them in the recent topics. The block uses the SMF ssi function. In fact the block should better respect the overall SMF setting allow_guestaccess .

We will pick that up in TP2.1.0
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

jeepwrangler2k

Quote from: Aleksi "Lex" Kilpinen on May 15, 2021, 02:23:54 AM
It's pretty simple really. Your forum doesn't allow guest browsing, so the forum isn't showing anything to guests even though the portal is.
You can move avatars to a separate folder and not treat them as attachments - this would fix the problem, or you can allow guest browsing on the forum and limit access with permissions instead.
( For moving the avatars out of attachments, see step 1 in https://www.simplemachines.org/community/index.php?topic=293441.0 )

Thank you. I made a folder on my root called avs or /home4/underion/avs.  Then under admin forum avatar settings I changed Upload avatars to - from attachment directory to specific directory and then typed avs into the upload directory but I get an error message saying that the custom avatar directory must be empty or invalid and it's definitely empty. Also tried the full path on my server of /home4/underion/avs instead of just avs but still not working and same error msg.

What did I do wrong or not do correctly yet?

Sir Osis of Liver


You have to use full server path for upload directory -

  /home/thekrash/public_html/smf20/avs

And full path for upload url -

  httpx://www.thekrashsite.com/smf20/avs

Copy it from Server-stored avatars (up top) and just change directory name.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jeepwrangler2k

Yes I just figured out what I was doing wrong - forgot to fill in the Upload URL as https://undergroundmusiccompanion.com/avs and now it seems to work without the error msg.

But sadly guests still can't see avatars. Does this mean I have to let them see the forum with restrictions as the only way they'll see them then?

jeepwrangler2k

Quote from: Sir Osis of Liver on May 15, 2021, 01:30:09 AM
I've registered as Krash and can see avatars when logged in.  Going offline, if you can't fix it make me admin and I'll have a look tomorrow.

OK I'm doing that now.  you are now an admin to the site.

Sir Osis of Liver

Almost right, fixed upload directory.  Should work now.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jeepwrangler2k

I just checked again with my guest login screen and the my avatar as I'm logged in as admin is still not showing but instead just that little page icon or avatar instead.

Oh I see you changed the path to /home4/underion/public_html/avs so I went into cpanel and created that avs folder in the public_html folder but it still doesn't work because the avatar is still not showing up when I re-check it.

Sir Osis of Liver

Did you move avatars from /attachments to /avs as per Lex's link?

Should be working now, avatars are loading from /avs.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jeepwrangler2k

Quote from: Sir Osis of Liver on May 15, 2021, 05:33:11 PM
Did you move avatars from /attachments to /avs as per Lex's link?

Should be working now, avatars are loading from /avs.

Yes I believe I did unless you'd like to try it yourself to be sure?  WAIT - I just checked in again as a guest and now all of a sudden it's working - I can see my avatar just like that...   what did you do to fix it?

jeepwrangler2k

One last thing - is there a way I can get rid of the TP or tinyportal help screen that's showing up for all my users or at least make it so only admins see it?

@rjen

Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Sir Osis of Liver

Ran index.php?action=admin;area=manageattachments;sa=moveAvatars, it appears to do nothing but actually moves the files.  You should configure TP to only display on front page, it's annoying to have it on every page.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jeepwrangler2k

#26
Quote from: @rjen on May 15, 2021, 05:52:35 PM
It is removed in TP 2.0.1...

TP 2.0.1 installs as a package but won't install without errors under smf 2.0.18 that I've tried so far unless I'm doing something wrong?  That's why I'm still am on 1.6.9.

UPDATE: I was able to remove the TP help page with a mod called Remove Help from menu.zip

Sir Osis of Liver

I'll have a look.  Do you have a current backup of forum and database?

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jeepwrangler2k

The previous .gz file is still here on my local machine but we may need to make a new one. Does that include the forum or only the database?

Sir Osis of Liver

You should back up both before installing/uninstalling mods.  You only have four installed, wouldn't be a big deal to revert to clean install if things go badly.  I'll uninstall TP 1.6.9 and try installing 2.0.1.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Install Error: - please install a version of php greater than 5.6.0

You're running in php 5.4, you need to upgrade to php 7.  Should be able to do that in cpanel -> software.  SMF 2.0.18 supports 7.4, I believe TP 2.0.1 does as well.  I run my forums in 7.2.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jeepwrangler2k

Quote from: Sir Osis of Liver on May 15, 2021, 06:33:22 PM
Install Error: - please install a version of php greater than 5.6.0

You're running in php 5.4, you need to upgrade to php 7.  Should be able to do that in cpanel -> software.  SMF 2.0.18 supports 7.4, I believe TP 2.0.1 does as well.  I run my forums in 7.2.

I tried running https://undergroundmusiccompanion.com/upgrade.php but I get the sorry not found error and when I look in cpanel there are no upgrade.php files.  How do I get it and ftp it to the server?

Sir Osis of Liver

No, you don't run upgrade.php.  Log into your host cpanel, look in Security section, there should be a button to select php version.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jeepwrangler2k

I did but there is no button in the Hostgator cpanel security section for php.  Just SSH access, manage API tokens, IP Blocker, Hotlink protection, SSL/TLS, and SSL/TLS Status buttons.

But under the Software section there is something called the MultiPHP Manager. Is this it?

Sir Osis of Liver

Going offline shortly, won't be back on til late tomorrow.  I've reinstalled TP 1.6.9.  If you can pm cpanel access (url/user/pw) I'll have a look.

Quote from: Sir Osis of Liver on May 15, 2021, 06:52:54 PM
Log into your host cpanel, look in Security section, there should be a button to select php version.

I misspoke, that should be cpanel -> software.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Quote from: jeepwrangler2k on May 15, 2021, 06:58:48 PM
But under the Software section there is something called the MultiPHP Manager. Is this it?

Yes, that should be it.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Ok, TP 2.0.1 is installed.  Gotta go.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jeepwrangler2k

#37
Quote from: jeepwrangler2k on May 15, 2021, 06:58:48 PM
I did but there is no button in the Hostgator cpanel security section for php.  Just SSH access, manage API tokens, IP Blocker, Hotlink protection, SSL/TLS, and SSL/TLS Status buttons.

But under the Software section there is something called the MultiPHP Manager. Is this it?

Using the MultiPHP manager I was able to install php 7.4 via this Set PHP Version per Domain
Select the domains that you wish to change from the table, then apply a PHP version from the list. (PHP 7.4 ea-php74).

That's it?

Quote from: Sir Osis of Liver on May 15, 2021, 05:55:35 PM
  You should configure TP to only display on front page, it's annoying to have it on every page.

Trying to figure out how to do this with no luck so far.

UPDATE: Figured it out, sorry.  Went into TP and Panels and checked this option: Hide left panel when in forum?

I guess that closes out my issues. BIG Thanks to all.

BUT there's a new problem.  When the left panel is hidden in the forum it no longer shows up at all for anyone at any time. 
The first time I tried this it worked when you were in the discussion area or category topics and then would reappear when you went back to the main menu, but now it doesn't even do that at all.

Any ideas?

Aleksi "Lex" Kilpinen

This topic is getting a bit hard to follow, and the original issue is fixed, so I would suggest opening a new topic for any new issues.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: