cotonti.com : [HELP][WIP] Plugin: User Comments https://www.cotonti.com Laatste forum onderwerpen Cotonti en Tue, 03 Feb 2026 02:56:43 -0000 musiconly Now I finally get that sed_import part (I always wondered where it's used). :/ :D

I'm not a PHP programmer (C++ is my playground), but I forced myself to learn it because of some mods/plugs that I'll need for my website.

If I get stuck on another thing, I'll post it here :)]]>
Zo, 25 Okt 2009 19:30:16 -0000
GHengeveld Try this:

$ui = sed_import('ui', 'G', 'INT');
$sql2 = sed_sql_query("SELECT * FROM $db_com WHERE com_authorid=".(int)$ui);

For the rest of it, it's looking good, keep it up. Glad to see my guide gets used too :)]]>
Zo, 25 Okt 2009 05:58:41 -0000
musiconly Anyways, I decided to use it for a learning session.

I'm trying to create a plugin which I called User Comments.

Features:
    Show user comment count on user profile(hook: users.details.main)
    Show last X comments on user profile(hook: users.details.main)
    Show all comments from this user(standalone)
    Top commentators(probably standalone)

I got stuck!!!




I got the count part working :D It shows total count of user comments and when you click on that number it takes you to /plug.php?e=usercomments&ui=USERID.
I can only see the content of div "You look like you did before", but no ROW data?

What did I miss?
I'm reading Koradhil's tutorial on plugins :)
Thanks]]>
Zo, 25 Okt 2009 04:38:00 -0000