www.enkognedo.com

  • Increase font size
  • Default font size
  • Decrease font size
Welcome to My Journey Project!

Resolving XML Parsing Error in RSS Feed for FeedWordPress

E-mail Print PDF

One of the most annoying problems I've run into in a very long time is one with a WordPress plug-in called FeedWordPress.  The plug-in is great to auto-create posts from RSS/Atom feeds, but causes a little issue with some affiliate type feeds, say from LinkShare.  The Wal-Mart feed is one of the worst for causing issues.

Here is the issue:  When the feeds are pulled in and a GUID is created, which is basically a unique identifier using the link of the feed, that link is NOT inserted using 'htmlspecialchars', so RSS feeds end up breaking because of the '&' symbol, mostly.  As you are probably aware, the ampersand should be rendered as "&" and not just the '&' symbol itself.

To fix the problem, simply go to your FeedWordPress folder and edit syndicatedpost.class.php.  Search for "return $guid;" and change that line to:  return htmlspecialchars($guid); .

Done and done!




Last Updated on Sunday, 04 July 2010 11:31
 

Integrating Affiliate Links and Joomla!

E-mail Print PDF
Inserting affiliate links from say LinkShare or Commission Junction into your Joomla content is not really difficult.  I already wrote an article here detailing the code needed to implement Commission Junction Web Services using REST.  So, several things to layout:
  1. develop your REST API using the code I provided here (this includes the REST and the call API)
  2. install the Sourcerer plugin for Joomla found here (this provides the ability to interpret PHP)
  3. remove the 'exec' restriction for the Sourcerer plugin or the rendering will be a blank article (do this under plugins - system - sourcerer)
  4. create a new article with whatever and/or the call API code (ensure the call API code is inserted with the Sourcerer button)
A couple notes on developing the REST and call API's.  I spent quite a significant amount of time developing mine, deciding what CSS to use to overcome article rendering issues (keeping things from jumbling up or simply rendering in such a way that was visually unacceptable.

Another plugin that would seemingly work is called DirectPHP.  The problem with DirectPHP is that when it is activated, it tries to execute ALL PHP.  Since I put PHP in my articles so that people can see the code, this plugin did not work for me.  Sourcerer is a case by case implementation, not a global site one.



 

Using CSS to shorten long lines (Ja-Purity Joomla! Theme)

E-mail Print PDF
User Rating: / 1
PoorBest 

I am using Geshi for my code highlighting.  Geshi does a great job with that, but not so much for wrapping very long lines of code.  There is a solution, however.  I found this solution works with IE 8.0.6001, FireFox 3.62, Opera 10.51, and Chrome 4.1.249.




Last Updated on Sunday, 04 April 2010 10:26 Read more...
 

cURL and DataFeedFile

E-mail Print PDF

If you are using feeds from DataFeedFile.com and need a workaround for the "URL file-access is disabled in the server configuration" problem, one way is to create a php.ini (or add to your existing) in the root folder of your site and add the following two options:  allow_url_fopen = Off and allow_url_include = On.  If these are not options for you, then you might try using PHP's cURL library instead.

The standard PHP code to embed DataFeedFile.com's feeds is (example only - your URL will vary, i.e. your affid and product_sku):

