Coder Social home page Coder Social logo

Comments (25)

danpros avatar danpros commented on August 27, 2024

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.

klyxmaster avatar klyxmaster commented on August 27, 2024

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.

danpros avatar danpros commented on August 27, 2024

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.

klyxmaster avatar klyxmaster commented on August 27, 2024

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.

klyxmaster avatar klyxmaster commented on August 27, 2024

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.

danpros avatar danpros commented on August 27, 2024

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.

fahmi182 avatar fahmi182 commented on August 27, 2024

Wow, that's awesome ! imported over 3,100+ game post.. post from year 2003..

from htmly.

klyxmaster avatar klyxmaster commented on August 27, 2024

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.

danpros avatar danpros commented on August 27, 2024

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.

klyxmaster avatar klyxmaster commented on August 27, 2024

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.

klyxmaster avatar klyxmaster commented on August 27, 2024

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.

klyxmaster avatar klyxmaster commented on August 27, 2024

I know its something that is hidden that is happening, as it doesnt add the <p> markup when I do it manually

from htmly.

danpros avatar danpros commented on August 27, 2024

That's weird, you can compare the resulting import file with panel generated file

from htmly.

klyxmaster avatar klyxmaster commented on August 27, 2024

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.

danpros avatar danpros commented on August 27, 2024

See this part

CollectorÒ€ℒs Edition includes: </div><p/>

There is </p> tag?

from htmly.

klyxmaster avatar klyxmaster commented on August 27, 2024

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.

danpros avatar danpros commented on August 27, 2024

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.

klyxmaster avatar klyxmaster commented on August 27, 2024

testing....

from htmly.

klyxmaster avatar klyxmaster commented on August 27, 2024

PERFECT!! - ya it's an unusual test LOL
I'll change the source - easy fix - thank you!

from htmly.

danpros avatar danpros commented on August 27, 2024

LOL somethings happen when convert it to HTML (the markdown) πŸ˜„

from htmly.

klyxmaster avatar klyxmaster commented on August 27, 2024

and as usual: the hardest problems have the simplest fix :-D

from htmly.

fahmi182 avatar fahmi182 commented on August 27, 2024

Wow, i see good/best support here :)

from htmly.

klyxmaster avatar klyxmaster commented on August 27, 2024

finished - thanks! used a search-n-replace and added the second linefeed to all the post - now it looks good!

from htmly.

danpros avatar danpros commented on August 27, 2024

@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.

klyxmaster avatar klyxmaster commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.