Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder: Plugins & Add-ons:
Add to favorites HELP PLS & questions

 

 


thenetgirl
User

Mar 11, 2010, 6:02 PM

Post #1 of 21 (18723 views)
Shortcut
Add to favorites HELP PLS & questions Can't Post

I got the membership plugin just fine but the add to favorites seems to be giving me an issue

when you click add to favorites it gives me an error http://www.rentalsincarmel.com/VacationRentalsDetail.php?245D-1

I am not sure what is suppose to go here -
$recordNum = $record['num']; // Update this with current record number

<?php
$tableOrTag = 'vacation_rentals'; // Update with your section's table name
$recordNum = $vacation_rentalsRecord['num']; // Update this with current record number
?>

I put this but i think its wrong cuz when i look in the back end it says I have 1

but when i look at http://www.rentalsincarmel.com/MyProfile.php it says

You don't have any favorites yet.

Thanks


Chris
Staff / Moderator


Mar 12, 2010, 3:55 PM

Post #2 of 21 (18706 views)
Shortcut
Re: [thenetgirl] Add to favorites HELP PLS & questions [In reply to] Can't Post

Hi thenetgirl,

I'd like to try this out to see what error you're getting. Can you direct me to your signup form so I can login and try it?

Also, can you attach the full PHP source code for your VacationRentalsDetail.php page?
Chris


thenetgirl
User

Mar 12, 2010, 3:59 PM

Post #3 of 21 (18703 views)
Shortcut
Re: [chris] Add to favorites HELP PLS & questions [In reply to] Can't Post

http://www.rentalsincarmel.com/login.php


thenetgirl
User

Mar 12, 2010, 4:02 PM

Post #4 of 21 (18701 views)
Shortcut
Re: [chris] Add to favorites HELP PLS & questions [In reply to] Can't Post

Here ya go
Attachments: VacationRentalsDetail.php (14.2 KB)


thenetgirl
User

Mar 12, 2010, 4:28 PM

Post #5 of 21 (18697 views)
Shortcut
Re: [thenetgirl] Add to favorites HELP PLS & questions [In reply to] Can't Post

sorry you need this



http://www.rentalsincarmel.com/signup.php


Chris
Staff / Moderator


Mar 12, 2010, 5:12 PM

Post #6 of 21 (18696 views)
Shortcut
Re: [thenetgirl] Add to favorites HELP PLS & questions [In reply to] Can't Post

Hi thenetgirl,

I'm pretty sure this problem is being caused by extra newlines and spaces being returned by your webserver. I'd like to take a closer look and see if I can fix things.

Could you please fill out a second-level support request with your FTP information and mention a link to this forum thread in the comment?

https://www.interactivetools.com/support/email_support_form.php
Chris


thenetgirl
User

Mar 15, 2010, 3:46 PM

Post #7 of 21 (18630 views)
Shortcut
Re: [chris] Add to favorites HELP PLS & questions [In reply to] Can't Post

I posted the support request did you get it??


Chris
Staff / Moderator


Mar 15, 2010, 4:12 PM

Post #8 of 21 (18629 views)
Shortcut
Re: [thenetgirl] Add to favorites HELP PLS & questions [In reply to] Can't Post

Hi thenetgirl,

The problem was caused by extra newlines and spaces at the top of your VacationRentalsDetails.php page. It started like this:


Code
 



<?php
require_once "/home/mtyrents/www/rentalsincarmel.com/cmsAdmin/lib/viewer_functions.php";


and I changed it to this:


Code
<?php 
require_once "/home/mtyrents/www/rentalsincarmel.com/cmsAdmin/lib/viewer_functions.php";


Now it seems to work.

You may want to check your other pages to make sure they don't start out with whitespace.

I hope this helps. Please let me know if you have any questions.
Chris


thenetgirl
User

Mar 16, 2010, 11:45 AM

Post #9 of 21 (18616 views)
Shortcut
Re: [chris] Add to favorites HELP PLS & questions [In reply to] Can't Post

http://www.rentalsincarmel.com/MyProfile.php the remove feature dosent seem towork on this

I took out all extra code and still nothing I attached it.
Attachments: MyProfile.php (3.84 KB)


Chris
Staff / Moderator


Mar 17, 2010, 2:14 PM

Post #10 of 21 (18492 views)
Shortcut
Re: [thenetgirl] Add to favorites HELP PLS & questions [In reply to] Can't Post

Hi thenetgirl,

If you View Source, you can see the errors:


Code
Notice: Undefined variable: recordNum in /home/mtyrents/www/rentalsincarmel.com/MyProfile.php on line 56


