WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › creative detail text not visible
- This topic has 3 replies, 2 voices, and was last updated 11 years ago by
webw.
-
AuthorPosts
-
March 19, 2015 at 3:32 pm #750
webw
ParticipantThe Text on my creatives detail page is not visibile. In the html code I can see it but it is not displayed on the page. What I do wrong? Is it a known problem?
I Changes nothing on this page (affilate_creatives_detail.php)I use:
WooCommerce Version: 2.0.20
WooCommerce Datenbank-Version: 2.0.20
WordPress Version: WP 4.1.1
WP Affiliate Manager: Version 1.9.5affilate_creatives_detail.php
<?php
$model = $this->viewData[‘creative’];function formatType($type)
{
switch ($type)
{
case ‘image’: return __( ‘Image’, ‘wpam’ );
case ‘text’: return __( ‘Text Link’, ‘wpam’ );
default: wp_die( __( ‘unknown creative type.’, ‘wpam’ ) );
}
}
?><script type=”text/javascript”>
jQuery(document).ready(function() {
jQuery(“#dialog-preview”).dialog({
resizable: true,
width: 640,
height: 480,
closeOnEscape: true,
modal: true,
draggable: true,
autoOpen: false,
buttons: [ {
text : ‘<?php _e( ‘OK’, ‘wpam’ ) ?>’,
click : function() { jQuery(this).dialog(‘close’); }
} ]
});jQuery(“#previewButton”).click(function() {
jQuery(“#dialog-preview”).dialog(‘open’);
});});
</script><div id=”dialog-preview” title=”<?php _e( ‘Preview’, ‘wpam’ ) ?>” style=”display: none”>
<?php echo $this->viewData[‘htmlPreview’]?>
</div><?php
echo ‘<div class=”aff-wrap”>’;
include WPAM_BASE_DIRECTORY . “/html/affiliate_cp_nav.php”;
?><div class=”wrap”>
<h2><?php _e( ‘Creative:’, ‘wpam’ ) ?> <?php echo $model->name?></h2>
<p align=”center”><button type=”button” name=”preview” id=”previewButton” class=”button-secondary”><?php _e( ‘Preview’, ‘wpam’ ) ?></button></p>
<h2><?php _e( ‘Your Affiliate-Specific HTML snippet’, ‘wpam’ ) ?></h2>
<textarea rows=”5″ class=”wpam-creative-code”><?php echo htmlspecialchars($this->viewData[‘htmlSnippet’]); ?></textarea><p/>
<?php if ($model->type == ‘text’) { ?><table class=”pure-table”>
<thead>
<tr>
<th colspan=”2″><?php _e( ‘Text Link Properties’, ‘wpam’ ) ?></th>
</tr>
</thead>
<tbody>
<tr>
<td width=”150″><?php _e( ‘Link Text’, ‘wpam’ ) ?></td>
<td><?php echo $model->linkText?></td>
</tr>
<tr>
<td><?php _e( ‘Alt Text’, ‘wpam’ ) ?></td>
<td>
<?php echo $model->altText?>
</td>
</tr>
</tbody>
</table><?php } else if ($model->type == ‘image’) { ?>
<table class=”pure-table”>
<thead>
<tr>
<th colspan=”2″><?php _e( ‘Image Properties’, ‘wpam’ ) ?></th>
</tr>
</thead>
<tbody>
<tr>
<td width=”150″><?php _e( ‘Image’, ‘wpam’ ) ?></td>
<td><img src=”<?php
$url = wp_get_attachment_image_src($model->imagePostId);
echo $url[0];?>” style=”max-width: 200px; max-height: 200px;”/></td>
</tr>
<tr>
<td><?php _e( ‘Alt Text’, ‘wpam’ ) ?></td>
<td><?php echo $model->altText?></td>
</tr>
</tbody>
</table>
<?php } ?>
</div>
</div>March 19, 2015 at 3:36 pm #751webw
ParticipantOkay, I just solved it by myself.
I deleted the followign code-rows. Now it works.
The problem was in all browsers<script type=”text/javascript”>
jQuery(document).ready(function() {
jQuery(“#dialog-preview”).dialog({
resizable: true,
width: 640,
height: 480,
closeOnEscape: true,
modal: true,
draggable: true,
autoOpen: false,
buttons: [ {
text : ‘<?php _e( ‘OK’, ‘wpam’ ) ?>’,
click : function() { jQuery(this).dialog(‘close’); }
} ]
});jQuery(“#previewButton”).click(function() {
jQuery(“#dialog-preview”).dialog(‘open’);
});});
</script>March 20, 2015 at 3:24 am #753Shadow Labs
KeymasterHi, Which file did you modify to fix it? We would like to investigate to see if it can be removed without affecting any existing functionality.
March 20, 2015 at 6:38 am #756webw
ParticipantHi,
I modiffied the file affilate_creatives_detail.php
I don’t know what job had the deleted code to do. -
AuthorPosts
- You must be logged in to reply to this topic.