1811
Mamba
Re: How to add simple HTML page to XOOPS
  • 2019/11/11 22:23

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


The following applies If you wish to have a page of HTML content wrapped inside XOOPS without using a content module. This example works if you want the HTML content files to be located in the root of your XOOPS installation. First create a PHP file with the following content using your favorite text editor.
include("mainfile.php");
include(
"header.php");
$xoopsOption['show_rblock'] = 1//0 for no right block
?>

//Your HTML Code here (Note: Do not include head and body tags)

include("footer.php");

?>
Then name this file anything you wish and save it with a .php extension, and upload to the root folder of your XOOPS site. The php extension is important, do not save the file with an HTML extension. To call the file in XOOPS you will need to add a link to it, e.g. in a custom block like this.
<a href="http://www.yoursite.com/content.php">My Content Linka>
Save the block in HTML format making sure it is set to be visible and in the position required. Remember to go to System Admin-> Groups and add access permissions for the block.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



1812
fabou78
How to add simple HTML page to XOOPS
  • 2019/11/11 19:42

  • fabou78

  • Friend of XOOPS

  • Posts: 43

  • Since: 2012/6/16


What would be a very simple way of adding a HTML page to my XOOP website.

By simple I mean a link on my navbar should load an HTML page maintaining the sidebar contents and navbar.

I don’t understand the templating and block system (even I have read some doc about it) so can’t really use that for now and neither want it to be a module as to limit dependencies.

A simple "about us" HTML page with a few lines is all I need and I can build it, I just can't get my head around adding it to my webpage.

Is there an easy way to achieve this?



1813
geekwright
Re: XOOPS 2.5.9 Notes for Theme Creators

The $xoops_page variable only gives the module and script. It was intended to allow adding menus or style variations for a specific function, not specific content.

If I needed the content_id exposed as well, I would probably ask Mage to add it to the smarty variables that xmcontent assigns.



1814
alain01
Re: XOOPS 2.5.9 Notes for Theme Creators
  • 2019/11/11 0:16

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


Quote:

geekwright wrote:
New Smarty variables added in XOOPS 2.5.9


$xoops_page contains a condensed version of the current page name. For example, for http://myurl/index.php, $xoops_page would be "index". For http://myurl/modules/profile/edituser.php, $xoops_page would be "profile/edituser".

$xoops_startpage contains the module configured as the start page, or "system" if no module is selected.

A "rendered" key is now set by XoopForm assign() method

Some scripts use the assign() method as an alternative to the display() method. This method assigns the form details to a stem variable named with the form's name. This assignment is done with code that looks like this:

$form->assign($GLOBALS['xoopsTpl']);

This technique has often been done to give the theme more control over the display of the form. It requires the template to loop through the individual form elements, and decide how to display it. This level of control is good if you need it, but can be a nuisance if you just want to position the form inside the page, and you would prefer the system to handle the details.

Very usefull !
Just use now in XOOPS 2.5.11 beta + new theme that i'm working on (boostrap 4).

But how can i use $xoops_page
with
http://myurl/modules/xmcontent/viewcontent.php?content_id=2
and
http://myurl/modules/xmcontent/viewcontent.php?content_id=8

2 different links...



1815
geekwright
Re: The Protector module is blocking my IP address.

Protector keeps its list of bad IP addresses in a file names "badips" followed by 6 hex characters unique to your system.

If you are using XOOPS 2.5.9, the "badips" file is found in the "xoops_data/protector/" directory.

In earlier XOOPS versions, the file will be in the "xoops_lib/modules/protector/configs" directory.

Deleting that file, or editing it to remove the line with you IP address should end the ban.



1816
zyspec
Re: SQL error with Tag Module
  • 2019/11/7 15:14

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Let me first say that I HAVEN'T ACTUALLY TRIED THIS.... so it could I'm mis-reading the code but:

It looks like ./block/block.php line 115
$criteria->add(new Criteria('l.tag_modid'$modid));

should be:
$criteria->add(new Criteria('o.tag_modid'$modid));


and in line 120:
if (!$tags = &$tagHandler->getByLimit(00$criterianull, empty($options[1]))) {

should be:
if (!$tags $tagHandler->getByLimit(00$criterianull, empty($options[1]))) {


In theory that should help fix the issue in the block. Let us know if that works and if so then we can find the other place(s) in the code that may have similar issues.



1817
mjoel
SQL error with Tag Module
  • 2019/11/7 6:22

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


Hi..
Im using tag module 2.34RC2 downloaded from here https://github.com/XoopsModules25x/tag/
XOOPS Version XOOPS 2.5.10
PHP Version 5.6.40
mySQL Version 5.7.28

no tags are listed in index and blocks.. i received this sql error in debug message

SELECT DISTINCT(o.tag_id), o.tag_termo.tag_statusSUM(l.tag_count) AS countl.tag_modid FROM tag_tag AS o LEFT JOIN tag_stats AS l ON l.tag_id o.tag_id GROUP BY o.tag_id ORDER BY count DESC LIMIT 0100

Error message
Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'xxxxxx.l.tag_modid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by



1818
dyraven
Re: The Protector module is blocking my IP address.
  • 2019/11/6 17:56

  • dyraven

  • Just popping in

  • Posts: 15

  • Since: 2009/10/7


I am having the same problem. What did you do to fix it?



1819
alain01
Re: XOOPS standardizes its Documentation on GitBook Platform
  • 2019/11/6 15:35

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


Ok, thank you,
but for an anonymous xoopser, how can he access to the tutorial books ?

I mean : how bring theses docs for public reader ?



1820
Mamba
Re: XOOPS standardizes its Documentation on GitBook Platform
  • 2019/11/6 13:35

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


You can join as a reader by going to:

https://app.gitbook.com/join/xoops?invite=-LD6MjWpmSMN38DkObQK

Check your email for an invitation as a writer
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs




TopTop
« 1 ... 179 180 181 (182) 183 184 185 ... 29425 »



Login

Who's Online

289 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 289


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits