Dragonfly CMS v9 ⇒ Modules & Blocks :: Archives ⇒ Adding Digg to the News module :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexModules & Blocks

Archived ⇒ Adding Digg to the News module


I'm not sure if anyone has tried doing this or would like it on there site but the other day I started thinking it would be great to have a digg button in my news module hell even my gallery and other places on the site but for now I have been able to get the dig button added to the news module.


in /modules/News/index.html look for $morelink .=
add right above it

$morelink .= ' <script type="text/javascript"> digg_url = "'.$BASEHREF.getlink('News&file=article&sid='.$row['sid']).'"; digg_skin = "compact"; </script> <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script> | ';


cwells.net | FC7/Apache2/MYSQL5/PHP5/9.2
secret-order.us | FC7/Apache2/MYSQL5/PHP5/9.2RC
wowroster.net | FC8/Apache2+lighttpd/MYSQL5/PHP5/9.2

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FC/Apache2/MYSQL5/PHP5/9.2


Great idea!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


I have also just added it to my combined module

I have added both the news and combined files to wowroster.net's pastebin

News:
wowroster.net/pastebin...p?show=201
Example:
secret-order.us/df/News.html

Combined:
wowroster.net/pastebin...?show=202\
example:
secret-order.us/df/combined.html

For combined you will aslo need to add the new {S_DIGG} template variable to your theme/{theme}/templates/combined/index.html

Example:
wowroster.net/pastebin...p?show=203


cwells.net | FC7/Apache2/MYSQL5/PHP5/9.2
secret-order.us | FC7/Apache2/MYSQL5/PHP5/9.2RC
wowroster.net | FC8/Apache2+lighttpd/MYSQL5/PHP5/9.2

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FC/Apache2/MYSQL5/PHP5/9.2


Question. How would this work for Pro_News?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Apache/1.3.34 (Unix)/MySql 5.0.27-standard-log/PHP 5.1.6/DF 9.1.2.1

All times are UTC