#1 (permalink)  
Old 19.03.2010, 19:01
vbdesigns Guru
 
Join Date: 03.2006
Posts: 530
Rep Power: 7
WeserInfo has a spectacular aura aboutWeserInfo has a spectacular aura about
Photopost Pro - Modul
Hallo,

wenn man das entsprechende Plugin installiert hat kann man mit dem angehängten Modul die neusten Bilder aus der Galerie auf das Portal holen.

Danke an Christian ( VBDesigns ) für die Anpassung des Codes.
Attached Files
File Type: xml vbcmsmodul_photopost.xml (7.5 KB, 12 views)

Last edited by WeserInfo : 19.03.2010 at 19:46.
Reply With Quote
  #2 (permalink)  
Old 19.03.2010, 19:39
Razfaz's Avatar
Aufsteigender Benutzer
 
Join Date: 11.2007
Location: Hannover
Age: 39
Posts: 152
Rep Power: 5
Razfaz is on a distinguished road
Super danke !!!
__________________
Gruß Razfaz

Mein vBCMS: http://www.heli-hannover.de
Reply With Quote
  #3 (permalink)  
Old 09.04.2010, 14:17
Neuer Benutzer
 
Join Date: 06.2004
Location: Berlin
Age: 30
Posts: 16
Rep Power: 8
ckeins is on a distinguished road
Send a message via ICQ to ckeins
Danke!

Ich hab noch ein kleines Problem, was sicher eine Kleinigkeit ist. Aber ich als absoluter PHP-Pfosten will da nicht in dem Quellcode rumsauen. Es fehlt bei der Ansicht mit Opera 10 und Internet Explorer 8 eine leere Zeile am Ende des Moduls (nur bei diesem Modul, bei allen anderen Modulen sieht es toll aus). In Firefox 3.6 hingegen ist die Zeile vorhanden und das Photopost-Modul sieht aus wie alle anderen Module auch.

Beim Modul-Quelltext habe ich lediglich den angezeigten Titel des Moduls sowie die Bilduntertitel bearbeitet. Ansonsten ist alles so wie in dem angehängten Modul im ersten Beitrag dieses Themas.







URL: Startseite - DSMworld.net

zur Info:
vBulletin Suite 4.0.2 PL1
vB-CMS 3.0.0 RC2
PhotoPost 7.01
Reply With Quote
  #4 (permalink)  
Old 09.04.2010, 15:25
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 33
Posts: 16,877
Rep Power: 10
Christian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond repute
echo '<br />'; unter die anderen echos setzen.
__________________
Meine kleinen Engel ... Die Rabauken ...
Reply With Quote
  #5 (permalink)  
Old 09.08.2010, 20:02
vbdesigns Guru
 
Join Date: 03.2006
Posts: 530
Rep Power: 7
WeserInfo has a spectacular aura aboutWeserInfo has a spectacular aura about
Eine Frage habe ich. Leider zeigt das Plugin auf der Portal-Seite Bilder an die eigentlich nur für bestimmte Benutzergruppen vorgesehen sind. Eine Idee wo ich das anpassen kann ?
Reply With Quote
  #6 (permalink)  
Old 10.08.2010, 18:58
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 33
Posts: 16,877
Rep Power: 10
Christian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond repute
Was sagen die Photopost Entwickler dazu?
__________________
Meine kleinen Engel ... Die Rabauken ...
Reply With Quote
  #7 (permalink)  
Old 10.08.2010, 20:20
vbdesigns Guru
 
Join Date: 03.2006
Posts: 530
Rep Power: 7
WeserInfo has a spectacular aura aboutWeserInfo has a spectacular aura about
Quote:
Originally Posted by Christian View Post
Was sagen die Photopost Entwickler dazu?

Das dies normal berücksichtigt ist und nicht vorkommen sollte, sie aber das nochmal prüfen.

Ich dachte vielleicht lag es an der Anpassung hier für VBCMS
Reply With Quote
  #8 (permalink)  
Old 13.08.2010, 10:50
vbdesigns Guru
 
Join Date: 03.2006
Posts: 530
Rep Power: 7
WeserInfo has a spectacular aura aboutWeserInfo has a spectacular aura about
Noch eine Frage. Ich hätte gern die Bilder zentriert. Was genau müsste ich anpassen ?

Hier der derzeitige Code und ein Screenshot we es zur Zeit aussieht.

Code:
[IMG]file:///c:/DOCUME%7E1/uidmm/LOCALS%7E1/Temp/moz-screenshot.png[/IMG]<?php
require $vbulletin->options['pppath'].'/config-int.php';

$dbhost = $vbulletin->options['dbhost'];
$dbuser = $vbulletin->options['dbuser'];
$dbpass = $vbulletin->options['dbpass'];
$dbname = $vbulletin->options['db1'];
$link = mysql_connect ("$dbhost", "$dbuser", "$dbpass") or die('I cannot connect to the database.');
mysql_select_db ("$dbname")or die("Could not select photopost database");

// Number of photos to display
$num_display = 4;

// Number of columns (1 for vertical)
$columns = 4;

