Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Hover-Over text/boxes
Avatar
Bart C.
New Jersey, USA
Member
Free Members
sp_UserOfflineSmall Offline
Oct 5, 2014 - 9:33 am

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

Avatar
Bart C.
New Jersey, USA
Member
Free Members
sp_UserOfflineSmall Offline
Oct 5, 2014 - 10:18 am

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?

Avatar
Bart C.
New Jersey, USA
Member
Free Members
sp_UserOfflineSmall Offline
Oct 5, 2014 - 11:04 am

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>

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 5, 2014 - 12:15 pm

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...

Avatar
Bart C.
New Jersey, USA
Member
Free Members
sp_UserOfflineSmall Offline
Oct 5, 2014 - 7:20 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 5, 2014 - 7:50 pm

okay thanks...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626