11
juanjo
Template hacking for News, first attemp
  • 2005/5/9 16:31

  • juanjo

  • Just popping in

  • Posts: 18

  • Since: 2005/3/20


Hi xoopsers!
I was trying to get News section into the Home page, and maybe I'm trying something stupid, so I wanted to ask first.
I don't want to have my News module as the HomePage module because then, if you have some block defined there, you will always have that block in all your News pages.
So I tried to create a new template. I just copied the news_index.html and put it in the blocks folder, renaming it to news_block_index.html (if I could activate a block with the News module content, that would be perfect!)
Then I try to generate the template and I get an error:
The file doesn¡t exist.
Any suggestion?
Thanks in advance!



12
juanjo
Editors and News 1.3
  • 2005/5/8 16:34

  • juanjo

  • Just popping in

  • Posts: 18

  • Since: 2005/3/20


Hi xoopsers!
I have News 1.3 in my computer. My Article writers are not very computer freaks so I wanted to have any wysiwyg in my News module.
So I installed News 1.3 and everything seemed to work fine, but then:
- Htmlarea would only show in Firefox, not in IE (version 6.0.2800.1106-winxp). My htmlarea is the last one you can download in the dev.xoops. I liked it very much. Firstly it didn't work in my News article writing section but then I uncommented a line (the only one that was commented out in formhtmlarea.php) and now I have htmlarea in ff but not in IE (there is javascript code, but nothing shows up in the webpage, you can only see that it's there in the source code).
- Koivi, worked both in IE and FF. BUT when I try to insert an image (I replaced correctly the system_image_manager.html), it won't work for any navigator.
- Spaw works!! But... sincerely, I don't like it as much as Htmlarea or koivi... It doesn't show any 'alt' texts for the buttons it shows in order to see what are they for...
- FCKEditor won't see any images. It isn't able to get the images I try to upload and doesn't see the existing ones...

Can anyone advice my on how I could get these nice editors work???
Thanks in advance and sorry for the long mail... :P



13
juanjo
Show a block ONLY in the main page...
  • 2005/5/8 16:09

  • juanjo

  • Just popping in

  • Posts: 18

  • Since: 2005/3/20


Hi xoopsers!
I wanted to show a wellcome block at my webpage, so when you went to:
http://myweb.com
this block would display, and also the news module (so I put in preferences that News would be my Home page module).
Now, whenever I ask for an article in the News (1.31) module, I am given the article but also the wellcome block!!
Is there any way of putting this block in the home page only?
Thanks in advance,
Juan J.



14
juanjo
Can I show a topic and a forum at the same page+
  • 2005/5/7 12:13

  • juanjo

  • Just popping in

  • Posts: 18

  • Since: 2005/3/20


Hi all xoopsers!
I'm afraid I'm maybe trying something impossible, but anyway I'll give it a chance...
I have divided my web page in Activities (like Football, ski, Mountain climbing, etc.). For each activity I (usually) have some news and a related forum topic.
I'd be very (very very) glad if I could show in the same page:
- the last news about an activity
- the forum of that activity.
I know it is very easy to select my activity news. If its topic-id is number 12, then I just need to loadhttp://myweb/modules/news/index.php?topic=12
And if I want to select its topic in the forum (i.e. forum topic number 5) the web-page I'd load would be:
http://myweb/modules/newbb/viewforum.php?forum=5
But I'd like to show BOTH in the same page!!!! :P
Is there any possibility to do so?
Thanks in advance!
Juan J.



15
juanjo
Re: How to add SmartyMenu to Xoops?
  • 2005/5/1 17:51

  • juanjo

  • Just popping in

  • Posts: 18

  • Since: 2005/3/20


Thanks!
It did work perfect. I just had to change
<{menu data=$smarty_menu}>

instead of
<{$smarty_menu}>

and voila!!
Thank you very much!!
PS: there is an array'ed way to do the menus with Smarty also, but I just wanted to have anything that worked and then decide what option to implement.



16
juanjo
How to add SmartyMenu to Xoops?
  • 2005/5/1 15:23

  • juanjo

  • Just popping in

  • Posts: 18

  • Since: 2005/3/20


Hi all xoopsers!!
I am trying to make SmartyMenu (http://www.phpinsider.com/php/code/SmartyMenu/) work in my (xoops) site (but of course I couldn't, that's why I'm writing here... :P )
I thought the best option would be to insert the SmartyMenu code in the theme.html webpage. But (opposite to what the author of SmartyMenu suggests) I am not familiar enough with Smarty templating language.
I have tried to call a php file I generated (by means of a <?php require('filename.php')?>) from the theme.html, but theme.html does not have any php code at all!!
How could I insert the SmartyMenu code in my web page?
- I have put the Smarty functions and plugins where it is said to do so
- I would like to have this dropdown menu in EVERY page that is loaded, that is why I thought as a good option having the SmartyMenu called from (my) theme.html
Any help will be greatly appreciated!
Juan J



17
juanjo
Re: Problems after upgrading News from 1.1 to 1.3
  • 2005/4/3 16:26

  • juanjo

  • Just popping in

  • Posts: 18

  • Since: 2005/3/20


Hi!
It went perfect. I'm sorry I had to just do the "usual newbye" mistake of asking too soon before reading everything...
I didn't read any lower from News 1.3 final version before in the download area. I downloaded the "News 1.3 RC-2 language-spanish" and it went smooth after re-generating my templates.
Thanks!
JuanJ



18
juanjo
Problems after upgrading News from 1.1 to 1.3
  • 2005/4/3 12:55

  • juanjo

  • Just popping in

  • Posts: 18

  • Since: 2005/3/20


Hi xoopsers!
I have recently (this morning) updated my News module from News 1.1 that comes with XOOPS 2.9.2 TO News 1.3.
I have carefully followed the steps in the file UPGRADE.txt BUT after updating modules and scripts and everything it seems that some variables are not correctly updated.
When I am in the admininstration side, when I get into the preferences section I see "Autoaprove histories...?" (well, actually, I see that in Spanish) and in the listbox: _MI_NEWS_CLASSIC
_MY_NEWS_BY_TOPIC

My admininstration side of the News module is full of these variables. Is there anything I can do? Should I change this variables anywhere in my php language files? Is there a 'spanish' language News 1.3 version / patch?
Awkwardly enough, some messages appear rightly, like the question about "Autoaprove..." but others don't, like _MI_UPLOAD_GROUP1
_MI_UPLOAD_GROUP2
_MI_UPLOAD_GROUP3
instead of Administrators, Registered Users and Anonymous Users
Thanks in advance,
Juan J.




TopTop
« 1 (2)



Login

Who's Online

106 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 106


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