vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Forum Link (https://vborg.vbsupport.ru/showthread.php?t=74896)

Nadiar 01-22-2005 08:28 PM

Forum Link
 
I'm trying to figure out how to link a single forum to multiple sub forums but still have it show the "Last Post", "Threads" and "Posts" from the forum.

To see an example of what I'm talking about, please see the following links:

http://www.the-hand.net/board/index.php?
http://www.the-hand.net/board/forumdisplay.php?f=47

Anyone have any pointers?

Andreas 01-22-2005 08:33 PM

What's special at this board?
Forum 47 is just a forum with subforums

Nadiar 01-22-2005 08:50 PM

I want "Last Post" to show the last post, instead of showing only hyphens.

Andreas 01-22-2005 08:54 PM

Seems like I don't understand you, sorry.

It's the same as on vbulletin.com:
http://www.vbulletin.com/forum/forumdisplay.php?f=54

?

Nadiar 01-22-2005 09:03 PM

I'm not sure what I'm saying wrong here... Using the vbulletin.com link you provided, look at "vBulletin 3 Bug Tracker" (at the bottom)

To the right of this you see "- - -" I do not want to see this. I want to see what the last post is, like with every other forum above "vBulletin 3 Bug Tracker"

Andreas 01-22-2005 09:07 PM

Well, the Bug-Tracker is a link so it does not have posts.

Nadiar 01-22-2005 09:09 PM

Quote:

Well, the Bug-Tracker is a link so it does not have posts.
Yes, and I want to be able to link to another sub forum, and have it display the posts.

Andreas 01-22-2005 09:15 PM

This is rather difficult to achieve.
You would have to modify the code to check if a forum is a link, then check if the link links to an internal forum, then check permissions for this forum and fetch the infos.
Also, you might run into problems with the sessionhashfor users that don't accept cookies, as a link doesn't carry over the sessionhash.

Wouldn't it be possible to just make the destination form a child of the forum where you want to have the link?

Nadiar 01-22-2005 09:21 PM

Quote:

You would have to modify the code to check if a forum is a link, then check if the link links to an internal forum, then check permissions for this forum and fetch the infos.
I don't have any links to external forums, so thats not an issue, I just need to find the location of the code for this.

Quote:

Wouldn't it be possible to just make the destination form a child of the forum where you want to have the link?
Sadly not, because the forum needs to appear in 3 different area's

Andreas 01-22-2005 11:31 PM

I think I got a "proof of concept"

In functions_forumlist.php FIND
PHP Code:

}

// ###################### Start getimodcache #######################
function cache_moderators() 

ABOVE that ADD
PHP Code:

$forumcache[ID1] = $forumcache[ID2]; 

Where ID1 is the ForumID of your Link-Forum and ID2 is the ForumID of the destination Forum.
If you got several Forum-Links, repeat this line accordingly.

Let me know if this does work.


All times are GMT. The time now is 03:12 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.02283 seconds
  • Memory Usage 1,735KB
  • 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_php_printable
  • (3)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
  • (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