Author Topic: user permission (messages and tooltip)  (Read 59853 times)

0 Members and 1 Guest are viewing this topic.

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: user permission (messages and tooltip)
« Reply #45 on: May 06, 2006, 10:21:20 PM »
Hi,

I put the following two lines into categories.html and details.html

Code: [Select]
<script type="text/javascript" src="./templates/photofront/wz_tooltip.js" language="JavaScript" ></script>
<a href="index.php" onmouseover="return escape('asffsffsfasdf')">Homepage </a>

On both sites the link is displayed but not the tooltip.

thanks for helping me


try to put
Code: [Select]
<script type="text/javascript" src="{template_url}/wz_tooltip.js" language="JavaScript" ></script> in footer.html and it should work fine  :wink:

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: user permission (messages and tooltip)
« Reply #46 on: May 06, 2006, 10:57:52 PM »
Thanks, it works perfect!   :D

Offline leh00

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: user permission (messages and tooltip)
« Reply #47 on: August 05, 2006, 12:40:39 PM »
I would like to add the message to main.php like TheOracle mentioned in this tread

I added:
Code: [Select]
$lang['no_permission_msg']= "Details nur für <B>eingeloggte</B> Mitglieder oder <B>unzureichende</B> Rechte <img src=\'{template_url}/smilies/cool.gif\'>";
to main.php.

I added:
 
Code: [Select]
"lang_no_permission_msg" => $lang['no_permission_msg'],
to the part $site_template->register_vars(array( in page_header.php

I added/updated:
 
Code: [Select]
$no_permission = (!empty($show_link)) ? "" : "{lang_no_permission_msg}";
in functions.php

The message does not show up when the page is loaded...

When I replace the message in functions.php it works... somehow it's not loaded correctly... :roll:

Any help is appreciated...

Regards

Leh00

I solved it:

To use the code {lang_no_permission_msg} was wrong -> after adding {lang_no_permission_msg} to random_imgage.html and thumbnail_bit.html it works perfect.
« Last Edit: August 05, 2006, 02:21:03 PM by leh00 »

Offline leh00

  • Newbie
  • *
  • Posts: 22
    • View Profile
Problem with single quote in categorie description
« Reply #48 on: October 05, 2006, 08:09:39 PM »
I tried to add the category description to the tooltip... everthing works fine till I have a link to a image in the description.

Example:
Code: [Select]
<div onmouseover="return escape('<B>{cat_description}</B>...
and this is what I get out in the browser...

onmouseover="return escape('<B>Cat Text<img src='./../templates/abc/smilies/smile.gif'></B>')

I tried to add the \ to the text in the description like: "Cat Text<img src=\'./../templates/abc/smilies/smile.gif\'> but the "\" are lost -> filtered by the code...

Any ideas?

Regards

Leh00