1 2 3
#31November 19th, 2007 · 10:27 PM
117 threads / 20 songs
1,422 posts
United States of America
my "block unwanted popups" option in my browser shot down your popVideo.php call, but it did work. 

Bite me

kings wrote…
I still don't understand how you can put a background colour to text as on this page, in dodosito's quote. I checked the page source and came up with a html DIV called CLASS, the yellow background is called 'eop' and the green class is called 'ecl', are these class codes particular to this site? If so, are there more?

yes, it's a CSS class that is being defined by a custom css file, likely in http://www.bandamp.com/css/main.css ... that's just my guess for the source file.  I've looked through them before.  if i'm not mistaken, the class definition is carries the following style:

eop {background-color: #00ff00}

(edit:  ah, correction... the class is located in http://www.bandamp.com/css/forge.css . I think bandamp is using an almost-depricated tag "BACKGROUND:" instead of "background-color:".  Whatever, it gest the job done.  within this css file i've given, all the forum classes are listed, such as the definitions for the CODE blocks, QUOTE blocks, and other things.)

where eop is just an alias that mud or entheon made to define this custom class.  I just picked a random hex colour.  at any rate, it's the backgroud-color: #blahblah style that does it, and bandamp's php lays down the law and makes a DIV that is of class EOP or ECL, thus altering the bgcolor for the duration of the div.  personally, i perfer to use SPAN here, rather than DIV, but that's just me.  It doesn't actually affect anything.

that's all i've got for now... i'm tired.  sleep... need ... sl.. eep..

TLS

some random tests i wanted to do...
[b]bad tag to invoke bandamp's highlighting class[/i]
hello world on new page.
, 'eop');var oRegExp = new RegExp('(^|s)' + 'ecl' + '(s|$)');el.className = (oRegExp.test(el.className)) ? el.className.replace(oRegExp, '') : el.className + ' ecl';]click here to change the EOP class to the ECL class

aw blast... on that last one, i can't make it work, since the [0] in the link is throwing off the URL tag.  (the [0] isn't viewable from your end... i can see it when i edit my post though)

after a few other tests, it seems that bandamp also strips out backslashes, as used in javascript for special caracters, like the [backslash] n character for a new line.
#32November 20th, 2007 · 04:53 AM
341 threads / 59 songs
4,361 posts
Cymru (Wales)
TLS wrote…
after a few other tests, it seems that bandamp also strips out backslashes, as used in javascript for special caracters, like the [backslash] n character for a new line.
Yes it does    so you cant escape characters either !!!!!

The pop-up blocker is no problem at least you know what pop-up it is.

I see a little of what your trying to do.

The status bar is a good place to look too.
As with your last test the code seams to have stopped at getElementByTagName('div')[0 ........ and then is picked up again and printed on the page at .........   ,'eop');.

Hmmm! Writing Javascript into bandAmp comment boxes ! This is fun !
God! I'm sad.........

I wonder, could we put something in a page that could break bandAmp ? lol
#33November 20th, 2007 · 05:22 AM
341 threads / 59 songs
4,361 posts
Cymru (Wales)
Found the css files, lol 'mud' is a class for a div!

http://www.bandamp.com/css/main.css
http://www.bandamp.com/css/forge.css
http://www.bandamp.com/css/forum.css
http://www.bandamp.com/css/editor.css

and :

http://www.bandamp.com/scripts/main.js
http://www.bandamp.com/scripts/speller/spellChecker.js
http://www.bandamp.com/scripts/editor.js

 

This comment box div is called 'p_end', within it is a div called 'abbc', the 'eop' and 'ecl' seams to be spans created at a [tag] error.
#34November 20th, 2007 · 05:38 PM
117 threads / 20 songs
1,422 posts
United States of America
it may be hard to actually break bandamp, and it would be very user-launched since i'm only seeing ways to run js code upon a link click.  i'm not sure that there's any way to make an automatically-run script on the page since the only real way to trick bandamp into using code of any sort (html, javascript, php) is through that URL tag.  PHP is written html style, so the following...
<?php .... ?>
is going to get stripped, surely.  Besides... i'm not sure php would work anyway, since the forum pages are rendered as ".html" files and not ASP or PHP or the like... I've never taken the time to check, but if a normal ".html" file tries to pitch a PHP command... will the server run it?  We know the server is PHP-capable, but is the html parser able to handle the PHP tags if the file type is just a plain HTML?  i could check with apache here, running my webiste test space, but i've got too many things to do

I'll get back to you on that..
#35November 22nd, 2007 · 05:54 PM
341 threads / 59 songs
4,361 posts
Cymru (Wales)
Yes do so.....
Test link

A well! worth a try. :]
#36November 22nd, 2007 · 06:33 PM
30 threads / 5 songs
757 posts
Australia
SIGNATURE?
I hope this isn't a photo of your work place OH&S standards PX.
Or is it time to head 4 the  bunker?   
#37November 23rd, 2007 · 02:07 AM
341 threads / 59 songs
4,361 posts
Cymru (Wales)
I always thought it was 'The pit'(s) ! lol
1 2 3
Sorry, you do not have access to post...
Wanna post? Join Today!

Server Time: April 25th, 2024 · 1:57 AM
© 2002-2012 BandAMP. All Rights Reserved.