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 2.x: VB Integrated Content Management System (https://vborg.vbsupport.ru/showthread.php?t=54875)

Logician 09-04-2003 09:43 PM

in a PHP parsed webtemplate do not temper with other webtemplate options such as conditionals, header, footer etc. Make sure your template's all other settings as same name sample webtemplate "phptest". (Especially header and footer regarding your error message) .

Also make sure your PHP syntax is correct.

soccerclue 09-05-2003 10:33 AM

I can gurarantee that my php code is correct because it works fine before integrating with the hack. I still cannot find what's wrong. I use this hack to help me with the displaying of the header and footer and also I would like to have the login and logout box to appear in the non vb page. Do you mind if I PM you the PHP code?

Logician 09-05-2003 02:21 PM

Quote:

Today at 02:33 PM soccerclue said this in Post #162
I can gurarantee that my php code is correct because it works fine before integrating with the hack. I still cannot find what's wrong. I use this hack to help me with the displaying of the header and footer and also I would like to have the login and logout box to appear in the non vb page. Do you mind if I PM you the PHP code?
Try this:

Copy paste your PHP code in that template inside default "phptest" template. And make sure you do NOT change anything else in phptest template except "webtemplate" field.

If it works it means that you tempered with a setting that you shouldn't inside your webtemplate.

If it does not work, try to put your code inside default PHPINCLUDE template of vb. If a problem occurs, then it means vb did not like your code for a reason, then webtemplate will inherit this behavior either. If it works in the PHPINCLUDE template, then let me know your PHP code.

soccerclue 09-05-2003 08:37 PM

OK...I have tried to put the PHP code in the phptest and it gave the same error.

I don't know exactly putting the code inside default PHPINCLUDE template of vb. Is it in AdminCP or in webtemplate file edit? I saw a PHP include input box in the webtemplate file edit though. I tried putting the code in that field in phptest and it gave the same error also. I don't have any idea how to fix it. Really hope you can help me. Thank you.

Logician 09-06-2003 07:42 AM

let me know your PHP code

roxics 09-06-2003 08:09 AM

Hi I have bit of a problem. I set up a page I would like for someone else to edit. I put their userid in the editors field (459) however I notice myself as Admin that when I click on [Edit this page] on taht page editors.php pops up blank. Why could this be?

thanks

Logician 09-06-2003 08:28 AM

I would firstly suspect a template problem. Check if all templates created ok and in all template sets too..

roxics 09-06-2003 05:32 PM

Everything looks fine and seems to be working fine. Just that is that working.

Just to clearify the problems seems to be with editors.php. Though nothing was changed with that file. Every other part of your system is working great and I'm very happy with it.

Does the editors.php file need a certain CHMOD value?

Logician 09-06-2003 08:24 PM

Quote:

Yesterday at 09:32 PM roxics said this in Post #168
Everything looks fine and seems to be working fine. Just that is that working.

Just to clearify the problems seems to be with editors.php. Though nothing was changed with that file. Every other part of your system is working great and I'm very happy with it.

Does the editors.php file need a certain CHMOD value?

Have you checked templates as I suggested?

There are very few sections that uses the templates you created in the installations so if there is a problem with your template installation, the hack will still work fine but you'll get blank pages in a few sections one of which is webtemplate editing.

So make sure:
1- Installation templates are created correctly
2- Their names are correct (it is CASE-SENSITIVE) and there is no trailing space etc. at the end.
3- If you have more than 1 template sets, templates are created in ALL sets.

roxics 09-07-2003 02:47 AM

I see what you are saying. The templates for the style. They were all blank. Somehow I missed filling those in. Everythign is fixed now and working great.

Thanks for your help. :)

roxics 09-25-2003 07:23 PM

Logician I'm curious. Is there any way to pull a specific thread to a webtemplate page? Rather then just copying and pasting the information is there anyway for it to still be dynamic?

So you can have an article on a page laid out the way you wish and have responses to that artical below.

Thanks

Logician 09-27-2003 07:07 PM

Quote:

Originally Posted by roxics
Logician I'm curious. Is there any way to pull a specific thread to a webtemplate page? Rather then just copying and pasting the information is there anyway for it to still be dynamic?

