Skip to Content Skip to Menu

[SOLVED] cb profile gallery edit tab

  • softwebgr
  • softwebgr
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
12 years 4 months ago - 12 years 4 months ago #202474 by softwebgr
[SOLVED] cb profile gallery edit tab was created by softwebgr
Hello

i would like to add the functionality of profile gallery profile tab into the edit tab

i mean that the user who wants to edit his profile shall edit his photos too

i have copied the code from
function getDisplayTab($tab,$user,$ui)
into
function getEditTab($tab,$user,$ui)

it shows the gallery into the edit tab
but it cannot upload the image


thanx in advance!
Last edit: 12 years 4 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 4 months ago #202481 by krileon
Replied by krileon on topic Re: cb profile gallery edit tab
You can't, that'd be a form within a form which is not valid HTML.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • softwebgr
  • softwebgr
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
12 years 4 months ago #202514 by softwebgr
Replied by softwebgr on topic Re: cb profile gallery edit tab
you say that because both have submit behaviour?

ok in this way i have managed to show the gallery into the edit tab, but when i upload a new image nothing happens. it says it was saved (like if i hit the submit button of the edit tab)

i don't use the submit button of the edit tab,
i just hit normal upload image button of the cb profile gallery
i think these are 2 seperate things and now there is a conflict with one another

i am trying to find a way to make this work , even with a workaround

i have noticed that it does not pass the checks of

function _pgProcessNewItem($id,&$user) of the cb.profilegalley.php

because something holds it back!
but i can normally delete a photo , updte or approve it!
the only thing that does not work is the upload!

Please Log in or Create an account to join the conversation.

  • softwebgr
  • softwebgr
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
12 years 4 months ago #202544 by softwebgr
Replied by softwebgr on topic Re: cb profile gallery edit tab
anyone?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 4 months ago - 12 years 4 months ago #202587 by krileon
Replied by krileon on topic Re: cb profile gallery edit tab
There is no solution, you can not do it. A form within a form is not valid HTML. Profile edit it self is a form. Then to upload a photo is a form. That's a form within a form.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 12 years 4 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • softwebgr
  • softwebgr
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
12 years 4 months ago #202595 by softwebgr
Replied by softwebgr on topic Re: cb profile gallery edit tab
thank you very much krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum