![]() |
I my navbar I use the following code to show a banner only to guests:
PHP Code:
|
First of all please let me tell you THANKS! This is (almost) eggsagly what we were looking for.
What we would like to do is to give our members the ability to create templates(pages) for themselves without an admin having to create the page for them. Even better if I can say: Each member of usergroup X has the ability to create Y pages. While still possibly enforcing them to have a common header and footer (as long as they use the free service) Is that letting the users create their own pages somewhere in the development queue or is that a pipe dream of me? Andy |
For comments about user editor interface such as:
Quote:
Quote:
Quote:
The hack would exist even without this feature at all but I intentionally added this to the script to show in which ways it can be improved and introduces new hack ideas developed around this concept. However please understand that I don't have any time for putting more efforts to this free script atm especially on points such as editor interface which are secondary part of the script. I appreciate the feedback but my apologies in advance in that they are not likely to be developped by me. But one of the reasons I shared this hack here is to compile a "public effort" to develop it further. So I'm hoping that some other hackers will also see the potential of how it can be expanded and develop hacks for webtemplates and release with their names here so that new features and abilities can be added to the hack. Anyone is welcomed to do it. If they need help for the hacking of the hack, I'll do my best to help out too. |
Quote:
PHP Code:
|
Quote:
|
Is there anyway I can modify the location of the Logicians Templates in the Admin Control Panel to display underneath the Vbulletin Options menu?
Also I don't know what the rest of you think but how about making the suggestion to Logician to change this in the program so that it displays below the Vbulletin Options menu as the default location? Doug |
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=136 |
Quote:
Also is this something you would consider permenently changing in the program as the default location? It just seems proper that Vbulletin Options should be first in line and then yours. Doug |
Quote:
|
Logician,
I know I've sung the praises of this hack about 300 times already, but I want to mention again that my site just wouldn't be the same without it, so thank you. :D That said, I have a quick, nagging, newbie question for ya. I posted a thread here about a similar issue (the same really) but since it also applies to WT, I'm hoping you can point me in the right direction. All of my custom Webtemplates end up ungrouped in the style manager. If I create a new plugin in vB/General Admin/template_groups with the following: Code:
$only['WebTemplates_'] = 'Custom Webtemplates'; What am I missing? Thanks again. :) |
Group,
The htaccess file that is in the forum folder... I dont see anything in the installation instructions indicating to do anything with it or what it is for. Is this file suppose to be placed anywhere, and if so what is it for or do? Thanks Doug |
Quote:
|
hi Logician, I'm using the latest version of this but I seem to still have permission errors for users with quite a few usergroups.
I have the main user group set to yes and the various other groups set to no, and they get a no permission error. |
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=118 |
Logician, do you have any plans to add nested categories functionality to this great hack? It would be totally awesome for those that use vBSEO and want to build their site completely around vBulletin, and yet have it SEO'd.
For example, If I could have a site.com/view.php?cat=tutorials&subcat=php&pg=seo, using vBSEO I could turn this into site.com/page/tutorials/php/seo and so on. plus cateries would make it a lot easier to sort information when there are a lot of pages that need to be created. |
Quote:
I have no problems with the permissions on other parts of vb, its just in the pages created with webtemplates. |
Quote:
|
Quote:
|
Quote:
my situation.. its a gaming forum with different teams. The team captain has access to stuff that the rest of his team doesn't. The team captain is a member of the team captain group and his team group. Because this hack handles permissions differently than the forum the team captain can't access the team captain page because he's a member of the team group. There's also an administration page for admins. Some admins are also team members. The admins can't access their pages because they are also in the team group which can't have access to the administration pages. |
Quote:
Here is one fix: WARNING: The following changes will completely reverse the way that Logician has set up the permissions for this Hack. DO NOT USE this unless you completely understand what it is for!!! Code:
function WT_UsergroupPermission($userinfo, $return10 = 1, $usergroupname = '') "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), but you need to realize that by applying the above code you have completely changed how webtemplates processes usergroup permissions. Logician is in no way responsible for the above change, and I am officially recommending that you do not apply this change unless you completely understand exactly what it does and are willing to accept complete responsibility for anything it or you may mess up in the process. (the code does work though, I have it running on two different live sites) |
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.
|
Quote:
Logician do you know where to find the above text so that I can edit how it reads? thanks. |
I think I found it in wt_wt.php in the admincp folder.
|
Cannot grasp how to pull a php page into this and have vb headers and footers show up as well...
|
Okies...I can pull it up with:
PHP Code:
|
I wonder why such a useful and necessary founction didn't include in the original vbb ?!!
|
because it's a forum software and not a cms system ;)
afaik they plan a product like this. |
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/> Thanks! :) |
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! |
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_ ? |
is there a way to count the number or rows returned in a webquery?
Edit: I figured out how to do this by adding the following to my Query PHP include code (after) box. PHP Code:
|
Quote:
$WQfield[mycount] |
Quote:
|
Hi peeps
I am trying to make a new page with this script (below) It does not show how i want it to Basically what it does is pulls a specified search criteria off eBay and lists it on a on a page as you can see the script is php and i thought it might have just been a case of cut and pasting it into a new template, evidently not as it dont pull the search criteria..... Anyway please try yourselves and see what i mean and see if there is a work around for me :) PHP Code:
|
Selecting PHP does not work. I tested it by trying something simple.
I made a new page and only typed in one word in the body portion. Saved it and when I try to view, I get a blank white page. If I toggle it to html, my word shows up on the page. |
Quote:
|
I just installed it yesterday. I dont know what default one you are talking about that is php.
Like I said, I did a simple test to see if it worked. I typed TEST in the content window, set it to php and I get nothing. If I set it on text or html my word shows up on the page. |
Quote:
|
Ok, installed your samples. Yes that phptest works. But I still dont understand why a fresh new one with nothing more than one word would'nt work.
My homepage is a .php file but its 99% html and then I have some php bits in it to call other information in. So perhaps your php is ment to be purly php with nothing more I dont know. |
Quote:
|
All times are GMT. The time now is 04:58 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|