I am using the profile Edit Tabs with 7.1.4. My issue is that when going to the Profile edit page, the default tab is not the first tab. How can I make it so that the first tab is the default one?
I am using the profile Edit Tabs with 7.1.4. My issue is that when going to the Profile edit page, the default tab is not the first tab. How can I make it so that the first tab is the default one? caredesign.net |
I figured out how to change this. First,go to pedit.php (while logged in) and click the tab that you want set to default. Look in the address bar and you should have a url that is similar to this: http://yourdomain.com/pedit.php?block=110&ID=9 Then Find: $this -> iBlockID = $_REQUEST['block'] ? $_REQUEST['block'] : 17; on pedit.php and change the 17 to the number that corresponds to the block. In the above url example it is 110. Then save pedit.php and clear cache.
Now that I have that part out of the way, I am going to see what I can do to make an adjustment so that if you are looking at your profile page and you click edit for one of the blocks, it takes you to the corresponding edit tab. caredesign.net |
Quick update on this one. To make the edit links on the profile view page (when viewing your own profile) go to the corresponding profile edit tab, I did the following on BxBaseProfileView.php around line 220:
if ($bNoDB) {
add the piece in blue. caredesign.net |
Professor, are you rewriting and improving a module from the Market? Where is the vendor? LOL I was interested in the profile edit tabs module but was unsure how it works. Geeks, making the world a better place |
You know, I didn't even think of that. I know that this is only possible if you have made the changes that are outlined in the download of the "module". But it really is not a module. It is just a text file with the instructions of what code to add where on the original dolphin files. So, I did not even think of that. I went back and looked at the changes that have to be made to get the edit tabs, and fortunately, I have not exposed how to accomplish it. What I did reference to can not be found unless you have made the changes anyway. The default way that the profile edit tabs works is this. Instead of having a long 2 column form that a user would have to scroll through, the changes you make will turn each section into a separate page. This allows the user who is editing their profile an easier way to go through everything. Especially since each page is saved individually. You do not have to go through all sections to submit your data.
Now, on your profile page, as it stands by default, has edit links in the upper right corner of each block that you created using the builders - Profile FIelds - Profile View (Description is a different block type, so that one will not have the edit link). When you click any of these edit links, it takes you directly to pedit.php?ID=100000 (or whatever).
SInce I have the profile edit tabs, it would take me to the profile tab that had a block id number of 17. The 17 was a hardcoded number, and not based on what blocks you were actually using. I needed mine to go to block 110, so I had to change that. But what was really irritating is that EVERY ONE of the edit links on the profile page would take me to the same page. Which is annoying cause I still had to clink the link to go to the page I really wanted. So, my second change makes it so that when you click the edit link of any block, it will take you to the corresponding edit profile tab. caredesign.net |