Special Advertising Add-On for banners Tutorial

Register an Account
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 10-24-2007, 06:58 AM
New Pligger
 
Join Date: Sep 2007
Posts: 1
Wow, exactly what I have been looking for. I will try to use it. Many thanks!
Reply With Quote
  #12 (permalink)  
Old 10-27-2007, 05:30 AM
AnAlienHolakres3's Avatar
Pligg Donor/Coder
 
Join Date: Jul 2007
Location: Prague
Posts: 116
Send a message via ICQ to AnAlienHolakres3
If you use RSS you may notice that our special advertising link is included in rss output. In this output there is only votes count,no title and description. The more important thing is that your rss becomes INVALID.

To fix that, open rss.php in your main folder and do following:
1) find the first echo section (about line 140):
PHP Code:
        echo "<item>\n";
        echo 
"<title><![CDATA["$title "]]></title>\n";
        echo 
"<link>".getmyFullurl("storyURL"$link->category_safe_name($link->category), urlencode($link->title_url), $link->id)."</link>\n";
        echo 
"<comments>".getmyFullurl("storyURL"$link->category_safe_name($link->category), urlencode($link->title_url), $link->id)."</comments>\n";
        if (!empty(
$link_date))
            echo 
"<pubDate>".date('D, d M Y H:i:s T'$link->$link_date)."</pubDate>\n";
        else 
            echo 
"<pubDate>".date('D, d M Y H:i:s T'time())."</pubDate>\n";
        echo 
"<dc:creator>$link->username</dc:creator>\n";
        echo 
"<category>" htmlspecialchars($category_name) . "</category>\n";
        echo 
"<guid>".getmyFullurl("storyURL"$link->category_safe_name($link->category), urlencode($link->title_url), $link->id)."</guid>\n";
        echo 
"<description><![CDATA[" $description "<br /><br />".$link->votes." ".$main_smarty->get_config_vars('PLIGG_Visual_RSS_Votes')." ]]></description>\n";
        echo 
"</item>\n\n"
and add following condition:

PHP Code:
 if ($link->id <>100) { 
Please note that 100 is my special advertising link id so if you have different number change this value.
The whole code should look like this:
PHP Code:
        if ($link->id <>100) {
        echo 
"<item>\n";
        echo 
"<title><![CDATA["$title "]]></title>\n";
        echo 
"<link>".getmyFullurl("storyURL"$link->category_safe_name($link->category), urlencode($link->title_url), $link->id)."</link>\n";
        echo 
"<comments>".getmyFullurl("storyURL"$link->category_safe_name($link->category), urlencode($link->title_url), $link->id)."</comments>\n";
        if (!empty(
$link_date))
            echo 
"<pubDate>".date('D, d M Y H:i:s T'$link->$link_date)."</pubDate>\n";
        else 
            echo 
"<pubDate>".date('D, d M Y H:i:s T'time())."</pubDate>\n";
        echo 
"<dc:creator>$link->username</dc:creator>\n";
        echo 
"<category>" htmlspecialchars($category_name) . "</category>\n";
        echo 
"<guid>".getmyFullurl("storyURL"$link->category_safe_name($link->category), urlencode($link->title_url), $link->id)."</guid>\n";
        echo 
"<description><![CDATA[" $description "<br /><br />".$link->votes." ".$main_smarty->get_config_vars('PLIGG_Visual_RSS_Votes')." ]]></description>\n";
        echo 
"</item>\n\n";
        } 
Thats all
Reply With Quote
  #13 (permalink)  
Old 11-18-2007, 01:17 AM
New Pligger
Pligg Version: 9.8.2
Pligg Template: don't know yet
 
Join Date: Nov 2007
Posts: 1
Thanks, I'm such a noob. This will be interesting to say the least.
Reply With Quote
  #14 (permalink)  
Old 11-18-2007, 08:43 AM
New Pligger
Pligg Version: none
Pligg Template: none
 
Join Date: Nov 2007
Posts: 1
Hi! This may be a little off topic, but how do you display the latest/total count in your categories box?
Reply With Quote
  #15 (permalink)  
Old 11-18-2007, 09:16 AM
AnAlienHolakres3's Avatar
Pligg Donor/Coder
 
Join Date: Jul 2007
Location: Prague
Posts: 116
Send a message via ICQ to AnAlienHolakres3
This need special modification which is described in another tutorial here:
http://forums.pligg.com/pligg-tutori...html#post39806
Reply With Quote
  #16 (permalink)  
Old 03-22-2008, 10:59 AM
New Pligger
Pligg Version: 9.9
 
Join Date: Mar 2008
Posts: 23
This is an excellent tutorial. Has anyone implemented this add-on on Pligg 9.9.0? Are there more modifications required for it to work on 9.9.0?
Reply With Quote
  #17 (permalink)  
Old 04-03-2008, 12:49 AM
abraxas's Avatar
Pligg Donor
Pligg Version: Plig
Pligg Template: b-Ice
 
Join Date: Feb 2008
Location: Boulder county, CO.
Posts: 100
A fantastic module.

I am stuck at the beginning with trying to edit the _links
I do not see anywhere to edit this database or the fields within it.

I hope dearly that someone can point me in the right direction.
Thank you.
Reply With Quote
  #18 (permalink)  
Old 04-03-2008, 06:19 PM
Pligg Donor
Pligg Version: 9
Pligg Template: expertvision
 
Join Date: Mar 2008
Posts: 56
Hello,
I would like to use the add-on for adsense on xenfra but I use versione 9.9.
Is possible or need some fix?

thank's
Reply With Quote
  #19 (permalink)  
Old 07-30-2008, 10:25 AM
New Pligger
 
Join Date: Jul 2008
Posts: 2
hi nice article!

i too am stuck at "Now,we want to edit this link directly,so click on this link to edit it. You should now be in edit mode,ok? Do following changes:"

can you please be kind enough to enlighten where can we find it?

Thanks a lot.
Reply With Quote
  #20 (permalink)  
Old 10-25-2009, 08:56 AM
New Pligger
 
Join Date: Oct 2009
Posts: 18
Hi, this is something I am really interested.
Is it compatible with version 1.0?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wistie Column Changes Tutorial Yankidank Questions and Comments 14 Yesterday 10:10 AM
Pligg 1.0 > RSS Importer > replace special character martinjunker Questions and Comments 2 03-31-2011 03:06 PM
Special Characters error in title url freakblue Questions and Comments 3 09-19-2008 04:50 PM
Special character problems in RSS and mail subject ditto Questions and Comments 8 04-22-2008 05:28 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development