vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   $messagearea .......? (https://vborg.vbsupport.ru/showthread.php?t=174150)

MiahBeSmokin420 03-25-2008 08:20 PM

$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

Lynne 03-25-2008 08:21 PM

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.

MiahBeSmokin420 03-25-2008 08:33 PM

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

Lynne 03-25-2008 08:39 PM

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.

MiahBeSmokin420 03-25-2008 08:39 PM

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

Lynne 03-25-2008 08:48 PM

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.

MiahBeSmokin420 03-25-2008 08:51 PM

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?

Lynne 03-25-2008 09:03 PM

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.

MiahBeSmokin420 03-25-2008 09:05 PM

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 (Post 1474514)
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?

MiahBeSmokin420 03-28-2008 03:46 AM

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


All times are GMT. The time now is 03:50 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.01037 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete