vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can't find custom text (https://vborg.vbsupport.ru/showthread.php?t=309373)

makaiguy 03-10-2014 06:25 PM

Can't find custom text
 
vB 3.8.7 PLII

A L-O-N-G time ago I modified the description for the report post form to add some custom text. I'd like to revise it again, but I'm darned if I can find where my modification resides.

There is currently a phrase only_used_to_report which looks like it is intended for this purpose but my installation doesn't appear to be using it. It does not display the default phrase, nor does updating the wording make any difference as to what is displayed -- my old modified text continues to be displayed.

I've done text searches for my custom text in Phrases, in Templates, in all my uploaded files, and even in the complete database via phpMyAdmin, and come up empty.

The salient part of the report.php file appears to be this:
eval('print_output("' . fetch_template('reportitem') . '");');

The salient part of template reportitem appears to be:
<div class="fieldset">
$forminfo[description]

Can anybody tell me where to find this $forminfo[description] for the report problem post form?

Lynne 03-10-2014 07:17 PM

That is from the phrase "only_used_to_report". Are you editing it correctly by putting what you want into the English Translation textarea? And, are you doing a Force Refresh of the page so you aren't getting a cached version of the page?

makaiguy 03-11-2014 02:47 PM

Thanks for your reply, but unfortunately it is not that easy.

Yes, I know the only_used_to_report phrase is what is supposed to be displayed there, as I mentioned in my original post. Yes, I attempted to modify it by entering an English translation, but neither the original stock phrase nor my translation is what is being shown. No, it is not a cache-viewing issue.

Whatever modification I did way-back-when apparently changed this somehow so that something other than the only_used_to_report phrase is being shown there.

I need to find exactly where in the code the only_used_to_report phrase is supposed to be specified as what is to be shown there, as I must have altered this somehow. If I can just put it back to calling the phrase that's supposed to be there, I'd be all set.

Lynne 03-11-2014 10:07 PM

Doing a search for where "only_used_to_report" gets called in the code shows me it is called five times in the /includes/class_reportitem.php file. So, I would look through that file and see if any code was changed.

makaiguy 03-12-2014 02:10 AM

Thanks so much. I have all installed files backed up on my Windows computer at home, and a Windows text search failed to find any matches. ???

But, examining the /includes/class_reportitem.php file, all five of those instances are there in the file and don't appear to be messed with. In all cases, the description element of the array is being set to only_used_to_report. The file is identical to the copy in my download package from Jelsoft.

So the problem exists elsewhere, but I don't have a clue where to look.

TheLastSuperman 03-12-2014 02:31 AM

Check your plugins in the plugin manager see if anything is there ;).

TheLastSuperman 03-12-2014 03:23 AM

Wait... maybe we are looking at this wrong...

Have you updated recently or overwritten that file? If so then perhaps the reference to what you're looking for is now gone because the file was overwritten - perhaps?

makaiguy 03-12-2014 03:38 AM

Thanks. I *do* have modifications I've done via plugins, so that was one of the first things I checked.

I think this change likely goes clear back to our first vB installation in 2005. Not sure if the plugin engine was even around then -- at least I'm pretty sure *I* was incapable of doing anything with them when first starting out.

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

Quote:

Originally Posted by TheLastSuperman (Post 2486617)
Wait... maybe we are looking at this wrong...

Have you updated recently or overwritten that file? If so then perhaps the reference to what you're looking for is now gone because the file was overwritten - perhaps?

No, no recent update. Actually we need to update pretty badly, but this is always pretty daunting due to our level of customization.

Not sure what you mean by "that file". /includes/class_reportitem.php is still stock -- I've already downloaded a copy from our server and compared against our original Jelsoft download.

Lynne 03-12-2014 06:09 PM

Have you verified that you are looking at the correct template (set General Options > Add Template Name in HTML Comments to Yes) - perhaps you have something changing the template used?

Have you verified it isn't something done in your custom style by looking at the page using a totally default style?

makaiguy 03-12-2014 08:59 PM

Quote:

Originally Posted by Lynne (Post 2486742)
Have you verified that you are looking at the correct template (set General Options > Add Template Name in HTML Comments to Yes) - perhaps you have something changing the template used?

I've had it set that way since this issue cropped up. It's definitely using template "reportitem".

Quote:

Originally Posted by Lynne (Post 2486742)
Have you verified it isn't something done in your custom style by looking at the page using a totally default style?

Only two styles. Both show the same thing. How would I go about using a "totally default style"?
[Aside: One of these is a half-baked developmental one that I'd prefer to remove, but can't find the way to do that. I have it unchecked at least.]
At this point, I've completely deleted the English translation for the only_used_to_report phrase, to avoid any confusion when searching for text strings.

Stock phrase only_used_to_report is:
HTML Code:

<strong>Note</strong>: This is ONLY to be used to report  spam, advertising messages, and problematic (harassment, fighting, or  rude) posts.
What is displayed:
HTML Code:

<strong>Note</strong>: This is ONLY to be used to report problem posts in violation of <a href="http://www.tugbbs.com/forums/tug_rules.php">forum posting rules</a>, e.g. spam, politics, advertising, inappropriate forum, and problematic (harassment, fighting, or rude) posts.  For general communication with BBS Administration, use the <a href="http://www.tugbbs.com/forums/sendmessage.php">Contact BBS Admin</a> link at bottom of the page.
I've searched for text snippets that should be unique to what is actually being displayed, like "posts in violation of" and "For general communication with BBS Administration" using vB's internal "Search in phrases" and "Search in templates" and both come up empty. Likewise searching my entire /forums directory on the server finds nothing. Searching the entire database via phpMyAdmin doesn't find it either. This text has to be coming from SOMEWHERE, but I'm darned if I can figure out where.


All times are GMT. The time now is 11:45 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.01057 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_html_printable
  • (3)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