News Bulletin - RSS feed generator, News Bulletin, News Manager... - Page 3 News Bulletin - RSS feed generator, News Bulletin, News Manager... - Page 3
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

News Bulletin - RSS feed generator, News Bulletin, News Manager...

Started by just_some_guy, November 11, 2007, 06:08:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DaBe

hello

ist there possible: the news use the comment system from the coppermine-gallery?


pls help.

just_some_guy

I don't really understand what you mean. An interface for writing news articles is created by the plugin.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

DaBe

yes..but a comment system like a blog was nice.

the user than can write comment to the news.

just_some_guy

Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

.andrew

Hi, I have one small problem.Could you please make a lite version of the box that comes into the index, so in won't be expandable, and it would contain only 5 news, but only title and date, without that part of the news.
Thanks again.

P.s:sry fot my bad english  :(

just_some_guy

Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

.andrew

Ok thank you were much  :).
oh and if someone could tell me what I have to write in the index.php it would be great ;D
thanks again  :D

DaBe

hello..

is that compatible with the stramm modpack ?

because I have a critical error, when I want install

just_some_guy

Yes it is compatible, i have the modpack installed and working fine as you can see on my site.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

just_some_guy

Can you turn on debug mode and provide the proper error, thanks.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

just_some_guy

Quote from: .andrew on January 03, 2008, 05:14:19 PM
Hi, I have one small problem.Could you please make a lite version of the box that comes into the index, so in won't be expandable, and it would contain only 5 news, but only title and date, without that part of the news.
Thanks again.

P.s:sry fot my bad english  :(

news.php

Find



$sql ="SELECT * FROM cpg1411_plugin_news  WHERE active=1 ORDER BY date DESC";


Replace with



$sql ="SELECT * FROM cpg1411_plugin_news  WHERE active=1 ORDER BY date DESC LIMIT 5";



Find


<tr>
                        <td align="left" class="tableh2" colspan="3" onclick="show_section('section')">
                                <span onclick="show_section('section')" style="cursor:pointer" align="left"><a href="javascript:expand();"><img src="images/descending.gif" border="0" width="9" height="9" alt="" title="{$lang_admin_php['click_expand']}" /> <b>News</b></span><a/>
                        </td>


Replace With


  <tr>
                        <td align="left" class="tableh2" colspan="3"">
                                <span align="left"><b>News</b></span>
                        </td>


Find and Remove


<script type="text/javascript">
function expand()
{
        var Nodes = document.getElementsByTagName("table")
        var max = Nodes.length
        for(var i = 0;i < max;i++) {
                var nodeObj = Nodes.item(i)
                var str = nodeObj.id
                if (str.match("section")) {
                        nodeObj.style.display = 'block';
                }
        }
}

</script>


Find and Remove


<script type="text/javascript">
        onload = hideall;
</script>


Find and Remove


echo '<tr>';
echo '<td align="left">';
echo  $row["value"] ,"<br />";
echo '</td>';
echo '</td>';
echo '<br/>';
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

dke

Hmm i installed this plugin and it does not appear anywhere, not sure whats wrong, probably something in my template.html? i have more custom stuff installed

just_some_guy

Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

dke

hmmm im pretty sure i did add /news in that secion, ill check once again when i get home.

.andrew

Thank you very much just_some_guy , I'll try that :D

Later edit:It works!!  :oThank you very much :D :) ;D

.andrew

just_some_guy, could you please make am V3 that will contain a news.php page where users can see all the news and comment them?But only if you have time, and you want to. Thanks :)

just_some_guy

I have started work on a blog plugin/mod for coppermine, so watch this space.  ;D
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

jimh

A blog is what I'm after. So thanks in advance for the work you're doing!

Jim

rascalli

would it be possible to have the news items aligned on the left ?

As now I see them in the middle.

Also , how can I delete the hide function ? Already have it to show , but would like it to have it shown always

And last but not least , how can I post links to new photo categories ?

just_some_guy

Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums