1
PatsRule
RSS question
  • 2005/4/8 21:03

  • PatsRule

  • Just popping in

  • Posts: 37

  • Since: 2004/9/15


Hi all... thank you in advance.

I'm just learning how RSS works and in time I will add it to my sight so my members will be able to see the latest updates. That part I think I know how to do. What I am unsure of is this tho.

I have a sports website and have an RSS feed on my desktop from say "ESPN". From there i can see the latest news as it happens. What I would like to know is can I add this to my website so my members can see it also? It's baseball season so I would like to add a block on my homepage that will display their feed, so they can click on the links to get the latest info. Figure use target_blank so they stay on my site and get taken to it from a separate window.

Can this be done in Xoops. If so, could someone direct me to a site that explains how to do this..and I assume that something has to be added to my site for it to allow the feed to be shown. This is the stuff I am not sure of. Doing a search here tells me how to make my site have a feed of my content and let users download from me. Hope I am making clear what I would like to do. Thanks again in advance.



2
PatsRule
Feel like a dummy here
  • 2005/2/17 6:09

  • PatsRule

  • Just popping in

  • Posts: 37

  • Since: 2004/9/15


Hi all... I just completed making a ton of static HTML pages wrapped with:

<?php
include("../Xoops/mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>

My HTML Content (mostly tables)

<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>

I tried out the first one in my main XOOPS folder and it worked like a charm so I continued to make the 40 or so pages I wanted to be included and created the pages in the main folder as well. Everyone of them appeared fine. Figured then i would create a subfolder and move them all in that one. Did that but now here is my problem.

After I moved them, I received a ton of errors. Here they are:

Warning: main(../Xoops/mainfile.php): failed to open stream: No such file or directory in /home/my name/public_html/Xoops/baseball/allbbrank.php on line 3

Warning: main(../Xoops/mainfile.php): failed to open stream: No such file or directory in /home/my name/public_html/Xoops/baseball/allbbrank.php on line 3

Warning: main(): Failed opening '../Xoops/mainfile.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/my name/public_html/Xoops/baseball/allbbrank.php on line 3

Warning: main(XOOPS_ROOT_PATH/header.php): failed to open stream: No such file or directory in /home/my name/public_html/Xoops/baseball/allbbrank.php on line 4

Warning: main(XOOPS_ROOT_PATH/header.php): failed to open stream: No such file or directory in /home/my name/public_html/Xoops/baseball/allbbrank.php on line 4

Warning: main(): Failed opening 'XOOPS_ROOT_PATH/header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/my name/public_html/Xoops/baseball/allbbrank.php on line 4

Then I saw my page...but the tables, though in alignment, didn't have the style sheet attributes in it.

Then the footer errors below the HTML content...same as above.

From what the error says..it appears it is looking for the mainfile, header and footer file in the baseball folder. Is this correct?? Worse comes to worse, I'll put them back in the root XOOPS folder. What am I missing??



3
PatsRule
Re: Double Standards
  • 2005/2/14 22:28

  • PatsRule

  • Just popping in

  • Posts: 37

  • Since: 2004/9/15


Hi all. This is from a newbie to XOOPS and I don't even care to get into any legal ramifications about this. Not that I don't care, but because I can forsee what will happen, as what happens with any module that is out there public source.

1) Module goes public. Now anyone can download it and use it. With or without support. Depends on how knowledgable you are.

2) Those who have questions about it, how it works, and problems that may arise with it, will post their questions to the boards here or elsewhere, and hopefully someone will answer their question.

3) Some will ask, "Hey, Is there a way to do "this" or include "that" to this module. Someone will find a hack for it, or add code, and post it. Module developed more so. BUT...Not re-released as an updated version of said module, however. Yet those who want this add on or revision now have an updated version made public..so to speak, because of a public post about it and their implementation of how to do it.

