Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #466  
Old 16 Jan 2011, 18:36
tonmo tonmo is offline
 
Join Date: Dec 2004
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?
Reply With Quote
  #467  
Old 16 Jan 2011, 19:27
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by tonmo View Post
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?
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.)
Reply With Quote
  #468  
Old 17 Jan 2011, 04:43
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Originally Posted by Lynne View Post
Basically the same except you need to change all your eval/fetch_template statements to use the new syntax (the new syntax is covered in other articles, although shown in the code for this one).
Can you use an example.
Reply With Quote
  #469  
Old 17 Jan 2011, 14:00
tonmo tonmo is offline
 
Join Date: Dec 2004
Originally Posted by Lynne View Post
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.)
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?
Reply With Quote
  #470  
Old 28 Jan 2011, 14:59
fireglow305's Avatar
fireglow305 fireglow305 is offline
 
Join Date: May 2010
Good article, thank you.
Reply With Quote
  #471  
Old 04 Feb 2011, 17:59
odln018's Avatar
odln018 odln018 is offline
 
Join Date: Mar 2006
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.
Reply With Quote
  #472  
Old 04 Feb 2011, 18:17
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by odln018 View Post
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.
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.)
Reply With Quote
  #473  
Old 04 Feb 2011, 18:18
odln018's Avatar
odln018 odln018 is offline
 
Join Date: Mar 2006
Geez, I can't even post in the right thread.
Reply With Quote
  #474  
Old 05 Feb 2011, 20:15
odln018's Avatar
odln018 odln018 is offline
 
Join Date: Mar 2006
Would someone who's gotten this up and running please PM me?

Thanks in advance
Reply With Quote
  #475  
Old 12 Feb 2011, 17:28
ceho ceho is offline
 
Join Date: Mar 2008
Real name: Chris
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
Reply With Quote
  #476  
Old 12 Feb 2011, 17:30
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by ceho View Post
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.
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.)
Reply With Quote
  #477  
Old 12 Feb 2011, 18:15
ceho ceho is offline
 
Join Date: Mar 2008
Real name: Chris
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
Reply With Quote
  #478  
Old 13 Feb 2011, 22:11
basilrath's Avatar
basilrath basilrath is offline
 
Join Date: Apr 2006
Is it possible to get the "whos viewing this thread or post" box at the bottom of my custom page?
Reply With Quote
  #479  
Old 14 Feb 2011, 00:39
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by basilrath View Post
Is it possible to get the "whos viewing this thread or post" box at the bottom of my custom page?
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.)
Reply With Quote
  #480  
Old 14 Feb 2011, 07:24
iBaker's Avatar
iBaker iBaker is offline
 
Join Date: Nov 2006
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 23:11.

Layout Options | Width: Wide Color: