|
Page 1 of 1
|
Limun 
Joined: January 2008
Posts: 1334
Location: ![[Censor] (Croatia) croatia.png](images/flags/croatia.png) [Censor]
|
 Global Announce Out Of Topic,how?
hello..
its posible to get this:so that global announce and annonuce go also out of topics in main page forum like in phpBB2 1.53
see pics
thanks
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#1 Mon 04 Aug, 2008 09:25 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
novice programmer 
Joined: June 2007
Posts: 1030
Location:
|
 Re: Global Announce Out Of Topic,how?
I you are refering to show them at the portal, there is a CMS block. Tick the "Show in portal" tag and enable the block.
|
#2 Mon 04 Aug, 2008 15:31 |
|
Limun 
Joined: January 2008
Posts: 1334
Location: ![[Censor] (Croatia) croatia.png](images/flags/croatia.png) [Censor]
|
 Re: Global Announce Out Of Topic,how?
I you are refering to show them at the portal, there is a CMS block. Tick the "Show in portal" tag and enable the block.
noin portal , in forum i mean
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#3 Mon 04 Aug, 2008 16:22 |
|
novice programmer 
Joined: June 2007
Posts: 1030
Location:
|
 Re: Global Announce Out Of Topic,how?
The announcement mod.
Then (perhaps) you can add html code to make it look like a topic. you click on it and it directs you whatever you want.
|
#4 Mon 04 Aug, 2008 17:16 |
|
Limun 
Joined: January 2008
Posts: 1334
Location: ![[Censor] (Croatia) croatia.png](images/flags/croatia.png) [Censor]
|
 Re: Global Announce Out Of Topic,how?
The announcement mod.
Then (perhaps) you can add html code to make it look like a topic. you click on it and it directs you whatever you want.
yes , but i dunno how
realy i want than when i post global announce or announce that is automatcly in normal sections and in top of forum like in my picture ,phpBB2 1.53 have this integrated but i dunno how to get this on icyphoenix
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#5 Wed 06 Aug, 2008 13:11 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Global Announce Out Of Topic,how?
To achieve this you need to create a new SQL which retrieve the Global Announcements in the Forum Index.
Something like this:
$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_time, p.post_username
FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . USERS_TABLE . " u2
WHERE t.topic_poster = u.user_id
AND p.post_id = t.topic_last_post_id
AND p.poster_id = u2.user_id
AND t.topic_type = " . POST_GLOBAL_ANNOUNCE . "
ORDER BY t.topic_last_post_id DESC";
if(!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, "Couldn't obtain topic information", "", __LINE__, __FILE__, $sql);
}
$topic_rowset = array();
$total_announcements = 0;
while($row = $db->sql_fetchrow($result))
{
$topic_rowset[] = $row;
$total_announcements++;
}
$db->sql_freeresult($result);
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#6 Mon 18 Aug, 2008 02:43 |
|
novice programmer 
Joined: June 2007
Posts: 1030
Location:
|
 Re: Global Announce Out Of Topic,how?
Also could be hardcoding a HTML CMS new block to get the same appearance as a thread link.
|
#7 Mon 18 Aug, 2008 22:46 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|