PDA

View Full Version : Forum Home Enhancements - FA Latest Announcements


Farjad
11-24-2006, 10:00 PM
What is this for?
This hack is mainly made for showing announcements on forumhome.

----------
Main purpose of this was just to show announcements to my users as they barely go in Announcements sections.. so I made this hack and now deciding to release this here.

If you use this hack do click install



Updates:
v1.0.1
- Added Sticky option

v1.0.0
- Updated Template Problem
- Updated Table Prefix Problem

coolnikin
11-25-2006, 04:26 PM
Nice addon :) Installed !

Veer
11-25-2006, 05:54 PM
Installed...

But getting database error:

Database error in vBulletin 3.6.0:

Invalid SQL:
SELECT * FROM icon WHERE iconid = '0' LIMIT 1;

MySQL Error : Table 'site_community.icon' doesn't exist
Error Number : 1146
Date : Saturday, November 25th 2006 @ 02:52:11 PM
Script : http://www.site.com/index.php
Referrer : http://www.site.com/admincp/index.php?do=head
IP Address :
Username :
Classname : vb_database

Farjad
11-25-2006, 06:06 PM
Installed...

But getting database error:
Updated... Missed the table prefix in the query.

Veer
11-25-2006, 06:40 PM
Updated... Missed the table prefix in the query.
Thanks for update, its working now :)

Veer
11-25-2006, 06:51 PM
Please Look at screen shot bellow:

56581

The Silver image is "cat_head_bg.gif"
and The Blue image is "cat_title_bg2.gif"

I want to put the silver image where the arrow... how to do?
My Skin is working fine, but only here is i fond problem.

Thanks :)

Farjad
11-25-2006, 07:06 PM
Please Look at screen shot bellow:

56581

The Silver image is "cat_head_bg.gif"
and The Blue image is "cat_title_bg2.gif"

I want to put the silver image where the arrow... how to do?
My Skin is working fine, but only here is i fond problem.

Thanks :)
Can you PM me your site url.. ill tell you what to change in the template then onwards.

Veer
11-25-2006, 07:11 PM
Can you PM me your site url.. ill tell you what to change in the template then onwards.
PM sent to you :)

Farjad
11-25-2006, 07:18 PM
PM sent to you :)
PM sent :)

Veer
11-25-2006, 07:32 PM
PM sent :)
Thanks Bro,

Now the announcement is looking very nice :)

Thanks a lot.

Farjad
11-25-2006, 07:36 PM
Thanks Bro,

Now the announcement is looking very nice :)

Thanks a lot.
No Problem :)

sunnycher
11-26-2006, 11:45 AM
I've installed this, running 3.6.4 and I don't see it on my forumhome.
Any ideas?

sunnycher
11-26-2006, 11:47 AM
you IMPORT The product? Or UPLOAD the product?

Farjad
11-26-2006, 02:17 PM
you IMPORT The product? Or UPLOAD the product?
You would IMPORT the product just like any other...and then do the TEMPLATE edits and then go in VBOPTIONS and fix those settings there.

o0Hubba0o
11-26-2006, 07:42 PM
Can you PM me your site url.. ill tell you what to change in the template then onwards.

PM sent to you :)

PM sent :)

Thanks Bro,

Now the announcement is looking very nice :)

Thanks a lot.

Lol, you don't post saying pm sent, it defeats the purpose of pm's and is usually considered spam by most sites. Also why not post the problem and the fix in case other members are having similiar issues, it might help them solve it without going the whole pm process.

Farjad
11-26-2006, 07:44 PM
Lol, you don't post saying pm sent, it defeats the purpose of pm's and is usually considered spam by most sites. Also why not post the problem and the fix in case other members are having similiar issues, it might help them solve it without going the whole pm process.
Yep, the product was updated..

Kadi
11-27-2006, 04:36 AM
I imported the xml and editted the template and activited it but it hasn't appeared.

There is only one template edit, isnt there?

Farjad
11-28-2006, 01:14 AM
^^Yes...:confused: ..Should appear......you checked the vboptions?

Kadi
11-28-2006, 12:22 PM
yes I did. nothing appeared.

I've uninstalled and will try again later. Great hack though. I really could use it.

yui333
11-28-2006, 02:08 PM
I've noticed if your forum ID had 3 digits (i.e. above 99) then this would not work.. :(

My announcements forum ID was above 100 and it did not work..

It worked with other forums though which their IDs digits less than 3..

Can this be fixed?

Farjad
11-28-2006, 10:05 PM
I've noticed if your forum ID had 3 digits (i.e. above 99) then this would not work.. :(

My announcements forum ID was above 100 and it did not work..

It worked with other forums though which their IDs digits less than 3..

Can this be fixed?
Hmm..are you sure?? You get any sql error etc?

