vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Append Text To A Post - PLEASE HELP! (https://vborg.vbsupport.ru/showthread.php?t=169649)

Patrick Melton 02-04-2008 05:21 PM

Append Text To A Post - PLEASE HELP!
 
I've asked this in several ways over the past few months. No one will answer or help.

This has to be relatively simple. I want to append one line of simple text to posts. Basically, something like "Posted from my Blackberry" or "Posted from my iPhone".

I don't need you to program the logic or conditionals to determine what they are posting from. I can do that. I need someone to tell me WHERE (what file, line, variable) I need to append the text to in order to get it on the end of the post.

Basically where does a post get put in to the database, and how can I append a line of text to it right before that happens?

PLEASE SOMEONE HELP!

loneranger 02-04-2008 05:47 PM

there is a plugin you can use to append text to a post but remember this will work on all posts
PHP Code:

global $vbulletin;

$search_text '<!-- / message -->';
        
$vbulletin->templatecache['postbit'] = str_replace($search_text,
        
$search_text.fetch_template('cm_postbit'),$vbulletin->templatecache['postbit']);
        
        
        
$vbulletin->templatecache['postbit_legacy'] = str_replace($search_text,
        
$search_text.fetch_template('cm_postbit'),$vbulletin->templatecache['postbit_legacy']); 

i found this from another mod but can't remember which one now just remember i didn't write this. This will add the template to the bottom of every post

Patrick Melton 02-05-2008 01:18 AM

I don't know what this means. I don't know if this is somewhere and I need to modify it, or add it, etc.

I don't know what file this is supposed to be.

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

Seriously, at this point I'm willing to pay for help.

I can't believe that this community is clueless on this topic.


All times are GMT. The time now is 06:57 AM.

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.00930 seconds
  • Memory Usage 1,716KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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