top of page

Forum Posts

Said Thabet
Jun 10, 2023
In Coding with Velo
I'm facing an issue in Editor X and would appreciate your help in finding a solution. I'm trying to stop page scrolling when a lightbox is active on my site. I want to disable scrolling on the background page while the lightbox is open, ensuring a smoother user experience. I would greatly appreciate it if someone could guide me on the correct approach to achieve this functionality. Is there a specific method or code snippet that can help me accomplish this?
0
0
22
Said Thabet
May 09, 2023
In Coding with Velo
I have created data collection 'ExtraPostData' to add additional data to the blog posts with a reference field called 'post' to Blog/Posts collection I am trying to use the onPostCreated function to add the post to the 'ExtraPostData' whenever the post is created following the below code export function wixBlog_onPostCreated(event) { const postId = event.metadata.entityId; const memberId = event.entity.memberId; const postTitle = event.entity.title; return wixData.insert("PostExtraData", { _id: postId, post: postId, _owner: memberId, title: postTitle }) .catch(err => { if (err.errorCode === "WDE0074") { return Promise.resolve("Post_already_exists"); } }) } I have tried several events with the post field but it always shows an 'untitled post' of the post reference field such as event.metadata.entityId event.entity.title event.entity._id event.entity.metadata.id Nothing is working if there anyone knows what the event I need to use with the 'post' reference field
0
0
5
Said Thabet
May 01, 2023
In Coding with Velo
I would like to let members update their information through input elements and update button located on the My Account (Wix Member Area) page instead of using the default widget I learned that can be done using updateMember( ) API, but I don't know how to use it in my case I went through Velo API Reference "https://www.wix.com/velo/reference/wix-members-backend/members/updatemember?_gl=1*40vc7r*_ga*MjYzNDIzOTA1LjE2ODI5MTg5NDY." but there is no example to show ho to use it any advice?
0
0
12
Said Thabet
May 01, 2023
In Coding with Velo
I would like to let the members update their information through a custom form located on the My Account page instead of using the default widget, I learned that could be done using UpdateMember(), but I couldn't understand how to use this function on my case since there is no example on Velo API Reference any advice?
0
0
13
Said Thabet
Apr 27, 2023
In Coding with Velo
Greetings, I have a data collection named 'Resume' which includes a photo field and a reference field associated with Members/PublicData. My objective is to automatically update the member's profile photo, located in Members/PublicData, to the Resume collection whenever the member uploads or updates it. To accomplish this, I have created an after update hook on the PublicData collection. However, this implementation is not functioning as intended. I would appreciate any guidance or advice you can provide on this matter. Thank you. import wixData from 'wix-data'; export function Members$PublicData_afterUpdate(item, context) { const memberId = item._id; return wixData.query("Resume") .eq("member", memberId) .find() .then(() => { wixData.update("Resume", {photo: item.profilePhoto.url}) }) }
0
0
5
Said Thabet
Apr 26, 2023
In Coding with Velo
What kind of element I can use to input data into the Rich Content field Anybody can advise?
0
0
5
Said Thabet
Apr 25, 2023
In Coding with Velo
I have a form with over 30 input fields connected to data collection through a dataset. I want to auto-save the member input value onChange. I am using the below code which works perfectly, but the problem is that I need to write this code for each and every input field Is there any code that can achieve my requirements for bulk input fields instead of keeping repeat this codes export function currentPosition_change(event) { $w('#resumeDataset').save(); } export function resumeEmail_change(event) { $w('#resumeDataset').save(); } export function phoneNumber_change(event) { $w('#resumeDataset').save(); } export function aboutInput_change(event) { $w('#resumeDataset').save(); } export function businessWebsite_change(event) { $w('#resumeDataset').save(); } export function dateOfBirth_change(event) { $w('#resumeDataset').save(); } export function country_change(event) { $w('#resumeDataset').save(); } export function streetAddress_change(event) { $w('#resumeDataset').save(); } export function stateAddress_change(event) { $w('#resumeDataset').save(); }
0
1
16
Said Thabet
Apr 16, 2023
In Coding with Velo
I am using getMember( ) to create a custom profile page, and I am following the below Velo API https://www.wix.com/velo/reference/wix-members/currentmember/getmember If anyone can advise how to return the fields 'aboutPlain' and 'aboutRich' as it not mentioned on the API reference
0
0
6
Said Thabet
Apr 14, 2023
In Coding with Velo
I would like generate a unique anchor URL to share across platforms, so when visitors click the link, they're brought directly to the anchor on the web page, so they don't need to scroll to find information especially since I am going to use that for the documentation webpage I found the below article explaining how to do that in Wix Editor https://support.wix.com/en/article/wix-editor-linking-to-anchors-on-your-site How can I do the same thing in Editor X with or without code
0
8
42
Said Thabet
Apr 09, 2023
In Coding with Velo
I have created dynamic item and dynamic list pages related to Blog/Posts data collection as custom-designed blog pages, it's working perfectly, but when the email notification comes to the website members showing that a new post has been created, the emailed post linked to common post URL 'post/{Post Slug} I was trying to change the URL to be the same as the dynamic page I added through the website dashboard 'Settings for Blog Posts/Page URL' but I couldn't since the dynamic page URL in use How to solve this problem Thanks in advance
0
0
12
Said Thabet
Apr 09, 2023
In Coding with Velo
A custom data collection named 'PostExtraData' has been created to store additional fields related to a blog/post. A reference field has been added to the Blog/Posts collection to establish a link between the two data collections. The objective is to automatically add a post to 'PostExtraData' upon its creation. An attempt has been made to achieve this through a code implementation, which is not working. The issue seems to be related to the 'internal id' of the post, which is not explicitly documented in the Velo document. Therefore, advice is being sought to resolve this problem. export function wixBlog_onPostCreated(event) { return wixData.insert("PostExtraData", { _id: event.metadata.entityId, post: event.metadata.entityId}) .catch(err => { if (err.errorCode === "WDE0074") { return Promise.resolve("Post_already_exists"); } }) }
0
1
15
Said Thabet
Apr 07, 2023
In Coding with Velo
I'm currently using the Wix Members app to manage member data on my site. While I'm not utilizing the related widget, I have created custom elements to display and input member data. Specifically, I've connected these input elements to the PrivateData and PublicData collections through datasets. However, I'm encountering an issue where I'm unable to connect the input element to the member nickname. I'm looking for assistance with this problem and any guidance would be greatly appreciated. Thank you.
0
4
54
Said Thabet
Apr 04, 2023
In Site & Page Design
I am making a custom members area and I would like to add rich content to let the members talk about themselves by creating an excellent profile page that could contain formatted text, photos, videos ... etc I don't know how to create an input element to let the members add their content such as the pop-up one that comes out when you add those data directly to the rich content filed on the data collection Rich Content Editor if there anyone can help with that
Rich Content Input Element content media
1
3
65
Said Thabet
Mar 30, 2023
In Coding with Velo
Hi Everybody I am trying to use the below code to delete the item related to the member when this member was deleted from my 'Members' collection but it doesn't work, please help to find where is the problem I am using the Wix members area and 'Members' collection contain additional data with reference field to the 'PrivateMembersData' collection import wixData from'wix-data'; exportfunctionwixMembers_onMemberDeleted(event) { const deletionEventId = event.metadata.id; const entityId = event.metadata.entityId; wixData.remove("Members", entityId) .then(() => { console.log("Member record deleted successfully."); }) .catch((error) => { console.error("Failed to delete member record:", error); }); }
0
2
14
Said Thabet
Mar 25, 2023
In Coding with Velo
I am in the process of building a custom members area for my website, and I am wondering how to enable members to select and preview their avatar or background photos. I would like to provide users with the ability to either save or discard the changes, similar to the functionality available in the Wix Members App. I am using Editor X, and I have tried creating an upload button and connecting it to the dataset. However, I am struggling to implement the preview action before uploading the image. If anyone has any suggestions or guidance on how to achieve this functionality, it would be greatly appreciated. Thank you for your time and assistance.
0
0
26
Said Thabet
Mar 21, 2023
In Coding with Velo
I am currently encountering an issue with inserting the member ID into another data collection once the user signed up through a reference field. Specifically, I have attempted to use the afterGet hook based on the PrivateMembersData collection, but it appears to be ineffective. Upon further experimentation, I added the same code to an onClick button and found that it worked successfully. However, I am still unable to determine the source of the error in the initial implementation. I would greatly appreciate any assistance you can provide in identifying where the mistake may lie. Thank you for your time and support. import wixData from 'wix-data'; export function Members$PrivateMembersData_afterGet(item, context) { const memberId = item._id; wixData.insert("AvailableForWork", { member: memberId }) .then(() => { console.log("Member ID inserted successfully"); }) .catch((err) => { console.log(err); }); }
0
10
53
Said Thabet
Mar 18, 2023
In Coding with Velo
I am trying to use wixData.query() with some collections, please advise how to get the collections IDs since it's hidden in Editor X, for example Blog Collections Categories Posts Tags Forum Collections Categories Comments Posts and all other data collections
0
6
29
Said Thabet
Mar 17, 2023
In Coding with Velo
Due to some limitations on the Wix Forum App, I want someone can help by advising me on how to set forum permission to allow all the login members to only can see one category posts, but can't post or comment On another side only selected members or subscribed members can post in this category I can see 3 options on the Wix Forum app under "Who can access this category?" - Everyone - Logged-in members - Selected members If I select Logged-in members and that is what I am looking for, I found that there is no option to allow/not allow members to comment I can see 2 options on the Wix Forum app under "Who can post in this category?" - Everyone with access. - Admins and moderators only. If I select Everyone with access, all the Logged-in members will be allowed to post under this category, and if I select Admins and moderators only, only I and the moderators can post under this category So how I can allow specific members to post in this category?? Also there are other problems with monetizing categories, I would like to get paid to allow members to post under specific categories "Such as promoting their business or products, and of course, we need everyone to see those posts. but what is happening when I monetize the category, is the category will become private and only payers can see the posts !!! How come? Is there any code that can solve this problem
1
0
43
Said Thabet
Mar 15, 2023
In Site & Page Design
I am interested in creating a custom members page on my Editor X website. I have successfully connected the member's data collection to a repeater using the dataset element. However, I am unsure how to add a follow button to allow members to follow one another. Also how to add button linked to the member profile Could you kindly advise me on the appropriate steps to take and whether any code is required?
0
2
26
Said Thabet
Mar 11, 2023
In Site & Page Design
I am currently working on a project where I am using a code to load additional data to blogs/posts stored on a created data collection. I am now facing an issue with displaying the data stored on the rich content field through the rich content element. I would appreciate your guidance in identifying the property that I should use with the rich content element to achieve this. I would be grateful if you could provide me with your expert advice on this matter. Below is the code I am using now, the problem on the last line import wixData from 'wix-data'; import wixLocation from 'wix-location'; let currentPost; $w.onReady(async function () { const postData = await $w('#dynamicDataset').getCurrentItem(); currentPost = await loadExtraPostData(postData); assignPostDataToUIElements(); }); let currentPost; $w.onReady(async function () { const postData = await $w('#dynamicDataset').getCurrentItem(); currentPost = await loadExtraPostData(postData); assignPostDataToUIElements(); }); async function loadExtraPostData(postData) { const postDataFromCollection = await wixData.query('PostExtraData') .eq('post', postData._id) .find(); const extraData = postDataFromCollection.items[0]; return mergePostData(postData, extraData); } function mergePostData(post, extraData) { return Object.assign({}, post, extraData); } function assignPostDataToUIElements() { $w('#shortDescription').text = currentPost.shortDescription; //adv1 $w('#adv1Image').src = currentPost.adv1Img; $w('#adv1Title').text = currentPost.adv1Title; $w('#adv1Text').text = currentPost.adv1Text; //adv2 $w('#adv2Image').src = currentPost.adv2Img; $w('#adv2Title').text = currentPost.adv2Title; $w('#adv2Text').text = currentPost.adv2Text; //adv3 $w('#adv3Image').src = currentPost.adv3Img; $w('#adv3Title').text = currentPost.adv3Title; $w('#adv3Text').text = currentPost.adv3Text; //try $w('#richContentAdv1').postData = currentPost.adv1; }
0
3
60

Said Thabet

More actions
bottom of page