is there a way to use this and have a flash file run in the center on the custom page?
|
sure, just make a table using vbulletins style variables so it has all the same style, then load your flash file wherever you want in that table.
|
Hello,
I need to integrate header and footer of the my site in vBulletin. Is there a way,I do not want to use iframes,neither want to use file_get_contents for getting the code. Is there a way to do it neatly in vbulletin. |
you're reading an article on how to create a vbulletin powered page that uses the vbulletin header and footer.
Did you actually even read it or are you waiting for someone to take you by the hand and read it for you? |
Since the user is new (first post) your derisive reaction is quite uncalled for. Especially as it seems you may not have read his question. Taking him by the hand to go through this article won't help him, since this article does not do what he wants to achieve.
@demo.hidden: You should open your own thread to ask this question in an appropriate forum. This article does not cover your question, hence this thread not really is the place to ask this. |
I'm sorry, I didn't even realize he had only a single post. I don't even remember replying to this thread to be honest.
|
is it possible to capture the output of an external script (maybe using include) and display it in the template? I need to assign some text to a variable and display it
thanks |
That's what the php part is for. Of course you can assign a value to a variable with php.
|
Any help for vb 4.1.0 ?
|
Quote:
Try the vB4 version of this tutorial in the "vBulletin 4 Articles" forum: https://vborg.vbsupport.ru/showthread.php?t=228112 It should work perfectly well with vB4.1 |
Hi everyone.
The page title is set on the template, Code:
<title>$vboptions[bbtitle]</title> Thanks in advance. |
If you make a variable on the .php file like $customtitle, then put <title>$customtitle</title> in the template that *should* work. I'd try it at least.
|
Quote:
Thanks BirdOPrey5, I'll give it a try! Edit: Worked like a charm, thanks! |
Thanks for the tutorial, works perfect!
|
I need some help guys, I've got my page working for the most part. I just need to know how to make it parse BBCode that's being pulled from vBulletins threads.
|
Quote:
In the php file near the top add the lines: PHP Code:
PHP Code:
|
Quote:
PHP Code:
PHP Code:
Quote:
PHP Code:
Quote:
Then you can use this line (change the $rawthread and $parsedthread variables to your needs) to get the parsed output (BB Code converted to HTML) |
It looks like the errors are because you need the require_once ('./global.php') file above everything else basically... in your script directly under the "error reporting" line near the top. Also if this php file is in the same directory as your forum root (where global.php is located) you don't need the ./ just use require_once ('global.php');
Quote:
--------------- Added [DATE]1292812596[/DATE] at [TIME]1292812596[/TIME] --------------- Looking over your code you seem to be missing any data to parse... You don't parse a template usually, a template should have real HTML not BB Code. Usually text like posts and signatures would be the only things requiring parsing. |
Well I'm making some progress at least,.. you've got it working- which I owe you millions of thanks for, but I'm having an issue of it parsing a little to much onto the page.
I'll break down what I'm trying to accomplish. The test.php page calls a new template called test,. The test template calls a plugin named $homepage_recent_post,.. $homepage_recent_post displays: 7 recent threads from specific subforums, Display the thread title, Display the date posted, Display who posted it, Display the pagetext, (the post itself), Display a link to that thread. If I setup my test.php page like: PHP Code:
With this plugin: PHP Code:
I'll get the 7 last post, but they're unparsed. Now if I setup my test.php like: PHP Code:
and with the same $homepage_recent_post plugin, it'll parse the plugin- pagetext and all, but then it's parsing too much onto my page. Here's an example of the same post from above, but parsed. Is there any way to parse just post.pagetext onto this page instead of parsing the entire plugin? If so, how do I go about doing it? |
The BB Code parsing needs to be done in your plugin not the .php file...
Using the 1st version you posted in the above post make the plugin into: PHP Code:
PHP Code:
|
awesome bro, I'll go check it out right now, thanks for lending me a hand.
--------------- Added [DATE]1292886240[/DATE] at [TIME]1292886240[/TIME] --------------- Almost got it, we're most definitely closer.. It parses the post correctly but parsed the [img] into a clickable link instead of showing the picture. Any ideas? Using your suggestion results like this with or without requiring global at the top of the plugin, I also made the test.php with requiring the bbcode_parser, or the parsing line that it had previously.... I'm stumped.. --------------- Added [DATE]1292887793[/DATE] at [TIME]1292887793[/TIME] --------------- I just noticed something else, the plugin results in 14 results instead of 7, it displays the first 7 threads from the forum and displays each of them twice. |
I have fixed it where it shows the posts twice, but for some reason I cannot get it to parse the images from the post. Any ideas?
|
Yeah forgot they don't parse images when using 'nonforum'- replace that with a valid forum id of one of your forums where images are allowed...
Basically try something like... Code:
$thrds[pagetext] = $bbcode_parser->parse($thrds[pagetext] , 2, true,); |
Worked like a charm- I'm good to go. Thanks for helping me out soo much- I appreciate it. Happy Holidays!!
|
Glad to help. :up: Happy Holidays.
|
How do i add certain forums to the additional page? And would i be able to remove them from my index.php?
|
Quote:
|
Quote:
|
Hi,
I never Create a new file and create the template. Any one cant help me to do that and include that on vbulletin? |
Here are the errors I'm getting on the page I created. Can someone please tell me what I've done wrong?
Quote:
|
Quote:
|
@#%@#
Took me forever googling around to find this. Could I please ask if you can point me in the right direction? |
It was the very first thread in the VB4 Articles Section:
https://vborg.vbsupport.ru/showthread.php?t=228112 [HOW TO - vB4] Create your own vBulletin page. |
Quote:
|
Thousands? That is impressive...
But yeah, the way templates are called (and cached) changed... Once you get the hang of it it's not too bad but it will mean a manual edit to every php file you have that calls a template (which is probably all of them.) |
Quote:
|
Both. Honestly, in your situation, I'd recommend using either the CMS (so hopefully you'd be converting one last time only) or creating just one framework page that pulls it's content data from a custom database table. This way, it'd be easier for future conversions. But, of course, I don't know what kind of pages we're talking about.
|
VB4 uses table-less design so depending on how much existing code you rely on in your templates could mean a lot of work. Also all template conditionals and variable uses in templates has changed.
|
Quote:
|
Anybody know how to make these pages searchable in google or other search engines? I've added the meta data to each of the templates for the pages I've created. However, I get no results when I search in google even when I enter the entire URL.
Thank you, any help is greatly appreciated. |
All times are GMT. The time now is 10:02 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:
|