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: 09-16-2000 Last Update: Never Installs: 0
 
No support by the author.

Howdy Everyone,

I'm thinking about taking a shot at writing a small hack for vBulletin...something I'd love for my own board and something I think will be useful for others...but, I have a problem:

I'm only so-so with PHP and MySQL, which means my code will likely be AMAZINGLY sloppy/messy and un-organized...and probably not nearly the most efficient way to do what I want to do.

My question is: should I even bother? Does the neatness of the code matter, or does it simply have to function?

Thanks!

Show Your Support

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

Comments
  #12  
Old 09-16-2000, 07:06 PM
Guest
 
Posts: n/a
Default

It is certainly great. Here come my list of suggestions:

1) Not log in bit, if you are already logged in then should skip those log in bits
2) on the front there should be a system that says "6 of your saved topics has new replies" or something like that
3) How you going to order the saved topics?
4) Make it into pop-up so a little box comes up with your saved topics.
5) templates would of course be good.
6) no sure what you have done to "5 links" but the pages with the saved threads on them do not have the yellow folder images
7) Sort the saved threads under categories so it does:

Category Group > Category
Thread 1
Thread 2
Thread 3
Category Group > Category 2
Thread 4
Thread 5

8) Make the thread number input thing a hidden field. No point showing that to the vistors, it will only confuse them

Well just some ideas anyway, take what you want from it.
Reply With Quote
  #13  
Old 09-16-2000, 07:08 PM
Guest
 
Posts: n/a
Default

Other thing, it is possible to save the same thread more than once. Need to stop that being possible.
Reply With Quote
  #14  
Old 09-16-2000, 07:57 PM
Guest
 
Posts: n/a
Default

If someone can help me learn more about vB's use of cookies I think I might be able to list the topics with new replies and skip the login bit...the latter definetly needs to be done, but right now I cannot do it on my own.

I'll order the saved topics alphabetically I suppose - but I plan to make them fully sortable - however the user wants!

I just changed the 5 links one...the only reason it doesn't show up on the "new" files is because they don't use templates...I don't know enough about the templates to use them on those pages!

As you can see, this can all be done:

Anyone willing to lend me a hand with the cookies and templates? I think this has the potential to be a VERY cool hack!
Reply With Quote
  #15  
Old 09-16-2000, 08:13 PM
Guest
 
Posts: n/a
Default

By "categories"...do you mean from the forum? Or user-created categories? I'm creating user-categories right now...basically like folders. I don't think most people pay attention to the category names (IE: Customizing vBulletin) as much as they do Forum Names (IE: vBulletin Code Hacks)...

I'm brainstorming on some other things...organization by forums, etc. We'll see what happens!

Now I have something to do while waiting for someone to come and help
Reply With Quote
  #16  
Old 09-16-2000, 08:22 PM
Guest
 
Posts: n/a
Default

Use this at the top of your showthread.php to detect if a user is logged in and if not, send them to a login page. The no_permission template already exists so you do not need to create it.

Code:
if ($bbuserid == 0)
{
   eval("echo standarderror(\$bbtitle,\"".gettemplate("error_nopermission")."\");");
   exit;
}

if ($bbusername == "" || (isset($bbusername))==0)
{
  $getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$bbuserid");
  $username=$getusername[username];
  $bbusername = $username;
}
else
{
   $username = $bbusername;
}
You can reference the users "bblastactivity" time setting in the user table to decide if something is "new" or not.
Reply With Quote
  #17  
Old 09-17-2000, 02:59 AM
Guest
 
Posts: n/a
Default

Hey rangersfan,

Thanks for the code - works like a charm! I'm a bit vague on the bblastactivity thing though - I'm no good with cookies unfortunatly.

I'd also appreciate any help anyone can offer on how to simply call upon one of the script's templates...right now the files are just black text and blue links on a white background.

Features included so far:
- Two glistening new icons ()
- Ability to save a thread with one click if logged in
- Ability to delete thread with one click from saved pages
- Sorting so that you can view the topics you've saved all on one page, or view topics saved from a specific forum.
- A handy-dandy drop-down jump box to navigate through the saved threads.


Coming Up (I hope!):
- Searching the saved threads area.
- Viewable listings of saved threads with new posts in them.
- Prevention of adding the same thread twice.

...and hopefully I'll be able to include the number of replies, date of last post, etc...although I'm not sure where to start with that. I think I have to get to know the inner-workings of vB a bit more.


[Edited by TWTCommish on 09-17-2000 at 12:02 AM]
Reply With Quote
  #18  
Old 09-17-2000, 08:57 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by TWTCommish
doron: could you tell me more about that, either here or through email (chris@movieforums.com)? I'd appreciate some help with "polishing"...my hack is basically functional...all it comes down to now is polishing, documenting and just a tiny thing or two about the templates.
Well, you should check the calls to the db and see if you can reduce them somehow, by either changing 2
short ones into 1 longer one and that kinda stuff. I can look at the code and see what I can do.
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:58 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.03953 seconds
  • Memory Usage 2,253KB
  • Queries Executed 22 (?)
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)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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)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