vb.org Archive

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

Kihon Kata 06-13-2006 07:52 PM

Thanks for your nice reply. Very sorry Logician to hear that, but I am personally wishing you best of luck with your job...I know the feeling.

Now, where exactly do I add "$headinclude"? I tried adding it to my header and to the template and it didn't work. Also I am using "no parent template" option.

Here is how I use this:

(Parse method is PHP)

Code:

include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/top.php");
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/newsletter-google.php");

$userid=$bbuserinfo['userid'];
    $usrObj=new users($userid);
    $username=$usrObj->getUsername();
    print("$popupthepm");

$mesg=$_POST[mesg];
                if(!$mesg)
                $mesg=$_GET[mesg];

echo <<<TOP
<div align="center">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">

            <tr>
                <td width="1">&nbsp;</td>
                <td bgcolor="#FFFFFF"><strong><font class=mesg>
                $mesg</strong>
            </tr>

TOP;
echo <<<MAIN

<!----------- BEGIN HTML ----------->


lalalalala MY HTML goes here


<!----------- /HTML ----------->


<table border="0" width="100%" cellspacing="7" cellpadding="5" bordercolor="#C0C0C0">
<tr>
  <td class="thead" align="left">Page
      Visitors: <b>$count</b>, Last Visitor was $WT[lastvisitorname]
      at $WT[lastvisitdate].<br>
      Page Created at <b>$creationdate</b>, Last Modified
      : <b>$lasteditdate</b>.</td>
 </tr>
</table>
    </td>
        </tr>
      </table>
    </td>
        </tr>
      </table>

MAIN;
echo <<<BOTTOM
</table>
</div>
BOTTOM;
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/footer-newsletter.php");

Mayeb you can take a look at it.

Quote:

Originally Posted by Logician
It does IF you include "$headinclude" variable into your webtemplate/webtemplate theme you are using. You probably didnt do this


Logician 06-13-2006 08:05 PM

Quote:

Originally Posted by Kihon Kata
Thanks for your nice reply. Very sorry Logician to hear that, but I am personally wishing you best of luck with your job...I know the feeling.

Now, where exactly do I add "$headinclude"? I tried adding it to my header and to the template and it didn't work. Also I am using "no parent template" option.

Here is how I use this:

(Parse method is PHP)

Code:

include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/top.php");
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/newsletter-google.php");
 
$userid=$bbuserinfo['userid'];
    $usrObj=new users($userid);
    $username=$usrObj->getUsername();
    print("$popupthepm");
 
$mesg=$_POST[mesg];
                if(!$mesg)
                $mesg=$_GET[mesg];
 
echo <<<TOP
<div align="center">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
 
            <tr>
                <td width="1">&nbsp;</td>
                <td bgcolor="#FFFFFF"><strong><font class=mesg>
                $mesg</strong>
            </tr>
 
TOP;
echo <<<MAIN
 
<!----------- BEGIN HTML ----------->
 
 
lalalalala MY HTML goes here
 
 
<!----------- /HTML ----------->
 
 
<table border="0" width="100%" cellspacing="7" cellpadding="5" bordercolor="#C0C0C0">
<tr>
  <td class="thead" align="left">Page
      Visitors: <b>$count</b>, Last Visitor was $WT[lastvisitorname]
      at $WT[lastvisitdate].<br>
      Page Created at <b>$creationdate</b>, Last Modified
      : <b>$lasteditdate</b>.</td>
 </tr>
</table>
    </td>
        </tr>
      </table>
    </td>
        </tr>
      </table>
 
MAIN;
echo <<<BOTTOM
</table>
</div>
BOTTOM;
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/footer-newsletter.php");

Mayeb you can take a look at it.

vb $headinclude should come before </head> tag so you must include it somewhere inside your included file:
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/top.php");

If you can't do it for some reason, alternatively you can remove your vb tags in your code. Eg. don't use

class='thead'

inside your webtemplate.

Kihon Kata 06-14-2006 01:54 AM

Quote:

Originally Posted by Logician
vb $headinclude should come before </head> tag so you must include it somewhere inside your included file:
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/top.php");

If you can't do it for some reason, alternatively you can remove your vb tags in your code. Eg. don't use

class='thead'

inside your webtemplate.

I am not sure what or how to properly code up the include inside my /home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/top.php so I can't do that.

So I went for your alternate way, and I didn't have any "thead" in my tempate other than how it's shows up in my last post.

EDIT: I fooled around with it and now my CSS works LOL

King Kovifor 06-18-2006 04:11 PM

Question, I've uploaded "wt_wt.php" but it can't find the file when I'm in the ACP... Any help would be appreciated!

Logician 06-18-2006 04:28 PM

Quote:

Originally Posted by King Kovifor
Question, I've uploaded "wt_wt.php" but it can't find the file when I'm in the ACP... Any help would be appreciated!

Make sure you uploaded, includes/xml/cpnav_webtemplates.xml and then refreshed the admincp

King Kovifor 06-18-2006 04:30 PM

I've uploaded it, and i've restarted my browser about 4 times... It's still not working.

Another Note: In 3.6.0 Beta 2, you can't export your templates...

And if you do something like delete template (as i've renamed it and uploaded a second copy wt_webtemp.php) it will register wt_wt.php?do=killtemp and those things.

Logician 06-18-2006 04:36 PM

Quote:

Originally Posted by King Kovifor
I've uploaded it, and i've restarted my browser about 4 times... It's still not working.

Another Note: In 3.6.0 Beta 2, you can't export your templates...

And if you do something like delete template (as i've renamed it and uploaded a second copy wt_webtemp.php) it will register wt_wt.php?do=killtemp and those things.

So is this board version 3.6.0? Sorry but I didn't confirm the hack works with that version yet. This is probably why.

King Kovifor 06-18-2006 04:37 PM

So far everything works except the reading of the file as wt_wt.php and the export templates...

OK I've solved my problem with the file by editing the file wt_wt.php. replacing anything wt_wt with wt_webtemp

tommyxv 06-19-2006 04:24 PM

I installed this on a fresh 3.6 beta 2 install (my test forum) and it works without any problems.

:)

King Kovifor 06-19-2006 11:07 PM

Quote:

Originally Posted by tommyxv
I installed this on a fresh 3.6 beta 2 install (my test forum) and it works without any problems.

:)

try exporting you templates....


All times are GMT. The time now is 08:23 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.01767 seconds
  • Memory Usage 1,756KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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