Jump to content

Recommended Posts

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, etc

What 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 query
The 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
Link to comment
https://forums.phpfreaks.com/topic/3807-jetboxcms/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.