Thread: Integration with vBulletin - Photobucket Image Uploader
View Single Post
  #135  
Old 05-21-2008, 09:49 PM
lostgirl815 lostgirl815 is offline
 
Join Date: Apr 2006
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UPDATE regarding below question: sorry, I realize now what I was doing wrong. I needed to select a picture first. But I'll leave the rest of this here in case anyone else doesn't figure that out. (I'm not the only blonde here, am I?)

Nobody else has mentioned this problem so it must be my browser settings, but I have no idea which one.

When I click on the image code, and get the 'copied' message, and then paste the code into the post form... rather that the image code, this appears:

I'm using 3.7.0. Thanks for any help or advice!

Code:
<!-- Photobucket Image Upload -->
<style type="text/css">
.viewable {
display: block;
}
.viewable a {
line-height: 16px;
font-size: 14px;
font-weight: bold;
font-family: sans-serif;
color: {$vbulletin->options['photobucket_displaycolor']};
}
.viewable a:hover {
color: {$vbulletin->options['photobucket_displayhovercolor']};
cursor: pointer;
text-decoration: underline;
}
.hidden {
display: none;
}
</style>
<script type="text/javascript" language="JavaScript">
<!--
function view() {
fetch_object('hidelink').className = "viewable";
fetch_object('viewlink').className = "hidden";
fetch_object('photobucket').className = "viewable";
fetch_object('jwidget').src = "http://photobucket.com/svc/jwidget.php?width={$vbulletin->options['photobucket_width']}&height={$vbulletin->options['photobucket_height']}&largeThumb=false&pbaffsite=272&bg={$vbulletin->options['photobucket_bgcolor']}&border=false&bordercolor=%23000000&url=&linkType=img&textcolor={$vbulletin->options['photobucket_color']}&linkcolor={$vbulletin->options['photobucket_linkcolor']}&media=both&btntxt=&searchenabled=true&searchlinkcolor=&searchbgcolor="
return false;
}
function hide() {
fetch_object('hidelink').className = "hidden";
fetch_object('viewlink').className = "viewable";
fetch_object('photobucket').className = "hidden";
return false;
}
//-->
</script>
<fieldset class="fieldset">
     <legend>Add images from your Photobucket Account</legend>
     <div style="padding:$stylevar[formspacer]px">
<span id="viewlink" class="viewable">
<nobr><a href="javascript:{}" onclick="view();">{$vbulletin->options['photobucket_displaytextvisible']}</a></nobr>
</span>
<span id="hidelink" class="hidden">
<nobr><a href="javascript:{}" onclick="hide();">{$vbulletin->options['photobucket_displaytexthide']}</a><br>
<div id="photobucket" class="hidden" align="center">
<iframe name="jwidget" id="jwidget" src="http://photobucket.com/svc/jwidget.php?width={$vbulletin->options['photobucket_width']}&height={$vbulletin->options['photobucket_height']}&largeThumb=false&pbaffsite=272&bg={$vbulletin->options['photobucket_bgcolor']}&border=false&bordercolor=%23000000&url=&linkType=img&textcolor={$vbulletin->options['photobucket_color']}&linkcolor={$vbulletin->options['photobucket_linkcolor']}&media=both&btntxt=&searchenabled=true&searchlinkcolor=&searchbgcolor=" bgcolor="transparent" width="{$vbulletin->options['photobucket_width']}" height="{$vbulletin->options['photobucket_height']}" frameborder="0" scrolling="no">You must have an iframe-compatable browser to view the Photobucket Upload form.</iframe>
</div></nobr>
</span>
     </div>
</fieldset>
<!-- / Photobucket Image Upload -->
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01160 seconds
  • Memory Usage 1,779KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete