john ackers
Forum Replies Created
-
Forum: Plugins
In reply to: [dbview] Set column widths?You have to use a stylesheet or add some additional styling to the theme style.css file. For example to set the width of the 1st and 3rd columns.
.dbview td:nth-child(1) { width : 50px ; } .dbview td:nth-child(3) { width : 300px ; }
Forum: Plugins
In reply to: [dbview] DB ImagesOK!
Forum: Plugins
In reply to: [dbview] can i edit on the tableYou can link one view to another view. But I think you want a non tabular single row view. Sorry that’s not available. Also there is no row editing. Think you should look at the more comprehensive form management plugins. Apols.
Forum: Plugins
In reply to: [dbview] DB ImagesOK that SQL generates two columns and the PHP is expecting one column containing both the image URL and the link URL separated by a comma. I have updated the FAQ with the same example from further up this thread and retested it. I would try creating a new DBView (refresh the page) and add just the SQL alone which should give you:
https://www.google.co.uk/images/srpr/logo11w.png,https://www.google.com
then add the PHP snippet.
Forum: Plugins
In reply to: [dbview] DBView::linkToView message: "request rejected"Replace DBView::linkToView() with DBView::link(), same arguments as per FAQ
re:Column name update, press F5 to reload javascript, it worked for me.
Forum: Plugins
In reply to: [dbview] [dbview] Sorting on columns fail…Thanks again slevit.
Forum: Plugins
In reply to: [dbview] [dbview] Table NavigatorFixed by slevit. Thank you.
Forum: Plugins
In reply to: [dbview] Removing the clickable Column TitlesFar too late but … you can now enable/disable individual column sorting.
Forum: Plugins
In reply to: [dbview] [dbview] addTooltip js function – mouseout event failsFixed by slevit. Thank you.
Forum: Plugins
In reply to: [dbview] Using current user infoToo late i know but you can use execute a PHP snippet (using another plugin) which gets the current user and then calls do_shortcode(dbview…). I have updated the FAQ.
Forum: Plugins
In reply to: [dbview] DBView::linkToView message: "request rejected"Passing arguments to embedded views on public pages now supported.
Forum: Plugins
In reply to: [dbview] Setting Query ParametersYou can pass arguments to queries on public pages in 0.5.5 (and jump from one table to another).
Forum: Plugins
In reply to: [dbview] error when show userYou can load another table in 0.5.5.
Forum: Plugins
In reply to: [dbview] DB ImagesYes sorry, the snippet update bug is a typo bug which i just saw today and have just fixed in 0.5.5.
Forum: Plugins
In reply to: [dbview] error when show userI have just committed a small change so that you can pass two arguments (arg1, arg2) from dbview on a public page to MySQL. So you can use the dbview shortcode like this:
[dbview name='show user' arg1=1 pagesize=10]
which runs the query associated with ‘show user’ and shows data for the user with the ID of 1.
To show the current user detail, you’d need to get the current user and so you’d need to run some PHP e.g. by using a PHP snippet and invoke the shortcode.
If you want to create links on one table that, when clicked, loads another table, let me know. It’s not currently supported apart from inside the dashboard.