WebDev

Webdevelop => Site Discussion => Topic started by: Dave on May 18, 2023, 06:27:27 AM

Title: Quickbuttons have gone!
Post by: Dave on May 18, 2023, 06:27:27 AM
Hi Chen,

I was going to quote you in a post but when I looked the quickbuttons seems to have disappeared.

I changed to SMF Curve theme and it's still the same as per the images below.

I'm not aware that there is an option to remove those from Admin so I thought I'd let you know in case it's a site coding issue
Title: Re: Quickbuttons have gone!
Post by: Dave on May 18, 2023, 11:01:01 AM
OK I now know what this is. I installed the latest version of the portal 1.39.2 and for some reason it blocks the quickbuttons on all sites I visit.

I have re-installed the original 1.39 version and everything is working fine now
Title: Re: Quickbuttons have gone!
Post by: Dave on May 18, 2023, 11:03:59 AM
I tried to go and edit that last post but I can't, I should add that there are still no quickbuttons on here
Title: Re: Quickbuttons have gone!
Post by: Dave on May 18, 2023, 11:12:00 AM
OK I should have said that all the sites, including my test site, that I installed the new portal don't show the quickbuttons.

I wonder what people did before the edit button came along? I suppose there were a lot more posts  ;D
Title: Re: Quickbuttons have gone!
Post by: Dave on May 18, 2023, 11:28:59 AM
I have another issue now which seems linked to the portal.

In the images below you'll see that I have gone to my profile to change the theme. Instead of going across the page 100% they previews are on 50%.
I have done a browser inspect and it seems that the portal is having some effect, you'll see the info better in the second image

Title: Re: Quickbuttons have gone!
Post by: Chen Zhen on May 18, 2023, 01:15:22 PM
I'll look at it this weekend.
The quick buttons are working for me.
Title: Re: Quickbuttons have gone!
Post by: Chen Zhen on May 18, 2023, 01:32:50 PM
Do they appear when you're Admin?
If so.. I know what I did wrong.
Title: Re: Quickbuttons have gone!
Post by: Dave on May 18, 2023, 04:52:09 PM
No they didn't show up at all. I didn't check if they worked for members. They're still not working on here for me
Title: Re: Quickbuttons have gone!
Post by: Chen Zhen on May 18, 2023, 05:58:50 PM

Try downloading the same package again and try it out.
Let me know if the problem is fixed.

Thanks.
Title: Re: Quickbuttons have gone!
Post by: Dave on May 19, 2023, 02:09:17 AM
Quote from: Chen Zhen on May 18, 2023, 05:58:50 PMTry downloading the same package again and try it out.
Let me know if the problem is fixed.

Thanks.


Thanks Chen

It's fixed, on here and on my test site and Quizland, as far as the quickbuttons are concerned but not the narrowing of the theme selection, but, I think I know why that's happening. I THINK it's because there is duplicate code somewhere, I vaguely remember it doing this before. I will check and get back to you on that bit

UPDATE: I have uninstalled the portal and the theme select works just fine and goes full width as it should. I checked for files left over after the uninstall and removed code that wasn't removed by the mod. The files affected are 'Display.template' around line 229 and 'Login.template' around line 268.

I also uploaded a backup of the Sources and Themes folders as I say it works fine without the portal installed as soon as I install the portal the theme select goes back to 50% width.

It's not causing errors so it can stay as it is for the time being. I'm on holiday after today and wont have access for at least a week
Title: Re: Quickbuttons have gone!
Post by: Chen Zhen on May 19, 2023, 12:31:51 PM
So it left code in that file but didn't show the problem when Uninstalling the mod? Usually it will show a parse error.

Thanks for reporting the problem.. I will take a look at it.

Enjoy your holiday!
Title: Re: Quickbuttons have gone!
Post by: Dave on May 19, 2023, 01:14:23 PM
Quote from: Chen Zhen on May 19, 2023, 12:31:51 PMEnjoy your holiday!

Thanks Chen
Title: Re: Quickbuttons have gone!
Post by: Dave on May 19, 2023, 05:14:37 PM
It's seems that there maybe more to this than meets the eye. I have the latest portal version installed on the test site and it's fine. The theme select is full width as it should be, so that means that something on Quizland is conflicting with both.

As I said before I'll look into it when I get back.

I might have to strip Quizland and start again and then reinstall all the mods
Title: Re: Quickbuttons have gone!
Post by: Chen Zhen on May 19, 2023, 09:28:44 PM
It looks like there's a big gap above your theme block.
It's an empty cell that has a fixed height. I don't have admin access to the portal on your site at the moment to mess with it so I guess I'll have to try to duplicate it on a local.


I have to work on the portal so it doesn't mess with the mobile nav drop-down.
Most of the newer themes are mobile friendly so I have to reconfigure the bootstrap to change some stuff but not others.

The one thing I liked about EhPortal in the past was how I got the forum page to look compared to the SMF default.
It's much easier to read on responsive mobile with its forced css reconfiguration (bootstrap).
Unfortunately on some themes and for some mods it fails to do it any justice.
It's all due to the bootstrap in the hooks file which needs a total rework.
Plus the portal itself uses div tables which is ok but I should have went with a flex container.

 
Title: Re: Quickbuttons have gone!
Post by: Dave on May 20, 2023, 02:41:06 AM
Quote from: Chen Zhen on May 19, 2023, 09:28:44 PMI don't have admin access to the portal on your site at the moment to mess with it so I guess I'll have to try to duplicate it on a local.

You now have admin portal access.

Thanks again Chen
Title: Re: Quickbuttons have gone!
Post by: Chen Zhen on May 20, 2023, 09:32:27 PM
I see what's happened here with the display template & what Krash reported in the EhPortal support board.
Sinan had a direct edit in the display template to add article buttons to the message board.
The code must be for an older version of the SMF 2.0 branch because the SMF devs put in a backward compatible global $context (or so the remarks say this) but Sinan's code is a different variable that does nothing else I mistakenly removed part of a file parse/edit.
This is why Krash reported that the add article buttons were missing.

I've used a hook to add posts as articles, did it wrong in a sense because I assumed it used messages instead of topics and left the old manual edit in there for the display template... oops!

I've been working on it so hopefully I'll have it fixed up this weekend with another release.
The release should include a fix for the 3 issues that have been reported to me as of late.
Title: Re: Quickbuttons have gone!
Post by: Dave on May 21, 2023, 02:39:56 AM
Thanks Chen it's much appreciated
Title: Re: Quickbuttons have gone!
Post by: Chen Zhen on May 21, 2023, 11:47:09 AM

Just note that for the moment 1 of your themes and your download mod aren't playing nice with the portal.
The download mod is out of date as it uses regular HTML tables so I'm not sure if I can have EhPortal change it for viewing.
The theme might not be mobile friendly either but it might just need me to add things to EhPortal as well.
It could be mobile friendly and EhPortal is messing it up... I'll have to test things to figure it out.
 
Title: Re: Quickbuttons have gone!
Post by: Dave on May 22, 2023, 02:52:57 AM
Which theme was it Chen? If it's not being used by anyone I'll either remove it or see if there is an update for it
Title: Re: Quickbuttons have gone!
Post by: Chen Zhen on May 22, 2023, 04:44:57 PM

The theme is fine as it just needed some adjustment within EhPortal to adapt for it.
Title: Re: Quickbuttons have gone!
Post by: Dave on May 22, 2023, 05:13:49 PM
Ah ok thanks
EhPortal 1.39.6 © 2024, WebDev