11
Draven
Re: Theme Design Q & A - Ask your questions here
  • 2005/1/24 20:27

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Ok, here you go.

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

see it in action athttp://gaining-mass.com/projects/3collayout/3%20Column%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.



12
Draven
Re: Tree Strucuture
  • 2005/1/24 19:23

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


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.



13
Draven
Re: Theme Design Q & A - Ask your questions here
  • 2005/1/24 18:47

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


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



14
Draven
Re: Xcgallery - reg'd users cant upload to default categories?
  • 2005/1/24 17:42

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


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/



15
Draven
Re: Searching For Auto - Generated Email Php Coding
  • 2005/1/24 17:37

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


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();
        }



16
Draven
Re: Changing Default Theme
  • 2005/1/24 17:32

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


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.



17
Draven
Re: {$xoops_imageurl} Problem
  • 2005/1/24 17:28

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


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.



18
Draven
Re: Theme Design Q & A - Ask your questions here
  • 2005/1/24 17:25

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Lol, well I guess everyone knows how to build themes



19
Draven
Re: I cant login help! please!!!!!!!!!!
  • 2005/1/24 4:37

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


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

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



20
Draven
Re: {$xoops_imageurl} Problem
  • 2005/1/24 4:32

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


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 »



Login

Who's Online

114 user(s) are online (76 user(s) are browsing Support Forums)


Members: 0


Guests: 114


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