![]() |
[Release] Simple vB powered web page
Author: Anime-loo
Screenshot: None. This script is for webmasters that still use .html static pages for their sites. The point of this script is to allow you to be able to edit your html pages via the vB admin cp (templates). This opens up alot more for anyone useing vB with a html website. Here is a quick list of things you can do with this script: Back up ALL html pages, they are stored in the database so you no longer have to backup your static html pages then grab your DB. Block guest/not logged in users from a page. Quick editing of all pages via vB's template system. Have pages that change styles based on what the user has selected in their user cp: --Use all global templates ($header,$footer,$gobutton) in pages. --Use all replacements in your pages. I plan on extending this script alot more soon, ATM it was wrote to kill time. :) |
many would consider this a hack not a template edit
as i saw lots of hacks like this one @vb.org |
I talked to Saintdog about it yesterday, its fine because it dosent edit any .php files :)
|
I'll try it tommorow and tell it what went wrong :o)
Are there any bugs noticed? |
I do not currently have any html pages associated with my forum, nor is my forum in a forum directory, rather it's at the domain root. Your directions say to NOT to load the page.php, renamed of course into the forum directory. I am assuming this is to make sure you do not write over a page currently in that directory as your example of index.html to index.php suggests, am I correct? I don't see where any complications that would come into play aside from writing over current php files.
BTW, this looks like a great way for me to add HTML content and yet be able have it integrated within vBulletin. Then I can use online.php and so on for my new pages in addition to other bonuses. Before I do though, I need to figure out a new top navigation setup, especially if I will be adding more links, tis already crowded. BTW, thanks for this it looks like this simple "just wasting time" project might come in handy for me. Any inklings of what you might be adding to it? |
hmm....this is like a non hackable portal?
sounds cool, I might install it on my locallhost and see whayt it's like :) |
Wow non-hackable portal, nice job. :)
|
This sounds pretty interesting.. Can this work like other portals that have the latest topics, last registered member, featured news and stuff like that on the front page?
|
Great idea!
Why does it only work with html files and not php? For security reasons? |
I bet it will have more stuff like that once v2 comes out ;)
but for now I bet you can add this to it o.o http://www.vbulletintemplates.com/mo...&threadid=2649 |
would be great if i could add php to it
|
You can add php to the file itself, the main goal for this release was to allow a html based site to be editable thru the templates. That dosent mean you can extend it further.
As for the new stuff coming in this script, ive decided to leave it as is for now. Insted im working on a vBhome like project that requires no hacking of the vB php files. I may release it over here upon aproval of Saintdog. |
Quote:
|
Quote:
Quote:
|
Is there a demo?
|
Here's a teeny demo of something I threw together this morning. I am using $bbtitle, $header and $footer, otherwise it's plain ol html via a custom template. This doesn't really show advanced capabilities of this mod or advanced html, but it might give you some idea. For me it seems like a good way to add content easily and be able to control it via the template system in addition to other pros.
http://www.autismtalk.net/whatis.php |
nice :)
|
I don't get this mod... I just started learning PHP and I can't figure out how to make it work... i followed the instrucions and the page.php is working but how do I make my html files load $header for example? :(
|
Stick it in the custom template.
|
Quote:
|
Sorry, about the PM Anime-loo, I barely saw your sig. ^^;;;
But anyway, I was able to set it up, but I got a new problem. Quote:
The page shows correctly, but it says that on the very top. |
Your $path is set wrong, is you vB in your root directory?
|
yeah, it is in the root. =/ I set the page.php to home.php. Does it have to be index?
|
I also get the same problem help
this is my path /var/www/html/forum |
i got it i figure it out the path wasnt /var/www/html/forum it was /home/virtual/site10/fst/var/www/html/forum
Sonikku try this : $template= home your file name has to be home.php $path = /home/thesonic/public_html this is my demo not done yet just got the header footer and headinclude in there and text bk bk bk without any html code http://www.polskieforum.com/forum/reklama.php |
alright! It works great! Thanks alot. :)
|
Works wonderfully. Thank you so much!
I have a question. For any templates I wish to include in it, I can simply put $nameofthetemplate ? |
as is, no. But you can do it with slight modification to page.php.
Open page.php: -------- find: -------- $templatesused='$template'; -------------- Replace by: (change nameoftemplate to your custom templates name) -------------- $templatesused='$template,nameoftemplate'; --------------- Find: --------------- eval("dooutput(\"".gettemplate("$template")."\");" ); ---------------- Above it add: (change both instances of 'nameoftemplate' to the templates name. ----------------- eval ("\$nameoftemplate = \"".gettemplate("nameoftemplate")."\";"); that sould do it. |
:D good work loo! I installed it on my forums.....works like a charm! :rolleyes:
|
Quote:
This means a whole lot to me, and I wanna thank you BIG TIME. |
let me see if i understand this, if i install it i can use all of the $variables on on pages other than my board
|
most of them, yes...
|
Quote:
$header $footer $gobutton $bburl $bbuserinfo[] {replacements} And probbly a few mor i can not recall at this time. |
Is there a way to make the page use one style (other than the default one), and override user's preference?
|
Try adding this:
if ((!isset($styleid) or $styleid=="") { $styleid="$setstyleid"; } after: $templatesused='$template'; And this: // set this to the custom style of the page $setstyleid = "1"; after: // Edit this line with the full _path_ to your vBulletin global.php file (not /admin/global.php!!!) $path = "/path/to/globals/"; |
Parse error on the line with
if ((!isset($styleid) or $styleid=="") { |
I hate to be a nag, but should I assume that this is currently not possible to force a style on a page?
|
I look into it, and add a few more things when i release version 2 (coming after loo-portal). For now you can just link the page like so:
www.yoursite.com/page.php?styleid=*number of style id here* |
Hmmm. I will have to wait I guess. I do not allow changing of styles by members. Different areas change styles by default. So this does not seem to work for me.
|
I am having a problem, it seems that all of a suddent the access masks on this stopped working because all pages that I have that say no to guests are still viewable by guests :( Any ideas of what could be causing this?
|
All times are GMT. The time now is 06:23 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|