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 - Eagle Eye

Pages: [1] 2 3 4 5 ... 13
1
Suppose {media_src} produces /data/media/1/file_name.zip as output in template

How to get output like  /data/media/1/file_name/ with a new tag like {media_src2}


Thanks :)

Edit: Looks like i found a way:

$media_src2 str_replace(".zip""/"$media_src);  

2
@Vano, Is it possible to modify this MOD to just simply check for duplicate filename only? Best variant would be to check for duplicate file name and extension while uploading

Thanks!

This will be helpfull in sitivation where the file name does not change and a user uploads a same file with the same file name, instead of it being renamed and added, can this mod detect and warn that already a file with this name exists somewhere in database and need to proceed with the renaming or not!

3
@Vano, Is it possible to modify this MOD to just simply check for duplicate filename only? Best variant would be to check for duplicate file name and extension while uploading

Thanks!

4
Mods & Plugins (Requests & Discussions) / Related Images
« on: March 26, 2013, 02:30:57 PM »

Is there a way to mark a image being related to another image(s) while adding to database? So that they are permanently linked?

I found a MOD that searches for similar images based on keywords, not the type i am looking for.
Similar Images: http://www.4homepages.de/forum/index.php?topic=26671.0

5
Thanks, this seems to have fixed the problem!

6
I have been having issues with multiple open sessions from same IP, some times hundreds. I do not understand why a user from one IP needs so many open sessions. Could this be due to any bugs in the MODs applied?
The website does not receive much traffic.

Is the a way to limit the number of open sessions from one IP at a time... say only 10 secession from any one IP at any given time? If an 11th session is opened, then automatically close the first open secession?

The below given log is taken from the admin panel, you can see multiple open session to index.php (homepage) from same ip over and over.... it does not make sense why this is happening:

Code: [Select]
United States Guest     19.12.2012 12:59     index.php             157.55.33.81
United States Guest     19.12.2012 12:59     index.php             157.55.34.166
United States Guest     19.12.2012 12:59     index.php             157.55.33.81
United States Guest     19.12.2012 12:59     index.php             157.56.93.193
United States Guest     19.12.2012 12:58     index.php             157.55.35.100
United States Guest     19.12.2012 12:58     index.php             157.55.34.166
United States Guest     19.12.2012 12:56     index.php             157.55.34.166
United States Guest     19.12.2012 12:59     index.php               157.55.34.166
United States Guest     19.12.2012 12:59     index.php             157.55.33.81
United States Guest     19.12.2012 12:59     index.php             157.55.34.166
United States Guest     19.12.2012 12:56     index.php             157.55.33.81
United States Guest     19.12.2012 12:58     index.php             157.55.34.166
United States Guest     19.12.2012 12:56     index.php             157.55.33.81
United States Guest     19.12.2012 12:56     index.php             157.55.34.166
United States Guest     19.12.2012 12:56     index.php             157.55.34.166
United States Guest     19.12.2012 12:56     index.php             157.55.33.81
United States Guest     19.12.2012 12:56     details.php?image_id=75     157.56.93.193
United States Guest     19.12.2012 12:56     details.php?image_id=20     157.56.93.193
United States Guest     19.12.2012 12:56     index.php               157.55.33.81
United States Guest     19.12.2012 12:56     index.php                   157.55.33.81
United States Guest     19.12.2012 12:58     index.php             157.56.93.193
United States Guest     19.12.2012 12:56     index.php             157.55.34.166
United States Guest     19.12.2012 12:57     index.php             157.56.93.193
United States Guest     19.12.2012 12:58     index.php             157.55.34.166
United States Guest     19.12.2012 12:58     index.php             157.56.93.193
United States Guest     19.12.2012 12:58     index.php             157.55.35.100
United States Guest     19.12.2012 12:58     index.php               157.55.33.81
United States Guest     19.12.2012 12:58     index.php             157.55.34.166
United States Guest     19.12.2012 12:56     index.php             157.55.33.81
United States Guest     19.12.2012 12:56     index.php             157.55.34.166
United States Guest     19.12.2012 12:56     index.php             157.55.33.81
United States Guest     19.12.2012 12:56     index.php             157.55.34.166
United States Guest     19.12.2012 12:57     index.php             157.55.35.100
United States Guest     19.12.2012 12:57     index.php             157.56.93.193
United States Guest     19.12.2012 12:57     index.php             157.55.35.100
United States Guest     19.12.2012 12:57     index.php             157.55.34.166
United States Guest     19.12.2012 12:57     index.php             157.55.35.100
United States Guest     19.12.2012 12:57     index.php             157.55.34.166
United States Guest     19.12.2012 12:57     index.php             157.55.33.81
United States Guest     19.12.2012 12:57     index.php             157.55.35.100
United States Guest     19.12.2012 12:57     index.php             157.55.33.81
United States Guest     19.12.2012 12:57     index.php             157.55.35.100
United States Guest     19.12.2012 12:57     index.php               157.55.35.100
United States Guest     19.12.2012 12:59     index.php             157.55.34.166
United States Guest     19.12.2012 12:57     index.php             157.55.33.81
United States Guest     19.12.2012 12:57     index.php             157.55.34.166
United States Guest     19.12.2012 12:58     index.php             157.55.33.81
United States Guest     19.12.2012 12:58     index.php             157.55.34.166
United States Guest     19.12.2012 12:58     index.php             157.55.35.100
United States Guest     19.12.2012 12:58     index.php             157.55.34.166
United States Guest     19.12.2012 12:58     index.php             157.55.33.81
United States Guest     19.12.2012 12:58     index.php             157.55.35.100
United States Guest     19.12.2012 12:58     index.php             157.55.33.81
United States Guest     19.12.2012 12:59     index.php             157.56.93.193
United States Guest     19.12.2012 12:59     index.php             157.55.35.100
United States Guest     19.12.2012 12:59     index.php             157.55.33.81
United States Guest     19.12.2012 12:59     index.php             157.55.35.100
United States Guest     19.12.2012 12:59     index.php             157.55.35.100
United States Guest     19.12.2012 12:59     index.php             157.56.93.193
United States Guest     19.12.2012 12:58     index.php             157.55.35.100
United States Guest     19.12.2012 12:59     index.php             157.55.34.166
United States Guest     19.12.2012 12:59     index.php             157.56.93.193
United States Guest     19.12.2012 12:59     index.php           157.55.35.100
United States Guest     19.12.2012 12:59     index.php               157.55.33.81
United States Guest     19.12.2012 12:59     index.php             157.55.34.166
United States Guest     19.12.2012 12:59     index.php             157.55.35.100
United States Guest     19.12.2012 12:59     index.php             157.55.33.81
United States Guest     19.12.2012 12:59     index.php             157.55.35.100
United States Guest     19.12.2012 12:59     index.php             157.55.33.81
United States Guest     19.12.2012 12:59     index.php               157.55.34.166
United States Guest     19.12.2012 13:00     index.php             157.55.33.81
United States Guest     19.12.2012 13:00     index.php             157.55.35.100
United States Guest     19.12.2012 13:00     index.php             157.55.33.81
United States Guest     19.12.2012 13:00     details.php?image_id=12     157.55.32.105
United States Guest     19.12.2012 13:00     details.php?image_id=20     199.21.99.82
United States Guest     19.12.2012 13:00     index.php             157.56.93.193
United States Guest     19.12.2012 13:00     index.php             157.55.35.100
United States Guest     19.12.2012 13:00     details.php?image_id=18     157.55.32.105
United States Guest     19.12.2012 12:55     details.php?image_id=23     157.55.35.100
United States Guest     19.12.2012 12:57     index.php   157.55.35.100
United States Guest     19.12.2012 12:57     index.php   157.55.33.81
United States Guest     19.12.2012 12:57     index.php     157.56.93.193
United States Guest     19.12.2012 12:57     index.php   157.55.35.100
United States Guest     19.12.2012 12:57     index.php   157.56.93.193
United States Guest     19.12.2012 12:57     index.php         157.55.35.100
United States Guest     19.12.2012 12:57     index.php       157.55.34.166
United States Guest     19.12.2012 12:57     index.php       157.55.35.100
United States Guest     19.12.2012 12:57     index.php     157.55.34.166
United States Guest     19.12.2012 12:57     index.php     157.55.35.100
United States Guest     19.12.2012 12:57     index.php     157.55.34.166
United States Guest     19.12.2012 12:57     index.php     157.55.35.100
United States Guest     19.12.2012 12:57     index.php     157.55.34.166
United States Guest     19.12.2012 12:57     index.php     157.55.33.81
United States Guest     19.12.2012 12:57     index.php       157.55.34.166
United States Guest     19.12.2012 12:57     index.php     157.55.35.100
United States Guest     19.12.2012 12:57     index.php     157.55.34.166
United States Guest     19.12.2012 12:57     index.php       157.55.35.100
United States Guest     19.12.2012 12:57     index.php     157.55.33.81
United States Guest     19.12.2012 12:57     index.php     157.55.34.166
United States Guest     19.12.2012 12:57     index.php     157.55.35.100
United States Guest     19.12.2012 12:57     index.php     157.55.34.166
United States Guest     19.12.2012 12:57     index.php       157.55.35.100
United States Guest     19.12.2012 12:57     index.php       157.56.93.193
United States Guest     19.12.2012 12:57     index.php       157.55.33.81
United States Guest     19.12.2012 12:57     index.php       157.55.34.166
United States Guest     19.12.2012 12:57     index.php     157.56.93.193
United States Guest     19.12.2012 12:57     index.php     157.55.35.100
United States Guest     19.12.2012 12:57     index.php     157.55.33.81
United States Guest     19.12.2012 12:58     index.php       157.55.35.100
United States Guest     19.12.2012 12:58     index.php       157.56.93.193
United States Guest     19.12.2012 12:58     index.php       157.55.33.81
United States Guest     19.12.2012 12:58     index.php       157.55.34.166
United States Guest     19.12.2012 12:58     index.php     157.55.35.100
United States Guest     19.12.2012 12:58     index.php     157.55.33.81
United States Guest     19.12.2012 12:58     index.php       157.55.35.100
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php     157.55.33.81
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php     157.55.35.100
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php     157.56.93.193
United States Guest     19.12.2012 12:58     index.php     157.56.93.193
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php     157.55.33.81
United States Guest     19.12.2012 12:58     index.php     157.55.35.100
United States Guest     19.12.2012 12:58     index.php     157.55.33.81
United States Guest     19.12.2012 12:58     index.php       157.56.93.193
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php       157.56.93.193
United States Guest     19.12.2012 12:58     index.php       157.55.35.100
United States Guest     19.12.2012 12:58     index.php       157.55.33.81
United States Guest     19.12.2012 12:58     index.php     157.55.35.100
United States Guest     19.12.2012 12:58     index.php       157.55.33.81
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php       157.55.33.81
United States Guest     19.12.2012 12:58     index.php       157.55.34.166
United States Guest     19.12.2012 12:58     index.php     157.55.33.81
United States Guest     19.12.2012 12:58     index.php       157.56.93.193
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php     157.55.33.81
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php       157.55.33.81
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php     157.55.33.81
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php     157.56.93.193
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php     157.55.33.81
United States Guest     19.12.2012 12:58     index.php     157.55.35.100
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php     157.56.93.193
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     index.php       157.55.33.81
United States Guest     19.12.2012 12:58     index.php     157.56.93.193
United States Guest     19.12.2012 12:58     index.php     157.55.35.100
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:58     details.php?image_id=15     66.249.73.154
United States Guest     19.12.2012 12:58     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     index.php     157.55.35.100
United States Guest     19.12.2012 12:59     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     index.php     157.55.35.100
United States Guest     19.12.2012 12:59     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     index.php     157.56.93.193
United States Guest     19.12.2012 12:59     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     index.php     157.56.93.193
United States Guest     19.12.2012 12:59     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     details.php?image_id=34     66.249.73.154
United States Guest     19.12.2012 12:59     index.php     157.55.33.81
United States Guest     19.12.2012 12:59     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     index.php     157.55.35.100
United States Guest     19.12.2012 12:59     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     index.php       157.55.33.81
United States Guest     19.12.2012 12:59     index.php     157.55.35.100
United States Guest     19.12.2012 12:59     index.php       157.55.34.166
United States Guest     19.12.2012 12:59     index.php     157.55.35.100
United States Guest     19.12.2012 12:59     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     index.php     157.56.93.193
United States Guest     19.12.2012 12:59     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     index.php       157.55.35.100
United States Guest     19.12.2012 12:59     details.php?image_id=10     66.249.73.154
United States Guest     19.12.2012 12:59     details.php?image_id=13     199.21.99.82
United States Guest     19.12.2012 12:59     details.php?image_id=11     157.55.32.105
United States Guest     19.12.2012 12:59     index.php     157.56.93.193
United States Guest     19.12.2012 12:59     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     index.php     157.56.93.193
United States Guest     19.12.2012 12:59     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     index.php     157.55.35.100
United States Guest     19.12.2012 12:59     details.php?image_id=23     157.55.32.105
United States Guest     19.12.2012 12:59     index.php     157.55.33.81
United States Guest     19.12.2012 12:59     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     details.php?image_id=12     157.55.32.105
United States Guest     19.12.2012 12:59     index.php     157.55.34.166
United States Guest     19.12.2012 12:59     index.php     157.55.35.100
United States Guest     19.12.2012 12:59     details.php?image_id=12     157.55.32.105
United States Guest     19.12.2012 12:59     index.php     157.55.33.81
United States Guest     19.12.2012 12:59     index.php     157.55.35.100
United States Guest     19.12.2012 12:59     index.php     157.55.33.81
United States Guest     19.12.2012 13:00     index.php     157.56.93.193
United States Guest     19.12.2012 13:00     index.php     157.55.34.166
United States Guest     19.12.2012 13:00     index.php     157.55.33.81
United States Guest     19.12.2012 13:00     details.php?image_id=12     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.55.34.166
United States Guest     19.12.2012 13:00     index.php     157.55.33.81
United States Guest     19.12.2012 13:00     index.php       157.55.34.166
United States Guest     19.12.2012 13:00     index.php     157.55.33.81
United States Guest     19.12.2012 13:00     details.php?image_id=12     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.55.35.100
United States Guest     19.12.2012 13:00     details.php?image_id=12     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.55.35.100
United States Guest     19.12.2012 13:00     index.php     157.55.33.81
United States Guest     19.12.2012 13:00     index.php     157.55.35.100
United States Guest     19.12.2012 13:00     index.php     157.55.33.81
United States Guest     19.12.2012 13:00     index.php     157.56.93.193
United States Guest     19.12.2012 13:00     index.php     157.55.34.166
United States Guest     19.12.2012 13:00     details.php?image_id=12     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.56.93.193
United States Guest     19.12.2012 13:00     details.php?image_id=12     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.55.34.166
United States Guest     19.12.2012 13:00     index.php       157.56.93.193
United States Guest     19.12.2012 13:00     details.php?image_id=12     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.55.34.166
United States Guest     19.12.2012 13:00     details.php?image_id=23     66.249.73.154
United States Guest     19.12.2012 13:00     index.php     157.55.35.100
United States Guest     19.12.2012 13:00     details.php?image_id=12     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.55.33.81
United States Guest     19.12.2012 13:00     index.php     157.55.34.166
United States Guest     19.12.2012 13:00     details.php?image_id=23     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.56.93.193
United States Guest     19.12.2012 13:00     details.php?image_id=23     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.55.34.166
United States Guest     19.12.2012 13:00     details.php?image_id=18     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.55.35.100
United States Guest     19.12.2012 13:00     index.php       157.55.34.166
United States Guest     19.12.2012 13:00     details.php?image_id=18     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.55.33.81
United States Guest     19.12.2012 13:00     index.php     157.55.34.166
United States Guest     19.12.2012 13:00     index.php       157.55.33.81
United States Guest     19.12.2012 13:00     index.php     157.55.34.166
United States Guest     19.12.2012 13:00     index.php     157.56.93.193
United States Guest     19.12.2012 13:00     index.php     157.55.35.100
United States Guest     19.12.2012 13:00     index.php     157.55.34.166
United States Guest     19.12.2012 13:00     index.php     157.55.33.81
United States Guest     19.12.2012 13:00     details.php?image_id=23     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.55.34.166
United States Guest     19.12.2012 13:00     details.php?image_id=23     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.55.35.100
United States Guest     19.12.2012 13:00     index.php     157.56.93.193
United States Guest     19.12.2012 13:00     details.php?image_id=18     157.55.32.105
United States Guest     19.12.2012 13:00     index.php     157.56.93.193
United States Guest     19.12.2012 13:00     index.php     157.55.33.81
United States Guest     19.12.2012 13:00     index.php     157.55.35.100
United States Guest     19.12.2012 13:00     index.php     157.55.34.166
United States Guest     19.12.2012 13:00     details.php?image_id=23     157.55.32.105
United States Guest     19.12.2012 13:00     details.php?image_id=23     54.234.18.153
United States Guest     19.12.2012 13:00     details.php?image_id=46     199.21.99.82
United States Guest     19.12.2012 13:00     details.php?image_id=23     66.249.73.154
United States Guest     19.12.2012 13:00     index.php     157.56.93.193
United States Guest     19.12.2012 13:00     index.php     157.55.35.100
United States Guest     19.12.2012 13:00     details.php?image_id=23     157.55.32.105


