271
gruessle
Top 10
  • 2003/10/16 19:44

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


I like to have the top ten from one sub category.
PHPLinks does not seam to have much support so I was wondering if someone here could help me with this easy hack.

Basicly I have a subcategory called 'Dealers'. And I would like to show them on a block sorted by rating.

I have changed the cid=$cid to cid=952

but how do I get rid of the loop?



while(list($cid, $ctitle)=$xoopsDB->fetchRow($result)){

$rankings[$e]['title'] = sprintf(_MD_TOP10, $myts->htmlSpecialChars($ctitle));

$query = "select lid, cid, title, hits, rating, votes from ".$xoopsDB->prefix("addresses_links")." where status>0 and (cid=952";

Thanks



272
gruessle
Re: {$block.recommendlink}>
  • 2003/10/16 19:13

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


That would be good.



273
gruessle
{$block.recommendlink}>
  • 2003/10/16 11:02

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


Can someone explain to me what gos on here? I am trying to use {$block.recommendlink}> in my main theme but it does not work by it self.

Thank you

Quote:

<table class="outer" cellspacing="0">

<{if $block.showgroups == true}>

<!-- start group loop -->
<{foreach item=group from=$block.groups}>
<tr>
<th colspan="2"><{$group.name}></th>
</tr>

<!-- start group member loop -->
<{foreach item=user from=$group.users}>
<tr>
<td class="even" valign="middle" align="center"><img src="<{$user.avatar}>" alt="" width="32" /><br /><a href="<{$xoops_url}>/userinfo.php?uid=<{$user.id}>"><{$user.name}></a></td><td class="odd" width="20%" align="right" valign="middle"><{$user.msglink}></td>
</tr>
<{/foreach}>
<!-- end group member loop -->

<{/foreach}>
<!-- end group loop -->
<{/if}>
</table>

<br />

<div style="margin: 3px; text-align:center;">
<img src="<{$block.logourl}>" alt="" border="0" /><br /><{$block.recommendlink}>
</div>



274
gruessle
Re: What is Smarty? [more data]... (was: What is e-Xoops?)
  • 2003/10/16 5:20

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


So if I set cache to 1 week and someone posts a message i will not see the new message for 1 weeks.
Is that correct?



275
gruessle
Need help with a pmlight hack.
  • 2003/10/16 4:55

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


I am trying to provide a link for users which would like to request additional futures like Webmail account or Photo Album account. I would place that link on each page where something new can be requested. The subject and/or the description should change to the page they are on.

It should send a PM direct to the webmaster without first opening the pmlite page.

Can someone help me with this?

Thank you



276
gruessle
Re: XOOPS2: Private Messages Question
  • 2003/10/15 22:04

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


Quote:


by Catzwolf on 2003/8/20 17:08:20

You could try using this code in your own, this will use the PM system directly without having to hack any other files:

$pm_handler = & xoops_gethandler( 'privmessage' );
$pm = & $pm_handler -> create();
$pm -> setVar( "subject", $HTTP_POST_VARS['subject'] );
$pm -> setVar( "msg_text", $HTTP_POST_VARS['message'] );
$pm -> setVar( "to_userid", $HTTP_POST_VARS['to_userid'] );
$pm -> setVar( "from_userid", $xoopsUser -> getVar( "uid" ) );




I am trying to do something similar.
I am trying to provide a link when someone would like to request additional futures like Webmail account or Photo Album account. I would place that link on each page where something new can be requested. The subject should change to (the page they are on) and description 'Please activate my (the page they are on) account' to make the request easy.

Now I don't see any difference between the code in pmlite.php and the code you have given.

Thank you for your help

How do I change



277
gruessle
Re: Which is the best Image Gallery Module for Xoops (with German Language)?
  • 2003/10/13 9:08

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


I am using xoopsgallery and I like it but I have not tryed any other one.



278
gruessle
Re: Which is the best Image Gallery Module for Xoops (with German Language)?
  • 2003/10/13 9:07

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


I am using xoopsgallery and I like it but I have not tryed any other one.



279
gruessle
Re: I don't know if this is a bug but it seam like it.
  • 2003/10/10 22:34

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


I got is I need to set it in Groups - sorry about that



280
gruessle
I don't know if this is a bug but it seam like it.
  • 2003/10/10 22:23

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


New blocks created don't show up at the ananymous page since I upgraded to 2.0.5 and not even in Bolck Admin.
The once I created at 2.0.3 do still show up.

How come I have less blocks showing up in ananymous block admin at the top page then in Registered?





TopTop
« 1 ... 25 26 27 (28) 29 30 31 »



Login

Who's Online

131 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 131


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