I don't have a problem with anyone asking or requiring "donated" money in order to receive services early along with full support. Anyone who thinks of an idea, commissions someone knowledgable enough to implement the changes needed, pays said person to do this has the "right" to do this. This is America, where we live in a "free" society. No "free beer" tho, unless you know the owner of the establishment. Interpreting the GPL is for lawyers, not us. IF someone wants to challenge what is being done, then go through the expense of hiring a lawyer, talk to him/her and see if what is being done is illegal. NONE of us who are not experienced lawyers in this field know for sure.

As far as banning from a site that may have updates, support, guides, whatever... that is the owner of that site's "right" also. NO ONE call tell me who I want to have as members. Legally, I guess if there is a pay service for the entire site or parts of it, and you enter in a "contract", then unless that "contract" is violated, said owner can't do this, but if it's "free", meaning no cost and you haven't entered a contract, then said owner can tell you to take a hike. But as I mentioned above, support will be elsewhere soon. And upgrades will follow.

The bottom line for me as an end user only, while I learn this CMS, is that I KNOW if I download any module, I WILL get SUPPORT somewhere in time, will be able to have questions about it answered, and enjoy the features of it as well as others time, effort, possibly monetary value all for "free". This time "free" meaning I paid nadda.

What has been done is helping the community as a whole. Mostly by making it available a lot sooner, something that will benefit all of us in the long run.

Everyone take a deep breath and

Mike



4
PatsRule
Re: Help With Custom Page
  • 2005/2/12 19:28

  • PatsRule

  • Just popping in

  • Posts: 37

  • Since: 2004/9/15


Thanks Dave but no go. I thought that was it when I first read your post. Really strange how the right blocks won't go in. I didn't think this would be all that difficult as it is just a static page with HTML content. Using what I read from the FAQ here and as well as other searches and my own knowledge, to create one with XOOPS context on BOTH sides didn't appear all that difficult.

Basically you insert the includes and it gives you the header and left side blocks..the HTML you put in ends up in the center, but nothing in the right column. Testing again I put it just the code from the FAQ and Hello as HTML and my page looked exactly like my home page but just the word hello in the top of the center block. Simple code

//
<?php
include("../Xoops/mainfile.php");
$xoopsOption['show_rblock'] = 1;
include(XOOPS_ROOT_PATH."/header.php");
?>
//

//<table width="100%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td><div align="center">Hello</div></td>
</tr>
</table>
//
//
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>
//

Regardless of where the "$xoopsOption['show_rblock'] = 1;" is, or if it is taken out, it appears the same. It's driving me loony already...lol. But thanks again.



5
PatsRule
Re: Help With Custom Page
  • 2005/2/12 16:01

  • PatsRule

  • Just popping in

  • Posts: 37

  • Since: 2004/9/15


This must be a tough one. I searched more and figured this would "supposedly" add the right blocks to my page but that doesn't work either.

//
<?php
include("../Xoops/mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1; (added)
?>
//

The //'s are not in my code btw. Is there something else I need to change/include so this page calls on the show_rblock function?? This would help me a lot, as my static pages could now basically be a home page for separate content (IE: Different Sports), yet all the key core functions of what my site is about would be on all these pages. I use a lot of tables and to just insert my HTML/java/javascripts and have each page having the same structure would be so much easier for me to add content.

Thanks again.



6
PatsRule
Help With Custom Page
  • 2005/2/11 22:14

  • PatsRule

  • Just popping in

  • Posts: 37

  • Since: 2004/9/15


Hi All... Thank You in advance

I want to create what I call a 2'nd Home Page. It will mimic my Start Page except for the center block content. My problem is I can't get the right side blocks to appear. I've been searching through the FAQ's and did various searches but I'm either missing something or not understanding something. Here's what I have done so far:

I created a testing page called testpage.php, uploaded to the proper directory..actually my root which is called Xoops. Added a link in my main menu so I can see the changes which I was able to as I went along. Then used the following code to try and get it. All // are not in the code.

//<?php
include("../Xoops/mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
//

Then inserted the html code which came out great. My Header was perfect on top to my theme...The left side blocks (user menu, main menu, etc..) were there and it was perfectly the way I wanted it in the center of the page. But the right side blocks (Polls..Who's Online, etc.. ARE NOT THERE however.

Then //<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>//

What am I missing?? I've copied and pasted the HTML code from view source on the home and aligned it so it appeared right column and it looked exact, but the problem is it doesn't update accordingly doing it that way.

I also tried copying and pasting the HTML code in the same place from my theme rblock but all that did was give me the theme of my block look with this inside.

//<{$block.title}>//
//<{$block.content}>//

After 5 hours I decided to post so if the answer is here, I apologize because I can't find it or figure out something that was posted. It's probably something stupid but I'm about braindead right now. What am I missing??



7
PatsRule
Re: Could not insert forum post
  • 2005/2/10 6:31

  • PatsRule

  • Just popping in

  • Posts: 37

  • Since: 2004/9/15


Hi Shadow.. I had a few of my members tell me they had the same problem. I send them this. I don't remember where I got this from but it has worked for everyone (so far) who I sent it to. Hope it helps.

For security reasons, when you post a reply etc, the site checks that you have actually come from a page on the forum using what is called a HTTP_REFERER. This ensures that database entries can only come from the right page, and stops any external scripts (and would-be-if-they-could-be hackers)from entering info from souces OTHER than the forum reply page itself.

Unfortunately, some firewall and web filtering software, such as some versions of Zone Alarm, block HTTP_REFERER's by default.


# Disable WebWasher Standard Filter/URL Filter
# Disable any "ad blocking" software
# Disable any Pop-up blockers
----------------------------------------------------------
Zone Alarm Pro:

1. Click Privacy
2. Click Cookie Control
3. Click Custom
4. Uncheck "remove private header information"
----------------------------------------------------------
Windows XP's Internal Firewall

1. Open XP's Control Panel
2. Double-click Networking and Internet Connections
3. Select Network Connections
4. Right-click on the connection to disable, then select Properties
5. On the Advanced tab, clear the Protect my computer or network checkbox
6. Press OK
----------------------------------------------------------
Norton Internet Security 2002 (or earlier)

1. Open NIS or NPF.
2. Click Options.
3. Click Internet Security or Personal Firewall. (This step is not always needed.) The Options window appears.
4. Click Advanced Options.
5. Click the Web tab.
6. Click Add Site. A new site/domain box appears.
7. Enter the URL of the site and click OK. The site name now appears in the left frame of the Advanced Options window.
8. Click the name of the new site.
9. Click the Privacy tab.
10. Check the "Use these rules for..." box.
11. Change the Referrer from "Block" to "Permit."
12. Click Apply, and then click OK.
13. Click OK to close the Options window.
----------------------------------------------------------
Norton Internet Security 2003/2004

1. Open NIS or NPF.
2. Do one of the following.
* In NIS/NPF 2003, click Options > Internet Security or Personal Firewall (This step is not always needed), and then click the Web Content tab.
* In NIS/NPF 2004, double-click Privacy Control, and then click Advanced.
3. Click Add Site. A new site/domain box appears.
4. Enter the site URL and click OK. The site name now appears in the left frame of the Options window.
5. Click the name of the new site.
6. Click the Global Settings tab.
7. In the "Information about visited sites" section, clear "Use default settings."
8. Click Permit.
9. Click OK to close the Options window.
----------------------------------------------------------
Techincal Information about HTTP_REFERER's

(for the geeks who care)

When you click a Web page, your browser notes the current page that you are on and sends that information to the server of the new Web page. This way, the server for the new Web page knows the last Web page that you viewed.

For example, if you are on www.symantec.com and click www.microsoft.com , the browser sends www.microsoft.com the information that you are currently viewing www.symantec.com. If you block referrer information, the server of the page you are requesting to see does not know what page you saw last. By default, Norton Internet Security (NIS) and Norton Personal Firewall (NPF) block this information. Some Web sites require this information before they allow you to see their pages.



8
PatsRule
Re: Syntax error
  • 2005/2/2 1:02

  • PatsRule

  • Just popping in

  • Posts: 37

  • Since: 2004/9/15


Looking at your source code i see this.

<script language="JavaScript">
my_url="http://home-business-helpdesk.com";
my_name="Home-Business-Helpdesk.com";
function book_mark()
{if(document.all)window.external.addFavorite(my_url,my_name);}
//-->
</script>
<head>

Insert the javascript AFTER the <head> tag and before the closing</head> tag.



9
PatsRule
Is this possible in Xoops?
  • 2005/1/26 23:16

  • PatsRule

  • Just popping in

  • Posts: 37

  • Since: 2004/9/15


Hi.. I was wondering if this was possible. I want to make a few pages with the .php or if need be .htm extension accessible only to registered members. Since I use the Sections module for article content, there are no template files in the admin sections so I can edit to add code. To block links for anon to these articles if I put them on my home page, I add the session ID in the link. In admin templates I have only Forums, System, Members, Polls, and Downloads (not used at the moment).

The pages have a .js file as well as another javascript in the head part of these documents. It's a sorting script. I know I can add the the javascript point to the .js file in the head of the theme html file if need be, but the javasript will give me an error if i don't put the body direction to it in the theme.html. I don't want it appearing on all the pages. So the head part needs to contain this:

script language="JavaScript" src="location of my file in Xoops/sortable_table.js"></script> (left out the opening < in case it messed up the post page). This script creates the table. Another javascript with the data and variables needs to be under this one. Then the body script pointing to the data needs to be included which will point to that one.

I've fried my brain here trying to figure out how i can include this in my site and give only registered members access. I've had it in there using regular html pages and using a link but that gives all access to it.

Maybe I'm missing something obvious but I'm still learning all of this. Any suggestions?



10
PatsRule
Sorting and Xoops
  • 2005/1/25 1:02

  • PatsRule

  • Just popping in

  • Posts: 37

  • Since: 2004/9/15


Hi all. I hope this is the proper forum to post this. I've done google , yahoo, you name it searches for this type of program or script, but none have stated how it would perform in an XOOPS CMS. This is what I want to include in my site.

A page with full sort features. What this is is a rankings page. Sort by either rank, name, team, average, and 5 invidual rankings done by my staff. So essentially 9 columns of sorts. I have one using DHTML, but it works only with IE 5.5+ and 6.0+. And all data has to be entered manually and that will take eons for this, inserting it in a .js file. That won't cut it.

From what i know, I can create the database in Excel, save it as a .csv file. Export it to word and there it will put in tables. The problem doing it this way is that i have to create a page showing the result of each sort and include all in my site and link to them. The other problem is... I need this to appear only to a designated group, so it would have to be in a module in order to set it to that group only. Unless there is a way which I don't know yet to hide individual php pages from anon users. I have the Sections module, which sucks by the way because there is no template file in it to edit. So I guess another question is.....what is a good module to use that I can add content done with tables in the context box so the content appears at the top without manually eliminating the line breaks. I created a 25 row, 8 column table and there were at least 300 line breaks. That would make it times about 45 pages which doing it this way would mean. LOL.

So what I would like are suggestions on what program I could use to include this from anyone who has a sort page on their site. Also if there may be another way or a script that XOOPS will read properly and incorporate to do this function. I haven't been lazy and there are numerous php sort programs that i've researched out there. But I value the opinions of the members here and since it is being used with Xoops, I thought it best I seek advise here before purchasing one.

Thank you in advance.




TopTop
(1) 2 3 4 »



Login

Who's Online

235 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 235


more...

Donat-O-Meter

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

Latest GitHub Commits