Hello everyone, I fired off an email to the contact us page to ask a question and was directed to post it here.
Me wrote: I got the email about the new CB Field Groups; I have a question about if something is possible; an automatic Find and Replace function.
I have a site that makes youtube videos about wood working, on the profiles users can list their tools by category, I want to have users add a tool to their list on the profile (through the new CB Field Groups), then I be able to search the list, then replace their text with an affiliate link to an amazon page. maybe a CB Auto Actions function?
Thanks and I hope to hear from you soon.
EmailReply wrote: Hi,Thanks for contacting us. Your question is interesting and its answer could certainly be useful to many other persons. But you have used the private contact form that is for any payment-related or private communication, and our department can't answer your technical question.
Please use our forums for any technical question, bug reports (except for security-related ones): [Removed info about what to post where to save you some reading]
Best Regards, Joomlapolis sales administration
Basically I am wanting to have tabs (each tab a category or type of tool) on the profiles where a user can post (text) of what tool they are using. I can then search the CBFGs and replace their text with a link to an amazon affiliate link.
What I would like better is if auto actions could do that for me. I have an idea of how to make that work but I do not know if the functionality is there (this will be my first time using auto actions) (waiting for payday to renew my professional membership) (If the functionality is not there, I would like to suggest this function).
I don't speak programmer so I hope I can explain this well enough:
Establish a "Type" of action called "Field Group Find and Replace": This would allow for a place where the admin can have a list of terms, and what to replace them with (that would be the parameters page on this type of action). An example based on the site I am putting together could be Term: DEWALT 12-in Miter Saw; Replace-Type: Link; Replace-with: [TEXT][LINK]
-On profile save (trigger)
--Check to see if text has been entered in the CB-Power-Tools-Field-Groups
-- --If No, do nothing (action complete)
-- --If Yes
-- -- --Compare input text to (Parameters list)
-- -- -- --If text matches replace with new term
-- -- -- --If text does not match
-- -- -- -- --Display input text on profile tab ; email admin: [USER] has added a product [INPUT-TEXT] to their [TAB-NAME] that is not in the database. Please update.; Admin adds the new information to the parameters page for the action, then opens the user's profile in the CB-backend and saves (retrigger).