vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How to add post title into the post directly (https://vborg.vbsupport.ru/showthread.php?t=295562)

OQP 02-27-2013 07:44 PM

How to add post title into the post directly
 
Hi Friends, I just want that I can post my thread title into the post directly through creating / modifying new thread and not through editing postbit template for example:
Code:

https://vborg.vbsupport.ru/showthread.php?t=123337
After installing this mode you can able to add users info anywhere in the form.. like if you post Hi {usename} it will show me Hi OQP
So i just need like this that when i will post {title} is good post it should show I need to get title of the post into the post is a good post

Edit: I have just put this line in my index.php but it is still not working...
1st Try- Not worked
PHP Code:

echo $vbulletin->$thread['preview'] = str_replace("{title}"$thread['threadtitle'], $vbulletin->$thread['preview']); 

2nd Try- Not worked
PHP Code:

if ($vbulletin->$thread['preview'])
{
echo 
$vbulletin->$thread['preview'] = str_replace("{title}"$thread['threadtitle'], $vbulletin->$thread['preview']);


3rd Try- Not worked
PHP Code:

echo $vbulletin->$thread['preview'] = str_replace("{title}"$post['title'], $vbulletin->$thread['preview']); 

Please help me to get it work....

Thanks in advance... for helping me.

Regards,

OQP 03-03-2013 11:11 AM

Please any one can help me in this regards,

fxdigi-cash 03-06-2013 01:03 PM

I believe you mean adding the thread title at the beginning of the thread, right?

Update: now I understood what you want. I'm sure if your request is possible.... sorry

OQP 03-20-2013 10:30 PM

Any one can help????


All times are GMT. The time now is 03:26 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.01005 seconds
  • Memory Usage 1,721KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete