1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress get Last Forum Posts 1.4.0

Display the lastest forum posts in a WordPress widget

  1. EasyTarget

    EasyTarget Well-Known Member

    IPF, Learner, ShadyX and 1 other person like this.
  2. DRE

    DRE Well-Known Member

    What do you put in for when your forum is on the root domain?

    What is your config file root path supposed to look when your forum is on the root domain?

    That's all I need to figure out to get this working because it's not working for me.
     
  3. EasyTarget

    EasyTarget Well-Known Member

    The widget runs correctly? and the links are broken, or the widget doesn't run at all?

    If you are in root, i.e. something like
    /home/yourusername/www/index.php
    then you should be able to just put in a "/" or maybe "../" depending were the WordPress install is relative to your root and forums directory.

    PM me a link to your website and I can double check. Thanks
     
  4. DRE

    DRE Well-Known Member

    I don't have a www folder, just a public_html
     
  5. EasyTarget

    EasyTarget Well-Known Member

    public_html and www tend to be in the same location. Some versions of unix use www, some use public_html

    I would try putting in just "/" and if that doesn't work, leave the value blank.
     
  6. EasyTarget

    EasyTarget Well-Known Member

  7. Dannyh

    Dannyh Member

    I have my Wordpress installation in root and Xenforo forums in a subdomain called Community. Therefore, what would I need to enter inorder for this to work?
     
  8. Hilmer

    Hilmer Active Member

    Great one - thanks for your fine work. Though would it be possible to make the posts link to the post in the Xenforum - opening in a new window? When I click a post an wordpress (can't finde page) site shows up?

    All the best
    Morten
     
  9. Digital Doctor

    Digital Doctor Well-Known Member

    The title of this uses the word Last but it should be Latest.
    It makes it harder to find.
    :)
     
  10. Hilmer

    Hilmer Active Member

    Hi DD - this one shows the Forum posts on the WP-blog and not the other way around:(
    I have already tried it;)
     
  11. Digital Doctor

    Digital Doctor Well-Known Member

    Yea. you want the opposite. I found this looking for your request.
    It was hard to find because of the last / latest thing.
     
  12. EasyTarget

    EasyTarget Well-Known Member

    In the WordPress admin control panel -->Settings-->Last Posts

    I would suggest the following.
    Database ConnectionSQL
    Forum Domain /Community/
    Forum Directory /var/www/Community/library/config.php

    most webhosts are on linux and are case sensitive, so be sure it is Community or community.
     
  13. DRE

    DRE Well-Known Member

    I wanted to try this out but I can't get Wordpress 3.3.1 working with Xenscripts Xenforo bridge to even bother. Can't wait till that's udpated.
     
  14. EasyTarget

    EasyTarget Well-Known Member

    good point. Maybe I should append the title description.
     
  15. EasyTarget

    EasyTarget Well-Known Member

    Not sure what the Xenscripts - Xenforo Bridge does; but the requirements for this are
    WordPress >= v 2.8; although everyone should run WordPress > 3.0
    mysql >= 5.1
    php >= 5.2
     
  16. EasyTarget

    EasyTarget Well-Known Member

    You would need to edit the code to make this happen;
    in the file cls/cls_getlastposts.php

    on line 177 change from
    PHP:
    return (self::$userOptions['forumDomain'] . "index.php?threads/" .  str_replace(self::$arr_Needleself::$arr_NewValue$currentValue). "." $id ."/" );
    to
    PHP:
    return (self::$userOptions['forumDomain'] . "index.php?threads/" .  str_replace(self::$arr_Needleself::$arr_NewValue$currentValue). "." $id ."/  target='_blank'" );
     
    Hilmer likes this.
  17. Hilmer

    Hilmer Active Member

  18. EasyTarget

    EasyTarget Well-Known Member

    DON'T change that line. My mistake.
    The correct line to change is

    same file cls/cls_getlastposts.php
    line 159
    from
    PHP:
    $html_Lnk    = New Link(array("href"=>$scrubbedTitle"text"=>substr($feRow['title'],0,self::$userOptions["forumThreadLen"])));
    to
    PHP:
    $html_Lnk    = New Link(array("href"=>$scrubbedTitle"target"=>"_blank",  "text"=>substr($feRow['title'],0,self::$userOptions["forumThreadLen"])));
     
    Hilmer likes this.
  19. EasyTarget

    EasyTarget Well-Known Member

    I told you to edit the wrong line, I posted the correction above.

    additionally make sure under the options you have the forum domain set as follows
    Forum Domain /
    forum/

    then you will get a link that looks like the following
    <a href="http://hilmer-koch.dk/forum/index.php?threads/del-en-fotooplevelse-med-os-og-vind-en-ground-pod.576/" target="_blank">Del en fotooplevelse med os</a>


    If you still have an issue then let me know; I will help you out.
    Thanks
     
    Hilmer likes this.
  20. Hilmer

    Hilmer Active Member

    Perfect(y)

    I added your code and used the ../ before the forum ( I have a homepage ind the root and then a /blog and a /forum )
    I used it in combination with the wonderful ProPhoto theme for wordpress and eventhough it skipped the details about answers and so - it looks very clean and work perfect. You can se it here in the upper left side - the first one. (still working on the style)

    Thanks again for your help
     

Share This Page