vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Allow MOD To edit on a SINGLE template? (https://vborg.vbsupport.ru/showthread.php?t=149454)

stryka 06-11-2007 01:56 PM

Allow MOD To edit on a SINGLE template?
 
I have a template for a custom page that I update on a weekly ... but i wanna give it to my MODS to do... but only give them edit or view access to that single template....

Any suggestions?

and what files do i need to edit so it appears in their Control panel

nexialys 06-11-2007 06:56 PM

can't be done... the system is flexible, but not that much...

i'm sure nobody will come with a secure solution... or will have to rework a lot of files... not for free...

Adrian Schneider 06-11-2007 06:58 PM

You'd have to create a custom page that handles the editing of that template.

stryka 06-11-2007 08:23 PM

This would be such a good feature to have... they can allow custom templates to be flagged for moderator/supermod accesss...

a custom page to handle templates sounds doable... anyone know the files that i need to look at first..

Quote:

Originally Posted by SirAdrian (Post 1266416)
You'd have to create a custom page that handles the editing of that template.


Adrian Schneider 06-11-2007 08:30 PM

Hm...

Two parts,

1) a form that displays the current contents of the template
Code:

SELECT content_un FROM template WHERE styleid = x and title = 'template_name';
2) upon submitting the form, compile the template (adminfunctions_template.php - compile_template() ) and write the posted data to the 'template_un' column, and the compiled to 'template' column.

stryka 06-18-2007 04:46 PM

ok... i almost figured a quick work around...

i have made a copy of the template.php file... and created a direct link to to the file within my MODCP navbits....

they are able to edit... BUT when they click save it brings them back to the full listing of templates to edit...??

Which part of the file do i edit to have the redirect go back to the modcp index page?

Thanx


All times are GMT. The time now is 12:53 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.00986 seconds
  • Memory Usage 1,720KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete