Navigation

Pligg Support

Search Results for "fix"
When you manually delete, as a user and publisher of the story, or as admin delete a story or remove all discarded stories from the Admin panel, the tag_cache table is deleted as well and you are left with no tags in the sidebar or the cloud, until you manually edit a story and add/remove tag or after a new story submit.

To fix this bug, follow these steps:
1- Open adminadmin_delete_stories.php
2- Go to line 82 or look for:

$query="DELETE FROM " . table_tag_cache;
if (!mysql_query($query)) {error_page(mysql_error());}

Insert right after it this code:

$sql="INSERT INTO ".table_tag_cache." select tag_words, count(DISTINCT link_id) as count FROM ".table_tags.", ".table_links." WHERE tag_lang='en' and link_id = tag_link_id and (link_status='published' OR link_status='new') GROUP BY tag_words order by count desc";
if (!mysql_query($sql)) {error_page(mysql_error());}

Save and close
3- Open delete.php
4- Go to line 133 or look for:

$db->query("DELETE FROM ".table_tag_cache);

Insert right after it this code:

$db->query($sql="INSERT INTO ".table_tag_cache." select tag_words, count(DISTINCT link_id) as count FROM ".table_tags.", ".table_links." WHERE tag_lang='en' and link_id = tag_link_id and (link_status='published' OR link_status='new') GROUP BY tag_words order by count desc");

Save and close.

What we did here is we rebuilt the tag_cache table after every delete.
This is a Fix I discovered and applied successfully.

Hi,

I noticed that the "Tweet this" feature in the Twitter Module showing the "Tweet Sending..." and "Tweet Submitted" images. I kept getting broken image errors.

So I went into the "sendtweet.php" file and found the line at the bottom where it links the images, and noticed that the directory was missing ".".
It was "./modules/twitter/templates/images/tweet_submitted.gif"
Instead of:
"../modules/twitter/templates/images/tweet_submitted.gif"

The same thing was an issue in the templates folder in the "twitter_js.tpl" file.
Set at:
"./modules/twitter/templates/images/tweet_sending.gif"
Instead of:
"../modules/twitter/templates/images/tweet_sending.gif"

Sorry if that was confusing, but if you followed me, and applied the fix, then it should work for you now, as it does for me.
Not a huge deal, but I figure whenever there are broken images it just makes the site seem more janky and unprofessional, so it's good to get things looking as clean as possible.

Blessings!

Ivan
3 files have been edited.

/kmessaging/class.KMessaging_v1.2.3.php
/templates/user_navigation.tpl
simple_messaging_main.php

### class.KMessaging_v1.2.3.php
replaced the word "read" with "readed" as that's what the database field is called.

### user_navigation.tpl
added a button to send a private message to the user's profile page.

### simple_messaging_main.php
changed the function name from GetMessege() to GetMessage() and you no longer need to be friends with a user to be able to send him a message.

Warning: apply these fixes at your own risk. Pligg's official team has not verified this yet.