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)

Logician 09-03-2008 03:36 PM

Quote:

Originally Posted by azn_romeo_4u (Post 1613675)
Looks very powerful. Can it do something like this...

www.1perfectworld.com

Look at the index page. It's a completely different design than the forum? And it has newest members, latest threads etc. Also could you do a page like this for example

http://1perfectworld.com/guides/races/warrior.php

And just redesign the template to make it look like just a normal page without all the vb header footer etc but just a normal looking page?

This is not for site main page as described in FAQ but as for other page, it seems doable. However please note that main goal of this hack is to create vb integrated HTML pages with your forum style so if you don't want to use vb header/footer, you can use simple HTML/php structure too.

mmoore5553 09-03-2008 06:10 PM

logician

i have ot reset it up ..i forgot what error but i think it was on my side ....i would like to get this fixed but if not i totally understand not your issue lol ...also i wish you was okay with custom wokr ..trying to figure out how to add a couple modules lol

PossumX 09-04-2008 01:44 AM

Curious...

Would it be possible to utilize the 2 column theme, or something similar, in order to allow a skyscraper AdSense block on the left side?

If so how might one go about that?

I am sure I could figure it out, however, I just finished re-doing all my non vB pages into this mod, along with ALOT of tweaking throughout the process, and my eyes are crossed.

dodjer42 09-04-2008 02:29 AM

Logician, this is a great hack. I have a question hope you have a moment to tell me if this is possible with webtemplates.

I generate graphical forum signature using imagecreatefrompng(). On my forum it currently runs as an external page:

http://www.touch-buddy.com/tbsig/

This is a two stage process. 1) enter details and send submit, 2) show results.

I was hoping to integrate this with vbulletin styles etc using webtemplates. I createad a PHP page without problem and was able to generate an image, but its not wrapped in $header and $footer or the forum style.

I have read through the documentation and can't really figure out if I can do a html template with embedded php. When I tried this I simply got the HTML page with the php as text in the body.

Thanks for the hack!

siddal 09-04-2008 03:38 AM

Quote:

Would it be possible to utilize the 2 column theme, or something similar, in order to allow a skyscraper AdSense block on the left side?

If so how might one go about that?
The package includes a default "two-column theme" in "Themes" at the bottom of the templates list.
Just copy all the code from there into a new template ("add a new theme") and configure as you like.
Then when you build your new template -"add new web template" you?ll click on your two column variant in the drop down box in "Using a Theme?"...

Logician 09-04-2008 06:26 AM

Quote:

Originally Posted by PossumX (Post 1614063)
Curious...

Would it be possible to utilize the 2 column theme, or something similar, in order to allow a skyscraper AdSense block on the left side?

If so how might one go about that?

I am sure I could figure it out, however, I just finished re-doing all my non vB pages into this mod, along with ALOT of tweaking throughout the process, and my eyes are crossed.

Edit webtemplate theme named "Two Column Theme", after $WT_Login part enter your skyscraper code, then use this theme in your webtemplates

Logician 09-04-2008 06:49 AM

For those who want to run external PHP applications within vb style, I created a php test webtemplate which you can use. Here is instructions to use it:

1- First import this attached XML file for sample webtemplate in your admin cp/Logician's Webtemplates/export-import/Import Webtemplates section.
2- Then go to your webtemplate list find the new webtemplate named "phptest2" and click edit.
3- Find section that says
PHP Code:

// ============================
// Put Your PHP CODE right after this line
 
// ============================ 

4- Put your external PHP application's code AFTER the line like this
PHP Code:

// ============================
// Put Your PHP CODE right after this line
YOUR CODE GOES HERE WITHOUT // AT THE BEGINING
// ============================ 

Here is a sample:
PHP Code:

// ============================
// Put Your PHP CODE right after this line
 
echo "Time now is $today<br><br>";
echo 
"You registered this board at ".date('M-d-Y h:i:s',$vbulletin->userinfo[joindate]);
 
// ============================ 

Important Note:

Webtemplates main goal is NOT running PHP code or integrating PHP code with vbulletin, this is just an additional bonus which can sometimes work for certain applications. Integrating any PHP application with vbulletin is usually is not as easy as that. When you have 2 PHP applications (vbulletin and your other application) running at the same time, you are likely to have unexpected problems. For instance they can have same function names and they can clash, have same variable names and overwrite eachother's variables etc. Trying to integrate 2 PHP applications usually requires a lot of work on code level of both applications. So this method is likely to NOT work for many applications. However if your application is not very advanced and you are lucky that it does not have any clashing issues with vbulletin, you might run it like this. If you are able to run it with this method, you should be very happy but if you can't please don't blame the hack which as nothing to do with this, nor intended to do handle such a project. So I'm sharing this tip "as is" basis, hoping it can help "some" people around but stressing again that Webtemplate Hacks intention is not provide PHP integration with external scripts. ;)

Logician 09-04-2008 06:54 AM

@dodjer42 and mmoore5553 : Please check the post above and see if it will help you with your requests.

PossumX 09-04-2008 11:10 PM

Quote:

Originally Posted by Logician (Post 1614175)
Edit webtemplate theme named "Two Column Theme", after $WT_Login part enter your skyscraper code, then use this theme in your webtemplates

Simply AWESOME support and replies. The more I "play" with this, the more I can't understand how I managed without it. Makes for seamless non-vB page integration.

mmoore5553 09-05-2008 01:16 AM

okay i tried to do something different. .i put in flash file ...

it didnt work

nothing showed up
here is the html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

<!-- Do not remove the line below!!! It is required for the XML Flash Slideshow v3. -->

<script type="text/javascript" src="v3flashslideshow/slideshow.js"></script>

</head>

<body>

<!-- Begin XML Flash Slideshow v3 -->

<script type="text/javascript">

// <![CDATA[

XMLFlashSlideshow_v3({swf:'v3flashslideshow/slideshow.swf',w:'400',h:'400',redirect:'',usePrel oader:'true',xml:'v3flashslide show/slideshow_data1.xml',preventCache:'true',disableMu ltipleXML:'false',initXML:'%3C ?xml%20version=%221.0%22%20encoding=%22utf-8%22?%3E%3Cslideshow%20version=%223%22%3E%3Cstyles %3E%3CPreloader%20label=%22Loa ding%20%7BN%7D%2525%22%20iconColor=%22#666666%22%2 0iconAlpha=%2270%22%20iconWidt h=%2250%22%3E%3C/Preloader%3E%3CPreloaderLabel%20font=%22Verdana%22 %20size=%2210%22%20color=%22#6 66666%22%20bold=%22false%22%3E%3C/PreloaderLabel%3E%3CBackground%20backgroundColor=% 22#E4E4E4%22%20backgroundAlpha =%22100%22%20bevelColor=%22#FFFFFF%22%20bevelStren gth=%2270%22%20borderWidth=%22 0%22%20borderColor=%22#FF6600%22%3E%3C/Background%3E%3CLoaderAnimation%20type=%22circle%2 2%20color=%22#FFFFFF%22%20alph aBackground=%2220%22%20alphaInner=%2240%22%20frame Width=%222%22%20width=%2250%22 %20height=%2250%22%3E%3C/LoaderAnimation%3E%3CDataLoader%20useAnimation=%22 true%22%20useLabel=%22true%22% 20labelPlacement=%22bottom%22%20fadeOutDuration=%2 2400%22%20textFormat=%22loader _text%22%3E%3C/DataLoader%3E%3C/styles%3E%3Clocalization%3E%3Ctext%20orig=%22Loadi ng%20Data...%22%20local=%22Loa ding%20Data...%22%3E%3C/text%3E%3C/localization%3E%3Cfonts%3E%3Cfont%20id=%22loader_t ext%22%20name=%22Pixelade%22%2 0embed=%22true%22%20size=%2213%22%20color=%22#6666 66%22%20bold=%22false%22%20sel ectable=%22false%22%20align=%22left%22%3E%3C/font%3E%3C/fonts%3E%3C/slideshow%3E'});

// ]]>

</script>

<!-- End XML Flash Slideshow v3 -->

</body>

</html>

anyone know what i did wrong ?

i can give access to anyone seriously wanting to help ... i just dont get it ..

Logician 09-05-2008 05:50 AM

Quote:

Originally Posted by mmoore5553 (Post 1614789)
okay i tried to do something different. .i put in flash file ...

it didnt work

nothing showed up
here is the html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

<!-- Do not remove the line below!!! It is required for the XML Flash Slideshow v3. -->

<script type="text/javascript" src="v3flashslideshow/slideshow.js"></script>

</head>



<body>

<!-- Begin XML Flash Slideshow v3 -->

<script type="text/javascript">

// <![CDATA[

XMLFlashSlideshow_v3({swf:'v3flashslideshow/slideshow.swf',w:'400',h:'400',redirect:'',usePrel oader:'true',xml:'v3flashslideshow/slideshow_data1.xml',preventCache:'true',disableMu ltipleXML:'false',initXML:'%3C?xml%20version=%221. 0%22%20encoding=%22utf-8%22?%3E%3Cslideshow%20version=%223%22%3E%3Cstyles %3E%3CPreloader%20label=%22Loading%20%7BN%7D%2525% 22%20iconColor=%22#666666%22%20iconAlpha=%2270%22% 20iconWidth=%2250%22%3E%3C/Preloader%3E%3CPreloaderLabel%20font=%22Verdana%22 %20size=%2210%22%20color=%22#666666%22%20bold=%22f alse%22%3E%3C/PreloaderLabel%3E%3CBackground%20backgroundColor=% 22#E4E4E4%22%20backgroundAlpha=%22100%22%20bevelCo lor=%22#FFFFFF%22%20bevelStrength=%2270%22%20borde rWidth=%220%22%20borderColor=%22#FF6600%22%3E%3C/Background%3E%3CLoaderAnimation%20type=%22circle%2 2%20color=%22#FFFFFF%22%20alphaBackground=%2220%22 %20alphaInner=%2240%22%20frameWidth=%222%22%20widt h=%2250%22%20height=%2250%22%3E%3C/LoaderAnimation%3E%3CDataLoader%20useAnimation=%22 true%22%20useLabel=%22true%22%20labelPlacement=%22 bottom%22%20fadeOutDuration=%22400%22%20textFormat =%22loader_text%22%3E%3C/DataLoader%3E%3C/styles%3E%3Clocalization%3E%3Ctext%20orig=%22Loadi ng%20Data...%22%20local=%22Loading%20Data...%22%3E %3C/text%3E%3C/localization%3E%3Cfonts%3E%3Cfont%20id=%22loader_t ext%22%20name=%22Pixelade%22%20embed=%22true%22%20 size=%2213%22%20color=%22#666666%22%20bold=%22fals e%22%20selectable=%22false%22%20align=%22left%22%3 E%3C/font%3E%3C/fonts%3E%3C/slideshow%3E'});

// ]]>

</script>

<!-- End XML Flash Slideshow v3 -->

</body>

</html>

anyone know what i did wrong ?


i can give access to anyone seriously wanting to help ... i just dont get it ..

Please make sure:
1- Your webtemplate's parsing is HTML
2- Your webtemplate is NOT using a theme. (Set theme as "No Parent Webtemplate")
3- You have uploaded your flash file to the correct directory. Upon your config, it should be in:
yourforumdir/v3flashslideshow/slideshow.swf

mmoore5553 09-05-2008 10:30 AM

hmmmmmm still no go ...i have all correct and even changed the paths ..also if i set to no parent template there would be just a white screen with no skin at all ..but changed to default and there is a page just no flash ... no sure yet ....

Logician 09-05-2008 11:41 AM

Can you see your flash correctly when you put this code in a HTML file and upload to your server? Please make sure you can do that first.

BullTaco 09-05-2008 12:18 PM

Thank You Installed perfectly ...very very nice detailed instructions for a newbie!

Thanks again...now I just have some reading to do to take advantage of this great mod!!

mmoore5553 09-05-2008 12:48 PM

yes i can go to webpage and see it fine ...so kinda threw me for a loop

Logician 09-05-2008 12:52 PM

Quote:

Originally Posted by mmoore5553 (Post 1615138)
yes i can go to webpage and see it fine ...so kinda threw me for a loop

When you say webpage is it the original page you took the source code or is it a HTML file in your server? Please make sure you put it in a html file IN YOUR SERVER and see it fine there. If you can see it fine there, let me know the url of this html file and webtemplate and I'll check.

Chadi 09-05-2008 05:51 PM

I'm having a hard time creating a php page.

My have a bible script installed called Bible Supersearch. The main php page (index) is this:

Code:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<?php

require_once("bible/bible/bible_config.php");
require_once("bible/bible/bible_system.php");

$interface=$_GET['interface'];
// set the interface to use
if($interface==""){$interface=$default_interface;}
if($interface=="standard"){$interface=$standard_interface;}

// manually set interface
// $interface="standard";

require_once("bible/bible/interfaces/$interface.php");

?>

I get a blank page when I use this in the phptest template. The path tot he "require_once" commands are correct too. The phptest template is parsed as php by default of course.

Fireproof 09-05-2008 05:55 PM

Logician (or others),

