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 07-02-2003 12:01 PM

2.July.2003 - > Version 2.1

Version History:
* Fixes bug that bothers webqueries if "Show Template Name" option enabled in vb admin cp
* Fixes bug in webquery $WQ_mostactivemembers
* Fixes visual look of webtemplate test
* Fixes visual look of admin panel and makes sure it looks ok in dark backgrounded boards too.

2.0 users: Use the attached document to upgrade to 2.1
New Users: Get the hack from the first post of this thread (which is the latest version), you don't need to apply this update.

Intex 07-02-2003 12:45 PM

Logician - thx for all your testing today. That's certainly fixed my problems.

Fantastic job for such a cool hack !!! :).

[high]* Intex cilcks install.[/high]

reismarktq2 07-03-2003 12:53 AM

Logician: I have had a request from one of my administrators for a feature that would allow us to set the style to be used with the templates regardless of which style the user has selected for his profile. This is because the pages we are converting into WebTemplates will not display aesthetically properly in certain existing styles, and it's too much work to convert the pages to display properly with all styles. I hope this isn't too difficult to pull off... can you help?

Logician 07-03-2003 07:37 AM

Quote:

Today at 04:53 AM reismarktq2 said this in Post #43
Logician: I have had a request from one of my administrators for a feature that would allow us to set the style to be used with the templates regardless of which style the user has selected for his profile. This is because the pages we are converting into WebTemplates will not display aesthetically properly in certain existing styles, and it's too much work to convert the pages to display properly with all styles. I hope this isn't too difficult to pull off... can you help?
If you want to force the webtemplate's look, why don't you depend on vb styles? Even if it is a style in your board you want to apply, just apply it via HTML. In other words instead of using:
<normaltext>Hello</normaltext>
use:
<font face="Times New Roman" color="#FF0000" size="4">Hello</font>

So user's style will not matter.

It is not easy to force a vb style in webtemplates because style issue in vbulletin is not handled in the relevant .php file, but in global.php which runs before everything else. It runs before webtemplate's view.php script too, so webtemplates just gets the style id from it. To change this behaviour either webtemplate need to reform the style in view.php (which means additional queries in every webtemplates) or global.php should be hacked so that if requested script is view.php, style behavior will change.

Thus my suggestion seems the easiest solution.

Intex 07-03-2003 01:56 PM

Logician - in version 1 of your hack you had a query that showed the person's last 10 threads they'd created. I tried creating a new query based on the old info, but didn't have much luck. Could you let me know how that is achieved?

It would be also nice if you or any others could share some of the queries for us newbies :D.

Thanks

Gryphon 07-03-2003 04:31 PM

On php 4.0.6 I had to change all instances of array_key_exists to key_exists.

Logician 07-03-2003 05:07 PM

Quote:

Today at 05:56 PM Intex said this in Post #45
Logician - in version 1 of your hack you had a query that showed the person's last 10 threads they'd created. I tried creating a new query based on the old info, but didn't have much luck. Could you let me know how that is achieved?

It would be also nice if you or any others could share some of the queries for us newbies :D.

Thanks


Intex 07-03-2003 06:05 PM

You're a star :). Thanks.

Intex 07-03-2003 08:16 PM

Logician - Without wishing to monopolise your time :) - is there any way to show the friendly template name when display it on who's online rather than the template name?

BTW: this hack is amazing - I've converted shed loads of my pages over today. Can't understand why others aren't upgrading.

Logician 07-03-2003 08:26 PM

Quote:

Today at 12:16 AM Intex said this in Post #49
Logician - Without wishing to monopolise your time :) - is there any way to show the friendly template name when display it on who's online rather than the template name?

it would be better this way but structure is not designed this way as it requires additional queries in who is online.php.

Who is online page is getting "unfriendly" template name from the visitors url without quering the database however if we add friendly template name there, it needs to query webtemplate table for each webtemplate.

So not a performance friendly way.. :glasses:


All times are GMT. The time now is 12:00 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.01302 seconds
  • Memory Usage 1,743KB
  • 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_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