Valerie バレリー

Fanpopping since December 2011

  • Female, 18 years old
  • Tokyo, Bunkyo-ku
begin module_timer = Time.now.gmtime # render(:partial=>"shared/module_renderer_2007", :locals=>{ # :title => "About Me", #nil or string: html for title # :titlelink=> nil, #nil or string: url for title (if nil, title is not linked) # :contentcount=> nil, #nil or string: item count (not in h2) # :addlink => nil, #nil or string: html for titlebar link - needs false, #boolean: show the link on the title bar? # :bodypartial => "fan_profile_medium_module_2007", #string: partial containing the body of the module # :bodylocals => {:localvar=>true}, #hash: local variables to pass to the bodypartial # :bodyobject => @user, #object: the object to pass to the bodypartial # :size => "small", #int or string: "small" "medium" "wide" "tv" # :color => nil, #string: border color # :bgcolor=> "#000000", #string: background color # :fontcolor=> "#FFFFFF", #string: font color # :roundedbottoms=>true #boolean: rounds bottoms; default false # }) module_right_padding = 0 module_left_padding = 0 begin if size.is_a? Integer width = size.to_i else case size.to_s when "small", "310" width = 310 if @custom_ad_campaign_config[:module_small_width] width = @custom_ad_campaign_config[:module_small_width].to_i end if @custom_ad_campaign_config[:module_small_left_margin] module_left_padding = @custom_ad_campaign_config[:module_small_left_margin].to_i end if @custom_ad_campaign_config[:module_small_right_padding] module_right_padding = @custom_ad_campaign_config[:module_small_right_margin].to_i end when "wide", "910" width = 910 if @custom_ad_campaign_config[:module_wide_width] width = @custom_ad_campaign_config[:module_wide_width].to_i end if @custom_ad_campaign_config[:module_wide_left_margin] module_left_padding = @custom_ad_campaign_config[:module_wide_left_margin].to_i end if @custom_ad_campaign_config[:module_wide_right_margin] module_right_padding = @custom_ad_campaign_config[:module_wide_right_margin].to_i end when "med", "medium", "590" width = 590 if @custom_ad_campaign_config[:module_med_width] width = @custom_ad_campaign_config[:module_med_width].to_i end if @custom_ad_campaign_config[:module_med_left_margin] module_left_padding = @custom_ad_campaign_config[:module_med_left_margin].to_i end if @custom_ad_campaign_config[:module_med_right_margin] module_right_padding = @custom_ad_campaign_config[:module_med_right_margin].to_i end when "tv", "590" width = 590 if @custom_ad_campaign_config[:module_tv_width] width = @custom_ad_campaign_config[:module_tv_width].to_i end if @custom_ad_campaign_config[:module_tv_left_margin] module_left_padding = @custom_ad_campaign_config[:module_tv_left_margin].to_i end if @custom_ad_campaign_config[:module_tv_right_margin] module_right_padding = @custom_ad_campaign_config[:module_tv_right_margin].to_i end else width = 590 if @custom_ad_campaign_config[:module_med_width] width = @custom_ad_campaign_config[:module_med_width].to_i end if @custom_ad_campaign_config[:module_med_left_margin] module_left_padding = @custom_ad_campaign_config[:module_med_left_margin].to_i end if @custom_ad_campaign_config[:module_med_right_padding] module_right_padding = @custom_ad_campaign_config[:module_med_right_margin].to_i end end end rescue size = nil width = 590 end begin darkblue = "#3664a6" googleblue = "#c3d9ff" lightblue = "#d8e0f0" color = lightblue if !color if @custom_ad_campaign_config[:module_border_color] color = @custom_ad_campaign_config[:module_border_color] end rescue color = lightblue end begin bgcolor = "#ffffff" if !bgcolor rescue bgcolor = "#ffffff" end begin fontcolor = "#000000" if !fontcolor rescue fontcolor = "#000000" end begin roundedbottoms = false if !roundedbottoms rescue roundedbottoms = false end begin title = nil if !title rescue title = nil end begin h1 = false if !h1 rescue h1 = false end if @h1_used h1 = false end if h1 == true h2 = false end begin h2 = false if !h2 rescue h2 = false end begin contentcount = false if !contentcount rescue contentcount = false end begin if h1 == true h1_id = nil if !h1_id else h1_id = nil end rescue h1_id = nil end begin titlelink = nil if !titlelink rescue titlelink = nil end begin addlink = nil if !addlink rescue addlink = nil end begin showaddlink = nil if !showaddlink rescue showaddlink = nil end begin bodypartial = nil if !bodypartial rescue bodypartial = nil end begin bodyobject = nil if !bodyobject rescue bodyobject = nil end begin bodyname = nil if !bodyname rescue bodyname = nil end begin bodylocals = {} if !bodylocals rescue bodylocals = {} end begin cache = false if !cache rescue cache = false end begin if module_class.to_s == "" module_class_array = [] else module_class_array = [module_class.to_s] end rescue module_class_array = [] end begin if module_style.to_s == "" module_style_array = [] else module_style_array = [module_style.to_s.chomp(';')] end rescue module_style_array = [] end if @module_renderer_2007_count.nil? @module_renderer_2007_count = 1 else @module_renderer_2007_count += 1 end if @fanpop_layout == 2012 begin bgcolor = nil if !bgcolor rescue bgcolor = nil end module_class_array = ["module","m2007"] + module_class_array bodylocals[:my_module_width] = width bodylocals[:my_module_color]=color bodylocals[:my_module_bgcolor]=bgcolor bodylocals[:my_module_fontcolor]=fontcolor bodylocals[:my_module_title]=title #rendered_partial = render(:partial=>bodypartial, :object=>bodyobject, :locals=>bodylocals) if addlink.to_s != "" if addlink =~ /^]*<\/a>/ || addlink=~ /profile gallery[^<>]*<\/a>/ || addlink=~ /return[^<>]*<\/a>/) && addlink =~ /(add|ask|join|write|upload|compose|create)[^<>]*<\/a>/ addlink.gsub!("]*>/, "") else addlink.gsub!("]*>/, "") addlink.gsub!(/\|/, "") end #if addlink =~ /\|/ || addlink=~ /play/ || addlink=~ /profile gallery/ || addlink=~ /return/ # addlink.gsub!("]*>/, "") #end else addlink = "#{addlink}" end end end begin if module_id.to_s != "" module_id_override = module_id else raise "module id not set - setting to empty string and determining if a preset module id will fit" end rescue module_id = nil module_id_override = nil end if controller.controller_name=="category" h2=true if title =~ /featured poll/i module_id = "more-picks" elsif title =~ /poll/i module_id = "picks" elsif title =~/image|photos|wallpapers|icons|fan art|screencaps/i module_id = "photos" elsif title =~/video/i module_id = "videos" elsif title =~/quiz/i module_id = "quiz" elsif title =~/links/i module_id = "links" elsif title =~/wall/i module_id = "wall" elsif title =~/fans/i module_id = "fanlist" elsif title =~/forum/i if controller.action_name =~ /forum/ module_id = "forum" else module_id = "side-forum" end elsif title =~/update/i if controller.action_name =~ /update/ module_id = "updates" else module_id = "side-updates" end elsif title =~/related clubs/i module_id = "related-clubs" elsif title =~ /answers/i module_id = "answers" elsif title =~ /article/i module_id = "articles" elsif title =~ /popular content/i module_id = "popular-content" elsif title =~ /^[0-9]+ (comments|replies)$/ && @module_renderer_2007_count.to_i > 1 h2=false end if controller.action_name == "forumpost" && @module_renderer_2007_count.to_i==1 module_id = "forum" end elsif controller.controller_name == "site" h2 = false if h2.nil? || h2 != true if title =~ /featured poll/i h2 = true module_id = "more-picks" elsif title =~ /pop quiz/i h2 = true module_id = "quiz" elsif title =~ /related images/i h2 = true module_id = "related-images" elsif title =~ /related videos/i h2 = true module_id = "related-videos" elsif title =~/related clubs/i h2 = true module_id = "related-clubs" elsif title =~ /popular content/i h2 = true module_id = "popular-content" end if controller.action_name == "showimage" if @module_renderer_2007_count.to_i==1 h2 = true module_id = "photos" end elsif controller.action_name == "showvideo" if @module_renderer_2007_count.to_i==1 h2 = true module_id = "videos" end elsif controller.action_name == "show" if title.to_s == "" module_id = "links-view" title = "Link" addlink = "Add a Link" showaddlink = @luser && @luser.is_legit_user && @luser.is_old_enough h2=true end end elsif controller.controller_name == "channel" if title == "browse" module_id = "all-channels" end elsif controller.controller_name == "soapbox" if title =~/related clubs/i h2 = true module_id = "related-clubs" elsif title =~ /my drafts/i h2 = true module_id = "my-article-drafts" elsif title =~ /related links/i h2 = true module_id = "related-links" elsif title =~ /popular content/i h2 = true module_id = "popular-content" end if controller.action_name == "list" if title =~ /articles/i h2 = true module_id = "articles" end end if controller.action_name == "show" if title.to_s == "" module_id = "article-view" soapbox = Soapbox_article_slave.find(:first, :conditions=>["site_id=?", @site.id], :select=>"id, article_type_id") if @site article_type = Article_type_slave.find(:first, :conditions=>["id=?", soapbox.article_type_id], :select=>"name") if soapbox if article_type && article_type.name != "other" title = "#{article_type.name.capitalize} Article" else title = "Article" end addlink = "write an article" showaddlink = true h2=true end end elsif controller.controller_name == "poll" if title =~/related clubs/i h2 = true module_id = "related-clubs" elsif title =~/more/i h2 = true module_id = "more-picks" elsif title =~ /popular content/i h2 = true module_id = "popular-content" elsif @module_renderer_2007_count.to_i < 3 && title.to_s != "" module_id = "picks" h2=true end elsif controller.controller_name == "quiz" if title =~/related clubs/i h2 = true module_id = "related-clubs" elsif title.to_s =~ /stats/ module_id = "quiz" h2=true elsif title =~ /popular content/i h2 = true module_id = "popular-content" elsif (@module_renderer_2007_count.to_i < 3 && title.to_s != "") module_id = "pop-quiz" h2=true end elsif controller.controller_name == "answer" if title =~/related clubs/i h2 = true module_id = "related-clubs" elsif title =~ /popular content/i h2 = true module_id = "popular-content" elsif title =~ /top answerers/i h2 = true module_id = "top-answerers" elsif @module_renderer_2007_count.to_i <= 3 && title.to_s != "" module_id = "answers" h2=true end elsif controller.controller_name == "welcome" if title=~ /pop culture/ title.gsub!(/pop culture/, "Pop Culture") title.sub!("/images/icons/feed.gif","http://images1.fanpop.com/images/2011/rss.white.png") end end if module_id_override.to_s != "" # Update: 2014-10-29 # if module_id_override was set (that is, if module_id was passed in as a param) then replace the calculated module_id with the override value # this is done this way (instead of simply skipping the massive if-elsif-else block above because the block doesn't just change module_id so it was safer to let it run then do a replace after) module_id = module_id_override end rendered_body_partial = render(:partial=>bodypartial, :object=>bodyobject, :locals=>bodylocals) if rendered_body_partial.to_s == "" return nil end rendered_body_partial = "
#{rendered_body_partial}
" if @controller.controller_name.to_s == "welcome" || @controller.controller_name.to_s == "channel" @category = nil #clear category - otherwise, the last @category name will appear in module tops title = title.to_s.sub(" ", " ") end if @category && !(["site/show", "site/showimage", "site/showvideo"].include?("#{@controller.controller_name}/#{@controller.action_name}")) # if this isn't an image page or video page or link page, then remove redundant category/club title from module heading if !(@category.displayname =~ /[^ a-zA-Z0-9.()'":;\/\-]/) if title =~ /^#{@category.displayname.gsub(/[\/().-]/) { |s| "\\#{s}" }}/im title.gsub!(/^#{@category.displayname.gsub(/[\/().-]/) { |s| "\\#{s}" }} */im, "") end end #if title =~ /^#{@category.displayname}/im # title.gsub!(/^#{@category.displayname} */im, "") #end end collision_prevention_counter = 0 rendered_body_partial.gsub!(/]*>/) { |table_tag| randomcode = "#{Time.now.gmtime.to_i}_#{Time.now.gmtime.usec}_#{collision_prevention_counter}_#{rand(10000000)}" collision_prevention_counter += 1 if table_tag =~ /cellpadding/ cellpadding_val = table_tag.scan(/cellpadding *= *['"]*([0-9]+)/).to_s if cellpadding_val.to_i != 0 temp_css = "" end #elsif table_tag =~ /style/ #elsif table_tag =~ /class/ else temp_css = "" end if table_tag =~ /align *= *['"] *center *['"]/ if temp_css temp_css.sub!(/<\/style>$/, "margin-left:auto;margin-right:auto; }") else temp_css = "" end end if temp_css if table_tag =~ /class/ table_tag.sub!(/class *= *['"]/) { |class_tag| class_tag + "table#{randomcode} " } table_tag = "#{temp_css}#{table_tag}" else table_tag = "#{temp_css}#{table_tag[0..5]} class=\"table#{randomcode}\"#{table_tag[6..-1]}" end end table_tag } rendered_body_partial.gsub!(/]*>/) { |td_tag| if td_tag =~ /valign/ valign_value = td_tag.scan(/valign *= *['"]*([^'">]+)/).to_s if valign_value != "" if td_tag =~ /style/ td_tag.sub!(/style *= *['"]/) { |style_tag| style_tag + "vertical-align:#{valign_value};" } else td_tag = "#{td_tag[0..2]} style=\"vertical-align:#{valign_value};\"#{td_tag[3..-1]}" end end end td_tag } if bodypartial =~ /last_vote_large_module_2007/ if color == "#80c080" module_class_array.push("greenglow") elsif color == "#c04040" module_cla

My Wall

XxKeithHarkinxX said …
IIM CRYING Posted 9 months ago
MissChicky97 commented…
ME TOO 9 months ago
-Wednesday- said …
hyperventilates Posted over a year ago
MissChicky97 commented…
incoherent screaming over a year ago
MissChicky97 said about Random
I was in Geometry this afternoon, and in the middle of the lesson, one of the boys in the back of the classroom jumps up and yells "Oh my god I have crabs guys!"
My teacher was so done with our class that he just put his head down on the desk and cried.

The funny thing about this is that I'm dead serious. Posted over a year ago
hetalianstella commented…
Sounds like my geometry class...ಠ_ಠ over a year ago
penguin7710 commented…
...wow... over a year ago