|
 |
|
| Author |
Topic: Trouble with Premium Extra Fields |
|
|
GegaBit |

Advanced Member

|
|
Hi,
I am having trouble setting up a system for paid premium sites in a way that allows for their owners to enter extra fields data themselves and be able to modify them as well.
The only way the extra fields seem to work so far is only when they are entered from the control panel.
- First I modified add_urlp.html to include those extra fields, I used the same html code for those extra fields in the view source of the Edit Listings page in the control panel, there I noticed that my variables get a zero added to their names, anyway tried with and without the zero, the submission is accepted but the extra field changes neither appear for approval nor on the site, regular fields are ok though.
- So I thought ok, although not the best option, we can do it in the modify link, after my premium sites submit and get approved, they can then go back and enter the Extra fields data, so I hacked away at modify_link_edit.html and ended up with exactly the same result as above :(
Is there a way that works for Premium sites owners to do their own extra data entry / editing ?
And since I am here, let me refresh an old issue concerning limiting the extra fields availability to premium sites only!
Thanx
Gegabit
|
Total Posts: 168 | Joined:
Mar 17, 2003 - 12:28pm | IP
Logged
|
|
Rik

Advanced Member

|
|
Hi GegaBit,
Okay, I'll attempt to address the issues that you have raised.
1.Create the 'extra' fields that your require via 'set.cgi'
2.Add those 'extra' fields you wish to have for 'Premium' listings in the add url form.
3.Open template 'modify_edit' and 'add' those extra fields into it.
Now, when users clicks on the modify link they should 'see' the additional fields that you require AND be able to enter data etc.
We have implemented what you refer to on our site http://www.primesiteuk.com
Hope this helps :-)
Regards
Rik |
Total Posts: 531 | Joined:
Apr 2, 2002 - 7:21am | IP
Logged
|
|
|
GegaBit |

Advanced Member

|
|
Quote:
1.Create the 'extra' fields that your require via 'set.cgi'
2.Add those 'extra' fields you wish to have for 'Premium' listings in the add url form.
3.Open template 'modify_edit' and 'add' those extra fields into it.
|
|
Hi Rik,
Thanx a lot, but these are exactly the steps I followed as mentioned above, I have no problem with the fields creation, and data entry which works from the control panel fine, my problem is in their not changing when an input is done in the modify_link_edit.html or add_urlp.html. Changing regular fields data registers, changing extra field data dows nothing ..
Thanks again
GegaBit
|
Total Posts: 168 | Joined:
Mar 17, 2003 - 12:28pm | IP
Logged
|
|
|
Rik |

Advanced Member

|
|
Hi,
I see, okay the problem therefore is one of two things :
1.The files in cgi-bin are not correctly chmod and/or
2.The variable in the actual fields themselves i.e. %%fieldone%% NOT !!fieldone!! are wrong
Have another look and let me know
Hope this helps
Regards
Rik |
Total Posts: 531 | Joined:
Apr 2, 2002 - 7:21am | IP
Logged
|
|
|
GegaBit |

Advanced Member

|
|
Hi again Rick thanks for the follow up,
as stated above, I copied and pasted the exact html source in the Edit Listing page of the control panlel, in there the field names are neither %%'d or !!'d, they appear as name=email for the vanila basic email field, also the same for my extra fields, but I will try your way and let you know.
GegaBit |
Total Posts: 168 | Joined:
Mar 17, 2003 - 12:28pm | IP
Logged
|
|
|
GegaBit |

Advanced Member

|
|
OK got it working,
Rick it had nothing to do with !! or %% but thanks all the same.
I removed an extra zero Pseek seemed to have added to my extra field names in its Edit Listing page html.
Actually my premium users are now able to Enter their full Extra fields data successfully in my add_urlp.html template
Also they are able to edit and successfully change their fields data from modify_link_edit.html
Only one question remains:
How do you limit the extra fields availability to premium sites only, currently if you have extra fields they appear for both free sites as well as premium, and the only way to control it is to not approve a free site modification when entering premium fields, we seriously need Premium modify link and premium more info dedicated templates to give our paying ones more premium features.
And since we are talking premium, one more thing, why can't we have the capability to set more than one period option for the expiery of premium sites? most of us set it as 1 year, but if you want to give monthly, bi-annual plans, or even 2 or 3 years you are stuck, Gerrit that was for you.
Over and out
ThanX
Gegabit
|
Total Posts: 168 | Joined:
Mar 17, 2003 - 12:28pm | IP
Logged
|
|
|
Rik |

Advanced Member

|
|
Hi,
Glad that you sorted out that problem.........onto the next
Create 'custom' templates using the custom feature where you can 'set' which template to use with whatever category.
Using this you can set the standard from the premium
Hope that helps :-)
Regards
Rik |
Total Posts: 531 | Joined:
Apr 2, 2002 - 7:21am | IP
Logged
|
|
|
GegaBit |

Advanced Member

|
|
actually no it wouldnt,
You see Rik, using a custom template would cover a whole category of sites, including both premium and free, so there would still be no dictinction between them as far as more info is concerned as well as in edit link.
Your suggestion would only work if you are going to put Premium sites alone in their own category, which in most sites not practical, its in their mixing with free sites that they draw distinction, thanx for the attempt at an answer again, and sorry for always coming back with negative reply.
Maybe someday if FP add a feature for setting the template per site not as currently per category it would work as you suggest.
GegaBit |
Total Posts: 168 | Joined:
Mar 17, 2003 - 12:28pm | IP
Logged
|
|
|
GegaBit |

Advanced Member

|
|
Gerrit,
On topic I am experiencing the following error:
SQL Syntax Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near (part of the entered field contents here)
From: at modify3.cgi line 217.
This only happens for:
- Extra fields modified cotaining the character ' like in ain't
- The modification data is entered from the modify link for the site owner and does not occour when data is entered from the control pannel
- These fields are of type char, size 255, searched and not image fields.
- When I modify the field data and remove the ' the error moves on to the next '
GegaBit
|
Total Posts: 168 | Joined:
Mar 17, 2003 - 12:28pm | IP
Logged
|
|
|
GegaBit |

Advanced Member

|
|
Quote:
we seriously need Premium modify link and premium more info dedicated templates
why can't we have the capability to set more than one period option for the expiery of premium sites? most of us set it as 1 year, but if you want to give monthly, bi-annual plans, or even 2 or 3 years you are stuck, Gerrit that was for you.
|
|
Gerrit, the first one seems like a popular request, I am seeing members asking for it over and over, also the second one would be nice commercially, pls let us know if it will be considered for the future.
Verry sorry if I seem like a nag :(
Gegabit |
Total Posts: 168 | Joined:
Mar 17, 2003 - 12:28pm | IP
Logged
|
|
|
Forum Legend |

|
New Member
|

|
Reply
to topic |

|
More
than 50 posts | Member
|

|
Reply
to topic with quoted message |

|
More
than 100 posts | Full Member
|

|
Edit
Message |

|
More
than 150 posts | Advanced Member
|

|
View
profile |

|
More
than 200 posts | Advanced Member |

|
Email
member |
|
|