vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   custom field in postbit (https://vborg.vbsupport.ru/showthread.php?t=112798)

webmastershome 04-13-2006 04:35 AM

hi there,

Thanks for view on this.

i want to add some variable in showthread.php or just define a varibale like below

$post['myvariable']='sometext';

and want to print in postbit

$post['myvariable']

when i use the above code , there is no value in the variable

How can i get this value in postbit template ?

Regards
jitender

Freesteyelz 04-13-2006 06:01 AM

Hmm...Can you please give us an idea what variable you want to add in postbit? The reason I ask is that if it's simple text, image or template you do not need to mess with the core vB PHP files; you can simply use the plugin system.

webmastershome 04-13-2006 06:15 AM

Thanks sir,

it's a number+text content,

if there is an simple way to add plugin with vb, i will try,

Because i am very new with VB programming

Regards
Jitender

Freesteyelz 04-13-2006 07:37 AM

Well, a number and text can be done using the $vbphrase. Something more complex I'd create a custom template, add the plugin for it and call the content within the template.

I'm heading to bed now, however, so I'll check back tomorrow. :)

user02934123123 04-13-2006 07:55 AM

Quote:

Originally Posted by Jordan17
<if condition $post['fieldx'];>$post['fieldx'];</if>

I think that should work.

If editing in posbit, it should be the case that you need to remove the inverted-commas around 'fieldx' outside the conditional, so the code looks like this:

Code:

<if condition="$post['fieldx']">$post[fieldx]</if>

webmastershome 04-13-2006 08:15 AM

1 Attachment(s)
Quote:

Originally Posted by Freesteyelz
Well, a number and text can be done using the $vbphrase. Something more complex I'd create a custom template, add the plugin for it and call the content within the template.

I'm heading to bed now, however, so I'll check back tomorrow. :)


it's very good for me. please help me to make it, i am collecting some data from datastore with a template after 'hidprofilecache',
mytemplate

and add some condition on it for postbit.

it's a hack for 3.0.7 and i want to convert it to 3.5.4 and i want to add more option on it,

please help me to make it plugin system

Regards
Jitender

webmastershome 04-13-2006 12:50 PM

hi there i have done it,

Thanks for you reply

Freesteyelz 04-13-2006 11:09 PM

Cool! I definitely like self-serve service. LOL.

Quarterbore 04-26-2006 04:51 PM

May I ask for some help to expand this a little more?

What I want to build is a Trouble ticket system and I could do this by simply creating a forum were all members can see the forum with permsssions to create a new thread, see their own posts, and reply to their own posts... They should not see other threads. So, if I was to set up a forum with pemissions like that and then give my Mods full permission to see and do all... this might make an easy site support system, right.

I believe what I need to do is include the info above with some forumid conditional such as assuming my forum #1 was trouble tickets...

<if condition="$foruminfo[forumid] == 1">
$post['subject']
$post['name']
$post['username']
$post['e-mail']
$post['phone']
</if>

where:

subject = Site Feedback, Registration issues, Log-In Problem, Other
name = Real Name
username = obvious but defined by system in logged in or entered if user can not log in
e-mail = obvious
phone = obvious

Is the best way to do this to add fields to the POST table? Next, I assume that the inputs need to get into the newthread template as well as the postbit as described in here for this to work... I assume a preview template and edit templates would need to be changed too?

Sorry to run off with this thread but the darned Contact Us e-mails are starting to kill me and I have a full staff that could handle 90% of the issues if only the issue would go on the forums.

For more info I did have my own thread on this posted here but this is the first chance to see if I could figure out how to do this on my own...

https://vborg.vbsupport.ru/showthread.php?t=113900

Most of the code already exists in the contactus template plus the minor upgrade I posted here:

https://vborg.vbsupport.ru/showthread.php?t=111728

I just need something like this and I don't claim any ownership to the idea... I just need to get out from under the 50 or more e-mails I seem to get every day from the four vBulletin forums I am trying to run!


All times are GMT. The time now is 02:19 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.02278 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (2)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
  • (9)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