<?php 
include('http://www.datafeedfile.com/dffphp_script_prdtmain.php?
dffget_affid=5542&amp;dffget_style=2&amp;dffget_nw=1&amp;dffget_dff_product_sku=2537819
&amp;dffget_dff_pse_url=http%3A//path_to_your_price_search_engine&amp;'.$_SERVER['QUERY_STRING']);
?>

Workaround:

<?php
$ch = curl_init('http://www.datafeedfile.com/dffphp_script_menu.php?dffget_affid=5542
&amp;dffget_script=menu&amp;dffget_page=cat&amp;dffget_style=2&amp;dffget_cols=2
&amp;dffget_rows=12&amp;dffget_fontsize=10&amp;dffget_view=listplus
&amp;dffget_targeturl=http%3A//path_to_your_price_search_engine&amp;'.$_SERVER['QUERY_STRING']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
if(($DFF_output = curl_exec($ch))===FALSE)
die("Error getting content...please try again in a few minutes"); else echo $DFF_output;
curl_close($ch); 
?>
 



Last Updated on Sunday, 28 March 2010 20:19
 

Php Programming

E-mail Print PDF
There are no available products at this time or no search parameters were specified.
Please try again later.




Last Updated on Sunday, 18 April 2010 10:47
 

Commission Junction Web Services - Using REST

E-mail Print PDF
User Rating: / 3
PoorBest 

OK.  If you are one to know how to work with XML elements and render their output, you probably will not benefit from this article.  Commission Junction, much like all the rest, i.e. LinkShare, etc... have some type or another Web Service.  Commission Junction still uses SOAP, which I got to work, but did not try to get my output to format nicely.  Instead, I chose to work with REST using cURL to do the work.




Last Updated on Saturday, 03 April 2010 14:58 Read more...
 

cURL and GoldenCan

E-mail Print PDF
User Rating: / 2
PoorBest 

GoldenCan provides a nice way to make commissions through Affiliate Marketing.  Basically, GoldenCan provides a product feed that is formated for pagination, product searches, and product information.  One could use this feed to insert into a website dedicated to Affiliate Marketing or maybe one where it is content relevant.  Depending on the web host, there may or may not be "out of the box" success with GoldenCan's code.




Last Updated on Sunday, 28 March 2010 18:13 Read more...
 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  4 
  •  5 
  •  6 
  •  7 
  •  8 
  •  9 
  •  Next 
  •  End 
  • »


Page 1 of 9

Design Center Tips

Adobe Design Center RSS Feed
Learn how to use and integrate Adobe products with step-by-step tutorials on new features, key workflows, and advanced techniques.

Inside Gaming

  • Flashpoint just didn't get the high marks it deserved.  For those who like local, campaign play, this is the game for you.  It is intense, very difficult and will keep you on the edge of your seat figuring and carrying out that perfect strategy.

    There is a lot of evasive or eluding type play - meaning that you don't always have to engage the enemy just because you can see them.  If you want to survive in this game, you have to be tactically sound in your decisions, well disciplined, and patient.

    Read more...
  • The graphics were great, the individual scenes awesome, the length of play...   HIGHLY disappointing!  

    I played this game for just over 11 hours.  I don't consider myself a "gamer".  I've always thought of gamers as those who buy every new game as it becomes available to buy and play it straight through to the finish.  Some of these people even use the system to quickly play it, take it back or trade it in for another, or whatever.

    Read more...
  • Never go into battle alone! EA's Montreal development studio is changing the face of how people will play games. Delivering a groundbreaking strategic 3rd person co-op shooter unparalleled in the action genre, EA Montreal's ARMY OF TWO focuses on gameplay centered around TWO man missions, TWO man strategies, TWO man tactics and a TWO man advantage

    Fight along side your team-mate to become the deadliest two-man military outfit a government can buy. The breakthrough gameplay in ARMY OF TWO, with a live or adaptive AI partner, enables you to take advantage of two-man strategies like customizable weapons, vehicles, and tactical shooting.

    From TWO man sniping to parachuting, players will experience action-packed scenarios where they will have to use their wit, strength and a deadly arsenal of shared customizable weapons to successfully defeat their enemies and complete the mission at hand.

    Gamers will fight their way through war, turmoil and a conspiracy so vast it threatens the entire world. When one man is not enough, it's going to take an army of two to save us.

    Key Features

  • "Two Man" Gameplay-Co-op is no longer a mode, it's the game. Team up with a live or AI partner on two-man missions using two-man tactics to ultimately create an advantage that no enemy can withstand.
  • Partner AI-ARMY OF TWO delivers intelligent partner AI (PAI) that interacts, adapts, collaborates and learns from their human partner. The PAI will also react and adjust to the gamer's ability and how they play the game by taking the lead or following, driving strategy or taking orders. It is the dream of the human machine.
  • Customizable Weapons-Customize and upgrade dozens of deadly weapons and share them with your partner off or online.
  • Dynamic
Read more...
  • You are Commander Shepard of the starship Normandy and you are the last hope for all life in the Galaxy. Saren, a rogue member of the elite and untouchable Spectre agents, has discovered the secret to unleashing an apocalyptic force on the galaxy, and only you stand in his way.

    To save the lives of billions, you must do whatever it takes to stop Saren and prevent the return of an ancient force bent on the destruction of all organic life.

    • Experience a rich and engrossing story where your choices decide the fate of galaxy
    • Engage in emotionally charged interactions with the most realistic Digital actors ever seen in a Video game, using an innovative new dialog system
    • Immerse yourself in an incredible new adventure from world-famous masters of the RPG: BioWare
    • Dominate the battlefield with new individual squad member command system-Optimized controls designed specifically for the PC
    • High Resolution visuals - highly detailed textures, characters and environments
    • Fully customizable controls - you can re-map the control scheme any way you like
    • Run & Gun Control - You can assign biotic powers or skills to 'hot keys' allowing you to play Mass Effect with a heavier Focus on action
    • Decryption mini-game
    • New inventory screen GUI and functionality - The enhanced inventory system makes it easier for you to equip and modify your weapons and armor
    Read more...
  • By far one of the most realistic combat games I've ever played!  I have a bit of sensitivity to some of the darker scenes and how it "moves", but I am addicted to the game!  Blowing up things in this game is extremely realistic.  Much like the Mercenaries 2 game, the realism and level of interaction is unsurpased.  This is another Electonic Arts work of true art!

    Read more...
  • Sponsored Links

    Advertisement


    Who's Online

    We have 5 guests online