Comments (25)
I would love to see that π please post the link and I will put that on the showcase page, or you can creating new page on wiki section for anyone that use this no-db script as an example.
3000+ posts is a lot, how about the load? CPU? etc.
Edit: if you want to speed it up just remove the tags/archive widget on the sidebar π
from htmly.
www.nixsteam.com
don't notice a load. The initial import was done locally. It processed 3,100+ xml file that has everything from 2003 to today. There is some tweaking I will do to sort out the tags, but outside that, you can see for your self - it run smoothly (the funky html issues is htmly rendering the html. It doesn't do so well with single quotes, and "..." among a few other text, as a result, some posts are ugly - it's an easy fix
The full import took about 10min locally - that was the only time I heard my cpu cry LOL
from htmly.
Lot of posts and tags and the load is still fast, that's wow! π
Noticed if there is p tag on title, that broke some of the layout, let say the related post etc. this can be the script bugs (HTMLy), we should strip the tags or you can strip the tags when converting it.
And what specs do you use for the host? π
from htmly.
that that tag in the title is something new due ot the inport, doesn't seem to be there on manual post entries
You lost me on the "specs", its hosted on JDR Host if that is what you mean..
EDIT: not sure where that
tag is coming from.. i know it something new though.. i'll look into it tomorrow after work...
from htmly.
Ok, some more insite - if it edit the post, but DON'T change anything, just SAVE IT, the p-tag goes away. what do you think?
from htmly.
The tags coming from this https://github.com/danpros/htmly#file-naming-convention. For hosting Digital Ocean, Vultr, or Iwstack is great (unmanaged).
Because HTMLy strip any tags when saving.
from htmly.
Wow, that's awesome ! imported over 3,100+ game post.. post from year 2003..
from htmly.
I have that "<p>" title thing narrowed down to this line (it only happens if i auto-import, if i manually import it doesnt do it"
this is the part that writes the post:
$post = ""."\n".$post;
note the "gamename" is raw - there is no markup - its being added by HTMLY for some reason unknown
from htmly.
You can strip the tags for the post title, so it will returned plain text, example:
$post = "<!--t ". strip_tags($gamedata['gamename']) ." t-->"."\n".$post;
from htmly.
well i'll try that - but gamename has no tags :-D its raw text extracted from RSS feed, but i'll try that and see what happens
from htmly.
nope didnt work.. I did not think it would, since game name is just text
here is the actual title of the latest game
<!--t Mystery of Unicorn Castle: The Beastmaster t-->
as you can see there is no markup
from htmly.
I know its something that is hidden that is happening, as it doesnt add the <p> markup when I do it manually
from htmly.
That's weird, you can compare the resulting import file with panel generated file
from htmly.
ok, here is a typical post (auto rendered) it "LOOKS" identical to a manually entered one
http://www.nixsteam.com/2014-03-30-00-00-00_Puzzle,Hidden%20Object,Adventure,Collector%27s%20Edition_bridge-to-another-world-burnt-dreams-ce.txt
The problem lies in the title part. for some reason, when it's auto rendered, it is adding a page break markup, but as you can see - there is none there.
from htmly.
See this part
CollectorΓ’β¬β’s Edition includes: </div><p/>
There is </p>
tag?
from htmly.
but its not the title :-)
here is the source from the page
<h1 class="title-post" itemprop="name"><p> Tales of Empire: Rome</p></h1>
the mark up is done by htmly, as well as the class (as you can see from the raw post) my script does not add p tags or divs
so what i am searching for is an invisible character that is not added in manual posting - its not a big deal, but looks better without the tag
from htmly.
Download and test it on my local dev, you should separate double pagebreak after the title, so the code become:
$post = "<!--t ".$gamedata['gamename']." t-->"."\n\n".$post;
It should work now π
from htmly.
testing....
from htmly.
PERFECT!! - ya it's an unusual test LOL
I'll change the source - easy fix - thank you!
from htmly.
LOL somethings happen when convert it to HTML (the markdown) π
from htmly.
and as usual: the hardest problems have the simplest fix :-D
from htmly.
Wow, i see good/best support here :)
from htmly.
finished - thanks! used a search-n-replace and added the second linefeed to all the post - now it looks good!
from htmly.
@klyxmaster the site load is fast even though has many posts and tags π
edit: you should hard coded the title since there is <br>
tags there
from htmly.
It depends on the sever.locally it's a little slow, but most of the
commercial host, it's very fast as they are 8 core and better
On Apr 10, 2014 7:35 AM, "Danang Probo Sayekti" [email protected]
wrote:
@klyxmaster https://github.com/klyxmaster the site load is fast even
though has many posts and tags [image: π]Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-40072411
.
from htmly.
Related Issues (20)
- [FEATURE REQUEST] Plz add version number on footer HOT 6
- [FEATURE REQUEST] Admin to User Problem HOT 1
- [QUESTION] Theme Issue HOT 1
- [QUESTION] Sitemap.xml - is listing only my current year OR max 39 rows HOT 3
- Errror On Installation HOT 2
- Ukrainian language HOT 1
- Subscribe Module HOT 3
- Hello, there is some error on the sitemap HOT 6
- [FEATURE REQUEST] Menu editor, supports relative URL HOT 1
- May be we should not put tags in the markdown file title HOT 1
- [BUG REPORT] Attribute charset not allowed on element meta at this point. HOT 1
- [FEATURE REQUEST]How to integrate into root domain? HOT 2
- [QA] page break (pagination), blogroll not on home page, multimedia dir tree, relative urls etc. HOT 9
- Link previews not reflecting the real logos or the favicon - HTMLY/Ignite HOT 3
- Supporting Arabic commas under "tags"[FEATURE REQUEST] HOT 2
- draft posts pooled after common publish article click HOT 5
- [FEATURE REQUEST] STATUS heading/column in posts list HOT 1
- [FEATURE REQUEST] QOL features: splitting lang, visits counter HOT 5
- [QA] How can we list the blog (latest blog snippets) on the homepage which is outside the htmly folder? HOT 1
- Sub sub menu ? 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 htmly.