Resize text in fake online user

ltools
Topic Author
Posts: 4
7 years 4 months ago #127 by ltools
Resize text in fake online user was created by ltools
Fake online users mod.. What is the easiest way to adjust the text output (size and format) of this mod? cant seem to find i xml or any css associated.

Please Log in or Create an account to join the conversation.

ltools
Topic Author
Posts: 4
7 years 4 months ago #128 by ltools
Replied by ltools on topic Resize text in fake online user
I am actually using this to generate random number (inexperienced with php) and using multiple copies of the mod for different string lengths.. as in lottery numbers output. Any suguestions would be great.. agian need to modify the output in size/format on the pages.. thank you again

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1171
7 years 4 months ago - 7 years 4 months ago #129 by Lodder
Replied by Lodder on topic Resize text in fake online user
Hi,

welcome to the JoomJunk forum.

Ok first of all, you will need to create a CSS file and put it in root/modules/mod_fakeonlineusers.
Add the following code to it and save it:
.test {
	color: red;
}

Then, in the default.php file, at the top, but bellow the "Restricted Access" line, add the following code:
$document = JFactory::getDocument();
$document->addStyleSheet(JURI::root() . "modules/mod_fakeonlineusers/mod_fakeonlineusers.css");

Obviously change mod_fakeonlineusers.css to whatever you named your CSS file.

Then, still in the default.php, before all the echo lines, add this:
echo "<p class='test'>"

and after the last echo line, add this:
echo "</p>"

Save all the file, refresh your page, and the colour of the text should now be red. I gathered this may not have been what you wanted to do, but now you can start changing the format in whatever way you wish.

Hope this helps.

Regards,
Lodder
Last edit: 7 years 4 months ago by Lodder.

Please Log in or Create an account to join the conversation.

ltools
Topic Author
Posts: 4
7 years 4 months ago #130 by ltools
Replied by ltools on topic Resize text in fake online user
Thank you.. I have tried it a few times, using cuteftp/edit which works fine for everything else ive done in the past.. but when i do it.. just a blank page comes back.. i've tried line by line, and when i get to this:

echo "<p class='test'>"

is when the page doesnt work, any ideas?

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1171
7 years 4 months ago #131 by Lodder
Replied by Lodder on topic Resize text in fake online user
Hi,

Ok I have attacked a version of the module which includes a CSS file based on the guide I wrote in my previous post. Hope this helps. Please let me know if you have any problems.

File Attachment:

File Name: mod_fakeon...sers.zip
File Size:4 KB


Regards,
Lodder
Attachments:

Please Log in or Create an account to join the conversation.

ltools
Topic Author
Posts: 4
7 years 4 months ago #133 by ltools
Replied by ltools on topic Resize text in fake online user
Well you rock.. worked great.. i compared strings and cant see anything different.. oh well.. Thank you very much!

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum