I need to put a popup in my site. This pop up access my XOOPS page. The problem is: how to put a pop-up, using a XOOPS page, without the theme? For example: upload picture. Show only the structure (html) for upload picture, without theme layout.
I need to put three fields for upload files (images) in a post new page (news/admin/index.php?op=newarticle). I going have difficult for this (newbbie!!!!). Anyone can help me? For put fields and record changes in database?
PHP: 5.1.4 Apache: 2.2.2 Mysql: 5.0
Xoops: 2.0.13.2 Module news: 1.1 (hacking just popup ;D)
I'm trying to modify spotlight module in this way: show 3 news, category news in one block (c-left) and other 3 news category events in other block (c-right). My first step is: show the last three news in spotlight block like the first notice choice, in preferences of module and not with topics. Include three thumb images.
$result = $xoopsDB->query("SELECT storyid, uid, title, hometext, comments FROM ".$xoopsDB->prefix("stories")." WHERE published < ".time()." AND published > 0 AND (expired = 0 OR expired > ".time().") ORDER BY published DESC LIMIT 3",1,0);
while ( $block = mysql_fetch_array ( $result, MYSQL_ASSOC )){ foreach ($block as $chave => $valor){ $block[$chave][] = $valor; } }
for ( $i=0; $i<3; $i++){ if (!$block[$i]['id'] && !$block["$i"]['title']) { $block["$i"]['message'] = _MB_KUHT_NOTSELECT; } else { if ($auto_image == 0) { $block["$i"]['image'] = $image; } //else { //$var_image = $xoopsDB->query("SELECT topicid FROM ".$xoopsDB->prefix("stories")." WHERE storyid=".$number."",1,0); //list ($patt_image) = $xoopsDB->fetchblock($var_image); //$var_image2 = $xoopsDB->query("SELECT topic_imgurl FROM ".$xoopsDB->prefix("topics")." WHERE topic_id=".$patt_image."",1,0); //list ($image_display) = $xoopsDB->fetchblock($var_image2); $block["$i"]['image_display'] = $image_display; }
XOOPS Version: 2.0.13 Module Name/Version: Spotlight 1.4 PHP Version: 5 Web Server Software (Apache/IIS/Other): Apache Operating System: Windows XP Theme you are using: Default (for test) Custom template: (Yes/No) I hope PHP Debug Messages: Warning [PHP]: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in file C:\apachefriends\xampp\htdocs\dev\modules\spotlight\blocks\kuht_head.php line 57 Notice [PHP]: Undefined offset: 0 in file C:\apachefriends\xampp\htdocs\dev\modules\spotlight\blocks\kuht_head.php line 68
If you trying to reload your new changes in your site, try this: In panel admin/theme, create a clone theme to make your changes. This way you protect the default theme and customize your own changes.