1
Muslimin
Xoops tough to master, but addictive:) Some newbie method
  • 2005/9/22 14:00

  • Muslimin

  • Just popping in

  • Posts: 11

  • Since: 2005/9/19


Greetings all;

I just discovered that I can set the main XOOPS index page can be set the way I wanted it.


It is tough, mind you, since the default XOOPS editor must be set to Autoformat.


OK, so for those newbies who still wonder how do we set the main page to get rid of that blank white page?

1. Create a new Custom Block (Auto Format)

2. Set Side
Left-Center-Right ------------>choose Center


3. Choose - Visible - Yes

4. Choose - Visible - in Top page

5. Type in your title

6. Choose - Content Type - AUTOFORMAT!

7. Then you can just copy and paste whatever HTML / original file. It will format the hyperlinks texts and email links automatically.

8. IMAGE: you need to type in the <img src=" "> with absolute image URL yourself. You can use the following img tag with hyperlink:
<a href="http://where.com"><img src="domain.com/mypics">Link texts</a>

9. Note: I don't need to use <br> or <p>. Just separate the texts by one or two spacing.

10. Another easy way is to copy the source HTML codes, which is also tricky.

11. Javascripts and CGI scripts will not work!

12. Title for the page is the title you set in Preferences. I cannot make the <title> tag works :(


13. Last but not least: it accepts Unicode fonts (non English) with punctuations. Make sure you set your web browser to the correct character encoding (Mozilla). If incompatible character encoding is selected, the fonts will appear strangely, or worse, ?????????? (none appear).


Demo:
http://mauizah.muslimin.org

2
Herko
Re: Xoops tough to master, but addictive:) Some newbie method
  • 2005/9/22 14:07

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


autoformat will display HTML like text, meaning not render the code to display but show the code. Use the 'HTML' show setting in order to get the code rendered.
Autoformat will enable XOOPScode like [ b] (without the space) to make text bold etc., and render smilies into images.

Herko

3
JMorris
Re: Xoops tough to master, but addictive:) Some newbie method
  • 2005/9/22 14:19

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Actually, Auto format will format some HTML; however, for HTML/CSS/Javascript, it is better to use the HTML option when creating a custom block.

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

4
Muslimin
Custom Block (Auto Format)
  • 2005/9/22 14:33

  • Muslimin

  • Just popping in

  • Posts: 11

  • Since: 2005/9/19


I set Custom Block (Auto Format) when I copied and pasted my original HTML source codes (I view the page source using Mozilla).

I then submit it and refresh my index page and I got what I wanted.


BTW I haven't tried copying & pasting HTML codes for TABLES with some rows and columns.


BTW still an unanswered question, folks :)

If I want to copy and paste other webpage from its display (not copying the HTML codes which are hard) but to just run the mouse with left click - select texts and images)
does the default XOOPS editor able to do this?


I believed FCK Editor enables this, because my experience using gCards news editor was really a breeze.

5
Muslimin
How do we put DATE & TIME at top left of main page
  • 2005/9/27 5:42

  • Muslimin

  • Just popping in

  • Posts: 11

  • Since: 2005/9/19


Greetings;

how do we put the date & TIME STAMP on a XOOPS generated page?


For an HTML, I know that using the Javascript works superbly.

Do you set the page format to be HTML format?


Here is the Javascript for Date for anyone to use - just copy and paste in your *.html or *.htm

I havent tried or figured how to put date/time on my XOOPS so appreciate it we can share knowhow :)

<script language="JavaScript1.2">

<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write(lmonth + " ");
document.write(date + ", " + year);
// End -->
</script>

6
Muslimin
Javascript for DAY & DATE for HTML pages
  • 2005/9/27 5:56

  • Muslimin

  • Just popping in

  • Posts: 11

  • Since: 2005/9/19


Copy and paste it to be located anywhere suitable in HTML page.

You can change the names of the days and months.

Appereance:

Tuesday, 27 SEPT 2005

========

<script language="JavaScript">
<!--
function write_date()
{
var thetime=new Date();

var nday=thetime.getDay();
var nmonth=thetime.getMonth();
var ntoday=thetime.getDate();
var nyear=thetime.getYear();
var AorP=" ";

if (nday==0)
nday="Sunday";
if (nday==1)
nday="Monday";
if (nday==2)
nday="Tuesday";
if (nday==3)
nday="Wednesday";
if (nday==4)
nday="Thursday";
if (nday==5)
nday="Friday";
if (nday==6)
nday="Saturday";

if (nmonth==0)
nmonth="JAN";
if (nmonth==1)
nmonth="FEB";
if (nmonth==2)
nmonth="MAR";
if (nmonth==3)
nmonth="APR";
if (nmonth==4)
nmonth="MAY";
if (nmonth==5)
nmonth="JUN";
if (nmonth==6)
nmonth="JULY";
if (nmonth==7)
nmonth="AUGUST";
if (nmonth==8)
nmonth="SEPT";
if (nmonth==9)
nmonth="OCT";
if (nmonth==10)
nmonth="NOV";
if (nmonth==11)
nmonth="DEC";

if (nyear<=99)
nyear= "19"+nyear;

if ((nyear>99) && (nyear<2000))
nyear+=1900;

document.write(nday+", "+ntoday+" "+nmonth+" "+nyear);

}
//-->
</script>

Login

Who's Online

142 user(s) are online (74 user(s) are browsing Support Forums)


Members: 0


Guests: 142


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