newby Posted March 1, 2006 Share Posted March 1, 2006 This question is in regards to Jetbox CMS. I would go to their suppport forums but they are plagued with spambots and the project owners have obviously abandoned it. Their sourceforge Forum hasn't had a post since July of '05. However there was a script update in November.Alright well...Jetbox one is a Core CMS script, it is not ideal for newbies but it is flexible enough to do what I want it to do, and I have came pretty far, so I will continue to challenge myself. The admin area is constructed of "Containers" which are structured forms linked to individual tables within the database. This is handy because you can generate forms from specified tables, control work-flow, etcWhat I need to do is link my 'blog' table to my 'user' table, So that when posting a blog the script will recognize the user and post it with their Author Name [field: display_name]For the sake of your eyes I will not show any irrelevant code. Below is the array that defines the target of the path. The array structure is as follows:format: fieldname,fieldtype,display text[code]$records=array( array("author","[b]valuefromurlshowlinked[/b]","Author",""), );[/code]That would be field "author" from the 'blog' table. 'valuefromurlshowlinked' is a parameter set by Jetbox, that supplies all code to specified queries set by the array below and shows the result within the form. (phpxref showed alot of JS related to it)Here is the array that defines the queryThe format is: appliedfieldname, tablename, tableprimarykey, tabledisplayfield, argument[code]$dropdown = array( "author"=>array("user", "uid", "display_name", ""), );[/code]The problem is I don't know how to supply the argument [the last column in the array]I was almost positive it would be uid [the session]. But it did not work. So I tried uid and all sorts of combinations but nothing worked. When posting a blog the result to the 'Author' field is 'none.' If you have any idea what the argument should be please reply. If you need more info say so. IF you can't help... then thank you for your time Quote Link to comment https://forums.phpfreaks.com/topic/3807-jetboxcms/ Share on other sites More sharing options...
newby Posted March 8, 2006 Author Share Posted March 8, 2006 Anyone? Quote Link to comment https://forums.phpfreaks.com/topic/3807-jetboxcms/#findComment-15506 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.