#1 (permalink)  
Old 16.03.2010, 09:02
Razfaz's Avatar
Aufsteigender Benutzer
 
Join Date: 11.2007
Location: Hannover
Age: 40
Posts: 152
Rep Power: 5
Razfaz is on a distinguished road
Photopost vBCMS Modul
Hallo,

habe mir die Photopost Galerie installiert.
Doch beim aufrufen, der Galerie wird zusätzlich auch der Tab für das Forum geöffnet.
Habe mal zur Ansicht eine Datei angehängt um es besser zu schildern.
Wie kann ich die Tabs ändern, bzw. wo?
Attached Images
File Type: png galerie.png (2.9 KB, 12 views)
__________________
Gruß Razfaz

Mein vBCMS: http://www.heli-hannover.de
Reply With Quote
  #2 (permalink)  
Old 16.03.2010, 12:34
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
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
Da Frags du am besten den Entwickler der Gallerie.
__________________
Meine kleinen Engel ... Die Rabauken ...
Reply With Quote
  #3 (permalink)  
Old 16.03.2010, 12:40
Razfaz's Avatar
Aufsteigender Benutzer
 
Join Date: 11.2007
Location: Hannover
Age: 40
Posts: 152
Rep Power: 5
Razfaz is on a distinguished road
Der sagt ich solle mich an Euch wenden
Wenn ich das vBCSM deaktiviere, funktioniert die Navbar.
Ergo: Muss doch mit vBCMS zusammenhängen.

Habe mal die xml Datei angehängt, wo der Button in die Navbar mit eingefügt wird, eventuell kannst Du mir ja sagen woran es liegt?
Attached Files
File Type: xml product-pppro.xml (39.6 KB, 1 views)
__________________
Gruß Razfaz

Mein vBCMS: http://www.heli-hannover.de
Reply With Quote
  #4 (permalink)  
Old 16.03.2010, 12:56
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
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
Dann mach mir mal ein Zugang in dem Problemforum (FTP, AdminCP, PhpMyAdmin).
__________________
Meine kleinen Engel ... Die Rabauken ...
Reply With Quote
  #5 (permalink)  
Old 16.03.2010, 14:12
Razfaz's Avatar
Aufsteigender Benutzer
 
Join Date: 11.2007
Location: Hannover
Age: 40
Posts: 152
Rep Power: 5
Razfaz is on a distinguished road
Danke, hast ne PN!!
__________________
Gruß Razfaz

Mein vBCMS: http://www.heli-hannover.de
Reply With Quote
  #6 (permalink)  
Old 16.03.2010, 14:19
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
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
Ist in nächster Version behoben, bei dir hab ich es temporär schon gefixt.
__________________
Meine kleinen Engel ... Die Rabauken ...
Reply With Quote
  #7 (permalink)  
Old 16.03.2010, 14:26
Razfaz's Avatar
Aufsteigender Benutzer
 
Join Date: 11.2007
Location: Hannover
Age: 40
Posts: 152
Rep Power: 5
Razfaz is on a distinguished road
SUPER DANKE !!!
Woran hat es gelegen, wenns nicht zu kompliziert ist ?
__________________
Gruß Razfaz

Mein vBCMS: http://www.heli-hannover.de
Reply With Quote
  #8 (permalink)  
Old 17.03.2010, 09:49
vbdesigns Guru
 
Join Date: 03.2006
Posts: 528
Rep Power: 8
WeserInfo has a spectacular aura aboutWeserInfo has a spectacular aura about
Christian,

gibt es eine Chance den folgenden Quellcode als MODUL für die Startseite zu nehmen ? Im Forum läuft dieses ja als PlugIn von Photopost.

Code:
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;

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></td>";
	            $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></td>";
	            $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></td>";
	            $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></td>";
	            $catlink = "<a href=\"{$url_path}/showgallery.php?cat={$pcat}\">$catname</a><br />";
	        }
	    }

// One box for each feature
$pppro_imagebits .= <<<PPPRINT
    <td align="center" class="alt1">
        <table cellpadding="0" cellspacing="0" border="0">
         <tr>
         $plink
         </tr>
        </table>
        <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);

$templater = vB_Template::create('forumhome_addon');
$templater->register_page_templates();
$templater->register('pppro_imagebits', $pppro_imagebits);

