mrtme Posted March 15, 2007 Share Posted March 15, 2007 Hi, I have installed PHPDug, a Digg like CMS. I want to modify it to be a link database that users can search and add to. I would like to modify the existing code that lets you dig an article to record visits to the link. The dig and link would be combined. I found an example of someone modifying a similar CMS, Pligg to do this same thing ->http://www.pligg.com/forum/showthread.php?t=3964 Problem is, I don't want to use Pligg because it is bloated, PHPDug is closer to what I need but the forums are dead, can' find any help there. I modified it so when you click on the site link it adds to the count but I can't figure out how to add to the count and make the link active as well. My site: www.archioni.com Any thoughts? I could post some files, just not sure which ones Thanks in advance for any help Part of index.html {LOOP: STORIES} <table width="60%" cellpadding="0" cellspacing="0" style="padding-bottom:20px;"> <tr id="storyb{STORIES.story_id}" IF("{STORIES.buried}"=="1"){style="filter:Alpha(Opacity=80);opacity:.2;" disabled{:IF}><td width="65" align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0" class="digbox"><tr><td><table width="52" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" height="28" valign="bottom"><div class="digs" id="numdigs{STORIES.story_id}">{STORIES.story_digs}</div></td> </tr> <tr> <td height="24" align="center" valign="middle"><span class="digg">{LANG_DIGGS}</span></td> </tr> <tr> <td height="2"></td> </tr> <tr> <td height="25" align="center"><div class="digit" id="digbut{STORIES.story_id}">IF("{STORIES.dugg}"=="1"){{LANG_DUGG}{:IF} IF("{STORIES.dugg}"=="0"){<a href="javascript:dig({STORIES.story_id});">{LANG_DIGIT}</a>{:IF}</div></td> </tr> </table></td></tr></table></td> <td valign="top"> <div> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"><a href="{STORIES.story_url}">{STORIES.story_title}</a></td> </tr> <tr> <td valign="top">{STORIES.story_desc}</td> </tr> <tr> <td height="21" valign="bottom"><span class="bottomlinks"><a href="{STORIES.story_link}#comments">{STORIES.story_comments} {LANG_COMS}</a> - <a href="{STORIES.story_link}">{LANG_MORE}</a> - <a href="javascript:bury_story({STORIES.story_id});">{LANG_BURY}</a> {LANG_TOPIC}: <a href="{STORIES.cat_link}">{STORIES.cat_title}</a></span></td> </tr> </table></div></td> IF("{STORIES.story_thumb}"!=""){<td width="90" valign="top" align="right"><a href="{STORIES.story_url}"><img src="{SITE_URL}images/thumbs/{STORIES.story_thumb}.jpg" alt="Watch Video" width="86" height="72" border="0"></a></td> {:IF} </tr> <!--<tr><td colspan="2"> </td></tr>--> </table> {/LOOP: STORIES} <br><Br> {LANG_PAGES}: {LOOP: PAGES}<a href="{PAGES.link}">{PAGES.title}</a> {/LOOP: PAGES}<br> Quote Link to comment https://forums.phpfreaks.com/topic/42921-phpdug-help-me-record-clicks-rank/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.