You'll want to change $recordNum to $record['num'], or add a line to set $recordNum just after your first foreach:


Code
	<?php foreach ($favoriteRecords as $record): ?> 
<?php $recordNum = $record['num'] ?>


I hope this helps. Please let me know if you have any questions.
Chris


thenetgirl
User

Mar 17, 2010, 2:45 PM

Post #11 of 21 (18455 views)
Shortcut
Re: [chris] Add to favorites HELP PLS & questions [In reply to] Can't Post

THANK YOU THANK YOU THANK YOU ...................................You are the best I love working with you all & your products. Ok now I get to repeat this 3 more times.

I do have a request for future - I would love to see on the back end maybe a date last viewed so it doesnt get out of control.......... and I can delete them after a certain amount of time. This is a small site but the bigger ones will really get out of controll with user accounts.


Donna
Staff


Mar 17, 2010, 4:58 PM

Post #12 of 21 (18390 views)
Shortcut
Re: [thenetgirl] Add to favorites HELP PLS & questions [In reply to] Can't Post

Hi there -- glad to hear that's working! I'll pass your suggestion along. :)

Donna

--
support@interactivetools.com


Dave
Staff / Moderator


Mar 17, 2010, 8:36 PM

Post #13 of 21 (18281 views)
Shortcut
Re: [thenetgirl] Add to favorites HELP PLS & questions [In reply to] Can't Post

Hi thenetgirl,

>I would love to see on the back end maybe a date last viewed

Just so I understand this feature request, do you mean last login date, or date a favorite was last viewed, or something else? What's the use case?

Dave Edis - Senior Developer
interactivetools.com
 


thenetgirl
User

Mar 18, 2010, 11:55 AM

Post #14 of 21 (18136 views)
Shortcut
Re: [Dave] Add to favorites HELP PLS & questions [In reply to] Can't Post

I think the last login date would work.


Dave
Staff / Moderator


Mar 18, 2010, 4:19 PM

Post #15 of 21 (18129 views)
Shortcut
Re: [thenetgirl] Add to favorites HELP PLS & questions [In reply to] Can't Post

There's a note about that feature in the Website Membership readme.txt. It's easy to miss though as it's at the very bottom. Try this:

- Users with a 'lastLoginDate' date field will have that value updated every minute when logged into the website and accessing pages that include viewer_functions.php

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com
 


thenetgirl
User

Mar 21, 2010, 2:35 PM

Post #16 of 21 (14873 views)
Shortcut
Re: [Dave] Add to favorites HELP PLS & questions [In reply to] Can't Post

Ok I give up how do I make that work????


Chris
Staff / Moderator


Mar 23, 2010, 11:43 AM

Post #17 of 21 (14556 views)
Shortcut
Re: [thenetgirl] Add to favorites HELP PLS & questions [In reply to] Can't Post

Hi thenetgirl,

Just to clarify, this will keep track of when each user last logged into the website, not when favourites were last viewed.

To set this up, go into the User Accounts Section Editor:

Admin > Section Editor > User Accounts

Then add a date field, specifying "lastLoginDate" for both the Field Label and Field Name. The Website Membership Plugin will automatically keep it updated.

Does that help?
Chris


thenetgirl
User

Apr 3, 2010, 7:47 PM

Post #18 of 21 (12699 views)
Shortcut
Re: [chris] Add to favorites HELP PLS & questions [In reply to] Can't Post

I did add this a then i put it in searching and sorting where should I be able to see this its not on the user acounts page?



thanks

pg


Chris
Staff / Moderator


Apr 5, 2010, 2:16 PM

Post #19 of 21 (12590 views)
Shortcut
Re: [thenetgirl] Add to favorites HELP PLS & questions [In reply to] Can't Post

Hi thenetgirl,

You could try adding it to the ListPage Fields.

Wait, you added the field, but it doesn't show up when you click "modify" on a user account? Is that Correct?
Chris


thenetgirl
User

Apr 5, 2010, 2:27 PM

Post #20 of 21 (12588 views)
Shortcut
Re: [chris] Add to favorites HELP PLS & questions [In reply to] Can't Post

Correct no needs to see by the admin in the backend.


Chris
Staff / Moderator


Apr 5, 2010, 2:30 PM

Post #21 of 21 (12587 views)
Shortcut
Re: [thenetgirl] Add to favorites HELP PLS & questions [In reply to] Can't Post

Hi thenetgirl,

Well, that's very strange. Can I take a look?

Can you please fill out a 2nd Level Support Request with your Program Login Information (and optionally FTP information too) and mention the URL for this thread and my name in the comments?

https://www.interactivetools.com/support/email_support_form.php
Chris