yui333
11-29-2006, 12:37 AM
Ops! Sorry, I forgot to say THANK YOU in the begining.. So here it is, although it is late.. THANK YOU.

Ok, now to our topic..

No, none of SQL errors occurred.. everything was fine.

I tried with all my forums, and it worked so well..

But, when I added a 3-digits number as a forum ID, it would not work at all.

I thought maybe my announcement forum was impaired (stupid idea), but I deleted it :D and opened a new one.. and the same problem occurred, nothing is shown, as my forum ID is above 99.

I added new posts as an attempt, so might it work.. but nothing :(

I tried IDs such as 14, 46, and 49, and they worked great.

Any idea about what's going on with this hack?

ninjamaster
11-29-2006, 09:00 AM
thanks for this :) i will install it later:)

Farjad
11-30-2006, 12:31 AM
Ops! Sorry, I forgot to say THANK YOU in the begining.. So here it is, although it is late.. THANK YOU.

Ok, now to our topic..

No, none of SQL errors occurred.. everything was fine.

I tried with all my forums, and it worked so well..

But, when I added a 3-digits number as a forum ID, it would not work at all.

I thought maybe my announcement forum was impaired (stupid idea), but I deleted it :D and opened a new one.. and the same problem occurred, nothing is shown, as my forum ID is above 99.

I added new posts as an attempt, so might it work.. but nothing :(

I tried IDs such as 14, 46, and 49, and they worked great.

Any idea about what's going on with this hack?
Ahh.. i think i know why, is there any sticky in the announcement forum?

yui333
11-30-2006, 01:17 AM
lol :D guess what!! It works so well now..

I have no sticky threads in the announcement forum, and when I've imported your updated version it has not worked.. I've almost despaired of it.

Yet, my other forums have stickies, but the hack has worked with them!

I just tried my last attempt and chose NO from "Sticky only?" options, and guess what!! It has worked so well :)

Now everything is fine.. and I have clicked INSTALL

Thanks

And I have a question..

How can I colour the annoucement threads titles in this hack?.. I think if they are red, they will look nicer..

And the word "Announcement", can it be on the middle instead of being on the left?

Farjad
11-30-2006, 08:37 PM
lol :D guess what!! It works so well now..

I have no sticky threads in the announcement forum, and when I've imported your updated version it has not worked.. I've almost despaired of it.

Yet, my other forums have stickies, but the hack has worked with them!

I just tried my last attempt and chose NO from "Sticky only?" options, and guess what!! It has worked so well :)

Now everything is fine.. and I have clicked INSTALL

Thanks

And I have a question..

How can I colour the annoucement threads titles in this hack?.. I think if they are red, they will look nicer..

And the word "Announcement", can it be on the middle instead of being on the left?
You can edit the forumhome_la template :)

asj
11-30-2006, 11:05 PM
Thanks

MustangLisa
12-01-2006, 01:49 AM
Nice, thanks!!

yui333
12-01-2006, 02:03 AM
You can edit the forumhome_la template :)
Thanks.. done!

MimeSong Erk
12-03-2006, 07:06 AM
I really like this plug, and have skinned it to be a lot more concise - I'd be willing to share if anyone is interested, it is not complex. You can see at www.rmxp.org

I have a question about how the topics in the FA block are ordered. On my forum as I post this, the 3 latest announcements are:
No October backup.
Dragon Kid Image Dump
RMXP.org's downtime: The whole story
in that order. However, the chronological order of which has the most recent posts is:
Dragon Kid Image Dump
No October backup.
RMXP.org's downtime: The whole story
Why is the FA bit not updating as fast as the forum listing itself?

yui333
12-03-2006, 07:52 AM
I really like this plug, and have skinned it to be a lot more concise - I'd be willing to share if anyone is interested, it is not complex. You can see at www.rmxp.org

I have a question about how the topics in the FA block are ordered. On my forum as I post this, the 3 latest announcements are:
No October backup.
Dragon Kid Image Dump
RMXP.org's downtime: The whole story
in that order. However, the chronological order of which has the most recent posts is:
Dragon Kid Image Dump
No October backup.
RMXP.org's downtime: The whole story
Why is the FA bit not updating as fast as the forum listing itself?
Nice modification! Can you let us try it?.. Thanks

MrPHD
12-03-2006, 10:24 AM
Nice Hack, Great job. Thanks

Kadi
12-03-2006, 11:18 AM
Hi,

I reinstalled and its working fine now. Thanks. :)

Qs:

I need the thread/thread starter column to be aligned to the right. (Arabic forum). How do I do that?

How do i center the title?

I looked up the words in the phrase manager to translate them but couldn't find them. Thats how I always translate hacks. Am I missing something?

