View Full Version : Some questions about 4.0


gijs
02-26-2005, 01:22 PM
I upgraded today. Installation was ok. But:

1.
How can I avoid that people has to give their complete name, adress, street, state etc etc at registration? (before it was possible to skip by making these fields hidden).

I would have the possibility that people just give a user name and emailadres.

2.
Posting messages I receive them only in the Classifieds4.0 mailbox and not in my normal pop3 mailbox. Normal or installation problem/bug?

Thanks,

Bert

Jafo
02-26-2005, 04:14 PM
You can still make the fields hidden if you want.

Messages will go go your class4 inbox, and if you choose, will also notify your by email if you turn that setting on via the users settings (my settings).

gijs
02-27-2005, 07:54 PM
Thanks Jafo, I found. See http://www.nauticlink.com/vaarmarkt/

But now another one: I copied ads to the new system on the password and login of the owner.
Why is the owner not able to edit/delete an add once posted? When I log in as the owner, click on 'my ads' and click on the ad, I see no hyperlink to edit or delete.

How come?

Bert

Jafo
02-27-2005, 09:04 PM
I am not sure what you mean by "I copied ads to the new system on the password and login of the owner."

???

gijs
02-28-2005, 04:13 AM
Jafo,

Well I just made an account with a username and the password. I logged out and in and placed an add. Then I logged out again and made another account, placed an ad... and so on.

When I log in afterwards I'm recognised on the right name. And I see the right Ad in My Ads. But (apparently) as the owner I don't get the delete and edit link. I think it has something to do with the cookies
(Is_Item_Owner($ad_number,$_COOKIE[$cookieprefix . 'name'])

How can I check the cookie? Or what do you advise?

Logged in as Admin everything works fine.

Bert

gijs
02-28-2005, 04:57 AM
Jafo,

Perhaps this helps you: I tried to rate some ads, but I do not see appear them in the 'highest rated box'.

If it is a cookie issue, you might have to know that www.nauticlink.com is running on a virtual server, and that in reallity it runs on nauticlink.amaze.nl. So far I never met a problem due to this (as far as I know...;))

Trie otherwise yourself in http://www.nauticlink.com/vaarmarkt/ It's Dutch but you should recognise... Mail me for the admin password if you want: schipper@nauticlink.com

Thanks

Bert

Jafo
02-28-2005, 06:02 AM
Well as far as the ratings, you will need to check this variable: min_ratings in the change settings section of the admin control panel:

"How many times an item must be rated before it can be included in the highest ratings listing."

As for your other issue, I have a feeling you left something out when you edited either the default template, or the header. Please try uploading both originals from the zip file and see if the user can then edit the ad.

gijs
02-28-2005, 07:19 AM
Jafo,

Happy with your fast answer. For the rating thing I should have found it myself indeed. Sorry. It works fine.

BUT
The other thing is not working.
The script is running now with the original
register.php
header.php
default.php

I made a new account: login=schipper password=nautic. Posted a new Add. But the effect is the same. No links appear. If the cookie is not set, it should not recognize the right ad neither?

BUT:
I see now that the 'register_globals On On' are on. Could that be the reason?

Bert

Jafo
02-28-2005, 01:12 PM
Im sorry, but this cannot be the original, because the menu is incorrect on the left side, in fact, it looks like you took both header.htm files from the templates and admin_templates folder and combined them?

gijs
02-28-2005, 01:23 PM
Good Morning,

Jafo, my provider set the Register Globals off. But it unfortunately it doesn't help... I hope you have a suggestion

Bert

Jafo
02-28-2005, 01:24 PM
Please read my last post.

gijs
02-28-2005, 01:28 PM
Jafo,

I see what you mean. Strange, because I did not touch the admin templates. I'll try to correct it and will come back to you

Bert

Jafo
02-28-2005, 01:29 PM
I suggest you just delete the templates folder, and upload the original.

gijs
02-28-2005, 02:06 PM
Jafo,

Although I thought I did not touch the admin header. I did...
But the problem is the same
Bert

Jafo
02-28-2005, 02:12 PM
Make a copy of your script. Upload EVERYTHING new including the css files, everything EXCEPT your config.php file.

gijs
02-28-2005, 02:56 PM
Jafo,

I agreed. So I replaced all the templates as you said. But it did not change: I still don't see the links, even after having posted a new ad after re-uploading the complete template dir

Bert

Jafo
02-28-2005, 02:58 PM
Ok, I have been checking your site, I do not see where you have re-uploaded. I need to see this with all the original files to help, not anything edited. Please make a backup of your current script, then re-upload EVERY file from the original EXCEPT the config.php so I can see it.

