141
fatman
Re: Blank Page after downloading a component
  • 2003/12/20 2:57

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I get a similar message because I don't have all the proper txt characters loaded on my computer to display certain text on your site.

This is common when accessing sites in from .HK I find.

The message just asks me if I would like to install the characters but when I say no, then your site seems to load fine.

Not sure if that helps.



142
fatman
Re: Redesign Templates
  • 2003/12/19 7:15

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


You could easily use that design. You could just not use the right colum and keep your left and center columns the same width.

If you're willing to modify your templates to get a nice style (like the one your site has) then remember you can get creative and move your block areas around in html and provide some looping with smarty.

Here is simple theme.html hack which will let you line up blocks in a row.

theme.html

<table border="0" cellpadding="0" cellspacing="0">
  <
tr
<!-- 
BLOCK START -->
        <{foreach 
item=block from=$xoops_lblocks}>
          <{include 
file="mytheme/theme_blockleft.html"}>
       <{/foreach}>
<!-- 
BLOCK END -->
  </
tr>
</
table>

mytheme/theme_blockleft.html

<td>
<{
$block.content}>
</
td>



143
fatman
Re: Adding auto-notifications when a news story is posted
  • 2003/12/19 5:18

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


this would be nice as an admin feature. I might try this and issolate it for certain user groups.

Would it be a bad idea to roll that idea into a function and give admin the ability to run it in a block below the notification window on articles/threads/ect..



144
fatman
admin blocks ? anyone tried
  • 2003/12/19 5:04

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I had this idea while reading through the forums looking for a way to get Smarty functionality available in the control panel. Doesn't look like it can be done.

Has anyone just built admin functions as module blocks with block templates? I thought I could build all my admin functions as blocks, load them with my various modules. Then I could have another 'admin' module to provide access to specific blocks using the control panel.

Anyone see fault in this approach or know anything about the roadmap for the control panel?

I really want to avoid mixing layout and php. Alternatively if anyone knows of a way to hack smarty functionality into the control panel area. I'd like to know.

I tried the following with no luck. Just a blank page but with the cp header and footer.

/module/mymod/admin/test.php
<?PHP
include('admin_header.php');
include(
XOOPS_ROOT_PATH.'/class/smarty/Smarty.class.php');

// create object
$smarty = new Smarty;

// assign some content.
$smarty->assign('name''george smith');
$smarty->assign('address''45th & Harris');

// display it
xoops_cp_header();
$smarty->display('test.tpl');
xoops_cp_footer();
?>

test.tpl

<{$name}>
<{$address}>




145
fatman
Re: Adding the group permission feature to your module
  • 2003/12/19 4:44

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


This is a very good post thanks.

I have a question. If I want to move some admin functions to the frontend of the site so that I can take advantage of Smarty templates, would adding group permission features as outlined here, let me control who has access to the frontend-admin view of module.



146
fatman
Re: Help making admin look like rest of site
  • 2003/12/19 4:38

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


Just wondering how you made out with this? I am currently thinking of ripping out some admin pages and integrating them with the rest of the module, however I'm worried about being able to provide accurate security.

When you moved your admin to the theme side of things did you have to then also integrate group security into the module?



147
fatman
Re: xoops asp?
  • 2003/12/17 16:02

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I'm not sure open source and asp can be used in the same sentence ;)

Give Aspin.net or 411asp.net a try. You might find something there.



148
fatman
Re: DELETE FROM not working
  • 2003/12/17 6:45

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


yeah.. I just didn't know that I had to be sending my id with POST and not GET. So I just changed my link to a small form and submitted the request by post.

If you have that option you should try it. I didn't give your method above a try. But thanks for the response.

also.. I have to give total props to the core team here. XOOPS lets me forget about having to worry about so many things and I can focus on just the functionality of my pages and my user.

I'm pretty decent with php/mysql so I'm just getting used to the XOOPS core class files.



149
fatman
Re: DELETE FROM not working
  • 2003/12/17 4:32

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13





150
fatman
DELETE FROM not working
  • 2003/12/17 3:04

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I'm new to XOOPS but loving every minute of it. I'm building my first module which does little more than add and edit records from a single table. However, I can't seem to get xoopsDB to delete a record for me. I've been able to search and update records with no issues, but the following code doesn't work. Can someone enlighten me?

$sql "DELETE FROM ".$xoopsDB->prefix('mytable')." WHERE recordid = ".$_GET['id'];

$result $xoopsDB->query($sql);


The SQL statement works if given directly to my MySQL server.




TopTop
« 1 ... 12 13 14 (15) 16 »



Login

Who's Online

156 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 156


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