|
Post by Dragon on Oct 5, 2013 11:23:25 GMT -8
Hey Wormo!!! I was wondering about getting a V5 version of this code: wormocodes.com/post/11158/thread Please? Its the replace text with images in posts code. I dont really get plugins, so if it could work as a code under footers, I wouldnt mind using it that way. Not really sure if this would work more as a plugin than a code anyway, so I leave it in your capable hands
|
|
|
Post by Wormopolis on Oct 7, 2013 0:16:00 GMT -8
well a plugin with an autoform would make the numbering not work since the auto form would require scanning through each time. would probably work as a footer code since you could just copy over the array you currently have. lemme look...
|
|
|
Post by Dragon on Oct 7, 2013 14:36:27 GMT -8
|
|
|
Post by Wormopolis on Oct 7, 2013 23:43:11 GMT -8
no it wont work with V5 as is because the structure has completely changed for posts.
one advantage plugins have is the ability to control variable editing. remember when this code didnt work simply because you forgot a comma? that wouldnt happen in a plugin. plugins also give access to keys for storage that we didnt use to have. version control is present with a plugin as well.
eventually, we can even charge for a plugin.. so the hours we spend working on these things can actually give back to the coders.
|
|
|
Post by Wormopolis on Oct 7, 2013 23:47:58 GMT -8
<script type="text/javascript"> <!-- // image substitution
var presetImageArray=new Array(); presetImageArray[1]="http://i918.photobucket.com/albums/ad28/ravyoshi26/3_doord_down_bg.png";
$('tr.item.post td.content div.message').each(function(){ if ($(this).html().match(/\[#(\d+?)\]/)) { $(this).html($(this).html().replace(/\[#(\d+?)\]/g, function(ign, refnum) { if (refnum && presetImageArray[refnum]) return ('<img src="'+ presetImageArray[refnum] +'">'); })); } });
//--> </script>
|
|
|
Post by Dragon on Oct 9, 2013 15:10:56 GMT -8
Hmmm, I tried putting that in but it didn't work.
Also, I noticed when I tried putting in the completed form with a few hundred images that the footers cutoff the code text at a set amount... I don't suppose you know what that's about ? Seems... like a big fault in V5. Contacting PBS to see if they can fix it.
Any idea what is making the code not work with only the small number of links ?
|
|
|
Post by Wormopolis on Oct 9, 2013 23:21:56 GMT -8
typo. recopy
|
|
|
Post by Dragon on Oct 14, 2013 18:43:27 GMT -8
Ah, thank you. the good news is that the code works in V5 now. The bad news is that they have new rules for footers in V5 where they have a very limited amount of coding space available, since they seem to want to force us to use plugins. Why, I don't know - the logic seems to be missing. They might lift the ban in the future, but if they do it won't be for a long time and we can't depend on the possibility of that since it's just as possible they never will. Is it possible to use the code in a plugin at all? A few people on PBS seemed to think so whenwe discussed the footers limit. (willing to change the numbers to something else to switch out if that helps? Any changes necessary to make it work without a limit on how many can be in the plugin/code) If not, is there anyway to work around the limit, to make room for the images data room in another form ? Using the basic code in footers, and the actual data/links elsewhere? (Can't quite think this thought all the way through, hoping you'd understand better than I do
|
|
|
Post by Wormopolis on Oct 15, 2013 19:13:43 GMT -8
how many images are we talking about?
|
|
|
Post by Dragon on Oct 16, 2013 16:00:05 GMT -8
The current V5 code in footers is able to list only 750 images, and pretty much any higher and it stops working at all from the footers running out of room. Additionally, this leaves little room for other codes which may not necessarily by made into plugins in transferring to V5. This code is the most important though.
How many images are we talking about putting onto the board ? Pretty much a limitless amount, since more and more threads would be added to each board. The movies board alone has 5000 images right now.
|
|
|
Post by Wormopolis on Oct 17, 2013 10:18:58 GMT -8
The current V5 code in footers is able to list only 750 images, and pretty much any higher and it stops working at all from the footers running out of room. Additionally, this leaves little room for other codes which may not necessarily by made into plugins in transferring to V5. This code is the most important though. How many images are we talking about putting onto the board ? Pretty much a limitless amount, since more and more threads would be added to each board. The movies board alone has 5000 images right now. Well a plugin holds less storage then headers/footers does. You might have to ask on support for ideas on how to have so many images. Or go back to just inserting them into the post directly.
|
|
|
Post by Dragon on Oct 30, 2013 20:26:06 GMT -8
Exatly how well would a plugin work ? Have a set limit number of images it could work for ?
|
|
|
Post by Wormopolis on Oct 30, 2013 22:21:03 GMT -8
for what you are doing, I dont think it would. Kami however requested osmething similar, and Todge came up with something so it might work out for you as well... I dont know if it will with the amount of image you plan on though
|
|