11
Robustus
Re: about url with or without www
  • 2008/12/16 9:59

  • Robustus

  • Just popping in

  • Posts: 30

  • Since: 2008/5/19


hello kizun4,
if your server support RewriteEngine sethttp://www.domain.com in the mainfile. create a .htaccess and write in:
RewriteEngine on  
RewriteCond 
%{HTTP_HOST} !^www.domain.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

In this case it will always switch tohttp://www.domain.com, no matter if you type with or without www.
it is also good for preventing duplicate content.



12
Robustus
Re: How to customiseYogurt Block "yogurt_block_friends.html"?
  • 2008/12/15 10:32

  • Robustus

  • Just popping in

  • Posts: 30

  • Since: 2008/5/19


Hehe it works perfect!
I set it now on a Production Site and will report if something goes wrong (don`t thing so).
Thank you very much trabis & Mowaffak




13
Robustus
Re: How to customiseYogurt Block "yogurt_block_friends.html"?
  • 2008/12/14 17:23

  • Robustus

  • Just popping in

  • Posts: 30

  • Since: 2008/5/19


Lol, no Problem. I already tried about 50 Varitions without success :)
Ok, this cause now following Error:
Parse errorsyntax errorunexpected T_VARIABLE in /modules/yogurt/blocks/blocks.php on line 51

Line 51:
$block['friends'] = $friends_factory->getFriends($options[0], $criteria1);



14
Robustus
Re: How to customiseYogurt Block "yogurt_block_friends.html"?
  • 2008/12/14 12:49

  • Robustus

  • Just popping in

  • Posts: 30

  • Since: 2008/5/19


Works fine now, but the Block shows every member who is online.
Maybe there is a way to restrict displaying only for Friends?



15
Robustus
Re: How to customiseYogurt Block "yogurt_block_friends.html"?
  • 2008/12/14 12:16

  • Robustus

  • Just popping in

  • Posts: 30

  • Since: 2008/5/19


Of course i will try as much as necessary. Thank you very much for your Support.

Same Error Occurs:
Parse errorsyntax errorunexpected ';' in /modules/yogurt/blocks/blocks.php on line 42



16
Robustus
Re: How to customiseYogurt Block "yogurt_block_friends.html"?
  • 2008/12/14 8:38

  • Robustus

  • Just popping in

  • Posts: 30

  • Since: 2008/5/19


This occurs now an Errormessage:
Parse error: syntax error, unexpected ';' in /modules/yogurt/blocks/blocks.php on line 42

42 is:
$criteria->add(new Criteria('online_uid'$uid'<>');

I have a Question for better understanding:
Is it not much easier to leave the blocks.php as it is and to modify the yogurt_block_friends.html like this way:

"if user is online"
<a href="<{$xoops_url}>/modules/yogurt/index.php?uid=<{$block.friends[i].uid}>"  title="<{$block.friends[i].uname}>"><{ if $block.friends[i].user_avatar=="blank.gif" }> <img src="<{$xoops_url}>/modules/yogurt/images/noavatar.gif" /> <{else}> <img src="<{$xoops_upload_url}>/<{$block.friends[i].user_avatar}>" /><{/if}><br /><{$block.friends[i].uname}> </a>     <br /><a href='javascript:openWithSelfMain("<{$xoops_url}>/pmlite.php?send2=1&to_userid=<{$block.friends[i].uid}>","pmlite",500,450);'><img src="<{$xoops_url}>/images/icons/pm.gif" /></a>     </div><br /> <{/section}>

"else"
<a href="<{$xoops_url}>/modules/yogurt/friends.php"><{$block.lang_allfriends}></a>

Or wouldn`t work this way?



17
Robustus
Re: How to customiseYogurt Block "yogurt_block_friends.html"?
  • 2008/12/13 20:52

  • Robustus

  • Just popping in

  • Posts: 30

  • Since: 2008/5/19


Thanks for your effort trabis, but it don`t work
The Blocks schows now every Onlinemember and also a Blank Pm Button (when clicking it will send to Guest).



18
Robustus
How to customiseYogurt Block "yogurt_block_friends.html"?
  • 2008/12/13 8:48

  • Robustus

  • Just popping in

  • Posts: 30

  • Since: 2008/5/19


Hello all,
i would like to customise the Yogurt Block "yogurt_block_friends.html". It showing the friends of a User. But the Block is useless because the friends are already shown in Yogurt itself.

It would be perfect if the Block shows only the friends who are online. Title would be like "My friends Online".
I tried a lot without success.
Any help is welcome, thanks.



19
Robustus
Re: Not sure about sitemap
  • 2008/12/8 10:48

  • Robustus

  • Just popping in

  • Posts: 30

  • Since: 2008/5/19


yes, or you can do it sem-automaticly, with a sitemap tool like gsitecrawler: here it is mainly for xml-sitemaps, but can also creates html-sitemaps. the tool crawl your site and generate a sitemap, robots.txt and so on. it needs at beginning a lot of configuration to exclude pages (like newbb viewmode, flat etc.) to prevent double entrys.
maybe usefull for you.



20
Robustus
Re: Main Menu Links How To?
  • 2008/12/6 10:50

  • Robustus

  • Just popping in

  • Posts: 30

  • Since: 2008/5/19


Hi robertelo,

look in your style.css or xoops.css for an entry like td#mainmenu a.menuSub and modify like you want.




TopTop
« 1 (2) 3 »



Login

Who's Online

267 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 267


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