Edit profile / View profile HTML Block

I want to make a HTML Block with a button ( icon ) to view someone's profile ( if you visit someone's profile ) or edit your profile ( if you're on your own profile page )

How is that possible?

Below a preview of the button I want...

HTML Block with in the middle a icon and in the left bottom the description.

 

Quote · 24 Sep 2012

Can any body help me?

Quote · 26 Sep 2012

Hello

What should exactly the button do? If it's a static Button which is the same for all profiles then you may create such block via admin panel -> builders -> pages blocks -> profile page. You just need to create an HTML block with this button using "HTML Block" sample.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 26 Sep 2012

(1) Place a html block on the page. (you can turn off the borders and title using block tools if you wish).

(2) Create an image with a mouseover (second image).

(3) open firebug and track down the code needed to do what you want. It is usually somewhere in an action button anyway.

(4) edit the button and click edit inhtml and past the code in there.

 

or if you kust want a button thoat goes to edit profile, then you when you edit the button you can just insert a url to member/profile/edit... i think...

 

I did similar functionality on my site yesterday : )

Quote · 26 Sep 2012

It must be in the same HTML Block.

- If you visit your own profile page --> you see the edit profile icon

- If you visit a other members profile page --> you see another icon

Quote · 26 Sep 2012

ou can just create the image for the button, place it int he block and edit the buttos htlm in tinymce -

try adding the code: onclick="window.open ('http://YourSitesNameHere.com/pedit.php?ID=1','_self');

 

It should take you to edit your own profile when it is clicked... hopefully.

Quote · 26 Sep 2012
[Topic Moved]
Quote · 26 Sep 2012

 nop. it will take you to the profile id 1 edit page (admin)

ou can just create the image for the button, place it int he block and edit the buttos htlm in tinymce -

try adding the code: onclick="window.open ('http://YourSitesNameHere.com/pedit.php?ID=1','_self');

 

It should take you to edit your own profile when it is clicked... hopefully.

 

so much to do....
Quote · 26 Sep 2012

I can't understand what you are asking for? On profile page a button to view profile?? lol doesn't make sense

so much to do....
Quote · 26 Sep 2012

Yea, it does not make sense to me either. However. This right here.

It must be in the same HTML Block.

- If you visit your own profile page --> you see the edit profile icon

- If you visit a other members profile page --> you see another icon

Cannot be done with a html block.

You want a different icon to appear if a member is viewing their own profile vs viewing someone elses.

That requires coding as you have to do something different depending on the situation. This will require a PHP block. Not a HTML block.


https://www.deanbassett.com
Quote · 26 Sep 2012

I can put that in a PHP block if that work better...

Quote · 27 Sep 2012

 what you want? please tell in details.

I can put that in a PHP block if that work better...

 

so much to do....
Quote · 27 Sep 2012
 
 
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.