vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Portal Software - WebTemplates 3.7.x: VB Integrated CMS (Content Management System) (https://vborg.vbsupport.ru/showthread.php?t=186644)

Jennifer Marx 10-26-2009 10:26 PM

I apologize if this question has been asked already -- I searched but could not find it.

I want to use a a vBulletin style I've already created and used on parts of my board, but it is not my default style. Is there a way to call this style when creating a WebTemplates theme? If not, how would I recreate the look and feel of that style in a WebTemplates page? I tried copying the header information from that style and putting into a new WebTemlates header, but no changes was affected.

Thank you in advance. :)

Logician 10-27-2009 05:12 AM

Quote:

Originally Posted by Jennifer Marx (Post 1906659)
I apologize if this question has been asked already -- I searched but could not find it.

I want to use a a vBulletin style I've already created and used on parts of my board, but it is not my default style. Is there a way to call this style when creating a WebTemplates theme? If not, how would I recreate the look and feel of that style in a WebTemplates page? I tried copying the header information from that style and putting into a new WebTemlates header, but no changes was affected.

Thank you in advance. :)

I think this will help:
https://vborg.vbsupport.ru/showpost....&postcount=449

Jennifer Marx 10-27-2009 12:21 PM

Quote:

Originally Posted by Logician (Post 1906768)

Thank you, but no, that doesn't address my question. Let me try to explain it better. In my vBulletin I have several styles -- I have my Default Style and I have several other child styles, including one I call Club. The Club style uses a different background color and has special information in the header.

Here is what my Default Style looks like: http://www.passporterboards.com/forums

Here is what my Club style looks like: http://www.passporterboards.com/foru...sporters-club/

I want to use this Club style in a WebTemplate. Is there a way to apply this style?

Thank in advance! :)

Logician 10-27-2009 02:16 PM

Quote:

Originally Posted by Jennifer Marx (Post 1906845)
Thank you, but no, that doesn't address my question. Let me try to explain it better. In my vBulletin I have several styles -- I have my Default Style and I have several other child styles, including one I call Club. The Club style uses a different background color and has special information in the header.

Here is what my Default Style looks like: http://www.passporterboards.com/forums

Here is what my Club style looks like: http://www.passporterboards.com/foru...sporters-club/

I want to use this Club style in a WebTemplate. Is there a way to apply this style?

Thank in advance! :)

ok please see if this will help:
https://vborg.vbsupport.ru/showthrea...eid#post651570

Jennifer Marx 10-28-2009 02:33 PM

Quote:

Originally Posted by Logician (Post 1906895)

I tried this -- and put $styleid = 8; in the phpinclude field, but it seems to do nothing. It appears the original poster had this issue as well. But thank you for trying to help me -- I do appreciate it! :)

Logician 10-29-2009 10:12 AM

Quote:

Originally Posted by Jennifer Marx (Post 1907401)
I tried this -- and put $styleid = 8; in the phpinclude field, but it seems to do nothing. It appears the original poster had this issue as well. But thank you for trying to help me -- I do appreciate it! :)

ok try putting this into phpinclude of the webtemplate:

PHP Code:

    $styleid 8;
    
$vbulletin->userinfo['styleid'] = $styleid;
    
$userselect true;

$style $db->query_first_slave("
        SELECT *
        FROM " 
TABLE_PREFIX "style
        WHERE styleid = '
$styleid'
            
        
        LIMIT 1
    "
);

eval(
'$header = "' fetch_template('header') . '";');
eval(
'$footer = "' fetch_template('footer') . '";');
eval(
'$headinclude = "' fetch_template('headinclude') . '";'); 


paul41598 10-29-2009 07:40 PM

Logician: Is there a way to call a webtemplate to put on the forumhome for example? For example in VB if I wanted to create a new template called test with some text, then make a new plugin (forumhome_start) with eval('$test .= "' . fetch_template('test') . '";');

Then put $test variable in my forumhome template, I could call the contents of that template (test)

Can I somehow do this with webtemplates? Reason I ask is I want to be able to call a webtemplate on my forumhome in a module type setting.... in a (sidebar column) for example

Logician 10-30-2009 09:45 AM

Quote:

Originally Posted by paul41598 (Post 1907988)
Logician: Is there a way to call a webtemplate to put on the forumhome for example? For example in VB if I wanted to create a new template called test with some text, then make a new plugin (forumhome_start) with eval('$test .= "' . fetch_template('test') . '";');

Then put $test variable in my forumhome template, I could call the contents of that template (test)

Can I somehow do this with webtemplates? Reason I ask is I want to be able to call a webtemplate on my forumhome in a module type setting.... in a (sidebar column) for example

You can do it with iframe.

paul41598 10-30-2009 11:34 AM

Could you provide some guidance on that? Maybe not the iframe part, but the plugin part? Would you use the typical eval command for this type of process? I"m guessing no because your templates arnt stored in the same place as the default VB ones.


update
---------------------

ahhh, unless you meant something like this: ??
PHP Code:

<iframe src ="http://domain.com/view.php?pg=test" width="100%" height="300">
  <
p>Your browser does not support iframes.</p>
</
iframe

1.) Oh also, how do you remove the current active users part that shows in each template. Do I have to edit the template and remove that bit, or an on/off switch? Thx!

2.) What if I don't want a header/footer in my template within my iframe? I've tried switching the header to default_webtemplate_header with no luck. So I built my own header, but it doesn't allow me to keep the template body empty..so that doesn't work. Any other suggestions?

Logician 10-30-2009 03:09 PM

Quote:

Originally Posted by paul41598 (Post 1908272)
Could you provide some guidance on that? Maybe not the iframe part, but the plugin part? Would you use the typical eval command for this type of process? I"m guessing no because your templates arnt stored in the same place as the default VB ones.


update
---------------------

ahhh, unless you meant something like this: ??
PHP Code:

<iframe src ="http://domain.com/view.php?pg=test" width="100%" height="300">
  <
p>Your browser does not support iframes.</p>
</
iframe

1.) Oh also, how do you remove the current active users part that shows in each template. Do I have to edit the template and remove that bit, or an on/off switch? Thx!

2.) What if I don't want a header/footer in my template within my iframe? I've tried switching the header to default_webtemplate_header with no luck. So I built my own header, but it doesn't allow me to keep the template body empty..so that doesn't work. Any other suggestions?

yes that is what I meant by iframe.

current active users part belongs to the webtemplate theme you are using. You can edit the theme and remove relevant html code from there. This also applies to removing header/footer. Just edit webtemplate theme you are using in that webtemplate.


All times are GMT. The time now is 08:16 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.01559 seconds
  • Memory Usage 1,767KB
  • 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_php_printable
  • (7)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