TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,946
  • Latest: Sparo
Stats
  • Total Posts: 195,712
  • Total Topics: 21,274
  • Online today: 105
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 76
  • Total: 76

Tinyportal 1.0RC2 and SMF Gallery Lite 3.1.1

Started by Lum-chan, July 19, 2011, 02:20:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lum-chan

I'm having excact the same problem. I'm using SMF 2.0 Final with TinyPortal 1.0RC2. When entering the Gallery, the left panels do show up but as soon as you enter any category, the left panel dissapears. Oddly enought it (the left panel, that is) shows correctly when you aren't logged-in. With SMF Links the panels keep don't display when logged-out.

I tried adding 'gallery;cat=' and 'gallery;cat=8' to each block (left panel) but this doesn't seem to work. Adding 'gallery' will do the trick only for the Gallery mainnpage.

The above goes for both SMF Gallery Lite (and Pro) and SMF Links, both from the same author. I checked his website/forum, there are more with this cosmetic problem.

A link to a preview is here: http://www.passat35i-forum.nl/ (It's in Dutch). The same happens on http://forum.lum-chan.com/ too.

account: Test
password: test1234

Account is for both sites

Thanks in advance!

[edit]
Which settings do you need to see from both Block and Panels? Then I can show them here in text or in one or more screenshots.
[/edit]

IchBin

Lum-chan, please start your own topics in the future. From looking at the gallery on your site, when you are on the main page it is this in the URL.
http://www.passat35i-forum.nl/forum/index.php?action=gallery

When in a category it is something like this:
http://www.passat35i-forum.nl/forum/index.php?action=gallery;cat=8
When viewing an image it is something like this:
http://www.passat35i-forum.nl/forum/index.php?action=gallery;sa=view;pic=223

Notice how "action=gallery" exists in all of those URL's? This means that you should be able to put "gallery" in the textbox for custom actions in the panel settings, and the panels should not show on any of those pages.

Lum-chan

Oh, I'm sorry :-[ I noticed you split the topic? Thanks.

Maybe I wasn't entirely clear on this panel thing: The problem is the left-panel disappear when viewing the categories of SMF Gallery (Lite/Pro) and SMF Links within TP. I want the left-panel to show like the rest of the pages on the site, which show the left-panel correctly.

I have attached screenshots of my setting when trying to prevent this from happening. The block-settings are the same for all active blocks.

Hope this makes it a bit more clearer on what I'm trying to accomplish. Is this fixable or do I miss an option?

Thanks in advance

Ken.

Just ran a test on my site using the settings as posted by Lum-chan:

Using the 'Custom action' option and adding 'gallery' to the list of pages where the 'Recent' block should be shown gives me that view on all gallery pages, including drilling down through the categories and the individual images. (did not add any additional actions, only added the one for gallery)

Example:
http://www.ourfamilyforum.org/FamilyForum/index.php?action=gallery;sa=view;id=7890
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Lum-chan

@Ken: That part works for me now, but the index of a category does not show the left-panel.  At your site it does work. This happens in both Default-Curve and in the Darkmodern theme. Did I miss an option somewhere in TP or SMF Gallery?

Ken.

AFAIK the SMF Gallery settings do not influence the TinyPortal settings in any way.
As for the TP settings, we will likely need IchBinâ,,¢ to help sort that out.

@IchBinâ,,¢, if you need access to my admin panel to look at or test any of my settings just let me know.

Ps: If it makes any difference my site is running SMF 2.0 + TinyPortal 1.104
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Lum-chan

#6
Just created a new membergroup based on Guests. I changed user Test to this membergroup and it shows a testblock (Jouw Info @ my site) for SMF Gallery on all pages for it. The same goes for SMF Links. I'll check what the differences are with an existing membergroup. Test has 0 messages posted. Maybe Permissions settings? I'll get back to this after some fiddling... Maybe I can fix this. Please hold.

[edit]
OK, I found out the following: When I assign membergroup as Primary membergroup to user Test, the panels on the left show up. When I assign user Test to 'Regular Members' and as additional membergroup the newly created one, the Panels on SMF Gallery and SMF Links disappear. I tried playing with permissions, but this was of no influence to the result and still no Left-panel. Posts have no influence on this.

Exactly the same happens to two other sites I maintain with roughly the same setup, only the mods used are different. All the sites uses SMF 2.0 Final with TP 1.104 and the same version of SMF Gallery lite/Links.

