Quote:
I looked at it twice without noticing, it was only after going back and reading the part where you said the footer string was OK that I thought it had to be something to do with the template. |
I followed all the directions and got this to work for me! Yay! One question that's only indirectly related - on this custom page I've just created, I don't want to display ads. We have ads on the other parts of the forum, but I can't figure out how to tell vBulletin NOT to display ads on museumlinks.php, the page I just created.
|
I have the page working, thanks!
I'd like to know how to pull RSS from certain forums to different custom pages as well if someone can help me. I've searched google, found something but it doesn't work with vb4. Any help would be appreciated. |
See these threads for methods to pull threads via javascript:
[HowTo] Display your latest threads on an external page using an RSS2 feed [HowTo] Display your latest threads on an external page using an XML feed [HowTo] Display your latest threads on an external page using an RSS feed You may need to change the html output a bit. |
Quote:
Nothing says what to do from there, so I'm kind of clueless on how to get the actual feed to show. What do I need to wrap around the echo $rss_output;? I placed it inside of the following code, but I'm no expert on this. HTML Code:
<h2 class="blockhead">Popular Games</h2> |
Quote:
PHP Code:
Thread addendum: Suppose you wanted to feed a $_SERVER variable into the template? Is there a native vBulletin function I could use to clean it prior to feeding it to $templater->register()? |
Quote:
|
Hmm, doesn't seem like I can. I had already discovered clean_gpc in the developer's guide; tried it with 'r' and 'p' ... null string result. And 's' is also null.
Guess I'll need to hunt down the location of clean_gpc (obviously in the input class ... wherever that is) and see what I can figure out. |
Quote:
|
Indeed, it does.
I just wasn't thinking inside the framework ;) PHP Code:
|
I first want to state I have read through this whole thread and tried to fix my issues but couldn't...
First issue I have is I'm trying to call up a template within a template. I've tried numerous codes but with no results. I have created pages based off the code presented here which I have working great pulling up single templates. PHP Code:
-------------------------------------- Second issue I'm having is with custom pages that are residing outside of the forum subdirectory. Everything with relative links is showing multiple errors in cpanel for every page. They include /clientscript, /images/misc, images/buttons, etc. I do see how they are referenced by a relative link but I have this: PHP Code:
Thanks for any help. |
Quote:
Code:
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ###### Then in the ccl_infoandtips template, put {vb:raw ccl_navigation} wherever you want it. I don't know the answer to the second question, but I'd try using Firefox with Firebug to see what your page is trying to load. |
Thanks kh99 for the help on the template within a template - worked perfectly! ..now lots of templates to edit
|
So helpful, thank you!
|
How do i make a tab in the navbar selected when using custom pages? have tried to use THIS_SCRIPT as condition for the navigation but it wont work.
|
Quote:
|
Hey all! Sorry if this is answered, but after reading this thread I may have missed the answer. When adding custom pages to your location code using the location hooks, I have yet to figure out how to distinguish between pages when you have one file which becomes a "different page" based on a variable, i.e. page.php?page=1. In the online_location_process hook, how can I get 'page' variable to distinguish between pages to give different results when viewing Who is Online? I have tried both $_GET and $_REQUEST switches, but they do not seem to work.
|
$_GET should work. But, you really should start your own thread in the programming forum and include your code so we can take a look at it.
|
very good song
|
may sound stupid ... but how do i add a grid to that ne page?
|
A grid? You would just use <div> tags with classes and then set widths and float them left or right depending on what you want. You could probably google the html you would need.
|
ah okay so i have to do all the code ... i thought there is maybe just a line with that i could add a grid that i created in the cms ...
i think it is a big missing point that you can not just create a new page within the cms ... but thanks for this tutorial :D //edit it looks like this now http://www.crafters-united.de/vbb/server.php?tabid=37 would like to have it look like this http://www.crafters-united.de/vbb/content.php my point is that i have to change the code over and over again for the custom page (if i want to test different positions of the boxes) while for the start page i just drag and drop in the "acp>cms>Layout" section and push "save" i hope you know what i mean ... i wisch i could do this with the custom php files also |
Why are you using this tutorial if all you want to do is add articles to your CMS? This article has nothing to do with the CMS.
|
i not want articles...
i want to open a new site on wich i will show something like the server-rules ... it only should have the look of the front page ... there is no need for articles on that new site ... but while reading i thought i could open like a new section or something and just post one article ... (just do not know how to do that ...yet ... have to figure that one out ... tomorrow) i am really new to this and i am reading hours after hours, but thats hard if you not know anything about things like css and php and only have basic htm skills ... i am not a coder, i just run a small community site with a view hundert members ... so please bear with me ... i know this "RTFM" or "use google" attitude is wide spread around any sort of coding community ... i hope this one is not like those others |
Well, I honestly don't know what you are trying to do. If you want this to be in the CMS, and look like the CMS, then you should put this article into the CMS. If you want this to be a separate page, but you want it to look like the CMS, then you would need to find the CMS grid template and paste that code into the page (and possibly add some CSS to the template also). There are really no instructions anywhere on how to make your custom page look like a CMS page. And certainly, adding any widgets to the page is going to take custom coding and I can't point you to any article about that either.
|
How many times can I use this, can I make multiple pages using this method?
Also what was strange is that I had to add my content to the style manager as when I called this part the page was pure white. define('THIS_SCRIPT', 'test'); Obviously changed test to the page I was calling but it wouldn't call anything. As you can see reverted to normal and it will not call the page: http://www.fpcforums.com/forums/stream.php I'm trying to call this: http://www.fpcforums.com/forums/streams/livestream1.php What I want to do is have a landing page which lists all the streams then when you click on a link it takes you into that streams page. |
define('THIS_SCRIPT', 'test'); does not "call" anything. I don't know what you are talking about at all.
You may create as many pages as you want using this method as long as you use a different template (if needed) and different script names for each page. |
Ok so i gave it a shot, works great.
However i do have a question. I own forum classic and i want a portal, however i want to build my own. Now i have my page sitting @ root, and the forums @ forum. , not a problem session works and all. The problem is, when i login from the root not forum. i get a url invalid redirect. Anyone know how to fix this? Thanks. |
My forum have no Content view access for guests
to view content visitor must have to register first but on this test.php custom page i want to allow guests to read content how i setup this please help |
Have you tried it? Just do nothing, i.e create the page as described. You would have to add permission checking if you wanted it.
|
Quote:
the only problem is that it redirects to login page due to no guest access of whole forum i check register.php and its template thoroughly to check which line of code pass permissions but did not found anything so on this page how i add permissions for guests ? |
What is the content of your php page? (Please use the code tags.)
|
Content of the page is simple text not code lines
Which tells Why unregistered or not logedin users are not able to access Forum Why our forum is private to registered members only actually these are Lessons for students and forum only allow our academy students to view threads |
Quote:
|
Quote:
Quote:
What should it be named? I need this in layman's terms please ;) |
What file? There is no file involved. You create a new template for your style in the Style Manager.
http://www.vbulletin.com/docs/html?m...rsion=40200603 |
Quote:
Code:
define('THIS_SCRIPT', 'register'); i do not need to do anything with test.php i put my Text Here Code:
<h2 class="blockhead">Title</h2> |
Quote:
Quote:
|
You can name your php file whatever you want, as long as it ends in .php and isn't named the same as one fo the existing vbulletin files. It should go in your forum directory, the same directory with fourm.php, showthread.php, etc.
|
i am waiting for response according to non registered / not logedin users permissions
|
All times are GMT. The time now is 05:55 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|