#1 (permalink)  
Old 23.12.2006, 20:05
vbdesigns Guru
 
Join Date: 10.2006
Age: 27
Posts: 672
Rep Power: 7
ragtek has a spectacular aura aboutragtek has a spectacular aura about
Send a message via ICQ to ragtek
pm popup fenster erweiterung anpassen
Ich habe diese Erweiterung bei mir installiert.
http://www.vbhacks-germany.org/showthread.php?t=4027
Nun gibt es folgendes Problem:

Code:
                                <td align="center">
                                    <br /><br />
                                    <a href="private.php?do=showpm&pmid=$newpm[pmid]">Private Nachricht lesen</a> <a href="private.php?do=showpm&pmid=$newpm[pmid]" target="_blank"><span class="smallfont">(Neues Fenster)</span></a>
                                    <br /><br />
                                    <a href="private.php">Nachrichteneingang öffnen</a>
                                </td>
also muss ich den pfad anpassen
hab jetz probiert einfach private in "Header-Ersetzungen" zu setzen, klappt aber nicht.
Kann man das mit einer if condition lösen?
Reply With Quote
  #2 (permalink)  
Old 23.12.2006, 20:17
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:
Diese Einstellung betrifft das Template Header.

Header Ersetzungen sind, wie auch schon der Beschreibung zu entnehmen ist, für das Header Template gedacht, deswegen kann das logischerweise nicht funktionieren ...

Wenn dann müsstest du dir ein Plugin erstellen, Einstiegspunkt vbcms_replacements und dir da deinen str_replace() Code reinschreiben.
Reply With Quote
  #3 (permalink)  
Old 23.12.2006, 20:20
vbdesigns Guru
 
Join Date: 10.2006
Age: 27
Posts: 672
Rep Power: 7
ragtek has a spectacular aura aboutragtek has a spectacular aura about
Send a message via ICQ to ragtek
OK
werd ich mal testen
Reply With Quote
  #4 (permalink)  
Old 23.12.2006, 20:33
vbdesigns Guru
 
Join Date: 10.2006
Age: 27
Posts: 672
Rep Power: 7
ragtek has a spectacular aura aboutragtek has a spectacular aura about
Send a message via ICQ to ragtek
lieg ich damit falsch wenn ich $text als suchstring benutz? anscheinend schon da es momentan noch nicht hinhaut
ich hab gedacht ich benutz $text da du das auch überall verwendest(wobei ich das aber nur beim script überfliegn gsehn hab)
Reply With Quote
  #5 (permalink)  
Old 23.12.2006, 20:36
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
Nein, du muss auf den Templatecache zugreifen, siehst du aber auch in der Funktion.

Code:
$vbulletin->templatecache['pm_popup_script'] = str_replace( etc. ...
Reply With Quote
  #6 (permalink)  
Old 23.12.2006, 20:42
vbdesigns Guru
 
Join Date: 10.2006
Age: 27
Posts: 672
Rep Power: 7
ragtek has a spectacular aura aboutragtek has a spectacular aura about
Send a message via ICQ to ragtek
Aso, "alles klar".

Vieln dank für deine Hilfe auch wenn das nicht wirklich was mit betatesten zu tun hat.
Und das wird anscheinend noch lang dauern bis ich das Geschehen im VB wirklich intus hab.


Edit:
Funktioniert einwandfrei!

falls jemand das gleiche Problem hat:
Plugin erstellen: Hook: vbcms_replacements
Code:
Code:
$vbulletin->templatecache['pm_popup_script'] = str_replace("private.php","../forum/private.php",$vbulletin->templatecache['pm_popup_script']);
Ist sicher nicht das Sauberste(wegen dem Pfad, aber ich wollte jetz nicht die richtige Variable suchen)

Last edited by ragtek : 23.12.2006 at 20:54.
Reply With Quote
  #7 (permalink)  
Old 23.12.2006, 22:09
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, das ist schon genau richtig @ragtek und damit es bei allen richtig funktioniert mach es so:

PHP Code:
$vbulletin->templatecache['pm_popup_script'] = str_replace(
        
'private.php',
        
$vbulletin->vbcmsoptions['vbcms_forumfolder'] . '/private.php',
        
$vbulletin->templatecache['pm_popup_script']
); 
Reply With Quote
  #8 (permalink)  
Old 21.01.2007, 15:25
vbdesigns Guru
 
Join Date: 10.2006
Age: 27
Posts: 672
Rep Power: 7
ragtek has a spectacular aura aboutragtek has a spectacular aura about
Send a message via ICQ to ragtek
was passt den an dem versuch nicht:

PHP Code:
$vbulletin->templatecache['headinclude'] = str_replace(                        'href="clientscript/vbulletin_css/style-b9662891-00005.css',
vbulletin->vbcmsoptions['vbcms_forumfolder'] . '/clientscript/vbulletin_css/style-b9662891-00005.css',
$vbulletin->templatecache['headinclude']); 
ich krieg eine fehlermeldung das es da eben einen fehler gibt

was ich vorhab=> ich will die css einstellungen als datei speichern, jedoch passt der pfad in vbcms nicht
__________________
meine wunschliste würde mich freuen

mein blog

Last edited by ragtek : 21.01.2007 at 15:50.
Reply With Quote
  #9 (permalink)  
Old 22.01.2007, 09:38
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 fehlt das $ vor vbulletin->
Reply With Quote
  #10 (permalink)  
Old 22.01.2007, 10:30
vbdesigns Guru
 
Join Date: 10.2006
Age: 27
Posts: 672
Rep Power: 7
ragtek has a spectacular aura aboutragtek has a spectacular aura about
Send a message via ICQ to ragtek
das wars tatsächlich :/
schande auf mein haupt
__________________
meine wunschliste würde mich freuen

mein blog
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
PN Fenster verzogen SleepySun Style- & Web Template Support 2 08.06.2006 12:06
Frage wegen Style-Erweiterung Lansky Fragen vor dem Kauf 8 12.04.2006 17:45
PN Popup Fenster michaelk Webdesigns 3 18.02.2006 21:16
Erweiterung des Logos - Klick -> Home Jesse69 Style- & Web Template Support 3 24.04.2005 11:15
Cookie Fenster Sunny3112 Offtopic 1 22.12.2004 14:10


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