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)

FASherman 08-23-2002 07:28 PM

Thanks, that did it. Is there a comprehensive list of variables somewhere? Sure would help!

Here's how one instance in how I use this to give others an idea. I use it in my privacy statement. I show users what information we have collected, then explain what other users can see based on various setting like invisibility and such. Then they have a clear idea who can see what information, who can PM them or email them.

Basically it is a privacy statement tailored to the individual user and one that will change as they change their settings to either gain more privacy or more visibility to the on-line community.

How's that for a good use of this utility (not really a hack)?

ryancooper 08-23-2002 08:37 PM

I get a error when I try to do anything with the show.php

atal error: Call to undefined function: logiciangettemplate() in /home/talkdis/public_html/forums/show.php on line 25

What am i missing?

Logician 08-23-2002 09:30 PM

Quote:

Originally posted by ryancooper
I get a error when I try to do anything with the show.php

atal error: Call to undefined function: logiciangettemplate() in /home/talkdis/public_html/forums/show.php on line 25

What am i missing?

You probably applied instruction step 3 incorrectly. Have you added the code to your admin/functions.php? (and have you uploaded it to your server?) ;)

Logician 08-23-2002 09:34 PM

Quote:

Originally posted by FASherman
Thanks, that did it. Is there a comprehensive list of variables somewhere? Sure would help!

I dont know a list but it's not hard to compile one by yourself for $bbuserinfo variables. Just check database table "user" via PHPmyAdmin or any other db tool and note field names in user table. These are exactly same in $bbuserinfo[fieldname]

FASherman 08-23-2002 11:13 PM

That was more in reference to the other $bb variables. I've noticed that more than just the $bbuser variables get parsed and replaced.

irn-bru 08-26-2002 10:49 AM

did I reply to say this is a great hack? cant remember
well anyway it is..

Limpkinw 08-26-2002 07:21 PM

When i click the link on webtemplates_install.php i just get
http://www.limpkinw.com/webtemplates_install.php?p=1

and it keeps kicking me back to that.

Any suggestions?

Limpkinw 08-26-2002 07:42 PM

Ok I was able to get around the problem above by modifying the php file a bit but on step 4 i get this...

Inserting the default templates to the table and finishing the installation..


Notice: Undefined variable: pagetitle in D:\Inetpub\wwwroot\www.limpkinw.com\forum\webtemplates_install.php on line 309



Congratulations! The relevant tables are created and default templates are installed successfully.
Before proceeding with hack installation, please DO NOT FORGET to DELETE this file (webtemplates_install.php) from your server!


that line is


<head><title>$pagetitle</title>


surrounded by

$template=addslashes($template);
mysql_query ("insert into webtemplates (templateid, title, template, count) values (null, '$title', '$template', '0')");
echo mysql_error();

//////////////////////////////////////////////////////////////////////////////////////////////// notfound
$title = "notfound";
$template=<<<HASH51
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>$pagetitle</title>
\$headinclude
\$headinsert
</head>



Any suggestions? Thanks!

Logician 08-28-2002 08:34 AM

Quote:

Originally posted by Limpkinw

Notice: Undefined variable: pagetitle in D:\Inetpub\wwwroot\www.limpkinw.com\forum\webtemplates_install.php on line 309

that line is

<head><title>$pagetitle</title>

Change the line as:

<head><title>\$pagetitle</title>

then you should be fine.. If you are going to run the installation script from the begining I suggest deleting tables "webtemplates" and "webtemplatequery" first, then run the script. Or another chice will be inserting the "notfound" webtemplate manually via Admin CP/Add Webtemplate

Grendel 09-03-2002 07:23 AM

Great hack, works fine here: www.short-stories.de
Thats exactly what I was looking for for my starting page - I have a literature-page and wanted to show the newest story of each forum. Further feedback from me as soon as I installed lot of queries :D


All times are GMT. The time now is 05:15 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.01302 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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