Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Claudia999 Posted March 7, 2015 Posted March 7, 2015 I thought chat would be one of the next piece of work – in my memory first with 4.0 we have the chat as is now and soon there's an update after all the years. But now is in "Planning Stage". In IPS time this could be 2 years if I look when IPS4 was announced
mycota Posted March 7, 2015 Posted March 7, 2015 If you don't mind my asking... If it's not a carry over from 3.X, how did you manage to get 3 million records into IPS4 so quickly?We have a script that imports from an external MySQL database and runs an import job daily. It also stores any revisions from the external data into the IPS revision history.
openfire Posted March 7, 2015 Posted March 7, 2015 Oh wow, that's awesome. I'm guessing that's a custom script?
opentype Posted March 16, 2015 Posted March 16, 2015 The Like thing is actually really simple because everything in IPS4 is modular. As long as the reputation template has the variable for the record, you can put it anywhere you like. So in the list template, I added:{{if $row instanceof \IPS\Content\Reputation and settings.reputation_enabled}} <div class='ipsSpacer_top ipsSpacer_half ipsType_center'> {template="reputationMini" app="core" group="global" params="$row"} </div> {{endif}}And that's it - nothing else required.Does that have any other requirements in the code? Certain container classes? Certain HTML elements like <li>?I put it on a article listing template and while the likes are saved, the AJAX functionality doesn’t work properly. I need to manually reload the page to see likes and like removals displayed.
Rikki Posted March 16, 2015 Posted March 16, 2015 Does that have any other requirements in the code? Certain container classes? Certain HTML elements like <li>?I put it on a article listing template and while the likes are saved, the AJAX functionality doesn’t work properly. I need to manually reload the page to see likes and like removals displayed. No, it should just work as-is. Check to see if you're getting any JS errors though.
Black-Elmo Posted April 3, 2015 Posted April 3, 2015 Is there any instructions on how to get the database displayed as a page. I imported the xml file but can't figure out how to create the page.
opentype Posted April 3, 2015 Posted April 3, 2015 Go to Pages → Pages. Click “Add Page”. Choose “Page Builder” and follow the instructions. When the page is created, click on the page builder icon (magic wand) in the pages overview. Open the sidebar where you can choose the widgets for the page. Go to the pages section and drag the database widget to the page and select your database for that widget.
Black-Elmo Posted April 4, 2015 Posted April 4, 2015 Go to Pages → Pages. Click “Add Page”. Choose “Page Builder” and follow the instructions. When the page is created, click on the page builder icon (magic wand) in the pages overview. Open the sidebar where you can choose the widgets for the page. Go to the pages section and drag the database widget to the page and select your database for that widget. I did all that but it just displays ErrorEdit: Figured it out now how do I add the like button.
Black-Elmo Posted April 5, 2015 Posted April 5, 2015 Ok so I have managed to get the like button position correctly and working.Attached is the recordRow template with the like button recordRow.txt
Black-Elmo Posted May 10, 2015 Posted May 10, 2015 We just edited the database template HTML and field format options. Of course we duplicated the defaults first into a new category for this database. categoryHeader.txt categoryTable.txt recordRow.txt The status field used the built in custom format option: Status Field custom format.txt And we did a linked CSS resource for the page: status.css.txt Edit: or you can dowload the attached Database export and import it into your Pages 4 install. (maybe - I didn't test it ) IPS4_Feature_Plan.xml @Charles are you able to provide an updated recordRow as I can't seem to figure out how you got the completed to fade
Meddysong Posted May 12, 2015 Posted May 12, 2015 @Charles are you able to provide an updated recordRow as I can't seem to figure out how you got the completed to fade<a href='#' class='c4StatusRow ipsAreaBackground_light {{if $row->fieldValues()['field_134'] == '4'}}ipsFaded{{endif}} ipsPad ipsType_blendLinks {{if $row->hidden()}}ipsModerated{{endif}}' data-ipsDialog data-ipsDialog-title="{$row->_title}" data-ipsDialog-size='medium' data-ipsDialog-content='#el4StatusInfo_{$row->$idField}'>It's that clever little bit in bold. If the value is 4, then the class ipsFaded is included.
Black-Elmo Posted May 13, 2015 Posted May 13, 2015 Doesn't work. That's why I've asked for an updated copy. Field_134 doesn't exist I have tried Status2 and still nothing.
opentype Posted May 13, 2015 Posted May 13, 2015 Doesn't work. That's why I've asked for an updated copy. Field_134 doesn't exist I have tried Status2 and still nothing.You can check the field ID in your own database by hovering over the edit button of that field in the ACP. The ID is visible in the URL. In addition, check that this field uses the field value “4” for finished tasks.
kysil Posted May 13, 2015 Posted May 13, 2015 The most desirable future would be the stable releases.
Meddysong Posted May 13, 2015 Posted May 13, 2015 Doesn't work. That's why I've asked for an updated copy. Field_134 doesn't exist I have tried Status2 and still nothing. Sorry - I meant "That's the bit to change" I noticed you said earlier you were getting the message Error having dropped your database into a page. So am I. What did you do to fix it?
Black-Elmo Posted May 13, 2015 Posted May 13, 2015 There is an issue where categoryFooter (I think) is not placed in the database template group Status but in it's own group. I just removed the templates and created a new database template with the record listing option.Here is my recordRow which has the like button added. recordRow.txt
Meddysong Posted May 13, 2015 Posted May 13, 2015 There is an issue where categoryFooter (I think) is not placed in the database template group Status but in it's own group.Ah, yeah; I'd caught that and changed it in the database earlier on. But was still getting the errorsI've just tried building from scratch (ie, as you set out above) and also reimporting the XML and then reassigning categoryFooter to the correct template group. Both still end in an error.That's the fifth or sixth attempt now, so I think I'd do better to shrug my shoulders and wait for a tutorial to emerge.
Black-Elmo Posted May 14, 2015 Posted May 14, 2015 I built mine from scratch after issues with the XML
Meddysong Posted May 14, 2015 Posted May 14, 2015 Just tried again from scratch, including making sure that the fields had the correct keys to match the entries such as {$row->customFieldDisplayByKey('summary', 'listing')|raw}. Still the same old error message, having created new templates as record listings and pasting the content from Charles's examples. I created the fields as they were indicated in Charles's XML.Still an error, alas.I don't suppose somebody who has a working version could share their XML, could they? I want to be sure there's nothing wrong with my installation of Pages, which there has been in the past and which required intervention from support to rectify.
Black-Elmo Posted May 16, 2015 Posted May 16, 2015 @Meddysong try this and see if it works for you IPS4_Feature_Plan.xml
Meddysong Posted May 16, 2015 Posted May 16, 2015 Thank you, @Black-Elmo. Still an error. although at least this time there's a message indicating where the fault lies. (Incidentally, categoryFooter again imported into its own group and needed me to change it in the database.) I had problems with my Pages templates being out of date a few months ago. I bet more features are. My site didn't survive the jump to 4.0.5 without needing a support ticket, so I think I'd probably make the support team aware. Thanks all the same
Lunars Posted June 5, 2015 Posted June 5, 2015 Does anyone have it working? I get this error when I install the XML file and have the database loaded: Fatal error: Call to undefined method IPS\Theme\class_cms_database_status_8::categoryHeader() inmodules/front/database/category.php on line 385
scaz Posted June 16, 2015 Posted June 16, 2015 No work on 4.0.7 and 4.0.8, anyone have found a solution ? thanks
BrantM Posted June 21, 2015 Posted June 21, 2015 Was anyone able to figure out why this doesn't work on 4.0.8? @Charles @Rikki
Recommended Posts
Archived
This topic is now archived and is closed to further replies.