Do you have a good template to use for a NEWSLETTER that I could start with and customize for my purposes?

I'm not good at creating brand-new templates from scratch, but am good with tweaking something already created.

Thanks in advance.

PossumX 09-05-2008 07:25 PM

One, hopefully, final question.

In all the instructions, it states that TEXT parsed pages can be edited either with BBCode or you can open the WYSIWYG editor. I have not been able to figure out how to get the WYSIWYG editor to function, on TEXT parsed pages, and I do have it enabled in vB Admin Options.

Thoughts?

Logician 09-05-2008 08:10 PM

Quote:

Originally Posted by PossumX (Post 1615349)
One, hopefully, final question.

In all the instructions, it states that TEXT parsed pages can be edited either with BBCode or you can open the WYSIWYG editor. I have not been able to figure out how to get the WYSIWYG editor to function, on TEXT parsed pages, and I do have it enabled in vB Admin Options.

Thoughts?

You should enable WYSIWYG editor for members in your admin cp/vb options and also set your editor so in your usercp/edit options page.

In other words you should be able to use it for regular vb posts so as to use it for WTs.

Logician 09-05-2008 08:11 PM

Quote:

Originally Posted by chadi (Post 1615307)
I'm having a hard time creating a php page.

My have a bible script installed called Bible Supersearch. The main php page (index) is this:

Code:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
<?php
 
require_once("bible/bible/bible_config.php");
require_once("bible/bible/bible_system.php");
 
$interface=$_GET['interface'];
// set the interface to use
if($interface==""){$interface=$default_interface;}
if($interface=="standard"){$interface=$standard_interface;}
 
// manually set interface
// $interface="standard";
 
require_once("bible/bible/interfaces/$interface.php");
 
?>

I get a blank page when I use this in the phptest template. The path tot he "require_once" commands are correct too. The phptest template is parsed as php by default of course.

Have you tried this:
https://vborg.vbsupport.ru/showpost....&postcount=127

PossumX 09-06-2008 12:14 AM

Quote:

Originally Posted by Logician (Post 1615388)
You should enable WYSIWYG editor for members in your admin cp/vb options and also set your editor so in your usercp/edit options page.

In other words you should be able to use it for regular vb posts so as to use it for WTs.

That's what I figured, and that's how my board has always been setup, and verified during my quandary surrounding this. Not a big deal, at all, just more of a curiosity as to why it won't work. I use HTML in most pages anyway, but a few are TEXT parsed.

Logician 09-06-2008 08:42 AM

Quote:

Originally Posted by PossumX (Post 1615531)
That's what I figured, and that's how my board has always been setup, and verified during my quandary surrounding this. Not a big deal, at all, just more of a curiosity as to why it won't work. I use HTML in most pages anyway, but a few are TEXT parsed.

Just to clarify: Your vb options page allows users to use WYSIWYG editor and you also selected to use this in your personal usercp/options page (option named "Message Editor Interface") but you can't see WYSIWYG editor when you edit a TEXT webtemplate by clicking edit this webtemplate link in the webtemplate's footer?

agitated 09-06-2008 10:05 AM

Quote:

Originally Posted by chadi (Post 1615307)
I'm having a hard time creating a php page........

I get a blank page when I use this in the phptest template. The path tot he "require_once" commands are correct too. The phptest template is parsed as php by default of course.

vBSEO conflict perhaps. Be careful with custom rewrites.

PossumX 09-06-2008 12:41 PM

Quote:

Originally Posted by Logician (Post 1615716)
Just to clarify: Your vb options page allows users to use WYSIWYG editor and you also selected to use this in your personal usercp/options page (option named "Message Editor Interface") but you can't see WYSIWYG editor when you edit a TEXT webtemplate by clicking edit this webtemplate link in the webtemplate's footer?

Indeed, you have made the correct interpretation. All is set in both admincp and usercp as it should be.

Chadi 09-06-2008 01:01 PM

Quote:

Originally Posted by Logician (Post 1615390)

Just tried that, now the page isn't blank, but the part where my bible search should show up is blank.

I'm using this inserted code

Code:


require_once("bible/bible/bible_config.php");
require_once("bible/bible/bible_system.php");

$interface=$_GET['interface'];
// set the interface to use
if($interface==""){$interface=$default_interface;}
if($interface=="standard"){$interface=$standard_interface;}

// manually set interface
// $interface="standard";

require_once("bible/bible/interfaces/$interface.php");


Logician 09-06-2008 01:16 PM

