|
Post by Dragon on May 11, 2012 20:05:35 GMT -8
What Im thinking here is combining the replace anything code with image ubbc [img[/img] in someway so we can replace the inputted same number for the same image with different links. url=http://www.avrillavigne.com/us/home img img703.imageshack.us/img703/8540/cpbuttonofficialsite.png /img /url is what I have right now. Unfortunately the issue is that eventually the image is going to need to change and the same problem of going through the 1000 posts to change out the imagelink.... It hit me since Imageshacks new policy that we can only have 500 images without membership per account... Since I had multiple accounts last month it was quit the change to get most everything to 1 account that has cheap membership... I'm sortof ranting here, the point being that it is quite likely at some point the imagelink will need changing. What Im thinking: url=http://www.avrillavigne.com/us/home img #1 /img /url I tried simply doing that with the replace anything but it wont work like that. What do you think Wormo? *Note had to take out brackets because it didnt show otherwise? Look under modify to see here what I said above for what Im thinking: and [img src="[#1]"]
|
|
|
Post by Wormopolis on May 11, 2012 22:32:10 GMT -8
so the same number shows the same image, but links are random? how would it know which url to go to?
|
|
|
Post by Dragon on May 12, 2012 13:53:42 GMT -8
This is a working link where you hide the url to have an image in front and click it to go to the link: As you see its the image for Official band page, the link takes you to AvrilLavignes homepage. I want to use that same image for each of the official home pages: backstreetboys.com or paramore.com etc. How I think it should go: [img src="[#1]"]Simply placing the number where the link image url went before; put in the same spot and works like replace anything where it recognizes #1 as where to put the image link, if we get it to work to show the image the same way as [url=link[img#1[/img[/url..... See what I mean there? (had to be tricky with the brackets otherwise it doesnt show at all except under edit :/) Example in case you didnt see it without brackets: [url=http://www.avrillavigne.com/us/home][img][#1][/img][/url] Something like that, so we use only the official link image: for each different band official link name. If we tried putting it up in the aboved code it leaves a blank spot. Its possible if we use censored words it would go in and replace the given phrase like MYTABLEGB into the link, but were trying to avoid relying on that since it gets tricky with edits. I had to remove MYTABLEBG completely so I could edit the 1000 movies this past week for example
|
|
|
Post by Dragon on May 12, 2012 14:32:24 GMT -8
Instead of looking for multiple links to tag the same image, its kind of like adding to the [url=link[img[/img] brackets so that it looks for a static unchanging number #1 we add.
|
|
|
Post by Dragon on May 14, 2012 12:50:52 GMT -8
Bump - Happy summer Wormo.
|
|
|
Post by Wormopolis on May 14, 2012 19:23:46 GMT -8
what if you setup one of the change anything presets, like [#100]
and did this with ubbc:
[url=http://www.avrillavigne.com][#100][/url]
|
|
|
Post by Dragon on May 15, 2012 0:49:35 GMT -8
I tried, it did not work. The area turned blank, nothing seemed to show.
|
|
|
Post by Wormopolis on May 15, 2012 18:27:53 GMT -8
link me to the post. Im wondering if the PB UBBC converter is doing something weird...
|
|
|
Post by Dragon on May 18, 2012 22:52:55 GMT -8
|
|
|
Post by Wormopolis on May 19, 2012 11:37:56 GMT -8
by default images have a border. change this line
td.innerHTML= td.innerHTML.replace(/\[#(\d+?)\]/g, function(ign, refnum) { if (refnum && presetImageArray[refnum]) return ('<img src="'+ presetImageArray[refnum] +'" border="0">'); });
add the red
|
|
|
Post by Dragon on May 19, 2012 15:59:16 GMT -8
How come the other images dont have a border if thats the case? Thatll do, it works just fine for what we need. Thanks Wormo! *drops basket of sugarfree cookies by Wormos computer*
|
|
|
Post by Wormopolis on May 19, 2012 18:47:18 GMT -8
were those other images inside links as well?
|
|
|
Post by Wormopolis on May 19, 2012 18:48:46 GMT -8
PB adds that border for some reason around images inside links it parses. other images you added came from a code.
|
|
|
Post by Dragon on May 20, 2012 10:03:06 GMT -8
Yeah, other than official, the rest came from replace links with images code. As far as I can tell it works perfectly, though again I only have IE now a days Just set my computer back to out of factory too so its an older version of IE
|
|