Resource icon

WordPress get Last Forum Posts 1.4.0

No permission to download
Thanks for your addon EasyTarget!
I'm trying to add it to my sidebars but can't get it working :(
No matter what options I set I'm always getting the same issue:

Code:
At 02/28/2012 09.58.24 an unexpected error was generated.
Please use the back button to return to the prior page.

My Wordpress is installed on the Root and XenForo at /foro so my options are as follows:
SQL
/foro/
/httpdocs/foro/library/config.php

Do you know what could it be? Any clue?
Thanks
 
Code:
At 02/28/2012 09.58.24 an unexpected error was generated.
Please use the back button to return to the prior page.
That is the extended error handler. Debug mode is off.
So, edit the file /shared/cls/cls_errorhandler.php

and change line #14 to say...
PHP:
$_SESSION['debug_mode']=TRUE;  //Turn DEBUG mode on and off
Then the error message will have more details and I can try and help you out.

Thanks
 
I found the problem following your steps. The issue was the path to the config.php file
My WP blog displays the latest forum posts in the sidebar

http://www.respuestafacil.com

It was fixed by replacing /httpdocs/foro/library/config.php by a long path as it follows, and not it works:
/var/www/vhosts/respuestafacil.com/httpdocs/foro/library/config.php

Next step is customizing CSS to look nice
Thanks so much EasyTarget. You rock!
Sam
 
Sorry but I've got another question. If you have a look at the screenshot Avatars won't display on the sidebar. Is it a problem of my XF settings? or do I have to edit a variable in the templates provided?. Thanks again

avatars-xenforo.webp
 
Next step is customizing CSS to look nice
Thanks so much EasyTarget. You rock!
Sam

Here is some .css that would allow for a 300 wide sideblock. Most likely it will help you get started. And you can tweak for your own needs.

HTML:
/* ---------------- BEGIN Last Post Sidebar Table            -----------------*/
div.eipWidgetLPShell
{
    clear:    both;
    float:    left;
    width:    100%;
}
div.eipWidgetLPTopRow
{
    float:    left;
    width:    100%;
}
div.eipWidgetLPTopRow a
{
    font-size:    18px;
    color:    #121212;
}
div.eipLPThread
{
    float:    left;
    width:    100%;
    border-top:    solid 1px #d3d3d3;
}
div.eipLPUserName
{
    float:    left;
    width:    45%;
}
div.eipLPDate
{
    float:    left;
    width:    30%;
    padding-left:4px;
}
/* ---------------- END  Last Post Sidebar Table            -----------------*/
 
/* ---------------- BEGIN Last Post Sidebar List            -----------------*/
div.eipLPAvatar
{
    clear:    both;
    float:    left;
    width:    52px;
    height:    54px;
    padding-top: 4px;
    border-top:    solid 1px #d3d3d3;
}
div.eipLPListTitle
{
    float:    left;
    width:    66%;
    height:    32px;
    padding: 4px 0px 0px 4px;
    border-top:    solid 1px #d3d3d3;
}
/* ---------------- END  Last Post Sidebar List            -----------------*/
 
Sorry but I've got another question. If you have a look at the screenshot Avatars won't display on the sidebar. Is it a problem of my XF settings? or do I have to edit a variable in the templates provided?. Thanks again

View attachment 26474
All of the options are set correctly, you can see that it is pulling the default forum image. The "?" image.

However, I don't always know if a member has an image available, so I can to make sure that the usr.avatar_date> 0; if it is; most likely there is still an avatar available.

What I would suggest is for you to re-save your avatar, and it should work.
If it doesn't, you can double check your database and look at the xenforo usr table for your user id and make sure there is a value in the field 'usr.avatar_date' and what is that value?
 
I've re-saved my avatar, uploaded another one because I was using gravatar, and now it works:
avatars-xenforo.webp

Thanks also for the css file, as you can see it's already implemented on the sidebar
+1 for you, sam
 
Hi zmalone
the error message indicates that the addon can't find your xenforo config file.
What do you have for the location of xenfor config file in the WP config screen?
 
Thank for your help :

my config sorry for my bad english but i am french.

it's my full patch : Forum Directory /homepages/mydb/XXXXXX/htdocs/xenpress/forum/library/config.php
 

Attachments

  • wop.webp
    wop.webp
    30.9 KB · Views: 16
it's my full patch : Forum Directory /homepages/mydb/XXXXXX/htdocs/xenpress/forum/library/config.php
maybe it should be
/homepages/mydb/XXXXXX/htdocs/xenpress/forums/library/config.php

normally there is an "s" at the end of /forums/

like
"/var/www/forums/library/config.php"
 
I have this error :
Parse error: syntax error, unexpected ')', expecting '&' or T_VARIABLE in /home2/xxx/public_html/wp-content/plugins/eipSoftware/shared/cls/cls_runquery.php on line 38

note: my forumpath is: /home2/XxXx/public_html/foro
 
I have this error :
Parse error: syntax error, unexpected ')', expecting '&' or T_VARIABLE in /home2/xxx/public_html/wp-content/plugins/eipSoftware/shared/cls/cls_runquery.php on line 38

note: my forumpath is: /home2/XxXx/public_html/foro
what version of php are you running? 5.2? 5.3? 5.4?

My guess is there is an issue when including the xenforo options file.

Your config file should look something like this...
PHP:
<?php
 
$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = 'SuperCoolDude';
$config['db']['password'] = 'ILoveDonuts';
$config['db']['dbname'] = 'MyAwesomeDB';
 
$config['superAdmins'] = '1,3700';

is there something different?


Additionally you can try this
in the file /home2/xxx/public_html/wp-content/plugins/eipSoftware/shared/cls/cls_runquery.php
on line 35 comment out the line
PHP:
//mysql_close($this->hnd_DB);

Let me know if this solves it.
 
php version 5.2

my config.php is the same
change in te 1ine 35 andthe problem still occurs on line 38

=> private function ConnectDB(SQL); <= line 38
 
Top Bottom