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

Other help customizing XenPorta categories/layouts

Discussion in 'Custom Service/Development Requests' started by Live Free, Jul 29, 2012.

  1. Live Free

    Live Free Active Member

    I'm looking for someone who can help, either through me hiring them and doing it themselves, or through answering questions/walking me through it. Basically, I'm trying to use XenPorta categories as categories in a normal blog set-up; the categories would have their own url, and would filter posts based on the category. I could have dozens of sections of my site like this. I would also like to make use of XenPorta layouts, and customized the layouts to each section/category.

    I'm having a lot of trouble figuring this out myself. If you're interested in helping, please PM me. I'd prefer someone to walk me through it and let me do it myself for a smaller amount, that way I'm learning as I go, but I'll also consider hiring you to do it yourself.

    Please PM me your rates and any questions you have about this.

    Thanks
     
  2. Russ

    Russ Well-Known Member

    Are you looking for something like the way I have it setup?

    http://gamerexit.com/

    EDIT:::

    Ironically I went to my profile right after I read this thread just to realize you posted on my wall last week! I must of missed it, my apologies.

    I'm in a hurry right now so I'll try to get through this.

    First step setup categories:

    http://xxxx.com/admin.php?ewrporta/categories

    Also you'll need to enable Article (article-# > article > portal)
    Categories (articles-#slug > articles > portal) in XenPorta options


    Next step when you promote an article, at the bottom of the post you can choose which category it goes into. Mine looks like this:
    cat.png

    To get the effect of my little category thumbnails on my home page: http://www.gamerexit.com/

    I used this snippit in
    EWRblock_RecentNews
    Code:
    <xen:if is="{$news.node_id} == 9"><a href="articles/gamer-exit-news/"><img src="styles/gamerexit/xenforo/newsthumb/genews.png"></a></xen:if>
    <xen:if is="in_array({$news.node_id}, array(3, 22))"><a href="articles/shooters/"><img src="styles/gamerexit/xenforo/newsthumb/genshooters.png"></a></xen:if>
    
    I then manually added my own navigation tabs in EWRporta_Navtabs

    It's a little rough and there are a few things I'd love to change on it but it's working great for me.
     
  3. Live Free

    Live Free Active Member

    Hi Russ,

    Thank you very much for reply. Something similar to your set-up is pretty close to what I'm after. I think my first problem comes at the "promote the article" step. I have XenPorta set up so I have a "News" forum, with threads that display on the home page, but these posts are still displayed as threads (site.com/threads/) instead of as "articles." I've enabled the articles/categories box now, as you instructed.

    There is also category section visible when I view an individual thread in the News forum, but when I try to edit it, it says I do not have permission, despite being the administrator. I can't find anywhere where I can set permissions for who can set categories, nor anywhere else that I can set a category. How and when should I be promoting an article?

    Is it possible to customize the layout of a category page? I have corresponding subforum for each most categories, and I'd like to show recent threads from those subforums on those category pages. I know you can create custom layouts with XenPorta, but as far as I can tell, there's no way to customize the layout for specific category pages.

    EDIT: Okay, so /threads is correct, /articles is the path the the categories?

    I must be doing something wrong, because I'm also getting the recent news articles below when I'm viewing a current news article (see here: http://peoriaunited.com/threads/foghat-blue-oyster-cult-kickoff-independence-day-celebration.2/)
     
  4. Live Free

    Live Free Active Member

    I think my main issue is that I can't edit or assign categories in xenporta for some reason. :/
     
  5. surfsup

    surfsup Well-Known Member

    I have setup my categories but how can I get certain posts to show up within them?
     
  6. Russ

    Russ Well-Known Member

    That's this code:

    Code:
    <xen:if is="{$news.node_id} == 9"><a href="articles/gamer-exit-news/"><img src="styles/gamerexit/xenforo/newsthumb/genews.png"></a></xen:if>
     <xen:if is="in_array({$news.node_id}, array(3, 22))"><a href="articles/shooters/"><img src="styles/gamerexit/xenforo/newsthumb/genshooters.png"></a></xen:if> 
    The news.node_id is the node it's coming from, I have it unique in the sense that whatever node I promote the article in, it will automatically display a certain thumbnail on the homepage. I think I made the these changes in EWR_Porta_RecentNews
     
  7. Live Free

    Live Free Active Member

    Okay, I figured out my issue with the categories and I think I have it mostly figured out. Two questions:

    - if possible, how can I add a custom block to each category? I'm aiming to show recent forum posts from a particular subforum that correspondes to the category.

    - when I view site.com/articles/category1, there is no tab selected... is there an easy way to do this by default for all categories? I'm using the nodes as tabs addon. I have a parent page below the root that selects the tab. I have a link forum that points to the category below. however, when I view this category, the tab is no longer selected...

    - also, when viewing an article (ex:http://peoriaunited.com/threads/heart-of-illinois-fair-nobody-left-dissapointed.4/#post-5), immediately below it shows the previous article and a duplicate entry. why might this be?

    Thanks...
     
  8. Russ

    Russ Well-Known Member

    I'll register when I get home and take a look.
     
  9. Live Free

    Live Free Active Member

    Thanks Russ.

    I figured out the tab issue with the help of Jake. Still experiencing the duplicate post issue.

    It seems that unregistered users can't read recent news, despite my having all groups selected in the recent news block. I think the issue is that when one clicks the article title or the "read more" link they are directed to the private news forum; site.com/community/threads/post instead of site.com/articles/etc. I'm not sure why this is... undoubtably something simple I'm overlooking. Do I have to promote a thread every time, maybe? I thought if you're posting in the forum that recent news is tied to that was good enough?
     
  10. Russ

    Russ Well-Known Member

    Typically it is... but is the forum you're posting these news in set as private?

    Even if in XenPorta options you choose which group can see the block, if the node is private it contradicts itself ;p
     
  11. Live Free

    Live Free Active Member

    I see, that makes sense! That's got to be the problem. It was set to private. I've changed that now and am trying to set custom permissions for each usergroup.

    Is there a way to allow registered members and guests to view threads but still hide the node on the forum index to non admins/mods? This should be easy with the forum permissions (I guess I just haven't got the hang of XenForo yet). I've tried customizing the permissions but still no luck. I've set it so registered/unregistered users can view threads by others and view thread content in the news forum, but revoked the access to view the node. This still blocks all access. If I allow access to view the node, it shows up in the forum display for everyone. I want to hide the forum to everyone who can't post there while preserving the access to the threads by everyone.

    When viewing the threads in the News Forum, I'm still experiencing an issue that shows a duplicate post below it, as well as the previous posts (where the article comments should be). Here's a screenshot of what I'm experiencing: http://img39.imageshack.us/img39/6616/screenshot1rg.png

    in the screenshot, the safe haven article title you see is the same article that is directly above it. Below the duplicate there are the previous two posts as well.

    Sorry if I'm overlooking something obvious, I'm still getting the basic functionality down.
     
  12. Kainzo

    Kainzo Active Member

    damn... your site is smooth makes mine look like it came from 1996.
     
    Russ likes this.
  13. Martok

    Martok Well-Known Member

    Just found this thread. Was any solution found to prevent promoted threads from private nodes from being visible on the front page by guests?
     
  14. kholusoft

    kholusoft New Member

    I could not figure out yet that how to solve category problem
    There is also category section visible when I view an individual thread in the News forum, but when I try to edit it, it says I do not have permission, despite being the administrator. I can't find anywhere where I can set permissions for who can set categories, nor anywhere else that I can set a category. How and when should I be promoting an article?
     

Share This Page