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 - tennis-ecards

Pages: 1 [2]
16
Hi Leute,

im Admin-Bereich gibt es ja die Balkendarstellung, welche Kategorien die meisten Hits haben.
Ich würde das gerne auf 2 Arten modifizieren:

1.) möchte ich diese Statistik ALLEN zugänglich machen und nicht nur dem Admin

2.) würde ich die Statistik gerne erweitern und nicht nur die meisten Hits, sondern auch die meisten Downloads und Postcards anzeigen.

Ich habe schon einiges probiert, aber es funktioniert nicht. Ich denke bei 2.) fehlt mir das entsprechende Feld in der Datenbank. Damit kenne ich mich gar nicht aus (SQL?).
Kann mir trotzdem jemand weiterhelfen?

Danke

17
ich nutze version 1.7.6 und eigentlich funktioniert alles.
ich erhalte allerdings als meldung bei der mms neben der ID und dem Download-Button folgende fehlermeldung:

Fatal error: Call to a member function
freeze () on a non-object in
/users/tennis-ecards/www/tennis-grusskarten/getmms.php
on line 25


meine get mms.php sieht so aus:

<?php

define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');

if (!$id) {
echo "Enter image ID";

echo "<form action=\"".SCRIPT_URL."/getmms.php\" method=\"GET\"><input type=\"text\" name=\"id\" size=\"10\"><input type=\"submit\" value=\"GO\" name=\"B1\"></form>";

$site_db->close();
$site_sess->freeze();

exit;
}

$sql = "SELECT image_id, cat_id, image_thumb_file, image_media_file FROM ".IMAGES_TABLE."
WHERE image_id = ".$id."";
$image_row = $site_db->query_firstrow($sql);
echo $lang['id']." ".$id;
echo "
<br>
<a href=\"".SCRIPT_URL."/data/thumbnails/".$image_row['cat_id']."/".$image_row['image_thumb_file']."\">".$lang['download']."</a>";
$site_db->close();
$site_sess->freeze();
exit;

?>


wer kann mir sagen, was ich gegen den fehler tun kann?
danke im voruas.

18
Mods & Plugins (Requests & Discussions) / Re: Hits pro Tag
« on: March 11, 2010, 08:13:40 PM »
ich habe mir jetzt was zusammengebastelt. Es ist vielleicht nicht elegant, aber es erfüllt vorerst seinen Zweck. Folgendes habe ich in der details.html ergänzt:

Code: [Select]
<tr>
      <td valign="top" class="style3" style="width: 368px"><b>Tage seit Upload</b></td>
      <td valign="top" class="row2" style="width: 368px"><?php
// Tage seit dem ... (Zaehler)
$datum="{image_date}";
$d=explode(".",$datum);
$unix=mktime(0,0,0,$d[1],$d[0],$d[2]);
$stamp=time();
$diff=$stamp-$unix;
$diff=$diff/86400;
echo 
''.floor($diff).'';?>
 
           <tr>
      <td valign="top" class="style3" style="width: 368px" ><b>Zuletzt aufgerufen am:</b></td>
      <td valign="top" class="row1" style="width: 368px">{image_last_view_date} {image_last_view_time}</td>
  </tr>
                           <tr>
                            <td valign="top" class="style3" style="width: 368px"><b>{lang_hits}</b></td>
                            <td valign="top" class="row1" style="width: 368px">{image_hits} <?php
// Hits pro Tag Zähler
$hitsperday="{image_hits}"/max(1,"$diff");
echo 
'; das sind pro Tag: '.round($hitsperday,4).'';
?>
</td>

Das ganze funktioniert (siehe www.tennis-grusskarten.de.tt).
Aber ich weiß nicht, wie/ob ich daraus auch eine "top 10" basteln kann, also die Bilder mit den meisten Hits pro Tag.
Kann mir jemand weiterhelfen?

19
Mods & Plugins (Requests & Discussions) / Hits pro Tag
« on: February 23, 2010, 07:00:40 PM »
Hallo,

ich suche eine Möglichkeit, für ein Bild die durchschnittlichen Hits pro Tag anzugeben. Ein Bild, das seit 10 Tagen aktiviert ist und 40 Hits hat hätte demnach einen Wert von 40/10=4 ; ein anderes Bild, das zwar bereits 100 Hits hat aber auch schon 50 Tage aktiviert ist hätte demnach nur einen Wert von 100/50=2.
Daraus möchte ich dann eine neue Top-Liste erstellen, in der das Bild mit dem höchsten Wert auf Platz 1 ist usw.

Analog dazu wäre dann auch ein Top für Downloads, Votes, Rating und ECards toll.

Hat jemand hierfür eine Lösung?

20
Mods & Plugins (Requests & Discussions) / Re: Most ______ Today.
« on: January 29, 2010, 11:35:05 PM »
Hi, i am already  fimilar with the sql stuff just wondering how i can
modify the

     
Code: [Select]
  ORDER BY i.image_date DESC
(section in the sql connection)  in order to display:

Most Viewed images Today:
Most Viewed Images This Week:

Top Rated Images Today:
Top Rated Images This Week:

Most Commented images Today:
Most Commented Images This Week:

Top Favorited Images Today:  ( LightBoxed )
Top Favorited Images This Week:

Most Recently Commented Images ( limit 10 ) :
( latest commented image is #1 )

Top Commented(Discussed) Images Today:
Top Commented Images This Week:



Danach suche ich auch. Hat jemand eine Lösung?

21
Mods & Plugins (Releases & Support) / Re: [Mod] Mini-Top
« on: January 23, 2010, 05:17:30 PM »
Quote
hi there! no problem. I am willing to share my solution with the world!

I have reworked the entire mini-top mod...

attached is my version (place the files in the root of your 4images)

in your template home.html include the following code:
Code: [Select]
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td valign="top">
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_day}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_day}</td>
</tr>

</table><br/>
</td>

</tr>

<tr>
<td valign="top">
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_week}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_week}</td>
</tr>

</table><br/>
</td>
</tr>

<tr>
<td valign="top">
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_month}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_month}</td>
</tr>

</table><br/>
</td>
</tr>

<!--<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head1">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_title}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_images}</td>
</tr>
</table><br/>
</td>
</tr>-->
</table>

of course the language variables have to be set as well....

maybe this is not the most elegant solution, but it works for me.... please note, the system removes duplications in each rating, so that for example in the mini-top of the day, no identical images will be shown...

now, if somebody will make a separate module to use this code but so that user can select a date and the code would show ratings for this date, that would be great )))

Danke, das geht absolut in die richtige Richtung. Ich bräuchte für meine Seite jedoch eine kleine Änderung, da ich den ursprünglichen Code geändert hatte.
Ich möchte gerne die Motive mit den meisten Hits, den meisten verschickten Postkarten, den meisten Downloads und der besten Bewertung einbauen. Für den "alten Code" hatte ich das so geändert, aber hier bekomme ich das nicht hin. Was muss ich tun?

22
Mods & Plugins (Releases & Support) / Re: [Mod] Mini-Top
« on: January 23, 2010, 12:33:08 AM »
Hi guys, here is the new idea -

to avoid duplications and to draw more attention to different photos i suggest we make a variation of this MOD to show different photos. Now there is a possibility that one photo could be a leader in some areas like most commented and most viewed and most rated...  

What I suggest is to make the following system:

photo a = leader max votes
photo b = leader max comments
if a=b then in place of photo show next one down (i.e photo with max comments - 1)

etc...

the idea is to have this block with different pictures and avoid the possibility to have duplications... The TRUE ratings would still be shown in TOP images section...



I would also love to have different MINI TOPs...

MINI TOP of the DAY
MINI TOP of the WEEK
MINI TOP of the MONTH

I guess that would involve duplicating the MOD three times??

EDIT
Nevermind.. solved...

Das würde mich auch sehr interessieren. Hat jemand eine Idee und kann helfen?

23
Danke für die schnelle Antwort.
Jetzt kann man als registrierter User die Kategorie sehen und öffnen.
Ich möchte aber eigentlich dass JEDER die Kategorie sieht, aber sie nur öffnen kann, wenn er das Passwort kennt.
Eine Passwortabfrage kommt aber bei mir derzeit gar nicht.
Noch eine Idee, woran es liegen kann?

24
Hallo,

ich habe auf meiner Seite diesen MOD installiert.
Aber irgendwie kann ich nur als Admin die passwortgeschützte Kategorie sehen, jedoch nicht als registrieter User.
Mache ich etwas bei den Settings falsch?
Ich habe die Befugnisse für "Kategorie sehen" schon auf "Alle", "Privat" oder "Registrierte User" gesellt aber nichts ändert sich.
Hat jemand eine Idee woran das liegt?

Danke

25
Mods & Plugins (Requests & Discussions) / zuletzt versendete ecard
« on: January 17, 2009, 10:45:04 PM »
Hallo zusammen,

gibt es eine Möglichkeit, die zuletzt versendete eCard anzuzeigen?
Oder eine Art "History" der versendeten eCards?

26
Mods & Plugins (Requests & Discussions) / neue Bilder seit x Tagen
« on: January 17, 2009, 07:44:27 PM »
Hallo,
ich suche einen MOD, den ich schon einmal auf einer anderen Seite gesehen habe.
Man konnte nach neuen Bildern der letzten x Tage suchen (es gab ein Feld in das man dann 1,2,3 etc eintragen konnte).
Kann mir jemand helfen, wo ich den MOD finde und wie er funktioniert?
Danke

27
it works when using this in admin.php and main.php
thanks!

28
Hi, ich möchte die User nach Anzahl versendeter eCards sortieren lassen. Was muss ich ändern? Den MOD zum Zählen der Postkarten habe ich bereits installiert. (http://www.4homepages.de/forum/index.php?topic=10439.msg51881#msg51881)

Hi, how can visitors sort by number of ecards sent? I allready have this MOD installed (http://www.4homepages.de/forum/index.php?topic=10439.msg51881#msg51881)

Please help!

29
Discussion & Troubleshooting / Mehr neue Bilder auf Startseite
« on: June 15, 2008, 10:20:37 PM »
ich bin ein ziemlicher programmier-anfänger. kann mir trotzdem jemand erklären, was ich tun muss, um auf der startseite
a) mehr als 3 neue bilder anzuzeigen
b) mehr als ein zufallsbild anzuzeigen

meine seite: www.tennis-grusskarten.de.tt

danke für die hilfe!

Pages: 1 [2]