On my site I have listings that have no ownership attached to them - not even an email address. If the owner of the link should get in touch, how would I assign ownership of the link to them so that they can edit their listing, add an image, etc?
Paul wrote: Test with the default template. If it works with that, look through to find what you have different in your template for the owner area.
Paul,
I get lots of errors when reverting to the default template for edit links:
If you are not the administrator of this site, please report this page to the administrator. If you are the administrator, please pay careful attention: You have a parse error in your template templates/default/edit.tpl (or perhaps in your header or footer) which you need to repair before this page can be displayed correctly. The error is picked up on by php at line 238 of the output.Line #233: Password: <input type="text" name="reassignpassword" size="30" value="" > Line #234: </td> Line #235: </tr> Line #236: <?php } ?> Line #237: <?php if ( && 0) { ?> Line #238: <tr>
Note that the line of the output is not necessarily the same line number in your template... just look for a similar looking area. The source of your error is probably not on line 238 itself, but most likely a line or two before it. Check your code carefully for syntax mistakes. If you cannot recognize one, copy and paste this output into a thread on the support forum. Now outputing the page without any conditional or php sections evaluated: <"text/javascript" src="http://www.accommodation-uk.net/templates/default/javascriptheader.js">
The error is because {THISMEMBERGROUPRENEWTIMES} is somehow blank for you. Go to Admin -> Members -> Manage Usergroups and type 0 for the number of times each group can renew.
This should be impossible though, because the field in mysql is an integer with default value 0. Unless you changed it to blank later manually.
Paul wrote: The error is because {THISMEMBERGROUPRENEWTIMES} is somehow blank for you. Go to Admin -> Members -> Manage Usergroups and type 0 for the number of times each group can renew.
This should be impossible though, because the field in mysql is an integer with default value 0. Unless you changed it to blank later manually.
Paul, I can't see where you mean. I can't find a reference to renew.
I wouldn't have changed that setting in the database. Is it something that could have been corrupted when the data was imported?
You have expirations switched off? That must be causing the problem. Will come up with a solution for the next upgrade, meanwhile you'll have to switch expirations on and set the value to 0.
Comments on Assign membership
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
On my site I have listings that have no ownership attached to them - not even an email address. If the owner of the link should get in touch, how would I assign ownership of the link to them so that they can edit their listing, add an image, etc?
Thanks,
jez.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Just edit the link and type the username in the owner name/id box.
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
Paul, I have tried this but each time I save the changes the username / ID reverts to "0"
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Works here. Is the edit profile template customized?
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
It has some extra fields to match the submit page.
Jez.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Test with the default template. If it works with that, look through to find what you have different in your template for the owner area.
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
Hi Paul,
Was just going to try the suggested but have got a new problem in as much as I can't edit the templates from the admin.
I get the error:
Fatal error: Call to undefined function: safestrpos() in /home/accommod/public_html/includes/commonfuncs.php(740) : eval()'d code on line 494
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Sounds like you have a combination of 4.1.18 and 4.1.19 somehow... or maybe 4.1.20 with admin templates of 4.1.19. What does it say you're running?
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
"Your WSN Links 4.1.20 is up to date." it says
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Delete /templates/admin/ and then upload the copy of it in the 4.1.20 download. Somehow it must've gotten stuck on the 4.1.19 admin wrapper.
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
Test with the default template. If it works with that, look through to find what you have different in your template for the owner area.
Paul,
I get lots of errors when reverting to the default template for edit links:
If you are not the administrator of this site, please report this page to the administrator. If you are the administrator, please pay careful attention: You have a parse error in your template templates/default/edit.tpl (or perhaps in your header or footer) which you need to repair before this page can be displayed correctly. The error is picked up on by php at line 238 of the output.Line #233: Password: <input type="text" name="reassignpassword" size="30" value="" >
Line #234: </td>
Line #235: </tr>
Line #236: <?php } ?>
Line #237: <?php if ( && 0) { ?>
Line #238: <tr>
[Load this template in your template editor]
Note that the line of the output is not necessarily the same line number in your template... just look for a similar looking area. The source of your error is probably not on line 238 itself, but most likely a line or two before it. Check your code carefully for syntax mistakes. If you cannot recognize one, copy and paste this output into a thread on the support forum.
Now outputing the page without any conditional or php sections evaluated:
<"text/javascript" src="http://www.accommodation-uk.net/templates/default/javascriptheader.js">
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The error is because {THISMEMBERGROUPRENEWTIMES} is somehow blank for you. Go to Admin -> Members -> Manage Usergroups and type 0 for the number of times each group can renew.
This should be impossible though, because the field in mysql is an integer with default value 0. Unless you changed it to blank later manually.
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
The error is because {THISMEMBERGROUPRENEWTIMES} is somehow blank for you. Go to Admin -> Members -> Manage Usergroups and type 0 for the number of times each group can renew.
This should be impossible though, because the field in mysql is an integer with default value 0. Unless you changed it to blank later manually.
Paul, I can't see where you mean. I can't find a reference to renew.
I wouldn't have changed that setting in the database. Is it something that could have been corrupted when the data was imported?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You have expirations switched off? That must be causing the problem. Will come up with a solution for the next upgrade, meanwhile you'll have to switch expirations on and set the value to 0.
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
Default Days to Expiration:
Leave blank to not expire links, fill to make links expire this many days after submission.
Paul, do you mean the above? if not i can't see where you mean.