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)

glo 05-02-2003 07:06 AM

I get it now; i think! :nervous:

And i see what your "whose Online" addition does! :cheeky:

Can I use it to add other hacks or modified vB code?

For example if I cut and paste the code from the vB "login" template and place it inside a template that will be displayed on a non-Vb page. Will that display and work correctly?

Logician 05-02-2003 02:55 PM

Quote:

Today at 11:06 AM glo said this in Post #241
I get it now; i think! :nervous:

And i see what your "whose Online" addition does! :cheeky:

Can I use it to add other hacks or modified vB code?

For example if I cut and paste the code from the vB "login" template and place it inside a template that will be displayed on a non-Vb page. Will that display and work correctly?

Webtemplates display/process all default vb variables that are assigned a value in global.php correctly. Eg. $logincode or default vb options variables.

However if a vb variable has assigned a value in an other vb file (eg. member.php, index.php, private.php etc.), obviously webtemplates can not display it correctly because its file does not run prior to webtemplate to assign this variable a value. So for instance the variable that saves member count of your board has assigned a value in index.php so it will be blank if you use it in a webtemplate

ChurchMedia 05-02-2003 03:35 PM

First of all -- fantastic hack! Exactly what I was looking for. I followed your instructions for putting the show.php file in another directory:
Quote:

Add this line to the file:
PHP Code:

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


It works, but it isn't accessing my header/footer info, etc. It's probably an easy thing to fix. Any ideas?

Thanks! :)

Logician 05-02-2003 04:13 PM

Quote:

Today at 07:35 PM ChurchMedia said this in Post #243
First of all -- fantastic hack! Exactly what I was looking for. I followed your instructions for putting the show.php file in another directory:

It works, but it isn't accessing my header/footer info, etc. It's probably an easy thing to fix. Any ideas?

Not "accessing" your header/footer? Is it blank or what?

ChurchMedia 05-02-2003 04:24 PM

Quote:

Not "accessing" your header/footer? Is it blank or what?
Nevermind!! I was forgetting to put in $header and $footer in the html. Duh! Sorry about that!

Logician 05-02-2003 05:04 PM

hehe np :)

Koutaru 05-03-2003 02:58 PM

O_o I could have sworn I saw this thread before I posted my quick reply. I even searched this thread for some previous answers before I posted. Weird. Oo; I have no idea how it got into your other hack's thread xD; Sorry

Anyway, I edited the line:
xD I edited the line

if ($requested_template=="") {eval("dooutput(\"".logiciangettemplate("notfound" )."\");");exit;}

to

if ($requested_template=="") {eval("standarderror(\"".gettemplate("error_notfou nd")."\");"); exit;}

But neither codes work. Even the original one won't show the page not found. However, it will show the page not specified error. oO; do you know why this is?

Logician 05-03-2003 08:24 PM

Quote:

Yesterday at 06:58 PM Koutaru said this in Post #247
Even the original one won't show the page not found. However, it will show the page not specified error. oO; do you know why this is?
a) Was it so since day one you installed the hack or did it become so after you hacked the hack?
b) if it does not show the page not found template, what exactly happens when you call an non-existing template?
c) Why dont you simply copy paste the error_notfound templates content into notfound instead of hacking?

Koutaru 05-03-2003 10:33 PM

a) I believe it worked before. I even tried reuploading the original show.php and still, nothing.

b) It just shows a blank page. I know the function worked because the HTML source has

<!-- BEGIN TEMPLATE: template -->

<!-- END TEMPLATE: template -->

c) Because I.. There's really not much to say about that. I guess I wanted a standard error to show up. But even with the original notfound it doesn't work.

EDIT: I'm using 2.30

I tried installing on my 2.2.9 and it worked fine so it isn't my server. I think it may be my functions.php even though I'm not sure exactly what Oo; I doublechecked the installation manual and everything

O_o or maybe
if ($requested_template=="")
isn't working

Logician 05-04-2003 07:01 PM

Quote:

Today at 02:33 AM Koutaru said this in Post #249
a) I believe it worked before. I even tried reuploading the original show.php and still, nothing.

b) It just shows a blank page. I know the function worked because the HTML source has

<!-- BEGIN TEMPLATE: template -->

<!-- END TEMPLATE: template -->

c) Because I.. There's really not much to say about that. I guess I wanted a standard error to show up. But even with the original notfound it doesn't work.

EDIT: I'm using 2.30

I tried installing on my 2.2.9 and it worked fine so it isn't my server. I think it may be my functions.php even though I'm not sure exactly what Oo; I doublechecked the installation manual and everything

O_o or maybe
if ($requested_template=="")
isn't working

ok please try these and let me know:
1- Admin CP/vb settings/Add template name in comments set to NO and see if it worked.

2- Delete template "notfound" and reform it.

Hopefully one of these steps will do the trick.. :)

Koutaru 05-04-2003 07:22 PM

The first option worked Oo; -- Thanks so much Logican :D

