Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - yousaf

Pages: 1 [2] 3 4
16
@ V@no,

i used your optimized code for session.php and im extremely glad that with that help i reduced my server load to half. now i want to modify the permalink structure in .htaccess, i changed the structure on a demo site and it worked but i need help in one thing n that is Redirection of old permalink structure to the new one

right now i have this structure in .htaccess

RewriteRule ^img-(.*)-([0-9]+)\.htm$ details.php?image_id=$2&%{QUERY_STRING}

so when i change it to

RewriteRule ^Wallpaper-(.*)-([0-9]+)\.html$ details.php?image_id=$2&%{QUERY_STRING}

how do i redirect the old one to the new structure for Search engine bots and backlinks ? so if someone come from google's search result they go through the new structure instead of a finding a 404 error

regards
Yousaf

17
hi yousaf,

if you want to exlude some categories, then use insteaf of
Code: [Select]
AND a.cat_id IN (4, 9, 15)
this

Code: [Select]
AND a.cat_id NOT IN (4, 9, 15)

Thanks Nicky
i will give it a try when i get back home. you are always there with a solution :D

18
I've seen modification how to make random.php work with sertan categories, but is that possible use all categories and filter the ones I dont want to use?
if I have 200+ categories this way:
Code: [Select]
AND a.cat_id IN (4, 9, 15)would be just pain...if I dont want use 2 categories...
or it would be easier if I creat a new group, then set witch categories that group can access and use this code?:
Code: [Select]
AND b.auth_viewimage=2 or that code only works as 'guest','registered', or 'admin'? (sry, dont speak  german)

Hi Vano, Did you make it work?
sorry for digging out an old post as reference, but i am also looking for a way that a specific category is excluded in the random images on external pages.

19
@ Benny, Vano and Nicky
Thanks for the corrections

i was kinda too sleepy bythetime i was posting it (round about 2 AM, mid night my time)
that was what i wrote with a sleepy head.

20
Attention:

We recommend NOT to use PHPTHumb until they released a fixed version!

The current version 1.7.9-200805132119 (released May 28, 2008) has a big security leak.
Attackers can compromise your server.

Secunia rated this vulnerability as "highly critical".

http://secunia.com/advisories/39556/


EDIT: 4images Team



This a Tutorial about how to use PhpThumb on your 4images gallery,
so that you can show up image size of your choice on details.php
Note: { if you are running your 4images gallery on a Shared hosting and you are getting high traffic then just forget it.
because resizing is using a lot of memory if you are planning to have a lot a visitors and lot of pictures..

instead you maybe try this mod
[MOD] Resize wallpaper for restrain resize template.}

There are lots of post about PhpThumb but none of them have clear instructions
and most the guys are getting this error message
Code: [Select]
phpthumb() v1.7.9-200805132119
"/home/xxx/public_html/xxx/phpthumb/./data/media/26/chapel beach.jpg" does not exist.
because they upload phpthumb files to wrong path
so i think i should post these steps which i followed with the help of Nicky(Thanks Nicky)

1.) Download phpthumb from this link. PhpTumb
then unzip it and just upload these 9 files to your gallery root

1. phpthumb.bmp.php
2. phpthumb.class.php
3. phpthumb.config.php.default    {dont forget to rename it before uploading to phpthumb.config.php}
4. phpthumb.filters.php
5. phpthumb.functions.php
6. phpthumb.gif.php
7. phpthumb.ico.php
8. phpthumb.php
9. phpthumb.unsharp.php

and fonts folder to /captcha/fonts

Delete the other remaining files & folders in Phpthumb folder, as they are not required
Which are

/cache        <--- Delete it
/demo        <--- Delete it
/docs         <--- Delete it
/fonts         <--- Delete it
/images      <--- Delete it
index.php    <--- Delete it


2.)
open phpthumb.config.php and

find
Code: [Select]
$PHPTHUMB_CONFIG['ttf_directory'] = dirname(__FILE__).'/fonts'; // Base directory for TTF font fileschange it to
Code: [Select]
$PHPTHUMB_CONFIG['ttf_directory'] = dirname(__FILE__).'/captcha/fonts'; // Base directory for TTF font files
3.)
open /templates/your template/media/jpg.html and

Find
Code: [Select]
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />replace it with
Code: [Select]
<img src="phpThumb.php?src={media_src}&w=800&h=600" border="0" alt="{image_name}" >
Thats it,
you can see the result on these sites as a kind of demo

WallpaperOwner.com
wallp.ape.rs

21
same for me here, :(
Google does not accept my sitemap.xml

my site map link:  sitemap

this is what i am seeing(the message in the attached snapshot) since the day i added it to my site,
no matter how many times i re-edit the files so that if i missed or typed something wrong could become ok
but they are not accepting it.

anyone here, who used it and is valid/verified in Google's point of View?


in Firefox browser it works but when it comes to internet Explorer it shows the following error

Quote
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

A name was started with an invalid character. Error processing resource 'http://www.wallpaperowner.com/sitemap.xml'. Line ...

 <loc>http://www.wallpaperowner.com/category-animals-&-pets-wallpapers-3.html</loc>  <priority>0.8<...

22
Chit Chat / Re: KurtW MODs and Templates
« on: June 08, 2009, 09:46:15 PM »
hmmm so this was the reason i didnt see two of my fav mods (flash mp3 player and star rating) since i joined this forum after an year(i think so)
Kurt i am really feeling sorry for what you felt/saw lately around with your precious work (mods), and you are right to take any decision but there are lots of legit users who needs help in this forum from Coders/contributors/helpers like your good self.
we miss you and your work
hoping we will see you around soon.

Regards
Yousaf

23
@Harry,

here is it:
http://www.nicky.net/4images/random_more_pics.txt

for certain category add this: http://www.4homepages.de/forum/viewtopic.php?p=4360#4360

@ Nicky, sorry for pulling out an old post as a Quote reference
but i would like to ask for a little help, since by applying your code we get multi images in a vertical column, could you please just make a tweak and change it to horizontal position.

the current positions of images are like this

image1
image2
image3

i want them to be like .... image1  image2  image3

...........
Edited: Oops i didnt know a guy named bergblume already solved this issue on the previous page(i saw it lately and i had to translate his post lolz, i dont know German, hope to learn it from benny some day :P )
anyways. i made it to work with the help of Nicky and bergblume
and i am now able to show 4 random images on a different Domain powered by Wordpress
example: http://www.pashtosms.com see the front page

25
nice site you got farina,
i am also using Iceberg on my newly launched wallpapers site http://www.wallpaperowner.com by replacing themza's photo community template
ICeberg is more kool than many around here.
Hats off to Shabu

26
Hi there,

while adding images to site via "Check new images" in Detailed version.
we have the ability to give description, keywords and name to an image
but the problem is that the preview is loaded in its full resolution.

if i am adding multi amount of images at a time,
its really difficult for me on a dailup connection to wait for preview of each and every image.

i was wondering is it possible to resize preview of an image, like to shrink it down to a thumbnail size or a bit smaller size?

27
great job Benny,
can i keep on suggest, if i apply a mod to my 1.7.7?

[Mod] Display image codes on details page (image permalink)
http://www.4homepages.de/forum/index.php?topic=17912.0

i have just add added this mod to my gallery

28
Discussion & Troubleshooting / Re: New images on different page
« on: June 02, 2009, 05:38:45 PM »
what modification must be made,
 if a person want to display the new images on a completely different domain (external website)
????

29
sorry for bumping
anyone to help?

30
Mods & Plugins (Requests & Discussions) / Re: Thumbnails in RSS
« on: May 29, 2009, 09:26:05 PM »
just like i want it,
Thanks alot its working  :D

Pages: 1 [2] 3 4