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 - abman5

Pages: [1] 2
1
I need 4images older virsion 1.7.8 and 1.7.9 (original realease from 4hompages).

Please tell me how can I get them. Heve there any link in this site to download older virsions?

Thnaks.

2
How can I disable Lightbox feature?

I want to make admin dir secure. How it possible? Can I change the name of  ../admin/index.php

3
Hello all,

I want that my visitors will register with their unique email address instead of id (name). The email address will be used as their login ID. (just like facebook).
How can I do IT? Please help me.

I also need country field dropdown in registration or edit profile page or both page.
How can I do IT? Please help me.

Thanks

4
V@no,

Thank you. I was wory about my search.php that shows same error. So now solving by your post. I think it will work fine.

5
Error Messages / Fehlermeldungen / Error in search.php
« on: February 28, 2010, 10:23:11 AM »
When I browse http://localhost/4images/search.php , the page open but at the top of the page the following error line shows.
I don't know what is the problem because few days ago there is no error in this page and I didn't do any modification in this time.
Please Help me.

Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 120
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 173
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 120
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 120
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 168
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 120
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 120
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 168
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 120
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 168
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 120
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 168
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 120
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 120
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 120
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 168
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 120
Deprecated: Function ereg() is deprecated in D:\Server\xampp\htdocs\4images\includes\functions.php on line 120

See attachments for functions.php file..

6
V@no,

HERE IS FULL EXPLANATION:

I want to show my 'personalized category menu' in entire site (whole pages) like bellow.

My Category
  Funny
  Animal
  Birds
  Flower
  Paint

Category names comes from a sql table (structure like bellow).

  Cate_name
  ---------------
  Funny
  Animal
  Birds
  Flower
  Paint

I used following code in includes/functions.php

Code: [Select]
function get_mycategory() {
  global $site_db, $lang;

  $sql = "SELECT cate_name FROM table";
  $res = $site_db->query($sql);
  $num_rows = $site_db->get_numrows($res);

  $mycate .= "<ul>";

  if ($num_rows) {
    while($row = $site_db->fetch_array($res)) {
      $mycate .= "<li><a href=\"mycategory.php?brand=$row[cate_name] \">$row[cate_name]</a></li>";
    }
  }
  else {
    $mycate .= $lang['no_cate'];
  }

  $mycate .= "</ul>";
  return $mycategory;
}

And following code used in every php file to display my category

Code: [Select]
$brand = get_mycategory();
if (!$mycategory)  {
  $brand = $lang['no_cate];
}
$site_template->register_vars("mycategory", $mycategory);
unset($mycategory);

My codes workes fine for every parent link
Suppose, www.mysite.com/mycategory.php, www.mysite.com/mytest.php etc.

But shows only Birds (not full category list) like bellow if the link is
www.mysite.com/mycategory.php?mycat=birds

My Category
Birds


Note, mycategory.php used for browsing all this category

How can I solve this? Please help.




7
V@no,

I solved this by myself.
But a problem is, its work on "a_example_page.php" but if the url is "a_example_page.php?id=abc" then content doesn't show.

I didn't find get_categories() in template.php

Why these lines used for in function.php?
Code: [Select]
  global $site_template, $site_db, $site_sess, $config, $lang;
  global $cat_cache, $cat_parent_cache, $new_image_cache, $subcat_ids;

8
Nobody can't help ??

UNBELIEVEABLE

9
 :idea: The link contain virus

10
Code: [Select]
//-----------------------------------------------------
//--- Show Categories ---------------------------------
//-----------------------------------------------------
$categories = get_categories(0);
if (!$categories)  {
  $categories = $lang['no_categories'];
}
$site_template->register_vars("categories", $categories);
unset($categories);

If I place the upper codes in any php file then it shows Categories list on that page. It is really cool, cause I have not to write full code in every page where I want to show it.

But i don't know how its work and where the original code comes from. I asking this question because I want to show a (same) ads in various pages. So I want to make a system like 'Show Categories', so that a small code for various page acts like full code for displaying ads.

Please tell me how 'Show Categories ' builded and linked with which code?
Also can tell system to create 'Show Ads' like 'Show Categories '

11
Installation, Update & Configuration / Upgrading 1.7.6 to 1.7.7 HOW ?
« on: June 16, 2009, 12:53:56 PM »
1. Fro where I'll find only updates to download and update my 4im..1.7.6 to 1.7.7

2. How can I update my existing 1.7.6 virsion

3. I found some forum post url from "ChangeLog Version 1.7.7" and manually update some files by reading that posts. But some other files remain unchanged because there is no link included with ChangeLog. So how can I update my files?

12
It means that,

I will manage all ads from control panel, such as add, delete, modify, set start & end date, manage advertiser etc.
Advertiser can login their account and see all info and stat about their ads. Renew their ads etc.

13
Need ads and advertiser management MOD

14
Mods & Plugins (Requests & Discussions) / Datetime
« on: February 18, 2009, 09:47:03 AM »
1. How datetime stored in database something like '235355654' instead of 2009-01-24 11:21:33   ??

2. How datetime retrive from database like 2009-01-24 11:21:33 from '235355654'   ??

Note: Here datetime is just assumed and not real or accurate.

15
Mods & Plugins (Requests & Discussions) / Re: REQUEST (MOD)
« on: January 30, 2009, 05:14:41 AM »
For printer friendly I want to print just specified section not full page.

Pages: [1] 2