#1 (permalink)  
Old 12.01.2007, 10:20
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 48
Posts: 666
Rep Power: 6
MotMann is on a distinguished road
Wunsch wegen Image rezise
Immer wieder das gleiche Problem, was leider in vB bis heute noch nicht beseitigt wurde.. die Bilder von andern Seiten die zu groß sind.

Bestünde nicht die Möglichkeit, dass Du von Hause aus ein Image rezise einbaust? Ich muss jedes mal, nach Update von Dir, diesen wie ich finde wichtigen Code einbauen.

Und sicherlich braucht das jeder User.. ansonsten wird ja das Style zerschossen.

Wäre wirklich supi
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #2 (permalink)  
Old 12.01.2007, 14: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
Bau es doch einfach im Header Template ein, dann brauchst du es nach einem Update auch nicht neu zu verbauen.
Reply With Quote
  #3 (permalink)  
Old 12.01.2007, 15:12
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 48
Posts: 666
Rep Power: 6
MotMann is on a distinguished road
Das hat den Nachteil, dass alle Grafiken die breiter sind auch verkleinert werden.

Nun sei doch nicht so bockig und setze ein [todo] vor dem Thread, bist ja wie meine Freundin *spaß*
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #4 (permalink)  
Old 12.01.2007, 15:15
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
Du musst doch nur vor dem Code:

Code:
<if condition="defined('SCRIPTGLOBAL')">
      Code
</if>
dann wird es nur im vBCMS ausgeführt.
Reply With Quote
  #5 (permalink)  
Old 17.01.2007, 01:45
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 48
Posts: 666
Rep Power: 6
MotMann is on a distinguished road
Quote:
Z.B. Template Portal_global, suche nach:

Code (Lizenz-Status: aktiv):
</head>
<body>
und ersetze es mit folgendem:

Code (Lizenz-Status: aktiv):
<script type="text/javascript">
<!--
/*
LEAVE THIS NOTICE IN PLACE
FI Image Resizing script - Daz - ForumImages.com
For use and distribution terms please check;
http://www.forumimages.com/terms.php

Modifications by Politics.be
-- Onclick handler is automatically handled bij JavaScript now, compatible with IE and Mozilla
*/
var imgResizeMsg = 'Bild wird verkleinert dargestellt. Klicken für Originalgröße!';
var imgWidthMax = 600;
var imgWidthSizeTo = 600;
var imgClassName = 'imglimit';
//window.onload = fiImageResize;

function fiImageResize() {
if (document.images.length) {
var docImg = document.images;
for ( var i = 0 ; i < docImg.length ; i++)
if (docImg[i].width > imgWidthMax && docImg[i].id != 'forumlogo') {
docImg[i].width = imgWidthSizeTo;
docImg[i].title = imgResizeMsg;
docImg[i].className = imgClassName;
docImg[i].onclick = fiImageWinOpen;
}
}
}

