233571
sbkiller
Additional Block into Theme.html
  • 2004/10/1 14:12

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


Xoops system has 5 blocks area,
|====================|
|List 
of blocks      |
|====================|
|
Left block          |
|
Center Center block |
|
Center Left block   |
|
Center Right block  |
|
Right block         |
|                    |
|
Content*            |
|====================|

*
not refer as block but a content area for page

It is possible to modified the system for addtional block (custom) into theme.html?
(not the custom block you will add in the control panel)

In theme.html file, you have something like:

<td id="leftcolumn">

<!-- 
Start left blocks loop -->

<{foreach 
item=block from=$xoops_lblocks}>
  <
div style="padding: 5px;">
    <
fieldset>
      <
legend class="blockTitle"><{$block.title}></legend>
      <
div class="blockContent"><{$block.content}></div>
    </
fieldset>
  </
div>
<{/foreach}>

<!-- 
End left blocks loop -->

</
td>


As you can see this default unique block id will refer to the system block:

<td id="leftcolumn">
and
<{foreach 
item=block from=$xoops_lblocks}>


If I have to make a custom of this, I can simply change to this:

<td id="mycustomblock">
and
<{foreach 
item=block from=$xoops_myblocks}>


In this case I need to hack/modify the system function and add options to the admin control panel in order to use this.

If I'm right, anyone interest hacking and developing it?

If I'm wrong, anyone have another way of doing it?



233572
arrakis
FIXED: Weird slash in the middle of the xoops url
  • 2004/10/1 14:07

  • arrakis

  • Just popping in

  • Posts: 50

  • Since: 2004/10/1


Funny, I only went away from office and came back after 1 hour, leaving everything exactly as explained before, I did "reload" the page and everything was fine. Now I have really no idea of what could be the cause of that very strange thing, but I guess now that was not my or XOOPS fault, since, with the exact same files and conf, before there was a problem and now is disappeared... maybe was some strange setting on the server or something like that...



233573
sbkiller
Re: block locations
  • 2004/10/1 13:50

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


You mean additional block? positions?



233574
sbkiller
Re: Change theme
  • 2004/10/1 13:49

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


It's clean but I suggest you put an enter word in the intro page or in the image, because I just found it out in 2 mins by moving my mouse around trying to find a way it.



233575
Xtracted
myalbum-p 2.83 issues
  • 2004/10/1 13:48

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


I was going to upload 3 pictures today on one of my XOOPS sites into the myalbum-p module. I used the "upload picture" function from the submenu on the main site, not trough admin. I could upload the first picture without any problems but I cant upload the other 2. I get "no picture uploaded or picture too big" (or whatever it originally is since I have translated it).

I had to go into the admin section of myalbum-p and REMOVE webmasters access to "super upload" and "super edit" and only leave permission for "upload". Then I could upload pictures but I had to change the access back to be able to approve the pictures.. Can anyone explain this? =P

Also, I have problems with the way the pictures are displayed in the photo album. If you browse a directory with images and use the quick links "Previous-1-2-3-Next" the images arent displayed in the order they are in the thumbnail part of the album, is this something I can fix myself?



233576
jamyouth
Change theme
  • 2004/10/1 13:31

  • jamyouth

  • Just popping in

  • Posts: 21

  • Since: 2004/9/14


Would like to hear your views on the Imago Theme that I am now using.

Check my site out

http://www.manningsalumni.com



233577
nts81
Re: Sorry, no permission...
  • 2004/10/1 13:22

  • nts81

  • Just popping in

  • Posts: 3

  • Since: 2004/9/26


hi Guido,

same problem happens to me, and what I did was to force it a little bit. There should be an easier way in the admin section, but as I'm rather new to Xoops, I just did it my way. Well, I just commented the lines that checked the permissions for news module, therefore, anyone will be able to see it.
Open modules\news\
Find index.php and find this piece code :

if (!$gperm_handler->checkRight('news_view', $_GET['storytopic'], $groups, $xoopsModule->getVar('mid'))) {
redirect_header('index.php', 3, _NOPERM);
exit();
Comment the 2 lines redirect and exit so it should look like this :
//redirect_header('index.php', 3, _NOPERM);
// exit();

then open modules\news\articles.php, search for :

$storyid = (isset($_GET['storyid'])) ? intval($_GET['storyid']) : 0;
if (empty($storyid)) {
redirect_header("index.php",2,_NW_NOSTORY);
exit();
}

$myts =& MyTextSanitizer::getInstance();
// set comment mode if not set

$article = new NewsStory($storyid);
if ( $article->published() == 0 || $article->published() > time() ) {
redirect_header('index.php', 2, _NW_NOSTORY);
exit();
}
$gperm_handler =& xoops_gethandler('groupperm');
if (is_object($xoopsUser)) {
$groups = $xoopsUser->getGroups();
} else {
$groups = XOOPS_GROUP_ANONYMOUS;
}
if (!$gperm_handler->checkRight("news_view", $article->topicid(), $groups, $xoopsModule->getVar('mid'))) {
redirect_header('index.php', 3, _NOPERM);
exit();
}

Do the same (comment) as in the first example.

HTH,

Chris



233578
tl
Re: Admin - Who is Online - IP Trace hack
  • 2004/10/1 13:16

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


luckylin, thanks for a great TIP. I have added it to the collection of Xoops-Tips.com.

To make it complete, I also added LACNIC lookup. Anyone who is interested in luckylin's hack can download the hacked version of misc.php from xoops-tips.



233579
arrakis
Re: Weird slash in the middle of the xoops url
  • 2004/10/1 13:00

  • arrakis

  • Just popping in

  • Posts: 50

  • Since: 2004/10/1


Quote:

Herko Coomans wrote:
have you updated the system module? (system admin -> modules, clik 'update icon' behind system module...)

herko


I can't update because I can't make the login. If i try to send user and password when it redirects me XOOPS uses the strange url www./domain... so I can't do anything

I think (as intuition) that it has something to do to mainfile.php but I cannot find the solution.



233580
Herko
Re: Weird slash in the middle of the xoops url
  • 2004/10/1 12:56

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


have you updated the system module? (system admin -> modules, clik 'update icon' behind system module...)

herko







Login

Who's Online

244 user(s) are online (168 user(s) are browsing Support Forums)


Members: 0


Guests: 244


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