.4 Change Profile Photo Link to browse not album

In the menu builders for the My Profile pink top item, the Photos link is:

modules/?r=photos/albums/my/main/|modules/?r=photos/albums/my/add/|modules/?r=photos/albums/my/manage/|modules/?r=photos/albums/my/disapproved/

I want to change this to the browse view of the album with the menu:

Main Organize Add photos Manage photos

See screenshot:

How would I form the URL to put in the menu item?

 

 

 

                 
photo_menu_browse.jpg · 91.3K · 426 views
Geeks, making the world a better place
Quote · 27 Sep 2013

are you hard-coding the link or wanting to change the default page a user goes to with the default dolphin linkage?

caredesign.net
Quote · 27 Sep 2013

 

are you hard-coding the link or wanting to change the default page a user goes to with the default dolphin linkage?

I just want to change the link in the menu builders.  That is the one on the Profile Page;  When you are on your profile it takes you to the album with the Main, Manage, Disapproval, etc. menu. by using the item under My Profile, pink menu in the navigation menu.  If you are on someone's profile, then it uses the Profile View pink menu item; if you are following me.  I can take a screen shot if need be.

Geeks, making the world a better place
Quote · 27 Sep 2013

modules/?r=photos/albums/my/main/|modules/?r=photos/albums/my/add/|modules/?r=photos/albums/my/manage/|modules/?r=photos/albums/my/disapproved/

 

If you look at the URL there; it appears you pass along to the photos module what menu links should be included or what functions?  I don't know; I was hoping someone understood how it works.  As everyone knows, the documentation with Dolphin sucks worst than a ... well, it sucks.

Geeks, making the world a better place
Quote · 27 Sep 2013

what is the URL of the page you want to show? What happens if you create a New_Item in the Navigation Builder and put it where you want it - will things appear as you would like.

caredesign.net
Quote · 27 Sep 2013

I want to bring up the page shown in the screenshot.

Geeks, making the world a better place
Quote · 27 Sep 2013

Is two hours being too impatient? Smile  I thought this would be a bam boom there you go.

Geeks, making the world a better place
Quote · 27 Sep 2013

No one has a clue on how to form these URLs?

Geeks, making the world a better place
Quote · 28 Sep 2013

This is where I want to end up when clicking on photos when I am viewing my profile instead of the album administration.  Come on folks, help me understand how this works.

How do I translate this for the menu builder?

http://mysite.com/m/photos/browse/album/Jenny-s-photos/owner/Jenny

modules/?r=photos/browse/

What comes after the browse? 

This is the URL for album administration copied directly from the menu builder:

modules/?r=photos/albums/my/main/|modules/?r=photos/albums/my/add/|modules/?r=photos/albums/my/manage/|modules/?r=photos/albums/my/disapproved/

Geeks, making the world a better place
Quote · 28 Sep 2013

 

Browse photos from album "my"
 
That is what I got returned.  So how does that bleeding "my" work?  Is this coded somewhere and the reason I can't get it to work because it isn't coded for what I want?
 
I would not recommend Dolphin.  I wish I had never seen this bleeding programme.  There is almost no information on how any of this crap works.  The Boonex developers almost never come to the forums and if you google/bing you will find people asking questions that never got a response.  How many walked away when if they had gotten a bit of help they may have brought a license?
 
What the F good is it to have a menu builder if you don't know how to form the f-ing URLs?
 
Geeks, making the world a better place
Quote · 28 Sep 2013

Hey GG, I was trying to follow you here....

Just to verify---->We're talking about the "Photos" Sub-Menu item on the member's Profile Page......AND....Basically what you are wanting to do is by-pass the ALBUMS browse page and jump directly to the member's default album? The album that all members have before creating new albums?

Is that correct?

Quote · 28 Sep 2013

Well, if I'm following ya correctly, you certainly have one here that seems like it shouldn't be too hard to figure out...But, I've screwed around with it for a few hours without any luck.

I thought perhaps this would work- modules/?r=photos/browse/album/{profileUsername}-s-photos/owner/{profileUsername}

HaHa- Nope!

It was just a wild guess X~)

But seems someone here would know the correct way to form it?

Good Luck.

Quote · 28 Sep 2013

My Server is down right now, so i will try and look into it when i get a chance.

https://www.deanbassett.com
Quote · 28 Sep 2013

In photos under the pink My Profile.

Change the link from this.

modules/?r=photos/albums/my/main/|modules/?r=photos/albums/my/add/|modules/?r=photos/albums/my/manage/|modules/?r=photos/albums/my/disapproved/


To This.

modules/?r=photos/browse/album/{profileUsername}-s-photos/owner/{profileUsername}|modules/?r=photos/albums/my/add/|modules/?r=photos/albums/my/manage/|modules/?r=photos/albums/my/disapproved/

https://www.deanbassett.com
Quote · 28 Sep 2013

 

Well, if I'm following ya correctly, you certainly have one here that seems like it shouldn't be too hard to figure out...But, I've screwed around with it for a few hours without any luck.

I thought perhaps this would work- modules/?r=photos/browse/album/{profileUsername}-s-photos/owner/{profileUsername}

HaHa- Nope!

It was just a wild guess X~)

But seems someone here would know the correct way to form it?

Good Luck.

 
That should have worked. That's what i used and it worked fine.


https://www.deanbassett.com
Quote · 28 Sep 2013

Hmmm Interesting.....That worked just fine for me as well, when I change the existing "Photos" block under the pink "My Profile" set of menu items in the Navigation Menu Builder.

BUT----> If I drag a "NEW ITEM" block up to the top in the Navigation Menu Builder and create a menu item from scratch, it ends up displaying "Page Not Found" when I click that menu item.

Why would it matter?

Is there some kind of Parent/Child rule I'm overlooking or not quite understanding?

Good work though Deano, I wouldn't have thought to edit that existing photo menu item while testing :)

Quote · 28 Sep 2013

 

Hmmm Interesting.....That worked just fine for me as well, when I change the existing "Photos" block under the pink "My Profile" set of menu items in the Navigation Menu Builder.

BUT----> If I drag a "NEW ITEM" block up to the top in the Navigation Menu Builder and create a menu item from scratch, it ends up displaying "Page Not Found" when I click that menu item.

Why would it matter?

Is there some kind of Parent/Child rule I'm overlooking or not quite understanding?

Good work though Deano, I wouldn't have thought to edit that existing photo menu item while testing :)

 
I did both. It worked for me with a new item as well. My only guess is something must have been mis typed.


https://www.deanbassett.com
Quote · 28 Sep 2013

I gave up last night and have been on the phone for several hours today.  I will try what you gave and report back.

Question though, what is that original "my" stuff?  Is that something coded somewhere?  Perhaps set in the rewrite?  I thought Dolphin used "my" in the URL to determine that it was the profile owner's content. I did not try passing variables through the menu system because I did not think it worked that way. 

When is this new documentation that Andrew said was being written going to be released?  Too many newcomers; I have only been using Dolphin for about a year or so, are lost on a lot of how Dolphin works.  If there had been some documentation on how the menu system works, how the menu builder works, and what we need to do to create custom menus, then I could have just spend a few minutes reading and learned.

Geeks, making the world a better place
Quote · 28 Sep 2013

Question: I don't want the managed, disapproval; that was in the album administration.  Is this correct for what I want?

/|modules/?r=photos/albums/my/album_organize/|modules/?r=photos/albums/my/add_objects/|modules/?r=photos/albums/my/manage_objects/

Geeks, making the world a better place
Quote · 28 Sep 2013

The my is just part of the link for the albums page. And it only used on your albums page. for Albums main, Albums Add, Albums Manage, Disapproved albums.

Hey, don't feel bad. I have been here 6 years, and still don't don't everything. There are still plenty of areas in dolphin i do not know, and never will know. 

The links you pointed out for example. I do not know why there are 3 separated by pipes (|) and when and under what circumstances each is used. This is also new. Recent changes within the last few versions of dolphin. I don't remembers seeing them in older versions.

I do not think we will ever see full documentation that would also include details such as that. Dolphin documentation would be a book if they included everything.

https://www.deanbassett.com
Quote · 28 Sep 2013

 

Dolphin documentation would be a book if they included everything.

A developers book would be welcomed.  If someone wanted to start creating one, and could sell it as an e-book or even a pdf document; and one can password protect such for selling, I bet it would sell.  Even if it was done in sections; chapters, and updated over time.

Geeks, making the world a better place
Quote · 28 Sep 2013

There was a book for dolphin 6 written by James Tadeo of boonexnerd.com. http://www.lulu.com/content/5402903 more of a book for administrators, not developers.

I thought he was going to do a dolphin 7 version as well. But he may have given up that project.

https://www.deanbassett.com
Quote · 28 Sep 2013

 

There was a book for dolphin 6 written by James Tadeo of boonexnerd.com. http://www.lulu.com/content/5402903 more of a book for administrators, not developers.

I thought he was going to do a dolphin 7 version as well. But he may have given up that project.

The last time I visited his site, it still says coming soon.  It may still be in the works but who knows when it will be released.

Geeks, making the world a better place
Quote · 28 Sep 2013

It worked without the pipes; the menu, Main, Organize, Add Photos, and Managed Photos are present and work.  However, I noticed that if you organize and then hit reset, the photos are reset but the block comes back without content.  I will see what adding the pipes do.

Geeks, making the world a better place
Quote · 28 Sep 2013

 

 

