Support Forums

Having a little trouble with extra fields

This is a discussion on Having a little trouble with extra fields within the Customizations forums, part of the Developer Forums category; Im trying to display extra fields in columns. Does anyone know of a way to display extra fields in columns ...


Go Back   68 Classifieds Forums > Developer Forums > Customizations

Reply
 
Thread Tools Display Modes
Old 04-14-2011, 10:21 PM   #1
Customer
 
Join Date: Mar 2011
Posts: 61
Rep Power: 5
TheTechGuru is on a distinguished road
Default Having a little trouble with extra fields

Im trying to display extra fields in columns.


Does anyone know of a way to display extra fields in columns of 2?

Example:

Extra Field 1: Value Extra Field 2: Value

Extra Field 3: Value Extra Field 4: Value

Extra Field 5: Value Extra Field 6: Value
TheTechGuru is offline   Reply With Quote
Old 04-14-2011, 10:39 PM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,435
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I haven't done it exactly like that, but just about every other way. I just made my own extra_fields plugin based on the default one. Added the extra SQL query to get the actual extra field name. In my version, I added an extra parameter $type and in my code after getting the field and the value used a switch statement on the type variable, so that I could change the output based on the type parameter (type values can be list, tablerow, group).
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 04-14-2011, 10:45 PM   #3
Customer
 
Join Date: Mar 2011
Posts: 61
Rep Power: 5
TheTechGuru is on a distinguished road
Default

Mike-N-Tosh, you wouldnt have anything I could start with would you?

Thanks for that info too, I was originally trying to use the same code the index categories use, but kept on running into trouble.

I guess I will def have to use a plugin, do you have any of that code, something I can visually look at? Id be more than happy to purchase it, it would save me a lot of time, and Im pretty sure your way would prob be better than anything I end up with on my own.
TheTechGuru is offline   Reply With Quote
Old 04-20-2011, 05:23 PM   #4
Customer
 
Join Date: Mar 2011
Posts: 61
Rep Power: 5
TheTechGuru is on a distinguished road
Default

Quote:
I just made my own extra_fields plugin based on the default one.
Which default plugin are you referring to?
TheTechGuru is offline   Reply With Quote
Old 04-21-2011, 03:35 AM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,544
Rep Power: 89
seymourjames is a jewel in the rough
Default

I told you that in an email LOL - (quote) its in the plugins directory (get extra field) but I think Mike is working on something more general. It is best to do the output within the plugiin itself as you can't test on it afterwards which is typically what many would wish to do. There have been forum posts about that. Just copy the existing one - rename it and do what you need to do inside of it.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline   Reply With Quote
Old 04-21-2011, 11:39 PM   #6
Customer
 
Join Date: Mar 2011
Posts: 61
Rep Power: 5
TheTechGuru is on a distinguished road
Default

I think I get what you mean.

Not sure why I have a mental block about this, but I will try to create something tonight. I finally have some time to sit down and mess around.

Im going to try and create another plugin out of getextrafields and another plugin that will allow columns to be called.
TheTechGuru is offline   Reply With Quote
Old 04-21-2011, 11:59 PM   #7
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,435
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by TheTechGuru
Mike-N-Tosh, you wouldnt have anything I could start with would you?

Thanks for that info too, I was originally trying to use the same code the index categories use, but kept on running into trouble.

I guess I will def have to use a plugin, do you have any of that code, something I can visually look at? Id be more than happy to purchase it, it would save me a lot of time, and Im pretty sure your way would prob be better than anything I end up with on my own.
I emailed you the plugin the day you posted this!

I also replied a week later to see if it worked out for you too.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 04-22-2011, 12:18 AM   #8
Customer
 
Join Date: Mar 2011
Posts: 61
Rep Power: 5
TheTechGuru is on a distinguished road
Default

Sorry Mike-N-Tosh, I havent checked my email in a bit. I had no clue.

Just checked it out, and it looks awesome, gave me some ideas. Thanks again!
TheTechGuru is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra Fields JP2 Designs Technical Support 4 05-27-2009 10:40 PM
extra fields redstar Technical Support 2 11-17-2008 11:36 AM
V4 Extra fields gppromano Technical Support 10 07-02-2007 07:28 PM


All times are GMT -4. The time now is 04:19 PM.


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