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)

Logician 01-31-2006 07:01 PM

Thanks a lot for your sharing your code with us. I didn't test it myself but if it is working as you explained, it can be useful to sites which use a different approach to this permission issue. I'll add it to the FAQ.

EasyTarget 02-01-2006 04:40 PM

Quote:

Originally Posted by WAR
the section marked
"Disallowed Usergroups
Mark usergroups who can NOT display this page"

Should now be treated as if it said
"Allowed Usergroups
Mark usergroups who CAN display this page"

and the "Disallowed Usernames" section should be treated as if it read:
"Allowed Usernames
Enter usernames who CAN display this page even if their usergroup is disallowed."

The above text will NOT ACTUALLY CHANGE unless you go in and edit it (I haven't bothered yet so I am not sure where it is)

thanks War, testing it out now.

Logician do you know where to find the above text so that I can edit how it reads? thanks.

EasyTarget 02-01-2006 04:52 PM

I think I found it in wt_wt.php in the admincp folder.

CallieJo 02-02-2006 01:05 AM

Cannot grasp how to pull a php page into this and have vb headers and footers show up as well...

CallieJo 02-02-2006 01:20 AM

Okies...I can pull it up with:
PHP Code:

<?php 
echo $stylevar[htmldoctype];
echo 
$headinclude;
echo 
$header;
echo 
$navbar;
include (
"http://www.mydomain.com/folder/index.php"); 
echo 
$footer;
?>

But after it submits the info from my form it goes back to that scripts default look...anyway to keep the vb look after submitting the form? Thanks...

sinoeu 02-14-2006 12:30 AM

I wonder why such a useful and necessary founction didn't include in the original vbb ?!!

DaFire 02-14-2006 07:14 AM

because it's a forum software and not a cms system ;)

afaik they plan a product like this.

leitel 02-14-2006 04:39 PM

I am trying to format the output so that ONLY IF there is a 'dept', it will print out.
I tried putting code in the query output area as well as at the main page template.

Code:

$WQfield[name]<br/>
<if condition="$WQfield['dept']">
    $WQfield[dept]<br/>
</if>


Thanks! :)

Trana 02-15-2006 09:52 PM

I am having a little bit of trouble with the PHP template type. I have a PHP file that is working properly that pulls all banners from my phpadsnew database and displays it in a table. The page is sort of a "Our Sponsors" kind of thing:

<?php
echo $stylevar[htmldoctype];
echo $headinclude;
echo $header;
echo $navbar;
$host="localhost";
$user="xxxxx";
$password="xxxxx";
$database = "xxxxx";

$connection = mysql_connect($host,$user,$password)
or die ("couldn't connect to server");
$db = mysql_select_db($database,$connection)
or die ("Couldn't select database");

$query = "select alt, imageurl, url, bannerid from phpads_banners order by alt";
$result = mysql_query($query)
or die ("Couldn't execute query.");

/* Display results in a table */
echo "<center><strong>Our Sponsors</strong></center>";

echo "<div align='center'>\n";
echo "<table border='0' cellpadding='2'>\n";

while ($row = mysql_fetch_array($result))
{
extract($row);
echo "<tr>\n
\n
<td><a target='_blank' title='$alt' href='$url'><img src='$imageurl'</td>\n
\n
</tr>\n<td></td>";
}
echo "</table>\n";
?>

Why do I need to put the echo statements at the top? In the html templates I don't need to add those and it displays my style fine.

Also, why won't this template use the proper page title for the browser window? It just lists the URL and not the Site + User Friendly Name.

This is a GREAT hack btw!

Thanks!

rcull 02-18-2006 02:28 AM

The more I study this, the more I like it!!!

Many of us have now installed programs like Photopost in the same database as VB3. Would it be possible to query the photopost info, like newest picture in a catagory with a table prefix like pp_ ?


All times are GMT. The time now is 06:34 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.01413 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)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