1
waleedpak
Re: How to show User's Avatar on User Menu?
  • 2008/10/16 13:49

  • waleedpak

  • Just popping in

  • Posts: 45

  • Since: 2007/11/25


i will post this codes as a custom block code module pretty soon



2
waleedpak
Re: Limit xoops template width to 800 px..
  • 2008/10/16 13:45

  • waleedpak

  • Just popping in

  • Posts: 45

  • Since: 2007/11/25


does it work in IE7,,
i have IE8 at home, it doesn't work there,
the page is still aligned at the left side..

however, it works fine in mozilla and opera



3
waleedpak
Re: "Blank.Gif" And "Avatar Gallery" Avatar Problem
  • 2008/10/12 3:08

  • waleedpak

  • Just popping in

  • Posts: 45

  • Since: 2007/11/25


reuploading the images again didn;t helped JAVesey..
sailjapan, i purposely wrote "mysite.url",, that actually refers to my site url.. just simply don;t wanna wrote my url here

however, can anyone please give me the "hack by alf" avatar code?
i mean a working one



4
waleedpak
Re: Limit xoops template width to 800 px..
  • 2008/10/12 2:55

  • waleedpak

  • Just popping in

  • Posts: 45

  • Since: 2007/11/25


yess... this was the million dollar trick
thanx alot kris_fr
i just added this code on my css file
html {    margin:0 auto;
    
width:800px;}


and i got what i need
never knew it was that simple
tanx again



5
waleedpak
"Blank.Gif" And "Avatar Gallery" Avatar Problem
  • 2008/10/11 9:57

  • waleedpak

  • Just popping in

  • Posts: 45

  • Since: 2007/11/25


hi, i am having this problem since a long time ago
for those members who upload their avatar from the "edit account" link, their avatar is displayed correctly everywhere on my site..

however, for those members who choosed their avatar from my avatar gallery instead of uploading their own, their avatar are not shown on my site, especially in the "yogurt" module and "xphpbbi" module..

besides, i'm having the same problem with those who didn;t uploaded any avatar at all, instead of showing the "blank.gif" avatar, their avatar are shown as "not found" images with the url "mysite.url/uploads/"....

i hope you all understand what i mean
any sollution for this? please help



6
waleedpak
Re: Limit xoops template width to 800 px..
  • 2008/10/11 9:46

  • waleedpak

  • Just popping in

  • Posts: 45

  • Since: 2007/11/25


using text-align:center the text on my page aligns in the center of their respective blocks... but my site is still aligned at the left side of the screen..

can anyone please give me the exact wrapper code to be put in the css file and then the code to be put in the theme file (with it's details).. I'll try this method again, maybe then my problem would be solved



7
waleedpak
Re: Limit xoops template width to 800 px..
  • 2008/10/11 6:35

  • waleedpak

  • Just popping in

  • Posts: 45

  • Since: 2007/11/25


i wrote
<body style ="width:800px">
sorry for writing it wrongly

by the way, i'm not having any problem with the width
my width problem is already solved
now i want to center the whole page
margin: auto; is not working

please help



8
waleedpak
Re: Limit xoops template width to 800 px..
  • 2008/10/11 4:50

  • waleedpak

  • Just popping in

  • Posts: 45

  • Since: 2007/11/25


thanks serial-weber
my XOOPS site now has a fixed width
i used the code <body style ="width:80opx">
however my whole site is aligned in the left side of the screen
there is a lot of empty space in the right side but none in the left..
so how can i align my site in the center?

i've tried the div id="wrapper" but it doesn't work
is there any trick to make it align center using the <body> tag?
please help?
<body align="center"> is also not working



9
waleedpak
Re: How to show User's Avatar on User Menu?
  • 2008/10/10 14:13

  • waleedpak

  • Just popping in

  • Posts: 45

  • Since: 2007/11/25


i found the trick..
1st open modules/system/blocks/system_blocks.php

insert this code just before the ?> sign..
GLOBAL $xoopsUser;
if (
is_object($xoopsUser)) {
$uavatar $xoopsUser->getVar('user_avatar');
if (
file_exists(XOOPS_ROOT_PATH.'/uploads/'.$uavatar)) {
$GLOBALS['xoopsTpl']->assign('uavatar'XOOPS_URL.'/uploads/'.$uavatar);
}else{
$GLOBALS['xoopsTpl']->assign('uavatar''');
}
}


then after that edit the User Block template from the block administrations menu..

add the following code at the place you want the avatar to be displayed.
<{if $uavatar != ""}>
      <
img src="<{$uavatar}>" alt="" width="100" /><br />
      <{/if}>

you can change the width if you want...
besides you can also display the user's username by using the code
<{$xoops_uname}>


that's all
tanx



10
waleedpak
Re: Limit xoops template width to 800 px..
  • 2008/10/10 14:05

  • waleedpak

  • Just popping in

  • Posts: 45

  • Since: 2007/11/25


for example when you open yahoo page on a higher resolution desktop, there are empty spaces at both sides of the page (left and right).. try to open and see..
but when you open XOOPS website, the template automatically resizes to fill up the whole screen....
please try to understand what i mean...

i want to limit my template so that it doesn;t automatically resizes acording to desktop resolutions but stay at a fixed template width of "800px" or something else...




TopTop
(1) 2 3 4 5 »



Login

Who's Online

180 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 180


more...

Donat-O-Meter

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

Latest GitHub Commits