Social Media

5 posts by 3 authors in: Forums > CMS Builder
Last Post: October 1, 2009   (RSS)

Re: [rentittoday] Social Media

By Kenny - September 26, 2009

I'm not quite sure if this is what you are asking for but, look at http://www.cleburnehighschool.com and tell me if that is close.


Kenny

Re: [rentittoday] Social Media

By Dave - September 28, 2009

Hi Jason,

I think the user login and user profile parts of your site are custom done, but if it's similar to what we usually do you can display fields from the user who created a record like this: <?php echo $record['createdBy.username'] ?>

So if you added a field to user accounts called youtubeLink you could display it like this: <?php echo $record['createdBy.youtubeLink'] ?>

Note that I'm not sure exactly how things are setup on your site so you may need to have a developer experiment with it for a while to figure it out.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Social Media

Hi Dave,

This is Lauren, now. :)
I tried the code in our details page but it did no work.
I also tried pulling the records,
list($accountsRecords, $accountsMetaData) = getRecords(array(
'tableName' => 'accounts',
));

Neither worked.

In the page where the users can edit their account info, which we did custom, , I have created an if/then statement, that displays a social media logo in one column or another. For example, if the user has entered their social media details for say, Myspace it shows up in the "My Social Media" column and is linked to their page. If they had not entered it, the logo shows up in the Join? column and links to myspace.com. That works perfectly.


If we made users enter that info into every listing we could get it to work perfectly! However, when users have hundreds of listings we do not want to have them enter (or copy/paste) that info every time.

Also, in a perfect world we could use the accounts table to pull the users company info from the accounts table and put it on the details pages, instead of making them enter that into every listing in CMS as well.
Could be one of those multi-table or records issues?

Thanks again for any input!
Jason Glass

Re: [rentittoday] Social Media

By Dave - October 1, 2009

Hi Lauren,

I can't really say without seeing the code. If you are using the latest CMS Builder you can see all the fields available in a record or variable with this code though:

<?php showme( $record ); ?>

Just replace $record with the variable you want to examine. If the value you need is set in the record that will show it.

Otherwise, the next step would be some custom programming to look at exactly what's there now and what needs to be added.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com