BBCodeBox3

prosilver | subsilver2

Willkommen und Guten Morgen, Guest  Beim nächsten Piep ist es zwischen 10:00 und 11:00 Uhr

It is currently Wed 3. Jul 2024, 10:57

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Last X [img] on Forum
PostPosted: Mon 12. Apr 2010, 18:04 

Posts: 11

Last Topic:
Last X [img] on For...

Joined:
Mon 12. Apr 2010, 17:57

Hi 4seven ...........

wir hatten schon mal das vergnügen auf phpbb.de wegen einer Suchanfrage von mir, wo ich einen Mod suche der fast die Funktionen hat wie dein Last X [img] on Forum. Wie gesagt aber nur fast :smile:
Eventuell kann man ja mit einfachen mitteln (die mir aber wohl fehlen) deinen dem entsprechend umbauen.
Was ich suche ist eine Funktion wo ich in einem Post eine Url eingeben kann zu einem Pic welches dann im Index dargestellt wird. Ich mach mal nen Screen was ich meine
Image
Da kann man bei Portalbild einfach ne url zu einem Pic eingeben welches dann im Portal dargestellt wird. So würde ich mit das vorstellen nur halt auf dem Index.

Gruß Huch


Top
 Profile  
Reply with quote  
PostPosted: Fri 16. Apr 2010, 09:16 

Posts: 11

Last Topic:
Last X [img] on For...

Joined:
Mon 12. Apr 2010, 17:57

Hi ........ 4seven,

wenn es obere Möglichkeit nicht gibt ne Frage zum vorhandenen Mod.
Wenn ich die Beschreibung richtig verstehe wird nur jedes 1 Bild im Thread im index dargestellt. Besteht die Möglichkeit das ich nur jedes 2 Bild im Thread darstellen kann? Es ist so das wir in bestimmten Foren ein Startimage im Thread haben und danach erst die eigentlichen Bilder. Demnach würde jetzt ja nur das Startimage dargestellt werden und nicht das eigentliche Bild.


Top
 Profile  
Reply with quote  
PostPosted: Fri 16. Apr 2010, 23:44 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

du könntest im code zb gif ausschließen und dann das erste bild als gif einfügen...

Quote:
So würde ich mit das vorstellen nur halt auf dem Index.

das wäre ein neuer mod für eine einzelne person. dafür habe ich unentgeltlich keine zeit.


Top
 Profile  
Reply with quote  
PostPosted: Mon 19. Apr 2010, 08:32 

Posts: 11

Last Topic:
Last X [img] on For...

Joined:
Mon 12. Apr 2010, 17:57

4seven wrote:
du könntest im code zb gif ausschließen und dann das erste bild als gif einfügen...

Hm könntest du mir dazu den code sagen? Bin leider nicht so bewandert damit ........ wäre nett

4seven wrote:
das wäre ein neuer mod für eine einzelne person. dafür habe ich unentgeltlich keine zeit.

Das verstehe ich natürlich!

Gruß Huch


Top
 Profile  
Reply with quote  
PostPosted: Mon 19. Apr 2010, 10:47 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

Huchinotte wrote:
könntest du mir dazu den code sagen


ersetze in beiden dateien..

last_x_img_on_forum_orphan.php
last_x_img_on_forum.php

das

Code:
(.*?).png|(.*?).gif


mit dem

Code:
(.*?).png


Top
 Profile  
Reply with quote  
PostPosted: Mon 19. Apr 2010, 11:05 

Posts: 11

Last Topic:
Last X [img] on For...

Joined:
Mon 12. Apr 2010, 17:57

Hi .........

