1
Ilija
Templates in DB????
  • 2004/3/1 5:28

  • Ilija

  • Just popping in

  • Posts: 23

  • Since: 2003/9/9 1


I noticed that XOOPS stores templates in database, retrives them and compiles them.

How?

I need that feature for one of mine projects, but I just don`t know how to do that...

Ilija



2
Ilija
Re: Upload Avatars
  • 2003/12/1 9:58

  • Ilija

  • Just popping in

  • Posts: 23

  • Since: 2003/9/9 1


I set it (on User Info Prefs page) but they just can`t upload avatars. I can (admin), but they don`t. Problem with Premissions of what?



3
Ilija
Re: What is the Level of ArMS 4.0 for?
  • 2003/12/1 9:36

  • Ilija

  • Just popping in

  • Posts: 23

  • Since: 2003/9/9 1


Thats it, in short. Thanks. I`ll put that text in readme or on admin page...

You can hide levels in templates... Just remove lines that show them. You need to know smarty syntax to do that. So,http://smarty.php.net . Note that default delimiters in XOOPS are not { and } but <{ and }> . I`ll add option Use levels to Prefs in next version, but I don`t have time to work on ArMS now...

Did anyone opened Preferences page??? There you can set min article title and description. Also, on that page you can set min page title, description and text. On the same page you cat turn on/off extra permissions, rating and crossposting.



4
Ilija
Upload Avatars
  • 2003/11/30 14:51

  • Ilija

  • Just popping in

  • Posts: 23

  • Since: 2003/9/9 1


What to set to allow registered users to upload avatars.

Thanxs



5
Ilija
Re: What is the Level of ArMS 4.0 for?
  • 2003/11/30 14:09

  • Ilija

  • Just popping in

  • Posts: 23

  • Since: 2003/9/9 1


As I said on modules and themes I use ArMS for tutorials. On my site ( www.ionbee.net ) there is four levels: Begginer, Advanced Developer, Expirienced Developer, Professional Develiper. Get the picture now?

You can`t turn Levels off, but you can hide them...

Any other questions?



6
Ilija
Please, don`t mix HTML and PHP!!! (simple MyDownloads hack)
  • 2003/10/18 20:58

  • Ilija

  • Just popping in

  • Posts: 23

  • Since: 2003/9/9 1


I downloaded MyDownloads and installed it. Then I started to edit templates.

I don`t like subcats displayed as one line with , between it. I like them in list. But I needed to hack MyDownloads because developers generetated all links in PHP code.

If you use smarty then use it as it should be used!!! NEVER mix PHP and HTML code!!!

Hack:

index.php (line 40). replace while block:

$down_cats = array();
$counter 0;
while(
$myrow $xoopsDB->fetchArray($result)):
  {
    if (
$myrow['imgurl'] && $myrow['imgurl'] != "http://" && $myrow['imgurl'] != "blank.gif"):
      { 
$imgurl XOOPS_URL."/".$xoopsModuleConfig['catimage']."/".$myts->makeTboxData4Show($myrow['imgurl']); }
    else:
      { 
$imgurl ''; }
    endif;
  
    
$down_cats[$counter]['cat_id'] = $myrow['cid'];
    
$down_cats[$counter]['title'] = $myts->makeTboxData4Show($myrow['title']);
    
$down_cats[$counter]['image'] = $imgurl;
    
$down_cats[$counter]['total'] = getTotalItems($myrow['cid'], 1);

    
// get child category objects
    
$arr = array();
    
$arr $mytree->getFirstChild($myrow['cid'], "title");
    
$chcount 0;
    
$subcategories = array();

    foreach(
$arr as $ele)
      {
        
$chtitle=$myts->makeTboxData4Show($ele['title']);
        
$subcategories[$chcount]['cat_id'] = $ele['cid'];
        
$subcategories[$chcount]['cat_title'] = $chtitle;
        
$chcount++;
      }
    
$down_cats[$counter]['subs'] = $subcategories;
    
    
$counter++;
  }
endwhile;
$xoopsTpl->assign('down_cats'$down_cats);


mydownload_index.html template file. Replace foreach block with this code:

<{section name=cats loop=$down_cats}>
  <
tr class="<{cycle values="evenodd"}>">
    <
td width="40%" style="vertical-align: middle" align="center">
    <{if 
$down_cats[cats].image <> ''}>
      <
img src="<{$down_cats[cats].image}>" alt="<{$down_cats[cats].title}>" /><br />
    <{/if}>
      <
a href="<{$xoops_url}>/modules/mydownloads/viewcat.php?cid=<{$down_cats[cats].cat_id}>"><{$down_cats[cats].title}></a> (<{$down_cats[cats].total}>)
    </
td>
    <
td width="60%">
      <
br /><ul>
      <{
section name=subs loop=$down_cats[cats].subs}>
        <
li>
          <
a href="<{$xoops_url}>/modules/mydownloads/viewcat.php?cid=<{$down_cats[cats].subs[subs].cat_id}>"><{$down_cats[cats].subs[subs].cat_title}></a>
        </
li>
      <{/
section}>
      </
ul>
    </
td>
  </
tr>
<{/
section}>


Also, there is error (as I see it it is error d:) ) with download links (mix images and download title but I want them separated). I`ll hack it soon...

Over and out!



7
Ilija
Re: Fixed width???
  • 2003/10/13 13:44

  • Ilija

  • Just popping in

  • Posts: 23

  • Since: 2003/9/9 1


I did it, and I got full width table (on 1024x768). I don`t know what is the problem...



8
Ilija
Fixed width???
  • 2003/10/12 17:30

  • Ilija

  • Just popping in

  • Posts: 23

  • Since: 2003/9/9 1


Where can I find themes with fixed width (in px, optimized for 800x600 resolutin)? Design is not important (I`ll change it if I have to).



9
Ilija
Query problems... Sometimes...
  • 2003/10/11 9:35

  • Ilija

  • Just popping in

  • Posts: 23

  • Since: 2003/9/9 1


Sometimes $xoopsDB returns false on query that is correct. I copy that query in phpMyAdmin and everything works fine. I have this problem only with update and delete queries (they update or delete at least one row, I`m sure so they need to return some result).

X 2.0.3



10
Ilija
XOOPS time, format and offset
  • 2003/10/10 16:33

  • Ilija

  • Just popping in

  • Posts: 23

  • Since: 2003/9/9 1


How to get system time settings, format and offset? I want to use it in my module...




TopTop



Login

Who's Online

151 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 151


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