Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
How to add custom pages to my theme?
Avatar
Kaledo
Member
Free Members
sp_UserOfflineSmall Offline
Jan 31, 2014 - 11:53 am

Hello, it's me again :)

I'm trying to expand my theme adding some custom pages like "Recent Posts" list as single pages.

I'm able to show it with WP shorttags, but I want something slightly different. I want them to be part of the forum instead, when I click on the custom page link in the forum I would like the page to open in the space where the forum appears normally (that is keeping the forum head and footer and opening it instead of the forum loop in the middle).

How can achieve this? Also this is my need for the Unread posts list, which seems to not have a shorttag.

Basically I would like to know how can I create a custom template .php file and open it instead of the forum loop in the middle of the page. The codex seems lacking those pages, they are all empty saying that needs to be written.

Thanks for your time and sorry for my english :P

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 31, 2014 - 8:46 pm

I am not sure what you mean, except for the unread post list, which is the only one you specified...

please see:  http://codex.simple-press.com/.....postsinfo/

for the unread posts and how to open on own page instead of a popup... the popup argument...

Avatar
Kaledo
Member
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2014 - 8:39 pm

Mr Papa said
I am not sure what you mean, except for the unread post list, which is the only one you specified...

please see:  http://codex.simple-press.com/.....postsinfo/

for the unread posts and how to open on own page instead of a popup... the popup argument...

Thanks, this is indeed part of what i was looking for.

About the other thing maybe I was a bit confusing. I want to make custom forum pages with SP template tags and display them instead of the forum loop in the center of the page.

I'll make an example to be more clear (note this is just an example):

Let's say I want to add a "What's Happening Now" button in my sp header that when clicked open a page where i have a mix of sp_HotTopicsTag(), sp_LatestPostsTag(), sp_RecentPostsTag(), etc. all in one page. Now, I can already do this making a WP page and adding shortcodes in it. But if i do it the resulting page just uses the WP header and footer, while I want to include the SP header and footer too. Just like when I'm opening my forum page, but with my custom page inside insted of the forum template. How can I achieve this?

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2014 - 9:06 pm

What I did to achieve something like that here http://placeshiftingenthusiast.....centposts/ was to create a new SP plugin. You may have to do the same.

I would offer to share it with you but it's old and not updated to the latest SP versions and also may not have group / forum permission checks built it. I don't remember since I created it over a year ago and don't need those checks.

I believe I used the Unanswered SP plugin as a base and changed it to show latest and hot topics. That would probably what I would do now if I recreated it.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626