xoops forums

Forum Index


Board index » All Posts




wildow

Just popping in
Posted on: 2004/9/19 14:14
wildow
wildow (Show more)
Just popping in
Posts: 3
Since: 2004/3/23
#233681

template set manager problem

I just installed xoops(was a long time ago I installed a previous version). I saw the Template set manager, if I understood it right I can upload themes without access to the space of my site. How does it work exactly because I don't get it to work. Already used google and this site search, but didn't get it fixed.


kiwiguy

Friend of XOOPS
Posted on: 2004/9/19 13:54
kiwiguy
kiwiguy (Show more)
Friend of XOOPS
Posts: 295
Since: 2004/4/19
#233682

Re: paFileDB module?

I can only think of 1 thing that is pretty close to it that I use that is intergrated with XOOPS that is wf-downloads you can get it from

http://www.wfprojects.com

hope that helps

kiwiguy


bigwolf

Just popping in
Posted on: 2004/9/19 13:39
bigwolf
bigwolf (Show more)
Just popping in
Posts: 36
Since: 2002/4/20
#233683

paFileDB module?

Is there any module like paFileDB? (http://www.phparena.net/pafiledb.php)
Hope to see the great module, thanks!


whitedragon

Just popping in
Posted on: 2004/9/19 13:39
whitedragon
whitedragon (Show more)
Just popping in
Posts: 39
Since: 2004/8/27
#233684

Re: HELP!! Everything is blank.

The exact thing happened to me!
I was installing new themes and everything was OK. Then, I selected the new theme from the switcher box and I saw that my logo is not in right size. Then I have deleted the old logo.gif and uploaded the new logo.gif. And still, everything was fine. But when I pressed the refresh button, everything turned blank and I can't fix that. I tried switching to default theme and everything else but my site is still blank!
Is there a way to fix this?


JasonMR

Just can't stay away
Posted on: 2004/9/19 13:30
JasonMR
JasonMR (Show more)
Just can't stay away
Posts: 655
Since: 2004/6/21
#233685

Re: Tracing Anonymous users - spammers

Agreed! https://xoops.org/modules/newbb/viewto ... t&topic_id=24682&forum=15
Executed!


JasonMR

Just can't stay away
Posted on: 2004/9/19 13:22
JasonMR
JasonMR (Show more)
Just can't stay away
Posts: 655
Since: 2004/6/21
#233686

IP display hack

While replying to this https://xoops.org/modules/newbb/viewto ... hp?forum=7&topic_id=24674, I came across a neat solution, to display a users IP on a page, by creating an image that displays the text "Your IP is xxx.xxx.xxx.xxx", using a PHP script, which I found on a web page, supposedly belonging to a MikeVL.

1- create a file in /root/modules/contact/ and name it something like ipdisplay.php.
Place the following code into the file:
Quote:

<?php
$img_number = imagecreate(275,25);
$backcolor = imagecolorallocate($img_number,102,102,153);
$textcolor = imagecolorallocate($img_number,255,255,255);

imagefill($img_number,0,0,$backcolor);
$number = " Your IP is $_SERVER[REMOTE_ADDR]";

Imagestring($img_number,10,5,5,$number,$textcolor);

header("Content-type: image/jpeg");
imagejpeg($img_number);
?>


2- Open the following template file in an editor /root/modules/contact/templates/contact_contactusform.html;
In this file you will place an img-tag, using the ipdisplay.php file as source

Place the following in an apropriate location (though you might want to change the notification text!):
Quote:

<img src="http://yoursite.com/modules/contact/ip_image.php" alt="IP Address" /> has been logged!<br />Action will be taken on any abuse on this system.


3- Go to Sys Admin -> Moudles, and update the contact module

Et voila! You should now be able to view the result.

Making Changes to the PHP created Image

$img_number = imagecreate(275,25);

-> this pair represents the X and Y lengths

$backcolor = imagecolorallocate($img_number,102,102,153);
$textcolor = imagecolorallocate($img_number,255,255,255);

-> these tupples are hex-colors (255,255,255=white;0,0,0=black)

To create a border around the image, for a more prominent look, one just needs to add this style attribute to the img tag:
style="border:1px outset #000044; vertical-align:middle;"

I have implemented this hack with the contact+ module, but it can be applied with any module really (news, wiki, blog, forums, etc...).

Hope this might be of interest to a fellow XOOPser!


libervis

Not too shy to talk
Posted on: 2004/9/19 13:20
libervis
libervis (Show more)
Not too shy to talk
Posts: 183
Since: 2004/7/4 1
#233687

Re: Center blocks and module content.

Finally it works!

All blocks in modules are displayed below module content. i wanted it only for forums, but it's not a big deal. I'll remove the intros on FAQ, they probably don't read it anyway. For other blocks in other modules it's fine to be below instead of top.

The most important thing is that i'm gonna have a much effective adsense now with ads displaying below every post in forums which are the most populated part of a site.

Thank you very much Jack! Cheers to you!

Daniel


JasonMR

Just can't stay away
Posted on: 2004/9/19 13:01
JasonMR
JasonMR (Show more)
Just can't stay away
Posts: 655
Since: 2004/6/21
#233688

Re: XFsnippet problems!

I've run into another problem while testing this module.

I can't even submit any code! Now what good is a module to share code snippets, if one can't even submit code! This is the only error code I get:
Quote:

Fatal error: Call to a member function on a non-object in /root/modules/xfsnippet/submit.php on line 28


Also, if a field is left out, after clicking submit, all data entered is lost, when user is rediredted to page.

Is there anyone else, who has installed this module? Any tips, suggestions, pointers?

Not Happy Jan! Would really like such a module! Anyone interested in getting this working?


JackJ

Community Support Member
Posted on: 2004/9/19 12:55
JackJ
JackJ (Show more)
Community Support Member
Posts: 747
Since: 2003/8/31
#233689

Re: Center blocks and module content.

I think I was slightly out try this, look for:

<td id="centercolumn"> <div id="content"> <{$xoops_contents}>
<!-- Display center blocks if any -->

I tried this on mine, works ok:

Code:



<td id="leftcolumn">
<!-- Start left blocks loop -->
<{foreach item=block from=$xoops_lblocks}> <div class="<{cycle

values="blockTitle"}>"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>
<!-- End left blocks loop -->
<br />
<br />
<img src="<{$xoops_imageurl}>images/160.gif" width="170"

height="1" alt="" />
</td>
<td id="centercolumn"> <div id="content"> <{$xoops_contents}>
<!-- Display center blocks if any -->

<{if $xoops_showcblock == 1}> </div> <table class="sadrzaj"

cellspacing="0">
<tr>
<td id="centerCcolumn" colspan="2">
<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}> <table

align="center" cellpadding="0" cellspacing="2">
<tr>
<td> <div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div></td>
</tr>
</table>
<{/foreach}>
<!-- End center-center blocks loop -->
</td>


Bender

Home away from home
Posted on: 2004/9/19 12:03
Bender
Bender (Show more)
Home away from home
Posts: 1899
Since: 2003/3/10
#233690

Re: Authority to access to sub menu in modules?


Go here:

http://www.macambridge.com/dummies/

and read the part about menus. That should help you.