1
barkndog
Re: Copy/paste
  • 2006/6/2 18:19

  • barkndog

  • Just popping in

  • Posts: 5

  • Since: 2006/4/19


Just so you know, when you copy and paste into text areas you lose text formatting. In other words, all the bolded text, color, font size, etc of your text is no longer there.

I solved this by installing XK Editor, which keeps the format of the text when you cut and paste into it. I got it working on the News module, I haven't really tested it in other areas. But it's not hard to set up, just search for XK Editor and go from there.



2
barkndog
linksky.com
  • 2006/5/25 15:04

  • barkndog

  • Just popping in

  • Posts: 5

  • Since: 2006/4/19


I'll add another site to the "good XOOPS host" list : Linksky
Lots of features and unmetered bandwidth, and I've never had a major problem with them. Very inexpensive - They have hosting plans as low as $5/month. I've hosted a PostNuke site there for years, and I've recommended them to multiple friends and clients. Just installed XOOPS on a LinkSky hosted domain for a client, had no problems (Xoops is available from their cPanel/Fantastico applications).

If you do sign up, specify that you were referred by "hillsidedrive.com" - I'll get a free month (about $8 value).



3
barkndog
Re: Installing XK Editor
  • 2006/5/24 20:09

  • barkndog

  • Just popping in

  • Posts: 5

  • Since: 2006/4/19


I just did this yesterday - in fact while searching for hints I came across your post. I wound up using the documentation for xk_editor and figuring it out - I'll address some things that might help:

First, like tcnet says, start by copying the wysiwyg folder to your XOOPS root/class directory. For the purpose of these instructions, you will want to unzip the file on your hard drive and then ftp the wysiwyg folder to your web site in the ./class directory.

Updating the System_imagemanager.html is not documented well. I didn't do it the way tcnet says, I went the "in Xoops" route. Here are the steps:
1)in Xoops, go to Admin->System Admin->General Settings and click "Yes" for "Update module template .html files from themes/your theme/templates directory?". Then click the "Go" button to save.

2) now go System Admin->Templates. In your templates (I use a set of templates other than the default, the one being used has a check at the far right), click "List" next to "System".

3) scroll down to "system_imagemanager.html", click "Browse" on the far right. Browse to the location where you unzipped xk_editor and choose the system_imagemanager.html file. Once chosen, you will have to scroll to the bottom of the templates list and press "Upload".

At this point, xk_editor is installed, but it is not available in your news module. Go to the directory where you unzipped xk_editor/docs and open index.htm. You should see a link for "News 1.1 module implementation" and "News 1.2.1 module implementation". The instructions are pretty clear at that point - I did the news 1.1 module implementation. For news/include/storyform.inc.php, I just replaced everything after (and including) the
include XOOPS_ROOT_PATH."/class/xoopsformloader.php";
line.
The changes for modules/news/admin/storyform.inc.php are pretty straightforward.

Make sure and clear your browser cache before you test it.

Once you are sure it works, remember to set "Update module template .html files from themes/your theme/templates directory?" back to "No".

Good luck, PM me with any questions.



4
barkndog
Re: News Module: Removing Comments from article, Submit news from menu
  • 2006/4/21 13:40

  • barkndog

  • Just popping in

  • Posts: 5

  • Since: 2006/4/19


Ok, I figured this out - I'll summarize my solution in case someone else tries to do the same thing.

I had already made all my content public and turned off the login block using this FAQ article. Its important to give anonymous users access to the modules, such as news, that you want everyone to see.

Issue 1: In modules/news/xoops_version.php I just commented the lines
$modversion['sub'][1]['name'] = _MI_NEWS_SMNAME1
$modversion['sub'][1]['url'] = "submit.php";


For Issue 2 I went to modules/news/index.php and commented out a lot of the "$morelink" variable builds. I started commenting under the line
$ccount $sarray[$i]->comments();
which included a couple of $morelink assignments and the entire if/else block that followed.

Issue 3 was a bit tricky. First, you need to clone your templates and make sure they can be refreshed. See
FAQ: How do I build a theme? for steps to clone the templates - up through step 4 or so. Make sure to Set "update module template .html files from themes/your theme/templates directory?" to YES and select your templates in the preferences.

At that point, go to Admin, templates, then list the News templates from your new set of templates. You can edit news_item.html to take out the Posted By stuff.

The only problems will be when the news module gets upgraded, I'll probably have to go through most of this again. But it won't take as long next time



5
barkndog
News Module: Removing Comments from article, Submit news from menu
  • 2006/4/19 21:36

  • barkndog

  • Just popping in

  • Posts: 5

  • Since: 2006/4/19


This is regarding the News module, v1.1.
A little history: The web site I am working on will not have registered users, only the admin who will post news articles. Anonymous users do not have permission to submit news or comment on news stories. Searching the xoops.org site, I found out how to remove the user/login area and display the news to anonymous users, and I've got the permissions straight (very good documentation btw). Currently, anonymous users can see the main menu with home and news.

3 issues:

Issue 1) When they click "News" on the main menu, two sub-menu items appear, "Submit News" and "Archive". I don't want anonymous users to have the "Submit News" option, especially since they don't have rights to do so. How do I remove that from the menu?

Issue 2) When on the news page, they are presented with options to "Read More..." or "Comments". They don't have rights to add comments, so how do I remove the link to add comments?

Issue 3) How can I remove the "Posted by..." line on the news article? I don't mind it saying "Posted on [some date and time]", but I don't need the number of reads or who it was posted by.

Thanks for any help you can offer. As an old PostNuke user, I have to say that XOOPS is very easy to get up and running. Especially with the permissions and the layout. I like what I've seen so far.




TopTop



Login

Who's Online

108 user(s) are online (65 user(s) are browsing Support Forums)


Members: 0


Guests: 108


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