// which type of images do you want to show (random, most_view, latest)
$q_switch = "latest";


// == END CONFIGURATION ==
////////////////////////////////////////////////////////////////////////////

if ( !isset($ViewPerm) )
{
    if ( isset($bbuserinfo['usergroupid']) )
    {
        $mygroups = $bbuserinfo['usergroupid'];

        if ( $bbuserinfo['membergroupids'] != "" )
        {
            $mygroups .= ",".$bbuserinfo['membergroupids'];
        }
    }
    else
    {
        // vB3.5 uses $vbulletin
        $mygroups = $vbulletin->userinfo['usergroupid'];

        if ( $vbulletin->userinfo['membergroupids'] != "" )
        {
            $mygroups .= ",".$vbulletin->userinfo['membergroupids'];
        }
    }

    $grouparr = explode( ",", $mygroups );

    $resultb = mysql_query("SELECT id,ugnoview FROM {$pp_db_prefix}categories");
    $ViewPerm = array();

    while ( list( $catugid, $ugnoview ) = mysql_fetch_row($resultb) )
    {
        $noview=0;
        $ViewPerm[$catugid] = 1;

        $allnoview = explode( ",", $ugnoview );

        foreach ($allnoview as $key)
        {
            if (in_array($key, $grouparr) )
            {
                $noview = 1;
            }
        }

        if ( $noview == 0 )
        {
            $ViewPerm[$catugid]=0;
        }
    }
}

function pp_get_ext( $filename )
{
    return substr($filename, strrpos($filename,"."));
}

function pp_get_filename($filename)
{
    return str_replace( pp_get_ext($filename), "", $filename );
}

function pp_is_image( $filename )
{
    $mediatypes = array( ".jpg", ".gif", ".png", ".bmp" );
    $ext = pp_get_ext( $filename );

    if ( in_array(strtolower($ext), $mediatypes) )
    {
        return( true );
    }

    return( false );
}

function pp_is_multimedia( $filename )
{
    $mediatypes = array( ".avi", ".mov", ".mpg", ".mpeg", ".swf", ".flv" );
    $ext = pp_get_ext( $filename );

    if ( in_array(strtolower($ext), $mediatypes) )
    {
        return( true );
    }

    return( false );
}

$resultc = mysql_query("SELECT setting FROM {$pp_db_prefix}settings WHERE id=133");
list( $seotype ) = mysql_fetch_row($resultc);

$resultd = mysql_query("SELECT setting FROM {$pp_db_prefix}settings WHERE id=6");
list( $data_full ) = mysql_fetch_row($resultd);
//
// Featured Photos Code
// Follow down to End Feature Photos Code
//

switch ($q_switch)
{
    case "most_view":
        $query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.title,c.catname,c.photos,c.posts
                        FROM {$pp_db_prefix}photos p
                        LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat
                        WHERE c.password = '' AND p.storecat = 0
                    ORDER BY views DESC";
        break;

    case "latest":
        $query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.title,c.catname,c.photos,c.posts
                        FROM {$pp_db_prefix}photos p
                        LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat
                        WHERE c.password = '' AND p.storecat = 0
                        ORDER BY date DESC";
        break;

    default:
        $query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.title,c.catname,c.photos,c.posts
                        FROM {$pp_db_prefix}photos p
                        LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat
                        WHERE c.password = '' AND p.storecat = 0
                        ORDER BY RAND()";
}
$result = mysql_query($query) or die(mysql_error());

$counted = 0;
$countcol = 0;
$pppro_imagebits = null;
$pppro_imagebits .= '<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>';
while (list($pid,$puser,$puserid,$pcat,$photo,$ptitle,$catname,$cphotos,$cposts) = mysql_fetch_row($result))
{

    if ( pp_is_image($photo)|| pp_is_multimedia($photo) )
    {
        if ( pp_is_image($photo) )
        {
            if ( $seotype == "seo" )
            {
                $plink = "<td><a href=\"{$url_path}/$catname/p{$pid}-{$ptitle}.html\"><img src=\"{$data_dir}{$pcat}/thumbs/$photo\" border=\"0\" alt=\"\" /></a><br />";
                $catlink = "<a href=\"{$url_path}/g{$pcat}-{$catname}.html\">$catname</a><br />";
            }
            else
            {
                $plink = "<td><a href=\"{$url_path}/showphoto.php?photo={$pid}\"><img src=\"{$data_dir}{$pcat}/thumbs/$photo\" border=\"0\" alt=\"\" /></a><br />";
                $catlink = "<a href=\"{$url_path}/showgallery.php?cat={$pcat}\">$catname</a><br />";
            }
        }

        if ( pp_is_multimedia($photo) )
        {
            $filenoext = pp_get_filename( $photo );
            $mmthumb = "{$data_dir}/$pcat/thumbs/$filenoext.jpg";
            $dirthumb = "{$data_full}/$pcat/thumbs/$filenoext.jpg";

            if ( !file_exists($dirthumb) )
            {
                $mmthumb = "{$url_path}/images/video.gif";
            }

            if ( $seotype == "seo" )
            {
                $plink = "<td><a href=\"{$url_path}/$catname/p{$pid}-{$ptitle}.html\"><img src=\"{$mmthumb}\" border=\"0\" alt=\"\" /></a><br />";
                $catlink = "<a href=\"{$url_path}/g{$pcat}-{$catname}.html\">$catname</a><br />";
            }
            else
            {
                $plink = "<td><br /><a href=\"{$url_path}/showphoto.php?photo={$pid}\"><img src=\"{$mmthumb}\" border=\"0\" alt=\"\" /></a><br />";
                $catlink = "<a href=\"{$url_path}/showgallery.php?cat={$pcat}\">$catname</a><br />";
            }
        }

// One box for each feature
$pppro_imagebits .= <<<PPPRINT

         $plink

        <font size="1" face="verdana,arial">by {$puser}<br />
        · · ·<br />
        $catlink
        $cphotos photos<br />$cposts comments<br /></font>
</td>
PPPRINT;

        $counted++;
        $countcol++;
    }

    // If we've reached our limit, quit
    if ( $counted == $num_display )
    {
        break;
    }

    // If we need to end the column, do so.
    if ( $countcol == $columns )
    {
$pppro_imagebits .= <<<PPPRINT
    </tr>
    <tr>
PPPRINT;

    $countcol = 0;
    }
}
@mysql_free_result($result);