Sorry about the many questions.

Thank you.

MimeSong Erk
12-03-2006, 12:06 PM
Nice modification! Can you let us try it?.. Thanks

Hi Yui. The mod is pretty simple. You will have to interpret this a little: I hard-coded some of the templates since I know my announcement forum is not going to change; this saves a query or two, for what it's worth.
forumhome_la
</table>
<DIV class="announcementbox">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="thead" colspan="3">
<a href='forumdisplay.php?f=2' class="forumtitle" style="font-size: 130%; font-stretch:wider"><span class="smallfont" style="float:right;margin-top:3px">Click here to see all announcements</span>Latest Announcements!</a>
</td>
</tr>
</tbody>
<tbody>
$latest_announce_thread_bit
</tbody>
<tbody>
<tr>
<td class="thead" colspan="3">
<a href='faq.php#faq_subscriptions' class="smallfont" style="float:right;margin-top:3px">Subscriptions and Sponsorships</a>
<a href='http://rw.rmxp.org/index.php?title=rules' class="forumtitle" style="font-size: 130%; font-stretch:wider">Rules and Guidelines</a>
</td>
</tr>
</tbody>
</table></div><br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">Links will have to be tweaked to suit.


forumhome_la_threads
<tr>
<td class="tcat" style="font-size:90%" align="left" width="70%">

<span class="smallfont" style="float:right"><span style="cursor:pointer" onclick="window.open('member.php?u=$latest_announce_thread[postuserid]')">posted by $latest_announce_thread[postusername]</span></span>

<a href="showthread.php?t=$latest_announce_thread[threadid]" style="font-weight: bold; text-decoration: underline;">$latest_announce_thread[title]</a>
</td>
<td class="alt1Active" align="left">
<center class="smallfont">Last post by <a href="member.php?find=lastposter&t=$latest_announce_thread[threadid]">$latest_announce_thread[lastposter]</a></center>
</td>
<td class="alt1Active" align="left">
<center class="smallfont">$latest_announce_thread[replycount] replies</center>
</td>
</tr>

And in Main CSS add this to the Additional CSS Definitions: (for the main skin you see on my forum default)
/* ***** style of box that contains latest announcements ***** */
.announcementbox{
padding:5px;
margin:0px;
border:solid #90e;
border-width:1px;
background-attachment: fixed;
background-image: url("[whatever the background image of your forum is]");
background-repeat: repeat;
}

You will have to play with this to make it look right on your forum, I imagine, but it should get you started.

yui333
12-03-2006, 03:04 PM
Thank you MimeSong Erk for sharing this with us.

It did not work so well with my style, so I think I have to modify your code to suit my style!

But honestly, your idea is nice.. I hope I will fix it soon.

Farjad
12-05-2006, 12:49 AM
I really like this plug, and have skinned it to be a lot more concise - I'd be willing to share if anyone is interested, it is not complex. You can see at www.rmxp.org

I have a question about how the topics in the FA block are ordered. On my forum as I post this, the 3 latest announcements are:
No October backup.
Dragon Kid Image Dump
RMXP.org's downtime: The whole story
in that order. However, the chronological order of which has the most recent posts is:
Dragon Kid Image Dump
No October backup.
RMXP.org's downtime: The whole story
Why is the FA bit not updating as fast as the forum listing itself?
Actually this is done in the order its posted, meaning the newest one at the top, oldest one at the bottom ( as you can see by the threadid ).
Hi,

I reinstalled and its working fine now. Thanks. :)

Qs:

I need the thread/thread starter column to be aligned to the right. (Arabic forum). How do I do that?

How do i center the title?

I looked up the words in the phrase manager to translate them but couldn't find them. Thats how I always translate hacks. Am I missing something?

Sorry about the many questions.

Thank you.

Can you please edit forumhome_la template, and change the align="center" or whatever it is currently to align="right" and you can translate it there also :) Sorry I have not use any vbphrases, but I will look forward to use it in the future :)

Kadi
12-06-2006, 02:42 PM
Thanks.

I got the thread/thread starter title aligned to the right but not the posts in that column. How do I change that?

When I added vbphrases I got an error.

I'm sorry to take up your time but could you show me what to change in the template?

Farjad
12-07-2006, 01:42 AM
Thanks.

I got the thread/thread starter title aligned to the right but not the posts in that column. How do I change that?

When I added vbphrases I got an error.

