Black Pearl

Increase the Subject Limit - Black Pearl

Increase the Subject Limit

by Different Breed » Mon Mar 26, 2012 8:29 pm

So Im trying to increase my title length on the Black Pearl. I tried doing what I have quoted below but I could not find the posting_editor.php file. So is there anyway to change the title (subject) size in Black Pearl?
Thank you.

COD3M4ST3R-X wrote:That would require file edits.
Open:includes/functions_content.php
Find:

Code: Select all

function truncate_string($string$max_length 60$max_store_length 255$allow_reply true$append '')     

Replace With:

Code: Select all

function truncate_string($string$max_length 200$max_store_length 255$allow_reply true$append '')     

$max_length = 100 this is the new limit change it to whatever you want eg.100 or 200.
Open:styles/prosilver/template/posting_editor.html
Find:

Code: Select all

<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>

Replace 60 and 64 with 100 respectively :D
and Dont forget to purge the cache ;)
Different Breed
Registered User
Posts: 27
Joined: Tue Mar 06, 2012 4:41 am

Re: Increase the Subject Limit

by Joshua203 » Mon Mar 26, 2012 9:45 pm

The reason you can't find posting_editor.php is because you are not reading, nowhere in those edits is a referal to that file.

You could also ask yourself how smart it would be to change that... do you really think those limits are there for no reason?
I think you will regret the edit as soon as someone will break you template (make it look ugly) by posting a long title imho

This is not really a style question btw ;)
Last edited by Joshua203 on Mon Mar 26, 2012 10:23 pm
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Increase the Subject Limit

by Joshua203 » Mon Mar 26, 2012 9:51 pm

PS
in the code below you can see how important only 4 characters are treated, 60 for the title of a new post and 64 for a reply title (which always has 4 characters added [Re: plus a backspace])

Code: Select all

<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->


So if only 4 characters are thát important to a template ...imagine what 100 or 200 would do!
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Increase the Subject Limit

by Different Breed » Mon Mar 26, 2012 10:41 pm

silly me. I typed .php but I was looking at the .html pages. That page simply isnt there. And I was increasing it cause I wanted to make a title that was longer than that. :P. and what do you mean by break my template?
Different Breed
Registered User
Posts: 27
Joined: Tue Mar 06, 2012 4:41 am

Re: Increase the Subject Limit

by Joshua203 » Mon Mar 26, 2012 11:06 pm

Ok well I did n't read very good either, those edits to that file are for prosilver (which I'm not so familiar with) black_pearl is based on subsilver2 style not prosilver.

You should be able to find a similar (not 100% the same) code in posting_body.html in black pearl

But still, I advise you to reconsider changing your whole phpbb setup including template for one silly title, would n't it be waaaay smarter to shorten the tilte? :lol:

Break the template >>> make it look like sh*t...
Keep in mind that not everybody is watching your site with your resolution settings or even with the same browser you are using ... it's really too much to explain but even if something looks good on your screen it does n't mean it will look the same on someone else his screen.
And even if you don't count the above... you just have a maximum width for text before it all "blows up in your face" (it could stretch to the side or become multilined, depending on the code that is used in that place)
EDIT: on top of it all ...in that position you're already dealing with left AND right positioned text.

EDIT2: Someone may even want to reduce the size of the window of the browser, you still want it to look nice when they do I guess ;)
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Increase the Subject Limit

by Different Breed » Mon Mar 26, 2012 11:33 pm

true true. I guess Ill keep it the same. You talked me outta it. Haha. And I do testing in different browers. My main browser that I use is IE and I have noticed that when I post direct links to my host gator account and embed those videos with a custom bb code that I have made, it doesnt show up in mozilla, google chrome, opera, or safari but it works perfect on IE.

BB Code:

Code: Select all

[web]http://invisiblehiders.net/Hides/{SIMPLETEXT}[/web]

HTML Replacement:

Code: Select all

<object width="800" height="659"><param name="movie" value="http://invisiblehiders.net/Hides/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://invisiblehiders.net/Hides/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="800" height="659"></embed></object>


Theres the code I use. Is there anyway to convert that to allow it to work on all browers?

Edit: Oh wait, after 5 minutes, they now have loaded and work on Safari and Google Chrome but there is not video control like I have on IE
Different Breed
Registered User
Posts: 27
Joined: Tue Mar 06, 2012 4:41 am

Re: Increase the Subject Limit

by Joshua203 » Tue Mar 27, 2012 12:02 am

Use a different bbcode? first thing I notice is that there is no allowFullScreen in there to allow fullscreen
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Increase the Subject Limit

by Different Breed » Tue Mar 27, 2012 1:07 am

That is correct.
I have tried a different code

Code: Select all

<object width="800px" height="659px" >
   <param name="allowFullScreen" value="true"/>
   <param name="wmode" value="transparent"/>
   <param name="movie" value="http://invisiblehiders.net/Hides/{SIMPLETEXT}" />
   <embed src="http://invisiblehiders.net/Hides/{SIMPLETEXT}" width="800" height="659" allowFullScreen="true" type="application/x-shockwave-flash" wmode="transparent"/>
</object>


I still have the exact same options that I had before and they it still doesnt work on the other browers. :/
Different Breed
Registered User
Posts: 27
Joined: Tue Mar 06, 2012 4:41 am

Re: Increase the Subject Limit

by Joshua203 » Tue Mar 27, 2012 1:59 am

I can only say it again, this really has nothing to do with black pearl style support (and that's where you're posting!)

On top of that you fail to give a test link with a demo post to see what's happening, my advice ..use google, use the site search and if you really don't find info... post questions in general support ..or hire someone to do the work for you if you can't be bothered or don't have the time ;)
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203