Forum Index   -   Topic Index
   Modules
     bulletin + ajaxblock
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
plusangel
Posted on: 2007/3/21 18:34
Home away from home
Joined: 2006/3/8
From: Athens, Greece
Posts: 237
bulletin + ajaxblock
Dear friends,

The last days we had a talk with Nuno about a bunch of interesting xoopsCube matters.

One of them was the usage of ajaxblock. I proposed to try make ajaxblock work with bulletin module instead news, as an alternative case.

I followed the above procedure. At the end you will find a link to download a zipped packet containing all the required files,

Get it, use it and come back to improve it. Please try it at home first ;)

(i mean locally)


The procedure:

- Install ajaxblock module (classic steps)

- Copy to your theme's folder the following files:

XOOPS_URL/themes/your_theme/ajaxtabs.css
XOOPS_URL/themes/your_theme/ajaxtabs.js

and

XOOPS_URL/themes/your_theme/images/shade.gif
XOOPS_URL/themes/your_theme/images/shadeactive.gif

- Edit your theme.html by adding the following lines

<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_imageurl}>ajaxtabs.css" />
<script type="text/javascript" src="<{$xoops_imageurl}>ajaxtabs.js"></script>


- Now, we have to change all the relative paths from news module to bulletin module (inside the XOOPS_ROOT_PATH/modules/ajaxblock/block_ajax.php file). Inside the modified bulletin-ajaxblock packet you will find the working version.

- Edit XOOPS_TRUST_PATH/modules/bulletin/class/bulletin.php

require_once "$mytrustdirpath/class/relation.php";
require_once "$mytrustdirpath/class/bulletinTopic.php";

to:

require_once XOOPS_TRUST_PATH."/modules/bulletin/class/relation.php";
require_once XOOPS_TRUST_PATH."/modules/bulletin/class/bulletinTopic.php";


- Edit XOOPS_ROOT_PATH/modules/ajaxblock/block/block_ajax.php
comment-out the align part sicne I couldn't find the corresponding variable in bulletin's sql code.

/*if ($myrow['topicalign'] == "L") {
	$align = "left";
} else {
	$align = "right";
}*/


- And set $image to 1 in

$news['hometext'] = $myts->displayTarea($myrow['hometext'], $html=1, $smiley=0, $xcode=1, $image=1, $br=0);

so that you can show images inside the articles.

In addition, inside the zipped ajax-block packet you will find the correct English translation thanks to Gigamaster and xoopserver!


----------------
Regards Angelos,

xoopsCube.gr, the greek support site!

Flat Previous Topic | Next Topic

Subject Poster Date
 » bulletin + ajaxblock plusangel 2007/3/21 18:34
     Re: bulletin + ajaxblock gigamaster 2007/3/22 2:10
       Re: bulletin + ajaxblock : Block Template gigamaster 2007/4/21 16:23
         Re: bulletin + ajaxblock : Ajaxtabs CSS gigamaster 2007/4/21 16:29
           Re: bulletin + ajaxblock : Ajaxtabs CSS gigamaster 2007/5/4 2:18
             Re: bulletin + ajaxblock : Ajaxtabs CSS plusangel 2007/5/4 17:49
               Re: bulletin + ajaxblock : Ajaxtabs CSS OneOfTen 2007/8/19 22:05
                 Re: bulletin + ajaxblock : Ajaxtabs CSS gigamaster 2007/8/20 2:50
                   Re: bulletin + ajaxblock : Ajaxtabs CSS OneOfTen 2007/8/20 20:37
                     Re: bulletin + ajaxblock : Ajaxtabs CSS gigamaster 2007/8/20 21:44
                       Re: bulletin + ajaxblock : Ajaxtabs CSS OneOfTen 2007/8/20 22:13
                         Re: bulletin + ajaxblock : Ajaxtabs CSS gigamaster 2007/8/21 6:07
                           Re: bulletin + ajaxblock : Ajaxtabs CSS OneOfTen 2007/8/22 21:50
                             Re: bulletin + ajaxblock : Ajaxtabs CSS gigamaster 2007/8/22 22:13
                               Re: bulletin + ajaxblock : Ajaxtabs CSS OneOfTen 2007/8/25 20:24

Register To Post
 

Who's Online
12 user(s) are online (5 user(s) are browsing Forums)

Members: 0
Guests: 12

more...

Welcome | News | Overview | Documentation | Forum | Tutorialstop
Brasilian | French | German | Greek | Japanese | Korean | Russian | T-Chinese
Powered by XOOPS Cube © 2001-2011 The XOOPS Cube Project