Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-28-2010, 04:15 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Serious Help Needed in forumdisplay.php

OK I modified my forum to show posts from various other forums in my main off-topic forum as I detailed in this mod: https://vborg.vbsupport.ru/showthread.php?t=245414

And it's working well, but I NEED to add a new feature... I have to be able to tag threads from other forums that are displaying in off-topic as 'foreign' threads or such, preferably with the name of the forum they originated in but even if just a mark to say they aren't native to the 'main' forum (forum id 1 in my mod example)... let's just say I want to add a "[X]" to the beginning of every thread title that isn't from the main forum...

Does anyone have any idea how this might be done? I've been staring at forumdisplay.php for hours and can't figure out where to start... I'd be VERY grateful for any help on this.

--------------- Added [DATE]1277752869[/DATE] at [TIME]1277752869[/TIME] ---------------

Would implementing the code a 'Search' returns be a good starting point? Search results have the forum name in with each thread, I'd settle for having it show on every post if we must.

--------------- Added [DATE]1277790601[/DATE] at [TIME]1277790601[/TIME] ---------------

I found another option, would still be interested if this is possible but not as important as it was this morning.
Reply With Quote
  #2  
Old 06-29-2010, 04:52 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you thought of assigning them prefixes and pulling them that way?
Reply With Quote
  #3  
Old 06-29-2010, 06:05 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unless my understanding of prefixes is wrong, and it very well might be, I don't think assigning one would change the forum it's viewable in. My off-topic isn't indexed by search engines so I have to move on-topic threads out so they can get indexed and we get traffic when people find them in searches.
Reply With Quote
  #4  
Old 06-29-2010, 06:10 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess I'm not totally understanding what it is you are trying to do then. Sorry about that.
Reply With Quote
  #5  
Old 06-29-2010, 11:28 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem I appreciate the time you took to respond. In case I can explain it better for you or anyone else;
I have modified my forum so that on forumdislay.php when viewing one 'master forum' I can see the posts from virtually every other forum (or category) for my site... this is working extremely well for my needs, however I would like to implement a means for distinguishing threads that are 'native' to my forum and threads that are from different forums. I know when you search for threads the results are returned with the originating forum listed on the thread display- I want this to happen (or some other customization) for threads displayed via forumdispay.php.
Attached Images
File Type: jpg ss_forumname.jpg (170.1 KB, 0 views)
Reply With Quote
  #6  
Old 06-29-2010, 11:51 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh, ok, I think I see what you mean now. You want to be able to view all threads from one forum but have those threads point to the forum they are from, is that correct? Like this:

Reply With Quote
  #7  
Old 06-29-2010, 01:26 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

exactly... I have the code to display all threads already, just need to add the originating forum column now.

--------------- Added [DATE]1277863677[/DATE] at [TIME]1277863677[/TIME] ---------------

I think what I need is to edit the threadbits template... that's probably it.

--------------- Added [DATE]1277868769[/DATE] at [TIME]1277868769[/TIME] ---------------

Yes, threadbit was exactly what I needed to edit... and $thread[forumid] tells me which forum the theead is from... I'm a happy camper right now.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09623 seconds
  • Memory Usage 2,243KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete