[2.0.6] Left and Right IMG tags

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
13
76%
Very Good
2
12%
Good
1
6%
Fair
0
No votes
Poor
1
6%
 
Total votes: 17

peterpaulw
Registered User
Posts: 5
Joined: Mon May 09, 2005 3:20 pm

Post by peterpaulw » Tue May 17, 2005 8:41 am

Thanks guys :D

Installed MOD Version: 1.6.1 on phpBB 2.0.15, and it works nicely.

Blade Runner
Registered User
Posts: 17
Joined: Fri Mar 05, 2004 9:58 pm
Location: Seattle
Contact:

Post by Blade Runner » Sat Jun 18, 2005 5:16 am

After doing a manual install of this mod, I keep getting these error messages (and similar...)

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /home/animear/public_html/phpBB2/language/lang_english/lang_main.php:1047) in /home/animear/public_html/phpBB2/includes/functions.php on line 803
I have a clean phpBB2 version 2.0.15 with EasyMod installed and a couple of other mods that went in with EasyMod just fine. This wasn't recognized by EasyMod so I edited the files from my control panel. Now, I can't log in to my admin because of this error.

I undid all the changes to the files by removing all the modified code, but I'm still getting this error.

I need help!

kulinar
Registered User
Posts: 651
Joined: Thu Feb 17, 2005 7:31 pm
Contact:

Post by kulinar » Sat Jun 18, 2005 6:47 pm

Check for duplicate ?> in your lang_main.php file

dcz
Registered User
Posts: 787
Joined: Sun Feb 13, 2005 5:37 am
Contact:

hi

Post by dcz » Mon Jul 04, 2005 8:01 am

I just discovered this mod and went through all the thread.
Now there is just one thing I'd like to know before testing it.

In all above mentionned version it is told to perform this change in include/bbcode.php

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
   $patterns[] = "#\[img:$uid\](.*?)\[/img:$uid\]#si";
   $replacements[] = $bbcode_tpl['img'];
but int the original file (2.0.16) the code looks more like :

Code: Select all

   $patterns[] = "#\[img:$uid\](.*?)\[/img:$uid\]#i";
   $replacements[] = $bbcode_tpl['img'];
So I was wondering if I needed to change the #i into #si in the rest of the code before applying this code change (including #si's)

Thanks

++

dcz

phpBB SEO || phpBB3 SEO Premod || SEO phpBB3
GYM Sitemaps & RSS for phpBB3: GYM Sitemaps & RSS

isoS
Registered User
Posts: 18
Joined: Tue Jun 28, 2005 8:03 pm

Post by isoS » Tue Jul 19, 2005 12:23 am

That's not the only difference in that file, as far as I could see... I just tried installing this (using easyMOD) in 2.0.16 and it didn't work -- got this message when trying to preview a post with right-aligned img:

Code: Select all

Parse error: parse error, unexpected '<' in xxxx/phpbb/includes/bbcode.php(90) : eval()'d code on line 23

Warning: Cannot modify header information - headers already sent by (output started at xxxx/phpbb/includes/bbcode.php(90) : eval()'d code:23) in xxxx/phpbb/includes/page_header.php on line 557

Warning: Cannot modify header information - headers already sent by (output started at xxxx/phpbb/includes/bbcode.php(90) : eval()'d code:23) in xxxx/phpbb/includes/page_header.php on line 559

Warning: Cannot modify header information - headers already sent by (output started at xxxx/phpbb/includes/bbcode.php(90) : eval()'d code:23) in xxxx/phpbb/includes/page_header.php on line 560
Can someone rewrite this for 2.0.16, or give a hint how to implement it? Maybe if I installed it manually I could figure it out, but I'm not sure.

Olja
Registered User
Posts: 6
Joined: Fri Aug 19, 2005 1:20 am
Contact:

Post by Olja » Mon Aug 22, 2005 1:13 pm

Fixed it ;)

User avatar
NeoID
Registered User
Posts: 406
Joined: Mon Jun 06, 2005 10:12 pm
Location: Norway
Contact:

Post by NeoID » Wed Oct 26, 2005 10:55 am

Doesn't anyone have this mod installed so I could take a look at it?
No of the hyperlinks/demo sites worked... :?
Norsk Anime Forum
http://www.AnimeNord.com

User avatar
atnbueno
Registered User
Posts: 39
Joined: Sun Aug 03, 2003 5:26 pm
Location: Spain
Contact:

Post by atnbueno » Wed Oct 26, 2005 12:07 pm

Hi,

I do. Well, at least my own 1.6.2 version. You can see it at http://www.mundoplus.tv/foros/


Regards,
Antonio B.
mundoplus.tv - Televisión por Satélite en España

User avatar
NeoID
Registered User
Posts: 406
Joined: Mon Jun 06, 2005 10:12 pm
Location: Norway
Contact:

Post by NeoID » Wed Oct 26, 2005 2:24 pm

Thanks, atnbueno! Nice board, however, I don't know much spanish... :)
I'll give it a try...
Norsk Anime Forum
http://www.AnimeNord.com

SeraphicGate
Registered User
Posts: 207
Joined: Tue Dec 23, 2003 6:54 am

Post by SeraphicGate » Wed Oct 26, 2005 4:56 pm

Does this also work with text and in signatures or just in normal posts. Also, are there any plans to add a "Center" bbcode tag to this mod?

User avatar
NeoID
Registered User
Posts: 406
Joined: Mon Jun 06, 2005 10:12 pm
Location: Norway
Contact:

Post by NeoID » Wed Oct 26, 2005 9:47 pm

atnbueno wrote: Hi,

I do. Well, at least my own 1.6.2 version. You can see it at http://www.mundoplus.tv/foros/
Regards,


It looks quite good, but for some reason only [img=left] will work... :/
when I try to use =right I only see the URL... :(
Norsk Anime Forum
http://www.AnimeNord.com

kulinar
Registered User
Posts: 651
Joined: Thu Feb 17, 2005 7:31 pm
Contact:

Post by kulinar » Thu Oct 27, 2005 6:13 am

SeraphicGate wrote: Does this also work with text and in signatures or just in normal posts?
Yes, sure. Check it out.

User avatar
NeoID
Registered User
Posts: 406
Joined: Mon Jun 06, 2005 10:12 pm
Location: Norway
Contact:

Post by NeoID » Thu Oct 27, 2005 7:12 am

Is it possible to change margin-left? I've heard some talking about it, but I didn't get it to work... :)
Norsk Anime Forum
http://www.AnimeNord.com

dcz
Registered User
Posts: 787
Joined: Sun Feb 13, 2005 5:37 am
Contact:

Re: hi

Post by dcz » Thu Oct 27, 2005 9:16 am

dcz wrote: I just discovered this mod and went through all the thread.
Now there is just one thing I'd like to know before testing it.

In all above mentionned version it is told to perform this change in include/bbcode.php

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
   $patterns[] = "#\[img:$uid\](.*?)\[/img:$uid\]#si";
   $replacements[] = $bbcode_tpl['img'];
but int the original file (2.0.16) the code looks more like :

Code: Select all

   $patterns[] = "#\[img:$uid\](.*?)\[/img:$uid\]#i";
   $replacements[] = $bbcode_tpl['img'];
So I was wondering if I needed to change the #i into #si in the rest of the code before applying this code change (including #si's)

Thanks

++

dcz


no body had this, can't believe it!

phpBB SEO || phpBB3 SEO Premod || SEO phpBB3
GYM Sitemaps & RSS for phpBB3: GYM Sitemaps & RSS

User avatar
atnbueno
Registered User
Posts: 39
Joined: Sun Aug 03, 2003 5:26 pm
Location: Spain
Contact:

Post by atnbueno » Thu Oct 27, 2005 12:22 pm

Hello all.
neox3 wrote: It looks quite good, but for some reason only [img=left] will work... :/
when I try to use =right I only see the URL... :(

You mean in my forum? It works for me (WinXP, IE, FF & Op):
http://www.mundoplus.tv/foros/viewtopic.php?t=22748
neox3 wrote: Is it possible to change margin-left? I've heard some talking about it, but I didn't get it to work... :)

If you mean to style the floated image, check out the style attribute of the img tag after <!-- BEGIN left --> in http://www.mundoplus.tv/atnbueno/left-right_162.mod
dcz wrote: [...] I was wondering if I needed to change the #i into #si in the rest of the code before applying this code change (including #si's)

The "s" is a regex modifier that enables single-line mode. You can decide if you want to allow linebreaks in your [img] bbcodes.


Regards,
Antonio B.
mundoplus.tv - Televisión por Satélite en España

Post Reply

Return to “[2.0.x] MOD Database Cleanup”

Who is online

Users browsing this forum: No registered users and 3 guests