Plogger Support Forum - where can I put a link to an affiliate script? Fri, 29 Mar 2024 15:38:59 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11183#Comment_11183 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11183#Comment_11183 Fri, 31 Jul 2009 04:12:03 +0000 elias75 where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11187#Comment_11187 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11187#Comment_11187 Fri, 31 Jul 2009 09:12:36 +0000 kimparsell where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11197#Comment_11197 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11197#Comment_11197 Sat, 01 Aug 2009 04:55:10 +0000 elias75 where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11198#Comment_11198 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11198#Comment_11198 Sun, 02 Aug 2009 08:24:03 +0000 kimparsell
Open picture.php in your theme and locate the following code (you may or may not have removed the plogger function to display the description already):

print '<p id="description">' . plogger_get_picture_description() . '</p>';
To display your link under every image, change it to read:

print '<p id="description">'<a title="search for this poster on ebay" href="link to your script here">search for this poster on ebay</a>'</p>';]]>
where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11205#Comment_11205 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11205#Comment_11205 Mon, 03 Aug 2009 11:47:49 +0000 elias75
Parse error: syntax error, unexpected T_STRING in /home/elias75/public_html/FreeFilmPosters.com/ploggerb3/themes/default/picture.php on line 43

here is the exact piece of code I am using... a more experienced eye in php will probably figure it out in minutes

print '<p id="description">'<a href="http://www.freefilmposters.com/go.php?' . $picture_name . '">Buy ' . $picture_name . ' posters on eBay</a>';

please let me know what needs to be changed in order to get this running! cheers :)]]>
where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11207#Comment_11207 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11207#Comment_11207 Mon, 03 Aug 2009 14:06:02 +0000 kimparsell print '<p id="description"><a href="http://www.freefilmposters.com/go.php?'.plogger_get_picture_caption().'">Buy '.plogger_get_picture_caption().' posters on eBay</a>';
I changed the variable $picture_name to the actual Plogger function for displaying the image caption.

edit: sidtheduck fixed single quote and double quote issues.]]>
where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11215#Comment_11215 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11215#Comment_11215 Tue, 04 Aug 2009 09:19:43 +0000 elias75 where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11226#Comment_11226 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11226#Comment_11226 Thu, 06 Aug 2009 13:26:03 +0000 elias75 also how do I remove the View Image Details and the date??
many thanx in advance!]]>
where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11227#Comment_11227 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11227#Comment_11227 Thu, 06 Aug 2009 13:31:22 +0000 sidtheduck
Yes you should be able to use the same code for the Affiliate LInk. You could have used your old theme files as well (it should have notified you of old theme files during the _upgrade process).

To remove the View Image Details, just delete the following code in picture.php:
<p id="exif-toggle"><?php echo plogger_get_detail_link(); ?></p>
<div id="exif-data-container">
<?php echo generate_exif_table(plogger_get_picture_id()); ?>
</div><!-- /exif-data-container -->


To remove the date, just delete the following code:
<td class="align-right"><h2 class="date"><?php echo plogger_get_picture_date()?></h2></td>]]>
where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11228#Comment_11228 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11228#Comment_11228 Thu, 06 Aug 2009 13:48:55 +0000 elias75
<?php plogger_get_header(); ?>

<div id="inner-wrapper">

<div id="big-picture-container">
<?php if (plogger_has_pictures()) : while(plogger_has_pictures()) : plogger_load_picture(); // Equivalent to the WordPress loop
// Find thumbnail width/height
$thumb_info = plogger_get_thumbnail_info();
$thumb_width = $thumb_info['width']; // The width of the image. It is integer data type.
$thumb_height = $thumb_info['height']; // The height of the image. It is an integer data type.
?>
<table id="caption-date-table">
<tr>
<td><h2 id="picture-caption"><?php echo plogger_get_picture_caption(); ?></h2></td>

</tr>
</table><!-- /caption-date-table -->

<table id="prev-next-table">
<tr>
<td id="prev-link-container"><?php echo plogger_get_prev_picture_link(); ?></td>
<td id="next-link-container"><?php echo plogger_get_next_picture_link(); ?></td>
</tr>
</table><!-- /prev-next-table -->

<div id="picture-holder">
<a accesskey="v" href="<?php echo plogger_get_source_picture_url(); ?>"><img class="photos-large" src="<?php echo plogger_get_picture_thumb(THUMB_LARGE); ?>" width="<?php echo $thumb_width; ?>" height="<?php echo $thumb_height; ?>" title="<?php echo plogger_get_picture_caption('clean'); ?>" alt="<?php echo plogger_get_picture_caption('clean'); ?>" /></a>
<p id="description"><?php echo plogger_get_picture_description(); ?></p>

</div><!-- /picture-holder -->

</div><!-- /big-picture-container -->

<?php echo plogger_display_comments(); ?>
<?php endwhile; ?>
<?php else : ?>
<div id="no-pictures-msg">
<h2><?php echo plog_tr('Not Found') ?></h2>
<p><?php echo plog_tr('Sorry, but the image that you requested does not exist.') ?></p>
</div><!-- /no-pictures-msg -->
<?php endif; ?>
</div><!-- /inner-wrapper -->

<?php plogger_get_footer(); ?>]]>
where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11229#Comment_11229 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11229#Comment_11229 Thu, 06 Aug 2009 13:49:33 +0000 kimparsell <td class="align-right"><h2 class="date"><?php echo plogger_get_picture_date()?></h2></td>
to this:
<td class="align-right"></td>
For displaying your affiliate link, change the code you had before to read as follows:
<p id="description"><a href="http://www.freefilmposters.com/go.php?<?php echo plogger_get_picture_caption(); ?>">Buy <?php echo plogger_get_picture_caption(); ?> posters on eBay</a></p>
I would also recommend making a copy of the modified default theme folder you're using, renaming it to freefilmposters, and uploading it to your plog-content/themes/ folder. If you continue using the folder name default, any changes you've made will be overwritten in future upgrades. By using a custom folder name, the upgrade process shouldn't touch that. As always, be sure you back up a copy of all of your theme files to your computer so they can be restored in the event of an issue during an upgrade.]]>
where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11230#Comment_11230 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11230#Comment_11230 Thu, 06 Aug 2009 13:53:12 +0000 kimparsell where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11231#Comment_11231 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11231#Comment_11231 Thu, 06 Aug 2009 14:01:56 +0000 elias75
strange though cause any changes I made to the picture.php file they do not show up! There must be a conflict somewhere else... I am 100% sure I edit the right file and I am 100% sure I FTP it correct....]]>
where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11232#Comment_11232 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11232#Comment_11232 Thu, 06 Aug 2009 14:03:01 +0000 elias75 where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11233#Comment_11233 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11233#Comment_11233 Thu, 06 Aug 2009 14:09:16 +0000 kimparsell
Open picture.php in your theme and replace all of the code in that file with the following:
<?php plogger_get_header(); ?>

<div id="inner-wrapper">

<div id="big-picture-container">
<?php if (plogger_has_pictures()) : while(plogger_has_pictures()) : plogger_load_picture(); // Equivalent to the WordPress loop
// Find thumbnail width/height
$thumb_info = plogger_get_thumbnail_info();
$thumb_width = $thumb_info['width']; // The width of the image. It is integer data type.
$thumb_height = $thumb_info['height']; // The height of the image. It is an integer data type.
?>
<table id="caption-date-table">
<tr>
<td><h2 id="picture-caption"><?php echo plogger_get_picture_caption(); ?></h2></td>
<td class="align-right"></td>
</tr>
</table><!-- /caption-date-table -->

<table id="prev-next-table">
<tr>
<td id="prev-link-container"><?php echo plogger_get_prev_picture_link(); ?></td>
<td id="next-link-container"><?php echo plogger_get_next_picture_link(); ?></td>
</tr>
</table><!-- /prev-next-table -->

<div id="picture-holder">
<a accesskey="v" href="<?php echo plogger_get_source_picture_url(); ?>"><img class="photos-large" src="<?php echo plogger_get_picture_thumb(THUMB_LARGE); ?>" width="<?php echo $thumb_width; ?>" height="<?php echo $thumb_height; ?>" title="<?php echo plogger_get_picture_caption('clean'); ?>" alt="<?php echo plogger_get_picture_caption('clean'); ?>" /></a>
<p id="description"><a href="http://www.freefilmposters.com/go.php?<?php echo plogger_get_picture_caption(); ?>">Buy <?php echo plogger_get_picture_caption(); ?> posters on eBay</a></p>
</div><!-- /picture-holder -->

</div><!-- /big-picture-container -->

<?php echo plogger_display_comments(); ?>
<?php endwhile; ?>
<?php else : ?>
<div id="no-pictures-msg">
<h2><?php echo plog_tr('Not Found') ?></h2>
<p><?php echo plog_tr('Sorry, but the image that you requested does not exist.') ?></p>
</div><!-- /no-pictures-msg -->
<?php endif; ?>
</div><!-- /inner-wrapper -->

<?php plogger_get_footer(); ?>

Upload the edited version of this file to your theme folder on your server and you should see the changes reflected.

Let us know if you're still having any issues.]]>
where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11234#Comment_11234 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11234#Comment_11234 Thu, 06 Aug 2009 14:11:51 +0000 kimparsell where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11235#Comment_11235 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11235#Comment_11235 Thu, 06 Aug 2009 15:19:12 +0000 elias75 tomorrow I will sort out the title tag issue and will donate again!

PLOGGER IS SUCH A GREAT SCRIPT AND YOU GUYS PROVIDE THE BEST SUPPORT!
Cheers! :) :) :) :) :)]]>
where can I put a link to an affiliate script? http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11236#Comment_11236 http://www.plogger.org/forum/comments.php?DiscussionID=2817&Focus=11236#Comment_11236 Thu, 06 Aug 2009 15:26:21 +0000 kimparsell $theme_name = 'Free Film Posters';
$version = '1.0';
$author = 'Elias';
$url = 'http://www.freefilmposters.com/';
$description = 'This is the custom Plogger theme for Free Film Posters. It is a modified version of the Classic (default) Plogger theme.';
$license = 'GNU General Public License (GPL)';

That will show your custom theme with the name you have given it, rather than having two Classic themes.

Glad that it's all gotten sorted out for you. :)]]>