gijs
02-28-2005, 03:03 PM
OK, I'll start all over again and will keep you posted...

Bert

gijs
02-28-2005, 03:40 PM
Jafo,

I replaced the whole directory. Same problem. What to do now?

Bert

Jafo
02-28-2005, 03:50 PM
Actually hold off on that..


This doesnt fix it..

Jafo
02-28-2005, 04:00 PM
Ok, here is the fix.. Open functions.php and find the function called Is_Item_Owner and find these lines:

function Is_Item_Owner($item,$user) {
$dbh = dbconnect();
global $dbprefix;

ADD This line:

$user = Get_User_ID($user);

Open index.php and find these lines:

if (Is_Item_Owner($ad_number,$_COOKIE[$cookieprefix . 'name']) or Is_Admin()) {

Change that to:

if (Is_Item_Owner($ARGV[1],$_COOKIE[$cookieprefix . 'name']) or Is_Admin()) {

That should take care of it. I apologize for any inconvenience there. When you are logged in as an admin, you dont see this.

gijs
02-28-2005, 04:06 PM
Jafo,

Yes, we are in progress. Because the link is there, but clicking it, it says that it is not my ad...

BTW: How come that it did not occur before?

Bert

Jafo
02-28-2005, 04:08 PM
Which fix did you apply the one I deleted or the new one I just posted?

gijs
02-28-2005, 04:18 PM
Jafo,

Now it works... more or less simultaniously ;-)

I understand that it remains hidden for the admin, but why other clients/testers did not found it?

Anyway: how works the function to retrieve a lost password? There is a message to reset a userpassword. But where can the user find it, when he doesn't remember his password before logging in? There is no link anywhere

Bert

Jafo
02-28-2005, 04:27 PM
When you enter your enter the email address to reset the password, and email is sent to that address with a link (providing you did not edit it out). When the user goes to that link, it resets the password and emails them the new one.

tradesort
02-28-2005, 04:44 PM
gijs,

Sorry to interupt your help session, but wondering how you placed your custom header without messing up the templates? I tried and it threw everything into vertical tables. Thanks for your time.

TradeSort.com

gijs
02-28-2005, 05:41 PM
Jafo,

I found it. LostPassword did lost it's new line during the translation. And then there is nothing between the <a href></a>... Details...

Bert

gijs
02-28-2005, 05:44 PM
Tradesort

You can change it in the header (and other templates) in combination with the .css file. It's taking a little bit more time and is more complicated as isolated html, but it is possible to do

Bert

tradesort
02-28-2005, 05:52 PM
gijs, thanks alot! was playing around with it yesterday, but never got to finish. looks like i was headed in the right direction. thanks again

TradeSort.com

gijs
02-28-2005, 08:09 PM
Jafo,

At the bottom of each (Show Item) Ad there is:

Printer Friendly - Notify Admin - Contact User About This Item.

Notify Admin - seems to send directly a message without having the possibility to add text

Contact user about this item - gives a bug (I think):
"There was an error with this operation: This item does not belong to the user you wish to contact. Please click back to continue. "

It might have to do something with that other point of today when the link did not work

Bert

Jafo
02-28-2005, 10:14 PM
There is no message when you notify the admin, it just notifies them of the subject.

The other "bug" is due to the modification we made today. Open index.php and find this line:

if (!Is_Item_Owner($ARGV[1],$the_owner)) { oops(Messages(InvalidContactItem)); }

Change to:

if (!Is_Item_Owner($ARGV[1],Get_User_Name($the_owner))) { oops(Messages(InvalidContactItem)); }

Find:

if (!Is_Item_Owner($form['ITEM'],$the_owner)) { oops(Messages(InvalidContactItem)); }

Change to:

if (!Is_Item_Owner($form['ITEM'],Get_User_Name($the_owner))) { oops(Messages(InvalidContactItem)); }

gijs
03-01-2005, 05:39 AM
Jafo,

Everything seems to work now. Thanks. Hopefully this is it!
Will these fixes appear in next releases, or is it for some reasons just 'a personal fix' (..?)?

Bert

Jafo
03-01-2005, 06:11 AM
They are already in the current release.

ccunet
03-05-2005, 11:35 AM
They are already in the current release.
Jafo
I haven't installed my 4.0 upgrade yet how can I download the latest version?

CCUnet

Jafo
03-06-2005, 11:50 PM
Shoot me an email with your transaction ID via our contact form.