Thread: Major Additions - Links and Downloads Manager
View Single Post
  #1523  
Old 03-31-2007, 02:47 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yorixz View Post
Yes, I've got it set for the main category that holds the subboards, which on their turn should contain the autogenerated topics.

I'm trying to get the setting 'Parent Forum - Defines viewing permissions', set on the category edit page, to work as standard forum to generate automated topics for files upload to that category, rather than asking the user what forum to post it in (which is the default, and only visible to admins while I want it to work without question and for regular users as well).

Hopefully I've explained it clear enough, thanks for your time and fantastic work so far.
If you have a default_forumid set, then all new entries will, by default, be associated with that forumid. If things are working properly (!!), the autocreate will also post its thread into that forum.

The difference between admins and others (actually between users with and without *can_set_permissions* permission) is that the first group gets presented with a full forum list with the default_forumid selected whereas the rest are forced to accept it (it becomes a hidden field in the template instead of a select list). So your normal users' posts will automatically be associated with the forum you want. Admins will have to be careful not to change the forumid - and if you want, you can edit the links_addnewlink template to change that. Look for the sequence:
Code:
<if condition="$links_permissions['can_set_permissions']">
<tr>
	<td class="alt1">
	<strong>$vbphrase[ll_forumparent]</strong><br />
	<span class="smallfont">
	$curforumtitle<br />
	$vbphrase[ll_forumparent_text]
	</span>
	</td>
	<td class="alt1">
	<table><tr>
	<td valign="top">
	<select class="select" name="pforum" size="6" style="width:400px; height:100px;" id="linkforum">
	<optgroup label="$vbphrase[ll_forumparent]">
	<option value="$DEFAULT_FORUMID" <if condition="$curforumid==$DEFAULT_FORUMID">selected="selected"</if>>$vbphrase[ll_none]</option>
	$jumpforumbits
	</optgroup>
	</select>
	</td>
	<td valign="top" width="20">
	<table><tr>
	<td><a href="#" onclick="return ldm_size_style('100px', '400px', 'linkforum')"><img src="$stylevar[imgdir_editor]/resize_0.gif" border="0" alt="$vbphrase[decrease_size]" /></a></td>
	</tr><tr>
	<td><a href="#" onclick="return ldm_size_style('400px', '400px', 'linkforum')"><img src="$stylevar[imgdir_editor]/resize_1.gif" border="0" alt="$vbphrase[increase_size]" /></a></td>
	</tr>
	</table>
	</td>
	</tr></table>
	</td>
</tr>
<else />
<tr style="display:none;">
	<td class="alt1" colspan="2">
	<input type="hidden" name="pforum" value="$curforumid" />
	</td>
</tr>
</if>

The problem you described is to get the threads created in a forum where these users doin't have permission?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01167 seconds
  • Memory Usage 1,781KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete