vb.org Archive

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

Ramsesx 10-02-2010 01:48 PM

Fantastic work as always Logician, thank you.

Kevlar21 10-03-2010 05:18 AM

Quote:

Originally Posted by Logician (Post 2105894)
Doesn't it work when you make it like:
HTML Code:

<font color=red>Page Visitors:</font>

Thanks again!!

works great!

Gn_Snake 10-06-2010 11:01 AM

Hello everyone,
I'd like to integrate this script in php WebTemplate but unfortunately I can not do it?

Can anyone help me?

Code:

<?php
    if(isset($_REQUEST['idf']))$idf=$_REQUEST['idf'];
    else die("http://www.xxx.com/forum/?idf=ID");
    $conn=  mysql_connect('host','user','pass');
    if(!$conn)die(mysql_error($conn));
    $ris=mysql_select_db("dbnam",$conn);
    if(!$ris)die(mysql_error());
?>
<html>
  <head>
    <title>Lista Automatica vBulletin</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
  <center>
    <h1>Lista Automatica</h1>
        <a href="#0">0</a> <a href="#1">1</a> <a href="#2">2</a> <a href="#3">3</a> <a href="#4">4</a>
        <a href="#5">5</a> <a href="#6">6</a> <a href="#7">7</a> <a href="#8">8</a> <a href="#9">9</a>
        <a href="#A">A</a> <a href="#B">B</a> <a href="#C">C</a> <a href="#D">D</a> <a href="#E">E</a>
        <a href="#F">F</a> <a href="#G">G</a> <a href="#H">H</a> <a href="#I">I</a> <a href="#J">J</a>
        <a href="#K">K</a> <a href="#L">L</a> <a href="#M">M</a> <a href="#N">N</a> <a href="#O">O</a>
        <a href="#P">P</a> <a href="#Q">Q</a> <a href="#R">R</a> <a href="#S">S</a> <a href="#T">T</a>
        <a href="#U">U</a> <a href="#V">V</a> <a href="#W">W</a> <a href="#X">X</a> <a href="#Y">Y</a>
        <a href="#Z">Z</a> <a href="#TOP"></a>
    </center>
    <?php
        $msg="select * from vb_thread where forumid=$idf and sticky=0 ORDER BY title ASC";
        $query=  mysql_query($msg);
        if (!$query)die(mysql_error());
        $l="";
        while($riga= mysql_fetch_assoc($query)){
            if(strcasecmp($l,substr($riga['title'],0,1))!=0){
                $l=substr($riga['title'],0,1);
        ?>
                <br>
    <a name="<?php echo strtoupper ($l) ?>"><?php
                    echo strtoupper("<font color='#4b4b4b' size='5'><strong>$l</strong></font>");
                                        echo "&nbsp;&nbsp;<a href='#TOP'><img src='top.gif' border='0'></a>";
                                        echo "<br>";
                                        echo "<br>";
                    }
                ?></a>
    <a href="showthread.php?<?php echo $riga['threadid']."-".$riga['title'] ?>" target="_blank"><?php echo  $riga['title']?></a>
        <br />
    <?php } ?>

Thanks for all! :up:

Logician 10-06-2010 11:22 AM

Quote:

Originally Posted by Gn_Snake (Post 2107355)
Hello everyone,
I'd like to integrate this script in php WebTemplate but unfortunately I can not do it?

Do you want the integration so that you can run the script with vb header/footer?

I guess you can do it with iframe. Create a webtemplate similiar to default webtemplate theme and then in the content section run your script via iframe like:
Code:

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

WT will give you vb header/footer and your script will run independently in the middle of it via iframe.

Gn_Snake 10-06-2010 07:18 PM

Logician Thank you so much for your support.
Unfortunately, gives me a blank page, I think the problem is in the configuration of this part of the script:
Code:

<?php
    if(isset($_REQUEST['idf']))$idf=$_REQUEST['idf'];
    else die("http://www.xxx.com/forum/?idf=ID");
    $conn=  mysql_connect('host','user','pass');
    if(!$conn)die(mysql_error($conn));
    $ris=mysql_select_db("dbnam",$conn);
    if(!$ris)die(mysql_error());
?>

This script is used as an external file returns the index of all the threads present in the ID forum.
It works very well but I would like to integrate it with vb

Logician 10-06-2010 07:30 PM

Blanks screen usually means there is a PHP error in your code and server is repressing it. If you run the script (get blank page again) and then go check your error log file, you should be able to see the error message which should give you a hint to fix the problem to your external script.

As you know in iframe method your external script does not deal with other scripts running outside iframe so I don't think there is a confliction with webtemplates, it sounds like a problem on your script end.

Gn_Snake 10-06-2010 09:37 PM

Strange because the script works, you can see how it works at this link:
http://www.test.xx/forum/test.php?idf=XX

I can not understand how to integrate it into your product?!:confused:

Drago13 10-17-2010 04:41 AM

Best MOD ever. I am having this problem, I have a custom skin, its 1180 wide fixed, but my web template pages are 1280 , any ideas how I can fix this..

https://vborg.vbsupport.ru/external/2010/10/25.png
https://vborg.vbsupport.ru/external/2010/10/26.png

Logician 10-17-2010 07:16 AM

Quote:

Originally Posted by Drago13 (Post 2110921)
Best MOD ever. I am having this problem, I have a custom skin, its 1180 wide fixed, but my web template pages are 1280 , any ideas how I can fix this..

https://vborg.vbsupport.ru/external/2010/10/25.png
https://vborg.vbsupport.ru/external/2010/10/26.png

Please give urls so that I can see source code.

Gn_Snake 10-17-2010 03:45 PM

Ok I managed to integrate the php script in WebTemplate.
But I had to use the command <iframe>, I wonder if it can be dangerous malware attacks on the site?

Code:

<iframe src="http://www.hardwaregame.it/forum/xxxx.php?idf=XX" width="100%" height="2000" framespacing="0" frameborder="0" border="no">
Contenuto alternativo per i browser che non leggono gli iframe.
</iframe>

Thanks


All times are GMT. The time now is 09:10 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.01503 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (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