Quote:

Originally Posted by PossumX (Post 1615803)
Indeed, you have made the correct interpretation. All is set in both admincp and usercp as it should be.

If it is a problem to you, give me admin cp access to your board and I can check. I can't confirm this behaviour in my installations, they work fine for me.

PossumX 09-06-2008 02:34 PM

It's not really problem, just more of a curiosity. I can deal with it, just thought it was odd. Your prompt responses are GREATLY appreciated. Keep up the great work !!

mmoore5553 09-07-2008 12:12 AM

okay still dont work ..i have it uplodaed to forum and displays fine ...

http://cg-hq.com/forum/view.php?pg=tutorials

is the page ...


here is the real page

http://www.cg-hq.com/forum/slideshow22/test.html

i dont know what to do .. i have changed paths several times ..not sure what i am doing wrong

s810car 09-07-2008 06:54 AM

Quote:

Originally Posted by chadi (Post 1615307)
I'm having a hard time creating a php page.

My have a bible script installed called Bible Supersearch. The main php page (index) is this:

Code:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<?php

require_once("bible/bible/bible_config.php");
require_once("bible/bible/bible_system.php");

$interface=$_GET['interface'];
// set the interface to use
if($interface==""){$interface=$default_interface;}
if($interface=="standard"){$interface=$standard_interface;}

// manually set interface
// $interface="standard";

require_once("bible/bible/interfaces/$interface.php");

?>

I get a blank page when I use this in the phptest template. The path tot he "require_once" commands are correct too. The phptest template is parsed as php by default of course.

You have to put the <?PHP line at the VERY top with no space before, and the ?> has to have NO whitespace after

Logician 09-07-2008 07:55 AM

Quote:

Originally Posted by mmoore5553 (Post 1616252)
okay still dont work ..i have it uplodaed to forum and displays fine ...

http://cg-hq.com/forum/view.php?pg=tutorials

is the page ...


here is the real page

http://www.cg-hq.com/forum/slideshow22/test.html

i dont know what to do .. i have changed paths several times ..not sure what i am doing wrong

Your path seems wrong, give me admin cp access and let me check.

mmoore5553 09-07-2008 09:03 AM

i have PM you all access .....i use a program to do my flash xml slideshow ..i can send to you if you need it

Chadi 09-07-2008 01:35 PM

Quote:

Originally Posted by s810car (Post 1616405)
You have to put the <?PHP line at the VERY top with no space before, and the ?> has to have NO whitespace after

Wrong, that's how I end up getting a completely blank page. The mod already adds those for you anyway if yo choose php style template.

Logician 09-07-2008 06:20 PM

Quote:

Originally Posted by mmoore5553 (Post 1616462)
i have PM you all access .....i use a program to do my flash xml slideshow ..i can send to you if you need it

Here you go:
http://cg-hq.com/forum/view.php?pg=tutorials

I've corrected all paths in your flash code also moved flash's images into your forum directory to make it work.

mmoore5553 09-07-2008 10:37 PM

thank you so much ..now i have to go back and figure out what you did ...i want to paypal you some money for your help ..can you PM Me details

EmAnh 09-08-2008 03:54 AM

Dear Logican,

The installation went very smoothly (easily get this hack installed)
My first impression is a great hack (I will try to explore its functions further and ... )
For now, I would like to say "thanks you" for all the time & effort you have put in this hack to serve its users .

Best regards,
EA

masons_mum 09-08-2008 05:38 AM

this is a really great mod...i only wish i had discovered it before using the article to create vb pages...and made around 15 LOL! Installation went fine, thank you :)

mmoore5553 09-08-2008 03:54 PM

just another question ..i wanted to add if anyone from forum does a thread it shows up on recent thread ..i seen you have this options but i am having issues getting it loaded correctly . i have it there but nothing shows up and i started a new thread .... do i need to change forum ID ?

akulion 09-08-2008 04:09 PM

this is one of my favorite mods now :)

thanks for this wonderful work!

Logician 09-08-2008 04:24 PM

Quote:

Originally Posted by mmoore5553 (Post 1617526)
just another question ..i wanted to add if anyone from forum does a thread it shows up on recent thread ..i seen you have this options but i am having issues getting it loaded correctly . i have it there but nothing shows up and i started a new thread .... do i need to change forum ID ?

Yes you should change forumid in the webquery


All times are GMT. The time now is 08:14 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.01796 seconds
  • Memory Usage 1,879KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (19)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
  • (40)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