71
patagon
Re: Rewriting module URLs
  • 2006/5/15 3:01

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Hi disky,

i've read this a few times but I'm still stuck, I want to change:

http://www.mysite.com/modules/weblinks/ to
http://www.mysite.com/nombre/

and:
http://www.mysite.com/modules/weblinks/viewcat.php?cid=1
http://www.mysite.com/modules/weblinks/singlelink.php?lid=1

to anything without ? I followed an example here which would work great for me, below is my .htaccess

RewriteEngine On
RewriteBase /

## just a test - this works ##
RewriteRule ^justATest/$ /index.php [L]

## to change modules-weblinks to nombre ##
RewriteRule ^nombre/$ /modules/weblinks/ [L]
RewriteRule ^nombre/category/([0-9]+).html$ /modules/weblinks/viewcat.php?cid=$1 [L]
RewriteRule ^nombre/([0-9]+)$ /modules/weblinks/singlelink.php?lid=$1 [L]

This gives me the following error on www.mysite.com/nombre/

Fatal error: Call to undefined function: file_include_weblinks() in /usr/www/users/pamela/a_guia/modules/weblinks/header.php on line 42
Warning [PHP]: main(/usr/www/users/pamela/a_guia/modules/system/include/file_include.php): failed to open stream: No such file or directory in file modules/weblinks/header.php line 41
Warning [PHP]: main(): Failed opening '/usr/www/users/pamela/a_guia/modules/system/include/file_include.php' for inclusion (include_path='.:/usr/local/lib/php') in file modules/weblinks/header.php line 41


any idea what I'm doing wrong?
Thanks



72
patagon
Re: weblinks: problem with a lot of submits
  • 2006/5/10 18:07

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


is this the standard weblinks module or the one by ohwada (which is also called weblinks). if so i remember seeing something on its forum, but no idea if its the one that came with xoops...



73
patagon
Re: Best Article Module for Magazine
  • 2006/5/9 15:16

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


I would test article module (by phpbb, there is another with similar name). I dont know if it does out of the box what you are trying to do but I tested many articles modules and I considered that one the best...it is also actively developed, which is always an advantage.



74
patagon
Re: CBB blocks questions
  • 2006/5/2 2:12

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Thanks krewl. Unfortunately I dont know enough to understand exactly what you mean...my guess is that there has to be a way of getting the #### title from the block (and if no, it would help there was .



75
patagon
Re: Any module requests?
  • 2006/4/30 22:50

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


hi hervet,

not sure which idea you refer to but great!...I have many ideas but few skills (well, thats a lie, none . anyway, I think you have another great module that would go very well with userpage (in a community kind of site) already almost done with the shortcuts module. Something like a clone of shortcuts but that lets you add 'friends' (which could be urls like shortcuts). Then you could add to the dropdown an online indicator (and display 'friends' online first like messenger), and a link to pm. I think having a list of your friends with easy access to their profiles, status and pm would make a great module...of course I have no idea how this is done exactly but it looks like the most part is already there in shortcuts....hope you find this interesting and it becomes another great module for XOOPS

Biteronboard,

>> i have another one. How about a module that allows you to easily rewrite your urls.

I like your idea, led me to think that another great addition would be something similar but that lets you rewrite urls to users profiles, for example here on XOOPS my profile could be on xoops.com/patagon...that with the userpage and hopefully friends (or whatever the name) could be a little myspace....

regards



76
patagon
Re: CBB blocks questions
  • 2006/4/30 20:51

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


ok, investigated this a bit more and found that <{$block.title}> works in theme.html and doesnt work inside a block as I wanted...anyone knows if there is a way of getting the block title from inside the block?

thanks



77
patagon
Re: CBB blocks questions
  • 2006/4/29 14:28

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Madfish, thanks and let me explain:

I set two blocks, that works perfect. I managed to change the names (doing what you said) but the problem is that the blocks only show the content (i.e latest topics and hot topics, it shows a list of topics). I want to display on top of that content a title, so on the template (newbb_block_topic.html) I added this second line:

<{elseif $block.disp_mode == 2}>

this is the line I added. like this it shows on both, so I'm trying to get the block title, like this it doesnt work <{$block.title}>

<{foreach item=topic from=$block.topics}>
<tr class="<{cycle values="even,odd"}>">
<td><a href="<{$xoops_url}>/modules/newbb/viewtopic.php?topic_id=<{$topic.id}>&forum=<{$topic.forum_id}>">
<{if $topic.topic_subject}>
<{$topic.topic_subject}>
<{/if}>
<{$topic.title}></a><{$topic.topic_page_jump}>
</td>
</tr>
<{/foreach}>

So I guess my question qould be how do I display in the block that block title...no need for two templates if I can do this...

thanks



78
patagon
Re: CBB blocks questions
  • 2006/4/29 13:30

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Thanks Biteronboard,

by going to blocks admin I see that they already have different titles (hot topics and recent topics. the 'name' is always recent topics though). Now my question would be how to display on the template (newbb_block_topic.html, the same on both) the block title...that would work for me, but in my template I dont have an example to get that info...any ideas?

thanks



79
patagon
CBB blocks questions
  • 2006/4/29 4:34

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Hi,

I'm using the latest CBB and have two blocks on the home page, one with the latest topics and one with the 'hottest' topics. It works ok, but I want to display a title (saying 'latest topics' and 'hot topics') above the blocks.

My problem is that both blocks use the same template 'newbb_block_topic.html' so I can only place one title and it appears on both blocks...AFAIK there is no way of making these two blocks use a different template (as it was in original newbb, where there was one block template for each), but I may be overlooking something simple...if anyone can help with this it will be very appreciated.

Thanks



80
patagon
Re: Any module requests?
  • 2006/4/29 3:50

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Another idea I'd love to see become a module: some way of having a block on the homepage (or anywhere else) that 'spotlights' a user. this is for community oriented sites. say you give the option to users to be on the homepage for a day, so they become more known on the community (or get contacted by other users). I'd make some kind of page where users express their interest to be on the 'spotlight' (and maybe add some text about them, admins can limit the number of characters or this text). The admin would see on a page all the users that want to participate and each day chooses one (the system remebers which one were already shown and takes them out of the list). It would be cool to have the option of automatically select one user every day (or every x time. this is for times when you cant/dont want to have to choose one daily). the 'spotlight' would be the user pic/avatar (option to only choose users with pic/avatar) linked to their profile and some profile text, or the text that they enter when they 'add themselves' to the users list.




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



Login

Who's Online

163 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 163


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