Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Chris

Pages: 1 [2] 3 4 5 6 ... 91
16
That very well could be and I can only suggest that you carefully check your code for both mods.  There is never any gaurantee that 2 mods will work together and if you are not a programmer it may not be possible to locate a conflict and figure out how to fix it if it exists.  Good luck.

18
Mods & Plugins (Releases & Support) / Re: [MOD] RSS Feed 0.1
« on: June 04, 2005, 01:11:47 AM »
Originally posted by ptitpierre
That's fine, but when I am not logged in and when I select a picture which is in a private category (I mean you must be logged in to see the pic) I have the Index page.

Is there a possibility to have différent RSS feeds according to the user logged in (or not logged in for visitors) ?

Thanks in advance !

Pierre

Originally posted by nette
Parse error: parse error, unexpected T_STRING in /home/electrii/public_html/gallery/includes/template.php(101) : eval()'d code on line 1


http://ataraxy.net/~electrii/gallery/rss.php

if someone could help me out I would be grateful

---

Hmm I think it's funny how I posted under the correct forum to get help for this mod the first time and I never got a response so I posted somewhere else thinking maybe no one read this one and I get this

http://www.4homepages.de/forum/viewtopic.php?t=3914
#5 from one of the moderators.

Now I am posting back under the same original thread for the mod and still no reply. Doesn't make any sense to me.

Originally posted by falti
It was a quick and dirty hack. I thought someone could use it, modify it whatever. I am currently busy and cannot give support. I also have the problem that the hack works fine at my 4images version (4images 1.7) so why don't you look at /home/electrii/public_html/gallery/includes/template.php(101) : eval()'d code on line 1
and try to fix it by yourself?

Originally posted by graficalicus
just a little help needed for this - which is working well, BTW - but one issue:

If a user uploads an image, and in their comments about the image they include a URL or a " ' " character (like "it's" or "your's" or 'look out below!' ) it craps out the RSS feed -

I need a stripslashes kind of command - but I'm not sure where to place it - so these characters don't interrupt the feed -

this is the complete rss.php file:
Code: [Select]
<?
/*************************************************
 * RSS Feed for 4images                          *
 * beta 0.1                                      *
 * Email:
 */

//------------ CONFIG ----------------------------

$num_new_images = 10;
/*
 u can uncomment this, if you want to use config variables from 4images config
 $num_new_images = $config['image_cells'];
*/

//because we have no session here, we have to hardcode this values
define('SCRIPT_URL', 'http://digiart.graficalicus.com'); //no trailing slash
define('LANGUAGE', 'en-us');

define('ROOT_PATH', './');

//----- END CONFIG--------------------------------------------

include(ROOT_PATH.'global.php');
$main_template = 'rss';



$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, c.cat_name
        FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id
        ORDER BY i.image_date DESC
        LIMIT $num_new_images";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);
$format="Y-m-d\TH:i:s+00:00"; //the time format for rss date
while($image_row = $site_db->fetch_array($result)){
  $site_template->register_vars(array(
                  "title" => $image_row["image_name"],             
                  "description" => $image_row["image_description"],
                  "category_domain" => SCRIPT_URL."/categories.php?cat_id=".$image_row["cat_id"],
                  "category" => $image_row["cat_name"],
                  "link" => SCRIPT_URL."/details.php?image_id=".$image_row["image_id"],
                  "date" => format_date($format,$image_row["image_date"]),
                  ));
  $new_images.=$site_template->parse_template("rssitem");
 }

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(
               array(
                "ctitle" => $config['site_name'],
                "clink" => SCRIPT_URL,
                "cdescription" => $config['site_name']." Last 5 images",
                "language" =>LANGUAGE,
                "ititle" =>"digiart galleries at the graficalicus workshop",               
                "iurl" => SCRIPT_URL."/digiart-graf_banner.gif",
                "ilink" => SCRIPT_URL,
                "items" => $new_images,             
                )
               );
header("Content-type: text/xml");
$site_template->print_template($site_template->parse_template($main_template));
?>


thanks in advance -

Originally posted by falti
"description" => stripslashes($image_row["image_description"])

this should work (not tested).

Originally posted by V@no
I dont know exactly how all this RSS works, but would it be a problem if someone use < and > signs in the description (url html link)?
if so, u'll probably need to replace them with &lt; and &gt;
As of the appostrophe, why would it give any problems if RSS uses tags simular to HTML? just curious.
I dont know exactly how all this RSS works, but would it be a problem if someone use < and > signs in the description (url html link)?
if so, u'll probably need to replace them with &lt; and &gt;
As of the appostrophe, why would it give any problems if RSS uses tags simular to HTML? just curious.

Originally posted by AntiNSA2
his mod works great for me in opera.... I wanted to add one thing

open up header.html and add this
Code: [Select]
<link rel="alternate" type="application/rss+xml" title="TheCenterOfTheNet All Lives Stills Newest Images Feed" href="http://www.thecenterofthenet.com/4images/rss.php" />to get an RSS button to appear in opera/fav browser......

But my request would be if you could modify this mod ...

Some people use different templates for different categories.... it would nice to beable to place this within category specific template that way the user could only select feeds from the categories they are interested in in addition to the newest images for the whole database.

Thanks!

19
Mods & Plugins (Releases & Support) / [MOD] RSS Feed 0.1
« on: June 04, 2005, 01:06:09 AM »
Originally posted by falti.  This is being restored from saved search engine cache pages

Installation:
1. Open rss.php and modify CONFIG values.
2. Upload rss.php to 4images root directory. Upload rss.html and rssitem.html to your template directory (i.e. templates/yourtemplate/).
3. Modify your template that user have a link to rss.php. Or simply upload the modified footer.html to your templates folder.

Notes:
Currently there is no check if a user is allowed to view an image presented via rss. This is due to the fact, that a user reading the rss feed is not logged in to the 4images system. If you find a solution for this problem feel free to modify the script and let me know how you made it.
If most of your categories are open for unregistered users then you can use a sql statement similar to index.php.

20
No there isn't, sorry.

21
Mods & Plugins (Releases & Support) / Re: Tell a friend
« on: June 02, 2005, 04:32:49 AM »
Editing the original post is DEFINITELY the thing to do :!:

22
Fatal error: Call to undefined function: read_cookie_data()
This is a function that is part of 4images already and it can be found inside includes/sessions.php

Either you have modified that file, unlikely, or you have missed a ; or ) or { } somewhere and this has thrown off the PHP parser.  Recheck your code very carefully, restore your clean backup files and try installing the mod again.

23
megalomania is able to upload the WMV file but doesn't want the default, media icon.  Instead they want to upload their own thumbnail along with the WMV file.  This is actually a mod request.

24
Discussion & Troubleshooting / Re: 1920 pixels - too big to resize ?
« on: June 01, 2005, 03:00:32 AM »
What is the file size in either Kb or Mb for the problem images?  Not the pixel dimensions, the size on disk.

25
Discussion & Troubleshooting / Re: Two 4images on same host
« on: June 01, 2005, 02:43:22 AM »
But it seems two of the top people here that I respect immensely disagree.

I don't think anyone actually disagreed, there was some confusion at first but in the end we all reached the same conclusion.  V@no has restated that here.

Best wishes

26
Chit Chat / Re: My style - rsphotos
« on: June 01, 2005, 02:27:28 AM »
Wow.  Now your site looks really cool  ;)

My one suggestion would be to center your outer layout table.  People with high resolution monitors will find your pages all scrunched up to one side which can be annoying.

27
Thanks.  I've made this a published bug fix: http://www.4homepages.de/forum/index.php?topic=8202.msg37767

28
In admin/settings.php, the anchors are incorrectly coded with a "#" preceeding the anchor target name,
Code: [Select]
<a name="#setting_group_1">... HTML ...</a>
It really should be:
Code: [Select]
<a name="setting_group_1">... HTML ...</a>The named target anchor should be without the "#" character, whereas the JUMP to the local target anchor does require the "#" character:
Code: [Select]
<a href="#setting_group_1">
As an anchor, the code between the <a name="TheAnchorName"> and </a> is meaningless and has no bearing on the anchor. What is required is the complete anchor with the closing tag. <a name="TheAnchorName"></a>

When the anchor is coded with the "#", the problem is not apparent in IE (lax interpretation of HTML); BUT it is apparent in other browsers such as Netscape and Mozilla. In Netscape and Mozilla, there is NO local target anchor if it is incorrectly defined using a "#" as in
Code: [Select]
<a name="#TheAnchorName"></a>

To fix these text links, open admin/settings.php and locate these lines:
Code: [Select]
  show_table_separator($setting_group[1], 2, "#setting_group_1");
  show_table_separator($setting_group[2], 2, "#setting_group_2");
  show_table_separator($setting_group[3], 2, "#setting_group_3");
  show_table_separator($setting_group[4], 2, "#setting_group_4");
  show_table_separator($setting_group[5], 2, "#setting_group_5");
  show_table_separator($setting_group[6], 2, "#setting_group_6");
  show_table_separator($setting_group[7], 2, "#setting_group_7");
and simply remove the # character

Credit goes to twmm for posting the issue: http://www.4homepages.de/forum/index.php?topic=3300.0

29
Thank you for the explanation.  Now I understand what's going on.  I'll update the original post with the patch that fixes this

Please test it though as I just don't have the time to do so tonight.

30
Not really.  4images is an image gallery and just is not built to be a link farm.  Therefore any "upload" requires an actual image and not just a link

Pages: 1 [2] 3 4 5 6 ... 91