Hmmm Interesting.....That worked just fine for me as well, when I change the existing "Photos" block under the pink "My Profile" set of menu items in the Navigation Menu Builder.

BUT----> If I drag a "NEW ITEM" block up to the top in the Navigation Menu Builder and create a menu item from scratch, it ends up displaying "Page Not Found" when I click that menu item.

Why would it matter?

Is there some kind of Parent/Child rule I'm overlooking or not quite understanding?

Good work though Deano, I wouldn't have thought to edit that existing photo menu item while testing :)

 
I did both. It worked for me with a new item as well. My only guess is something must have been mis typed.


Looking closer (Not that it matters a great deal)-----> It worked for me if I was on the Profile Page when I clicked that new menu item I created up in the main Navagation Menu...It took me to the correct page....

BUT, If I am on the Homepage of the site, and click that same new menu item I created, then it suddenly doesn't work and takes me to "Page Not Found" and this displays in the address bar- http://www.MY-SITE.com/m/photos/browse/album/{profileUsername}-s-photos/owner/{profileUsername}

Did you by chance check from a page other than the Profile Page when you clicked the menu?

Just Curious

Quote · 28 Sep 2013

 

It worked without the pipes; the menu, Main, Organize, Add Photos, and Managed Photos are present and work.  However, I noticed that if you organize and then hit reset, the photos are reset but the block comes back without content.  I will see what adding the pipes do.

 OK...So then we definitely need it to be the way Deano suggested-

modules/?r=photos/browse/album/{profileUsername}-s-photos/owner/{profileUsername}|modules/?r=photos/albums/my/add/|modules/?r=photos/albums/my/manage/|modules/?r=photos/albums/my/disapproved/

Yes?

I plan on doing this on my site to I think....Members have asked about adding photos before, and I know it's because the whole photos and albums management is like a spiderweb.

Quote · 28 Sep 2013

No. I did not.

But from the home page, that link should not exists. There is no Profile section with links on the home page. At least not on my site.

https://www.deanbassett.com
Quote · 28 Sep 2013

My Profile menu is different from Profile.  That menu item appears only to the profile owner when they go to view THEIR profile.  When someone clicks on another member's profile, they get the other menu links.  Not sure about Main Menu items.  See, this is where some developer guide would come in handy.

Now I did add some "Quick Post" menu items to the account page for my members that take them directly to "Add a Photo", "Add a Blog Post", etc that was hand coded that picked up their user name since they are on their account page. 

Oh, I bet that variable for the user name is not available from outside the profile page/account page?  You would need to get it from the session cookie?  So you might not be able to code one for the main menu bar?  Dean would be better able to answer that than me.

 

Edit: this brings to mind the other question I had.  What if the album name is not using the nickname of the user?  What if in the photo section I said to name the default album to "My Photos" with no nickname.  I am guessing that Dolphin would then default to the user's ID for the URL.  I am guessing that we replace {profileUsername}- with the user's ID code (profileID perhaps); which I don't know at the moment.

Geeks, making the world a better place
Quote · 28 Sep 2013

 

I plan on doing this on my site to I think....Members have asked about adding photos before, and I know it's because the whole photos and albums management is like a spiderweb.

Correct.  I am setting up a new site and trying to make management of photos and videos a bit easier.  Members have a hard time knowing where to go.  It should be a lot easier, one place where you manage both albums and photos.  We have one place for albums, another for photos.  The menu is just photos that takes you to your album management; then you have to click around.  I will two links, one for the album as the default, one for manage photos; rename Photos to Photo Album, add Manage Photos, or something along that lines.

Geeks, making the world a better place
Quote · 28 Sep 2013

 


Oh, I bet that variable for the user name is not available from outside the profile page/account page?  You would need to get it from the session cookie?  So you might not be able to code one for the main menu bar?  Dean would be better able to answer that than me.

 @Deano- "But from the home page, that link should not exists. There is no Profile section with links on the home page. At least not on my site."

I agree with that as well- I wouldn't put a menu item for that page out on the main navigation menu either...

I just did it for testing purposes to try to figure-out and follow what GG was wanting to do....So this is kinda one of those "Good" learning mistakes I guess :)

Now that I have played with this idea a bit though, I kinda feel I want to try to go a project of modifying or creating new blocks for managing photos and albums. Something more visually stimulating and/or (hopefully) less overwhelming/confusing. We understand it well enough, but I'm always wanting to find ways to make it easy as possible for new members to pick it right up. Sometimes that's as easy as icons and arrangement I suppose Undecided

Good Topic- Thanks GG and Deano :)

Quote · 28 Sep 2013

 

 

I plan on doing this on my site to I think....Members have asked about adding photos before, and I know it's because the whole photos and albums management is like a spiderweb.

Correct.  I am setting up a new site and trying to make management of photos and videos a bit easier.  Members have a hard time knowing where to go.  It should be a lot easier, one place where you manage both albums and photos.  We have one place for albums, another for photos.  The menu is just photos that takes you to your album management; then you have to click around.  I will two links, one for the album as the default, one for manage photos; rename Photos to Photo Album, add Manage Photos, or something along that lines.

 Ahhh- sounds like we're thinking similar here...Prolly a lot of people do and/or will feel the same...Sounds like some Tips and Tricks stuff will be on the table in the near future then Wink

Quote · 28 Sep 2013

I wanted to add this to the quick links but it is not working from the account page, the {profileUsername} is not being picked up.  Is there a way to get this to work from the quick link menu on the account page?  How does the {profileUsername} work?  I have played around a bit with member.php without any luck.

/m/photos/browse/album/{profileUsername}-s-photos/owner/{profileUsername}/

Geeks, making the world a better place
Quote · 29 Sep 2013

The keys are process by the code that generates the menu. Given the name, it's only available on the profile page.

You may actually want to check the link for the profile that was done when viewing someone else profile. It most likely changes to the name of the profile your viewing.

For other pages like the dashboard, try this instead.

/m/photos/browse/album/{memberUsername}-s-photos/owner/{memberUsername}/

https://www.deanbassett.com
Quote · 29 Sep 2013

No, that link won't show up on viewing another member's profile.  I added it the "My Profile" pink menu item; that menu only shows for the owner of the profile when they go to view it.  It is how the menu system changes from Viewing YOUR profile to viewing someone else's profile.

So basically I need to recode the main menu link.  Can I switch it to using the profile ID number?  Not as pretty in the URL but that really does not matter.  I would like a copy in the profile member and the quick links menu.  The other way would be to do it like I did it on another site and just code a PHP block of Custom Quick Links.

I don't really understand the {} keys and where they are stored and picked up.

Geeks, making the world a better place
Quote · 29 Sep 2013

Then the one i just provided should work in both areas.

/m/photos/browse/album/{memberUsername}-s-photos/owner/{memberUsername}/

The difference. memberUsername instead of profileUsername

But as for member ID's. I don't think that page was coded to accept member id's, so i don't know.

https://www.deanbassett.com
Quote · 29 Sep 2013

per code in BxDolMenu.php these seem to be the common ones.

        if (isMember()) {
            $this->aMenuInfo['memberID']   = (int)$_COOKIE['memberID'];
            $this->aMenuInfo['memberUsername'] = getUsername( $this->aMenuInfo['memberID'] );
            $this->aMenuInfo['memberNick'] = getNickName( $this->aMenuInfo['memberID'] );
            $this->aMenuInfo['memberLink'] = getProfileLink( $this->aMenuInfo['memberID'] );
            $this->aMenuInfo['visible']    = 'memb';
        } else {
            $this->aMenuInfo['memberID'] = 0;
            $this->aMenuInfo['memberUsername'] = '';
            $this->aMenuInfo['memberNick'] = '';
            $this->aMenuInfo['memberLink'] = '';
            $this->aMenuInfo['visible']  = 'non';
        }

And another section

        if($iProfileID > 0 && !empty($sProfileUserName) && !empty($sProfileNickName)) {
            $this->aMenuInfo['profileID'] = $iProfileID;
            $this->aMenuInfo['profileUsername'] = $sProfileUserName;
            $this->aMenuInfo['profileNick'] = $sProfileNickName;
            $this->aMenuInfo['profileLink'] = getProfileLink($iProfileID);
        } else {
            $this->aMenuInfo['profileID'] = 0;
            $this->aMenuInfo['profileUsername'] = '';
            $this->aMenuInfo['profileNick'] = '';
            $this->aMenuInfo['profileLink'] = '';
        }
    }



So, that translates to this that can be used in the menus. The the ones containing the word profile that will only work on the profile page.

{memberID}
{memberUsername}
{memberNick}
{memberLink}
{profileID}
{profileUsername}
{profileNick}
{profileLink}



https://www.deanbassett.com
Quote · 29 Sep 2013

/m/photos/browse/album/{memberUsername}-s-photos/owner/{memberUsername}/

Thanks, that works from both the Profile Page AND the account page quick links.

I buy you a beer LOL.

Geeks, making the world a better place
Quote · 29 Sep 2013

The {memberUsername} and {memberNick} are confusing as hell now.

When dolphin adopted the ability to change the display name instead of nick name in some areas they changes this, and i can't remember which does which. The dolphin function getNickName does not actually return the nick name it returns the title or user name which screws me up when writing mods because now i have to use the new function of getUsername if i want the actual nick name.

Really messed. I think they were saving themselves some work by not having to go through the code to change all of the function names. Lazy bastards.

https://www.deanbassett.com
Quote · 29 Sep 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.