jQuery's Quick Comment Hack for News Module

Anonymous  13-Dec-2008 19:14  15625 reads  34
jQuery's Quick Comment Hack allow your site's visitors to post comments from article page directly.

Quick comment box will display at the bottom of the article instead of Post Comment button.

1. Download jquery.js file ( click here ), then upload it to modules/news/js folder.

2. Add this line to your theme.html between <head> and </head>:

<script type="text/javascript" src="<{$xoops_url}>/modules/news/js/jquery-1.2.6.min.js"></script>

3. edit modules/news/templates/news_article.hml and replace:

<div style="text-align: center; padding: 3px; margin:3px;"


document).ready(function() { 
get("comment_new.php?com_itemid=<{$story.id}>", function(data){ 
'#quickcomment').append(data.substring(data.indexOf("<form name='commentform'"),data.indexOf("<!-- End Form Vaidation JavaScript //-->"))); 

div id="quickcomment" style="text-align: center; padding: 3px; margin:3px;"><{$lang_notice}></div>

Don't forget to turn on Check templates for modifications via General Settings.

Demo: click here

Print article

Xoops DHTML Hack V 2.6

psindia  22-Nov-2008 15:30  7074 reads  14
The new Xoops DHTML Hack V2.6 for Xoops V has been released.
The new version provides you the following features:

* Multi Language Support for Instant Preview
* Support Multiple dhtml box in the same page ( for modules like news,articles etc )

You can download the new hack from

Thanks to www.arabxoops.com for making donation to this project.

Please post your suggestions and feedback here or at tenthstone.com


Resized Image

http://tenthstone.com : the future begins here
Print article

My XOOPS hack with news module

Albin  10-Nov-2008 09:37  19153 reads  63
Resized Image

Keep attention to the news module and blocks
Print article

XCGAL - Search Patch 1.0

psindia  03-Sep-2008 11:14  7632 reads  4
Xcgal Search Patch 1.0

Purpose of the Patch
This patch is created to improve the search feature of the XCGAL module. The patch will include search by category and also search by custom fields (if enabled)

The Patch is developed by Vinod Surendran (psindia) under the guidance and support from Mowffak Ali (arabxoops.com).

How to apply the patch

>> The Patch works for XCGAL Version 2.04

>> To install the patch just replace the original files in the XCGAL module with this patched files.

>> Remember to keep a backup of the original files.

The files structure of the patch (zip) is as follows:

¦ search.php
¦ thumbnails.php
¦ functions.inc.php
¦ search.inc.php
| xcgal_search.html

You Can Download it from here

If you like this work then please donate to us at http://tenthstone.com/donate
Print article

Xoops DHTML Hack V 2.5

psindia  20-Jul-2008 07:54  10908 reads  5
The new Xoops DHTML Hack V2.5 for Xoops V has been released.
The new version has fixed some bugs on the movie section (ytube).
The new version carries features like adding alt tag to IMG , align text etc ..

You can download the new hack from

Thanks to www.arabxoops.com for making donation to this project.

Please post you r sugessions and feedback here or at tenthstone.com


Resized Image

http://tenthstone.com : the future begins here
Print article

Elven Language Pack - Xoops 2.0.x

wishcraft  12-Jul-2008 21:43  6738 reads  3
Resized ImageManke tanya tuula? Mankoi naa lle sinome? This is a complete Xoops 2.0.x Elven Language pack, you can have your core language running in elven, for the complaint little elfie, this means for you new D'n'D site or some of the new games coming out you can have a site in it's original language set.

This is a complete conversion of the main language files for the elven language you can enjoy your xoops in Elven. If you need a dictionary or a guide we can provide one to you please use our liaise form so you can continue to develop modules in elven.

I know I have travelled around and have noticed that people in some circles or another use this language to communicate and also have meetings in it.

I hope your magick and wicca circles as well as some gaming sites enjoy this language pack it is true to definitions. But I will tell you finding words for things like Authentication Key in elven was no not easy.

Dowload : xoops2_lang_elven_1.0.17.zip (21 Kb) - Xoops 2.0.x
Print article

Official Xoops Smilie Dictionary

wishcraft  18-Jun-2008 04:09  7108 reads  6
The official smiley database has been published in the wiki, this is as a guide for smiles when you are extending your smiley database in xoops, I would love to one day see xoops have these all natively but I am unsure who should render them all.

This is the Basic Smiles Not all of these are currently in xoops, but you can get the full smiley database from chronolabs wiki or here at the xoops wiki.

Basic Smilies

- Your basic smilie.
- Winky smilie.
- Frowning smilie.
:-I - Indifferent smilie.
:-> - User just made a really biting sarcastic remark. Worse than a .
>:-> - User just made a really devilish remark.
>;-> - Winky and devil combined.
(-: - User is left handed
%-) - User has been staring at a green screen for 15 hours straight
:*) - User is drunk
8*) - User is stoned on drugs
[:] - User is a robot
- User is wearing sunglasses
B - Sunglasses on head
: - User wears normal glasses
B-) - User wears horn-rimmed glasses
8 - User is a little girl
-8 - User is a Big girl
:-{) - User has a mustache
:-{} - User wears lipstick
{ - User wears a toupee
} - Toupee in an updraft

Wiki Link: XOOPS Smilie Dictionary
Print article

SEO Paths & .htaccess

wishcraft  01-Jun-2008 16:47  16650 reads  17
Well as you may have noticed I have been doing some examples in the wiki for .htaccess this is for primarily SEO Clean Paths for xoops, the modules I have chosen for the example in sharing this code is code for CBB (1.5, 2.2, 3.x), News 1.4+ (May work on earlier), myalbum-P, SmartSection 2.2, CatAds & the userinfo.php page.

What I have been doing over the last few weeks is testing various SEO paths to see what brings ultimate traffic, remember in changing your websites URL you may get sandboxed for a few months as the search engine detects a sitewide change.

Search Engine Optimization is an important step in making friendly paths for both Search Engines and the End Users, you normal for example use a dash (-) not an underscore (_) to SEO as this is detected and more compatible with a search engine algoritms, it is also helpful for natural language query.

You may also find various other SEO improvements you can make to stop keyword stuffing (Example Titles to Keywords) and so on my wiki profile page (these are deep in the forums).

Some example of some friendly SEO paths I have generated are as so:

Content 1.x: http://www.extraterrestrialembassy.co ... ent/Introduction-to-ETE/1
News 1.4: http://www.extraterrestrialembassy.co ... This-Website/SEO-Paths/14
MyAlbum-P 1.5: http://www.extraterrestrialembassy.com/gallery/Ancient-History/3,0,10,0,1,titleA
wflinks: http://www.extraterrestrialembassy.co ... links/Alien-Information/2,0,0,0,dateA
CBB 3.08: http://www.extraterrestrialembassy.co ... t-for-the-Space-Station/8,46,65,0,0,0,0
userinfo.php http://www.extraterrestrialembassy.com/user/wishcraft/1

Remember these SEO paths will increase traffic and delievery into your search engines, you must use a 301 Permanently Moved Redirection as this will remove the old link from the search engine and replace it with the new one.

The general rule for an SEO path is to contain something to do with the title, area of the site and category, remember to include at least the item identification number if possible for legal reasons.

SEO is a big step in improving the cleanliness of your site, as well as your image, we will be doing this here at xoops.org in the not to distant future.
Print article

Myalbum random pic in just one line of code

slyss  11-May-2008 17:18  7961 reads  2
Hi all

i have written a function to build random pictures blocks (from myalbum-p).

You need to include this into your: root/include/functions.php:
Print article

Improve your site speed with php_speedy

sroccidente  12-Apr-2008 02:22  10510 reads  11
I don´t know if this will work for everyone, I just want to share what I experienced with this code, I´m not by any means any expert or so, but if work for me perhaps it will work for others, other wise just let me know what do you think

To increase the speed of my site i just do as follow:
I use php_speedy, upload to my xoops folder install it and just include the suggested code to my index.php and it reduced the http request by 300%, correct me please if I´m wrong but from 83 request to just 22 and the average front page load time from 76.57 seconds to 28.49 seconds in a 56k connection is a good improvement,of course nothing is perfect and I had to sacrifice an slideshow, for one or other reason did not like php_speedy.

I check the speed gain with http://www.websiteoptimization.com/services/analyze/index.html
download php_speedy from: http://aciddrop.com/php-speedy, the exact link for downloading is this one: http://aciddrop.com/aciddrop/download/php_speedy-0.4.6.zip

PHP Speedy

PHP Speedy is PHP script that automatically speeds up your website by combining and compressing your JavaScript and CSS assets. It can also GZIP these assets, and the page itself.

1. Download and UNZIP the PHP Speedy package into its own directory (if you haven't already).
2. Point your browser to the PHP Speedy directory (that you have just created)
3. Follow the installation instructions

Best Regards
Print article

XoopsEditors Compatibility Issues – Fixed

Catzwolf  07-Apr-2008 14:38  6658 reads  8
For the longest time, I have been trying to understand the workings of the XoopsEditors. I am not a beginner with PHP or the workings of Xoops, but for the longest time, this issue has bugged me really bad, to the point I wanted to pull my hair out (what is left of it anyway) and I nearly gave up many times. Persistence and brute ignorance are two of my many flaws, but they have seen me through.

Anyway, back to the XoopsEditors. While in the process of revamping WF-Channel, I was asked many times to include a WYSIWYG Editor and after much thought about it I decided to go down the XoopsEditors path. So doing what most other people do… I started to look for examples on how it works and how I could incorporate it into WF-Channel.
Print article

Use Tinyeditor for creating your blocks in 2.3*

Dylian  04-Apr-2008 14:29  6375 reads  11
To use Tinyeditor for creating custom blocks in 2.3 :

Go to root/module/system/admin/blocksadmin/

Make an backup of the blockform.php
and open it.


Search for:
$textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT'bcontent'$block['content'], 1570);

And replace it with:
if ( is_readable(XOOPS_ROOT_PATH "/class/xoopseditor/tinyeditor/formtinyeditortextarea.php")) {
XOOPS_ROOT_PATH "/class/xoopseditor/tinyeditor/formtinyeditortextarea.php");
$textarea = new XoopsFormTinyeditorTextArea(array('caption'=>_AM_CONTENT'name'=>'bcontent''value'=>$block['content'], 'width'=>'100%''height'=>'400px',  'xEditor'=>'1'));
$textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT'bcontent'$block['content'], 1570);

And if you go to blocks in your administration then youl see tinyeditor in stead of the normal editor.
(This hack only works if you have installed tinyeditor!)
Print article

Dutch language package for XOOPS 2.3*

Dylian  01-Apr-2008 19:50  5873 reads  5
I now its not really an hack but,
here are the dutch language files for XOOPS 2.3*

You can download it HERE
Print article

xcgal: "Upload more pictures" and ...

Anonymous  31-Mar-2008 19:21  9623 reads  8
Xcgal users will be familiar with the "Upload more pictures" function which allows up to four pictures to be uploaded in one go and will know about xcgal's "click on a keyword" search function which locates all pictures having the chosen keyword. Keywords are therefore a really important tool for xcgal users.

Unfortunately, users will also know that keywords cannot be entered for pictures uploaded using the "Upload more pictures" function - they can only be added by editing the picture later.

...... until now

I've amended two xcgal files (db_input.php and xcgal_uploadmore.html) to allow keywords to be entered using the "Upload more pictures" function and the time of upload.

I've packed the amended files and their (renamed originals - it will be obvious!!) into this zip file.

Hope it is useful.
Print article

Text wrap Xcgal template

sroccidente  31-Mar-2008 16:17  5335 reads  0
I always have problem with the text in the description area of xcgal module, if you write a long description and do not take care of the breal lines your ouput text will result in a long text line, so I modify the template xcgal_display.html and around the line #29 look for a code like this:
<td align="center" class="odd" height="100" style="white-space: nowrap; padding: 0px;">
and proceed to change to this one:
<td align="center" class="odd" height="100" style="white-space: wrap; padding: 0px;">

As you see we change the nowrap for wrap, that makes the trick at least in my case, hope it will solve the problem for another xooper

Print article
« 1 2 3 (4) 5 6 7 ... 11 »



Lost Password? Register now!

Who's Online

53 user(s) are online (2 user(s) are browsing Publisher)

Members: 0

Guests: 53



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