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)

Logician 10-16-2005 05:45 PM

Quote:

Originally Posted by Scribbller
Logician a question. Is there a way to force the page I make to use a certain style?

https://vborg.vbsupport.ru/showthrea...yle#post655544

fn9mm 10-23-2005 12:43 PM

Quote:

Originally Posted by Logician
2-3 weeks I'd say (with no promises)

Can hardly wait,.....

Seems like a great Mod

docvader 11-11-2005 11:36 PM

Quote:

Originally Posted by fn9mm
Can hardly wait,.....

Seems like a great Mod

Logician, brilliant hack, and it was easy to install, but I'm getting this error when going through admincp on either query or template php file:
Quote:

Warning: main(..\wt_options.php): failed to open stream: No such file or directory in /admincp/webtemplate.php on line 29
I'm sure that this is something simple. I get all the test pages without any problem, just can't access these admincp files.

I can see that this was addressed before, but I thought the hack was updated.

Any suggestions? Thanks!
rich

docvader 11-12-2005 12:13 AM

Quote:

Originally Posted by docvader
Logician, brilliant hack, and it was easy to install, but I'm getting this error when going through admincp on either query or template php file:


I'm sure that this is something simple. I get all the test pages without any problem, just can't access these admincp files.

I can see that this was addressed before, but I thought the hack was updated.

Any suggestions? Thanks!
rich

Fixed it

Logician, you've got some backslash issues in the download file, around ..\wt_options.php.

Got rid of one of the periods, and turned the slash the other way.

Works very nicely. Brilliant hack. Thanks for working on this.
rich

Club3G 11-12-2005 03:45 AM

This is absolutely my favorite hack, thank you Logician - I use it all over the place on several sites.

One question,

In Who's online, rather than "Reading Webtemplate: templatename", is it possible to return the user friendly name, rather than the template page name?

Logician 11-12-2005 08:02 AM

Quote:

Originally Posted by Club3G
This is absolutely my favorite hack, thank you Logician - I use it all over the place on several sites.

One question,

In Who's online, rather than "Reading Webtemplate: templatename", is it possible to return the user friendly name, rather than the template page name?

Please search in the the thread. I believe this is asked before and I provided the solution in this thread. :)

outlaw621 11-12-2005 04:36 PM

Logican. Do you have any eta for the 3.5.1 port of this wonderful hack? My users as well as myself miss the great functionality this hack offers.

Club3G 11-13-2005 02:49 AM

Quote:

Originally Posted by Logician
Please search in the the thread. I believe this is asked before and I provided the solution in this thread. :)

Searching "location" gets me this, which isn't really my question:

https://vborg.vbsupport.ru/showthrea...ion#post630503

Searching 'online' I get:

This guy is working with iframes, not what I'm doing:

https://vborg.vbsupport.ru/showpost....&postcount=200

But I don't really see a clear cut answer. I could just be missing it, but if you do see it, or someone else sees it, please point me to it because I don't. :D

Logician 11-13-2005 07:53 AM

Quote:

Originally Posted by Club3G
Searching "location" gets me this, which isn't really my question:

https://vborg.vbsupport.ru/showthrea...ion#post630503

Searching 'online' I get:

This guy is working with iframes, not what I'm doing:

https://vborg.vbsupport.ru/showpost....&postcount=200

But I don't really see a clear cut answer. I could just be missing it, but if you do see it, or someone else sees it, please point me to it because I don't. :D

I guess I didn't post it here then because I couldn't locate it myself too. Anyway, please try this:

(AFTER YOU APPLIED WHO IS ONLINE HACK STEP IN INSTALLATION INSTRUCTIONS!)

edit includes/functions_online.php, find:
PHP Code:

    // Logician Hack : Webtemplates
    
if (stristr(PHP_OS'win')) {require_once('..\wt_options.php');require_once('..\wt_functions.php');}
    else {require_once(
'../wt_options.php');require_once('../wt_functions.php');}
    
// Logician Hack : Webtemplates 

replace it as:
PHP Code:

    // Logician Hack : Webtemplates
    
global $WT_Option_NameOFviewphp,$DB_site;
    if (
stristr(PHP_OS'win')) {require_once('..\wt_options.php');require_once('..\wt_functions.php');}
    else {require_once(
'./wt_options.php');require_once('./wt_functions.php');}
    
// Logician Hack : Webtemplates 

find:
PHP Code:

        // Logician Hack : WebTemplates
        
if (preg_match("/(pg=)(.*)(&)/siU"$userinfo['location'], $l_match1) OR preg_match("/(pg=)(.*)$/siU"$userinfo['location'], $l_match2))
        { 
    
        if (
$l_match1[2]) {$lmatch=$l_match1[2];} else {$lmatch=$l_match2[2];}
        
            if (
substr($lmatch,0,5)=='priv_' AND $bbuserinfo['usergroupid'] != 6
            { 
            
$userinfo['where'] = "<a href=\"$vboptions[forumhome].php?$session[sessionurl]\">$vboptions[bbtitle]</a>";
            }
            else
            {
                
$userinfo['action'] = "Reading <b>WebTemplate:</b>";
                
$userinfo['where']= ' <a href="'.$WT_Option_NameOFviewphp.'?'.$session[sessionurl].'pg='.$lmatch.'" target="_blank">'.$lmatch.'</a>';
            }

        }
        
// Logician Hack : WebTemplates 

replace it as:
PHP Code:


        
// Logician Hack : WebTemplates
        
if (preg_match("/(pg=)(.*)(&)/siU"$userinfo['location'], $l_match1) OR preg_match("/(pg=)(.*)$/siU"$userinfo['location'], $l_match2))
        { 
    
        if (
$l_match1[2]) {$lmatch=$l_match1[2];} else {$lmatch=$l_match2[2];}
        
            if (
substr($lmatch,0,5)=='priv_' AND $bbuserinfo['usergroupid'] != 6
            { 
            
$userinfo['where'] = "<a href=\"$vboptions[forumhome].php?$session[sessionurl]\">$vboptions[bbtitle]</a>";
            }
            else
            {
                
$userinfo['action'] = "Reading <b>WebTemplate:</b>";
                
$wtinfo $DB_site->query_first("
                                    SELECT userfriendlyname FROM  wt2_templates 
                                    WHERE title='"
.addslashes($lmatch)."' 
                                    "
);
                if (
$wtinfo['userfriendlyname']) {$wtname $wtinfo['userfriendlyname'];} else {$wtname $lmatch;}
                
$userinfo['where']= ' <a href="'.$WT_Option_NameOFviewphp.'?'.$session[sessionurl].'pg='.$lmatch.'" target="_blank">'.$wtname.'</a>';
            }

        }
        
// Logician Hack : WebTemplates 


Logician 11-13-2005 08:22 AM

Quote:

Originally Posted by outlaw621
Logican. Do you have any eta for the 3.5.1 port of this wonderful hack? My users as well as myself miss the great functionality this hack offers.

Sorry for the delay guys. I'm definetely working on it and I have progress.


All times are GMT. The time now is 10: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.01690 seconds
  • Memory Usage 1,785KB
  • 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
  • (4)bbcode_php_printable
  • (9)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