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 10-29-2002, 12:05 PM
floridaideal floridaideal is offline
 
Join Date: Aug 2002
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Stick post so that it always appears in search!

Hi all

Don't know if this has been done yet or not but is there a hack that lets you stick posts so each time a search is done by a member it always appears?

Thanks

Stu
Reply With Quote
  #2  
Old 10-29-2002, 01:10 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what an faszinating idea.....

no it has not been done yet, but it shouldn't be to hard to achieve it...

can you tell, a bit more on why you want such a feature?
i'm just intrested, nothing more
Reply With Quote
  #3  
Old 10-29-2002, 02:03 PM
floridaideal floridaideal is offline
 
Join Date: Aug 2002
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey thanks for getting back to me

When I ment search I actually meant 'View New Posts' so whenever a user views new posts I can stick a post at the top to make sure everyone see's it.

Its ok using Annoucements and such but some users will just use 'View new posts' and nothing else.

Maybe a drop down box option at the bottom of each thread 'Stick Thead on new posts' ?

Could this be done?

Thanks

Stu
Reply With Quote
  #4  
Old 10-29-2002, 02:11 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahh, you mean threads, not posts sticky on searches.

well is it ok, to show all threads which are normal sticky on view new posts?

if yes you can open search.php find this:
PHP Code:
    // get date:
    
$datesql=" AND thread.lastpost>=".$bbuserinfo[lastvisit];

    
$wheresql="1=1".$forumsql.$datesql;
    
$wheresql.=" AND thread.open<>10"
and change it to this:
PHP Code:
    // get date:
    
$datesql=" AND thread.lastpost>=".$bbuserinfo[lastvisit];

    
$wheresql="1=1".$forumsql.$datesql;
    
$wheresql.=" AND thread.open<>10";
   
$wheresql"(".$wheresql.") or (thread.sticky=1".$forumsql.")"
Reply With Quote
  #5  
Old 10-29-2002, 02:25 PM
floridaideal floridaideal is offline
 
Join Date: Aug 2002
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And will this make a thread go to the top of 'View New Posts' each time a users clicks it?

This won't make every sticky thread go to the top will it?

Thanks
Reply With Quote
  #6  
Old 10-29-2002, 02:42 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would make every sticky thread goto the top yes...

Satan
Reply With Quote
  #7  
Old 10-29-2002, 02:42 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, it just shows em where they would appear ordered by dateline

you have to change this in the showresults part:
PHP Code:
    if ($sortorder!="ascending") {
      
$orderbysql.=" DESC";
    }

    
$orderbysql.=",thread.lastpost DESC"
into this:
PHP Code:
    if ($sortorder!="ascending") {
      
$orderbysql.=" DESC";
    }

    
$orderbysql.=",thread.lastpost DESC";
    
$orderbysql="thread.sticky DESC,".$orderbysql
then it should show em on the first page always
Reply With Quote
  #8  
Old 10-29-2002, 02:50 PM
floridaideal floridaideal is offline
 
Join Date: Aug 2002
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK thats cool

But the problem I have is I have about 30 sticky threads on my forum and I don't want all of them sticky at the top of the post list, I just want to make a couple of theads sticky now and again!

Does that make sense?

Thank you

Stuart
Reply With Quote
  #9  
Old 10-29-2002, 02:52 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whoops...

I ignored the bit about the date

Thats cool Xenon

Satan
Reply With Quote
  #10  
Old 10-29-2002, 02:53 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmmm...

Perhaps some kind of "Super-Sticky" or something?

Satan
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 03:01 PM.


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.05002 seconds
  • Memory Usage 2,259KB
  • 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
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete