1261
script_fu
Rss backendforums.php (Great Idea) Will newbb be able to handel it?

Found this lil tidbit over at e-xoops and nuke cops. Will newbb be able to handel this puppy?


_____________________________________________________

<?php

/************************************************************************/
/* RSS Feed for PHP-Nuke phpBB2 Forums */
/* =================================== */
/* */
/* Copyright (c) 2003 by Paul Laudanski (Zhen-Xjell) */
/* http://nukecops.com */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/* See a copy of the GPL licensed attached in the archive. */
/************************************************************************/

include("mainfile.php");

header("Content-Type: text/xml");
$result = sql_query("SELECT t.topic_id, t.topic_title FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=f.forum_id and f.auth_view=0 ORDER BY t.topic_last_post_id DESC LIMIT 10", $dbi);

if (!result) {
echo "An error occured";
} else {
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n\n";
echo "<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n";
echo " \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n";
echo "<rss version=\"0.91\">\n\n";
echo "<channel>\n";
echo "<title>".htmlspecialchars($sitename)."- Forums</title>\n";
echo "<link>$nukeurl</link>\n";
echo "<description>".htmlspecialchars($backend_title)."</description>\n";
echo "<language>$backend_language</language>\n\n";
for ($m=0; $m < sql_num_rows($result, $dbi); $m++) {
list($topic_id, $topic_title) = sql_fetch_row($result, $dbi);
echo "<item>\n";
echo "<title>".htmlspecialchars($topic_title)."</title>\n";
echo "<link>$nukeurl/postt$topic_id.html</link>\n";
echo "</item>\n\n";
}
echo "</channel>\n";
echo "</rss>";
}

?>
_____________________________________________________


http://nukecops.com/forums.html

This is smokin...



1262
script_fu
Re: How can I change xoopheadline logo size

Lol... Your right im not changeing the correct file for the image. AFAIK I can't find the correct file to change... Any wisdom on which one don?



1263
script_fu
Re: Avatar problems need to assign a default...

Also a lil note. I changed the blank.gif in the uploads folder to an avatar with a bag over its head on some of my other sites. I just renamed the picture avatar blank.gif and uploaded to uploads. Now what happened was the webmasters avatar was changed to that blank.gif

Members and Top posters stayed blank... Now what do I need to change to have the whole system use one avatar.

I wish the avatar system was still intact. I didn't care if the download was a lil bit more. This is alot of work and a pain in the arse to mess with on each site. The avatar system was fine in 2.0.2 what was the reason for ripping it out? Can the XOOPS team put back the system please...



1264
script_fu
Re: How can I change xoopheadline logo size

Thank you for your post but it did not solve my problem.
The image I need to correct is by default 148x80 not 88x31. I looked in the file you talked about but thats not the correct location I need to edit... Let me explain again.
I have headlines installed and reciving a rss news feed from one of my other sites. I have the grafics turned on and am reciving the default XOOPS logo.gif from the other site. This logo.gif is located in images. Now I've all ready changed the grafic to something different but the size of the grafic is different than the stock XOOPS one. I need to mod the file that pulls the grafic from the other site in order to display the grafic correctly in the headlines module installed and viewable on my front page.



1265
script_fu
Re: Avatar problems need to assign a default...

Table xoops_users has been altered.

SQL-query : [Edit] [Create PHP Code]
ALTER TABLE `xoops_users` CHANGE `user_avatar` `user_avatar` VARCHAR( 30 ) DEFAULT 'savt3fdce6a2ad590.gif' NOT NULL


Structure
Browse
SQL
Select
Insert
Export
Operations
Empty
Drop



Field Type Attributes Null Default Extra Action
uid mediumint(8) UNSIGNED No auto_increment Change Drop Primary Index Unique Fulltext
name varchar(60) No Change Drop Primary Index Unique Fulltext
uname varchar(25) No Change Drop Primary Index Unique Fulltext
email varchar(60) No Change Drop Primary Index Unique Fulltext
url varchar(100) No Change Drop Primary Index Unique Fulltext
user_avatar varchar(30) No savt3fdce6a2ad590.gif Change Drop Primary Index Unique Fulltext



1266
script_fu
Avatar default. How to change in the database????

<Quote> By marktwain
Re: Is there a User Registration Template somewhere?
The easiest way to set a default timezone and avatar at registration is go into your MySQL database ("Users" table) using phpMyAdmin or some other MySQL management program, and set those defaults.

For example, change the default value in the "user_avatar" field to "youravatar.gif" (your avatar image file name) and then make sure you have that image file in your uploads folder. Change the default value in the "timezone_offset" field to -5.0 or +2.0 or whatever you want the offset to be.

Then, whenever someone registers, those default values will automatically get inserted into that users record.</quote>


I tryied this and I found blank.gif in the xoops_users table in phpMyAdmin. I changed the blank.gif to another picture in the uploads folder and saved in phpMyAdmin and nothin happened??? Can anyone else hepl on this...



1267
script_fu
How can I change xoopheadline logo size

I dont like the size of the headlines logo when displayed on a rss news feed to one of my other sites. Anyone know how to change the height and width of this grafic located in the images folder? I tryied to mod the grafic and that didn't work it just streches the grafic back to 148x80.



1268
script_fu
Re: 3 Different Dotcoms (One) Database...

Thanks for the encouragement don! Dup sites are not what I want but still neat. Can I ask you a question... What were you useing to pull of multiple sites with one back end? Im trying to learn this. I need just a lil nudge in the right direction...
__________________________________________

BTW love the subaru's



1269
script_fu
Re: 3 Different Dotcoms (One) Database...

If you mod the mainfile to another sites data base it pulls all the content period. I would click one thing on one site just to find the same thing checked on the other... Wild...



1270
script_fu
Re: 3 Different Dotcoms (One) Database...

This works... Dup sites across the board...

If all you want to do is have 3 domains and share ALL info on all 3 sites, then you install them all, and edit the mainfiles to match the database info exactly (so they all share one database, AND prefix). I'm not sure what needs to be done at one site, and what is done on all 3 (avatars are uploaded to the domain's /uploads folder, so you can't share those cross-site, for instance), but it should get you a looong way...




TopTop
« 1 ... 124 125 126 (127) 128 129 130 ... 133 »