hm funzt leider nicht, bekomme dabei folgende Meldung im Header
Code:
[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php  on line 153: preg_match_all() [function.preg-match-all]: Compilation failed: missing ) at offset 59
[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 155: Invalid argument supplied for foreach()
[
phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 153: preg_match_all() [function.preg-match-all]: Compilation failed: missing ) at offset 59
[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 155: Invalid argument supplied for foreach()
[
phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 153: preg_match_all() [function.preg-match-all]: Compilation failed: missing ) at offset 59
[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 155: Invalid argument supplied for foreach()
[
phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 153: preg_match_all() [function.preg-match-all]: Compilation failed: missing ) at offset 59
[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 155: Invalid argument supplied for foreach()
[
phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 153: preg_match_all() [function.preg-match-all]: Compilation failed: missing ) at offset 59
[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 155: Invalid argument supplied for foreach()
[
phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 153: preg_match_all() [function.preg-match-all]: Compilation failed: missing ) at offset 59
[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 155: Invalid argument supplied for foreach()
[
phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 153: preg_match_all() [function.preg-match-all]: Compilation failed: missing ) at offset 59
[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 155: Invalid argument supplied for foreach()
[
phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 153: preg_match_all() [function.preg-match-all]: Compilation failed: missing ) at offset 59
[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 155: Invalid argument supplied for foreach()
[
phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 153: preg_match_all() [function.preg-match-all]: Compilation failed: missing ) at offset 59
[phpBB Debug] PHP Notice: in file /includes/last_x_img_on_forum.php on line 155: Invalid argument supplied for foreach() 


Den Code habe ich in beiden Dateien abgeändert und sieht nun so aus:
Code:
preg_match_all('#\[img:(.*?)\]((.*?).jpg|(.*?).jpeg|(.*?).png\[\/img:(.*?)\]#i', $row_img['post_text'], $current_posted_img); 


Auch wird dadurch kein Thumbnail mehr erstellt im Ordner images\last_x_img

Gruß Huch


Top
 Profile  
Reply with quote  
PostPosted: Mon 19. Apr 2010, 11:10 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

Huchinotte wrote:
Den Code habe ich in beiden Dateien abgeändert und sieht nun so aus:
Code:
preg_match_all('#\[img:(.*?)\]((.*?).jpg|(.*?).jpeg|(.*?).png\[\/img:(.*?)\]#i', $row_img['post_text'], $current_posted_img); 

du hast falsch editiert, besser gesagt > die schließende klammer wegeditiert: (.*?).png)

ich sagte nichts davon, die schließende klammer zu löschen ;-)

4seven wrote:
ersetze in beiden dateien..

last_x_img_on_forum_orphan.php
last_x_img_on_forum.php

das

Code:
(.*?).png|(.*?).gif


mit dem

Code:
(.*?).png


Top
 Profile  
Reply with quote  
PostPosted: Mon 19. Apr 2010, 11:23 

Posts: 11

Last Topic:
Last X [img] on For...

Joined:
Mon 12. Apr 2010, 17:57

4seven wrote:
ich sagte nichts davon, die schließende klammer zu löschen ;-)

Hm .... wie wahr ..... da hat doch irgend jemand mir die schließende Klammer geklaut :lol: . Danke für deine Geduld und Hilfe

Gruß Huch


Top
 Profile  
Reply with quote  
PostPosted: Mon 19. Apr 2010, 13:45 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

diese frage
https://www.phpbb.de/community/viewtopi ... 3#p1175613
hättest du auch hier stellen können


Top
 Profile  
Reply with quote  
PostPosted: Mon 19. Apr 2010, 19:13 

Posts: 11

Last Topic:
Last X [img] on For...

Joined:
Mon 12. Apr 2010, 17:57

4seven wrote:
diese frage
https://www.phpbb.de/community/viewtopi ... 3#p1175613
hättest du auch hier stellen können

Jo auch wieder war ;-)

Hab aber trotzdem noch eine Frage zu den Settings in der last_x_img_on_forum
Wenn ich den crawl effekt einschalte wird mir je nach Bildschirmauflösung eine verschiedene Anzahl von Thumbnails dargestellt. Schalte ich den Crawl Effekt aus dann werden mir 9 Thumbnail Bilder angezeigt.
In den Einstellungen habe ich aber
Code:
// number of max pics to show 
// (important if user have no javacript enabled or $detect_java_screen  is set to 'no';)
$max_img_to_show  = 11;
// enter as given 9 or 12 etc.  

eingestellt.
So die Fragen wären, warum werden mit crawl je nach Auflösung eine verschiedene Anzahl angezeigt und ohne Crawl nur 9. Welche Funktion hat dann die oben gepostete Einstellung?
Danke für Info! Ach ja kann man auch das so coden das gesperrte Topics nicht berücksichtig werden? Das wäre genial.

Gruß Huch


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
POWERED_BY
[ Time : 0.073s | 28 Queries | GZIP : Off | Board-Version: 3.0.7 PL1 ]