Quote:
Originally Posted by The Geek
Fribs. Basically - yes. However this really depends on what you are adding and what it is for. In function_geekarticles are the fetching,inserting and updating functions so tecnically you only need to add more fields, change the sql in those functions accordingly and then your editpost and newthread fields to pass and catch the fields. However I couldnt really give you too much of a hand with this as I previously mentioned Im away on vacation. I couldnt think it would take you more than a few hours tops depending on your level of expertise.
HTH?s
|
Thank you for the direction, it helped a lot.
I'm adding new fields so I can use this as a form for many different kinds of posts. I can have several fields for the user to fill out when they post and I can use several of those fields in showthread or forumdisplay pages depending on the function of that particular forum. I wanted to modify your program rather than go with erwin's form hack because it handles attachments, bbcode, smilies, indexes the post and has a cool thumbnail that can be used in the forumdisplay pages. The only thing that is unfortunate is that the additional fields do not get indexed, but I can work around that so long as the body does.
I have made the modifications, it took me about 6 hours (I am very new to scripting languages). I basically did a lot of copying and pasting and added 4 more fields then duplicated the admincp synopsis options for each one in the admincp geekarticles settings menu. (Max number of characters to show in forumdisplay and the option to turn each on or off.) I am using conditionals in the GAS_articles_options template so I can use a different incarnation of this in several forums. I have also removed the option to enter the username. I didn't like that if you mistyped it and hit submit you would loose everything you typed that is not in the title or the body on the resulting screen. It seems to work ok, can you see this causing any problems?
I have modified functions_geekarticles.php, newthread.php, editpost.php, GAS_admin.php, and two templates to get it working but it appears solid.
1 Question: In
Code:
functions_geekarticles.php in this function:
function insert_new_article($threadid, $byline, $synopsis='',$oldiconpath='',$newiconpath='',$movedicon=0,$featuretill=0)
I added the custom fields ($custom1-4) before the $featuretill=0 because it was empty and the script kept thinking the value for $custom1 was $featuretill if that makes sense. (Still learning how to communicate this stuff too.) Will this screw something up on the occasion that $featuretill holds a value or is this ok?
Anyway, thanks for the help Geek, and enjoy your vacation. I'm suprised you're checking in here so often, when I go on vacation no one hears anything from me until I'm back for at least a few days.
Later,
Fribs