Sub Menu
Links Menu
Online Users

In total there are 646 users online :: 3 registered, 0 hidden and 643 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Helter, Majestic-12 [Bot] based on users active over the past 60 minutes

[Solved] Viewtopic width

Support for IntegraMOD 140

Moderator: Integra Moderator

[Solved] Viewtopic width

PostAuthor: billsatx » Fri May 25, 2007 12:51 pm

Your phpBB Version: 2.0.19
phpBB Type: Integramod 140
MODs: Yes
Your knowledge: Basic Knowledge
Board URL: http://www.satxinfo.com

PHP Version:
MySQL Version:


What was done before the problem appeared?
always had problem


What was done to try to solve the problem?
tried all the files to see if the width can be adjusted



De.scription and Message

Not sure if this is right place or not. If not, please move.

I have launched a community site for San Antonio, Tx. Everything works great except the viewtopic.php screen which is I can't seem to make the same size as the rest of the website. I've search numerous file to see if I can restrict or adjust the width, but no luck.

I know that the site is at version 19, and at some point will attempt to upgrade, but really want to finish the look of the site first.

also because IE and Firefox look at browser code diff, I've had to make some other minor adjustments.

The site uses numerous software programs, but the foundation of the site is the IM system

Again, the issue is the "width" of the viewtopic.php screen

Thanks
billsatx
Last edited by billsatx on Sun May 27, 2007 2:40 am, edited 1 time in total.

billsatx
Members
Members
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 21, 2006 8:38 am
Cash on hand: 0.00

Re: Viewtopic width

PostAuthor: Frost » Fri May 25, 2007 8:01 pm

Hmm, I tried going to your site to have a look and firefox doesn't find it

Your site still up?
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Viewtopic width

PostAuthor: billsatx » Fri May 25, 2007 8:55 pm

Oppps...I guess the first step in trying to ask for help should be "make sure you spell you OWN URL correctly" <img>

Fixed the hyperlink in the support info ticket, so should now work or try link to main page below

[url=http]SATXInfo Main Page Link[/url]

Thanks in advance for any support
Bill
Last edited by billsatx on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

billsatx
Members
Members
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 21, 2006 8:38 am
Cash on hand: 0.00

Re: Viewtopic width

PostAuthor: Helter » Fri May 25, 2007 9:36 pm

in your template/viewtopic_body.tpl

find

Code: Select all
no_thread_stretch({BLOCK_WIDTH}+240);


replace with

Code: Select all
no_thread_stretch({BLOCK_WIDTH}+10%);


you may have to play with the % number, but it is the text that is stretching the page
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Viewtopic width

PostAuthor: billsatx » Sun May 27, 2007 2:36 am

Thanks for response...
Found code and replaced it.
I tried 10% - 50% - 100% and 200% and got the same results. Changing to a % literally made the topic box half the width of the page regardless of the percenbtage used.

I then tried changing the (original) +233 number to a small number like 100 and 50 and got no visible results

I then got stupid and changed the +233 number to 650 ( just so I'd tried everything) and the box is now the correct size. ???????????? wierd

No idea why this worked...but the old say.ing.....It's not broke anymore, so I'm not gonna try to fix it <img>)

Thanks for pointing out the correct line in the .tpl file
Last edited by billsatx on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

billsatx
Members
Members
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 21, 2006 8:38 am
Cash on hand: 0.00

PostAuthor: nGAGE » Mon May 28, 2007 5:31 am

This should only have affect if the no_thread_stretch JavaScript is called for.

So if you don't have the following line in your viewtopic_body.tpl, it won't have effect anyhow.
Code: Select all
 <script></script>  


Been messing with this in the past, thinking there was something wrong with the JavaScript, but nobody answered on my posts.
You could even remove the above line from the .script and it won't have effect on your viewtopic_body.tpl anymore. But I think it should be there for some old "IE4 compatibility" (<= is this required?), or something.
Last edited by nGAGE on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.net-clan-gaming.eu/ftp/ngage/images/nEt_v3_sig.png[/img][/url]
User avatar
nGAGE
Sr Integra Member
Sr Integra Member
 
Posts: 248
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 6:28 am
Cash on hand: 0.00

PostAuthor: bariq » Mon May 28, 2007 10:51 pm

nGage,

Can you tell me how the viewtopic page is being generated.... meaning how the values are being passed to viewtopic_body.tpl, iam interested in this block {postrow.MESSAGE} if i can find out how the message text and the bbcode and the images are being parsed then can do something...

cheers
Last edited by bariq on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

bariq
Members
Members
 
Posts: 65
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 6:52 pm
Cash on hand: 0.00

Re: [Solved] Viewtopic width

PostAuthor: nGAGE » Tue May 29, 2007 4:25 am

OK... This turned out to be a post, probably near reaching the database's max character possible :roll:

[spoil:39k8bknt]In most cases, for most of the .tpl files with _body in it, you've got a good chance that you can find the same-named file (without _body) in the root, being a .php file. (for basic phpBB core files at least)
A lot of the add-ons/mods in IntegraMOD, actually use their own little folder or even a dedicated folder structure. Anyhow...
The base .php file of a page, are the files that decide what data/information/variable/(etc) needs to be available for that particular page on the site to display, or if certain conditions are not met, do other stuff, like deny access and redirect to login page (for example).
Aside from a php-file's own definitions and variable it sets for conditions to follow, a .php file generally "requires" other files (.php) to call for other "global" data/functions in order to complete it's line of code by (sort of) "consulting" these files (each with their own, specific tasks and routines) to run queries and/or specific conditions, generating a result that will decide under what/which conditions the page should continue to load. These "consulting jobs" would be functions like verifying/retrieving user's session-key and the permissions that go along with this user etc, or values (called from database) to determine the language used to display on the page etc. Based on those functions' result the initial php file can determine how to proceed (for example; using the "retrieved & validated" session-key and the user's permissions, to determine if the user should be able to have moderator functions available when viewing a post, or what the user's choice of avatar is) and return this information for the .php to go through it's remaining set of functions, every time determining the next step based on previous result... applying the values applicable to the condition(s) the user is in at that point in time.
A lot (pretty much "most") of the output is either generated (within/by the result of such routines) using language-keys, rather then plain .php echos, or (of course) database values where required. These "values" are then simply called for in the appropriate area's of the page's layout/design templates assigned to the output, also here being aside by the php as a result of the conditions it has passed through. With the help of the .tpl files data is made visible graphically, or (where input is in order) the entered value will then be run against the previously processed routine and it's conditions to determine a change in the conditions, possibly resulting in the php-file taking an altered cause of action.
All the templates (no matter what theme) will have different html-code to alter layout, images and backgrounds used to display the requested page in all kinds of styles and shapes (made flexible through the use of JavaScript and CSS, but they all (or at least "should") call for or submit for the same values to/from the php-files.

Important Note on the side:
In a majority of cases with IntegraMOD, things work a little different from the above (if correct), as a great part of the functions/content/etc has been made truly dynamic, by having values/conditions/etc stored in the database to be run through a different set of rules with the values editable in the ACP, allowing expanding of the site's functionalities/features without needing to edit files for it.
One of those very obvious MODs is the PCP (Profile Control Panel), allowing for user-profile data, fields, looks, registration requirements and many other things, to be edited/expanded via the ACP, without requiring the Admin to use FTP access to modify files manually and create new database tables manually etc.[/spoil:39k8bknt]


And to finally comment on the how(s) and what(s) of the "viewtopic_body.tpl", like your {postrow.MESSAGE} area, get to be what you see?!
When the page is loaded (which is "/viewtopic.php" in the root) like mentioned above, the php file starts to define what other files it requires and/or needs to load in addition to it's own task for the page to display the way it does! One of those files being "included" into the process, is for example "/includes/bbcode.php", which in this case will make sure that the appropriate JavaScripts are run to replace the written bbcode stored in the database along with the rest of the post, to generate the visually altered version of the content.
Before it does the visual conversion of the text though, the php-file (aside from other external files also required) must now still also run through all of it's own conditions and verifications to determine the final outcome. (also here again, it will call upon verification of access-level etc.
Due to the complexity and extensiveness of MODs integrated into IntegraMOD, you will find that there is hardly any "base-file" that doesn't call for ton's of additional mods' values, in order to display more / add functionality or prevent certain things from happening.
Should you know (in this situation) want to know more about what/how the bbcodes work, you will have to follow the route to the next file required for it (opening "/includes/bbcode.php")... in which you will find out more about the conditions under which it will apply bbcode and how it handles the actual post-text when running it through the java-.script... just to be returned as another variable.
I do NOT recommend changing the bbcode.php file or the JavaScript though if you only want to prevent certain bbcodes from being used. An easier way would be removing (or better: commenting out) the functionality you don't need from "/templates/[your theme]/bbcode.tpl". This way the bbcode-mod stays in tact and no harm is done to the functionality of the code. It's just an example anyhow. But ok!

I've got no clue in how far I've explained things correctly and understandable, give the little knowledge I have... but no matter how much fun it was typing this Novel, spending 2 hours trying to put in words I'm not officially qualified to make statement about, I must now take a shower and get some work done!
I've got plans for a MAJOR MOD (and a couple of small ones)... That I haven't seen anywhere yet (not even in a different form of what I've got in mind) and so I need to figure out all the details (how it's functionality should be working and the features that must be available) and start planning how to get started... But much more importantly: "Try to find out what I need teach myself first, before I should even consider starting on the project!"


OMG... I've cut it down a bit! If you're interested in reading all the confusing/unprofessional terminology-abuse (which I suspect I did)... just "spoil" the message.


I'm off!
Last edited by nGAGE on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.net-clan-gaming.eu/ftp/ngage/images/nEt_v3_sig.png[/img][/url]
User avatar
nGAGE
Sr Integra Member
Sr Integra Member
 
Posts: 248
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 6:28 am
Cash on hand: 0.00

PostAuthor: bariq » Tue May 29, 2007 4:53 am

ngage,

Thanks for the explanation, well iam aware of asp so i understand the concept of this. But what iam trying to ask is that, when i looked into viewtopic.php i couldnt find any code which is populating the {postrow.MESSAGE} in the tpl file.

If i find that then i plan to introduce some java.script code to control the image popups instead of showing the full image inline and thus having the scroll bars.
Last edited by bariq on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

bariq
Members
Members
 
Posts: 65
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 6:52 pm
Cash on hand: 0.00

PostAuthor: nGAGE » Tue May 29, 2007 6:03 am

Hmmm... goody... similar to what I'm planning! Just didn't look into it yet... my list of "TO-DOs" is growing every day and I can't keep up :)
Last edited by nGAGE on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.net-clan-gaming.eu/ftp/ngage/images/nEt_v3_sig.png[/img][/url]
User avatar
nGAGE
Sr Integra Member
Sr Integra Member
 
Posts: 248
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 6:28 am
Cash on hand: 0.00

PostAuthor: bariq » Tue May 29, 2007 5:12 pm

cool man, i like what you did with the attachment. I would luv to do or someone to do the same to [img] tags hehe..

here is what i done to the [img] tags with java.script. If the pic is bigger than 750px then the pic is compressed to 750px and a hotlink for it to be opened in another window is given. check my site for this

http://www.mytikas.org/portal/viewtopic.php?p=5988#5988
Last edited by bariq on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

bariq
Members
Members
 
Posts: 65
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 6:52 pm
Cash on hand: 0.00

PostAuthor: nGAGE » Tue May 29, 2007 11:12 pm

Guess it's the same (sort of)... code must only be placed different locations.

The JavaScript I use for the attachment images (HighSlideJS), can be used for more then just images... and eventually I'll probably also use it for "Quote" / "Code" / "php" thingies in the post, sliding from a small window to a scrollable textbox with the content ;)
Simply set the "always create thumbs" to off and set the filesize to something HUGE, like 5MB and it won't create thumbs unless file is bigger, meaning it won't give me my errors anymore.
Which reminds me... I'll have to post this as a solution/work-arround for the post with my attachment-image problems. <img>
Last edited by nGAGE on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.net-clan-gaming.eu/ftp/ngage/images/nEt_v3_sig.png[/img][/url]
User avatar
nGAGE
Sr Integra Member
Sr Integra Member
 
Posts: 248
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 6:28 am
Cash on hand: 0.00

PostAuthor: bariq » Wed May 30, 2007 12:44 am

nice. iam content with the js i implemented on my site for the time being. But i would still like to know how the viewpost_body.tpl the image is getting populated. Let me know if any of your research lead to some discoveries.

cheers
Last edited by bariq on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

bariq
Members
Members
 
Posts: 65
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 6:52 pm
Cash on hand: 0.00

PostAuthor: nGAGE » Wed May 30, 2007 3:38 am

Sure thing... whenever I start implementing stuff and take it to the live-site... I will eventually add posts about the modifications and perhaps even KB-Articles about them... I'll add a "To-do" and hope I don't forget posting them here as well <img>
Last edited by nGAGE on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.net-clan-gaming.eu/ftp/ngage/images/nEt_v3_sig.png[/img][/url]
User avatar
nGAGE
Sr Integra Member
Sr Integra Member
 
Posts: 248
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 6:28 am
Cash on hand: 0.00

PostAuthor: fua » Sat Jun 02, 2007 3:20 am

"bariq";p="26082" wrote:cool man, i like what you did with the attachment. I would luv to do or someone to do the same to [img] tags hehe..

here is what i done to the [img] tags with java.script. If the pic is bigger than 750px then the pic is compressed to 750px and a hotlink for it to be opened in another window is given. check my site for this

http://www.mytikas.org/portal/viewtopic.php?p=5988#5988


I've seen this kind of MOD before and even asked here if anyone knew what MOD was it and where to find it. At that time I was told that it must have been for other versions of phpBB (or was it IntegraMOD? can't remember) rather than the one I'm using in my forum.

A "HOW-TO" for that would be very welcome, since my programming knowledge isn't that advanced, and wouldn't know what to do or where to begin, on my own. <img>

Post .scriptum - I opened nGAGE link, and with the Opera browser it showed a bit weird. For a really small "thumbnail", the width of the forum was really large, with a horizontal scrollbar useless with the minimized image...

Anyway, great job there.
Last edited by fua on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[font=Traditional Arabic][size=99px]
[img=left]http://static.flickr.com/71/174693706_e7fb45ea37_o.png[/img]
Its when life smiles at you that you can see how many teeth are missing.
User avatar
fua
Newbie
Newbie
 
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 24, 2007 6:09 am
Cash on hand: 0.00

Next

Return to IntegraMOD 140

Who is online

Registered users: Bing [Bot], Helter, Majestic-12 [Bot]

cron