xoops forums

Forum Index


Board index » All Posts (Draven)




Draven

Module Developer
Posted on: 2005/1/24 20:27
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#11

Re: Theme Design Q & A - Ask your questions here

Ok, here you go.

Get the files at http://gaining-mass.com/projects/3collayout/

see it in action at http://gaining-mass.com/projects/3col ... olumn%20CSS%20Layout.html

Something to note, there's a few extra classes in the two css files to handle the hiding of div tags using javascript and shouldn't be required when you are simply loading the page with it hidden. These are just to solve a couple quirks between IE and mozilla when using javascript to change DISPLAY:; settings.

You will need to change the padding setting for IE users on the class .two though or the content will not go full width.

CSS is nice, but with the zillion differences between browsers, it's sometimes a better idea to use one table for the formatting.

Anyway, it can be done as I displayed here.

This also includes a css hack for showing everything at 100% hieght, since I know that's a big question often aswell.


Draven

Module Developer
Posted on: 2005/1/24 19:23
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#12

Re: Tree Strucuture

The easiest way to get this 'effect' is a custom menu organized in whatever fashion you want, and not using the default mian menu.

I have a menu builder module I am just about ready to release which will allow you to create menu's on the fly using different layout styles with unlimited depths. Each new menu makes it's own block so you can have multiple menus.


Draven

Module Developer
Posted on: 2005/1/24 18:47
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#13

Re: Theme Design Q & A - Ask your questions here

Working on putting together an example for you... will post it shortly.


Draven

Module Developer
Posted on: 2005/1/24 17:42
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#14

Re: Xcgallery - reg'd users cant upload to default categories?

They don't get access to the admin side of things, everything is done on the front side of the site. If users are logged in they have the option of uploading images to designated Photo Albums, but again, only if you set the permissions for it.

I have XCG running on my bodybuilding website. You can register for a free account if you like and see how it works from a users point of view.

http://gaining-mass.com/modules/xcgal/


Draven

Module Developer
Posted on: 2005/1/24 17:37
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#15

Re: Searching For Auto - Generated Email Php Coding

Sorry I misunderstood the question.

The main class used for mailing is xoopsmailer.php located in the class folder of the main install directory.

To see how the class works you can review the register.php which handles sending out the welcome message.


Here are the lines that are important for mailing, extracted from register.php
if ($xoopsConfigUser['activation_type'] == 0) {
            
$myts =& MyTextSanitizer::getInstance();
            
$xoopsMailer =& getMailer();
            
$xoopsMailer->useMail();
            
$xoopsMailer->setTemplate('register.tpl');
            
$xoopsMailer->assign('SITENAME'$xoopsConfig['sitename']);
            
$xoopsMailer->assign('ADMINMAIL'$xoopsConfig['adminmail']);
            
$xoopsMailer->assign('SITEURL'XOOPS_URL."/");
            
$xoopsMailer->setToUsers(new XoopsUser($newid));
            
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
            
$xoopsMailer->setFromName($xoopsConfig['sitename']);
            
$xoopsMailer->setSubject(sprintf(_US_USERKEYFOR,$myts->oopsStripSlashesGPC($uname)));
//            OpenTable();
            
if ( !$xoopsMailer->send() ) {
                echo 
_US_YOURREGMAILNG;
            } else {
                echo 
_US_YOURREGISTERED;
            }
//            CloseTable();
        
} elseif ($xoopsConfigUser['activation_type'] == 2) {
            
$myts =& MyTextSanitizer::getInstance();
            
$xoopsMailer =& getMailer();
            
$xoopsMailer->useMail();
            
$xoopsMailer->setTemplate('adminactivate.tpl');
            
$xoopsMailer->assign('USERNAME'$myts->oopsStripSlashesGPC($uname));
            
$xoopsMailer->assign('USEREMAIL'$myts->oopsStripSlashesGPC($email));
            
$xoopsMailer->assign('USERACTLINK'XOOPS_URL.'/user.php?op=actv&id='.$newid.'&actkey='.$actkey);
            
$xoopsMailer->assign('SITENAME'$xoopsConfig['sitename']);
            
$xoopsMailer->assign('ADMINMAIL'$xoopsConfig['adminmail']);
            
$xoopsMailer->assign('SITEURL'XOOPS_URL."/");
            
$member_handler =& xoops_gethandler('member');
            
$xoopsMailer->setToGroups($member_handler->getGroup($xoopsConfigUser['activation_group']));
            
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
            
$xoopsMailer->setFromName($xoopsConfig['sitename']);
            
$xoopsMailer->setSubject(sprintf(_US_USERKEYFOR,$myts->oopsStripSlashesGPC($uname)));
//            OpenTable();
            
if ( !$xoopsMailer->send() ) {
                echo 
_US_YOURREGMAILNG;
            } else {
                echo 
_US_YOURREGISTERED2;
            }
//            CloseTable();
        
}
        if (
$xoopsConfigUser['new_user_notify'] == && !empty($xoopsConfigUser['new_user_notify_group'])) {
            
$myts =& MyTextSanitizer::getInstance();
            
$xoopsMailer =& getMailer();
            
$xoopsMailer->useMail();
            
$member_handler =& xoops_gethandler('member');
            
$xoopsMailer->setToGroups($member_handler->getGroup($xoopsConfigUser['new_user_notify_group']));
            
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
            
$xoopsMailer->setFromName($xoopsConfig['sitename']);
            
$xoopsMailer->setSubject(sprintf(_US_NEWUSERREGAT,$xoopsConfig['sitename']));
            
$xoopsMailer->setBody(sprintf(_US_HASJUSTREG,$myts->oopsStripSlashesGPC($uname)));
            
$xoopsMailer->send();
        }


Draven

Module Developer
Posted on: 2005/1/24 17:32
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#16

Re: Changing Default Theme

Ok, the area that defines the INBOX colors is located in the Systsem -> user menu template. You can change the color there.

The redirect is produced by a function located in the include folder of the XOOPS main directory in a file called functions.php (if I remember correctly). You should be able to change the class names there, or atleast see what classes are being defined and make the changes in your themes CSS file.


Draven

Module Developer
Posted on: 2005/1/24 17:28
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#17

Re: {$xoops_imageurl} Problem

Ok, so the URL produced indeed leads to the image then? Strange?!?! To be honest, unless I can actually get into the page and fiddle with it, it will be difficult to determine what the problem is exactly.

If you are willing, send me your info through PM. I'll login and review the files and see if I can fix the problem for you.


Draven

Module Developer
Posted on: 2005/1/24 17:25
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#18

Re: Theme Design Q & A - Ask your questions here

Lol, well I guess everyone knows how to build themes


Draven

Module Developer
Posted on: 2005/1/24 4:37
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#19

Re: I cant login help! please!!!!!!!!!!

go to http://www.mywebsite.com/user.php to login.

or if you have a XOOPS sub directory you would use http://www.mywebsite.com/xoops/user.php


Draven

Module Developer
Posted on: 2005/1/24 4:32
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#20

Re: {$xoops_imageurl} Problem

Quote:

mixmaster wrote:
Yes, it produces the correct file name.

The main difference I want to reiterate is this:

The following works (whereas the one I provided before doesn't):
<!-- Start center-center blocks loop -->
    <{foreach 
item=block from=$xoops_ccblocks}>
    <
div style="padding: 5px;">
    <
div class="blockTitle"
  <
table width="100%" border="0" cellspacing="0" cellpadding="0">
    <
tr
      <
td width="101" height="37" style="background-image: url([color=0000FF]http://www.mysite.com/xoops/themes/mytheme/Big_Story_image1.gif[/color]); background-repeat: no-repeat;">&nbsp;</td>
      <
td height="37" style="background-image: url([color=0000FF]http://www.mysite.com/xoops/themes/mytheme/Big_Story_image2.gif[/color]); background-repeat: repeat-x;">&nbsp;</td>
      <
td width="114" height="37" style="background-image: url([color=0000FF]http://www.mysite.com/xoops/themes/mytheme/Big_Story_image3.gif[/color]); background-repeat: no-repeat;">&nbsp;</td>
    </
tr>
  </
table>
</
div>
<
div class="blockContent"><{$block.content}></div>
    </
div>
    <{/foreach}>
    <!-- 
End center-center blocks loop -->


ok, what URL is produced by smarty using the following code?

<{$xoops_imageurl}><{$block.title|replace:" ":"_"}>_image3.gif



TopTop
« 1 (2) 3 4 5 ... 26 »