![]() |
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? |
Quote:
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 |
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:
Thanks! :) |
Quote:
|
Quote:
|
hehe np :)
|
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? |
Quote:
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? |
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 |
Quote:
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.. :) |
The first option worked Oo; -- Thanks so much Logican :D
|
Logician - Does this webtemplates hack work with vB230 stable version ??
Thanks much |
Logician, can the webtemplates also be configured so they are permission based in accordance to the vB permisions?
|
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 |
Quote:
|
Here you go:
Code:
<!--BOTTOM SECTION--> Craig |
nice! thanks
|
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] |
Quote:
The code i posted was for a welcome panel type box. Thanks Craig |
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..
|
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! |
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??? |
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.. |
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?
|
yes remove header/footer from "notallowed" template
|
Will it then automatically make the query itself?
|
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?
|
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! |
I'll be honest...that scares the living hell outta me :cries:
|
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( |
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? |
Quote:
Quote:
|
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, |
AWESOME hack.
[high]* reismarktq2 punches the install button :)[/high] |
I'd suggest not to install this version since new one is about to be released..
|
There will be a upgrade patch set up for it, right? (Because I'm already making use of it for several pages...)
|
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..
|
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 |
Quote:
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|