![]() |
|
|
Article Options |
|
#466
|
|||
|
|||
|
To clarify - I have dozens of static php pages that I created long before I implemented vBulletin. The page format is this:
HEADER .. UNIQUE ARTICLE CONTENT .. FOOTER The HEADER and FOOTER are separate included files (i.e., header.php and footer.php); they are common across all article pages. I am wondering if there is any common vb4 code I can put into the header and footer files in order to wrap all of these articles into the vbulletin look and feel. I'm running 4.1.1. Does that help explain what I'm trying to do? No members have liked this post.
|
|
#467
|
||||
|
||||
|
Originally Posted by tonmo
Yes, that explains it better. I would guess you would want to assign the contents of those files to a variable and then spit them out into the template. I know I've seen the code posted around here to do that, but don't know it off the top of my head. (I think it's even posted in this thread somewhere.)
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
|
#468
|
|||
|
|||
|
Can you use an example.
No members have liked this post.
|
|
#469
|
|||
|
|||
|
Originally Posted by Lynne
Thanks - but probably not for me. I want each page to retain its own unique title and I don't believe your method would allow that.
All of my static pages exist in different places throughout my site, and have signifcant inbound links that I don't want to break. So far I've found two ways to convert them into vb pages: 1) Simply create new Article pages via CMS and copy/paste the original article contents into the new file. Convert the static page to a permanent redirect which points to the new CMS article. 2) Use the method described in this thread (How To Create Your Own vBulletin Page). I'm finding both to be a bit labor-intensive (I have dozens of pages). Maybe 5 or 10 mins per article - those add up! Since all my static pages use server-side includes for the header and footer, I was hoping I could insert the logo, ad, and navbar at the top, and the footer at the bottom, so that I would only need to edit two files (the two includes) and viola! My site is converted. Seems that's not an option? No members have liked this post.
|
|
#470
|
||||
|
||||
|
Good article, thank you.
![]() No members have liked this post.
|
|
#471
|
||||
|
||||
|
I must be truly dumb, as I can't get this to work. I don't know what to use as a "link.php". Also, should the drop down appear if the link.php doesn't exist?
Stupid I'm sure. No members have liked this post.
|
|
#472
|
||||
|
||||
|
link.php? And what dropdown?
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
|
#473
|
||||
|
||||
|
Geez, I can't even post in the right thread.
No members have liked this post.
|
|
#474
|
||||
|
||||
|
Would someone who's gotten this up and running please PM me?
Thanks in advance No members have liked this post.
|
|
#475
|
|||
|
|||
|
Hi, would it be possible to add any information from a user's profile (Profile, Image Options, User Profile Fields) to a custom site? I have all the conditions etc., e.g. from postbit_legacy, but I don't get any of these to be displayed on a custom site. Or would I have to change the php file, or add something to the head of my custom site...? Sorry, I am lost, would be great to get a hint here. Thanks in advance.
__________________
www.cureconnections.com No members have liked this post.
|
|
#476
|
||||
|
||||
|
Originally Posted by ceho
You may put anything you want on this page. However, you may need to copy the php from another page onto this one if you want some of the same information displayed. You cannot just take a variable name that is used on another page and plop it into the template for this page and have it display the same thing. Behind every variable is some code that defines it.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
|
#477
|
|||
|
|||
|
Phew, this means I need to find out which php is behind each condition? Would you know a trick to do so? Firebug doesn't help on this I am afraid. Let's say I want to copy the content from postbit_legacy to a custom site, how can I find out the correct php file? Can I just copy the content into the according php content of my custom page?
Just a little hint and I try my best to go on alone ;-). Thanks a lot for you quick help Lynne!
__________________
www.cureconnections.com No members have liked this post.
|
|
#478
|
||||
|
||||
|
Is it possible to get the "whos viewing this thread or post" box at the bottom of my custom page?
No members have liked this post.
|
|
#479
|
||||
|
||||
|
Sure, if you copy the code for it also.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
|
#480
|
||||
|
||||
|
I have found with 4.1.1 that:
- If I have the forums in my root - My pages in a folder /pages/ - I use the chdir ('/home/xxxx/public_html'); The page displays with correct styling ONLY if I have the vb option "Always use Forum URL as Base Path" set to Yes...If I set it to No (which I need to do) I lose all the styling from the vb style Anyone come across this and know of a way around it?
__________________
Regards Ian (Xenforo: Recreational Flying. vBulletin: Aviation Enthusiasts)NOTE: Previously whatever I posted on forums was copied by a competing site. So I post this in the hope that it does help others but on the condition that anything that I post is not allowed to be used by Glenn Inwood of Cowra NSW Australia or anyone associated with him. No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Article Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 23:11.




(Xenforo:
