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

0 Members and 1 Guest are viewing this topic.

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: user permission (messages and tooltip)
« Reply #30 on: February 19, 2006, 09:05:05 PM »
he okay ;)
Thank You again. You make life worth living again :p

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: user permission (messages and tooltip)
« Reply #31 on: March 14, 2006, 07:04:23 PM »
This is indeed a nice script. 
I want to add it on the detail page . On mouse over the detail image. But I cant find where to add the code.

I guess the actual image link comes with " {image} " in detail.html.  How can I add this code there ?? ?
I m not a  Programmer.
          But
I m a Good Learner.

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: user permission (messages and tooltip)
« Reply #32 on: March 14, 2006, 08:12:26 PM »
To make the tool tip appear on the details page, u need to add the code into templates/<you template>/media/   to the files jpg.html, gif.html etc as per ur requirements....

Best is to add the following code inside the <td> tag just before the {media_src}

U can also add images (like the smiley i added on www.hotdt.com
Here is my code preview in the <td> tag
Code: [Select]
onmouseover="return escape('&lt;b&gt;::  {image_name}  ::&lt;/b&gt;&lt;br&gt;&lt;br&gt; To view 1024x768px wallpaper&lt;br&gt; click on the picture.&lt;br&gt; Please rate this wallpaper! &lt;img src=\'{template_url}/images/login.gif\' width=\'18\'&gt;')"
tip: if u decide to add it to the <td> tag then comment of the others tags in the .js file and just leave:
Quote
var tt_tags = new Array("td");

if u are interested in the popup function tell me ;)

Hope this was helpful ;)
Regards  :D

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: user permission (messages and tooltip)
« Reply #33 on: March 15, 2006, 06:25:37 PM »
Thanks Max
It really helped me.

Quote
if u are interested in the popup function tell me

Which popup??  I always want to get more  :D  So please share it.
I m not a  Programmer.
          But
I m a Good Learner.

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: user permission (messages and tooltip)
« Reply #34 on: March 15, 2006, 06:39:23 PM »
at www.hotdt.com, on the details image page, when u click on the image, a popup windows comes up, showing the orginal image,

add this javascript to your .js file
Code: [Select]
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

and in between td tags

Code: [Select]
<a href="{media_src}" onClick="NewWindow(this.href,'name','1024','768','yes');return false">
enjoy ;)

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: user permission (messages and tooltip)
« Reply #35 on: March 26, 2006, 06:19:17 PM »
1) I'm using http://www.walterzorn.com/tooltip/tooltip_e.htm script, its a very much cross-browser compatible and rediculousy easy to use and install :)
Just add in thumbnail_bit.html template into your <img> tag:
Code: [Select]
{if user_loggedout} onmouseover="return escape('whatever message you want to be showed');"{endif user_loggedout}

2) A little addition to TheOracle answer: you also can use {if user_loggedout} .... {endif user_loggedout} tags without needed installing additional mod.

Hi there,

i have test this but it doesn´t work :(

I have copy the wz_tooltip.js in my template folder and in my user_logininfo.html i have do this

Quote
<img src="templates/4grey2/icons/einstellungen.gif" onmouseover="return escape('whatever message you want to be showed');">

But it has no effect :(
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: user permission (messages and tooltip)
« Reply #36 on: March 26, 2006, 11:59:33 PM »
I am no expert but try this.

Use
Code: [Select]
<img src="{template_url}/icons/einstellungen.gif">
and you must insert
Code: [Select]
<script language="JavaScript" type="text/javascript" src="{template_url}/wz_tooltip.js"></script>
In your footer.html

I assume your wz_tooltip.js in your template folder.
I m not a  Programmer.
          But
I m a Good Learner.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: user permission (messages and tooltip)
« Reply #37 on: March 28, 2006, 11:57:21 PM »
I am using this Tool in many times in my site & with success.

Few days back , I tried to use it in jpg.html
My code is like this
Code: [Select]
<table width="535" height="402" border="0" align="center" cellpadding="0">
  <tr>
    <td align="center" valign="middle" background="{template_url}/images/lc.gif"><table width="533" height="400" border="0" cellpadding="0">
      <tr>
        <td><img src="{media_src}" border="1" onmouseover="this.T_TITLE='{image_name}';return escape('To Download Full Screen Wallpaper (1024x768) Use The <b>Download</b> Button Below The Image. </br> By Saving This Image Using Right Click, You Will Not Get The Actual Image')" width="533" height="400"/></td>
      </tr>
      </table></td>
      </tr>
</table>

The thing is, when the mouse moves out of the image, the whole page "Blinks" for a second. (I don’t know what to call it)

But this is happening when I added background image. If I remove that part, it woks just fine.

Is there something wrong in the code?  :?
I m not a  Programmer.
          But
I m a Good Learner.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: user permission (messages and tooltip)
« Reply #38 on: March 29, 2006, 01:58:30 AM »
did you try insert it into the table and not into the image?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: user permission (messages and tooltip)
« Reply #39 on: March 29, 2006, 04:45:15 PM »
did you try insert it into the table and not into the image?

Works perfect now   :D

Thanks V@no
I m not a  Programmer.
          But
I m a Good Learner.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: user permission (messages and tooltip)
« Reply #40 on: April 07, 2006, 02:49:42 PM »
I am using tool tip txt in jpg.html and it works just perfect.
I want to do something and was wondering if it could be done with this tool tip.

In my site, I have few categories where only registered users can download images. So I was wondering if I can show two different text in jpg.html.

Something like

If download button enable
Show tooltip 1
If download button disable
Show tooltip 2

Would it be possible ?  :?:
I m not a  Programmer.
          But
I m a Good Learner.

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: user permission (messages and tooltip)
« Reply #41 on: April 07, 2006, 02:57:42 PM »
Try to place this tag inside the message quotes in the jpg.html

{if user_loggedout}message for non registered or non loggedin users{endif user_loggedout}{if user_loggedin}message for registered users{endif user_loggedin}

:D


Offline dgparent

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: user permission (messages and tooltip)
« Reply #42 on: April 27, 2006, 03:31:16 PM »
Try to place this tag inside the message quotes in the jpg.html

{if user_loggedout}message for non registered or non loggedin users{endif user_loggedout}{if user_loggedin}message for registered users{endif user_loggedin}

:D



 I can't find any jpg.html file ?? I am using the standard template and really want a message for people that are not registered to show up when they go to click on a image, but can't get any of these to work.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: user permission (messages and tooltip)
« Reply #43 on: April 28, 2006, 01:50:43 AM »
try media folder ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: user permission (messages and tooltip)
« Reply #44 on: May 06, 2006, 10:02:02 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