Comments (7)
It would also be nice if the targeted posts could refer back to their origins. Trackback kind of thingy.
from bigram.
The new file admin/bigram-sample-bigrams.php implements a batch routine that will search for SB's in the content. It generates new bigrams with the content <!--more-->Sampled from {$post->post_title}.
The new bigrams are created with the same timestamp as the post from which they are extracted.
The batch routine use class sample_bigrams.
The next stage is to implement a filter function for the_content
to automatically generate the links to the bigrams. This should then automatically satisfy the trackback kind of thingy.
from bigram.
The batch routine works quite well. Now we need to implement logic to automatically create new SBs on Save. Note: There’s no need to detect changed SBs. Once an SB has been created it should remain in existence until it’s been determined that it wasn’t required, or is a duplicate.
from bigram.
There's a problem creating new bigrams.
I haven't fully debugged it but assume it's simply due to echo's in the code that was originally written for use in oik-batch and the fact that we're doing some processing during AJAX requests.
Proposed solution
We have to avoid echoing stuff when the request is not being run in batch.
- Add an
echo
method which does nothing when $this->echo is false. - Provide a
set_echo
method to be used in batch.
Avoid doing any work for AJAX requests, especially saving of drafts in heartbeats.
from bigram.
There’s an edge case for when the bw_link shortcode expands to give an title containing Sxxx Bxxx. This is detected as a different link to the original. See ‘Stop blogging, start bigramming’.
from bigram.
There’s an edge case for when the bw_link shortcode expands to give an title containing Sxxx Bxxx. This is detected as a different link to the original. See ‘Stop blogging, start bigramming’.
I don't understand this comment. I'm going to close this issue now that bigram v0.4.1 has been delivered.
from bigram.
I looked at the code the sample_bigrams::sample_post()
method and reckoned it should be easy to change it to sample bigrams when a bigram is first created. It doesn't need to check if it's an update so long as it checks that the post content doesn't contain <!--more-->Seen before
which is the start of the post content created for a sample bigram. We don't want the code to go recursive.
from bigram.
Related Issues (20)
- Create single page view for selecting and displaying SB bigrams HOT 1
- Submit bigram separate bug HOT 1
- Support https and WPMS
- Cater for time zone differences to avoid scheduling posts.
- Automatically create SB's for searched before and seen before?
- Try changing the permalink for bigrams HOT 3
- Standardise beginning letter HOT 1
- Export to CSV for statistical business
- Improve content of Social media message when sharing bigrams
- Support WordPress 5.0 and/or Gutenberg HOT 4
- Images uploaded through the Submit bigram form are incorrectly rotated
- Post content block badly formatted for posts with nothing before <!--more--> HOT 8
- Change _seen_before field to #theme=true for the SB: Second Byte FSE theme HOT 1
- Create a block to display the Seen before post meta data HOT 7
- Create a block to display Search banter HOT 2
- bigram/reactsb: Create a block to display the react-SB output
- Sample bigram logic should work for block based content
- Submit Bigram: Detect and merge bigrams when uploading an image for an existing SB HOT 2
- Avoid Doing it wrong message from `bigram_pre_get_posts()`
- (Edit) link displayed after Last upated not working on Archive page HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigram.