Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Release] Simple vB powered web page Details »»
[Release] Simple vB powered web page
Version: 1.00, by Brad Brad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-29-2003 Last Update: Never Installs: 3
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 02-05-2003, 01:49 PM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Warning: ChDir: No such file or directory (errno 2) in /home/thesonic/public_html/home.php on line 22

Warning: Cannot add header information - headers already sent by (output started at /home/thesonic/public_html/home.php:22) in /home/thesonic/public_html/admin/functions.php on line 1709
arf?
The page shows correctly, but it says that on the very top.
Reply With Quote
  #23  
Old 02-05-2003, 05:42 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your $path is set wrong, is you vB in your root directory?
Reply With Quote
  #24  
Old 02-05-2003, 06:10 PM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah, it is in the root. =/ I set the page.php to home.php. Does it have to be index?
Reply With Quote
  #25  
Old 02-06-2003, 06:49 AM
imported_PiotrasG imported_PiotrasG is offline
 
Join Date: Sep 2002
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also get the same problem help

this is my path

/var/www/html/forum
Reply With Quote
  #26  
Old 02-06-2003, 07:15 AM
imported_PiotrasG imported_PiotrasG is offline
 
Join Date: Sep 2002
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #27  
Old 02-06-2003, 03:16 PM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

alright! It works great! Thanks alot.
Reply With Quote
  #28  
Old 02-08-2003, 04:15 AM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works wonderfully. Thank you so much!

I have a question. For any templates I wish to include in it, I can simply put $nameofthetemplate ?
Reply With Quote
  #29  
Old 02-08-2003, 05:06 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #30  
Old 02-08-2003, 05:15 PM
narusaga narusaga is offline
 
Join Date: Feb 2003
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good work loo! I installed it on my forums.....works like a charm!
Reply With Quote
  #31  
Old 02-09-2003, 09:01 AM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Anime-loo
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.
WOW. Thanks. I have not tried it out yet, but I will.
This means a whole lot to me, and I wanna thank you BIG TIME.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:50 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
  • Page Generation 0.04927 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete