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)

Bellinis 01-23-2006 03:36 PM

I my navbar I use the following code to show a banner only to guests:

PHP Code:

<if condition="in_array($bbuserinfo[usergroupid], array(1)) && THIS_SCRIPT != 'page_name'"

With this I can not only exclude member from viewing the banner, but also on certain pages for guests. How can I do this with the templates that this script creates? I've tried adding the names I give to these new pages, but it doesn't work. Any idea how I can make it work?

apleschu 01-23-2006 04:56 PM

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

Logician 01-23-2006 06:15 PM

For comments about user editor interface such as:
Quote:

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)
Quote:

1. the editors should be able to toggle the draft flag and should be able to see the page in draft

2. the editors should be able to change the view permission.
Quote:

One comment the page title seems to not be editable in the front end only in CP. Might be nice to have some inline stuff on this mod for bits like that.
I know this part of webtemplates can pretty much enhanced according to many ideas such as these. But please note that user editor interface of webtemplates is not its primary function but it is just a nice&small add-on for a hack which basically allows "admins" to create vb integrated pages very easily.

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.

Logician 01-23-2006 06:15 PM

Quote:

Originally Posted by Bellinis
I my navbar I use the following code to show a banner only to guests:

PHP Code:

<if condition="in_array($bbuserinfo[usergroupid], array(1)) && THIS_SCRIPT != 'page_name'"


PHP Code:

<if condition="in_array($bbuserinfo[usergroupid], array(1)) && THIS_SCRIPT != 'view'"

should work for you as vb knows webtemplate pages as "view".

Bellinis 01-23-2006 08:44 PM

Quote:

Originally Posted by Logician
PHP Code:

<if condition="in_array($bbuserinfo[usergroupid], array(1)) && THIS_SCRIPT != 'view'"

should work for you as vb knows webtemplate pages as "view".

Ok, thanks a lot! :)

dcpaq2xx 01-27-2006 06:40 PM

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

Logician 01-27-2006 07:03 PM

Quote:

Originally Posted by dcpaq2
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

Please see here:
https://vborg.vbsupport.ru/showpost....&postcount=136

dcpaq2xx 01-27-2006 07:10 PM

Quote:

Originally Posted by Logician

Thank you Logician for the link.

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

Logician 01-27-2006 07:16 PM

Quote:

Originally Posted by dcpaq2
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.

Feel free to change it in your board but actually I believe WebTemplates link should be at the very top because when you build a site around webtemplates you are going to visit it much more than vb options link. :)

Guest210212002 01-27-2006 08:05 PM

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';
it only ends up grouping the stock templates - all of the ones that are created by me still end up outside of the group at the top of the list.

What am I missing?

Thanks again. :)


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.01386 seconds
  • Memory Usage 1,760KB
  • 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
  • (4)bbcode_php_printable
  • (8)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