PurpleCow 05-11-2003 11:07 AM

Logician - Does this webtemplates hack work with vB230 stable version ??

Thanks much

glo 05-11-2003 12:44 PM

Logician, can the webtemplates also be configured so they are permission based in accordance to the vB permisions?

Craigr 05-11-2003 04:04 PM

HostBubble: Yes it works on vb 2.3.0

glo: Yes you can change the permissions according to vB permissions. Have look at my page: http://www.steven-seagal.net/movies.php

If you are not logged in you will see a login box, if you are logged in you will see your username as well as some stats.

If you want me to post how i did it i will.

Craig

ap0c 05-11-2003 04:12 PM

Quote:

Today at 01:04 PM Craigr said this in Post #254
HostBubble: Yes it works on vb 2.3.0



If you are not logged in you will see a login box, if you are logged in you will see your username as well as some stats.

If you want me to post how i did it i will.

Craig

post away :D

Craigr 05-11-2003 04:22 PM

Here you go:

Code:

<!--BOTTOM SECTION-->
<table width="90%" align="center" bgcolor="#efefef" STYLE="border-width: 1px; border-color: #000000; border-style: dashed;">
<tr>
<td>
<smallfont>
[[($user_usergroupid==2)]]
You are logged in as: <font color="red">$user_username</font>, you last visited on $user_lastvisitdate.<br>
You have contributed $user_posts posts to the forum. You have viewed $user_views threads. [<a href="member.php?s=&action=logout">Logout</a>]<br>-----<br>
[[/($user_usergroupid==2)]]

[[($user_usergroupid==6)]]
You are logged in as: <font color="red">$user_username</font>, you last visited on $user_lastvisitdate.<br>
You have contributed $user_posts posts to the forum. You have viewed $user_views threads. [<a href="member.php?s=&action=logout">Logout</a>]<br>-----<br>
[[/($user_usergroupid==6)]]

[[($user_usergroupid==1)]]
You are not registered, you last visited on $user_lastvisitdate. [<a href="register.php?s=$session[sessionhash]&action=signup">Register</a>] or login below:<br>
<form action="member.php" method="post">
<input name="username" type="text" size="7">
<input name="password" type="password" size="7">
<input name="submit" type="submit" value="Login!">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="login">
</form>Registration allows you to post and reply to topics in the forum, as well as upload photographs<br>to the gallery, add links to the links directory and take quizes as well as other great activities.<br>-----<br>
[[/($user_usergroupid==1)]]

This page was last viewed by <font color="red">$lastvisitorname</font> on $lastvisittime.
</smallfont>
</td>
</tr>
</table>
$footer
<!--END BOTTOM SECTION-->

Note i added some extra information to show.php

Craig

ap0c 05-11-2003 04:59 PM

nice! thanks

Logician 05-11-2003 05:14 PM

Craig: If you add usergroup 1 to your "cant see" list, they are automatically given the login page, so you don't need to create a conditional for them..
[cantsee]1[/cantsee]

Craigr 05-11-2003 08:03 PM

Quote:

Today at 07:14 PM Logician said this in Post #258
Craig: If you add usergroup 1 to your "cant see" list, they are automatically given the login page, so you don't need to create a conditional for them..
[cantsee]1[/cantsee]

I want guest to be able to read the articles. Would this not stop them from doing so?

The code i posted was for a welcome panel type box.

Thanks
Craig

Logician 05-11-2003 08:18 PM

if you add the usergroupid into cantsee list, they can not access that webtemplate. So if your articles are in that webtemplate, they can not see them. So you can use your method if this is the case..

glo 05-11-2003 11:06 PM

I am glad that I asked the question!

This is what i need. Thanks Craigr for your mod and thanks Logician for your further input!

glo 05-11-2003 11:10 PM

I will use Logicians "cant see" addition!

Will it use the Vb cookie or will it be session based, and what are the benefits/negatives for cookie or session???

Logician 05-11-2003 11:27 PM

actually it is a not a further input, it is written in the help file.. Please read it ;)

Don't worry about cookie/session issue: If user is using cookies, it will use cookies, if user is a session user it will use session. Bottom line is it is completely safe and unpassable on user side regarding of his cookie settings.. Basically it uses the same mechanism vb forum permissions uses. So if you set a userid or usergroupid in your cantsee list, there is no way he can see that webtemplate..

glo 05-11-2003 11:42 PM

if i wanted to show a login template on its own without the headers and footers on the page by itself. Do i just remove the header and footer from the template?

Logician 05-11-2003 11:54 PM

yes remove header/footer from "notallowed" template

glo 05-11-2003 11:59 PM

Will it then automatically make the query itself?

Jim Mayhugh 05-12-2003 01:01 AM

I've already got your Advanced Templates hack installed. Do I have to uninstall the other or do they work in conjunction with each other?

glo 05-12-2003 01:03 PM

Hi Logician,
If a member was to click a thumbnail image and which linked to a "webtemplate" containing the larger image; how can i code it so that i dont have to have an individual webtemplate for each large image that i have?