I'm sorry to take up your time but could you show me what to change in the template?
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat" colspan="5">
<a href='forumdisplay.php?f=$vboptions[fa_latest_announce_forum]' class="forumtitle">$vboptions[fa_latest_announce_forumname]</a>
</td>
</tr>
</tbody>
<tr align="center">
<td class="thead"></td>
<td class="thead" align="left"><a href="forumdisplay.php?f=$vboptions[fa_latest_announce_forum]&amp;order=asc&amp;sort=title" rel="nofollow">Thread</a> / <a href="forumdisplay.php?f=$vboptions[fa_latest_announce_forum]&amp;order=asc&amp;sort=postusername" rel="nofollow">Thread Starter</a> </td> <td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="forumdisplay.php?f=$vboptions[fa_latest_announce_forum]&amp;order=desc&amp;sort=lastpost" rel="nofollow">Last Post</a> <a href="forumdisplay.php?f=$vboptions[fa_latest_announce_forum]&amp;order=asc&amp;sort=lastpost&amp;pp=20&amp;page=1"><img class="inlineimg" src="$stylevar[imgdir_button]/sortasc.gif" alt="Reverse Sort Order" border="0" /></a></span></td> <td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="forumdisplay.php?f=$vboptions[fa_latest_announce_forum]&amp;order=desc&amp;sort=replycount" rel="nofollow">&nbsp;&nbsp;&nbsp;Replies&nbsp;&nbsp;&nbsp;</a> </span></td> <td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="forumdisplay.php?f=$vboptions[fa_latest_announce_forum]&amp;order=desc&amp;sort=views" rel="nofollow">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Views&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a> </span></td>
</tr>
<tbody>
$latest_announce_thread_bit
</tbody>
</table><br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

These are the words you need to change. (In Bold)

MimeSong Erk
12-07-2006, 11:06 AM
Thanks Farjad, I can't believe I didn't see that in the first post. :p

Working on some updates to mine that will make it clearer when there have been posts in an announcement topic. I may post the changes when I am done or link to them, again if there is interest.

puertoblack2003
02-25-2007, 06:31 PM
i have the forum icon hack i want to add a image where do i make the changes?

thanks

puertoblack2003
02-25-2007, 06:43 PM
never mined should have checked it before posting i changed it here in template>forumhome_la_threads >

before:
<td class="alt1Active" align="center"><if condition="$latest_announce_thread['icon']"><img src="$latest_announce_thread[icon]" border="0" /></if></td>

After:

<td class="alt1Active" align="center"><if condition="$latest_announce_thread['icon']"><img src="/images/catimage/announce_new.gif" border="0" /></if></td>

thanks:)

SimplyBen
02-26-2007, 12:18 AM
I have been pondering for hours if there is a way I can use this to have Latest # of threads for multiple forums. Like say I wanted to have 3 Lists.. one from forumid 1, next from forumid2, and lastly from forumid 3. And to have them all on seperate lists. Like example... I have a movies forum, music forum and sport forum.. I want to differentiate where the threads are coming from. I am 99% sure, the methods used in your mod could be used to do something like this. I just don't know exactly how to replicate your product to make this possible. If you're willing to help, i'd pay and release it on vb org with credit to you.

SimplyBen
02-26-2007, 12:20 AM
Oh shoot. nvm I think I just did it.. Wow.. just gonna take couple hours of HTML to integrate it all into one product.

EDIT :: I still haven't found a way to put them all in the same table. Help me out here?

badboyz
06-25-2007, 08:57 PM
its not showing on the forumhome :(

Ahsin1
07-08-2007, 01:04 PM
can u tell me how to install it ... instraction was not on the folder ???

jGas
09-06-2007, 09:33 PM
thanks very much this is exactly what i'm lookin' for! ;) installed

Ahsin1
09-25-2007, 01:37 PM
i add this in FORUMHOME Template

Find:
<!-- / guest welcome message -->
</if>

Add below:
$fa_latest_announce

but it didnt work wat is problem ?

yoyoyoyo
09-25-2007, 01:56 PM
i add this in FORUMHOME Template

Find:
<!-- / guest welcome message -->
</if>

Add below:
$fa_latest_announce

but it didnt work wat is problem ?go to your ACP and then go to vbulletin options, then go to settings, then go to "Latest Announcement - FA"setting and enable the hack ;)

Ahsin1
09-26-2007, 09:07 AM
go to your ACP and then go to vbulletin options, then go to settings, then go to "Latest Announcement - FA"setting and enable the hack ;)


i did the same u told me but again same problem its not showing in home

Latest announcement is active?
Here you can turn latest announcement hack on/off. i did yes it didnt work , i did no again it didnt work
what is the problem ???????

Ahsin1
09-28-2007, 12:36 PM
I Installed Fa Latest Announcements But When i Enable It ,,, it com up of shoutbox i want it down of shoutbox how i can add it down of shoutbox

https://vborg.vbsupport.ru/external/2007/09/9.jpg

CHSajid
10-31-2007, 10:49 PM
it works but one problem my right side colume dont appear, it appears on the footer. so i removed it, please help me.