View Full Version : Can you point me in the right direction -?
down.low
05-09-2009, 09:16 PM
https://vborg.vbsupport.ru/
1. The name of the thread-starter.
2. The name of the person who posted last, (or even the whole "Last Post" column).
I need help hiding these two things from view of everyone in a specific sub-forum.
If someone could help me out, or even just point me in a direction- it would be greatly appreciated.
|
|
|
--------------- Added 1241909444 at 1241909444 ---------------
Not even the slightest idea?
benny92000
05-10-2009, 12:57 AM
Maybe a conditional statement that disables this for certain forums? I don't know what code you would have to add inside the condition.
down.low
05-10-2009, 02:16 AM
Maybe a conditional statement that disables this for certain forums? I don't know what code you would have to add inside the condition.Thanks for leaving an idea- I'm still stuck if there's anyone out there willing to help me out here.
Lynne
05-10-2009, 02:29 AM
Find the template and put a condition around the stuff:
<if condition="$forumid != 'x'">
stuff to show if not forum x
</if>
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
If you have further problems, post the exact code in the templates you are using, along with the template name.
down.low
05-13-2009, 07:41 PM
Find the template and put a condition around the stuff:
<if condition="$forumid != 'x'">
stuff to show if not forum x
</if>To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes .......
Thank you for the help Lynne, unfortunately I failed to read this before figuring it out- thanks for the tip, according to source- it was forumdisplay being loaded and after tinkering around in there with no luck I moved on,,,, I eventually found what I was looking though and have removed the threadstarter name as well as last post name.... Thanks for the help, it's always appreciated.
One last quick question; if you could help me,.- say I wanted to edit a .php file and wanted to use something like one of the following:
<if condition="$bbuserinfo['usergroupid'] == 10">The whole contents of the .php file</if>
or
<if condition="is_member_of($post, 10)">The whole contents of the .php file</if>
or
<if condition="$post['usergroupid'] == 10">The whole contents of the .php file</if>
or
<if condition="in_array($forum[forumid], array(1,2,3))">The whole contents of the .php file</if>
Any idea how I would write the conditions around the contents of the .php file to make it not produce an error--- or could you point me in a direction, (I never mind learning something new).
Lynne
05-13-2009, 07:50 PM
You are probably looking for these (use in the php page). Take a look in the articles forums - lots of good stuff in there.
if (is_member_of($vbulletin->userinfo, 10))
{
stuff
}if (is_member_of($post, 10))
{
stuff
}if ($post['usergroupid'] == 10)
{
stuff
}if(in_array($forum['forumid'],array(1,2,3)))
{
stuff
}
down.low
05-13-2009, 08:58 PM
You are probably looking for these (use in the php page). Take a look in the articles forums - lots of good stuff in there.
if (is_member_of($vbulletin->userinfo, 10))
{
stuff
}if (is_member_of($post, 10))
{
stuff
}if ($post['usergroupid'] == 10)
{
stuff
}if(in_array($forum['forumid'],array(1,2,3)))
{
stuff
}
You're the best... thanks for helping out once again.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.