1
rajaito
so many annoying questions for you guys
  • 2005/6/22 2:33

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


I really wish that I had more time to learn how PHP, smarty and XOOPS work. Everything I have learned so far I have taught myself by researching and experimenting. But it's just not enough to satisfy my needs as a XOOPS user.

I put my questions out there to the developers and the XOOPS community and although some questions are answered (thank you to those who have been able to help!), so many just fall to the wayside. I don't know if I am just asking rediculous questions or if this is totally possible stuff that someone knows how to do but doesn't have the time.


For example:

I keep downloading all these great modules with all these little things I want to change. Little things like make my calendar module display the event loacation and the uploaded image while viewing in flat view.

Or...

I wish I knew a way to limit the size of all images displayed on the site. Why? Because I am using a theme that is 800 px wide. However, people consistantly post stuff that is 1024 wide and larger. It breaks my theme everytime. It is annoying! Cant I just write some block of php somewhere that says.... anywhere that a .jpg or .gif file is displayed, the script will automatically resize posted image to maximum of 500 px wide? The key here is to not stretch smaller images too a larger size, but to only resize stuff that is larger then 500px. This has to be possible. I have searched for the answer, but I haven't found any clear examples of this working.

Sorry if I am rambling. I just wish I knew enough to write my own modules. I am not even sure where to start.

2
WarDick
Re: so many annoying questions for you guys
  • 2005/6/22 5:50

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


You can limit the size of images by placing limits on the image category from the systems module menu.

3
rajaito
Re: so many annoying questions for you guys
  • 2005/6/22 6:28

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


Are you suggesting the settings on the admin preferenes for the image manager? If so, I believe what you suggest works only for the image manager, but does not work for the [img] or tags throught the rest of the site.

Or... might you be suggesting hacking a file?

4
WarDick
Re: so many annoying questions for you guys
  • 2005/6/22 6:34

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


Quote:
I wish I knew a way to limit the size of all images displayed on the site. Why? Because I am using a theme that is 800 px wide. However, people consistantly post stuff that is 1024 wide and larger. It breaks my theme everytime. It is annoying! Cant I just write some block of php somewhere that says.... anywhere that a .jpg or .gif file is displayed, the script will automatically resize posted image to maximum of 500 px wide? The key here is to not stretch smaller images too a larger size, but to only resize stuff that is larger then 500px. This has to be possible. I have searched for the answer, but I haven't found any clear examples of this working.


If you do not allow bigger images to be uploaded then they can not be displayed.

I do not like hacks they are too hard to maintain.

5
rajaito
Re: so many annoying questions for you guys
  • 2005/6/22 6:42

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


I understand that... My point is that a user can bypass the image uploader by just going to my forum or their profile and post a link to an image that is way too big. It will show the exact dimensions of the image breaking the theme, regardless of what I set in the image manager.

I understand what you mean about hacks. Upgrading is a nightmare.

6
WarDick
Re: so many annoying questions for you guys
  • 2005/6/22 6:47

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


I see what you mean. It can be solved in the templates. I just do not have the answer right now.

7
rajaito
Re: so many annoying questions for you guys
  • 2005/6/22 6:51

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


Well I appreciate your help. So my question remains...

Is there a php snippet I can add to my themes that will limit maximum image width automatically??

8
WarDick
Re: so many annoying questions for you guys
  • 2005/6/22 6:52

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


I believe you can solve it with smarty image tags and if statements.

Check out Smarty Image Tags.

9
rajaito
Re: so many annoying questions for you guys
  • 2005/6/22 6:59

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


ok for example.. here is something someone put together for an invisionboard. I have no idea what it means or if it is possible to make this work.

<script>

10
rajaito
Re: so many annoying questions for you guys
  • 2005/6/22 6:59

  • rajaito

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/1/3 1


Quote:

WarDick wrote:
I believe you can solve it with smarty image tags and if statements.

Check out Smarty Image Tags.


hmmm... interesting......

Login

Who's Online

484 user(s) are online (363 user(s) are browsing Support Forums)


Members: 1


Guests: 483


heyula,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits