Quote:
How about a variation on this that also employs create/edit/delete permissions? For example, in the other custom pages I want to design, these are going to be for an image-hosting service I am making. I want people to pay a fee to host their images, and I want "everyone" to be able to "see" these images, but where only the Administrator and Paid Subscibers can edit, delete, or create new pages. Further, the permissions should be configured to where Paid Subscribers are only able to edit/delete their own self-created pages, but to where they can't edit/delete the pages of other Paid Subscribers, while the Administrator can edit/delete anyone's pages. I know how to do this with my CMS Manager, but because these custom pages we're here aren't controlled by that, how would they be thus-configured by hand? Thanks! --------------- Added [DATE]1333138408[/DATE] at [TIME]1333138408[/TIME] --------------- Quote:
|
I've created the page, and everything works except that users are no longer logged in when visiting the custom page. Clicking any tab or link to navigate away from the page brings me back to the normal logged in state, but the custom page is logged out. How do I fix that?
edit: Found the problem. It's a privacy policy page, and in Options > Site Name / URL / Contact Details the link to the page was the full path (http://sitename.com/forums/privacy.php) instead of relative (privacy.php). Once I made it relative it worked fine. |
Code:
<?php Okay, I have followed your instructions in this tutorial to the letter and am getting a blank test page to generate just fine. However, the moment I try to add custom code to it, the setup fails. I just did a basic "I am here" insertion, but where you have indicated Your Custom Code Goes Here is generating the quote at the TOP of my test page, rather than in the body where it should be, as follows: What am I doing wrong and why is the "I am here" quote being displayed at the top of the page, rather than in the body where it should be going? Thanks for any help! Jack |
You need to insert any text you want on the page into the template. You cannot use echo. You would need to do something like:
PHP Code:
PHP Code:
HTML Code:
{vb:raw message} |
Okay, I have that bit working right now, thank you.
In order to create an actual page now, can I just use HTML tags, or do I have to register more code with the template? Thanks again. |
If you have static content for your page, you may just want to type it into the template directly. Using variables is usually something you'd only want to do if you are using php to define some text.
|
Quote:
Code:
<h1>My Title</h1> Thanks again!! |
Use the template code given in the article to create a custom vBulletin page. To just create any html page (without showing the forum framework) use standard html page architecture (basically, you'll find that in the template code in the article, too).
|
Quote:
I assume I am missing something :confused: |
Quote:
Search this article for discussions on the problems using <li> on this page and the CSS you need to add to fix it. |
All times are GMT. The time now is 09:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|