![]() |
FA Latest News
Hello,
***** This HACK is brought to you by Betlik.com ***** * Description: Show latest news on FORUMHOME. * Features: - Whole Hack Enable/Disable - Allow separate usergroups. - Expand/Collapse Table .....more features coming soon in next versions. * How to install? Download the version you like. Goto your VBulletin AdminCp > Plugins & Products > Add/Import Product and upload the XML you downloaded. Now Open Template: "navbar", at the bottom add:- Quote:
Version History: 1.0 - Initial release. 1.1 - New Feature: Collapse / Expand Table 1.2 - News title is now in a "thead" td. ***** Please click to Install if you like this hack ***** Thanks |
Thanks, first installed :D
|
installed and not showing the news details section, nothing under news title :confused:
|
Awesome! Thank you very much. :)
|
Quote:
I checked it and its working fine. |
Cant see where to post the news to, yes can see the news title, but not to where to type the news?
seems somehting is amiss here |
Same Here :(
|
ohhhhhh!! sorry there was a problem with it!
A new,fresh,tested and FIXED version is just uploaded. Please download it and it will work. OR if there were still problems let me know. Thanks |
working great now , cheers :up:
|
yup working a teat now:)
nice work bud |
Is the news box collapsible? if not maybe a feature request.
Thanks. |
I like this hack. Simple, and effective.
|
Thank you Farooq
Like this a lot :) Install Oh just wanted to ask if there was anyway to customize the background color of the box? Thanks :) |
To make the box collapse ---
In template latest_news, find: Code:
<td class="tcat">Latest News</td> Code:
<td class="tcat"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('latenews')"><img id="collapseimg_latenews" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latenews].gif" alt="" border="0" /></a>Latest News</td> Code:
</tr> Code:
</tr> Code:
</table> Code:
</tbody> |
|
reserved thanks,
Quote:
What does this mean Atakan KOC in your post this code : |
Quote:
Enjoy! |
1.2 Version released. Now the News Title will be in a "thead" td. See the new screenshot:
https://vborg.vbsupport.ru/attachmen...1&d=1171024314 |
Ah, yes. I was wondering about that. Didn't quite mind the bold text as a header and didn't really feel the need to add a thead on a box with only one short blurb in it... Still I'll install the update. Thanks!
|
if the usergoup its for example 25 doesnt appeard :(
I remove from template this code <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}"> And now works with all usergroups byt i cannot restrict Strainge error |
Quote:
Hope that helps. Thanks |
Quote:
|
Quote:
|
Quote:
Create a new plugin. Product: Latest News Hook Location: parse_templates Title: Latest News Usergroup Perms Execution Order: 5 Plugin PHP Code: PHP Code:
Find: PHP Code:
PHP Code:
|
yep thats true, i have had to remove the code,
oops cross posted lol |
Sorry for the foolish question all. I uploaded the XML file, and inserted the $latest_news at the bottom of the navbar template as instructed. I see nothing, get nothing. Is there something I'm missing? Do I need to 'turn on this feature'? Change any settings? I am very new at all of this. Any help would be appreciated.
|
Quote:
Yeah I know what its doing: Usergroup 11 would allow Usergroup 1 to view the news Even if you added 11,12,2,4,5,6 Usergroup 1 would still be able to view it fully. I tried the same thing by looking on my laptop and using my PC in the admincp. As soon as I removed my usergroup 11 I could then view the news as a guest on my laptop. So all 2 digit numbers are not working :( Will there be any fix to this soon? I really like this mod :) |
Quote:
|
Quote:
In your Admin CP...go to your "vBulletin Options" and scroll down down to "Latest News by Betlik.com" |
Doesn't seem to work for Mod ID numbers. I.e. i have a mod that is assigned to the mod group (7 i think) and cannot see the news. All other groups 1 - 6 including me the admin can however and i have checked and she's right, nothing shows. Any ideas ?
|
Quote:
|
Looks like an awesome hack! Unfortunately, I'm using vb3.5 and can't import the product. Can you perhaps make something like this for 3.5 or is there already anything similar to this for 3.5?
Anyway, good job mate! Looks like a good hack... |
You should be able to edit the product in NotePad or something and change the Product Dependency from 3.6 to 3.5. Of course I didn't author the hack, but I don't think there should be any problems running it on 3.5, considering it doesn't really make use of anything that changed (such as the datastore).
|
Hello, from where I change the module title "Latest News" to my Own in forum home?
thx |
Can anybody have making this hack W3C standard?
Quote:
Quote:
|
Quote:
|
Quote:
<br> will be W3C compliant if changed to <br /> |
Quote:
Quote:
The tbody are allowed but not where it is now if not in a table |
Perhaps you edited your template and messed up the table code, because I'm positive <tbody> is used properly.
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:
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}"> Code:
<if condition="$vboptions['enable_ltnews'] AND is_member_of($bbuserinfo, $ugroups_lt)"> Code:
</if></if> Code:
</if> |
Quote:
EDIT: Thanks! Yuor code have fixed too that issue :) |
All times are GMT. The time now is 05:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|