Reerence to https instead of http... even when i specify https url?

Hello

thanks in advance for any and all assistance. I have a plugin called Page View (for wordpress) which basically allows a html page ive made, to be loaded within a ‘wordpress’ page on my site.

my site is secured with ssl and the html page is located within the site.

The plugin calls the html page into my wordpress page (embeds it) as a http page… and i do not know how to code this to make sure it loads up as a https page.

can anyone suggest where this can be fixed?

Thanks!

[php]

<?php /* Plugin Name: Page View Plugin URI: http://urbangiraffe.com/plugins/pageview/ Description: Allows the insertion of code to display an external webpage within an iframe, along with a title and description. The tag to insert the code is: [pageview url="url" title="title"] Version: 1.5.1 Author: John Godley Author URI: http://urbangiraffe.com */ class PageView { function PageView() { add_shortcode( 'pageview', array( &$this, 'shortcode' ) ); } function render( $url, $title, $desc, $width, $height, $border, $scroll ) { $width = preg_replace( '/[^0-9%px]/', '', $width ); $height = preg_replace( '/[^0-9%px]/', '', $height ); $border = ( $border == 'yes' ) ? 'border: 1px solid #999' : ''; if ( !in_array( $scroll, array( 'auto', 'yes', 'no' ) ) ) $scroll = 'no'; ob_start(); ?>
<?php if ( $title || $desc ) : ?>
		<?php if ( $title ) : ?>
			<tr>
	      <td width="80"><strong><?php _e( 'Title' ); ?>:</strong></td>
	      <td><a title="View fullscreen" target="_blank" href="<?php echo $url ?>"><?php echo esc_html( $title ) ?></a></td>
			</tr>
		<?php endif; ?>
		
		<?php if ( $desc ) : ?>
	  	<tr>
		    <td width="80" valign="top"><strong><?php _e( 'Description' ); ?>:</strong></td>
	      <td><?php echo esc_html( $desc ) ?></td>
			</tr>
		<?php endif; ?>
		
  </table>
<?php endif; ?>
<?php $contents = ob_get_contents(); ob_end_clean();
	return $contents;
}

function shortcode( $attrs, $content = null, $code = '' ) {
	$title  = $desc = $url = '';
	$height = '400px';
	$width  = '100%';
	$border = 'no';
	$scrolling = 'no';

	if ( isset( $attrs['url'] ) ) {
		// New style
		foreach ( array( 'url', 'title', 'desc', 'height', 'width', 'border', 'scrolling' ) AS $attr ) {
			if ( isset( $attrs[$attr] ) )
				$$attr = $attrs[$attr];
		}
	}
	else {
		// Old style
		$url   = $attrs[0];
		$title = $desc = '';
		
		if ( isset( $attrs[1] ) )
			$title = $attrs[1];

		if ( count( $attrs ) > 2 )
			$desc = implode( ' ', array_slice( $attrs, 2 ) );
	}

	if ( $url )
		return $this->render( $url, $title, $desc, $width, $height, $border, $scrolling );
	return '';
}	

}

function register_pageview() {
global $pageview;

$pageview = new PageView();

}

add_action( ‘init’, ‘register_pageview’ );
[/php]

Well, all you showed was the page code, not the calling code… Normally, you have the code you showed,
then some code that calls the code. Most likely, it would be something like: PageView(“http:mypage.php”)
Or, PageView_init(“http:mypage.php”) So, find where the PageView is actually called from and change the reference to the URL to be https not http. good luck…

the code is [pageview url=“url” title=“title”]

even though i put the “url” as “https://domain.com/page.html”, it loads up as http://domain.com/page.html when the pageview plugin loads that html within my wordpress page

it is defaulting to the HTTP somewhere and somehow but how to fix this is beyond my skill

Sorry, I was gone for a few days…

Try not using the front part of the URL… So, where it is: “https://domain.com/page.html

Try using “www.domain.com/page.html” or just “domain.com/page.html

Then, the page will load just the default for the page. If the default is https, then that should load.

Also, to test, type this domain.com/page.html into your browser and see if it comes up https !

Let us know…

Sponsor our Newsletter | Privacy Policy | Terms of Service