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 04-20-2006 06:41 AM

Quote:

Originally Posted by ChrisBaktis
certain admins cant access the webtemplates page...says they do not have permission...what permission do i need to set for them to be able to edit pages? They can see the WebTemplates link - when it is pressed says they dont have permission.

It is "can admin styles" permission

Logician 04-20-2006 06:49 AM

Quote:

Originally Posted by msimonds
Logician,

I have spent many hours working on your great modification for VB. I woulud like to report a bug and I have found within this thread.

You seem to have a permissions issue when an admin edits the template and ads a username to allow that user to edit the page:


FIREFOX: http://www.sportsrant.com/forums/edi...pg=ad_template
user/pass test/test

I either get a blank page or a no permissions issue. The username is entered into the admincp to allow the page to be "edited by"

Internet Explorer:

Same permission error, but there is also a javascript error when the submit button is clicked.



Can you please look into this

When I login as "test" I can't see that page either. So it is that view permission that is stoping him to edit that page. If you allow him to view the page first, it should work ok. (I don't know what prevent him to view the page, it can be that his usergroup is banned from webtemplate, or webtemplate is a draft or his username is banned etc.)

msimonds 04-20-2006 09:28 AM

Quote:

Originally Posted by Logician
When I login as "test" I can't see that page either. So it is that view permission that is stoping him to edit that page. If you allow him to view the page first, it should work ok. (I don't know what prevent him to view the page, it can be that his usergroup is banned from webtemplate, or webtemplate is a draft or his username is banned etc.)

These are the settings on the page for test 1:

Draft: No
Disallowed Usergroups: none checked
Disallowed usernames: None entered
Editor usergroups: None checked
Editor Usernames: test; mike

Now you can view the page and even edit it, but when you click on submit as test, it states:

These are the settings on the page for test 2:

Draft: No
Disallowed Usergroups: none checked
Disallowed usernames: None entered
Editor usergroups: Regular members and Administrators:
Editor Usernames: test; mike

same result!!!
Quote:

test, you do not have permission to access this page. This could be due to one of several reasons:
  1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.



this happens as either Mike (me as an admin) or test!!

I thought it was maybe a conflict with another modification but I installed a board from scratch and then installed this modification and it still happened. Something with the function permissions is messing that up

Is there any chance that you can look into this, I would gladly donate to get this resolved. This modification is great man, and this could become a great advertisement tool for future clients. I have 3 so far that are interested in doing this, if they can edit their own page

msimonds 04-20-2006 11:18 AM

Could it possible be something not with the permissions in the scripts, but maybe the permissions issue or something to do with the form in the template:

WebTemplates_Editors_EditPage

msimonds 04-20-2006 02:41 PM

Sir,

a friend of mine, who is the orginal developer of my custom CMS, Natch was kind enough to come and look at the errors that were being created.

He was able to get past the .js error by editing the template: WebTemplates_Editors_EditPage

He added the following code to the top of the template:

Code:

<if condition="$show['wysiwyg']">
    <script type="text/javascript" src="clientscript/vbulletin_wysiwyg.js"></script>
        <if condition="$show['mozilla_js']">
            <script type="text/javascript" src="clientscript/vbulletin_moziwyg.js"></script>
        </if>
<else />
    <script type="text/javascript" src="clientscript/vbulletin_stdedit.js"></script>
</if>




attached it the full, corrected, edited template

However there is still a permissions issue with the same tests as before!!


I hope this helps and maybe you could look into the permissions issue for us sir. I would truly appreciate it!

Thanks to Natch for correcting this!!! :banana: :banana:


*****These changes were only tested for vb 3.5.4*****

msimonds 04-21-2006 03:56 PM

after doing some more internal investigations. Your template system is not erroring. I re-installed it once again on a clean, unhacked version of VB 3.5.4 and it works as designed.

I do believe that however it is conflicting with some other hacks and their permissions!

Sorry for pointing the finger and jumping the gun!!

Mike

robert_2004 04-26-2006 05:01 PM

i'll install this tomorrow or the next day, and have a look at it - see what i can do to help.

in the mean time, try installing the "vB plugin order" mod. it will allow you to choose when this webtemplates plugin should be executed at the hook location.
https://vborg.vbsupport.ru/showthread.php?t=111679

arossphoto 04-26-2006 09:13 PM

I've read the manual and searched this topic, but I'm still confused about using php includes. I have a dynamic php file created with dreamweaver that pulls info about members from the database and I want to display that in the body of a template.

I've tried putting the include in the "PHP Include" field and the "Template" field, but neither works. The Parse Method is set to php. How can I do this?

Thanks.

Oh, meant to mention that when I place the include in the Template field it displays the file, but not the header and footer. Even though I've selected to use the Default Template, header and footer.

Spinball 04-27-2006 07:44 PM

Hello guys,
I use webtemplates for various pages including our podcast page which dynamically displays the number of downloads. It's excellent.
I need to do something which I can imagine many people might want to do.
I have my forums and we publish DVD reviews in a specific forum there.
I want to present the reviews in a nicer way, with more powerful search tools, integrating DVD specifications, screen captures, news etc which I can't do on the forums.
So I have developed a separate website avplay.com to be launched soon.
When a review is published, we will create a thread on our forums for discussion of the review.
Below the review I want to display that thread with login & register options for people who aren't members of our forums, yet. Plus reply options for people who are.
Is this possible with webtemplates? I susepct it is. More to the point has someone already done it who can help with examples?
Many thanks in advance.

Trana 04-29-2006 01:39 AM

Quote:

Originally Posted by Spinball
Hello guys,
I use webtemplates for various pages including our podcast page which dynamically displays the number of downloads. It's excellent.
I need to do something which I can imagine many people might want to do.
I have my forums and we publish DVD reviews in a specific forum there.
I want to present the reviews in a nicer way, with more powerful search tools, integrating DVD specifications, screen captures, news etc which I can't do on the forums.
So I have developed a separate website avplay.com to be launched soon.
When a review is published, we will create a thread on our forums for discussion of the review.
Below the review I want to display that thread with login & register options for people who aren't members of our forums, yet. Plus reply options for people who are.
Is this possible with webtemplates? I susepct it is. More to the point has someone already done it who can help with examples?
Many thanks in advance.

Webtemplates is a GREAT HACK, but it sounds like you want something more like GARS which has all of these features already. I use both Webtemplates and GARS since they really do two fairly different things. WT is perfect for static pages, a way to hook in php bits, html files, etc. GARS is better for a review or article system if you want people to be able to create and edit content without the admincp.

Either way, both of these systems are essential, great support too!


All times are GMT. The time now is 06:33 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.01529 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
  • (5)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