| |
advProfile plugin help - pnWebLogs | |
|---|---|---|
| mookiestix | Posted: 21.12.2006, 06:23 | |
Noob
registered: Dec 20, 2006
Posts: 4
Status: offline last visit: 22.12.06 |
Without sounding too much like a kiss-up, let me start off by saying that after innumerable Google searches on various Postnuke issues, the name usually attached to the solution I was looking for was Chestnut. That being said, I figured I'd come straight to the source instead of waiting for Google to point me here again. I've been using advProfile for a couple of days now and need a little help with a plugin. At first, I tried using a plugin script posted here by MACScr for v4bjournal but couldn't get it to work (he never posted the final code for it). I have since switched to pnWebLogs and am trying to get a "Last 5 Blogs" to list to my site's advProfile pages. Here is what I tried to do (note, all I did was follow the example from your core plugins and try to make it work...I'm actually quite clueless): function.last5blog.php advProfile_plugin_last5blog.tpl: advProfile function call in templates: When I try using this, it says I have a mySQL error "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' FROM WHERE = '5' ORDE' at line 1". Any help would be appreciated. edited by: mookiestix, Dec 22, 2006 - 11:17 AM |
|
|
|
|
|
| Chestnut | Posted: 21.12.2006, 16:21 | |
|
Site Admin
registered: Jun 02, 2002
Posts: 1320
Status: offline last visit: 07.02.08 |
ok... Before: I would put: And this to this ... as in this particular case, you use the uid and not the username. As for the rest, it looks completly fine. :) Chestnut ! ![]() Site Admin |
|
|
|
|
|
| mookiestix | Posted: 21.12.2006, 19:37 | |
Noob
registered: Dec 20, 2006
Posts: 4
Status: offline last visit: 22.12.06 |
Excellent, I knew I came to the right place. Thanks for the assist! It seems to work now...except for one thing. Is there something wrong with this piece of code in my .tpl? The plugin now shows the last entries to the blog, but when the link is clicked to take you to that entry, it doesn't display. It's not adding the "post_id" to the end of the link. Also, I made the recommended changes to code in the first post of this topic if anyone else wants to use the plugin. Just need to figure out how to fix this last issue before it can be used correctly. edited by: mookiestix, Dec 21, 2006 - 10:24 PM |
|
|
|
|
|
| Chestnut | Posted: 22.12.2006, 17:38 | |
|
Site Admin
registered: Jun 02, 2002
Posts: 1320
Status: offline last visit: 07.02.08 |
Yup... error is in the plugin itself : should be And you should have a go. Chestnut ! ![]() Site Admin |
|
|
|
|
|
| mookiestix | Posted: 22.12.2006, 19:19 | |
Noob
registered: Dec 20, 2006
Posts: 4
Status: offline last visit: 22.12.06 |
Awesome! Works like a charm now. I updated the code in the first post in case anyone else would like to use it. I'll zip it up and submit a link for the downloads section as well. Thanks for the help! |
|
|
|
|
|
Powered by pnForum Version 2.0.1