What I will try next is to install a clean setup of SMF with TP and SMF Gallery and see what happens.
[/edit]

[edit]
I came up with this after some testing. After installing a fresh setup with only SMF, TP and SMF gallery, the same happens as with my own site. The most odd thing is this: When I assign user Test as primary membergroup 'Global Moderator' or any other custom membergroup, the panels do show up. Regular users and Administrator don't show the panels. When changing to Default and use additional membergroups, no panels are shown.

If I recall correctly, this wasn't happening in SMF 1.1.3 with TP 1.0 RC1.0 and RC1.1 but I'm not sure. I'll give that combination a go for tomorow (Unfortunate TP 1.0RC1.1 doesn't install by default with SMF 2.0 but I didn't try the emulation of an older SMF version yet).

I checked the DB for odd thingies but my knowledge of MySQL is a bit limited. The only thing I could find is a non-existent 'id_group' 0 (regular users) under 'smf_membergroups'.

If anyone has some suggestions where to look, please do tell me.
[/edit]

Lum-chan

I have tried the following:

Downloaded the latest versions of SMF, TP and SMF Gallery Lite. No manual edits on code were made after the initial install of east test setup.

[Test one]
http://dev.lum-chan.com/smf1/ User=Test password=test1234
Clean install of SMF 1.1.14 with TP 1.0RC2 and SMF Gallery Lite 3.1.1 in this order.
After adding some catagories and images, moving all active panels to the left, everything displays correctly. This is valid for all users/membergroups and being a guest as well. No problems found and default settings used.

[Test two]
http://dev.lum-chan.com/smf2/ User=Test password=test1234
Clean install of SMF 2.0 Final with TP 1.0RC2 and SMF Gallery Lite 3.1.1 in this order.
After adding some catagories and images, moving all active panels to the left, not everything displays correctly in SMF Gallery Lite.

[What dit I try to fix this for Test two]
Clicking on menu-item Gallery shows the left panels OK (category overview).
Clicking on any catagory in Gallery do show the images but not the Panels (index of any category).
Clicking on any image in any gallery available, shows the image itself and the Panels do show correctly.
Adding 'gallery and/or gallery;cat=1' to each block doesn't change any of the above. Problem stays.
Guests see the same as a logged-in user (I used user Test with same pw)
Changing the Primary Membergroup of user 'Test' from 'Regular users' to any other membergroup will NOT show the leftpanel when insite any category EXCEPT when choosing 'Global Moderator'.
Only when using membergroup 'Global Moderator', the panels in all sections of SMF Gallery Lite do show correctly.

It seems to be a small difference between the SMF1 and SMF2 version of TP but I'm not sure. Due to the many changes between SMF1 and SMF2 while using the same package of TP, it's very hard for me to determine what/when/why it is going wrong.

If you need more information or settings, please let me know so I can post them here.

Lum-chan


Lum-chan

It looks like it's somehow random. I added a new category and the menu wasn't showing up. After that, I added several extra categories, they show the menu. Odd...

I don't know if IchBin has taken a look at this yet, but maybe it's something to add to the bugtracker?

[edit]
A workaround would be to move the images out of that category to another temp one, delete the category and recreate. If it fails to show the menu, remove it again an create it again until this category shows the menu and then move the images from the temp category to the now working category. This could be done for all non-working categories. It's a bit of work when you have a lot of images, but I'm sure this moving thingy could be done by altering the DB itself, but I haven't tried editing the DB directly.
[/edit]

WillyP

It's unlikely that it is truly random. More likely, there is something you are doing differently, maybe a character in one of the fields, or some setting. Though I am sure you have gone over every setting carefully, perhaps there is the slightest difference between one and the other. Or maybe it fails the first time you create, and succeeds after that. I don't know. But there is a pattern to this somewhere, and discovering the pattern could be the key to solving this dilemma.

Lum-chan

#11
Currently I'm testing this issue with SMF 2.0.1, TP 2.0RC2 and SMF Gallery 3.1.1 and I've ran into similar problems with SMF Links 2.3.2. What I didn't notice before is the odd change in the Navigation-line (I might have missed this, could be helpful?). As it's rather hard to explain I'll post some screenshots of this together with some explanation. I'll make the screenshots asap and edit this post to reflect the changes.