So you can have an article on a page laid out the way you wish and have responses to that artical below.

Thanks

The structure won't be flexible so don't expect something fancy but here is a draft webquery: (Remember to replace X with threadid)

MindTrix 10-07-2003 11:42 AM

Lmfaooo. I installed and i was like OMG its gorgeous :p better than like errrm the portals and ++++. Then i realised i hadnt imported the templates yet, and now it looks even sweeter :p Thank yaaaaaaa

MindTrix 10-07-2003 11:43 AM

Oh yeah, now get to work on that ultimate hack ;)

Logician 10-07-2003 01:29 PM

Quote:

Originally Posted by MindTrix
Oh yeah, now get to work on that ultimate hack ;)

I thought you have already found it ;)

MindTrix 10-07-2003 01:35 PM

LOL yeah yeah yeah smart ass i admit it met most of the requirements ;) Tis nice ill give u that, how i envy ur brains :p I envy em so muchhhh ima ask u 2 peep dis lol
https://vborg.vbsupport.ru/showthread.php?t=57591

Mr. HillBilly 10-28-2003 11:01 PM

When viewing online users they always show up using this:

Unknown Location: /forum/view.php?bannerid=&

Logician 10-29-2003 06:32 AM

Quote:

Originally Posted by Mr. HillBilly
When viewing online users they always show up using this:

Unknown Location: /forum/view.php?bannerid=&

I guess bannerid parameter (whatever it is) is bothering the display. If you need it maybe you can put it at the end like view.php?pg=yourpage&bannerid=...

Gio Takahashi 10-30-2003 09:12 PM

Just installed this hacks, it is working very nice so far.

www.unitedempire.net

LavaNoX 11-02-2003 11:29 PM

Hi, great hack. Just a quick question: How would I set it up so that guests/unregistered users can see it as well?

Gio Takahashi 11-03-2003 04:47 AM

Guest and Unregistered user should already be able to see it without a problem.

Logician 11-03-2003 09:05 AM

Quote:

Originally Posted by LavaNoX
Hi, great hack. Just a quick question: How would I set it up so that guests/unregistered users can see it as well?

Unless you enter the guest usergroup's usergroup id (which is 1) in the "BANNED IDs" field of a webtemplate, they can see it. You decide which usergroups or users can see which page by assigning values in this field for each webtemplate

Gio Takahashi 11-04-2003 03:41 PM

Hmm it would be nice to add an additional separate shoutbox on the templates, how might I do that?

X-Sector 11-20-2003 08:49 PM

Will it work for 2.3.3 ?

Gio Takahashi 11-21-2003 02:56 AM

Give it a try, I had that hack on my vB before I upgraded. It worked for me and Iwas using vB 2.3.2. It shouldn't be different for vB 2.3.3 There are extremely little file modifications and the installation was extremely easy for me. I only hope Logitech makes a webtemplate for vB3 or I will have to do the templates the hard way..

Logician 11-21-2003 08:19 AM

Quote:

Originally Posted by X-Sector
Will it work for 2.3.3 ?

it will.

Bobbo 11-21-2003 06:31 PM

I'm having a hard time on the mySQL scripts for this hack. It seems that through phpMyAdmin it wont accept the entire script at once. I've had to enter the scripts broken up into the 'Run SQL query' text box.

All was going well until I got to the last Insert. The INSERT INTO `wt2_queries` line seems to be too long of a insert and simply results in an error. Is there a way to break this up into two entries? Or, where would one look to be able to increase the setting allowing for a larger entry?

Thanks Logician!

Bobbo 11-21-2003 07:08 PM

Scratch that... I figured it out. Nice hack!

Frozen Dreams 12-20-2003 12:06 PM

Seems it's my lucky day today.
I been searching for something EXACTLY like this forever!

Installed, already in use and loving it :D

But one little question. Any chance that this will work with different schemes that use different template sets/headers? Instead of only the default header? My headers and their images are quite different for the sets. I dont want to hardcode the header to overwrite the styles in use.
I hope I made sense. And sorry if this has been answered somewhere and I didnt see it.

Logician 12-20-2003 05:52 PM

Quote:

