Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-10-2014, 06:25 PM
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Location: Aiken, SC, USA
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 03-10-2014, 07:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 03-11-2014, 02:47 PM
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Location: Aiken, SC, USA
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 03-11-2014, 10:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-12-2014, 02:10 AM
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Location: Aiken, SC, USA
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 03-12-2014, 02:31 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check your plugins in the plugin manager see if anything is there .
Reply With Quote
  #7  
Old 03-12-2014, 03:23 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 03-12-2014, 03:38 AM
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Location: Aiken, SC, USA
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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.
Reply With Quote
  #9  
Old 03-12-2014, 06:09 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 03-12-2014, 08:59 PM
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Location: Aiken, SC, USA
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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 View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:22 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.03882 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete