Remove Select Expand from quote box ?

Support for IntegraMOD 141

Moderator: Integra Moderator

Remove Select Expand from quote box ?

PostAuthor: Sligo » Tue Feb 26, 2008 10:50 am

Your phpBB Version: 2.0.
phpBB Type: Standard phpBB
MODs: No
Your knowledge: Beginner
Board URL: [url]unpublished[/url]

PHP Version:
MySQL Version:


What was done before the problem appeared?
n/a


What was done to try to solve the problem?
search forum for answers



De.scription and Message

I would like to remove the à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¹ Select à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ º and à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¹ Expand à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ º options from the quote/code boxes. I'm trying to pare down my IM141 for a cleaner look, and there won't be enough quoting and code snippets to warrant it anyways.

Can this be done through the ACP or do I need to comment-out/delete something?
Last edited by Sligo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Sligo
Members
Members
 
Posts: 60
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 20, 2007 11:38 am
Cash on hand: 0.00

Re: Remove ‹ Select âÃ

PostAuthor: obiku » Thu Feb 28, 2008 5:04 am

comment/delete......

You have to rewrite the quote bbcode, rewrite it to its original look.
Take a look at your bbcode.php and the bbcode.tpl
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

Re: Remove ‹ Select âÃ

PostAuthor: Sligo » Thu Feb 28, 2008 2:13 pm

I don't have enough php/tpl experience to recognize the appropriate lines to edit.

I looked at both files and did not see anything that might represent the 'expand' and 'select' options.
Last edited by Sligo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Sligo
Members
Members
 
Posts: 60
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 20, 2007 11:38 am
Cash on hand: 0.00

Re: Remove ‹ Select âÃ

PostAuthor: tmotley » Sun Mar 02, 2008 8:58 am

I believe templates/fi_divexpand.js is the .script that adds that functionality. Removing the .script calls in bbcode.tpl doesn't work because then it puts the quoted text in the header part of the quote... I assume it's missing a div when the .script call is removed.

Editing fi_divexpand.js affects code and php bbcodes as well. I little testing on my site ended with this that seems to work with minimal editing.

OPEN templates/fi_divexpand.js

FIND: (line 38)
Code: Select all
    document.write('‹ <a>Select</a> ›‹ <span><a>Expand</a> ›</span></div><div>');    


REPLACE WITH]     document.write(' </div><div>');    [/code]

*NOTE* - Part of the FIND code posted above is being parsed as html strangely enough... If you do this slight modification, you should A) backup your fi_divexpand.js and B) replace the second to last line of fi_divexpand.js (it's my line 38) with the code posted in the REPLACE WITH:
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

Re: Remove ‹ Select âÃ

PostAuthor: Sligo » Mon Mar 03, 2008 11:23 pm

tmotley,

Thanks so much for the help! I'm almost there...I'm still getting this:

so-and-so wrote ([url=http]view post[/url]): à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ º

I'm trying to get rid of the link part so that my quote boxes will read:

so-and-so wrote:

I tried looking for some info to understand document.write better, but I'm afraid java .scripting is beyond my skill level at this point. Any ideas? Seems like I need just one more small edit (famous last words!)...
Last edited by Sligo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Sligo
Members
Members
 
Posts: 60
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 20, 2007 11:38 am
Cash on hand: 0.00

PostAuthor: tmotley » Tue Mar 04, 2008 7:16 am

I kind of like that (view post) part since it helps prevent someone intentionally misquoting someone... since a link to the quoted post is there.

I'll take a look at it tonight if I get a chance. Unless someone beats me to the punch.
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

Re: Remove ‹ Select âÃ

PostAuthor: tmotley » Tue Mar 04, 2008 6:37 pm

I would think this would work... back up your bbcode.tpl file just to be safe.

OPEN bbcode.tpl

FIND:
[code]  <BEGIN><script></script><table><tr><td><div>{USERNAME} {L_WROTE} ({U_VIEW_POST})]

REPLACE WITH:
[code]  <BEGIN><script></script><table><tr><td><div>{USERNAME} {L_WROTE}]

FIND:
[code]  <BEGIN><script></script><table><tr><td><div>{L_QUOTE} ({U_VIEW_POST})]

REPLACE WITH:
[code]  <BEGIN><script></script><table><tr><td><div>{L_QUOTE}]
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

Re: Remove ‹ Select âÃ

PostAuthor: Sligo » Tue Mar 04, 2008 10:19 pm

EDIT: it worked. thanks Tim!!!
Last edited by Sligo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Sligo
Members
Members
 
Posts: 60
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 20, 2007 11:38 am
Cash on hand: 0.00

Re: Remove ‹ Select âÃ

PostAuthor: Sligo » Tue Mar 11, 2008 10:16 am

I spoke too soon - there's still one issue left (see attached). If the quote is over a certain number of lines long, a scroll bar will appear on the side. I want to have the quote box auto-size to display all text, and never use the scroll bar. Can this be done?
You do not have the required permissions to view the files attached to this post.
Last edited by Sligo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Sligo
Members
Members
 
Posts: 60
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 20, 2007 11:38 am
Cash on hand: 0.00

Re: Remove ‹ Select âÃ

PostAuthor: Sligo » Tue Apr 01, 2008 8:16 am

Any ideas?
Last edited by Sligo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Sligo
Members
Members
 
Posts: 60
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 20, 2007 11:38 am
Cash on hand: 0.00

PostAuthor: HardHead » Sun Jun 01, 2008 11:56 am

This worked as far as removing the à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¹ Select à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ º and à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¹ Expand à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ º options.
http://www.hh-forums.com/viewtopic.php?t=1507

How do I adjust the Hight ??? I tried reediting a few thing but it didn't work.
Last edited by HardHead on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[photo]http://www.hh-forums.com/Banners/Sig.gif[/photo]
[photo]http://www.hh-forums.com/Banners/HardHeadSig2.gif[/photo]
User avatar
HardHead
Newbie
Newbie
 
Posts: 11
Likes: 0 post
Liked in: 0 post
Joined: Mon Sep 17, 2007 11:05 pm
Cash on hand: 0.00
Location: Dumas, Arkansas


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]