If they are not a member then I know your template would display the Login/register screen.

Its the first part that i am looking for a solution!

SouledOut 05-24-2003 03:18 PM

I'll be honest...that scares the living hell outta me :cries:

Cloudrunner 05-25-2003 06:19 PM

before I decide to use this or not, is there a way to have the webtemplate parse php code through some sort of eval?

i.e. can I use php, or adjust it to I can use php or html?

Thanks
)O( Cloudrunner )O(

dano 05-25-2003 07:55 PM

Quote:

05-02-03 at 09:00 AM Logician said this in Post #240
replicate?

After installing the hack, you can simply copy/paste the source code of your page into a webtemplate and your page will be a webtemplate then. Is this what u are asking?

However as mentioned in the hack thread this hack is not coded for "site main page" altough some people use it for their main pages too.

Logician,

Question. Could I use this to create a Welcome Panel on a catagory home page?

I have an all female area of my board with its own url that redirects them to the main catagory page. I would like to have a log in box or welcome panel on that page, can you help?

Logician 05-25-2003 10:17 PM

Quote:

Yesterday at 10:19 PM Cloudrunner said this in Post #270
before I decide to use this or not, is there a way to have the webtemplate parse php code through some sort of eval?

i.e. can I use php, or adjust it to I can use php or html?

Thanks
)O( Cloudrunner )O(

Not at the moment. Hopefully this feature will be integrated into new version..

Quote:

Question. Could I use this to create a Welcome Panel on a catagory home page?

I have an all female area of my board with its own url that redirects them to the main catagory page. I would like to have a log in box or welcome panel on that page, can you help?
If it is a HTML page and you don't mind changing its url, yeah that would be ok.

Logician 06-18-2003 02:26 PM

New Version of Webtemplates is coded and about to be ready to release. (For vb 2.x.x)

It has many new and exciting features which will make hack users happy. It is designed to be a powerful vb-integrated content management system and I believe it is useful and handy.

Before the release I want to test it for a few days and it is appreciated if I can get some beta testers to help me test it and find the bugs. So I need people who
a) is already using webtemplates so familiar with its usage
b) can spare time to test the new version
c) can return to me with feedback & bugs and preferrable soon.

If you are interested, please contact me here or via email and let me know your email address so that I can send you the new version (give me a couple of days after you mailed me)..

Thanks,

reismarktq2 06-20-2003 02:08 PM

AWESOME hack.

[high]* reismarktq2 punches the install button :)[/high]

Logician 06-20-2003 02:11 PM

I'd suggest not to install this version since new one is about to be released..

reismarktq2 06-20-2003 02:13 PM

There will be a upgrade patch set up for it, right? (Because I'm already making use of it for several pages...)

Logician 06-20-2003 02:21 PM

there will not be a upgrade script, you have to move your existing webtemplates manually (by copy/pasting) so I'd say hold on creating new pages for a few days..

mbaskett 06-20-2003 03:07 PM

Logician,

We have been running this hack fro quite some time now.. I remember putting the original version on, then a new beta that you sent me a while back... We made some hacks to your hack to customize it ;) to our site and what we needed out of it. Total excellence!!! I've enjoyed it quite a bit....

I'd like to volunteer to beta your new version on our site, as I've been asked to update that section of our site with "something new" I know I'm not the best about providing feedback promptly, but that's usually because it's running well, and we haven't encountered any problems :)

Let me know, as our current Webtemplates is down (from tbe upgrade to 2.3.0 and lack of time to re-instate it) and I'm in the middle of making the decision to either re-isntate the old code we currently have, or to try out your newest version as a beta...

Thanks!

Matt Baskett

Logician 06-20-2003 03:23 PM

Quote:

Today at 07:07 PM mbaskett said this in Post #278
Logician,

We have been running this hack fro quite some time now.. I remember putting the original version on, then a new beta that you sent me a while back... We made some hacks to your hack to customize it ;) to our site and what we needed out of it. Total excellence!!! I've enjoyed it quite a bit....

I'd like to volunteer to beta your new version on our site, as I've been asked to update that section of our site with "something new" I know I'm not the best about providing feedback promptly, but that's usually because it's running well, and we haven't encountered any problems :)

Let me know, as our current Webtemplates is down (from tbe upgrade to 2.3.0 and lack of time to re-instate it) and I'm in the middle of making the decision to either re-isntate the old code we currently have, or to try out your newest version as a beta...

Thanks!

Matt Baskett

if you don't mind waiting for a few days, you'd better try the new version. If you send me your email, I'll mail it to you so you can decide which one to choose... But frankly, compared to new version, old version is stone age in all respects.. ;)

mbaskett 06-20-2003 07:42 PM

Sweet, I'll PM you me e-mail addy...


All times are GMT. The time now is 05:02 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.01608 seconds
  • Memory Usage 1,845KB
  • 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
  • (1)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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