FluxCP
FluxCP copied to clipboard
[ Bug ] Import ItemDesc
It is not possible to import the description of items in the iteminfo.lua file, even taking the clean fluxcp here in github and the iteminfo.lua file in the zackdreaver repository, the flux starts reading but does not return any description, sometimes it still matters 1 description or 2 at most, I have already changed the size of the php.ini import_max but it does not resolve.
See: https://imgur.com/HzpRf4q
Mine is not even doing anything
Same problem with 10mb of zackdreaver's file
Guys, it wasn't a bug. Make sure you also have 777 permission on itemInfo.lua file you uploading / or the folder.
Also, check the format in your itemInfo.lua file, I had to regex replace to fit a older format.
@SneakyRO I do this on localhost with 777 permission, and it only takes 2 items and ignores the rest.
exactly what is the folder where the upload file is inserted?
desktop...
@admkakaroto Check if you have the right format
@CyberDevil75 Check ur root folder / fluxcp folder
what format?
I can't get this to work either. It would be nice to have a conversion tool or something.
anyone want to try my script? replace your /module/item/iteminfo.php
with this iteminfo.php
@cydh for me it worked perfectly, it imported very fast, I just need to test if it took all the items, but it was sensational.
however items that have special characters in the description did not work properly on the import.
items that have special characters are not having their description imported completely.
however items that have special characters in the description did not work properly on the import.
@admkakaroto what is the example? maybe related to the column collation
Works but it seems like a portion of the text is cut, the first line or two and in some cases it's cropped on both ends. Does it require some specific syntax?
uh my bad. wrong cutting string. please retry https://gist.github.com/cydh/f22fcb1920e8c8251c1e1b6614a35811
if got anymore cuts, copy here the item block in ur iteminfo (without reformat or post a link) because there's no native lua for PHP and we need to match the patterns/structures in iteminfo
@cydh
Seems to work so far, although some descriptions do get botched, maybe due to connection timeouts (would be ideal to have a tool to create a populated SQL table locally). There's an issue with coloring though, anything after ^000000 will change to black and this breaks many descriptions (your own example has this issue also).
well because ^000000
means to black. see what I meant here
I can change with a title workaround, such open with <font color="#000000">
or maybe if every ^000000
as <font class='item-desc-default-color-class'>
we can't rely all desc with ^RRGGBB asdasd ^000000
, because it's not pair tag at first place, and you can find more in newer desc
Now that I think about it, it would be nice to have an option to reverse the black text to white, for those who use dark backgrounds so it's readable.
Basically a define option for the "default color" and what comes after ^000000.
updated https://gist.github.com/cydh/f22fcb1920e8c8251c1e1b6614a35811 no more force black
This is nice. I found more issues though;
- text [x]^000000", results in nothing getting parsed right after.
- %"; results in lack of line break when there should be one.
still does not work with special characters like '~'` ^' and letters like 'ã õ à è ó ò ú ù'.
I also have the same problem of accents.
for mine doesn't work, I try the last file, and it doesn't do anything. after I select the iteminfo.lua and press submit.
another question where can I setup the permission 777 permission on itemInfo.lua
https://drive.goog
le.com/file/d/1wg_dX8XCFStmknDSF6Q6CGYQrYK5Svdd/view?usp=sharing