vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Forum Subscription Indicator/Links on ForumHome (https://vborg.vbsupport.ru/showthread.php?t=64974)

kyrnel 05-10-2004 11:09 PM

You're right. The '0' wont change anything because the default value is 0 for that function.

I have updated the instructions. The next file edit was wrong as well, I fixed it too.

MrNase 05-11-2004 03:22 AM

Hey,

this could come in handy when i use subscriptions :)

thx

Boofo 05-11-2004 04:05 AM

Quote:

Originally Posted by kyrnel
You're right. The '0' wont change anything because the default value is 0 for that function.

I have updated the instructions. The next file edit was wrong as well, I fixed it too.

I don't see any difference in the forumdisplay.php file edit. It looks the same to me. ;)

Now this won't work with forums you are already subscribed to, right? Any way to run a query to set it up like that? ;)

kyrnel 05-11-2004 11:28 AM

It was the "Find:" code that was wrong for forumdisplay.php, not the replacement code.

Basically how it works is this:
When you pass the userid to the cache_ordered_forums() function it adds the field [subscribeforumid] to the query. If this field is populated with a value, then that means that you are subscribed to that forum. So it doesnt add any queries, but it makes an existing query slightly more complex.

So it will work with existing subscriptions. No need to update anything.

Boofo 05-11-2004 02:25 PM

Ahhh, ok, that makes more sense now. Thank you for the explanation. I was wondering how it worked. ;)

Boofo 05-11-2004 03:22 PM

Any way to make the links work in the Forum tools dropdown? ;)

kyrnel 05-11-2004 03:28 PM

That is a good question. I will have to look into that. I expect that it will require a different approach since the forum details in ForumDisplay (other than subforums) are not generated by the cache_ordered_forums function.

[Edit] Actually, this has already been done in another hack, here:
https://vborg.vbsupport.ru/showthrea...ubscribe+forum
[/Edit]

Boofo 05-11-2004 04:06 PM

Quote:

Originally Posted by kyrnel
That is a good question. I will have to look into that. I expect that it will require a different approach since the forum details in ForumDisplay (other than subforums) are not generated by the cache_ordered_forums function.

[Edit] Actually, this has already been done in another hack, here:
https://vborg.vbsupport.ru/showthrea...ubscribe+forum
[/Edit]

Thank you, sir. Apparently I had already clicked install in that thread but never installed it. Must have forgotten about it. ;)

Your hack works like a charm. Thank you, again. ;)

kyrnel 05-12-2004 11:48 AM

Well, if there are no more comments/questions, then I will go ahead and write this up as a full release.

There is actually little that can go wrong with this hack since it mostly utilizes the existing code in vB. I just wanted to make sure that my instructions were accurate.

Boofo 05-12-2004 12:14 PM

Accurate and excellent! ;)


All times are GMT. The time now is 07:27 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.02010 seconds
  • Memory Usage 1,729KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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