$pppro_imagebits .= '</tr></table';
$templater = vB_Template::create('forumhome_addon');
$templater->register_page_templates();
$templater->register('pppro_imagebits', $pppro_imagebits);

$template_hook['forumhome_above_forums'] .= $templater->render();
echo '<div class="vbcmsmodul collapse">
      <h2 class="blockhead vbcmsmodul_head">
         Neue Galerie-Bilder
      </h2>
      <div class="blockrow vbcmsmodul_body">';

echo $pppro_imagebits;

echo '      </div>
</div>';
?>
Danke im voraus !
Attached Images
File Type: jpg neuste.JPG (27.5 KB, 4 views)
Reply With Quote
  #9 (permalink)  
Old 13.08.2010, 14:19
Razfaz's Avatar
Aufsteigender Benutzer
 
Join Date: 11.2007
Location: Hannover
Age: 39
Posts: 152
Rep Power: 5
Razfaz is on a distinguished road
@ WeserInfo: Warum nimmste nicht die neue PhotoPost vbGallery, ist extra für die vb4er Veriosn voll integriert?
__________________
Gruß Razfaz

Mein vBCMS: http://www.heli-hannover.de
Reply With Quote
  #10 (permalink)  
Old 13.08.2010, 14:42
vbdesigns Guru
 
Join Date: 03.2006
Posts: 530
Rep Power: 7
WeserInfo has a spectacular aura aboutWeserInfo has a spectacular aura about
Das ist doch ein extra Produkt ? Außerdem wie läuft das dann mit dem übertragen der Bilder ?
Reply With Quote
  #11 (permalink)  
Old 14.08.2010, 11:05
Razfaz's Avatar
Aufsteigender Benutzer
 
Join Date: 11.2007
Location: Hannover
Age: 39
Posts: 152
Rep Power: 5
Razfaz is on a distinguished road
Naja wenn Du das Pro Modul eh hast, kannst Du auch kostenlos die vBGallery runterladen.
Import klpaat ohne Probleme, da ist ne Anleitung sowie ein Importer dabei.
Siehe meine Seite, alle Bilder noch da.
__________________
Gruß Razfaz

Mein vBCMS: http://www.heli-hannover.de
Reply With Quote
  #12 (permalink)  
Old 14.08.2010, 20:23
vbdesigns Guru
 
Join Date: 03.2006
Posts: 530
Rep Power: 7
WeserInfo has a spectacular aura aboutWeserInfo has a spectacular aura about
Quote:
Originally Posted by Razfaz View Post
Naja wenn Du das Pro Modul eh hast, kannst Du auch kostenlos die vBGallery runterladen.
Import klpaat ohne Probleme, da ist ne Anleitung sowie ein Importer dabei.
Siehe meine Seite, alle Bilder noch da.

Ich werde es mal im Testbereich ausprobieren
Reply With Quote
Reply

Lesezeichen

Thread Tools
Display Modes

Posting Rules
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist On.
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Startseite Photopost vBCMS Modul Razfaz vBCMS® Fragen 41 19.03.2010 18:59
Photopost integration Lordi vBCMS® Fragen 18 04.04.2008 04:35
harmonystyle + photopost taeb.de Style- & Web Template Support 18 19.02.2008 12:42
photopost matze_pipe Fragen vor dem Kauf 3 18.02.2008 14:24
Modul für PhotoPost vBGallery? Spoky vBCMS® Fragen 4 15.12.2006 16:08


Copyright © 2006, Reuter & Bloeß GbR.
| Datenschutz | Sitemap | Unsere Partner | Top |
Home Products Forum Über uns Support & FAQs
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Tipp: Fussball | Heilerde
Shopsystem, Shop System, CMS, Webkatalog mit vBCMS CMS