vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Sig Of The Week 1.3 (https://vborg.vbsupport.ru/showthread.php?t=153588)

dancue 03-16-2008 01:40 PM

Quote:

Originally Posted by EnIgMa1234 (Post 1465818)
To control the forumid add this conditional to your template

<if condition="in_array($forum[forumid], array(x,y))">
or for 1 id
<if condition="$forum[forumid] == x">

Where do I put that EnIgMa? And will this allow me to control it from the options in the AdminCP?

EnIgMa1234 03-17-2008 10:53 AM

It would be something like

<if condition="$forum[forumid] == x">
// YOUR TABLE CODE
</if>

where x is the forumid you want it to be in

dancue 03-17-2008 01:13 PM

And this is going in the forumdisplay template?

Excuse me, I'm just a little lost. I've managed to put it in the forum of my choosing by using this code:
Code:

<if condition="$forumid == 7">$sotw</if>
In this case I replaced x with 7.

What I want to do is be able to choose, from the SOTW options in AdminCP, which forums I want it in.

Is that what you are providing with your code in post 132? If so, what template do I use this in?

EnIgMa1234 03-18-2008 01:03 PM

No this is not an admincp function, this allows you to change it via template

<if condition="$forumid == 7">$sotw</if> will show $sotw in forumid 7 only.

I will add a page in admincp for this in the next version.

dancue 03-19-2008 12:47 AM

Oh. OK...

I had both (the single and multiple forum code) within the text document already.

That's cool that it will be on the next update. I know you're busy with RBS, but when do you think you will have an update for SOTW?

EnIgMa1234 03-19-2008 06:10 PM

No idea :( Lets see how things go ;)

aftermath29 03-23-2008 07:59 PM

well this looks good and it is up but cant get it to show a sig for the life of me [took this hack out]

EnIgMa1234 03-24-2008 03:29 AM

Whats gone wrong?
Have you added $sotw to your forumhome template?

Kadence 04-10-2008 02:08 AM

Nice mod, I installed it :)

Is there any way to allow a moderator to edit the settings without giving them admincp access?

Kadence 04-10-2008 02:34 AM

Also, an admin says they can view the SOTW tab, but when they try to click settings they get the following error:
Code:

Sorry, you don't have permission to access the administrative controls on this page.

If you need to access this page, ask your lead administrator to enable your permissions for this page using the Administrator Permissions section of the control panel.

What permission setting controls this for admins?


All times are GMT. The time now is 01:16 PM.

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.01093 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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