function fiImageWinOpen(e) {
if( window.event )
window.open(window.event.srcElement.src,'PoliticsV iewer','menubar=no, toolbar=no, location=no, directories=no, fullscreen=yes, titlebar=yes, hotkeys=no, status=no, scrollbars=yes, resizable=yes');
else
window.open(e.target.src,'PoliticsViewer','menubar =no, toolbar=no, location=no, directories=no, fullscreen=yes, titlebar=yes, hotkeys=no, status=no, scrollbars=yes, resizable=yes');
}
// -->
</script>
<style type="text/css">
<!--
.imglimit {cursor: pointer;border: dotted 1px #000;}
-->
</style>
<body onload="fiImageResize()">

Im Template finde ich nicht
</head>
<body>

Wo muss das nun in dem Template rein, auch darf sich dadurch ein Werbe-Banner nicht verkleinern.
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #6 (permalink)  
Old 17.01.2007, 09:54
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
Diesen Code ins Headinclude Template:
Code:
<script type="text/javascript">
<!--
/*
LEAVE THIS NOTICE IN PLACE
FI Image Resizing script - Daz - ForumImages.com
For use and distribution terms please check;
http://www.forumimages.com/terms.php

Modifications by Politics.be
-- Onclick handler is automatically handled bij JavaScript now, compatible with IE and Mozilla
*/
var imgResizeMsg = 'Bild wird verkleinert dargestellt. Klicken für Originalgröße!';
var imgWidthMax = 600;
var imgWidthSizeTo = 600;
var imgClassName = 'imglimit';
//window.onload = fiImageResize;

function fiImageResize() {
if (document.images.length) {
var docImg = document.images;
for ( var i = 0 ; i < docImg.length ; i++)
if (docImg[i].width > imgWidthMax && docImg[i].id != 'forumlogo') {
docImg[i].width = imgWidthSizeTo;
docImg[i].title = imgResizeMsg;
docImg[i].className = imgClassName;
docImg[i].onclick = fiImageWinOpen;
}
}
}

function fiImageWinOpen(e) {
if( window.event )
window.open(window.event.srcElement.src,'PoliticsV iewer','menubar=no, toolbar=no, location=no, directories=no, fullscreen=yes, titlebar=yes, hotkeys=no, status=no, scrollbars=yes, resizable=yes');
else
window.open(e.target.src,'PoliticsViewer','menubar =no, toolbar=no, location=no, directories=no, fullscreen=yes, titlebar=yes, hotkeys=no, status=no, scrollbars=yes, resizable=yes');
}
// -->
</script>
<style type="text/css">
<!--
.imglimit {cursor: pointer;border: dotted 1px #000;}
-->
</style>
Danach ein Plugin anlegen, Einstiegspunkt load_vbcms_output_start mit folgendem Inhalt.

PHP Code:
$vbcms_global['bodytag'] = '<body onload="fiImageResize()">'
Reply With Quote
  #7 (permalink)  
Old 26.02.2007, 11:48
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 48
Posts: 666
Rep Power: 6
MotMann is on a distinguished road
Okey. Habe ich gemacht. Wartete halt nur bis zum vBCMSUpdate:

Folgende Fehlermeldung erhalte ich hier.

Quote:
Parse error: syntax error, unexpected T_STRING in /www/xxxxx/wxxxxx/Board/Forum/includes/class_vbcms.php(304) : eval()'d code on line 1

Wieso wird so ein Image Resize nicht serienmäßig eingebaut
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *

Last edited by MotMann : 26.02.2007 at 12:00.
Reply With Quote
  #8 (permalink)  
Old 26.02.2007, 12:04
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
Machs mal so, gleicher Einstiegspunkt:

Code:
$this->vbcms_bodytag = '<body onload="fiImageResize()">';
Reply With Quote
  #9 (permalink)  
Old 26.02.2007, 12:11
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 48
Posts: 666
Rep Power: 6
MotMann is on a distinguished road
Jo.. gemacht und scheint zu klappen.

Thank's
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #10 (permalink)  
Old 26.02.2007, 12:14
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
No mal zur Info, wir bauen das Skript aus folgenden Gründen nicht Standardmäßig mit ein, da:

1. Es Javaskript ist.
2. Das Skipt nicht von uns stammt.
3. Es genügend Modifikationen, in den vBulletin Hackforen gibt.
Reply With Quote
  #11 (permalink)  
Old 21.03.2007, 21:18
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 48
Posts: 666
Rep Power: 6
MotMann is on a distinguished road
okey. Ich hab das Teil nun so eingebaut, wie genannt.
Aber jetzt werden die Werbebanner auch rezsized.

Und da trampeln mir die Werbepartner auf die Füße

Was tun?
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #12 (permalink)  
Old 21.03.2007, 22:42
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
Quote:
Originally Posted by MotMann View Post

Was tun?

Skript dementsprechend anpassen!?
Reply With Quote
  #13 (permalink)  
Old 21.03.2007, 22:56
MotMann's Avatar
vbdesigns Guru
 
Join Date: 03.2006
Location: Berlin
Age: 48
Posts: 666
Rep Power: 6
MotMann is on a distinguished road
Ach...

Gibt es keine bessere Möglichkeit? Hat jemand ein Tipp? So richtig toll finde ich das Skript nicht.
__________________
Software: vB 3.8.1 * Style: Cyberhype, Tribe * Ansicht: Neues vB *
Reply With Quote
  #14 (permalink)  
Old 17.05.2008, 13:38
Neuer Benutzer
 
Join Date: 06.2006
Posts: 5
Rep Power: 6
alik4277 is on a distinguished road
Hallo
Ist es möglich ImageResize using Lytebox für VBCMS anzupassen?

Danke im vorraus
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
Wie Templates cachen? - Wunsch nach Shell Template Stoebi vBCMS® Fragen 25 15.04.2007 22:43
Button-Wunsch Stargesicht Style- & Web Template Support 6 28.12.2006 02:13
Kleiner wunsch L3xon Photoshop 6 26.11.2006 21:52
Kleiner wunsch Racer05 Allg. wBB Support 5 13.04.2006 21:08
Avatar-Wunsch separatebavaria Recycle-Bin 1 09.08.2005 15:04


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