Originally Posted by Frozen Dreams
But one little question. Any chance that this will work with different schemes that use different template sets/headers? Instead of only the default header? My headers and their images are quite different for the sets. I dont want to hardcode the header to overwrite the styles in use.
I hope I made sense. And sorry if this has been answered somewhere and I didnt see it.

If your styles are user selectable and some users selected it, then they will view your webtemplates in the style they chose.

But if you assigned different mandatory styles to different forums, webtemplates will not inherit all of these styles. It will only inherit your forum's default style (ie which is displayed in forum home page for a guest).

Rein Masamuri 12-26-2003 07:59 AM

Wow... just... Wow
This is excelent.
When vB3 comes out this will be, bar none, one of the best hacks for it!

jluerken 01-07-2004 07:16 PM

Hi Logician,

sound like a pretty cool hack. vb3 RC2 is out now and I want to know if you will bring this hack out for vb3 and letter and if yes when? :D

Thanks in advance
jluerken

Logician 01-07-2004 09:38 PM

Sorry there is no ETA for porting of my VB2 hacks because there is no ETA for my migrating to VB3. :) I plan to stick with VB2 for a while until I decide that a VB3 version is stable enough and my plan is to work on VB3 hacks afterwards. I have no idea when this will happen. All I can say is that I'll port all my hacks when it does. :)

XtReMaTriX 01-23-2004 04:57 PM

How do I make this work where members and non-members can see my pages?

I DID NOT add the guest or unregistered id into the banned box...

I just installed this and was testing it out and i wanted to see how unregistered people see the template and it wont let me view it if I am not logged in...

Logician 01-23-2004 05:22 PM

Quote:

Originally Posted by XtReMaTriX
How do I make this work where members and non-members can see my pages?

I DID NOT add the guest or unregistered id into the banned box...

I just installed this and was testing it out and i wanted to see how unregistered people see the template and it wont let me view it if I am not logged in...

so that a webtemplate will be visible to all:
1- clear "Banned IDs" field
2- Do NOT make it private
3- Do NOT make it draft

Then all will see it including guests.

XtReMaTriX 01-23-2004 09:21 PM

Wow.. Logican. I dont know what i did wrong but it works now... I guess I just had one of those fields on yes...

Thanks a bunch it works great.

I would like to ask for help with one thing though. Is could you please give me a tip on how I could add a template into the headder/footer of the webtemplates?

I have a menu and some other things that I have displaying on all the other pages. It was pretty easy to do this with your old template but not so with the new one. If you could just give me a hand it would be greatly parriciated...

Thanks in advance...

Logician 01-24-2004 08:09 AM

Quote:

Originally Posted by XtReMaTriX
I would like to ask for help with one thing though. Is could you please give me a tip on how I could add a template into the headder/footer of the webtemplates?

Included VB Templates
----------------------------------
If you want to include regular vb templates into your webtemplate enter their names here (seperated by space). You can then use them in your webtemplate as $WTT_templatename. If you have more than 1 template sets, make sure included templates exist in all. Note: every template you added here will add 1 query to your webtemplate when loaded.
----------------------------------

XtReMaTriX 01-25-2004 03:51 PM

...I added that to the header template and its not working. Am I adding these things to the wrong place?

Where does the template name go? Do I put it in view.php?

Then I put $WTT_templatename into the header or footer, right?

Sorry, I am just a little confused w/ all this...

Logician 01-25-2004 04:16 PM

Included vb templates do not work on headers. You have to add inside regular templates. So you'll add $WTT_templatename (of course rename "templatename" section in this variable!) inside your webtemplate that you want to inherit.

Or create a webtemplate header template and copy/paste your templates content into this one and then you can use this webtemplate header in your other webtemplates

cindyd 01-31-2004 12:03 AM

Logician: very nice job! I have it installed and it's working great. I have a question for you. I have a forum already for anyone to look & post at (well almost) and I am using your template program for a totally different look and HTML pages, this section will be for paid membership people only.

I need to know how to tie the new pages into the regular forum? Do I just set up a parent forum and list all the links? I know I could do that, but there must be another way.....I just don't know what to call what I want on a search.

Thanks


All times are GMT. The time now is 05:50 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.01380 seconds
  • Memory Usage 1,832KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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