Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 08-04-2014, 06:57 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by montym

I have a programmer standing by. Just need to tell him what to do...
Quote:
Originally Posted by ForceHSS View Post
If he is a programmer he should know what to do
Now that is the best thing I have heard in awhile.
Reply With Quote
Благодарность от:
ForceHSS
  #12  
Old 08-04-2014, 07:52 PM
montym montym is offline
 
Join Date: Jul 2014
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

He's never worked with a forum like this, so I need to give him specific instructions. So, "Hey, you're a programmer, you know what to do" probably won't work. Great suggestion, though.
Reply With Quote
  #13  
Old 08-04-2014, 08:22 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If he has no clue about coding for vB, our instructions will probably not be much help, either. It is highly adivsable to follow vB procedures when coding addons.

You could tell him to make a plugin that creates a unique hash when a thread is created and save it into a new field of the thread table. You need that hash because it is terribly easy to guess threadids, and that's all you need to access a thread via URL.

Next, he'd have to get that hash into the link that is being sent to the user, which would probably be in the showthread template. Of course, you need to make sure it's only present in forums where you want to use this.

Then tell him to create another plugin that changes the forum permission on the fly when that hash is present as an URL parameter (I have not tried whether that is possible or not; this may be the hardest part). Of course, you will have to make sure that the hash is passed across pages in multi-page threads, which may prove to be not trivial. Maybe it's possible to manipulate the posts per page setting on the fly, too, so you could push it up to, like, 500, to make sure all posts in a thread are being shown on one page. Again - this plugin needs to be active only for forums you actually want to use this, and checks need to be in place this can't be used to get around permissions for other restricted forums.

If you can't adequately change the forum permissions on the fly, you'd have to create a seperate page that shows the thread to the user, not implementing vB permissions and getting the data from the table yourself. If your programmer knows what he's doing, he could probably use the existing postbit templates.

That's all I can think of from the top of my head, and yes, for a programmer that has never worked with vB there are lots of pits to fall into.
Reply With Quote
Благодарность от:
ForceHSS
  #14  
Old 08-06-2014, 10:45 PM
montym montym is offline
 
Join Date: Jul 2014
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm wondering if it would be possible to just send the content of the threads' post via email instead of sending the link to the thread?

That would serve my purpose and, I assume, be simpler.
Reply With Quote
  #15  
Old 08-07-2014, 07:06 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I assume. It might be possible to hack into the send to friend function, but I have never looked into that. Else you could have that functionality written completely outside the vB Framework (since you have no need of permissions, then), grabbing the necessary data from the database directly. Of course BB-Code would not be rendered.

Anyway - may I ask what those people would do once they receive that E-Mail? They have no way of answering the thread.
Reply With Quote
  #16  
Old 08-07-2014, 05:56 PM
montym montym is offline
 
Join Date: Jul 2014
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's actually just for a validated record -- that this person recorded this information on this date and time.
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 04:49 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.12826 seconds
  • Memory Usage 2,220KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_quote
  • (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
  • (6)post_thanks_box
  • (2)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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