scrapbook problem

Permalink
Well here's another one. I added a google script for ads to the scrapbook. now i can't add new blocks with firefox. as soon and the div opens with the blocks the page reloads and just shows the adsense script.
In google chrome i can ad blocks but can't go to the scrapbook. It reloads to the adsense script. Can i access the scrapbook from admin and if so where? if not where is the scrapbook stored? in the database? what is the table name and i can manually delete it.

So i guess this would mean that you can not add javascript to the scrapbook huh?

[edit]I just realized that i can not add blocks with chrome either.[/edit]

elygen
 
elygen replied on at Permalink Reply
elygen
Please someone help me with this. I can not do any work. How can i remove the javascript from the scrapbook.
ijessup replied on at Permalink Reply
ijessup
Can you post the script you were using?
elygen replied on at Permalink Reply
elygen
<script type="text/javascript"><!--
google_ad_client = "pub-1653146024031429";
/* 250x250, created 1/7/09 */
google_ad_slot = "1694196343";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
ijessup replied on at Permalink Reply
ijessup
What block did you put the script in? Content?

I'm trying to recreate the problem and see what is causing it.
elygen replied on at Permalink Reply
elygen
Yes it was in the content block. I forgot about that. I just found it in the database and deleted it manually. now it is working. But why can't we save javascript in the scrapbook. Perhaps i'll build a javascript block of sorts.

Thanks I just needed someone to shake my brain a little.
ijessup replied on at Permalink Reply
ijessup
Funny, I couldn't even get your code to work at all. You could try making a new html file and put you code in there then use the External Forms block to post your scripts
frz replied on at Permalink Reply
frz
yeah i think the answer is: "cause we didn't think of that.."

when you get 1000's of people using an app all of a sudden weird stuff like this emerges... we already have some hooks that do stuff like disable rich media when in edit mode as flash and quicktime has a tendency to overlap buttons you need to click in our UI...

I think this falls in teh same category... don't let the scrapbook show preview of javascript.. we'll make sure there's some type of fix to that in the next version release.. perhaps just use the defaults in page types to get ads where you want them?
there's also some super simple blocks in the marketplace today you might use that let you just stick some source in there.. although to be honest i'm not sure we thought through the scrapbook ramifications you found there either..
abulka replied on at Permalink Reply
abulka
I have the same problem - some google ads javascript found itself into the scrapbook and now that code triggers everytime I try to add content - and I'm whisked away to a page that is blank and just keeps loading...

Basically my entire concrete5 installation is broken as I cannot edit anything. This is pretty serious :-(

How did you manage to delete the contents of the scrapbook using mysql? Can I just delete the rows in the "Piles" and/or "PileContents" tables?

P.S. There should at least be a "maintenance" option to clear the scrapbook.
abulka replied on at Permalink Reply
abulka
Ok - figured it out - the list of scrapbook content is represented by the entries in table PileContents.

PileContents.ItemId points to the table btContentLocal. Edit the bad content in the table btContentLocal.content

Not sure if deleting rows in table PileContents would work - I think it might... (haven't tried it - too scared)

I used phpmyadmin to do this repair. Really, the scrapbook should be more resilient to javascript rubbish (I was pasting content in from my old website INTO concrete5 - that's how it got there).
frz replied on at Permalink Reply
frz
we'll take care of it..

there's a bug you can comment to here.
http://www.concrete5.org/index.php?cID=3825...