Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-03-2002, 09:08 AM
Cyn Cyn is offline
 
Join Date: Apr 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Bypassing thread list page

I want to bypass a forum's thread list page and go directly to the one thread in that forum when I click on the Forum's title from the home page or from within the parent forum. Can someone help me do this please?
Reply With Quote
  #2  
Old 11-03-2002, 07:31 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see the sense of this, but you can make it with an easy trick:

just rename the Forum into this:
</a><a href="showthread.php?threadid=xxxx">Forumname

replace the xxx with the thread id, and you have the effect you wanted.
Reply With Quote
  #3  
Old 11-03-2002, 07:35 PM
Cyn Cyn is offline
 
Join Date: Apr 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried that and it works if you're within the forums list in the category forum but doesn't work from the forum home page.

Jake sent me over here after my request in this thread: http://www.vbulletin.com/forum/showt...threadid=51622

Erwin tried to help me out but I must be doing something wrong... http://www.vbulletin.com/forum/showt...threadid=57709
Reply With Quote
  #4  
Old 11-03-2002, 08:11 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My method does work. You are missing a } at the end of the code I gave you in that thread.
Reply With Quote
  #5  
Old 11-03-2002, 08:14 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use this instead:

PHP Code:
if ($forumid=='xx') {

    
header("Location: ../forums/showthread.php?s=&threadid=yy");

  exit;


Reply With Quote
  #6  
Old 11-04-2002, 06:14 AM
Cyn Cyn is offline
 
Join Date: Apr 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did that, as I explained in the thread. It still gives me:

Parse error: parse error, unexpected T_STRING in /usr/www/users/mother1/discussions/forumdisplay.php on line 21

I'm sure I must be doing something wrong. Here's the whole file with your mini-hack placed in it. All I did was place it beneath the //end forumjump redirect :
Reply With Quote
  #7  
Old 11-04-2002, 08:55 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's with the _____ lines in your code above?

// end forumjump redirects
if_($forumid=='xx')_{
____header("Location: ../forums/showthread.php?s=&threadid=yy");
__exit;
}

Get rid of all the ____ lines and it should work. The error is on line 21, which is where the ___ starts.
Reply With Quote
  #8  
Old 11-06-2002, 06:16 PM
Cyn Cyn is offline
 
Join Date: Apr 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gee..I thought I'd replied to you Erwin. I don't know what happened to my post. Anyway...

I don't know why the lines are there. it doesn't look like that in the code ion the file. but when I copy and paste it the lines appear.
Reply With Quote
  #9  
Old 11-07-2002, 09:20 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trust me, the code works. I use it exactly as I have pasted it. Somehow it doesn't work for you.

PM me the whole of your forumdisplay.php with each forumid and corresponding threadid, and I will PM back to you the fixed forumdisplay.php
Reply With Quote
  #10  
Old 11-07-2002, 01:58 PM
Cyn Cyn is offline
 
Join Date: Apr 2002
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason my posts are not staying in this thread. I posted yesterday to say that I had fiddled around with it and eventually starting afresh with a clean file and typed in the code and it worked! Thanks Erwin! I'm sure my post was here because I saw it before left the thread.

I knew the problem was in something I had in the file. Just couldn't and didn't figure out what it was.

If I want to do this for other forums as well I just repeat the same code directly beneath that one, changing the forumid and threadid as necessary?
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 05:56 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.03990 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete