PDA

View Full Version : Append Text To A Post - PLEASE HELP!


Patrick Melton
02-04-2008, 05:21 PM
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
global $vbulletin;

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


$vbulletin->templatecache['postbit_legacy'] = str_replace($search_text,
$search_text.fetch_template('cm_postbit'),$vbullet in->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 1202223480 at 1202223480 ---------------

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

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