Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-02-2000 Last Update: Never Installs: 0
 
No support by the author.

What do you think about this -

When someone goes to click "new thread", they are able to CHANGE the forum that the post is going to go into. Let's say that someone clicks "new thread" in the hack suggestions area, but then decides it would be better in the installation section - they could just click and change it to post in that forum. (make sense)

This could eliminate quite a bit of people posting in the wrong forum (many because they don't want to have to go back out and find the forum they want to post in and click on "new thread" again).

Anyone else like this idea? Can anyone create this?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-02-2000, 02:37 AM
Guest
 
Posts: n/a
Default

This is a neat idea... just above the post subject to have a combo-box with all the forums listed, allowing you to select the best one. Maybe with a little note next to it: "Please try to post to the most appropriate forum for this topic".

Shouldn't be too difficult?

-Chris
Reply With Quote
  #3  
Old 08-02-2000, 02:40 AM
Guest
 
Posts: n/a
Default

actually sounds like a good idea, never even crossed my mind before, but it could be pretty usefull.
Reply With Quote
  #4  
Old 08-02-2000, 02:46 AM
Guest
 
Posts: n/a
Default

I'm great at coming up with ideas for hacks (right Ed?), but don't ask me how to create them!
Reply With Quote
  #5  
Old 08-02-2000, 02:50 AM
Guest
 
Posts: n/a
Default

I know exactly what you mean, I haven't a clue how to make this stuff, thats strictly for other people to do, me, I just take their hard work and use it freely on my site
I am planning on learning PHP soon though, so maybe I'll finally make some stupid little hack so I can call myself a "hacker"
Reply With Quote
  #6  
Old 08-02-2000, 04:03 AM
Guest
 
Posts: n/a
Default

Actually, that is a simple hack. Just make a forum dropdown (or maybe even use the one that's already generated) and use that to send the forumid.

If using the pregenerated one would work, I think it'd be all templates Otherwise, a litle hacking.
Reply With Quote
  #7  
Old 08-02-2000, 05:29 AM
Guest
 
Posts: n/a
Default

Ok, here we go.

But first, some user testimonial:

"Love it!" - Me2Be

Hehe, sorry, had to

Anyway, in newthread.php find:
Code:
if ($action=="newthread") {
  $forumid = verifyid("forum",$forumid);
Under, add:
Code:
  //CHOOSE FORUM HACK
    $jumpforumbits="";

  if ($forumid!="") {
    $curforumid=$forumid;
  } else {
    if ($threadid!="") {
      $getforumid=$DB_site->query_first("SELECT forumid FROM thread WHERE threadid=$threadid");
      $curforumid=$getforumid[forumid];
    }
  }

  $categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category WHERE displayorder<>0 ORDER BY displayorder");
  while ($category=$DB_site->fetch_array($categorys)) {

    $optionselected="";

    $forums=$DB_site->query("SELECT forumid,title,displayorder FROM forum WHERE displayorder<>0 AND active=1 AND categoryid=$category[categoryid] ORDER BY displayorder");

    $forumshown=0;
    $tempjumpforumbits="";

    while ($forum=$DB_site->fetch_array($forums)) {

      if ($hideprivateforums==1) {
        $getperms=getpermissions($bbuserid,$bbusergroupid,$forum[forumid]);
      } else {
        $getperms[canview]=1;
      }

      if ($getperms[canview]==1) {
        $forumshown=1;

        $jumpforumid=$forum[forumid];
        $jumpforumtitle="  $forum[title]";

        if ($curforumid==$jumpforumid) {
          $optionselected="selected";
          $selectedone=1;
        } else {
          $optionselected="";
        }
        eval("\$tempjumpforumbits .= \"".gettemplate("jumpforumbit")."\";");
      } // end if $getperms...
    } // end while

    if ($usecategories==1 and $forumshown==1) {
      $jumpforumid="";
      $jumpforumtitle="";
      eval("\$jumpforumbits .= \"".gettemplate("jumpforumbit")."\";");

      if ($curforumid=="cat".$category[categoryid]) {
        $optionselected="selected";
      }
      $jumpforumid="cat$category[categoryid]";
      $jumpforumtitle="Category: $category[title]";
      eval("\$jumpforumbits .= \"".gettemplate("jumpforumbit")."\";");

      $optionselected="";

      $jumpforumid="";
      $jumpforumtitle="--------------------";
      eval("\$jumpforumbits .= \"".gettemplate("jumpforumbit")."\";");
    }
    // add forum bits
    $jumpforumbits.=$tempjumpforumbits;
    
    }
    $forumpick = $jumpforumbits;
    //END CHOOSE FORUM HACK
Now, in the newthread template, add this where you feel fit (I added it under subject and fooled around with the alt colors):
Code:
<td><normalfont><B>Forum:</B></normalfont></td>
<td><SELECT name="forumid">$forumpick</SELECT> <smallfont>(Please choose an appropriate forum)</smallfont></td>
VERY IMPORTANT. Also in newthread template, scroll down towards the end, and find:
Code:
<INPUT TYPE="HIDDEN" NAME="forumid" VALUE="$forumid">
Replace with:
Code:
<INPUT TYPE="HIDDEN" NAME="OLDforumidOLD" VALUE="$forumid">
-----------

There you go! All done!

Now, if a user selects the "--------------" or a category from the dropdown, it will give an error saying that the forum doesn't exist, and if you followed a valid link, to email the webmaster. You might want to change this or you'll probably get emails saying "I couldn't post!!"

[Edited by Ed Sullivan on 08-02-2000 at 02:35 AM]
Reply With Quote
  #8  
Old 08-02-2000, 09:55 AM
Guest
 
Posts: n/a
Default

any forum where i can see this working ? want to see if it's something i would add to my forum

thanks
Reply With Quote
  #9  
Old 08-02-2000, 03:00 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Ed Sullivan
But first, some user testimonial:

"Love it!" - Me2Be

Hehe, sorry, had to
LOL Mike! Funny

Me2, Mike got this one done sooo quickly, maybe we should start making some more hack requests? hehehe

-Chris
Reply With Quote
  #10  
Old 08-02-2000, 03:06 PM
Guest
 
Posts: n/a
Default

Oh, don't ya worry Chris, I've got plenty (and he knows it)

Here's my latest idea
http://www.vbulletin.com/forum/showt...?threadid=2191
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 01:00 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.05283 seconds
  • Memory Usage 2,270KB
  • Queries Executed 23 (?)
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
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (9)postbit
  • (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
  • 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