• [Mod] Latest News and Archive 5 0 5 1
Currently:  

Author Topic: [Mod] Latest News and Archive  (Read 182994 times)

0 Members and 2 Guests are viewing this topic.

Offline karimun

  • Newbie
  • *
  • Posts: 49
    • View Profile
    • http://www.at6pm.com
Re: [Mod] Latest News and Archive
« Reply #60 on: July 25, 2005, 02:01:03 AM »
TheOracle, thank you for the quick answer, but:
in my index.php there is no code to replace which fits to the one(s) you mentioned above.  :?:

I also checked the original code posted on page one of this MOD .. there is no such code.

TheOracle

  • Guest
Re: [Mod] Latest News and Archive
« Reply #61 on: July 25, 2005, 02:17:08 AM »
Woops. My apologize. I thought it was the same MOD as this one :

http://www.4homepages.de/forum/index.php?topic=6787.msg29663#msg29663

I found it more easy to customize than this actual topic. However, it does look interesting to customize as well. ;)

Offline karimun

  • Newbie
  • *
  • Posts: 49
    • View Profile
    • http://www.at6pm.com
Re: [Mod] Latest News and Archive
« Reply #62 on: July 25, 2005, 12:30:26 PM »
TheOracle, the other news MOD has too many replies crying for help - so I have not tried it.
Is anybody able to modify this news MOD ? For sure the modification can be used on several other sites, too.

 

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #63 on: July 25, 2005, 01:19:45 PM »
Is there a way of only displaying the title when visitors are logged out and when they log in to show the full post?
I use this MOD at a site where confidential data gets posted in the news section. It would be great to hide the actual news block from non-members ..

according to this example : here ...
take this for your news_comment_bit.html ... :

Code: [Select]
<tr>
<td class="row2" ><div align="right"><small>(Date Posted: {news_comment_date})</small></div><b>Headline: {news_comment_headline}</b></td>
</tr>
{if user_loggedin}
<tr>
<td class="row1" align="left">{news_comment_text}</td>
</tr>
{endif user_loggedin}

untested ... but should work ...  :wink:

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

TheOracle

  • Guest
Re: [Mod] Latest News and Archive
« Reply #64 on: July 25, 2005, 01:43:00 PM »
Quote

I have not tried it.


It's worth it. ;)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #65 on: July 25, 2005, 03:45:51 PM »
@ TheOracle , @ karimun ... and @ all ...  :wink:

now it is tested ... it works absolutely perfectly and as desired ...   :mrgreen:

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline karimun

  • Newbie
  • *
  • Posts: 49
    • View Profile
    • http://www.at6pm.com
Re: [Mod] Latest News and Archive
« Reply #66 on: July 25, 2005, 09:40:25 PM »
That simple. Thanks a lot guys.

Offline IzyB

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • OmNamaste
Re: [Mod] Latest News and Archive
« Reply #67 on: August 07, 2005, 05:02:57 AM »
Quote
Step 1.  Create simple image to be used to as your Latest_news image as you would any other image.
You can use this one if you want http://www.newman.d2g.com/Code_help_files/Latest_News.jpg

His page has been down for quite some time and I was wondering if someone could post an image for me as an example? Thanks!
Namaste,
Tina

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Latest News and Archive
« Reply #68 on: August 07, 2005, 08:40:17 PM »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline IzyB

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • OmNamaste
Re: [Mod] Latest News and Archive
« Reply #69 on: August 12, 2005, 12:57:31 AM »
I want my "latest news" table to have the same feel as my "categories" table. Can someone tell me what the code would be in home.html? I've tried and it's not working. I'm sure it's just some minor things I am missing. But here is the code to my "categories" table located in my home.html. So how would I modify this so that it will be the actual latest news table?

Code: [Select]
<table border="0" cellpadding="0" cellspacing="0" class="ttb">
<tr>
<td><img src="{template_url}/images/tt12_l.gif" width="10" height="12" alt="" /></td>
<td class="tt12bkg"><img src="{template_url}/images/spacer.gif" width="200" height="12" alt="" /></td>
<td><img src="{template_url}/images/tt12_r.gif" width="10" height="12" alt="" /></td>
</tr>
</table>

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat">{lang_categories}</td>
</tr>

<tr>
<td class="row1" width="100%">
{categories}
</td>
</tr>

</table>

<table border="0" cellpadding="0" cellspacing="0" class="ttb">
<tr>
<td><img src="{template_url}/images/tb12_l.gif" width="10" height="12" alt="" /></td>
<td class="tb12bkg"><img src="{template_url}/images/spacer.gif" width="200" height="12" alt="" /></td>
<td><img src="{template_url}/images/tb12_r.gif" width="10" height="12" alt="" /></td>
</tr>
</table>
Namaste,
Tina

Offline Tusnelda99

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #70 on: August 22, 2005, 04:22:10 PM »
Hello,

i have also a question.
What must i do that i can display the news not on my index-side (home.html) like here but on a extra side (for example with index.php?template=news).

I made a copy from home.html and rename it to news.html (add the code from this mod inside) but this is not working??!!

Could anybody help me??

Big Thanx Tusnelda

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #71 on: August 22, 2005, 06:15:45 PM »
hi Tusnelda99,

in your home.html don't use (Step 10) :
Code: [Select]
{news_comments}

use in your template (e.g. home.html, menue .... ) as link to your News :
Code: [Select]
<a href="./index.php?newstype=latestnewsall">News</a>

that's all ...  :wink:

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Tusnelda99

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #72 on: August 23, 2005, 11:18:24 AM »
Hi mawenzi,

thanks for the answer but this is not really what i want. Because with this code the user see only the archive side of the news but i want that he/ she could first see a side a la "weblog" with 3-5 news and in one corner is the link to the next side - the archive !!!

did you have any answer to this problem??

Thanks Tusnelda

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #73 on: August 23, 2005, 03:15:09 PM »
hi Tusnelda99,

ok, than this :

1. create a news.php like index.php but only with the "Latest and Archive News - Code " and on the top with :
Code: [Select]
$templates_used = 'news,news_comment_bit';
$main_template = 'news';
...
and replace :
Code: [Select]
$link_arg = $site_sess->url(ROOT_PATH."index.php?newstype=latestnewsall");
with this:
Code: [Select]
$link_arg = $site_sess->url(ROOT_PATH."news.php?newstype=latestnewsall");

and on the bottom you need from index.php :
Code: [Select]
//--- Print Out ----
...
don't forget to add this to the News-Code ... :wink: ... ( e.g. 3 NEWS in news.php and 10 NEWS/page in archive )

2. create a news.html like home.html but only with the "Latest and Archive News - Code " :
Code: [Select]
{news_comments}

3. in inludes/page_header.php add after:
Code: [Select]
"url_home" => $site_sess->url(ROOT_PATH."index.php"),
this :
Code: [Select]
"url_news" => $site_sess->url(ROOT_PATH."news.php"),

4. now you can use in your templates as link to your NEWS :
Code: [Select]
<a href="{url_news}">News</a>

for example it works here ...  :wink: ... the rest is work on template.
mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Tusnelda99

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #74 on: August 25, 2005, 11:50:24 AM »
@ mawenzi

thank you very much  :wink: It works fine!!!!

cu Tusnelda