vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Import Unread News from a Forum (https://vborg.vbsupport.ru/showthread.php?t=115179)

antialiasis 05-11-2006 05:01 PM

Hmm, I could make that feature an option in the Admin CP so you can choose. =/ You don't really need that, anyway, if you have the time cutoff or number cutoff...

EDIT: Version 2.21, with that option and some alternative templates you can use if you feel like it.

rmxs 05-11-2006 06:15 PM

:) i dont wont to make you sad byt i cannot fint the option in ACP :)

Also the NEW custom_unreadnews template edits doesnt work for me i get pag error and dont collapsed... :(

Bad day...

EDIT: More... Link goes to url http://www.sitename.com/forumdisplay.php?f=

I thing something wronk with the code...

antialiasis 05-11-2006 07:14 PM

Both of those should be fixed now. I really don't get why the option didn't show up the first time (I didn't do anything with it, and it did get imported into the XML file now), but the alternative templates DO work, and the collapsing too (I tested it). Did you edit both the templates?

rmxs 05-12-2006 04:56 AM

Yeap i edit both ( edit one)

I try many times...

Let me try with new version :)


IT WORKS PERFECT :)

reteep 05-12-2006 05:32 AM

Dude I really like your hack, just one thing, please collect several updates and deploy them as one, don't do 5 Updates in 2h, thanks :)

antialiasis 05-12-2006 09:29 AM

Well, when I'm making important bugfixes, I'd rather not leave you for two hours with a non-functional hack. =P

But I'll be slowing down anyway. Now it's working and has all the features I was originally planning, so all I'd be doing would be implementing some user-requested features.

KubisForce 05-26-2006 09:46 PM

At first: Great hack - I ever was in search for that.
But I have also one feature request. I would like that the news forum changes according to the forum languages. Imagine you have a multilanguage board and you have therefore also not only one news forum. So the best would be that you can specify (if you want) for every language a different news forum.

antialiasis 06-24-2006 12:36 AM

Okay, that took a lot of pondering over how I could do that in a practical way, and I ended up just allowing a PHP conditional to be set for every news forum and then allow multiple news forums. I used the language thing as an example, so you should be good to go. :) Enjoy version 3.0.

bashy 06-24-2006 07:54 AM

Hi

I have only just found this and i do like it very much :)
I have 1 wee question though, The box that the news appears in has no Title cell of its own like the rest of the boxes on my forum... or see image below
An example would be the box below yours is the Latest Forum Threads and you
will see that the title has its own cell, please can you do this for me, or let me know what and where to do the edit please?

Much appreciated

antialiasis 06-24-2006 09:26 AM

That is exactly what the alternate templates provided in the first post do. ;)

bashy 06-24-2006 10:04 AM

Yeah i did see that and tried it, it gave me the same look lol

antialiasis 06-24-2006 10:55 AM

Did you replace both of the templates in all your styles?

bashy 06-24-2006 10:56 AM

Yeah i did, well only in 1 style cause thats the only style i am really using atm, the others are just testers!!

antialiasis 06-24-2006 11:06 AM

Hmm, that's odd. Are you absolutely sure you're using exactly that style and not just a duplicate of it or something? And that you definitely saved both templates? Try replacing it in all your styles...

bashy 06-24-2006 11:19 AM

Yeah definiatley m8....I am only using the MNS 7 style thats the only 1 ticked in the style manager and thats the only 1 i have edited

antialiasis 06-24-2006 11:35 AM

Okay, go to your template manager and look at the custom_unreadnews template. Compare it to the alternate template in the first post. Are they the exact same?

bashy 06-24-2006 11:39 AM

Yes m8, there exactly the same...Just checked it now

bashy 06-24-2006 11:45 AM

Its working now....I just rebuilt all styles and its now showing as it should be...thanks for taking the time to help me on this! :)

antialiasis 06-24-2006 12:41 PM

Okay, that's good. Let me know if you have any other problems.

ArchEnemy 08-25-2006 09:10 PM

Thats a great hack and works fine once I followed your php4 instructions.

What I am missing is that it checks if the user has reading rights of those forums and if not, not showing the news headline. I think it can be done by manually add all usergroups who can read that forum with conditions but it could be more handy.

Since I am quite bad in coding, I also ask if someone can provide the condition that does this. Thanks.

antialiasis 08-28-2006 10:10 PM

If you wish to only show it to certain usergroups, the condition should be

Code:

is_member_of($vbulletin->userinfo, 5,6,7)
Replace the 5,6,7 with a comma-separated list of the usergroup IDs which can view that forum.

But yes, that would be a fairly necessary functionality which I should get around to adding soon.

kushtiUK 09-03-2006 07:08 PM

The unread news link does not work from the vBadvanced default page or photopost which are both integrated into VB - all works fine from VB bulletin - Does anyone have this working with VBadvanced and Photopost and if so how can I make mine work? I am assuming a relative path will need to be added to the code - but I don't know where?

kushtiUK 09-03-2006 07:46 PM

Quote:

Originally Posted by kushtiUK
The unread news link does not work from the vBadvanced default page or photopost which are both integrated into VB - all works fine from VB bulletin - Does anyone have this working with VBadvanced and Photopost and if so how can I make mine work? I am assuming a relative path will need to be added to the code - but I don't know where?


I worked it out - I located the templates and updated with the full URL etc. :alien:

RedeemedWarrior 02-21-2009 05:49 AM

this works fantastic on 3.8

WordKeeper 08-11-2009 11:10 PM

Quote:

Originally Posted by RedeemedWarrior (Post 1750438)
this works fantastic on 3.8

it works well for you, but when I installed it, no luck.


All times are GMT. The time now is 12:04 AM.

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.01152 seconds
  • Memory Usage 1,762KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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