#1 (permalink)  
Old 26.05.2007, 23:07
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 49
Posts: 667
Rep Power: 7
MotMann is on a distinguished road
Frage zur Modulerstellung
Ichhabe ein Skript, dass über vBA klappen soll.

Die Anleitung dafür:

Quote:
\\\\\\\ SIDE MODULE: vbc_featured_side.php ////////
---------------------------------------------------------------

This module is designed to be used on the right or left narrow columns and it will show a COLUMN of upto 5-featured ads.

To start:

Go to AdminCP -> vBa CMPS -> Add Module -> PHP File

Module Title >> XGT
Column >> Strongly suggest RIGHT or LEFT
Display Order >> Set as you desire
Active >> Yes
Update all Pages >> Set as you desite
File to Include >> vb_featured_side.php
Module Parent >> None
Identifier >> vbclassified_side
Templates Used >> vb_newadbit
Clean File Output >> No
Use Module Shell Template >> Yes
Module Link >> http://www.xxxx.com (or what ever you would like :~)
Title Row Colspan >> 1
Usergroups >> I would set all to yes

Jetzt habe ich die entsprechende php erst mal in "vb gloab module"s geschmissen und beim erstellen eines neuen Moduls eifach die oben passenden Daten genommen.

Natürlich klappt das nicht, wäre ja auch zu einfach.

Wie bekomme ich das hin, dass das Teil im linken Menü angezeigt wird?

Ich habe die PHP Datei mal hier angehangen, als txt.
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *

Last edited by Christian : 26.05.2007 at 23:11. Reason: Bitte keine urheberechtlich geschützten Dateien hier anhängen, einfach einen geeigeneten Link setzen.
Reply With Quote
  #2 (permalink)  
Old 27.05.2007, 06:41
Surviver's Avatar
Super Moderator
 
Join Date: 03.2006
Posts: 816
Rep Power: 10
Surviver is just really niceSurviver is just really niceSurviver is just really niceSurviver is just really nice
vBA Modul != vBCMSMosul. Das müsste man umschreiben. Und dazu bräuchte man mindetsens die php

Gruß
Reply With Quote
  #3 (permalink)  
Old 27.05.2007, 09:13
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 49
Posts: 667
Rep Power: 7
MotMann is on a distinguished road
Und ich dachte, das wäre irgendwie easyer zu handhaben.

Die php hängt ja dran

ups.. da hat jemand rumgezaubert. Darf ich die php jemanden zukommen lassen?
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #4 (permalink)  
Old 28.05.2007, 12:39
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
Quote:
Originally Posted by MotMann View Post
Und ich dachte, das wäre irgendwie easyer zu handhaben.

Die php hängt ja dran

ups.. da hat jemand rumgezaubert. Darf ich die php jemanden zukommen lassen?

Ja, ich habe das geändert, um etwaigen urheberrechlichten Problemen zuvorzukommen. Bitte nur Dateien hier anhängen, wenn von dem Urheber entsprechende Erlaubnis vorliegt.

Wie auch schon in der Editierungsbeschreibung gesagt, setze einfach einen Link zu dem Hack.
Reply With Quote
  #5 (permalink)  
Old 28.05.2007, 16:03
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 49
Posts: 667
Rep Power: 7
MotMann is on a distinguished road
Hier ist die php.
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #6 (permalink)  
Old 06.06.2007, 10:27
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 49
Posts: 667
Rep Power: 7
MotMann is on a distinguished road
Hat sich das jetzt erledigt? Klappt das nicht?
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #7 (permalink)  
Old 06.06.2007, 11:06
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
Es muss wie schon von Surviver gesagt umgeschrieben werden, da es kein Modul für das vBCMS sondern vBadvanced ist. In der Adminhilfe findest du auch eine kleine Anleitung wie die Datei Struktur von vBCMS Modulen aussehen muss.

Code:
Ein kleines Beispiel: Die PHP Datei nennen wir vbcmsmodule_galerie.php und der Inhalt könnte so aussehen. 
$gall_quer = $db->query_first_slave("
        SELECT
        *
        FROM " . TABLE_PREFIX . "gallery
");

eval('$this->portal_array["$module_row[id]"]["$module_row[colum]"] = "' . fetch_template('Portal_gallery') . '";');
unset($gall_quer);
In deinem Fall dürfte es evtl. schon genügen, wenn du in der Datei:

Code:
	eval('$home["$mods[modid]"][\'content\'] .= "' . fetch_template('vbclassified_newadbit') . '";');
durch:

Code:
	eval('$this->portal_array["$module_row[id]"]["$module_row[colum]"] = "' . fetch_template('vbclassified_newadbit') . '";');
ersetzt.
Reply With Quote
  #8 (permalink)  
Old 09.06.2007, 12:40
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 49
Posts: 667
Rep Power: 7
MotMann is on a distinguished road
Das klappt so nicht

Das Teil ist so wie oben beschrieben im Ordner und ich erstellte ein neues Modul (php)

Wird aber nichts angezeigt.....

Erstellen:

Module Title >> Neuste Basar Artikel
Column >> Links
Display Order >> 3
Active >> Ja
File to Include >> vbxxxx....vbcxxx_featured_side.php
Module Parent >> None
Templates Used >> vbclassified_newadbit
Usergroups >> alle


und natürlich wie oben den Code verändert in der php.
Attached Images
File Type: png Bild 1.png (44.9 KB, 20 views)
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #9 (permalink)  
Old 10.06.2007, 12:59
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 das Modul in der vBCMS-Verwaltung ==> Unter den Bereichen auch gesetzt?
Reply With Quote
  #10 (permalink)  
Old 10.06.2007, 15:28
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 49
Posts: 667
Rep Power: 7
MotMann is on a distinguished road
Ja klar....
Attached Images
File Type: png Bild 1.png (42.6 KB, 9 views)
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #11 (permalink)  
Old 10.06.2007, 15:32
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
Was steht genau jetzt im Template?
Reply With Quote
  #12 (permalink)  
Old 10.06.2007, 15:40
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 49
Posts: 667
Rep Power: 7
MotMann is on a distinguished road
Im vbclassified_newadbit steht:


PHP Code:
<tr>
<
td class="alt1" align="center">
<
a href="vbclassified.php?do=ad&id=$ad[classifiedid]">
<
img src="$vboptions[bburl]/vbclassified/uploaded/thumbnails/$ad[image]" border="0">
</
a>
<
div><b><a href="$vboptions[bburl]/vbclassified.php?do=ad&id=$ad[classifiedid]">$ad[title]</b></a></div>
<
div class="smallfont">$vbphrase[vbclassified_by] <a href="$vboptions[bburl]/vbclassified.php?do=user&userid=$ad[userid]">$ad[username]</a></div>
</
td>
</
tr
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #13 (permalink)  
Old 10.06.2007, 16:20
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
Hm, von dem Code sehe ich bei dir auf der Startseite nichts, sicher das es aktiv ist?
Reply With Quote
  #14 (permalink)  
Old 10.06.2007, 16:38
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 49
Posts: 667
Rep Power: 7
MotMann is on a distinguished road
Sicher kann man sich nie sein. Aber so wie ich es sehe, denke schon. Die Bilder hängen doch oben dran.
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #15 (permalink)  
Old 11.06.2007, 10:49
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
Deswegen fragte ich ja, als Gast sehe ich keine Bilder.
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



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