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

Pages: 1 2 3 4 [5] 6 7 8 9 ... 159
61
delete:
Code: [Select]
$site_db = new Db($db_host, $db_user, $db_password, $db_name);

62
it is only a html problem... (o:

try this:
Code: [Select]
<?php

define
('ROOT_PATH''/home/&#38;#38;#1090;&#38;#38;#1099;&#38;#38;#1097;/&#38;#38;#1087;&#38;#38;#1099;&#38;#38;#1094;/sait.ru/');

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;
}

$num_images 5;

$sql "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments, a.image_date
        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 a.image_date DESC 
        LIMIT 
$num_images";
$result $site_db->query($sql);

//start table
echo "<table><tr>";
while (
$row $site_db->fetch_array($result)){
    
$image_id $row['image_id'];
    
$cat_id $row['cat_id'];
    
$image_name $row['image_name'];
    
$image_comments $row['image_comments'];
    
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : "http://sait.ru/data/thumbnails/".$cat_id."/".$row['image_thumb_file'];

    
//make column
    
echo "<td>";
    echo 
"<a href=\"http://sait.ru/details.php?image_id=$image_id\"><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"></a><br>\n";
    echo 
"<b>$image_name</b><br>\n";
    echo 
"&#38;#38;#1050;&#38;#38;#1086;&#38;#38;#1084;&#38;#38;#1084;&#38;#38;#1077;&#38;#38;#1085;&#38;#38;#1090;&#38;#38;#1072;&#38;#38;#1088;&#38;#38;#1080;&#38;#38;#1080;: $image_comments\n";
    echo 
"</td>";
}
echo 
"</tr></table>";
//end table
?>

63
Discussion & Troubleshooting / Re: Random Image in user_loginform.html
« on: December 26, 2007, 05:52:43 PM »
Ich habe keine Ahnung wie viel Du schon am Code geändert hast, aber ich persönlich finde die externe Lösung besser weil man so einfacher auf eine neues Version umschwenken kann...

Haltet euch bitte immer vor den Augen das auch die aktuelle Version vielleicht ein Sicherheitsloch hat und dann ist das geschreie groß wenn man ein uUpdate machen muss und alle Anpassungen hin sind.

Und ob Du den Code jetzt in einen vorhandenen Script einbaust oder die Lösung von Nicky nimmst ist nur ein minimaler Unterschied...

65
Discussion & Troubleshooting / Re: Image identifier
« on: December 26, 2007, 05:03:48 PM »
{image_id}

66
Discussion & Troubleshooting / Re: User Profile in a new windows
« on: December 26, 2007, 05:00:12 PM »
$user_name_link = "<a href=\"".$site_sess->url($user_profile_link)."\" target=\"_blank\">".$user_name."</a>";

67
Discussion & Troubleshooting / Re: thumbnail problem
« on: December 26, 2007, 04:59:10 PM »
i have test it with IE 7 and Firefox 2 an on me Site it works...

68
http://www.4homepages.de/forum/index.php?topic=6945.0

with a little modification it will work... (o:

make a Dropdown (for the registration template) with the Usergroups and the value must be the group_id and name it group_id

for example:
<select name="group_id" id="group_id">
  <option value="11">Group where id is 11</option>
  <option value="12">Group where id is 12</option>
</select>

replace:
$group_id = [group_id];

with:
if(isset($_REQUEST['group_id']) && is_numeric(isset($_REQUEST['group_id']) && ($_REQUEST['group_id'] != 1 || $_REQUEST['group_id'] != 2)){
//the red part is only to exclude some groups and make it "save"
     $group_id = $_REQUEST['group_id'];
}
Hope it will work... (o:

69
Discussion & Troubleshooting / Re: thumbnail problem
« on: December 25, 2007, 09:32:51 PM »
try to use css

something like this:
Code: [Select]
#random {
width: 100px;
}

#random a img {
width: 100%;
height: 100%;
}

Code: [Select]
<div id="random">{random_image}</div>

70
Installation, Update & Configuration / Re: Errore in upload Image
« on: December 25, 2007, 09:18:37 PM »
auch wenn das spanisch italienisch ist, sind wir trozdem überrascht  :D

WORD! (o:

71
Discussion & Troubleshooting / Re: User Profile in a new windows
« on: December 25, 2007, 08:20:49 PM »
use target="_blank" not target="_parent"

72
Installation, Update & Configuration / Re: Errore in upload Image
« on: December 25, 2007, 08:10:38 PM »
Nobby? Spanisch? *binüberrascht*

73
Mods & Plugins (Requests & Discussions) / Re: Shop Modul für 4images
« on: December 23, 2007, 05:49:03 PM »
Also zurück zur "vorletzten Seite", richtig?
Das müsste ganz easy mit javascript:history.go funzen...


Code: [Select]
<a href="javascript:history.go(-2)">2 Seiten zurück</a>

74
Mods & Plugins (Requests & Discussions) / Re: Shop Modul für 4images
« on: December 23, 2007, 05:40:49 PM »
Wohin soll der weitershoppen Link den führen?

Und den Bestellbutton könnte man später auch problemlos in die Übersicht einbauen.

EDIT:
Bei mir ist keine Bestellung angekommen! (o:

75
Mods & Plugins (Requests & Discussions) / Re: Shop Modul für 4images
« on: December 23, 2007, 03:16:23 PM »
kommt alles in die Datenbank...

Pages: 1 2 3 4 [5] 6 7 8 9 ... 159