vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   WebTemplates v.0.1 (Old Version) (https://vborg.vbsupport.ru/showthread.php?t=36419)

Logician 04-09-2003 06:41 AM

Quote:

04-07-03 at 02:04 AM WoodiE said this in Post #219
I get this error:

Parse error: parse error, unexpected ',' in /home/rcnitro/public_html/forum/online.php on line 295

When I use Logician's who' online mod as listed above. I'm using vb 2.2.8

I believe if you read here (especially part ADD AFTER, ADD BEFORE), your problem will be cured..

amp2000 04-11-2003 02:22 PM

This looks like a great hack, has anyone gotten it to work with VB 2.3.0 ??

Thanks
amp2000

EDIT: Nevermind, I tried it and it & it seems to work with 2.3.0 :p

Great work..

amp2000

ryancooper 04-15-2003 06:38 PM

Quote:

02-26-03 at 05:51 AM Craigr said this in Post #197
Thanks for that, i'll give it a go.

Craig


I get the error when I add the above. . .

Parse error: parse error, unexpected ',' in /home/talkdis/public_html/forums/online.php on line 315

The Piper 04-24-2003 03:06 AM

I've been using Logician's WEBTEMPLATES hack for the longest time for several pages on my website, it's one of the greatest hacks ever developed (along with vbHome (lite) and vbMicroStats, IMHO). However, I've never really liked the format of the URLs with the WEBTEMPLATES hack.

URLs right now look like this: http://www.pinkfloydfan.net/show.php?pg=books

The problem is, search engines, specially Google, don't seem to like URLs with parameters passed through them, such as the "?pg=books" part.

So, after some research, I found out how to use Apache's .htaccess to have search-engine friendly links.

First, make sure your server has the Apache module mod_rewrite installed..

Open .htaccess, and add:
Code:

RewriteEngine on
RewriteRule ^books\.php$ show.php?pg=books [NC]
RewriteRule ^posters\.php$ show.php?pg=posters [NC]

You can change the first part (^books\.php$) to whatever file name you would like your webtemplate to have, including a .html extension, such as ^this_is_my_books_page\.html$. Add as many lines as you wish/need. I have as many lines as webtemplates, so now all of them are search-engine friendly.

Also, make sure that if you already have a "RewriteEngine on" line on your .htaccess, that you don't add a second one.

Check it out for yourself: http://www.pinkfloydfan.net/books.php. It takes you to the same WEBTEMPLATE as the previous URL.

Just thought I'd share this with you. Logician, again, congrats on this great hack. I hope you keep on developing it. One thing I'd like to see that shouldn't be too hard to implement is a "Search" function for WEBTEMPLATES, much like we have for the Templates on VB's Admin CP.

I'm also having problems with the Who's Online hack you just posted a few posts back, much like other users. Would you please be so kind as to double check to see if your instructions are precise? Thanks a lot!

Craigr 04-24-2003 10:34 AM

Thanks The Piper, i will have to add that, i've probably got about 100 templates now, but it will be worth it if they are picked up by google.

Craig

Logician 04-24-2003 01:53 PM

To show webtemplates properly in who is online page:

Logician 04-24-2003 01:58 PM

Quote:

Just thought I'd share this with you.
Piper thx for the nice tip.. I'll link it in the first post.

Quote:

hope you keep on developing it.
Yes I have intentions to develop it (actually rewrite it!) after vb3 is released.

Quote:

I'm also having problems with the Who's Online hack you just posted a few posts back, much like other users. Would you please be so kind as to double check to see if your instructions are precise?
My instructions are correct. I rechecked and it is working ok here. But I believe people are missing some basic hacking rules like when said "add after" or "add before", it means add one line above or below, NOT to the same line.

Anyway to avoid such misunderstandings, I rephrased my instructions and published one post above. It should be clearer now.. :)

Enjoy..

Craigr 04-24-2003 02:01 PM

Quote:

Today at 02:58 PM Logician said this in Post #227
Yes I have intentions to develop it (actually rewrite it!) after vb3 is released.

Wow, can't wait. I wasn't going to upgrade to vb3 because i would probably lose this hack, 90% of my site is powered by it.

So thank for the good news. :banana:

Craig

The Piper 04-24-2003 03:33 PM

Quote:

Piper thx for the nice tip.. I'll link it in the first post.
Always a pleasure, never a chore. :)
Quote:


Yes I have intentions to develop it (actually rewrite it!) after vb3 is released.

That's great to hear, Logician. One more reason to upgrade to vb3, as several of my main pages are driven by WebTemplates.

Quote:

My instructions are correct. I rechecked and it is working ok here. But I believe people are missing some basic hacking rules like when said "add after" or "add before", it means add one line above or below, NOT to the same line.
I just used your new instructions, and it is working like a charm! :) Thanks for that!

leviw 04-28-2003 03:17 AM

Installed easily in about 10 minutes, no problems at all using vb 2.3.0

Playing around with the options now, this has a lot of potential!


All times are GMT. The time now is 08:07 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01256 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete