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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2008, 08:20 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default $messagearea .......?

is there a way i can make something show up when you go to make a new post or reply and make that something show up in the message by default and non removable in all messages in all threads?

possiably looking for a way to edit the default blank $messagearea

i can not find a template to edit for the $messagearea
Reply With Quote
  #2  
Old 03-25-2008, 08:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you mean make the same thing show up in all posts or have the message be something from a Mod/Admin and unique to each post? If you have it show up in the message area (the part I am posting in right now), then they would be able to delete/edit it. You would have to add something to the post as it is posted and not have it come up when they hit the Edit button - so most likely add something into the postbit or postbit_legacy templates.
Reply With Quote
  #3  
Old 03-25-2008, 08:33 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im talking about haveing like lets say using <if conditions=" user ID r whatever i choose

then they can put something in there post that is like lets say under there post for everyone else to see

but when they put a message in the area the i choose then only the specified users that can see the field when making the post only them members can see that message when viewing the post

if thats too confussing for you then just let me know and ill try to explain it better
Reply With Quote
  #4  
Old 03-25-2008, 08:39 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think what you are saying is you want some text to be input by the user and only some users, ones that you specify, will be able to see it?

I think the easiest way to do this would be to add another text box to the Reply/Post area, and add another column to the post table for that content and do conditionals around that text when you spit it out into the postbit. Not hard, but not real simple either.
Reply With Quote
  #5  
Old 03-25-2008, 08:39 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

like here look lets say that you are a vip member of my site and this is a new post that i just made

START DEMO

Post Title - this is my ghetto post demo

Message:
this is my ne post right here and all users can see this message because it is just a normal post

VIP EYES ONLY MESSAGE AREA

then in this part of the post only the vip members will be able it
so it could contain special details for the normal part of the post or what ever

Signature and all that good stuff goes here

END OF DEMO

but see like i want somethign like that you know its kinda like a hidden message in posts that only certian member groups will have the ability to use and stuff you know

i mean i know how to code it i just dont know where to go to start editing in vb to make another text area in all posts and shit you know

--------------- Added [DATE]1206481463[/DATE] at [TIME]1206481463[/TIME] ---------------

so ya i mean where do i go to edit this crap i know i wold need to edit:

new post, new reply, postbit and/or postbit legacy depending on what one i want to use

the only problem is what to i have to put in there to show a 2nd text area

you know what is the coding or where is the coding for a message field like that i guess is what im asking
Reply With Quote
  #6  
Old 03-25-2008, 08:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You might want to take a look at the Form Hack and maybe use that. I would turn on the option to put the Template Name in the HTML Source Code (vboptions > general settings) and then view all the pages you want to make this change to. For example, looking at Quick Reply on the bottom of the showthread page shows that the template for the message area is the showthread_quickreply template. The textarea with the name "message" is in there and I guess you could add your own text area in there also for just this special content.
Reply With Quote
  #7  
Old 03-25-2008, 08:51 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ya i was thinking about using the forum hack as i alreay do for a few other things

i was just looiking for a way to do a quick template edit or something that i can do just to add a conditional extra text area in all posts in all catagories and all forums you know

is that even possiable?
Reply With Quote
  #8  
Old 03-25-2008, 09:03 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, you can add the textarea, but like I said, you will also need to add the column into the database to save that text. And, that means you also need the column name into the array for the post columns so you can use the datamanager to store it. And, since it will be it's own text area and own column, then when you pull it from the database, it will be easy to put conditionals around it when you go to spit it out.
Reply With Quote
  #9  
Old 03-25-2008, 09:05 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

alright thanks for the info ima try to see if i can find all the info i need for all that stuff and hopefully i will get it all working and everything and then release it here on vb org for everyone else to enjoy

--------------- Added [DATE]1206483595[/DATE] at [TIME]1206483595[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
Yeah, you can add the textarea, but like I said, you will also need to add the column into the database to save that text. And, that means you also need the column name into the array for the post columns so you can use the datamanager to store it. And, since it will be it's own text area and own column, then when you pull it from the database, it will be easy to put conditionals around it when you go to spit it out.
any tips you can give me to point me in the right direction to do that?
Reply With Quote
  #10  
Old 03-28-2008, 03:46 AM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey ya no luck with this thing here

can i get some kinda help on how to do all this that i want to do?

if someone dose it for me then you can take all credit for this mod that would be made

all i ask is to see it before its released and some kinda credit for the idea of the mod

please help people please

this would be a realy great mod for vip members to have a lil extra that only they can see in the posts
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:46 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.04075 seconds
  • Memory Usage 2,260KB
  • 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
  • (1)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
  • (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