Hi guys, I have 2 questions considering G2:
1. I've succeeded in adapting the Matrix template layout to my wishes. One of them was to remove the First and Last link on every full photo page, because I don't see the need of jumping to the first or last photo of an album when you want to see them all But now, when you enter the second photo or the one before the last one, there is no previous or next link, because First or Last was supposed to get you to that one... Any way of fixing this?
2. Second, the last couple of months/years, using my old photosystem, I used a .htaccess & .htpassword for my users... Now I don't want them to register again... can I manually add their usernames and (hashed) passwords in the G2 database without causing any problems... and does it matter which ID I give them, or is everything fine just as long as it isn't already in the list?
Thx!
Posts: 32509
@2.:
You should use the G2 API to add users, as creating a user is not just inserting a row into a single table (you'd have to add him to default groups and insert a row into another table (entity).
better use the API.
it's quite easy...
Posts: 32509
ps: better backup your G2 before you do such things
Posts: 8601
@1:
{if isset($layout.navigator.first) && !isset($layout.navigator.back)}
... and change "first" to "previous".
same for last/next.
Posts: 56
Hi guys,
Thanks for your quick response!
@2: I know a bit of coding, but I don't know what API is, and I don't even know if the code you put above is an already existing file or something I should create, so I better shouldn't mess with that; I'll just let them register again.
@1: Of course I did understand your solution, but it's not working. I've tried several other replacements as well, like back instead of previous and replacing all the "first" to "previous", but no luck... The first/last text link just dissapears and the grey stroke they are in gets smaller...
This is what I supposedly was to do according to your answer, right?
Posts: 32509
API -> google -> wikipedia -> http://en.wikipedia.org/wiki/Application_programming_interface
@code: no, this code doesn't exist in G2. i wrote it for you. there a few comments in it, where you need to customize it.
but letting them register again is also a solution ...
Posts: 56
btw:
Is there a way in Gallery of logging/keeping track which users have logged in or something like that?
Probably been asked before, but the search doesn't seem to be working
Posts: 32509
no, there's no "who's online" box or something like a list of who has been online when for the last time.
of course we could introduce something like that and there already exists a feature request for a who's online list. and we of course we welcome any user contribution if you think you can code it yourself