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)

Craigr 03-10-2003 12:10 PM

Yes the hack is great. I'm running the majority of my site using it.

http://www.steven-seagal.net

Craig :D

refertech 03-10-2003 12:12 PM

Good looking site you got there Craig. :D

refertech 03-11-2003 12:07 AM

Logician I just got the hack install and I wanted to say again. Man this rocks. Thank you for offering this. So many ideas, I dont konw where to start. :)

Mark

Craigr 03-11-2003 08:49 AM

Quote:

Originally posted by refertech
Good looking site you got there Craig. :D
Thanks.

Craig

jbear6 03-13-2003 02:29 AM

Quote:

Originally posted by Logician

Try this one:

Edit online.php, find:
PHP Code:

  }
  
$userinfo[time] = vbdate($timeformat,$userinfo[lastactivity]); 

Before that add:

PHP Code:

    // Logician WebTemplates Hack
      
if (preg_match("/(pg=)(.*)(&)/siU"$userinfo[location], $l_match1) OR preg_match("/(pg=)(.*)/siU"$userinfo[location], $l_match2))
    { 
    if (
$l_match1[2]) {$lmatch=$l_match1[2];} else {$lmatch=$l_match2[2];}
      
$userinfo[where]= 'Reading Webtemplate: <a href="show.php?pg='.$lmatch.'" target="_blank">'.$lmatch.'</a>';
    }
    
// Logician WebTemplates Hack 

Enjoy..

First off....Great Hack!
Everytime I add a new page to our website, I use this hack. Thanks again for all your time and effort.

I added the code above to online.php, and it works fine if you view "who's online" as an admin. When I view "who's online" as a registered member though, I see "Reading Webtemplate:", but nothing following the colon. For instance as an admin, I see "Reading Webtemplate: news", but as a registered user I see just "Reading Webtemplate:". I'm stumped :)

Thanks
Jbear6

Logician 03-13-2003 09:56 AM

Quote:

For instance as an admin, I see "Reading Webtemplate: news", but as a registered user I see just "Reading Webtemplate:".

Adding this line:

PHP Code:

 if ($bbuserinfo[usergroupid] != 6) {$userinfo[location] = htmlspecialchars(stripslashes(replacesession($userinfo[location])));} 

Before line

PHP Code:

 if (preg_match("/(pg=)(.*)(&)/siU"$userinfo[location], $l_match1) OR preg_match("/(pg=)(.*)/siU"$userinfo[location], $l_match2)) 

might help..

jbear6 03-13-2003 10:26 AM

That worked! UDA MAN Logician!

Thanks again,
Jbear6

Keichii 03-14-2003 01:54 PM

Umm. i'm a newbie.. so i'm not sure if this is possible. Can show.php be put in a directory other than the forums.. and if it can't is there anywayt to do that..

Logician 03-14-2003 06:50 PM

Quote:

Today at 05:54 PM Keichii said this in Post #208
Umm. i'm a newbie.. so i'm not sure if this is possible. Can show.php be put in a directory other than the forums.. and if it can't is there anywayt to do that..
I didnt test it myself either, it may or may not work.. Just give it a try, but don't forget to add the line
PHP Code:

chdir('/usr/local/apache/sites/yourforumdir/'); 

at the begining.

BTW. IMO this shouldn't be very crucial. It's just the URL that matters so the hack will work in the same way even if its in forum dir or not.. My 2 cents..

Keichii 03-14-2003 07:49 PM

yay it works ^__^

if i put the show.php in a different directory will it slow down the page loading time by any chance?


All times are GMT. The time now is 03:18 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,753KB
  • 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
  • (5)bbcode_php_printable
  • (4)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