$template_hook['forumhome_above_forums'] .= $templater->render();
Reply With Quote
  #9 (permalink)  
Old 17.03.2010, 11:03
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
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
Ja, müsste man aber ein wenig umschreiben, aber als PHP Modul mit Ausgabe Puffern sollte es gehen.
__________________
Meine kleinen Engel ... Die Rabauken ...
Reply With Quote
  #10 (permalink)  
Old 17.03.2010, 12:01
vbdesigns Guru
 
Join Date: 03.2006
Posts: 528
Rep Power: 8
WeserInfo has a spectacular aura aboutWeserInfo has a spectacular aura about
Quote:
Originally Posted by Christian View Post
Ja, müsste man aber ein wenig umschreiben, aber als PHP Modul mit Ausgabe Puffern sollte es gehen.

Hmm,, einfach als Modul passiert gar nix. Auch kein Fehler. Ist natürlich überall aktiv

Naja, wenns irgendwann mal passt wäre das ein super Modul für VBCMS
Reply With Quote
  #11 (permalink)  
Old 17.03.2010, 12:08
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
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
Probier mal:

Code:
echo $pppro_imagebits;
__________________
Meine kleinen Engel ... Die Rabauken ...
Reply With Quote
  #12 (permalink)  
Old 17.03.2010, 12:15
vbdesigns Guru
 
Join Date: 03.2006
Posts: 528
Rep Power: 8
WeserInfo has a spectacular aura aboutWeserInfo has a spectacular aura about
Quote:
Originally Posted by Christian View Post
Probier mal:

Code:
echo $pppro_imagebits;



Ui,, das liefert sogar ein Ergebnis.

Nur halt Untereinander ( könnte man ja an die Seite packen ) und Ohne jegliche Formatierung ( kein Rahmen vom Style etc. ).

Aber ein Schritt weiter

Es müsste einstellbar sein Wieviel Bilder, vertikal / horizontal usw. Aber ich wäre ja schon glücklich wenn es mit Rahmen mittig nebeneinander angezeigt würde.
Attached Images
File Type: jpg photopost.JPG (24.5 KB, 7 views)
Reply With Quote
  #13 (permalink)  
Old 17.03.2010, 16:17
Razfaz's Avatar
Aufsteigender Benutzer
 
Join Date: 11.2007
Location: Hannover
Age: 40
Posts: 152
Rep Power: 5
Razfaz is on a distinguished road
Und schon weiter gekommen? Würde ich auch gut gebrauchen können.
__________________
Gruß Razfaz

Mein vBCMS: http://www.heli-hannover.de
Reply With Quote
  #14 (permalink)  
Old 17.03.2010, 16:57
vbdesigns Guru
 
Join Date: 03.2006
Posts: 528
Rep Power: 8
WeserInfo has a spectacular aura aboutWeserInfo has a spectacular aura about
Quote:
Originally Posted by Razfaz View Post
Und schon weiter gekommen? Würde ich auch gut gebrauchen können.

Also im Forum läufts ja einwandfrei.

Mal schauen, vielleicht bringt Christian noch bisschen Input auf meine Fragen / Wünsche. Wäre schon genial.
Reply With Quote
  #15 (permalink)  
Old 17.03.2010, 17:51
Razfaz's Avatar
Aufsteigender Benutzer
 
Join Date: 11.2007
Location: Hannover
Age: 40
Posts: 152
Rep Power: 5
Razfaz is on a distinguished road
@ WeserInfo: Mach mal folgendes, nimm mal folgendes aus Deinem Quellcode raus:
Code:
c.password = '' AND
und sag mal obs geht !!!
__________________
Gruß Razfaz

Mein vBCMS: http://www.heli-hannover.de
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
vBCMS + PhotoPost - kleine Problem... cjohnson vBCMS® Fragen 10 16.03.2009 17:01
vbcms & Photopost haenk vBCMS® Fragen 3 12.03.2008 09:03
vbcms und VBGallery von Photopost Helmut71 Fragen vor dem Kauf 3 30.10.2007 09:07
vbcms in photopost-pro integrierbar ? andi68 Fragen vor dem Kauf 16 09.08.2007 03:53
Modul für PhotoPost vBGallery? Spoky vBCMS® Fragen 4 15.12.2006 15: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