Sometimes the line number isn't exact - so look *around* line 44.
|
Or youre template is not correct
|
so could i use this to pull in code from wordpress installed on the same server? so it would be wordpress inside a vbulletin theme?
|
Quote:
|
Quote:
There's no way i'd ever be able to write the code though :( do you know of any tutorials that may help me out so i could give it a go? |
Quote:
|
Is everyone getting this to work in IE ?
In Chrome, all is well. In IE 7, this does not seem to work (I've not tried IE 8). Thanks. --------------------- I'm updating this post since I realize I am doing an <embed And - that has problems in IE. Cheers. |
I've cut, pasted and edited the php file and created the template file, but I get a blank page for http://mydomain.org/siteterms.php.
siteterms.php has been uploaded to root directory with other php files. Changed TEST to siteterms (the name of the template). Anything simple jump out or that I should look into? |
I have a working page,yet it never register the members session,when members are on the page it will show that they are not logged in and no matter how many times they try to logged in,It will still show that they are not logged in,except they click the forum link.
What is the problem?. Do i need to create a separate session for the page?. |
I wonder if you can help me with this one Lynne
The problem I have is defining the WOS statement for: Code:
Unknown Location Code:
case '../index.php?pageid=news_reader': Code:
case 'News Reader': |
Thanks Lynne, will dig more into this as I intend to do my own pages / apps a part of vB instead of outside vB.
Very helpful. |
I've followed this to the letter, yet I'm getting " " at the top of every new page. Strangely, these characters don't usually appear on the main site. Any ideas anybody?
|
Quote:
|
Okay, I've read this article a thousand different times, and it's shown me the thousand different reasons why I'm such a noob when it comes to this stuff. So bare with me here.
I understand the concept of creating the PHP page where all of your content will fall under. This is is where I add the custom HTML or PHP code for the extra content that I wanted. For example, an "About Us" page. Now it's my understanding that once you create this test.php page, you need to then create a Template in VB to CALL that php page. Am I wrong? Because when I'm looking at the Create a Template code, I can't see any part of that code that calls on test.php ... Again, I'm sure I'm missing something simple and obvious and stupid, but I have to ask. Let me just start to understand this concept first before I even begin to try to do this. If I can pull this off without losing my mind in frustration it would be great lol :o |
Quote:
|
Hi Lynne.
I just made my first vb powered page, it fetch local movie showtimes and displays it. I just wonder how to handle css within this page? I added css to additional.css file, but it is possible to have the extra css only for my custom page? (Instead of making it loading for all vb pages) And thanks again for all help you provide to vb community. |
Quote:
|
i figured it out! Thank you so much Lynne for your wonderful help!
|
Thanks, I added it to the template and it worked fine. Probably the best way if only one page use the css.
|
Does any 1 know how make a redirect on a costum page if user is not loged in?
|
I have notices that are shown in the forum for unregistered users but I'd like to not display them on this new page. How can I turn them off? Thanks for the great article got it to work on the 2nd attempt!
|
Quote:
HTML Code:
<vb:if condition="$show['guest']">your tag code</vb:if> Quote:
HTML Code:
<vb:if condition="THIS_SCRIPT == 'test'">notification code</vb:if> |
If I'm making a plugin that users can access via their User Control Panel, how do I make it so that the left sidebar shows up?
Thanks :) |
Quote:
Many Thanks! |
Quote:
Quote:
HTML Code:
<vb:if condition="THIS_SCRIPT != 'test'">notification code</vb:if> |
i would like to create an admincp page available to Admins, Super Moderators and Moderator
please could someone please provide a standard template for this thank you |
Quote:
|
i will try give it a go by searching, but if anyone has a working example of an admincp php file please post it
|
Quote:
|
Any Info how i could put a standard template around my php ?
Means, that my php looks like the homepage, so i just really reuse the VB CMS Templates ? Just want to look my subpage like the homepage, with the sidebar, navigation, calendar,... Thanks in advance |
Then why don't you create a custom php page in the CMS in the first place? No sense in recreating the whole CMS infrastructure, when you just could use it. ;)
|
Quote:
As i am very ned wo vBulletin, i thought the easiest way would be to force the .php file into the templates. |
Quote:
my code looks like this: Code:
if ($loc == './error.php?error=400') Code:
if ($filename == 'error_400.php') |
Quote:
|
Hi,
This has all worked brilliantly after flicking a bit between the original and Lynn's article (more of a case of me having to get my head round it). Now, I don't know if it's a roblem with my custom style, but standard html doesn't seem to be having any effect on my pages, for example: Code:
<UL><LI>[</LI></UL> <STRONG></STRONG> <I></I> Code:
<a href="..."></a> Cheers |
Use a div of class="restore" around the code to get back to normal html.
|
Quote:
|
Lynne,
Thanks for converting the article to a vB4 version. It's very helpful for those of us offering some custom-built pages. If you do not mind, I do have a question about tables, though. I've used the approach a lot where I offer a custom page to pull some custom data from the database. Typically, this means I connect to the db, pull out data, and then build one huge HTML string with tables to represent the data. I have looked, but not managed to find a definite article on how to achieve the same but consistent with the vB4 coding standards. I have tried looking at the CSS classes used in the vB4 pages, but I have to admit that is kind of over my head (I will admit I did not spend THAT much time on it, considering I still am trying to solve lots of issues left over after the migration). As a simple example, I used to use alt1 and alt2. I can wrap one of those div class="restore"> around the table definition, but were I to totally rewrite my pages so they also match with the vB4 styles I use, how would I go at that, exactly? And where would I be able to find the restore class in the new stylevar setup, so I could actually alter the (for instance) alt1 and alt2 tags? Sorry if you feel I am hijacking your thread. I just have not found a way to actually solicit for an article or guide, and custom pages is where I imagine lots of people will be using tables. Thanks in advance, and I apologize for what might appear as an thread hijack. Peter |
If you do a Search in Templates for ".restore", you'll find them all defined in vbulletin.css. I never change things in that template though, the best thing to do is put new CSS in addiitional.css
If you need help with something, you just post in the main (vB$, in this case) forums. Usually you don't ask for an article, you just ask for help. Then, either the person helping, or the person who got helped, may throw together an article to help others. |
Quote:
|
All times are GMT. The time now is 12:27 PM. |
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:
|