71
ladon
Re: Is there a way to code newbb2 recent posts in a block?
  • 2005/5/20 21:53

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


I didn't even use the forum search, just the XOOPS search. I Also didn't use the quotes actually. Don't know if that's support in XOOPS sreach. In search-engines like Google I don't think it makes any difference if you use single or double quotes, not quite sure though.



72
ladon
Re: Is there a way to code newbb2 recent posts in a block?
  • 2005/5/20 21:27

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


ehm... very well, I searched for 'clone block' in the forum and this showed up rather fast: click!

This is an example for the newbb mod, but it works the same way with other modules.

And just to beat you to it , updating a module is done by going to the modules admin and click the button before the last one at the end off the module you have to update. Oh, and xoops_version.php is located in the module dir.



73
ladon
Re: show comment only members !
  • 2005/5/20 14:02

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


You can edit this into your xoopspoll/news template:

<{if $xoops_isuser == true}>
<!-- start comments loop -->
code
<!-- end comments loop -->
<{/if}>

Don't know if '== true' is actually needed, just test it.



74
ladon
Re: Taking off the print graphic
  • 2005/5/20 9:18

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


I don't have the module running but I took a look at the code of the standard sections module and it seems it doesn't have templates, so my apologies for the incorrect reply

here's what you do, the quick & dirty way:

Open index.php (http://www.yoursite/modules/sections/) in your favorite editor and find the following code:

line 79 t/m 81:
echo "<tr><td align='left'>&nbsp;&nbsp;<strong><big>&middot;</big></strong>&nbsp;<a href='index.php?op=viewarticle&artid=$artid'>$title</a>";
printf(" (read: %s times)",$counter);
echo 
"<a href='index.php?op=printpage&artid=$artid'>&nbsp;&nbsp;<img src='".XOOPS_URL."/modules/sections/images/print.gif' border='0' alt='' . _MD_PRINTERPAGE.' /></a></td></tr>";


and replace with:
echo "<tr><td align='left'>&nbsp;&nbsp;<strong><big>&middot;</big></strong>&nbsp;<a href='index.php?op=viewarticle&artid=$artid'>$title</a></td></tr>";


Didn't test as I don't have the module running, but it should work.

Now there is some redundant code in the php-file, but we'll leave it there, it does no harm and as you said, you are new to this.



75
ladon
Re: Is there a way to code newbb2 recent posts in a block?
  • 2005/5/19 18:39

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


It sure is possible!

One way is to clone the recent block, so you'll have 2 blocks. If you don't know how it's done, check the forum/FAQ, I'm sure it's been explained several times over. Once you have your second block, just use the multiselect (in edit blocks) to select the catagories you want to show on each block.



76
ladon
Re: xoops 2.1 ?
  • 2005/5/19 13:09

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


@ mith: What's more work, copy pasting this text or actually working on 2.1/2.2



77
ladon
Re: Diferent color background in a certain module?
  • 2005/5/2 12:40

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


There's more then one way to do what you want. First, the easy one:

When you look in the templates for the forum, or any other module for that matter, you'll see pretty much each table/td has a class. Those classes are defined in the theme css. Rename the class to something new, lets say 'Forumsomething' and add it to your css. Pick a colour for that class and except for the forum table/td everything else remains the same.


Another way is to let it load an entirly different theme for different modules:

My theme.html looks like this:
<{if $xoops_pagetitle == Forum }>
    <{include 
file="themedir/themeforum.html"}>
<{elseif 
$xoops_pagetitle == sections }>
    <{include 
file="themedir/themesections.html"}>
<{else}>
    <{include 
file="themedir/thememain.html"}>
<{/if}>


Now a seperate themefile will be loaded for each specified module. Then you can change what ever you want. Some newer modules however, add topic/news titles to the pagetitle, so it might take some hacking to remove that if you want to use this the easy way.



78
ladon
Re: Taking off the print graphic
  • 2005/5/1 21:09

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Look in the templates for the section module, there you can add of remove any info you want.



79
ladon
Re: news seems set as module for startpage
  • 2005/5/1 12:54

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


fresh install, 1.3.

But I think the problem isn't the newsmodule. I've tried removing the newsmodule to solve the problem, but when going back (home) XOOPS kept informing me: "Module doen't excist". That whilst there is no module at startpage and the url was just zodt.nl/ and not zodt.nl/modules/news oid.



80
ladon
Re: news seems set as module for startpage
  • 2005/5/1 12:27

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


oh sorry, as my site was still closed uintil i opened it up for you to take a look. I didn't think about those permissions yet, i'll correct them.

edit: The permissions were already correct.
edit: As said in the TS, I have turned of/removed shorturl and it didn't make any difference.




TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 24 »



Login

Who's Online

126 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 126


more...

Donat-O-Meter

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

Latest GitHub Commits