
04-15-2008, 08:53 AM
|
|
|
Join Date: Feb 2007
Posts: 1,272
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by thincom2000
On another note, I would recommend the author change the usergroup part of the code. It will make the template code a lot cleaner, easier for users to understand, and will work for membergroups as well. I made a suggestion like this earlier, but now this one is much simpler.
First, edit the plugin Templating Starting.
Replace the Plugin Code with:
PHP Code:
if ((THIS_SCRIPT == 'index') AND $vbulletin->options['enable_ltnews']) { $ugroups_lt = explode(',', $vbulletin->options['ugroups_lt']); eval('$latest_news = "' . fetch_template('latest_news') . '";'); }
Now edit the template latest_news. Find:
Code:
<if condition="$vboptions[enable_ltnews]"><if condition="$bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{0} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{2} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{4} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{6} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{8} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_lt']{10}">
Replace with:
Code:
<if condition="$vboptions['enable_ltnews'] AND is_member_of($bbuserinfo, $ugroups_lt)">
Then find:
Replace with:
|
Quote:
Originally Posted by ESADCG
I have gone through this thread and none of the solutions seem to work well. Couldn't the author rewrite this to work with all usergroups instead of all these hacks to the hack? It is pretty much worthless without the additional usergroups.
|
Quote:
Originally Posted by ESADCG
Helllllo!!! Still need those double digit usergroups! This dude hasn't been online in a year! Someone needs to rewrite this thing!
|
Did you see this first post I quoted? It works to fix the issue.:up:
|