How to create a Page node

How to create a Page node

looks quite complicated.... just to be able to create a "Page" outside of the Forum-structure.......
:(

It's actually not that complicated! If you give me the page name I'll do it for you, and let me know if your going to have sub navs.

for the sidebar you can do something like this:

Code:
<xen:sidebar>
    <xen:include template="sidebar_online_users" />
</xen:sidebar>
 
It's actually not that complicated! If you give me the page name I'll do it for you, and let me know if your going to have sub navs.

for the sidebar you can do something like this:
well since you're offering help .... :)
I have two (or three pages)

http://www.fps.net.nz/community/pages/Home/
gets info from a page callback

http://www.fps.net.nz/community/pages/servers/
get info from a page callback

http://www.fps.net.nz/community/pages/thanks-for-donating/
is plain old html typed in the box.

All three I would like to "un-highlight" the forums that, and in the case of the first two . .highlight their respective tabs.
I've read through your thread about this before, but got a bit lost to be honest.

-TA
 
well since you're offering help .... :)
I have two (or three pages)

http://www.fps.net.nz/community/pages/Home/
gets info from a page callback

http://www.fps.net.nz/community/pages/servers/
get info from a page callback

http://www.fps.net.nz/community/pages/thanks-for-donating/
is plain old html typed in the box.

All three I would like to "un-highlight" the forums that, and in the case of the first two . .highlight their respective tabs.
I've read through your thread about this before, but got a bit lost to be honest.

-TA

Well I should mention here that the credits to this goes all to Arik who actually build the script for me to help me understand how it works.

I'm off to sleep now, but tomorrow I'll gladly help you with this.

Also, are you going to have sub navs for any of the pages?

Brogan, feel free to move my messages to another thread to clean yours up!

Thanks!
 
would be great if a demo template was given,

something that would just include what a typical page would have
  1. same sidebar as forum
  2. content with image and text
  3. navigation/header/footer
From there we could probably figure 90% of what we need with simple replacement

This way we don't have to go get a degree, study w3schools

w3schools? really? lol.

will our xen support be frozen while we go learn to code css/php from scratch? :P

A splash page should really be just as standard as private messaging. I can't imagine the number of forum ownerss that DO NOT want them is higher than those that do. Which is why people currently PAY for an easy splash page manager on other forum platforms...or the platforms have included it standard.

Thanks for all the examples, brog, but it is clear that has not been enough.

Why not also post the code that MAKES those pages, instead of all of us struggling to figure it all out?
 
1. To add a sidebar use <xen:sidebar>sidebar content</xen:sidebar>
2. This is user specific - there is very little point in me giving you the contents of my home page which is about F1.
3. Navigation, header and footer are part of the overall template so aren't required.

Literally all you need to do is enter the HTML, CSS and JavaScript to build your page.

If you want to see how a typical page is built, right click in your browser and select View page source.
Try it on the Page here on XenForo.com.
Browse to this URL: http://xenforo.com/community/pages/example-page/
Right click and view source.
Everything between <article> and </article> is the code which has been entered to create the page. If there is a sidebar, everything between <aside> and </aside>.

As I have already said several times, me posting code for my site will be of absolutely no use at all to anyone else.
 
You use the PHP Callback function.

Could you point me to some background information about what the hell a 'PHP Callback function' is and instructions on how you use it? Is there a thread on here or site you could recommend for a complete numpty to learn from?

I am having my first play with 'pages' this afternoon, and knowing next to nothing about HTML and absolutely nothing about CSS, I am fairly pleased with what I've done so far for a basic article.

One thing I can't get my head around is how to duplicate the sidebar from the forum index, I've used this code:
Code:
<xen:sidebar>
  <xen:include template="sidebar_share_page" />
    <xen:include template="sidebar_online_users" />
</xen:sidebar>
- in the example pictured below.

I found those two by searching for templates that include 'sidebar' in their title, but that doesn't list Staff Online & Forum Stats templates. :confused:

XF_test_page.webp

To make embedded images resize and zoom when clicked, see this thread: http://xenforo.com/community/thread...omatically-resize-and-zoom-when-clicked.7412/

This ^^^ was most helpful & well cool - thanks! :)

And the tip for viewing page source was handy too, I did that on the http://xenforo.com/community/pages/example-page/ to work out how to insert the small image on the left, with the text to the right of it.
 
A PHP callback just means using a PHP file to execute some code on the page.
You would use it for example to get the sidebar data from the forum index to display in your page, as that data is only currently able to be displayed in those specific pages.

As for examples, have a look through the development forums, there are quite a few useful threads and posts there.

http://xenforo.com/community/forums/development-tutorials-and-resources.33/
http://xenforo.com/community/forums/development-questions.34/

Good luck!
 
Hi guys,

I've created some pages for my site and I'm trying to figure out how to get them in the nav bar like TerminalAddicts's pages in the quote.

Can anyone help please? :)

well since you're offering help .... :)
I have two (or three pages)

http://www.fps.net.nz/community/pages/Home/
gets info from a page callback

http://www.fps.net.nz/community/pages/servers/
get info from a page callback

http://www.fps.net.nz/community/pages/thanks-for-donating/
is plain old html typed in the box.

All three I would like to "un-highlight" the forums that, and in the case of the first two . .highlight their respective tabs.
I've read through your thread about this before, but got a bit lost to be honest.

-TA
 
Thanks for the links :)

I'm interested in finding out more about your add on but I can't even view the attachments on the threads on your site after registering and your shop link is broken so I can't see price etc.....
 
[ot]
Thanks for the links :)

I'm interested in finding out more about your add on but I can't even view the attachments on the threads on your site after registering and your shop link is broken so I can't see price etc.....
Sorry. I've fixed the links (i've linked to the false thread...)
And i have no shop. Premium Membership costs 10€ for a half year / 15€ for a year and with this you get access to ALL MY RELEASED add-ons.​
[/ot]​
 
Top Bottom