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.


Topics - batu544

Pages: 1 [2] 3 4
16
Mods & Plugins (Requests & Discussions) / Comment box in a popup window
« on: August 04, 2010, 10:01:23 PM »
Hi All-
            Is it possible to display the comment box in a modal popup window ?? means If someone clicks on the link called "add your comment" , a new modal popup window  will be displayed to enter the comment and after successfully posting a comment it will be auto closed.



Thanks,
batu544

17
Mods & Plugins (Requests & Discussions) / Online users statistics on ACP
« on: August 01, 2010, 02:47:25 PM »
Hi,
    Is it possible to get small section on the top right hand corner of the ACP panel displaying total users online statistics.. ?? The most important point is.. can it be auto refreshable ??


Thank you ..
 

18
Mods & Plugins (Requests & Discussions) / Login Forever
« on: July 12, 2010, 08:28:48 AM »
Hi,
    Is there anything can be done to stay logged in forever ( until we press logout) when we are in ACP ?

Thanks,
batu544

19
Discussion & Troubleshooting / Getting 1 year back images
« on: July 05, 2010, 11:34:27 AM »
Hi,
    Could anyone please let me  know how can I get the images which I have added one year back..??

I checked the image_date field but its a integer not a date and my knowledge in mysql is not so good.. :)

If image_date would be a date field and its in DB2 then the condition would be like this..

Code: [Select]
i.image_date < 1 YEAR 


It would be great, if someone can let me know the equivalent syntax of the above statement in mysql and for 4image..


Thanks,
batu544

20
Chit Chat / For moderators.... MOD marked as SPAM..
« on: June 03, 2010, 06:11:56 PM »
Hi,
    I just posted one mod and don't know why it automatically flagged as SPAM.. Could any moderator please mark that mod as clean ?

After that, this post can be deleted..

Thanks,
batu544

21
Hi,
    Here again an another random image mod .. :)  . This mod is different from the other random image mods in the following ways..

1. It uses a .swf file to show the random images.
2. Image transition happens in couple of nice effects.
3. All the play and pause control appears inside the .swf player, so, it will save some space on your website . :)
4. If you want you can view the random images on full screen also.

Well.. now starts the steps..

Step 1 :

1.1.  Download the attached imagerotator.swf and swfobject.js file. ( unzip the imagerotator.zip file)
 
Step 2 :

2.1      In the below code change all www.yourdomain.com to your actual domain name and save it as xml.php.

Code: [Select]
<?php
header
("Content-type: text/xml; charset=utf-8");
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: xml.php                                              *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.x                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (http://www.4homepages.de/4images/lizenz.php) für       *
 *    weitere Informationen.                                              *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (http://www.4homepages.de/4images/lizenz_e.php) for further         *
 *    information.                                                        *
 *                                                                        *
 *************************************************************************/

// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie
define('ROOT_PATH''./');

include(
ROOT_PATH.'config.php');
include(
ROOT_PATH.'includes/db_mysql.php');
include(
ROOT_PATH.'includes/constants.php');


$site_db = new Db($db_host$db_user$db_password$db_name);
function 
is_remote($file_name) {
  return (
preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i'$file_name)) ? 0;
}

// NUMBER OF IMAGES TO DISPLAY 
$num_images 10;

$sql "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments
        FROM "
.IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
        WHERE a.image_active=1
        AND a.cat_id = b.cat_id
        AND b.auth_viewcat="
.AUTH_ALL."
        AND b.auth_viewimage="
.AUTH_ALL."
        ORDER BY RAND()
        LIMIT 
$num_images";
$result $site_db->query($sql);
echo 
"<?xml version='1.0' encoding='UTF-8'?>
\n";
echo "<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">\n";
echo " <trackList>\n";
while ($row = $site_db->fetch_array($result)){
  $image_id = $row['image_id'];
  $cat_id = $row['cat_id'];
  $image_name = $row['image_name'];
  $thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : MEDIA_DIR."/".$cat_id."/".$row['image_thumb_file'];
  echo " <track>\n";
  echo " <title>$image_name</title>\n";
  echo " <creator>www.yourdomain.com</creator>\n";
  echo " <location>http://www.yourdomain.com/$thumb_src</location>\n";
  echo " <info>http://www.yourdomain.com/details.php?image_id=$image_id</info>\n";
  echo " </track>\n\n\n";
}
echo " </trackList>\n";
echo "</playlist>\n";

?>



Step 3 :

   3.1        Now upload all three files into your root folder.

   3.2  Open your templates/your-folder/home.html file and place the following code to show the random images.. Change the www.yourdomain.com with your actual domain name.

Code: [Select]
<div id="container">
<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this rotator.
</div>
 <script type="text/javascript" src="./swfobject.js"></script>
 <script type="text/javascript">
var s1 = new SWFObject("./imagerotator.swf","rotator","336","280","9");
s1.addVariable("file","http://www.yourdomain.com/xml.php");
s1.addVariable("width","340");
s1.addVariable("height","280");
s1.addVariable("backcolor","0x000000");
s1.addVariable("screencolor","0xFFFFFF");
s1.addVariable("overstretch","none");
s1.addVariable("usefullscreen","false");
s1.write("container");
</script>

   
All the variable are mentioned in the above code are self explanatory.. You can change those as per your requirement.

For more variable details you can follow this url ==> http://developer.longtailvideo.com/trac/wiki/ImageRotatorVars


Demo : bhwallpapers.com



Now you are done.. :)


Thanks,
batu544

22
Mods & Plugins (Requests & Discussions) / Thumbnail of fixed size
« on: May 31, 2010, 02:10:41 PM »
Hi,
   Is it possible to create fixed size thumbnails ? Right now whenever I am creating a thumbnail its creating it with 150 width or 150 height depending on the image size. and If I am uploading a image of wide resolution, then the thumbnail is also generating like that..( the height of the thumbnail is less than the other thumbnails )
    but I want to creat the thumbnails of a constant size 200x200 size.If the image is extra wide or height is more than the width, then it should create the thumbnails by just cropping the extra widths from center..
   
    It will be a great help, if someone can help me on this..
   

Thanks,
batu544

23
hi All -
            Its already 2 years, I have been using 4image for my wallpaper website and I have noticed link-exchange is a very important thing for search engine ranking and 4image lacks this. 4image doesn't have any inbuilt link-exchange functionality.

   Right now I am using some other scripts to add the links in my gallery. It would be very helpful, if someone can write a MOD for this.. :)


Thanks,
batu544

24
Programming / Tools for debugging PHP scripts line by line..
« on: May 05, 2010, 07:53:29 AM »
HI,
     I am not sure, whether you guys are using any other debug tool.. but today, I found a tool which we can use to debug the php script line by line..

Please follow this link  http://netbeans.org/index.html    and install the required software to start debugging ..


As you guys know.. I am not a PHP developer.. so for me its really very hard to find a mistake in PHP..  :oops:


Please let me know if anyone is using any other debug tool for php...


Thanks,
batu544

25
Chit Chat / Stop Spammers
« on: April 24, 2010, 05:40:18 PM »
Hi,
        Whenever I login into my ACP, I can see a lot of users usually browsing my website.. but actually most of them are spammers. I started blocking the spammers by their IPs.. but is this the only way to stop the spammers.. ??   

  Is there any better way to stop the spammers to visiting one website ?

Thanks,
batu544



26
Discussion & Troubleshooting / Possible attack on my Gallery !!!
« on: April 10, 2010, 11:58:26 PM »
Hi,
     I don't know whether someone has just cracked into my gallery or not, but today suddenly found 2 new folders has been created and some php files are out there ..Could anyone please look into this php file and let me know what exactly its trying to do..

Code: [Select]
REMOVED

Also, I found a file called error_log and the content on this is..
Code: [Select]
[04-Apr-2010 06:07:03] PHP Warning:  fopen() [<a href='function.fopen'>function.fopen</a>]: URL file-access is disabled in the server configuration in /home/xxxxxxx/public_html/ulmml/pkh.php on line 373
[04-Apr-2010 06:07:03] PHP Warning:  fopen(http://safechecker2.net/w.txt) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: no suitable wrapper could be found in /home/xxxxxx/public_html/ulmml/pkh.php on line 373
[04-Apr-2010 06:07:03] PHP Warning:  feof(): supplied argument is not a valid stream resource in /home/xxxxxxx/public_html/ulmml/pkh.php on line 375
[04-Apr-2010 06:07:03] PHP Warning:  fgets(): supplied argument is not a valid stream resource in /home/xxxxxxx/public_html/ulmml/pkh.php on line 377
[04-Apr-2010 06:07:03] PHP Warning:  fclose(): supplied argument is not a valid stream resource in /home/xxxxxxx/public_html/ulmml/pkh.php on line 381



If anyone can let us know what type of attack is this and how can I stop it in future , then it would be a great help..!!

Thanks,
batu544

edit: replaced the folder name with xxxxxx

27
Mods & Plugins (Requests & Discussions) / Need a customized search.php
« on: February 27, 2010, 05:47:05 AM »
Hi,
     I want to modify the existing search.php or create a new search.php to put in my homepage. Currently my homepage lists all the categories, but I want to change it. Now    want to provide a search function, so that user can search their favorite celebrities only by typing the names.

In other words, Can we change the search.php to search only category names ?? No other variables required as a input to the search_new.php script..


Thanks,


 

28
HI All -
           I have done some changes in my website, so that the actual image will be opened in a new window from detail page, when a user will click on the image. but Now I want to count this "open of original image" as one downloaded .. so want to add 1 to the download count..

Is it possible to add this to the download count.. ??


Any idea how can I do this ??


29
Chit Chat / 4image & My site ranking .. !!
« on: November 09, 2009, 01:48:17 PM »
HI All -
           I am writing this in a very sad mood.. :( . After running my website for more than one year my daily page hit is only 300-400 in average, which I consider very very low. I have applied the SEO MOD, modified the Meta tags also, I don't think my site looks so bad :)  , but I don't know why my sites page rank is still a BIG zero in google.


IF anyone have any suggestion or better idea, then please let me know. Please feel free to suggest any kind of changes in my website which will help my users.


By the way, recently I have added 4-5 links in my website.. in a hope that it will increase my traffic... :roll:


Thanks,
batu544

30
Mods & Plugins (Requests & Discussions) / search image by size
« on: October 31, 2009, 05:07:54 AM »
Hi All -
            I want to search all the images which are less than 800 px in width and delete it from my website. Is there anyway to do this ??

Thanks
batu544


Pages: 1 [2] 3 4