Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 10-24-2007, 05:58 AM
New Pligger
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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, 04:30 AM
AnAlienHolakres3's Avatar
Pligg Donor
 
Join Date: Jul 2007
Location: Prague
Posts: 117
Thanks: 7
Thanked 112 Times in 40 Posts
Send a message via ICQ to AnAlienHolakres3
Special Advertising Add-On - RSS UPDATE

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
__________________
=Everything that has a beginnig has an end=
=Nevere stop fighting=

Site: http://www.vselink.org
Reply With Quote
The Following User Says Thank You to AnAlienHolakres3 For This Useful Post:
  #13 (permalink)  
Old 11-18-2007, 12:17 AM
New Pligger
Pligg Version: 9.8.2
Pligg Template: don't know yet
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
thanks

Thanks, I'm such a noob. This will be interesting to say the least.
Reply With Quote
  #14 (permalink)  
Old 11-18-2007, 07:43 AM
New Pligger
Pligg Version: none
Pligg Template: none
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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, 08:16 AM
AnAlienHolakres3's Avatar
Pligg Donor
 
Join Date: Jul 2007
Location: Prague
Posts: 117
Thanks: 7
Thanked 112 Times in 40 Posts
Send a message via ICQ to AnAlienHolakres3
Count in categories...

This need special modification which is described in another tutorial here:
http://forums.pligg.com/pligg-tutori...html#post39806
__________________
=Everything that has a beginnig has an end=
=Nevere stop fighting=

Site: http://www.vselink.org
Reply With Quote
  #16 (permalink)  
Old 03-22-2008, 09:59 AM
New Pligger
Pligg Version: 9.9
 
Join Date: Mar 2008
Posts: 23
Thanks: 4
Thanked 1 Time in 1 Post
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-02-2008, 11:49 PM
abraxas's Avatar
Pligg Donor
Pligg Version: Plig
Pligg Template: b-Ice
 
Join Date: Feb 2008
Location: Boulder county, CO.
Posts: 102
Thanks: 26
Thanked 1 Time in 1 Post
How To Edit The Link Table

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, 05:19 PM
Pligg Donor
Pligg Version: 9
Pligg Template: expertvision
 
Join Date: Mar 2008
Posts: 58
Thanks: 11
Thanked 0 Times in 0 Posts
For Version 9.9 ??

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, 09:25 AM
New Pligger
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Characters error in title url freakblue General Help 3 09-19-2008 03:50 PM
Special character problems in RSS and mail subject ditto Bug Report 8 04-22-2008 04:28 PM
Special character difference in tag / search Ghool General Help 2 01-27-2008 07:34 PM
Tutorial: Understanding Pligg Template Files Futurosity Template Support 3 01-27-2007 02:22 AM


Search Engine Friendly URLs by vBSEO 3.2.0