After trying out several settings within TP, I discovered that a setting in TP had a kind of impact on SMF Gallery/SMF Links. Somehow the settings for each Category in TP seems to be related to the display of certain categories in SMF Gallery/SMF Links. This is detectable by checking the Navigation-tree (screenshot included at bottom of post). If you run into such a problem with displaying a category in SMF Gallery/Links and the Panels are missing, then take a look at the Navigation-tree. It will show the name and link of a TP Category. Depending on the contents of that Category it will show active articles. Normally it will show the word 'Forums' and links to the forum itself.

Now how to fix this is to go to each category in TP and make sure you have selected the Panels to show. This sounds somewhat odd but if the category is non-existant, the problem will not show even if there's NO selection made on the Panels to show. As soon as the Category is active it will somehow be found and used in stead of 'Forums' and the link. Simply select the needed Panels and save. This should be done for each Category in TP. When you have done this. All the galleries in SMF Gallery will show correctly.

I don't know how the two separate mods can react on each other, but I'm sure the TP-Team probably can.

The above is a work-around which works for at least 4 different setups of SMF 2.0.x and TP 1.0 RC2 in live and in dev setups.

@WillyP: You were right! It's no random thingies but at first it looked that way but I couldn't reproduce that part.

[edit]
Added some screenshots of the non-working SMF-Galleries with the odd appearance of category names in the Navigation-bar. I hope this makes it a bit more clear for the TP-Team.

Oh, before I forget: I did a new clean install of SMF 2.0.1 with first install of SMF Gallery/Links (Latest versions). Configured SMF Gallery/Links with some test objects. I didn't changes any settings in SMF and TP and went testing all along. I didn't add the actions 'gallery' an 'links' to TP in the default blocks as shown on this url:

http://dev.lum-chan.com/smf201/index.php
username Test
password test1234
[/edit]

Lum-chan


IchBin

Sorry Lum-chan, I just don't have the time to try and figure this out right now. Keep on bumping every now and then. Hopefully I will get a moment to install the gallery and check this stuff for you.

Lum-chan

Ok, no problem. I'll bump this topic every now and then. Thanks in advance and have a very good weekend!

Lum-chan

Found a solution after all. The main problem (at least for me) is the defination of the panels shown in the Category. When you don't select the panels to be visible in the category (in TP) this will cause random missing panels in the output of each gallery category itself (in Gallery Lite).

So selecting the panels you want to be visible in the TP Categories is very important. Still I don;t know why this only happens with SMF Gallery (Lite/Pro) and your SMF Links mod. The above just might be the solution to all these problems (and perhaps for other mods which work with categories too).

This works for SMF 2.x.x and TP 1.0RCx. There never was a problem with SMF 1.1.x with any TP1.0RCx, thou.

IchBin

I see the problem. It's because of the "cat=X" in the URL. TP is looking at that parameter in the URL and displaying the categories settings as you found out by setting them. Not sure there could be a code fix without significantly changing these things in one of the mods.

Lum-chan

Thanks for looking into this, IchBin. I have pointed the creator of this two mods to this thread as well.

IchBin

If you are looking for a way to have the panels display without having to set the category settings you can try this as a work around.

In TPortal.php find this:

function doTPcat()
{
//return if not quite a category
if(isset($_GET['action']) && $_GET['action'] == 'manageboards')
return;


Add after this:

if(isset($_GET['action']) && $_GET['action'] == 'gallery' && isset($_GET['cat']))
return;


Mind you this wouldn't be a permanent fix, just something to work around the problem. The problem being that TP and SMGallery share the same parameter to test for category information. :)

Lum-chan

#19
Thanks IchBin! I don't know if the creator of SMF Gallery is willing to change the code but I put your code-snippet locally and use it a some kind of path to fix this anyway.

As I understand your explanation correctly it's all related on the use of the 'cat=' part which both TP 1.0RC2/3 and SMF Gallery (latest version) use. As I'm not very good at coding php, I don't know if it's a lot work for him to change the way SMF Gallery uses categories but let's hope he will and can do... otherwise this patch will help a lot of others too.

[edit]

if(isset($_GET['action']) && $_GET['action'] == 'links' && isset($_GET['cat']))
return;


As far as I can see, the code above will fix this for SMF Links too \(^_^)/
[/edit]

IchBin

Well it's not a small change to make the gallery or TP use a different parameter other than "cat" in the URL. So I wouldn't expect him to do it. If I wasn't in the middle of getting TP to stable I probably would attempt to make that change. But right now, the work around should fix things. :)

Lum-chan

No problem. If it can be fixed with this piece of code, I guess everybody is happy with the result.

This website is proudly hosted on Crocweb Cloud Website Hosting.