Solved by Rembrandt http://www.4homepages.de/forum/index.php?topic=31073.msg163233#msg163233

7
On a website that receives very little visitors, logging into the admin panel, In the visitors list i noticed hundreds of index.php by same ip address. This caused the mySQL server to crash and the host started complaining to fix this problem. When i checked the ip address, it belong to a search engine bot.

After a little search on this forum, i came to the conclusion that its an open db connection that was not closed and resulted in too many open mySQL connections. What could be the reason of this?

Anyway i tried a crude fix.... in the home.html template, i included
$site_db->close();

and after few minutes removed it..... this somehow seemed to fix all the problem.... all the extra index.php went away and the mysql server came back to normal.

Can any one please explain why there are multiple index.php listing from the same ip and why this causes the mysql server to become unavailable or slow and why the above code seems to fix it  :roll:

Thanks

Edit: Is there a way to limit the number of parallel connections from same ip, will this solve this issue?

Edit2: If i set "mysql.allow_persistent" to "off" will it solve this problem? Will it have any negative effect on the script?

8
Mods & Plugins (Requests & Discussions) / Re: Random pictures
« on: November 26, 2009, 06:33:53 AM »
@V@no

Is it possible to mod this code: http://www.4homepages.de/forum/index.php?topic=4259.msg17513#msg17513 so that it will only randomize the images once in xx hours?

I've added version B, with cache, in that post

Thanks V@no. This is a great addition to this MOD.

I was looking for a different approach, is it possible to cache just the MySQL query results and not generate an individual home page for every new user.... instead just cache the query and write this results in a cache page and serve the same query results to the template engine/php for every user in that time frame.... so what i mean is there will be only one cache file for all users in that time frame....

thank you very much for looking into this.

9
Mods & Plugins (Requests & Discussions) / Re: Random pictures
« on: November 24, 2009, 06:39:34 AM »
@V@no

Is it possible to mod this code: http://www.4homepages.de/forum/index.php?topic=4259.msg17513#msg17513 so that it will only randomize the images once in xx hours?


Addition: The reason i think this feature would be useful is because on large websites having lots of images and traffic, randomizing the images each time the page loads will have a huge performance degradation on database server and most shared hosting account will not be allowed to use so much server resources.

10
Mods & Plugins (Requests & Discussions) / Re: Random pictures
« on: November 23, 2009, 08:06:30 AM »
@V@no

Is it possible to mod this code: http://www.4homepages.de/forum/index.php?topic=4259.msg17513#msg17513 so that it will only randomize the images once in xx hours?

11
Plugins / Fixed: Re: [Plugin] Check Files on server v1.2 (2009-03-29)
« on: October 10, 2009, 12:56:28 PM »
@V@no

Is it possible to disable the check thumbnail where the script looks for missing thumbnails and keep the remaining features.... which line should i comment out?

Thanks  :D

ok, I guess i have solved it myself ;)

Code
Code: [Select]
if ($ok || $ok_t) {
$log .= $row['image_id'].",".$ok.",".$ok_t.",".$where.",".$where_t.";";
}
changed to
Code: [Select]
if ($ok) {
$log .= $row['image_id'].",".$ok.",".$ok_t.",".$where.",".$where_t.";";
}

12
I am testing this mod (using the gallery for pdf files with gif files as preview in details page) and have modified it in such a way to show file size (of PDF), and the download feature in details.php downloads the pdf version.
the PDF file and its GIF preview are both sored in the same folders. The GIF file is in database and the PDF file is not.

but when i add all the images to a lightbox (i have lightbox for guest by v@no) and then try to download.. the script is zipping and downloading the image previews (GIF files from the details page) and not the required PDF files.

How to mod this, so that i can download both instead of just the image preview?

in short: would like to download both GIF and PDF in a zip file from lightbox.

13
People who has implement this mod noticed what kind of links you are getting for "Use the below codes to post the full sized image on other websites or forums" ??

When i tested, i get the image preview correct.. but the link back is not to the image shown, but to the site root.

Anyone getting similar results?

Solved: Just replace {homepage} with {uploaded_image_link}

14
Hello Marcovich

First of all, 4images is the BEST image management system online!
So u have come to the correct place  :wink: our forum has tons of modification (MODs) which u can apply for extending any functionality of the 4image script.

To make a good wallpaper site, you need to add many extra features using MODs.
First of all look around, pick your favorite wallpaper site and make a list of features it has. Now try to look for them on this forum, i am sure you will find most of them here!  8)

Like Nicky said, have a look at the MODs section and try to implement them.
It sure takes a bit of extra patience and careful editing to get them working, community support if excellent!

I will give u a small list of features u may find interesting, this list is of course not exhaustive.  :roll:
You will find lots of others interesting and useful MODS in this forum that could be used to make a good wallpaper site.  :)


Notes:
1) Make a backup after adding each new MOD, So if things go bad, you can always use the backup and start over again.
2) Read the complete thread before implementing any new MODs, sometimes, you will find a better version down the thread.
3) DO NOT HURRY!!! take your time and slowly edit the files, this will avoid unnecessary trouble.
4) Once you finish adding all the above MOD's check the MOD section for new/other posts.
5) MODs from "V@no" are updated in the very first post, this saves you the trouble to read all the thread.

Have a nice day  :D

15
Discussion & Troubleshooting / Re: DB Error: Bad SQL Query
« on: April 10, 2009, 05:39:50 AM »
Ah, yes.. now i see the error.. its the same error, i had posted in the beginning of this topic...i tried to find the codes as u instructed, but they all seems to be in place.... i know its somewhere there but just cannot find it...

looking into my error log i see the following each time i got "An unexpected error occured. Please try again later"

Code: [Select]
Cannot modify header information - headers already sent by (output started at /home/xxxxxxxxxx/public_html/includes/db_mysql.php:192) in /home/xxxxxxxxxx/public_html/includes/sessions.php on line 101
in file db_mysql.php around line 192 i see:

from line 170-220
Code: [Select]


  function fetch_array($query_id = -1, $assoc = 0) {

    if ($query_id != -1) {

      $this->query_id = $query_id;

    }

    if ($this->query_id) {

      return ($assoc) ? mysql_fetch_assoc($this->query_id) : mysql_fetch_array($this->query_id);

    }

  }



  function free_result($query_id = -1) {

    if ($query_id != -1) {

      $this->query_id = $query_id;

    }

    return @mysql_free_result($this->query_id);

  }



  function query_firstrow($query = "") {

    if ($query != "") {

      $this->query($query);

    }

    $result = $this->fetch_array($this->query_id);

    $this->free_result();

    return $result;

  }



in file sessions.php around line 90 to 120

Code: [Select]
    //@ini_set('session.cookie_lifetime', $this->session_timeout);

    session_name(urlencode(SESSION_NAME));
    @session_start();

    $this->demand_session();
  }

  function set_cookie_data($name, $value, $permanent = 1) {
    $cookie_expire = ($permanent) ? $this->current_time + 60 * 60 * 24 * 365 : 0;
    $cookie_name = COOKIE_NAME.$name;
    setcookie($cookie_name, $value, $cookie_expire, COOKIE_PATH, COOKIE_DOMAIN, COOKIE_SECURE);
    $HTTP_COOKIE_VARS[$cookie_name] = $value;
  }

  function read_cookie_data($name) {
    global $HTTP_COOKIE_VARS;
    $cookie_name = COOKIE_NAME.$name;
    return (isset($HTTP_COOKIE_VARS[$cookie_name])) ? $HTTP_COOKIE_VARS[$cookie_name] : false;
  }

  function get_session_id() {
    if (SID == '') {
      $this->mode = "cookie";
    }

    if (preg_match('/[^a-z0-9]+/i', session_id())) {
      @session_regenerate_id();
    }

    $this->session_id = session_id();

 :?

when i went to postcards.php i got another error in the log...

Code: [Select]
include(./global.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/xxxxxxxxxx/public_html/postcards.php on line 27
[09-Apr-2009 18:23:26] PHP Warning:  include(./global.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/xxxxxxxxxx/public_html/postcards.php on line 27
[09-Apr-2009 18:23:26] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening './global.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxxxxx/public_html/postcards.php on line 27
[09-Apr-2009 18:23:26] PHP Fatal error:  Call to a member function query() on a non-object in /home/xxxxxxxxxx/public_html/includes/sessions.php on line 226

everything seems to be working with the ecard function... can this be due to some file being included somewhere in the postcards template using <?php include(.......); ?> i checked the postcard templates and did not find anything there....

Pages: [1] 2 3 4 5 ... 13