lots of things not working lots of things not working
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

lots of things not working

Started by GODFATHER, January 29, 2005, 07:24:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GODFATHER

first i have a lot of things in the gallery that is screwed up:

1- i want to disable right click on the page, when i add the code to the TEMPLATE.HTML file, the whole look of the page screws up

Casper

So you changed the code, and now it does not work.
Without you telling us what code you changed, and what to, how are we to know the answer.

Please give more details, and a link if possible.

Note, disable right click mods etc are a wate of time, imho.  If they have it on the screen, they have the pic.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

GODFATHER

www.youssefchahine.us/imagegallery/

i tried changing the code of the TEMPLATE.html...BUT it didnt work, i want to disable right clicking. i dont mind they have it on screen, when they hotlink images, they use up bandwith, and i dont want that

Casper

Well, the best way to disable hotlinking is with an .htaccess file. 
Your site seems to be working fine for me.  Have you removed the changes you made?

Do you really want all those words at the top on every page, or just the first page?
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

GODFATHER

i tried taking them off, but it screwed up the template look, i want to add them just in the first page yes . and where is the htaccess?

Casper

do a google for .htaccess, that will explain better than I can.

To put the words just on the first page, just use anycontent.php.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

GODFATHER

i cant get rid of what i wrote in TEMPLATE.HTML, whenever i try to take it off, the page screws up

Casper

are you making sure you remove the entire row it is in.  Just removing this should not be a problem;

<tr>

                  <td height="108" valign="top">Welcome to www.YoussefChahine.us photo gallery new & improved! Just to view the pictures, one less click is required to view the full size image. But if you want to download any image (it included wallpapers), you cannot right click - you have to click the download button underneath the image. There is also an option to download a zip. To be able for download any pictures, you have to register. It's free and faster and you'll be able to send ecards, post comments or upload your own art and pics. Just for view registering is not required, but without it you cannot download any picture! Thanks for visiting, and enjoy! PLEASE DO NOT ATTEMPT TO REPRODUCE, DISTRIBUTE ANY OF THE IMAGES HERE WITHOUT CONTACTING THE WEBSITE FIRST. Materials on the site are copyright of www.YoussefChahine.us All rights reserved.</td>

                </tr>
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

GODFATHER

did that. and got a white page and font screwed up , as if the whole script screwed up

and plz explain the htacess, didnt get wat it meant

Casper

I did a google for 'prevent hotlinking with htaccess', and got this as number 1.  it explains it better than I can.

http://www.devpapers.com/article/242

If simply removing that row screws up your page there must be something wrong somewhere.

Try replacing;
<td height="108" valign="top">Welcome to www.YoussefChahine.us photo gallery new & improved! Just to view the pictures, one less click is required to view the full size image. But if you want to download any image (it included wallpapers), you cannot right click - you have to click the download button underneath the image. There is also an option to download a zip. To be able for download any pictures, you have to register. It's free and faster and you'll be able to send ecards, post comments or upload your own art and pics. Just for view registering is not required, but without it you cannot download any picture! Thanks for visiting, and enjoy! PLEASE DO NOT ATTEMPT TO REPRODUCE, DISTRIBUTE ANY OF THE IMAGES HERE WITHOUT CONTACTING THE WEBSITE FIRST. Materials on the site are copyright of www.YoussefChahine.us All rights reserved.</td>



with this;
<td></td>
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

GODFATHER

still didnt work..i didnt change anything

Joachim Müller

well, if you didn't do anything, what is supposed to change then? ;)
To implement hotlinking protection, you should start by removing all hotlinked content from your site - your template.html contains reference to http://www.aboutjulia.com/juliaimages/themes/hardwired/images/dots01.gif (even if you own that other domain or the site owner let's you hotlink, this is not a good idea, as mayn users (and especially corporate users behind special advert blockers) don't allow images from other domains to show up on your page.
Try removing the added text from template.html and then let us know the results instead of just posting that it didn't work. The JavaScript code you applied for no-right clicking works as expected... However, this is not related to hotlinking (two entirely different animals).

Joachim