vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   WebTemplates 3.x: VB Integrated Content Management System (https://vborg.vbsupport.ru/showthread.php?t=76422)

kahethu 06-03-2005 05:50 PM

I've been agonizing over this for hours; however I do not seem to be able to access the VB WYSIWYG editor.

I've created a template as admin, then set supermods to be able to edit it.

When I try as supermod, I just see a blank page.

I also see this:
a) That is your set bbcode interface in your usercp
b) The webtemplate is a "TEXT" parsed webtemplate

where can I set a) above?
what else could I be doing wrong?

Bad Bunny 06-05-2005 11:35 PM

This is great. I'm running it on a test, and I may go further, depending on how easy it is to get it to do the things I would like it to. :paranoid:

Right now what I'm looking to be able to do is edit the vb header so that it will display a little bit of different code for different pages. It is done with a this_page conditional (or something like that! lol) with vb pages. My question for you is how would I go about building a conditional to identify a web template page?
Is this even possible?

Right now the only reason (and I do mean only reason) I am using a competing cms is because I can do this very thing. If I can do it with yours, I would be glad to port my site over.

BigIke 06-12-2005 10:13 PM

Logician-

Sorry for bugging you about this, but in the vbadvanced instructions, it says that if you want to view modules on a page such as one created by your hack, we have to search for something like this:
PHP Code:

eval('print_output("' fetch_template('FORUMHOME') . '");'); 

then replace it with something like this:
PHP Code:

eval('$HTML = "' fetch_template('FORUMHOME') . '";');

print_portal_output($home$HTML); 

Then the instructions say
Quote:

As you can see, the main part that you should be concerned with is 'FORUMHOME'. When integrating other vBulletin pages or hacks with vBadvanced CMPS, you will want to replace whatever template name is in the "print_output" part of the code. Once you have done this, save and upload your file, and you're done.
Do you know where I can put that code in the view.php file?

Logician 06-13-2005 07:08 PM

Sorry for the late reply, I was away from town.

Quote:

Originally Posted by kahethu
I've been agonizing over this for hours; however I do not seem to be able to access the VB WYSIWYG editor. I've created a template as admin, then set supermods to be able to edit it. When I try as supermod, I just see a blank page.

Sounds like a template problem. Make sure you installed STEP 1 correctly. (all templates created in ALL style sets)

Quote:

I also see this:
a) That is your set bbcode interface in your usercp
b) The webtemplate is a "TEXT" parsed webtemplate

where can I set a) above?
what else could I be doing wrong?
Not understood? Please rephrase.

Logician 06-13-2005 07:11 PM

Quote:

Originally Posted by Bad Bunny
Right now what I'm looking to be able to do is edit the vb header so that it will display a little bit of different code for different pages. It is done with a this_page conditional (or something like that! lol) with vb pages. My question for you is how would I go about building a conditional to identify a web template page?
Is this even possible?

The webtemplate allows you to use different headers/footer in every webtemplate. As a matter of fact this is a default feature of this mod. So wouldn't be enough for you if you create different "webtemplates headers" and inherit them in any other webtemplate you like?

Alternatively you can use this conditional in your webtemplate:

[[($pg==test)]]
This is a webtemplate named "test"
[[/($pg==test)]]

Logician 06-13-2005 07:15 PM

Quote:

Originally Posted by bringindaruckus
Logician-

Sorry for bugging you about this, but in the vbadvanced instructions, it says that if you want to view modules on a page such as one created by your hack, we have to search for something like this:
PHP Code:

eval('print_output("' fetch_template('FORUMHOME') . '");'); 

then replace it with something like this:
PHP Code:

eval('$HTML = "' fetch_template('FORUMHOME') . '";');

print_portal_output($home$HTML); 

Then the instructions say

Do you know where I can put that code in the view.php file?

The section you mention is the part that says
PHP Code:

eval('print_output("' WTgettemplate ................ 

in view.php. (There are 2 of them)

Yet I highly doubt that adding that code there will make it work for you. The instruction you quoted, looks like clashing with webtemplate's structure as a first impression.

BigIke 06-14-2005 10:57 PM

Oh ok. Thanks for the reply. I'll see if I can get it to work. :)

TopeeGuy 06-19-2005 10:39 PM

Thanks for the great hack.

A question, I implemented the optional addon to show the person reading the webtemplate in the "Who's Online" page. However, it displays the webtemplate name of the page (with a small first letter). Is it possible to make it show the friendly name?

jluerken 07-06-2005 07:16 AM

Will this hack work in vb3.5?

Bad Bunny 07-06-2005 03:38 PM

No...


All times are GMT. The time now is 09:30 AM.

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.01387 seconds
  • Memory Usage 1,754KB
  • 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
  • (5)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