61
TheFinni
modified newsblock to show proper HTML from SPAW MySQL entry
  • 2004/4/5 10:41

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


I have modified the newsblock to show the intro text (DB: alias hometext) instead of just the title...

I am using the Spaw editor and have used some HTML tags in my intro text. Unfortunately the nesblock doesn't display these as they should. Instead it's displayed as code with tags. I.e This is a news item that is very <STRONG>important</STRONG>!

How can I change this? It seems like the db content is read fine in the article section of the news module.

Thanks in advance!



62
TheFinni
Re: Truncate Story
  • 2004/4/5 10:20

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


I just found this post. Thanks a lot for the hack!

I don't know if anyone will see this post again since it's been a while...

But if anyone knows about this following question. I am trying to figure out why my text in the newsblock is not coming out as HTML. I have stored the hometext content in the database with HTML editor and I want to be able to show the formatting in the homepage.

Does anyone know the answer?



63
TheFinni
Re: How to use Spaw within your modules. Examples
  • 2004/4/5 8:49

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


Morris,
Can you tell us what you did in the script.js.php file to add the smilies?

I would like to do the same but instead of the smilies add a pagebreak ([pagebreak])

Thanks!

Thomas



64
TheFinni
Re: additional block programmed into the theme file
  • 2004/3/14 12:53

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


I was thinking about it more and thought the javascript could work...but maybe someone could assist me with some java?

Basically I had done this in a custom block before:

$current_url = $_SERVER['PHP_SELF'];
if (($current_url) == ("/localhost/index.php"))
{

('images/frontpage_random/');
function getRandomImage($dir,$type='random')
{

but then that was kind of redundant since that custom block anyhow was following the XOOPS format.

SO I was experimenting with some javascript and this is what I would like to do. Use the same thought as in the PHP argument before...Saying to only process the javascript if the page location matches ex. index.php

How would one do that?

I tried to do this, but it didn't work:

<script type="text/javascript">
if (document.write(location.href)) == ("http://localhost/test.htm") = true;
{
document.write("<b>yes it works!</b>")
}
else
{
document.write("<b>no luck!</b>")
}
</script>

Thanks



65
TheFinni
Re: additional block programmed into the theme file
  • 2004/3/14 7:17

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


that's a good idea. I could use javascript not just php. And I had planned to use the recent news block for the news section.

BUT, I want to be able to place this within my theme.html file.

The reason is that I want to place this in a location where I don't have to confirm to the positioning of the XOOPS CMS system. I want to be fully available to utilize all the boxes for the rest of my site. I am building a site that doesn't completely follow the traditional pattern of XOOPS sites.

That said...How would I call a template/custom box in the theme.html?

Thanks!

By the way. Love your site!



66
TheFinni
additional block programmed into the theme file
  • 2004/3/14 5:50

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


Howdy ya'll Xoopsters!
DOes anyone know how to create a custom named block (without the controlling XOOPS admin panel) into the theme.html?

Basically I would like to create a block named:

$xoops_my_block

Then I would include it in the theme.html page so that it would be included in every page.

The problem is that I would like to use PHP and hence I am having difficulties since the theme is an HTML file.

I have previsously made tries in using say center-right block. but I don't want to loose this feature.

I am interested in this so that I could place a random image and a news section within the theme file.

Any ideas?

Thanks,

Thomas



67
TheFinni
Re: new block group positioning for header or other location of page
  • 2003/12/2 5:29

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


Thank you CBlue,
I understand what you are saying...Yes it might be possible to do with the actual theme design...allthough I would prefer to do it as an actual block that could be controlled through the admin panel.
As of now I have used the left center block as a block placed in a precise location of my page. It works nicely but now I'm thinking I would like to utlize the left center block in the content as well (so I could have two blocks besides eache other)

If one could do something in the theme such as:

In the header:

<{forFIRST item=block from=$xoops_crblocks}> <{$block.content}>
<{/foreach}>

and then in the main center column:

<{forTHEFOLLOWING item=block from=$xoops_crblocks}> <{$block.content}>
<{/foreach}>

Then I could always make sure I had that desired block in the header and the rest of the blocks in their respective order would appear after...

Do you follow what I am saying?

Here's my development site. You can see that I have implemented a random image as a liquid background as the crblocks. But that as dissabled me from using those blocks in the center column.

http://www.flagstaffbiking.org/index.php

(this is my first XOOPS site)

The current page (in the root) is just too diifcult to maintain... That's why XOOPS!

Thank you for any advice! Developer's welcome! *smile*



68
TheFinni
new block group positioning for header or other location of page
  • 2003/12/1 4:15

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


Hello!
I have a feeling that this is a quite difficult task...But still I would like to ask. Basically I would like to create another block group such as the clblocks,ccblocks and crblocks.

My need for this is that I would like to include a random block (depending on what page I'm at) in the header part of the web page.

I managed to sort of do this by using the crblocks and using this only for the header. I thought I could just not use the crblock in the main part of my page and let the clblocks spread 100% throughout my page. This actually worked but now I am felling that certain items would be more efficiently used if they were displayed in two blocks aside each other (i.e clblocks and crblocks)

If someone would be kind to point out where these function files for the blocks locate I would attempt to create a block location such as hdblocks (headerblocks).

Thanks for any assitance,

THomas




TopTop
« 1 ... 4 5 6 (7)



Login

Who's Online

221 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 221


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