By Ashley Rosenthal on Friday, 27 December 2013
Posted in General Issues
Replies 30
Likes 0
Views 725
Votes 0
Hello,

I was wondering if you could tell me which php file in easysocial holds the Custom Fields (for the User Registration). I would like to add some code that will allow my registration to be more specific to the users needs and allow them to customize what appears on certain pages of their personal page.

Thank you!
Ashley
Hi,

What are you looking to customize? Adding text to the registration page or edit page? Adding text into a particular field?
·
Friday, 27 December 2013 10:43
·
0 Likes
·
0 Votes
·
0 Comments
·
What I have on the registration page is a series of checkboxes. These checkboxes are all of the blog categories that the users can choose to have them appear on their main page. Because we have dozens of categories, we would like users to select the top 3 categories that they are most interested in to appear on their main page. If I can access the php file for these checkboxes (i.e. the custom fields registration php), then I can insert some commands to pull the specific blog category minifeed and place them on the users main page (using if/else php statements). I am just having trouble locating the php file that I need.

Thank you,
Ashley
·
Friday, 27 December 2013 11:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

The checkbox is a general checkbox field. This means if you were to alter the codes for the checkbox field, this will affect all other checkbox field.

You can however, duplicate the whole checkbox field, and rename all keywords of Checkbox to another word to create a new field, that way you can manipulate the field and add it to the profile.

The codes are at /media/com_easysocial/apps/fields/user/checkbox

If you need code guide on the field, do let me know (as I am the lead developer for the fields area).
·
Friday, 27 December 2013 11:58
·
0 Likes
·
0 Votes
·
0 Comments
·
I appreciate all of your help, I am not sure if I am doing a great job of explaining myself. We have several different minifeeds that are specific to each category of blogs that we have. I was hoping that upon registration, users could select 3 categories of blogs that they are most interested in, and that by checking the box next to the category they are interested in, that category's minifeed will show up on their home page. That way they don't have to have EVERY single minifeed show up on their main page, just their 3 favorite categories. Again I am very thankful for all of your help!
·
Friday, 27 December 2013 12:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I understand what you mean here.

The checkbox field itself doesn't do this by default. Unless you manually add the option in one by one in the checkbox field config panel. This part can be done without code hacking.

The part you need however, is to get the data of this field.

If you intend to code this part:

1. Add the checkbox field into the profile, click on it to load the config, add all the necessary options, and in the advance tab, give a unique key (for later retrieval purposes).

2. To get the value of what the user has selected, use this code:


Foundry::user()->getFieldValue('unique_key');


The second part depends on where you are displaying your minifeeds though. If the minifeeds are in EasySocial, then you will need to custom code an EasySocial applications that gets the value (as in point 2), and display the necessary feeds.
·
Friday, 27 December 2013 12:25
·
0 Likes
·
0 Votes
·
0 Comments
·
I can sort of follow what you are saying here, but I was wondering if it would be possible for you to add me to Skype so I could ask a few more detailed questions about this process. My skype name is [removed and placed by moderator in optional information for user protection]. Thank you!
Ashley
·
Saturday, 28 December 2013 06:10
·
0 Likes
·
0 Votes
·
0 Comments
·
If you don't mind, I would like to elaborate on my question. The minifeeds that we had for each different blog category are not working with our website anymore. Every time that we publish one of them to a module, our entire site goes completely white, no errors, just white. We are using Arra Modules (from Joomlarra). You wouldn't know why this is happening would you? They have not responded in nearly a week.

In case these modules aren't able to work, I was thinking that I could just create a page for each blog category and link it to the checkboxes in the registration page. Is that doable? Please advise.

Thank you
Ashley
·
Monday, 30 December 2013 10:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

1. I can help you see what is going on with the modules if you could provide me an FTP access.

2. As above, you will need to custom hack the checkbox field (by creating a new field app).
·
Monday, 30 December 2013 10:31
·
0 Likes
·
0 Votes
·
0 Comments
·
I use Godaddy.com for FTP, my login is ------------------------ ... click on Visit My Account -- Web Hosting -- Launch -- File Manager to access my files. The modules that I had custom made are ARRA modules. They are under mod_arraarticles. Thank you very much for all of your help!
·
Monday, 30 December 2013 12:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Here are my hidden login credentials. Thank you!

The modules that I had custom made are ARRA modules. They are under mod_arraarticles. Thank you very much for all of your help!
·
Monday, 30 December 2013 14:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I've created a temporary FTP account under the username stackideas for easier access and debugging.

However, could you assist me in 1 thing? Create the ARRA module that will causes your site to go blank, and leave it unpublished.
·
Monday, 30 December 2013 15:25
·
0 Likes
·
0 Votes
·
0 Comments
·
There is a module saved as ARRA Articles. When published, the site goes blank. A new message has appeared when you open the ARRA Articles Module:

Strict Standards: Only variables should be assigned by reference in /home/skill123/public_html/modules/mod_arraarticles/fields/idslist.php on line 32

Strict Standards: Only variables should be assigned by reference in /home/skill123/public_html/modules/mod_arraarticles/fields/layout.php on line 33

Strict Standards: Only variables should be assigned by reference in /home/skill123/public_html/modules/mod_arraarticles/fields/layoutname.php on line 31

I have not seen this error message before. The reason this module is so important to us is that it was custom made to a layout that my partner designed AND it is capable of pulling all of the posts from a single category. This is vital to our website's structure and workflow for the user. We need to be able to have modules that retrieve posts from a single easyblog blog category. I am very thankful for your help in solving this matter! The ARRA people have not responded in over a week. They were very helpful at the beginning and I am not sure what happened to them.

Thanks again!
Ashley
·
Monday, 30 December 2013 23:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashley,

I tried to access the site but the ARRA Articles module is not published on any position. Can you please set the position accordingly?
·
Tuesday, 31 December 2013 12:52
·
0 Likes
·
0 Votes
·
0 Comments
·
When I publish the ARRA article my entire website goes completely white on the front end. Because I have people working on template layout and customization, I do not want to keep it published for an extended length of time because they will not be able to check their changes on the front end while they are working on it. If you would like to publish it temporarily to a position to see what happens, you may publish it to Position 2 on the JA Bookshop template. Thank you!
·
Wednesday, 01 January 2014 00:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I've help you patched a Fatal Error in the Arra Module in the file /modules/mod_arraarticles/mod_arraarticles.php (line 15 to 23) and the module can be published now without your site going into a blank page. You can read the commentary I've made in the file for more information.
·
Wednesday, 01 January 2014 11:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Also, I've deleted the stackideas FTP account on your site.
·
Wednesday, 01 January 2014 11:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you so much!
·
Thursday, 02 January 2014 12:52
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Ashley, glad that your issues are resolved now
·
Thursday, 02 January 2014 13:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason! You've become somewhat of my easy blog post go-to support person, I hope that's alright! I am looking at the PHP file now for the mod_easysocial_easyblog_posts (I've attached a screen shot of the code I am considering), and I'm wondering if there is a way to create other blog post modules by altering the code where it says 'sorting' 'latest'.

Other minifeeds I would like to be able to display, for example, would be showing a random assortment from the top 20% of posts based on the star ratings. Another minifeed module I would like to be displayed would be for only posts from a specific blog category. A final minifeed would be to show recent posts from the users friends. Please let me know if you have any questions about what I am trying to accomplish, and if this is possible. Thanks so much!
·
Friday, 03 January 2014 04:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

We actually have different teams working on supporting different products (while I mainly only focus on EasySocial and Komento). It would be best to create a new thread in EasyBlog section for issues regarding EasyBlog.

I don't seem to see any screenshot from your post, and yes it is possible but we do not provide such customisation (especially if it involves heavy coding as we would like to focus on our on going development instead).

Unfortunately the module currently does not support all 3 criteria that you've outlined.
·
Friday, 03 January 2014 11:54
·
0 Likes
·
0 Votes
·
0 Comments
·
I will create a new thread, thank you for all of your help!
·
Saturday, 04 January 2014 02:52
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem
·
Saturday, 04 January 2014 04:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Jason Rey wrote:

Hi,

I understand what you mean here.

The checkbox field itself doesn't do this by default. Unless you manually add the option in one by one in the checkbox field config panel. This part can be done without code hacking.

The part you need however, is to get the data of this field.

If you intend to code this part:

1. Add the checkbox field into the profile, click on it to load the config, add all the necessary options, and in the advance tab, give a unique key (for later retrieval purposes).

2. To get the value of what the user has selected, use this code:


Foundry::user()->getFieldValue('unique_key');


The second part depends on where you are displaying your minifeeds though. If the minifeeds are in EasySocial, then you will need to custom code an EasySocial applications that gets the value (as in point 2), and display the necessary feeds.




Hello,

Coming back to this quote above, I am still working to find a way to have users select certain blog categories to "subscribe to" during the registration process. You said that the second part depends where I am displaying the minifeeds. I would like the subscribed to minifeeds to appear on the main home page after users login. Is this possible to do still? Also I have noticed a new menu option that allows users to subscribe to specific blog categories. Is there a way to just incorporate this in the registration and have the "subscribed-to" minifeeds appear on the users home page?

I have tried asking this in many different ways and I still have not been given an answer that directs me to which specific files I would go to to customize the registration in regards to easyblog categories. Also, in my PHPAdmin Database tables, I see no EasySocial or EasyBlog files. Where would the database tables for EasyBlog/EasySocial be stored?

Thank you,
Ashley
·
Thursday, 09 January 2014 11:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

1. EasyBlog tables are #__easyblog_* while EasySocial tables are #__social_*

2. Are you refering to EasyBlog's menu option that allows user to subscribe to specific blog categories? If so we currently don't have a field to do this yet in EasySocial.

3. For example, if you are using a Checkbox field in the custom fields, and giving it a unique key of "EASYBLOG_FEEDS", to get the value of the user's selected option, you just need to call this code:

Foundry::user()->getFieldValue('EASYBLOG_FEEDS');


This will return you an array of the values selected by the user.

As for where you are supposed to place this code, this part however, relies on how are you structuring your website.

For example, if you have 5 EasyBlog feeds modules published on your front page, the module itself does not have settings/feature to check against what user have selected. You will have to go to the module file at /module/mod_module_name/mod_module_name.php and call the above code and do the checking there to decide if the module should appear or not.

Please take note though, as much as we can assist with how to code and how to utilise the API, we do not provide customization.
·
Thursday, 09 January 2014 12:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much for your thorough response, I have been looking for these tables: 1. EasyBlog tables are #__easyblog_* while EasySocial tables are #__social_*, and I searched through my entire file manager, php manager, and mysql manager on godaddy and was unable to find them. Would you know where they might be stored if I use godaddy/joomla as a hosting agent?

Thank you again!
·
Friday, 10 January 2014 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashley,

So sorry for the delay in getting back to you. Please go to your Godaddy site cPanel and click on this

http://screencast.com/t/8ffjMYG1

Then on the right click on your database name and the tables are there. i checked for you. Hope this helps.

Thanks!
·
Friday, 10 January 2014 16:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Found the necessary tables, thank you!

Now I've been doing quite a bit of homework: I studied the tables, the phpadmin & mysql, revisited my old php books, and studied the custom ARRA modules that we are using (because they display individual easyblog categories). What I was able to come up with is currently just saved as a text file, but I was informed by a colleague that I should create my own file that conducts an sql fetch of the custom fields for each value that was assigned (to each category that the users could click a checkbox for).

Then they said that I could use a while statement to say that while that "value" (for the blog category they checked during registration) existed, to then echo the specific ARRA module using the jmodulehelper.

I decided for the sake of organization to assign the variables for the modules all at the top and then echo the variable below each sql search.

Would you mind taking a look at the attached document to see if this looks usable, there is another explanation of what the purpose is at the top of the document.

Then, if you would please advise where I should insert this file so that the desired results will be carried out.

Thank you very much!!
·
Sunday, 12 January 2014 13:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashley,

Where are you trying to place this? I really don't quite get what this do because looking at the code, it seems like you are trying to display the module if the user is tied to a specific field?
·
Sunday, 12 January 2014 13:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes that is exactly what I'm trying to do. I am using the information users give during registration to determine which minifeeds will show up on their home page after login. Sort of like the subscription idea, but I want these modules to appear as individual minifeeds on the homepage.

I am actually not sure where to place this file. That was part of my question. In order to get these modules to show up on the home page after login, where would I have to place this file?
·
Sunday, 12 January 2014 23:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ashley,

If you want the modules to appear during registration, the file that you should be adding to is located in /components/com_easysocial/themes/wireframe/registration/default.steps.php . Also, you don't really need to re-initialize the entire database process to actually get what you need. I am not too sure if this works but looking at it, I think you are trying to fetch stored user data which means they need to be registered on the site.

By the way, in the future, please do create a new topic for each of your issues rather than posting them all in one thread. It makes things really difficult to track as I have to go through every single reply to really get to your issue
·
Monday, 13 January 2014 01:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post