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

0 Members and 1 Guest are viewing this topic.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: user permission (messages and tooltip)
« Reply #15 on: January 24, 2006, 01:22:20 AM »
@TheOracle
... it is not a MOD ... it was only a tip for Chicco ( a german user ) ...
... but if you want : please add the $lang to the thread ( for our english speaking users ) ...
... thanks in advance ...  :wink:

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

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 #16 on: January 24, 2006, 01:31:18 AM »
@V@no
... after installing the tooltip script this site works also slower ...
... and another slow working site you can find ... here below ...
I don't know how it was working before, but for me it opens very fast...
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 mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: user permission (messages and tooltip)
« Reply #17 on: January 24, 2006, 01:38:31 AM »
@ V@no
... also this ... ?
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

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 #18 on: January 24, 2006, 02:24:25 AM »
Lets see...the front page is almost 200kb (uncompressed, dont check it with FF, it compress pages in the cache and shows the compressed size), with quiet a few javascripts, which possibly could scan entire (200kb!) page for whatever they are supposed to scan (its my speculation on that one) and besides that, you are using some sort of "preloading" script, that shows a message untill all items of the page fully loaded...I guess, if you remove the preloading script, maybe then you'll be able to tell if its slower or not ;)
So, after all that, adding another JS could possibly overload the browser, which would slow down the rendering process...
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 mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: user permission (messages and tooltip)
« Reply #19 on: January 24, 2006, 02:07:25 PM »
@ V@no
... thanks for your statements and views ...

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: user permission (messages and tooltip)
« Reply #20 on: January 24, 2006, 09:56:56 PM »
Quote
V@no
... after installing the tooltip script this site works also slower ...
... and another slow working site you can find ... here below ...

maybe the site is working slow, due to big tables (lot of information show in so many nested tables- all in one big table), if the tables were separated out then the browser could have processed each table faster... I guess this is the problem... this script works fine :)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: user permission (messages and tooltip)
« Reply #21 on: January 24, 2006, 10:18:07 PM »
@maxpaul:

It is doubtful that HTML tables would slow down a site - unless extensive presentation would be involved (but it doesn't seem to be the case here). ;)

It's probably a scripting problem elsewhere on the script.

Offline Sir Sky-Walker

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: user permission (messages and tooltip)
« Reply #22 on: February 12, 2006, 05:57:04 PM »
I have thise error:

Parse error: parse error, unexpected T_STRING in /usr/export/www/vhosts/funnetwork/hosting/olpi/4images/includes/template.php(133) : eval()'d code on line 578

My thumbnail_bit.html is looking at this moment:

<!-- you wish detail page in a small javascript open window, use {thumbnail_openwindow} -->
<b>{image_name}</b>&nbsp;&nbsp;{if image_is_new}<sup class="new">{lang_new}</sup>{endif image_is_new}
<br /> {if user_loggedout} onmouseover="return escape('whatever message you want to be showed');"{endif user_loggedout}  {thumbnail}<br />
<a href="{cat_url}">{cat_name}</a><br />
{if allow_comments}{lang_comments} {image_comments}{endif allow_comments}<br /><img src="{template_image_url}/{image_rating_round}.gif">
<br>Hits:&nbsp;{lang_hits}{image_hits}</br><p>{if image_is_potm}{lang_potm}{endif image_is_potm}</p>

I have only put in the code. Or musst I do anythink else?

Sorry for my bad english. German is better ;-)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: user permission (messages and tooltip)
« Reply #23 on: February 12, 2006, 06:14:28 PM »
Quote

Parse error: parse error, unexpected T_STRING in /usr/export/www/vhosts/funnetwork/hosting/olpi/4images/includes/template.php(133) : eval()'d code on line 578


This error has been covered in the FAQ already. Please visit that section (or use the forum's search engine). ;)

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: user permission (messages and tooltip)
« Reply #24 on: February 19, 2006, 02:07:20 PM »
Anyone tried this with random images
It wont work for me when I use this code
Code: [Select]
<span{if user_loggedout} onmouseover="return escape('Please register/login to view this image!');"{endif user_loggedout}>{thumbnail}<br /></span>
« Last Edit: February 19, 2006, 04:38:25 PM by BartAfterDark »

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 #25 on: February 19, 2006, 07:40:34 PM »
There are two templates for random images, did you add this into both of them? (a link to your site could help too ;))
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 BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: user permission (messages and tooltip)
« Reply #26 on: February 19, 2006, 08:40:36 PM »
Can't post a link right now (behind proxy/ISA server) :(
But the problem is {if user_loggedout} as soon I remove the tags it works. (But then it shows for all images)

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 #27 on: February 19, 2006, 08:51:30 PM »
In includes/page_header.php find:
Code: [Select]
  "self" => $site_sess->url($self_url),Insert below:
Code: [Select]
  "user_loggedin" => ($user_info['user_level'] == GUEST) ? 0 : 1,
  "user_loggedout" => ($user_info['user_level'] == GUEST) ? 1 : 0,
  "is_admin" => ($user_info['user_level'] == ADMIN) ? 1 : 0,
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 BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: user permission (messages and tooltip)
« Reply #28 on: February 19, 2006, 08:55:01 PM »
WOW.
That worked.
Thank you soo much v@no ;)
Did I miss a FIX ?


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 #29 on: February 19, 2006, 08:59:16 PM »
Did I miss a FIX ?
No, it wasnt discovered till now ;)
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)