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 - Sun Zaza

Pages: 1 2 [3] 4 5 6 7
31
Programming / Getting information in 2 columns instead of 1(List)
« on: January 16, 2010, 07:10:23 PM »
Hello guys,

I have a simple question (Not for me anyway :oops:):

On my gallery I made a list of all my images (Without thumb). Something like:
1- image1
2- image2
3- image3
...
...
...


Till now I have no problem.

Now I want to have this in 2 columns instead of 1.

I am uisng this code:

Code: [Select]
$video_list .= "<tr><td valign=\"top\" class=\"sortable\">".$i++."- <a href=\"".$site_sess->url(ROOT_PATH."details.php?image_id=".$image_row['image_id'])."\">".$image_row['image_name']."</a></td> 
   
</td></tr>
   ";                   
}     
}
  $video_list .= "</table>\n";
 
$site_template->register_vars("video_list", $video_list);
unset($video_list);

Many thanks in advance,
Cruxy

32
Feedback & Suggestions / 4images tableless
« on: January 16, 2010, 06:51:06 PM »
Hello guys,

4images should come with a tabeless version. I am trying to change the HTML code of my galery and I have to say that I am enjoing myseld doing that. It is easier and faster. :wink:

Good luck 4images guys. I love your work.
Cruxy

33
Hello guys,

I am trying to integrate TinyMCE into my gallery ACP version 1.7.7, but without progress.

I believe I did everything good. But when I click on add image, I do not see the TinyMCE.

In the admin_functions, I added:

Code: [Select]
<script type="text/javascript" src="{SCRIPT_URL}tiny_mce/tiny_mce_gzip.js"></script>
<script type="text/javascript">
tinyMCE_GZ.init({
plugins : 'inlinepopups,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras',
themes : 'advanced',
languages : 'en',
disk_cache : true,
debug : false
});
</script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "inlinepopups,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,|,visualchars,nonbreaking",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
});
</script>


Before:

Code: [Select]
<script type="text/javascript" language="javascript" src="<?php echo ROOT_PATH?>admin/browserSniffer.js"></script>
    <script type="text/javascript" language="javascript" src="<?php echo ROOT_PATH?>admin/calendar.js"></script>


Any help will be appreciated,
Cruxy

34
Mods & Plugins (Requests & Discussions) / 3 lightboxes instead of one (1)
« on: January 07, 2010, 10:56:01 PM »
Hi all,


I want to have 3 lightboxes on my gallery instead of one. For example: Lightbox1, lightbox2 en lightbox3.


V@no has this mode:

[MOD] Multi-Lightboxes v1.03
http://www.4homepages.de/forum/index.php?topic=10625

but I don't want that the users create their own lightboxes.

Have anyone any idea how to code that?

Many thanks in advance,
Cruxy

35
Hi,

On the details page can everybody vote on an image. I want a second vote system only for Admin. That means, only admin can vote on the images.

Please I need to have that on my gallery.

Thank you very much in advance for your support and help.

Cruxy

36
Hello,

I started 2010 with a lot of questions.

How can you register users for certain period? For example:

Via admin area I register the userA for a period of 1 month, after that he wil not be able to log in again.

PS: 4IMAGES has this option for goups, not yet for users

Many thanks in advance for your help.
Cruxy

37
Hello,

It will be very useful if you have an option in the admin area to set the maximum number of registerd users. For example:

I want Only 1000 registerd users in my gallery. So nobody else can register till I change that in the admin area.

Possible? (Ofcouse everything is possible, but it is too much work to do that?)
I think a lot of people will like this mod.

Any help please?
Cruxy

38
Hello,

How can i tweak my 4images gallery to make the users can log in also with their USER ID?. I have seen that in many other scripts.

Many thanks in advance,
Cruxy

39
Hi guys,

First of all I wish everybody a happy 2010.

I have question:

How do I deactive the Register feature? I want to register the new users ONLY  via the admin area by myself. I want also that nobody can visit the register page: www.website.com/register.php.

PS: I already searched in the forum, but without success.

Any help will be appreciated.
Cruxy

40
Programming / This code is wrong. I need help
« on: December 03, 2009, 11:28:02 PM »
Hello,

I need some help in this code:

I added a column to my database: image_game
I created also a new tabel: zu_games (zu_game_id, zu_games_game..)

For example: I have 10 images on my galery. 5 images from the game1 and 5 images from the game2. So the field image_game has the value game1. And also the other 4 image_game. Clear?
As result I want something like:
GamesImage ids
Game11, 2, 3, 4, 5
Games26, 7, 8, 9, 10

With the following code I got this result. That means he get only 1 image id instead of everything.

GamesImage ids
Game11
Games26

Code: [Select]
$sql = "SELECT *, i.image_id, i.image_game
        FROM (".ZU_GAMES_TABLE." g)
LEFT JOIN (".IMAGES_TABLE." i) ON (i.image_game = g.zu_games_game)
        WHERE zu_games_game LIKE '%$zu_games_team1%' AND zu_games_game LIKE '%$zu_games_team2%'
GROUP BY zu_games_game
ORDER by g.zu_games_date ASC
";
        
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);

if (!$num_rows)  {
   $zu_game_teams_games = "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\"><tr><td>No info</td></tr>";
}
else  {
    $zu_game_teams_games = "<table class=\"head2\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
    <tr><td><b>#</b></td>
<td><b>Date</b></td>
<td><b>Game</b></td>
<td><b>Videos</b></td>
</tr>
    ";
    
   $i = 1;
   while ($zu_games_row = $site_db->fetch_array($result)){  
  
   $zu_games_date = date("d-m-Y", $zu_games_row['zu_games_date']);  
   $day = substr($zu_games_row['zu_games_day'], 0, 2);

   $image_game2 = "".$zu_games_row['image_id'].", ";
   $image_id_videos = substr($image_game2, 0, -2);
  
      $zu_game_teams_games .= "<tr>
 <td valign=\"top\" class=\"sortable\"><b>".$i++."</b></td>
      <td valign=\"top\">".$day." ".$zu_games_date."</td>
      <td valign=\"top\"><a href=\"".$site_sess->url(ROOT_PATH."zu_games.php?zu_games_id=".$zu_games_row['zu_games_id'])."\">".$zu_games_row['zu_games_game']."</a></td>
      <td>".$image_id_videos."</td>
      </td></tr>
   ";
}      
}
  $zu_game_teams_games .= "</table>\n";
  
$site_template->register_vars("zu_game_teams_games", $zu_game_teams_games);
unset($zu_game_teams_games);


I apreciate any help.

Cruxy

41
Programming / if (!$zu_games_id) doesn't work. Any help please?
« on: November 28, 2009, 04:50:51 PM »
Hello,

On every 4images gallery, you can create an images_id, cat_id or user_id. Om my gallery I can create also games_id.
My question is:

On the page games.php I want to use this following code, but it doesn't word:
Code: [Select]
if (!$zu_games_id) {
    redirect("index.php");
}

That means if the user try to open a page which doesn't exist, he will be redirect to the homepage.
For example:

My last games_id on my gallery is 10 (games_id = 10). So if the user want to reach this following page, he will be send to the homepage:
www.mywebsite.com/games.php?games_id = 5000

The script does not understand what !$zu_games_id means.het is still giving a page without any infomation from the database.

Any help will be appreciated,

Cruxy

42
Hello,

The dropdown option mod of V@no is one of the master works of him. I am using it many times on my gallery. Thanks V@no.

[MOD] Dropdown options for custom database fields
http://www.4homepages.de/forum/index.php?topic=7112.0


I want to start a new topic on purpose instead of on the same mod topic, because now we are going now to another level.

My question is:

How can we change the %dropdown_array% array to get information from the database?

$additional_user_fields['%column_name%'] = array("%field_description%", "%admin_field_type%", %is_required%, %dropdown_array% [, %is_multidimention%, %is_number%, %start_number%, %is_auto%]);

Code: [Select]
$additional_user_fields['user_gender'] = array($lang['user_gender'], "dropdown", 0, array("---", "male", "female"), 0, 1, 5, 0);

For example I want in the dropdown box all the usernames form the database.
Of course I can do it with another way, but I want to use the additional dropdown option.


Many thanks in advance,
Cruxy

43
Hello,

How can I tweak the Keywoords code in the functions.php to give as results something like:

So if you have 3 keywords, it will show in the details page something like:
1, 2, 3

Instead of:

Barcelona, Madrid, Malaga

That means that for some reason I do not want to show the value of the keywords, but only the digits.


This is the code of functions.php:

Code: [Select]
  if (!empty($image_row['image_keywords'])) {
    $split_keywords = explode(" ", $image_row['image_keywords']);
    $keywords = "";
    $keywords_count = 0;
 
    foreach ($split_keywords as $key => $val) {
    $keywords_count++;
 
      $keywords .= (($keywords != "" ) ? ", " : "")."<a href=\"".$site_sess->url(ROOT_PATH."search.php?search_keywords=".urlencode($val))."\">".format_text($val, 2)."</a>";
    }
  }
  else {
    $keywords = REPLACE_EMPTY;
  }

  if (!check_permission("auth_readcomment", $image_row['cat_id'])) {
    $image_row['image_allow_comments'] = 0;
  }

Many thanks in advance for you help,
Cruxy

44
Discussion & Troubleshooting / Image_number = image_id + 1000
« on: October 09, 2009, 05:50:52 PM »
Hi,

I need your help to solve this issue:

I added a new column to my images table: image_number.

I want that the value of this field always: image_id + 1000. That means if image_id = 1 than image_number = 1001.

I really need some support guys.

I appreciate any help,

Cruxy

45
Hello,

To add a new template to the gallery is very easy. For example soccer1.php and soccer1.html.

Now I want to add more that 100 templates and I am thinking about using some maps to stop those files. For example:

www.website.com/soccer/soccer1.php
www.website.com/soccer/soccer2.php
www.website.com/soccer/soccer3.php

.....

And:

www.website.com/templates/default/soccer/soccer1.html
www.website.com/templates/default/soccer/soccer2.html
www.website.com/templates/default/soccer/soccer3.html

....


How can I do that? I really need that.

Is there any mod to do that?


I appreciate any help or advise.
Many thanks in advance,
Cruxy

Pages: 1 2 [3] 4 5 6 7