Support Forums

Extra Field Unchangeable for user

This is a discussion on Extra Field Unchangeable for user within the Modules / Plugins / Modifications forums, part of the Developer Forums category; If possible create an extra field Unchangeable for user but not for me as an administrator?...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 10-16-2011, 07:52 PM   #1
Customer
 
lowis's Avatar
 
Join Date: Aug 2009
Location: Sweden
Posts: 62
Rep Power: 11
lowis is on a distinguished road
Exclamation Extra Field Unchangeable for user

If possible create an extra field Unchangeable for user but not for me as an administrator?
__________________
68C v4.1.8
Templatecode Evo-Black
lowis is offline   Reply With Quote
Old 10-17-2011, 08:26 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,389
Rep Power: 85
seymourjames is a jewel in the rough
Default

That would be a nice feature actually. I would try to make the field not searchable and not visible in the listing first of all. Then pull it out specifically in the viewlisting template before or after the normal display of all the the other extrafields using the plugin function.get_extra_field.php .
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting

Last edited by seymourjames; 10-17-2011 at 08:33 AM.
seymourjames is offline   Reply With Quote
Old 10-17-2011, 04:21 PM   #3
Customer
 
lowis's Avatar
 
Join Date: Aug 2009
Location: Sweden
Posts: 62
Rep Power: 11
lowis is on a distinguished road
Default

But I wonder if this is possible, I am not so good with PHP but I try the best. in my case I want to put a button from Paypal but I dont want that the users cant modify its content only me as an administrator...

I really really want to know how can I do it.

By the way, Seymour I just given my clicks in 1+ in different pages, thanks for your supporting...
__________________
68C v4.1.8
Templatecode Evo-Black
lowis is offline   Reply With Quote
Old 10-17-2011, 10:34 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,389
Rep Power: 85
seymourjames is a jewel in the rough
Default

make your extrafield but make sure it is not seen in the listing. There is an option to do that I think. Then use the smarty plugin I mentioned and put it anywhere on the template you wish. Put this code where you want it to show.

{get_extra_field id=$view fid=x}

X is the number of the extafield you have created and $view is the number of the advert. I think is view or it might be $id.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 10-18-2011, 12:13 PM   #5
Customer
 
lowis's Avatar
 
Join Date: Aug 2009
Location: Sweden
Posts: 62
Rep Power: 11
lowis is on a distinguished road
Exclamation

Ok thanks you very much, but Right now I have others problems

I've created my extra field ID 3 I just turn off from listing, but this field appear in the quick checkout



And the another problem is with the paypal button, if I paste this code appear the same code, non the paypal button, how can I fix it...

If you can see the paypal button Add to cart is because I just to paste in description field, there no problem, but when I created the field that appear with the code that is the problem, because dont show me the Paypal button if not the code.

__________________
68C v4.1.8
Templatecode Evo-Black
lowis is offline   Reply With Quote
Old 10-18-2011, 04:32 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,389
Rep Power: 85
seymourjames is a jewel in the rough
Default

Have you actually set the paypal button to not be seen in the listing as I proposed? Does it do it in the checkout if you use the default checkout system and not the module?

You have to let the administrator also have rights to post html code etc. There is a thread about that where a checkbox is ticked to allow it.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting

Last edited by seymourjames; 10-18-2011 at 04:37 PM.
seymourjames is offline   Reply With Quote
Old 10-19-2011, 05:37 AM   #7
Customer
 
lowis's Avatar
 
Join Date: Aug 2009
Location: Sweden
Posts: 62
Rep Power: 11
lowis is on a distinguished road
Exclamation

How can I give admin permission to post html code? I dont know
__________________
68C v4.1.8
Templatecode Evo-Black
lowis is offline   Reply With Quote
Old 10-19-2011, 07:17 AM   #8
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,389
Rep Power: 85
seymourjames is a jewel in the rough
Default

First of all, it appears if you set up an extrafield so it is not seen in your listing, it is going to still appear in your checkout ( quick checkout module or the standard 68C checkout). If you try to go this way you will need to customise checkout so extrafields set to not be seen in the listing do not appear in the checkout. That is a custom piece of development.

It appears that given the constraints you are imposing, you should enter your paypal button into the description field via the admin panel only. You should be able to set the admin permissions by clicking on the manage users tab and then the specific admin settings for that admin. Image attached. However, you may also need to allow html tags in checkout settings (don't know and I have not tested it). If you do allow html tags them, for sure, ordinary users will be able to place html code into their ads which is not a great idea (spamming).

To be frank you are trying to use 68 classifieds as a shopping cart and as a classified system at the same time or I completely misunderstand what you are trying to do. 68C was not designed to do this. To a certain extent you can make it behave like an online shop which is what I do with PHP Classified Scripts | TemplateCodes but there is no public access or you can run it as a classifieds system which it was designed for.
Attached Images
File Type: png Screen shot 2011-10-19 at 12.10.06 PM.png (14.6 KB, 1 views)
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting

Last edited by seymourjames; 10-19-2011 at 07:23 AM.
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using an extra field to set user group misterp Technical Support 6 03-06-2011 05:29 PM
User Registration:Extra field not showing FlyAgain Technical Support 2 01-18-2010 03:51 PM
User registration extra field with multiple selection magicosta Technical Support 4 04-22-2009 10:13 AM
Extra field Drop down list in User Registration hel68c Modules / Plugins / Modifications 3 02-08-2009 07:33 PM
Extra field user join wesse249 Technical Support 4 09-25-2008 02:53 PM


All times are GMT -4. The time now is 07:41 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0