Support Forum
Hi Folks,
Was wondering how to delete the boxes that pop up when hovering over a link.
For example, the tool buttons in the upper right corner of every post, the Delete button doesn't need an explanation as to what it does.
Are these coded in the .php or the .css files? What exactly am I looking for when I go to comment them out or delete them?
Thanks,
bart
found the code in the .php files that generates the "tool tips".
In a line like this one
sp_ForumIndexPageLinks('tagClass=spInRowPageLinks spLeft', __sp('Jump to page %PAGE% of topics'));
I've deleted the tip text (Jump to page %PAGE% of topics) and left nothing between the single quotation marks (aka, apostrophes)
Can I record the deleted text immediately below the line by adding
/* Jump to page %PAGE% of topics */
in case I need it in the future?
also just found this for commenting in .php files, from http://www.w3schools.com/php/p.....syntax.asp
Comments in PHP
A comment in PHP code is a line that is not read/executed as part of the program. Its only purpose is to be read by someone who is editing the code!
Comments are useful for:
- To let others understand what you are doing - Comments let other programmers understand what you were doing in each step (if you work in a group)
- To remind yourself what you did - Most programmers have experienced coming back to their own work a year or two later and having to re-figure out what they did. Comments can remind you of what you were thinking when you wrote the code
PHP supports three ways of commenting:
Example
<!DOCTYPE html>
<html>
<body>
<?php
// This is a single line comment
# This is also a single line comment
/*
This is a multiple lines comment block
that spans over more than
one line
*/
?>
</body>
</problem-with-post-edit-buttontml>
<html>
<body>
<?php
// This is a single line comment
# This is also a single line comment
/*
This is a multiple lines comment block
that spans over more than
one line
*/
?>
</body>
</problem-with-post-edit-buttontml>
better to have different topics for different questions or issues...
not sure what you are getting at on tooltips... if you dont want them, just disable... in your spFunctions.php template file of your sp theme, change
define('SP_TOOLTIPS', true);
to false...
for individual tooltips, you can remove the text from the various template functions in your theme template files...
as always, we recommend a child theme or your own theme rather than editing ours directly...
sorry, not following the question on html comments...
Visit Cruise Talk Central and Mr Papa's World
my lesson for today was putting comments into the .php files in order to preserve the stuff I deleted. that's why I posted the comment info.
Obviously I'm not a programmer, was at one time using Fortran but not anytime recently. I've got to guess that a lot of the people surfing through here are end users like myself so I'm just putting info in where I can to help whoever comes in next looking for this stuff.
it makes it harder for a host to have to learn this stuff but it just is what it is.
1 Guest(s)